index-N-EFPzDo.js 890 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import{cE as dw,cF as hw,aG as vw,cG as pw,cH as gw,cI as mw,cJ as yw,ah as Xt,cK as Sw,cL as bw,cM as xw,cN as Cw,aM as ww,aF as Tw,cO as Iw,aB as c1,bg as _w,cP as Aw,cQ as Ew,cR as Pw,cS as Mw,cT as Rw,cU as Dw,cV as Lw,aE as kw,cW as Ow,s as _e,bl as Bw,al as Ke,ag as Ue,af as ve,ak as Q,cX as Nw,cY as Fw,cZ as $w,c_ as zw,bk as Uw,cu as ul,aS as Cv,aq as Xe,c$ as Hw,d0 as Vw,a5 as ze,d1 as Gw,d2 as Ww,d3 as jw,d4 as Kw,d5 as Xw,d6 as Yw,d7 as Zw,d8 as Qw,d9 as Jw,da as qw,db as eT,v as tT,dc as rT,dd as nT,de as iT,aW as aT,df as oT,dg as sT,dh as lT,di as uT,dj as cT,ay as sr,dk as fT,dl as dT,dm as hT,dn as vT,A as pT,dp as gT,dq as mT,bq as yT,dr as ST,ds as bT,dt as xT,ap as CT,ac as f1,ai as ft,du as wT,au as be,dv as TT,X as d1,y as IT,dw as _T,aP as AT,dx as ET,w as _r,dy as PT,dz as MT,H as RT,dA as DT,bA as hn,aD as LT,ae as ie,bJ as ea,$ as wc,dB as kT,bI as ta,dC as OT,aC as BT,aO as NT,R as de,dD as FT,br as rh,b3 as Lr,aj as Hs,b1 as st,b2 as Ua,an as wv,dE as $T,dF as zT,dG as UT,dH as HT,dI as VT,dJ as GT,dK as WT,Q as jT,dL as KT,dM as XT,dN as YT,at as Pt,dO as ZT,aR as QT,aY as JT,ad as cl,aZ as qT,dP as eI,dQ as tI,dR as rI,P as le,a6 as nI,dS as iI,dT as aI,dU as oI,dV as sI,a7 as lI,dW as uI,dX as cI,dY as fI,dZ as dI,d_ as hI,b4 as vI,aA as Tv,d$ as pI,e0 as gI,E as gr,x as mI,e1 as yI,e2 as SI,e3 as bI,am as _n,e4 as xI,az as hr,aU as nh,e5 as CI,as as jr,e6 as wI,e7 as Iv,cD as mr,by as ih,co as ah,cp as TI,bH as Ge,bu as oh,bv as _v,bx as Gt,bB as Tc,cq as di,e8 as wu,bE as hi,e9 as II,ct as ra,bC as _I,bw as kt,ea as AI,eb as ui,cr as EI,ec as PI,ed as MI,ee as RI,ef as DI,eg as Zp,eh as LI,bF as Qp,cA as Ic,cy as kI,ei as Hu,ej as Il}from"./index-BQ33qidw.js";/**
  2. * vue v3.4.34
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **/const OI=()=>{},BI=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:dw,BaseTransitionPropsValidators:hw,Comment:vw,DeprecationTypes:pw,EffectScope:gw,ErrorCodes:mw,ErrorTypeStrings:yw,Fragment:Xt,KeepAlive:Sw,ReactiveEffect:bw,Static:xw,Suspense:Cw,Teleport:ww,Text:Tw,TrackOpTypes:Iw,Transition:c1,TransitionGroup:_w,TriggerOpTypes:Aw,VueElement:Ew,assertNumber:Pw,callWithAsyncErrorHandling:Mw,callWithErrorHandling:Rw,camelize:Dw,capitalize:Lw,cloneVNode:kw,compatUtils:Ow,compile:OI,computed:_e,createApp:Bw,createBlock:Ke,createCommentVNode:Ue,createElementBlock:ve,createElementVNode:Q,createHydrationRenderer:Nw,createPropsRestProxy:Fw,createRenderer:$w,createSSRApp:zw,createSlots:Uw,createStaticVNode:ul,createTextVNode:Cv,createVNode:Xe,customRef:Hw,defineAsyncComponent:Vw,defineComponent:ze,defineCustomElement:Gw,defineEmits:Ww,defineExpose:jw,defineModel:Kw,defineOptions:Xw,defineProps:Yw,defineSSRCustomElement:Zw,defineSlots:Qw,devtools:Jw,effect:qw,effectScope:eT,getCurrentInstance:tT,getCurrentScope:rT,getTransitionRawChildren:nT,guardReactiveProps:iT,h:aT,handleError:oT,hasInjectionContext:sT,hydrate:lT,initCustomFormatter:uT,initDirectivesForSSR:cT,inject:sr,isMemoSame:fT,isProxy:dT,isReactive:hT,isReadonly:vT,isRef:pT,isRuntimeOnly:gT,isShallow:mT,isVNode:yT,markRaw:ST,mergeDefaults:bT,mergeModels:xT,mergeProps:CT,nextTick:f1,normalizeClass:ft,normalizeProps:wT,normalizeStyle:be,onActivated:TT,onBeforeMount:d1,onBeforeUnmount:IT,onBeforeUpdate:_T,onDeactivated:AT,onErrorCaptured:ET,onMounted:_r,onRenderTracked:PT,onRenderTriggered:MT,onScopeDispose:RT,onServerPrefetch:DT,onUnmounted:hn,onUpdated:LT,openBlock:ie,popScopeId:ea,provide:wc,proxyRefs:kT,pushScopeId:ta,queuePostFlushCb:OT,reactive:BT,readonly:NT,ref:de,registerRuntimeCompiler:FT,render:rh,renderList:Lr,renderSlot:Hs,resolveComponent:st,resolveDirective:Ua,resolveDynamicComponent:wv,resolveFilter:$T,resolveTransitionHooks:zT,setBlockTracking:UT,setDevtoolsHook:HT,setTransitionHooks:VT,shallowReactive:GT,shallowReadonly:WT,shallowRef:jT,ssrContextKey:KT,ssrUtils:XT,stop:YT,toDisplayString:Pt,toHandlerKey:ZT,toHandlers:QT,toRaw:JT,toRef:cl,toRefs:qT,toValue:eI,transformVNodeArgs:tI,triggerRef:rI,unref:le,useAttrs:nI,useCssModule:iI,useCssVars:aI,useModel:oI,useSSRContext:sI,useSlots:lI,useTransitionState:uI,vModelCheckbox:cI,vModelDynamic:fI,vModelRadio:dI,vModelSelect:hI,vModelText:vI,vShow:Tv,version:pI,warn:gI,watch:gr,watchEffect:mI,watchPostEffect:yI,watchSyncEffect:SI,withAsyncContext:bI,withCtx:_n,withDefaults:xI,withDirectives:hr,withKeys:nh,withMemo:CI,withModifiers:jr,withScopeId:wI},Symbol.toStringTag,{value:"Module"}));var Un=(t=>(t.C="C",t.X="X",t.Z="Z",t.Y="Y",t.A="A",t.G="G",t.L="L",t.F="F",t.D="D",t.B="B",t.P="P",t.O="O",t.R="R",t.T="T",t.MINUS="-",t.EQUAL="=",t.DIGIT_0="0",t.DELETE="DELETE",t.UP="ARROWUP",t.DOWN="ARROWDOWN",t.LEFT="ARROWLEFT",t.RIGHT="ARROWRIGHT",t.ENTER="ENTER",t.SPACE=" ",t.TAB="TAB",t.BACKSPACE="BACKSPACE",t.ESC="ESCAPE",t.PAGEUP="PAGEUP",t.PAGEDOWN="PAGEDOWN",t.F5="F5",t))(Un||{});const O6=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"粘贴为纯文本",value:"Ctrl + Shift + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打开搜索替换",value:"Ctrl + F"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑"},{label:"下一页(未选中元素)",value:"↓"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"},{label:"快速创建文本",value:"双击空白处 / T"},{label:"快速创建矩形",value:"R"},{label:"快速创建圆形",value:"O"},{label:"快速创建线条",value:"L"},{label:"退出绘制状态",value:"鼠标右键"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"},{label:"完成自定义形状绘制",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"移动焦点单元格",value:"↑ / ← / ↓ / →"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"行内代码",value:"Ctrl + E"},{label:"上角标",value:"Ctrl + ;"},{label:"下角标",value:"Ctrl + '"},{label:"选中段落",value:"ESC"}]}];function NI(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gf={exports:{}};const FI={},$I=Object.freeze(Object.defineProperty({__proto__:null,default:FI},Symbol.toStringTag,{value:"Module"})),zI=Iv($I);var Jp;function qn(){return Jp||(Jp=1,function(t,e){(function(r,n){t.exports=n()})(mr,function(){var r=r||function(n,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof mr<"u"&&mr.crypto&&(a=mr.crypto),!a&&typeof NI=="function")try{a=zI}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function y(){}return function(S){var T;return y.prototype=S,T=new y,y.prototype=null,T}}(),l={},u=l.lib={},f=u.Base=function(){return{extend:function(y){var S=s(this);return y&&S.mixIn(y),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var S in y)y.hasOwnProperty(S)&&(this[S]=y[S]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=u.WordArray=f.extend({init:function(y,S){y=this.words=y||[],S!=i?this.sigBytes=S:this.sigBytes=y.length*4},toString:function(y){return(y||h).stringify(this)},concat:function(y){var S=this.words,T=y.words,P=this.sigBytes,x=y.sigBytes;if(this.clamp(),P%4)for(var _=0;_<x;_++){var M=T[_>>>2]>>>24-_%4*8&255;S[P+_>>>2]|=M<<24-(P+_)%4*8}else for(var C=0;C<x;C+=4)S[P+C>>>2]=T[C>>>2];return this.sigBytes+=x,this},clamp:function(){var y=this.words,S=this.sigBytes;y[S>>>2]&=4294967295<<32-S%4*8,y.length=n.ceil(S/4)},clone:function(){var y=f.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var S=[],T=0;T<y;T+=4)S.push(o());return new c.init(S,y)}}),d=l.enc={},h=d.Hex={stringify:function(y){for(var S=y.words,T=y.sigBytes,P=[],x=0;x<T;x++){var _=S[x>>>2]>>>24-x%4*8&255;P.push((_>>>4).toString(16)),P.push((_&15).toString(16))}return P.join("")},parse:function(y){for(var S=y.length,T=[],P=0;P<S;P+=2)T[P>>>3]|=parseInt(y.substr(P,2),16)<<24-P%8*4;return new c.init(T,S/2)}},v=d.Latin1={stringify:function(y){for(var S=y.words,T=y.sigBytes,P=[],x=0;x<T;x++){var _=S[x>>>2]>>>24-x%4*8&255;P.push(String.fromCharCode(_))}return P.join("")},parse:function(y){for(var S=y.length,T=[],P=0;P<S;P++)T[P>>>2]|=(y.charCodeAt(P)&255)<<24-P%4*8;return new c.init(T,S)}},p=d.Utf8={stringify:function(y){try{return decodeURIComponent(escape(v.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return v.parse(unescape(encodeURIComponent(y)))}},g=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=p.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var S,T=this._data,P=T.words,x=T.sigBytes,_=this.blockSize,M=_*4,C=x/M;y?C=n.ceil(C):C=n.max((C|0)-this._minBufferSize,0);var w=C*_,b=n.min(w*4,x);if(w){for(var E=0;E<w;E+=_)this._doProcessBlock(P,E);S=P.splice(0,w),T.sigBytes-=b}return new c.init(S,b)},clone:function(){var y=f.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});u.Hasher=g.extend({cfg:f.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(y){return function(S,T){return new y.init(T).finalize(S)}},_createHmacHelper:function(y){return function(S,T){return new m.HMAC.init(y,T).finalize(S)}}});var m=l.algo={};return l}(Math);return r})}(gf)),gf.exports}var mf={exports:{}},qp;function UI(){return qp||(qp=1,function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){return function(){var n=r,i=n.lib,a=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var u=l.words,f=l.sigBytes,c=this._map;l.clamp();for(var d=[],h=0;h<f;h+=3)for(var v=u[h>>>2]>>>24-h%4*8&255,p=u[h+1>>>2]>>>24-(h+1)%4*8&255,g=u[h+2>>>2]>>>24-(h+2)%4*8&255,m=v<<16|p<<8|g,y=0;y<4&&h+y*.75<f;y++)d.push(c.charAt(m>>>6*(3-y)&63));var S=c.charAt(64);if(S)for(;d.length%4;)d.push(S);return d.join("")},parse:function(l){var u=l.length,f=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var d=0;d<f.length;d++)c[f.charCodeAt(d)]=d}var h=f.charAt(64);if(h){var v=l.indexOf(h);v!==-1&&(u=v)}return s(l,u,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,f){for(var c=[],d=0,h=0;h<u;h++)if(h%4){var v=f[l.charCodeAt(h-1)]<<h%4*2,p=f[l.charCodeAt(h)]>>>6-h%4*2,g=v|p;c[d>>>2]|=g<<24-d%4*8,d++}return a.create(c,d)}}(),r.enc.Base64})}(mf)),mf.exports}var yf={exports:{}},eg;function HI(){return eg||(eg=1,function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){return function(n){var i=r,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,u=[];(function(){for(var p=0;p<64;p++)u[p]=n.abs(n.sin(p+1))*4294967296|0})();var f=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,g){for(var m=0;m<16;m++){var y=g+m,S=p[y];p[y]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var T=this._hash.words,P=p[g+0],x=p[g+1],_=p[g+2],M=p[g+3],C=p[g+4],w=p[g+5],b=p[g+6],E=p[g+7],A=p[g+8],R=p[g+9],k=p[g+10],D=p[g+11],O=p[g+12],$=p[g+13],U=p[g+14],q=p[g+15],H=T[0],N=T[1],G=T[2],j=T[3];H=c(H,N,G,j,P,7,u[0]),j=c(j,H,N,G,x,12,u[1]),G=c(G,j,H,N,_,17,u[2]),N=c(N,G,j,H,M,22,u[3]),H=c(H,N,G,j,C,7,u[4]),j=c(j,H,N,G,w,12,u[5]),G=c(G,j,H,N,b,17,u[6]),N=c(N,G,j,H,E,22,u[7]),H=c(H,N,G,j,A,7,u[8]),j=c(j,H,N,G,R,12,u[9]),G=c(G,j,H,N,k,17,u[10]),N=c(N,G,j,H,D,22,u[11]),H=c(H,N,G,j,O,7,u[12]),j=c(j,H,N,G,$,12,u[13]),G=c(G,j,H,N,U,17,u[14]),N=c(N,G,j,H,q,22,u[15]),H=d(H,N,G,j,x,5,u[16]),j=d(j,H,N,G,b,9,u[17]),G=d(G,j,H,N,D,14,u[18]),N=d(N,G,j,H,P,20,u[19]),H=d(H,N,G,j,w,5,u[20]),j=d(j,H,N,G,k,9,u[21]),G=d(G,j,H,N,q,14,u[22]),N=d(N,G,j,H,C,20,u[23]),H=d(H,N,G,j,R,5,u[24]),j=d(j,H,N,G,U,9,u[25]),G=d(G,j,H,N,M,14,u[26]),N=d(N,G,j,H,A,20,u[27]),H=d(H,N,G,j,$,5,u[28]),j=d(j,H,N,G,_,9,u[29]),G=d(G,j,H,N,E,14,u[30]),N=d(N,G,j,H,O,20,u[31]),H=h(H,N,G,j,w,4,u[32]),j=h(j,H,N,G,A,11,u[33]),G=h(G,j,H,N,D,16,u[34]),N=h(N,G,j,H,U,23,u[35]),H=h(H,N,G,j,x,4,u[36]),j=h(j,H,N,G,C,11,u[37]),G=h(G,j,H,N,E,16,u[38]),N=h(N,G,j,H,k,23,u[39]),H=h(H,N,G,j,$,4,u[40]),j=h(j,H,N,G,P,11,u[41]),G=h(G,j,H,N,M,16,u[42]),N=h(N,G,j,H,b,23,u[43]),H=h(H,N,G,j,R,4,u[44]),j=h(j,H,N,G,O,11,u[45]),G=h(G,j,H,N,q,16,u[46]),N=h(N,G,j,H,_,23,u[47]),H=v(H,N,G,j,P,6,u[48]),j=v(j,H,N,G,E,10,u[49]),G=v(G,j,H,N,U,15,u[50]),N=v(N,G,j,H,w,21,u[51]),H=v(H,N,G,j,O,6,u[52]),j=v(j,H,N,G,M,10,u[53]),G=v(G,j,H,N,k,15,u[54]),N=v(N,G,j,H,x,21,u[55]),H=v(H,N,G,j,A,6,u[56]),j=v(j,H,N,G,q,10,u[57]),G=v(G,j,H,N,b,15,u[58]),N=v(N,G,j,H,$,21,u[59]),H=v(H,N,G,j,C,6,u[60]),j=v(j,H,N,G,D,10,u[61]),G=v(G,j,H,N,_,15,u[62]),N=v(N,G,j,H,R,21,u[63]),T[0]=T[0]+H|0,T[1]=T[1]+N|0,T[2]=T[2]+G|0,T[3]=T[3]+j|0},_doFinalize:function(){var p=this._data,g=p.words,m=this._nDataBytes*8,y=p.sigBytes*8;g[y>>>5]|=128<<24-y%32;var S=n.floor(m/4294967296),T=m;g[(y+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,g[(y+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,p.sigBytes=(g.length+1)*4,this._process();for(var P=this._hash,x=P.words,_=0;_<4;_++){var M=x[_];x[_]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return P},clone:function(){var p=s.clone.call(this);return p._hash=this._hash.clone(),p}});function c(p,g,m,y,S,T,P){var x=p+(g&m|~g&y)+S+P;return(x<<T|x>>>32-T)+g}function d(p,g,m,y,S,T,P){var x=p+(g&y|m&~y)+S+P;return(x<<T|x>>>32-T)+g}function h(p,g,m,y,S,T,P){var x=p+(g^m^y)+S+P;return(x<<T|x>>>32-T)+g}function v(p,g,m,y,S,T,P){var x=p+(m^(g|~y))+S+P;return(x<<T|x>>>32-T)+g}i.MD5=s._createHelper(f),i.HmacMD5=s._createHmacHelper(f)}(Math),r.MD5})}(yf)),yf.exports}var Sf={exports:{}},tg;function VI(){return tg||(tg=1,function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){return function(){var n=r,i=n.lib,a=i.WordArray,o=i.Hasher,s=n.algo,l=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,c){for(var d=this._hash.words,h=d[0],v=d[1],p=d[2],g=d[3],m=d[4],y=0;y<80;y++){if(y<16)l[y]=f[c+y]|0;else{var S=l[y-3]^l[y-8]^l[y-14]^l[y-16];l[y]=S<<1|S>>>31}var T=(h<<5|h>>>27)+m+l[y];y<20?T+=(v&p|~v&g)+1518500249:y<40?T+=(v^p^g)+1859775393:y<60?T+=(v&p|v&g|p&g)-1894007588:T+=(v^p^g)-899497514,m=g,g=p,p=v<<30|v>>>2,v=h,h=T}d[0]=d[0]+h|0,d[1]=d[1]+v|0,d[2]=d[2]+p|0,d[3]=d[3]+g|0,d[4]=d[4]+m|0},_doFinalize:function(){var f=this._data,c=f.words,d=this._nDataBytes*8,h=f.sigBytes*8;return c[h>>>5]|=128<<24-h%32,c[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),c[(h+64>>>9<<4)+15]=d,f.sigBytes=c.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=o._createHelper(u),n.HmacSHA1=o._createHmacHelper(u)}(),r.SHA1})}(Sf)),Sf.exports}var bf={exports:{}},rg;function GI(){return rg||(rg=1,function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){(function(){var n=r,i=n.lib,a=i.Base,o=n.enc,s=o.Utf8,l=n.algo;l.HMAC=a.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=s.parse(f));var c=u.blockSize,d=c*4;f.sigBytes>d&&(f=u.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),v=this._iKey=f.clone(),p=h.words,g=v.words,m=0;m<c;m++)p[m]^=1549556828,g[m]^=909522486;h.sigBytes=v.sigBytes=d,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var f=this._hasher,c=f.finalize(u);f.reset();var d=f.finalize(this._oKey.clone().concat(c));return d}})})()})}(bf)),bf.exports}var xf={exports:{}},ng;function h1(){return ng||(ng=1,function(t,e){(function(r,n,i){t.exports=n(qn(),VI(),GI())})(mr,function(r){return function(){var n=r,i=n.lib,a=i.Base,o=i.WordArray,s=n.algo,l=s.MD5,u=s.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,c){for(var d,h=this.cfg,v=h.hasher.create(),p=o.create(),g=p.words,m=h.keySize,y=h.iterations;g.length<m;){d&&v.update(d),d=v.update(f).finalize(c),v.reset();for(var S=1;S<y;S++)d=v.finalize(d),v.reset();p.concat(d)}return p.sigBytes=m*4,p}});n.EvpKDF=function(f,c,d){return u.create(d).compute(f,c)}}(),r.EvpKDF})}(xf)),xf.exports}var Cf={exports:{}},ig;function Av(){return ig||(ig=1,function(t,e){(function(r,n,i){t.exports=n(qn(),h1())})(mr,function(r){r.lib.Cipher||function(n){var i=r,a=i.lib,o=a.Base,s=a.WordArray,l=a.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var f=u.Base64,c=i.algo,d=c.EvpKDF,h=a.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(w,b){return this.create(this._ENC_XFORM_MODE,w,b)},createDecryptor:function(w,b){return this.create(this._DEC_XFORM_MODE,w,b)},init:function(w,b,E){this.cfg=this.cfg.extend(E),this._xformMode=w,this._key=b,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var b=this._doFinalize();return b},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(b){return typeof b=="string"?C:x}return function(b){return{encrypt:function(E,A,R){return w(A).encrypt(b,E,A,R)},decrypt:function(E,A,R){return w(A).decrypt(b,E,A,R)}}}}()});a.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var v=i.mode={},p=a.BlockCipherMode=o.extend({createEncryptor:function(w,b){return this.Encryptor.create(w,b)},createDecryptor:function(w,b){return this.Decryptor.create(w,b)},init:function(w,b){this._cipher=w,this._iv=b}}),g=v.CBC=function(){var w=p.extend();w.Encryptor=w.extend({processBlock:function(E,A){var R=this._cipher,k=R.blockSize;b.call(this,E,A,k),R.encryptBlock(E,A),this._prevBlock=E.slice(A,A+k)}}),w.Decryptor=w.extend({processBlock:function(E,A){var R=this._cipher,k=R.blockSize,D=E.slice(A,A+k);R.decryptBlock(E,A),b.call(this,E,A,k),this._prevBlock=D}});function b(E,A,R){var k,D=this._iv;D?(k=D,this._iv=n):k=this._prevBlock;for(var O=0;O<R;O++)E[A+O]^=k[O]}return w}(),m=i.pad={},y=m.Pkcs7={pad:function(w,b){for(var E=b*4,A=E-w.sigBytes%E,R=A<<24|A<<16|A<<8|A,k=[],D=0;D<A;D+=4)k.push(R);var O=s.create(k,A);w.concat(O)},unpad:function(w){var b=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=b}};a.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:y}),reset:function(){var w;h.reset.call(this);var b=this.cfg,E=b.iv,A=b.mode;this._xformMode==this._ENC_XFORM_MODE?w=A.createEncryptor:(w=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,E&&E.words):(this._mode=w.call(A,this,E&&E.words),this._mode.__creator=w)},_doProcessBlock:function(w,b){this._mode.processBlock(w,b)},_doFinalize:function(){var w,b=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(b.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),b.unpad(w)),w},blockSize:128/32});var S=a.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),T=i.format={},P=T.OpenSSL={stringify:function(w){var b,E=w.ciphertext,A=w.salt;return A?b=s.create([1398893684,1701076831]).concat(A).concat(E):b=E,b.toString(f)},parse:function(w){var b,E=f.parse(w),A=E.words;return A[0]==1398893684&&A[1]==1701076831&&(b=s.create(A.slice(2,4)),A.splice(0,4),E.sigBytes-=16),S.create({ciphertext:E,salt:b})}},x=a.SerializableCipher=o.extend({cfg:o.extend({format:P}),encrypt:function(w,b,E,A){A=this.cfg.extend(A);var R=w.createEncryptor(E,A),k=R.finalize(b),D=R.cfg;return S.create({ciphertext:k,key:E,iv:D.iv,algorithm:w,mode:D.mode,padding:D.padding,blockSize:w.blockSize,formatter:A.format})},decrypt:function(w,b,E,A){A=this.cfg.extend(A),b=this._parse(b,A.format);var R=w.createDecryptor(E,A).finalize(b.ciphertext);return R},_parse:function(w,b){return typeof w=="string"?b.parse(w,this):w}}),_=i.kdf={},M=_.OpenSSL={execute:function(w,b,E,A,R){if(A||(A=s.random(64/8)),R)var k=d.create({keySize:b+E,hasher:R}).compute(w,A);else var k=d.create({keySize:b+E}).compute(w,A);var D=s.create(k.words.slice(b),E*4);return k.sigBytes=b*4,S.create({key:k,iv:D,salt:A})}},C=a.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:M}),encrypt:function(w,b,E,A){A=this.cfg.extend(A);var R=A.kdf.execute(E,w.keySize,w.ivSize,A.salt,A.hasher);A.iv=R.iv;var k=x.encrypt.call(this,w,b,R.key,A);return k.mixIn(R),k},decrypt:function(w,b,E,A){A=this.cfg.extend(A),b=this._parse(b,A.format);var R=A.kdf.execute(E,w.keySize,w.ivSize,b.salt,A.hasher);A.iv=R.iv;var k=x.decrypt.call(this,w,b,R.key,A);return k}})}()})}(Cf)),Cf.exports}var wf={exports:{}},ag;function WI(){return ag||(ag=1,function(t,e){(function(r,n,i){t.exports=n(qn(),Av())})(mr,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(i,a){this._cipher.encryptBlock(i,a)}}),n.Decryptor=n.extend({processBlock:function(i,a){this._cipher.decryptBlock(i,a)}}),n}(),r.mode.ECB})}(wf)),wf.exports}var Tf={exports:{}},og;function jI(){return og||(og=1,function(t,e){(function(r,n,i){t.exports=n(qn(),UI(),HI(),h1(),Av())})(mr,function(r){return function(){var n=r,i=n.lib,a=i.BlockCipher,o=n.algo,s=[],l=[],u=[],f=[],c=[],d=[],h=[],v=[],p=[],g=[];(function(){for(var S=[],T=0;T<256;T++)T<128?S[T]=T<<1:S[T]=T<<1^283;for(var P=0,x=0,T=0;T<256;T++){var _=x^x<<1^x<<2^x<<3^x<<4;_=_>>>8^_&255^99,s[P]=_,l[_]=P;var M=S[P],C=S[M],w=S[C],b=S[_]*257^_*16843008;u[P]=b<<24|b>>>8,f[P]=b<<16|b>>>16,c[P]=b<<8|b>>>24,d[P]=b;var b=w*16843009^C*65537^M*257^P*16843008;h[_]=b<<24|b>>>8,v[_]=b<<16|b>>>16,p[_]=b<<8|b>>>24,g[_]=b,P?(P=M^S[S[S[w^M]]],x^=S[S[x]]):P=x=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=a.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var T=this._keyPriorReset=this._key,P=T.words,x=T.sigBytes/4,_=this._nRounds=x+6,M=(_+1)*4,C=this._keySchedule=[],w=0;w<M;w++)w<x?C[w]=P[w]:(S=C[w-1],w%x?x>6&&w%x==4&&(S=s[S>>>24]<<24|s[S>>>16&255]<<16|s[S>>>8&255]<<8|s[S&255]):(S=S<<8|S>>>24,S=s[S>>>24]<<24|s[S>>>16&255]<<16|s[S>>>8&255]<<8|s[S&255],S^=m[w/x|0]<<24),C[w]=C[w-x]^S);for(var b=this._invKeySchedule=[],E=0;E<M;E++){var w=M-E;if(E%4)var S=C[w];else var S=C[w-4];E<4||w<=4?b[E]=S:b[E]=h[s[S>>>24]]^v[s[S>>>16&255]]^p[s[S>>>8&255]]^g[s[S&255]]}}},encryptBlock:function(S,T){this._doCryptBlock(S,T,this._keySchedule,u,f,c,d,s)},decryptBlock:function(S,T){var P=S[T+1];S[T+1]=S[T+3],S[T+3]=P,this._doCryptBlock(S,T,this._invKeySchedule,h,v,p,g,l);var P=S[T+1];S[T+1]=S[T+3],S[T+3]=P},_doCryptBlock:function(S,T,P,x,_,M,C,w){for(var b=this._nRounds,E=S[T]^P[0],A=S[T+1]^P[1],R=S[T+2]^P[2],k=S[T+3]^P[3],D=4,O=1;O<b;O++){var $=x[E>>>24]^_[A>>>16&255]^M[R>>>8&255]^C[k&255]^P[D++],U=x[A>>>24]^_[R>>>16&255]^M[k>>>8&255]^C[E&255]^P[D++],q=x[R>>>24]^_[k>>>16&255]^M[E>>>8&255]^C[A&255]^P[D++],H=x[k>>>24]^_[E>>>16&255]^M[A>>>8&255]^C[R&255]^P[D++];E=$,A=U,R=q,k=H}var $=(w[E>>>24]<<24|w[A>>>16&255]<<16|w[R>>>8&255]<<8|w[k&255])^P[D++],U=(w[A>>>24]<<24|w[R>>>16&255]<<16|w[k>>>8&255]<<8|w[E&255])^P[D++],q=(w[R>>>24]<<24|w[k>>>16&255]<<16|w[E>>>8&255]<<8|w[A&255])^P[D++],H=(w[k>>>24]<<24|w[E>>>16&255]<<16|w[A>>>8&255]<<8|w[R&255])^P[D++];S[T]=$,S[T+1]=U,S[T+2]=q,S[T+3]=H},keySize:256/32});n.AES=a._createHelper(y)}(),r.AES})}(Tf)),Tf.exports}const sh=t=>{const{left:e,top:r,width:n,height:i,rotate:a=0}=t,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2,s=Math.atan(i/n)*180/Math.PI,l=(180-a-s)*Math.PI/180,u=(s-a)*Math.PI/180,f=e+n/2,c=r+i/2,d=[f+o*Math.cos(l),f+o*Math.cos(u),f-o*Math.cos(l),f-o*Math.cos(u)],h=[c-o*Math.sin(l),c-o*Math.sin(u),c+o*Math.sin(l),c+o*Math.sin(u)];return{xRange:[Math.min(...d),Math.max(...d)],yRange:[Math.min(...h),Math.max(...h)]}},B6=t=>{const{xRange:e,yRange:r}=sh({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:n,yRange:i}=sh({left:t.left,top:t.top,width:t.width,height:t.height,rotate:t.rotate});return{offsetX:n[0]-e[0],offsetY:i[0]-r[0]}},v1=t=>{let e,r,n,i;if(t.type==="line")e=t.left,r=t.left+Math.max(t.start[0],t.end[0]),n=t.top,i=t.top+Math.max(t.start[1],t.end[1]);else if("rotate"in t&&t.rotate){const{left:a,top:o,width:s,height:l,rotate:u}=t,{xRange:f,yRange:c}=sh({left:a,top:o,width:s,height:l,rotate:u});e=f[0],r=f[1],n=c[0],i=c[1]}else e=t.left,r=t.left+t.width,n=t.top,i=t.top+t.height;return{minX:e,maxX:r,minY:n,maxY:i}},N6=t=>{const e=[],r=[],n=[],i=[];t.forEach(u=>{const{minX:f,maxX:c,minY:d,maxY:h}=v1(u);e.push(f),r.push(d),n.push(c),i.push(h)});const a=Math.min(...e),o=Math.max(...n),s=Math.min(...r),l=Math.max(...i);return{minX:a,maxX:o,minY:s,maxY:l}},F6=t=>{const e=[];return t.forEach(r=>{const n=e.findIndex(i=>i.value===r.value);if(n===-1)e.push(r);else{const i=e[n],a=Math.min(i.range[0],r.range[0]),o=Math.max(i.range[1],r.range[1]),s=[a,o],l={value:r.value,range:s};e[n]=l}}),e},$6=t=>{const e={};for(const r of t)e[r.id]=ih(10);return e},z6=t=>{const e={},r={};for(const n of t){const i=n.groupId;i&&!e[i]&&(e[i]=ih(10)),r[n.id]=ih(10)}return{groupIdMap:e,elIdMap:r}},KI=t=>{const e=ah(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},XI=t=>{const e=t.start.join(","),r=t.end.join(",");if(t.broken){const n=t.broken.join(",");return`M${e} L${n} L${r}`}else if(t.broken2){const{minX:n,maxX:i,minY:a,maxY:o}=v1(t);return i-n>=o-a?`M${e} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${r}`:`M${e} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${r}`}else if(t.curve){const n=t.curve.join(",");return`M${e} Q${n} ${r}`}else if(t.cubic){const[n,i]=t.cubic,a=n.join(","),o=i.join(",");return`M${e} C${a} ${o} ${r}`}return`M${e} L${r}`},U6=(t,e)=>{const r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom},YI=["id"],ZI={class:"icons"},QI={class:"content"},JI={key:0,class:"title"},qI={class:"description"},e_={key:0,class:"control"},t_=ze({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(t,{expose:e,emit:r}){const{IconAttention:n,IconCheckOne:i,IconCloseOne:a,IconInfo:o,IconCloseSmall:s}=TI,l=t,u=r,f=de(!0),c=de(null),d=()=>{l.duration<=0||(c.value=setTimeout(v,l.duration))},h=()=>{c.value&&clearTimeout(c.value)},v=()=>f.value=!1;return d1(()=>{h()}),_r(()=>{d()}),e({close:v}),(p,g)=>(ie(),Ke(c1,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:g[3]||(g[3]=m=>u("close")),onAfterLeave:g[4]||(g[4]=m=>u("destroy"))},{default:_n(()=>[f.value?(ie(),ve("div",{key:0,class:"message",id:p.id},[Q("div",{class:"message-container",onMouseenter:g[1]||(g[1]=m=>h()),onMouseleave:g[2]||(g[2]=m=>d())},[Q("div",ZI,[p.type==="warning"?(ie(),Ke(le(n),{key:0,theme:"filled",size:"18",fill:"#faad14"})):Ue("",!0),p.type==="success"?(ie(),Ke(le(i),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):Ue("",!0),p.type==="error"?(ie(),Ke(le(a),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):Ue("",!0),p.type==="info"?(ie(),Ke(le(o),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):Ue("",!0)]),Q("div",QI,[p.title?(ie(),ve("div",JI,Pt(p.title),1)):Ue("",!0),Q("div",qI,Pt(p.message),1)]),p.closable?(ie(),ve("div",e_,[Q("span",{class:"close-btn",onClick:g[0]||(g[0]=m=>v())},[Xe(le(s))])])):Ue("",!0)],32)],8,YI)):Ue("",!0)]),_:1}))}}),r_=Ge(t_,[["__scopeId","data-v-bfa2994d"]]),lh=[];let Bn=null,n_=0;const i_={duration:3e3},Nr=t=>{const e="message-"+n_++,r={...i_,...t,id:e};Bn||(Bn=document.createElement("div"),Bn.className="message-wrap",Bn.style.cssText=`
  6. width: 100%;
  7. position: fixed;
  8. top: 0;
  9. left: 0;
  10. z-index: 6000;
  11. pointer-events: none;
  12. display: flex;
  13. flex-direction: column;
  14. box-sizing: border-box;
  15. padding: 15px;
  16. background-color: rgba(255, 255, 255, 0);
  17. transition: all 1s ease-in-out;
  18. align-items: center;
  19. `,document.body.appendChild(Bn));const n=Xe(r_,r,null),i=document.createElement("div");n.appContext=t.ctx||Nr._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{Bn&&Bn.childNodes.length<=1&&(Bn.remove(),Bn=null),rh(null,i)},rh(n,i),Bn.appendChild(i.firstElementChild);const a={id:e,close:()=>{var o,s;return(s=(o=n==null?void 0:n.component)==null?void 0:o.exposed)==null?void 0:s.close()}};return lh.push(a),a};Nr.success=(t,e)=>Nr({...e,type:"success",message:t});Nr.info=(t,e)=>Nr({...e,type:"info",message:t});Nr.warning=(t,e)=>Nr({...e,type:"warning",message:t});Nr.error=(t,e)=>Nr({...e,type:"error",message:t});Nr.closeAll=function(){for(let t=lh.length-1;t>=0;t--)lh[t].close()};const a_=t=>{const r=t.replace(/[\n\r]+/g,"<br>").split("<br>");let n="";for(const i of r)i&&(n+=`<div>${i}</div>`);return n},_l=(t,e)=>oh.padStart(""+t,e,"0"),H6=t=>/^(https?:\/\/)([\w-]+\.)+[\w-]{2,}(\/[\w-./?%&=]*)?$/i.test(t),o_={key:0,class:"loading-overlay"},s_=ul('<div class="loadingBox" data-v-927721f2><div class="loadingItem" data-v-927721f2></div><div class="loadingItem" data-v-927721f2></div><div class="loadingItem" data-v-927721f2></div><div class="loadingItem" data-v-927721f2></div></div>',1),l_=[s_],u_=["src"],c_=ze({__name:"musicResourcesPlayer",props:{width:{},height:{},scale:{default:1},type:{},sid:{}},setup(t){const e=t,r=_e(()=>b_(e.type,"preview",e.sid)),n=de(!0);function i(){n.value=!1}return(a,o)=>(ie(),ve("div",{class:"musicResourcesPlayer",style:be({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(ie(),ve("div",o_,l_)):Ue("",!0),Q("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,u_)],4))}}),p1=Ge(c_,[["__scopeId","data-v-927721f2"]]),f_=ze({__name:"musicResourcesElement",props:{elementInfo:{},selectElement:{type:Function},contextmenus:{type:Function}},setup(t){const e=t,r=_v(),{canvasScale:n}=Gt(r),i=_e(()=>r.handleElementId!==e.elementInfo.id||e.elementInfo.isMove),a=(o,s=!0)=>{e.elementInfo.lock||(o.stopPropagation(),e.selectElement(o,e.elementInfo,s))};return(o,s)=>{const l=Ua("contextmenu");return ie(),ve("div",{class:ft(["musicResourcesElement",{lock:o.elementInfo.lock}]),style:be({top:o.elementInfo.top+"px",left:o.elementInfo.left+"px",width:o.elementInfo.width+"px",height:o.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${o.elementInfo.rotate}deg)`})},[hr((ie(),ve("div",{class:"element-content",onMousedown:s[4]||(s[4]=u=>a(u)),onTouchstart:s[5]||(s[5]=u=>a(u))},[i.value?(ie(),ve("div",{key:0,onMousedown:s[0]||(s[0]=jr(u=>a(u,!1),["stop"])),onTouchstart:s[1]||(s[1]=jr(u=>a(u,!1),["stop"])),class:"mask"},null,32)):Ue("",!0),Xe(le(p1),{width:o.elementInfo.width,height:o.elementInfo.height,scale:le(n),sid:o.elementInfo.sid,type:o.elementInfo.sType},null,8,["width","height","scale","sid","type"]),(ie(),ve(Xt,null,Lr(["t","b","l","r"],u=>Q("div",{class:ft(["handler-border",u]),key:u,onMousedown:s[2]||(s[2]=f=>a(f)),onTouchstart:s[3]||(s[3]=f=>a(f))},null,34)),64))],32)),[[l,o.contextmenus]])],4)],6)}}}),V6=Ge(f_,[["__scopeId","data-v-7865ae60"]]);var d_=jI(),g1={exports:{}};(function(t,e){(function(r,n){t.exports=n(qn())})(mr,function(r){return r.enc.Utf8})})(g1);var sg=g1.exports,m1={exports:{}};(function(t,e){(function(r,n,i){t.exports=n(qn(),Av())})(mr,function(r){return r.pad.Pkcs7})})(m1);var h_=m1.exports;const v_=Tc(h_);var p_=WI();const g_=Tc(p_),m_="1111111111000000",y_="0000001111111111";function S_(t){return`?${d_.encrypt(t,sg.parse(m_),{mode:g_,padding:v_,iv:sg.parse(y_)}).toString()}`}const lg={MUSIC:"MUSIC_WIKI",INSTRUMENT:"INSTRUMENT",MUSICIAN:"MUSICIAN",THEORY:"THEORY"};function b_(t,e,r){return di.fromType=="CLASS"?`${wu}/#/pptResources?${`Authorization=${hi()}&pptContentType=${lg[t]}&pptType=${e}&pptId=${r}`}`:`${II}/#/pptResources?${S_(`Authorization=${hi()}&source=admin&pptContentType=${lg[t]}&pptType=${e}&pptId=${r}`)}`}var x_=(t=>(t.ROUND_RECT="roundRect",t.ROUND_RECT_DIAGONAL="roundRectDiagonal",t.ROUND_RECT_SINGLE="roundRectSingle",t.ROUND_RECT_SAMESIDE="roundRectSameSide",t.CUT_RECT_DIAGONAL="cutRectDiagonal",t.CUT_RECT_SINGLE="cutRectSingle",t.CUT_RECT_SAMESIDE="cutRectSameSide",t.CUT_ROUND_RECT="cutRoundRect",t.MESSAGE="message",t.ROUND_MESSAGE="roundMessage",t.L="L",t.RING_RECT="ringRect",t.PLUS="plus",t.TRIANGLE="triangle",t.PARALLELOGRAM_LEFT="parallelogramLeft",t.PARALLELOGRAM_RIGHT="parallelogramRight",t.TRAPEZOID="trapezoid",t.BULLET="bullet",t.INDICATOR="indicator",t))(x_||{}),ar=(t=>(t.TEXT="text",t.IMAGE="image",t.SHAPE="shape",t.LINE="line",t.CHART="chart",t.TABLE="table",t.LATEX="latex",t.ELF="elf",t))(ar||{}),Tr=(t=>(t.VIDEO="elf-video",t.AUDIO="elf-audio",t.SING_PLAY="elf-sing-play",t.ENJOY="elf-enjoy",t.LISTENING_PRACTICE="elf-listening-practice",t.RHYTHM_PRACTICE="elf-rhythm-practice",t.MUSIC_RESOURCES="elf-music-resources",t))(Tr||{});const C_=(t,e)=>ra.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/detail",data:{id:t,fromType:e}}),w_=t=>ra.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/savePptJson",data:t}),T_=t=>ra.axioseRquest({method:"post",url:"/edu-app/chapterKnowledgeMaterial/update",data:t}),G6=(t,e)=>ra.axioseRquest({signal:e.signal,method:"post",url:"/edu-app/material/queryPage",data:t}),W6=()=>ra.axioseRquest({method:"post",url:"/edu-app/subject/list",data:{delFlag:0,page:1,rows:999}}),j6=()=>ra.axioseRquest({method:"get",url:"/edu-app/musicTag/tree"}),K6=()=>ra.axioseRquest({method:"post",url:"/edu-app/materialTag/page",data:{page:1,rows:9999}}),X6=t=>ra.axioseRquest({method:"post",url:"/edu-app/material/favorite",data:t});function I_(t){return new Promise((e,r)=>{_I.get(t).then(n=>{n.status===200&&typeof n.data=="object"?e({code:200,data:n.data}):e({code:500,data:{}})}).catch(()=>{e({code:500,data:{}})})})}function __(t){const e=kt(),{width:r,theme:n,slides:i}=t;e.updateSlideIndex(0),e.setViewportSize(r||1920),e.setViewportRatio(n.viewportRatio||.5625);const a=E_(i);e.setTheme(n),e.setSlides(a.length?a:AI)}function A_(){const t=kt(),{slides:e,theme:r,viewportRatio:n,viewportSize:i,title:a}=t,o={width:i,height:i*n,slides:e,theme:Object.assign(r,{viewportRatio:n})};return{blob:new Blob([JSON.stringify(o)]),title:a}}function E_(t){return(t||[]).map(e=>{var r,n;return((r=e.background)==null?void 0:r.type)==="gradient"&&e.background.gradientType==="linear"&&!((n=e.background)!=null&&n.gradient)&&(e.background.gradient={colors:[{pos:0,color:e.background.gradientColor&&e.background.gradientColor[0]||"rgba(255,255,255,1)"},{pos:100,color:e.background.gradientColor&&e.background.gradientColor[1]||"rgba(255,255,255,1)"}],rotate:e.background.gradientRotate||0,type:e.background.gradientType}),(e.elements||[]).map(i=>{var a,o;i.type==="shape"&&((a=i.gradient)==null?void 0:a.type)=="linear"&&!((o=i.gradient)!=null&&o.colors)&&(i.gradient.colors=[{pos:0,color:i.gradient.color&&i.gradient.color[0]||"rgba(255,255,255,1)"},{pos:100,color:i.gradient.color&&i.gradient.color[1]||"rgba(255,255,255,1)"}])}),e.animations&&(e.animations=(e.animations||[]).filter(i=>i.effect)),e})}var y1={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(mr,function(){return function(r){var n={};function i(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=r,i.c=n,i.d=function(a,o,s){i.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:s})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,o){if(o&1&&(a=i(a)),o&8||o&4&&typeof a=="object"&&a&&a.__esModule)return a;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:a}),o&2&&typeof a!="string")for(var l in a)i.d(s,l,(function(u){return a[u]}).bind(null,l));return s},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="/dist/",i(i.s="./index.js")}({"./index.js":function(r,n,i){var a=i("./src/cos.js");r.exports=a},"./lib/base64.js":function(r,n){var i=function(a){a=a||{};var o=a.Base64,s="2.1.9",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(E){for(var A={},R=0,k=E.length;R<k;R++)A[E.charAt(R)]=R;return A}(l),f=String.fromCharCode,c=function(A){if(A.length<2){var R=A.charCodeAt(0);return R<128?A:R<2048?f(192|R>>>6)+f(128|R&63):f(224|R>>>12&15)+f(128|R>>>6&63)+f(128|R&63)}else{var R=65536+(A.charCodeAt(0)-55296)*1024+(A.charCodeAt(1)-56320);return f(240|R>>>18&7)+f(128|R>>>12&63)+f(128|R>>>6&63)+f(128|R&63)}},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,h=function(A){return A.replace(d,c)},v=function(A){var R=[0,2,1][A.length%3],k=A.charCodeAt(0)<<16|(A.length>1?A.charCodeAt(1):0)<<8|(A.length>2?A.charCodeAt(2):0),D=[l.charAt(k>>>18),l.charAt(k>>>12&63),R>=2?"=":l.charAt(k>>>6&63),R>=1?"=":l.charAt(k&63)];return D.join("")},p=a.btoa?function(E){return a.btoa(E)}:function(E){return E.replace(/[\s\S]{1,3}/g,v)},g=function(E){return p(h(E))},m=function(A,R){return R?g(String(A)).replace(/[+\/]/g,function(k){return k=="+"?"-":"_"}).replace(/=/g,""):g(String(A))},y=function(A){return m(A,!0)},S=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),T=function(A){switch(A.length){case 4:var R=(7&A.charCodeAt(0))<<18|(63&A.charCodeAt(1))<<12|(63&A.charCodeAt(2))<<6|63&A.charCodeAt(3),k=R-65536;return f((k>>>10)+55296)+f((k&1023)+56320);case 3:return f((15&A.charCodeAt(0))<<12|(63&A.charCodeAt(1))<<6|63&A.charCodeAt(2));default:return f((31&A.charCodeAt(0))<<6|63&A.charCodeAt(1))}},P=function(A){return A.replace(S,T)},x=function(A){var R=A.length,k=R%4,D=(R>0?u[A.charAt(0)]<<18:0)|(R>1?u[A.charAt(1)]<<12:0)|(R>2?u[A.charAt(2)]<<6:0)|(R>3?u[A.charAt(3)]:0),O=[f(D>>>16),f(D>>>8&255),f(D&255)];return O.length-=[0,0,2,1][k],O.join("")},_=a.atob?function(E){return a.atob(E)}:function(E){return E.replace(/[\s\S]{1,4}/g,x)},M=function(E){return P(_(E))},C=function(A){return M(String(A).replace(/[-_]/g,function(R){return R=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(){var A=a.Base64;return a.Base64=o,A},b={VERSION:s,atob:_,btoa:p,fromBase64:C,toBase64:m,utob:h,encode:m,encodeURI:y,btou:P,decode:C,noConflict:w};return b}();r.exports=i},"./lib/crypto.js":function(r,n,i){(function(a){var o=i("./node_modules/@babel/runtime/helpers/typeof.js"),s=s||function(l,u){var f={},c=f.lib={},d=function(){},h=c.Base={extend:function(x){d.prototype=this;var _=new d;return x&&_.mixIn(x),_.hasOwnProperty("init")||(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var _ in x)x.hasOwnProperty(_)&&(this[_]=x[_]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}},v=c.WordArray=h.extend({init:function(x,_){x=this.words=x||[],this.sigBytes=_!=u?_:4*x.length},toString:function(x){return(x||g).stringify(this)},concat:function(x){var _=this.words,M=x.words,C=this.sigBytes;if(x=x.sigBytes,this.clamp(),C%4)for(var w=0;w<x;w++)_[C+w>>>2]|=(M[w>>>2]>>>24-8*(w%4)&255)<<24-8*((C+w)%4);else if(65535<M.length)for(w=0;w<x;w+=4)_[C+w>>>2]=M[w>>>2];else _.push.apply(_,M);return this.sigBytes+=x,this},clamp:function(){var x=this.words,_=this.sigBytes;x[_>>>2]&=4294967295<<32-8*(_%4),x.length=l.ceil(_/4)},clone:function(){var x=h.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var _=[],M=0;M<x;M+=4)_.push(4294967296*l.random()|0);return new v.init(_,x)}}),p=f.enc={},g=p.Hex={stringify:function(x){var _=x.words;x=x.sigBytes;for(var M=[],C=0;C<x;C++){var w=_[C>>>2]>>>24-8*(C%4)&255;M.push((w>>>4).toString(16)),M.push((w&15).toString(16))}return M.join("")},parse:function(x){for(var _=x.length,M=[],C=0;C<_;C+=2)M[C>>>3]|=parseInt(x.substr(C,2),16)<<24-4*(C%8);return new v.init(M,_/2)}},m=p.Latin1={stringify:function(x){var _=x.words;x=x.sigBytes;for(var M=[],C=0;C<x;C++)M.push(String.fromCharCode(_[C>>>2]>>>24-8*(C%4)&255));return M.join("")},parse:function(x){for(var _=x.length,M=[],C=0;C<_;C++)M[C>>>2]|=(x.charCodeAt(C)&255)<<24-8*(C%4);return new v.init(M,_)}},y=p.Utf8={stringify:function(x){try{return decodeURIComponent(escape(m.stringify(x)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(x){return m.parse(unescape(encodeURIComponent(x)))}},S=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=y.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var _=this._data,M=_.words,C=_.sigBytes,w=this.blockSize,b=C/(4*w),b=x?l.ceil(b):l.max((b|0)-this._minBufferSize,0);if(x=b*w,C=l.min(4*x,C),x){for(var E=0;E<x;E+=w)this._doProcessBlock(M,E);E=M.splice(0,x),_.sigBytes-=C}return new v.init(E,C)},clone:function(){var x=h.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});c.Hasher=S.extend({cfg:h.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){return x&&this._append(x),this._doFinalize()},blockSize:16,_createHelper:function(x){return function(_,M){return new x.init(M).finalize(_)}},_createHmacHelper:function(x){return function(_,M){return new T.HMAC.init(x,M).finalize(_)}}});var T=f.algo={};return f}(Math);(function(){var l=s,d=l.lib,u=d.WordArray,f=d.Hasher,c=[],d=l.algo.SHA1=f.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,p){for(var g=this._hash.words,m=g[0],y=g[1],S=g[2],T=g[3],P=g[4],x=0;80>x;x++){if(16>x)c[x]=v[p+x]|0;else{var _=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=_<<1|_>>>31}_=(m<<5|m>>>27)+P+c[x],_=20>x?_+((y&S|~y&T)+1518500249):40>x?_+((y^S^T)+1859775393):60>x?_+((y&S|y&T|S&T)-1894007588):_+((y^S^T)-899497514),P=T,T=S,S=y<<30|y>>>2,y=m,m=_}g[0]=g[0]+m|0,g[1]=g[1]+y|0,g[2]=g[2]+S|0,g[3]=g[3]+T|0,g[4]=g[4]+P|0},_doFinalize:function(){var v=this._data,p=v.words,g=8*this._nDataBytes,m=8*v.sigBytes;return p[m>>>5]|=128<<24-m%32,p[(m+64>>>9<<4)+14]=Math.floor(g/4294967296),p[(m+64>>>9<<4)+15]=g,v.sigBytes=4*p.length,this._process(),this._hash},clone:function(){var v=f.clone.call(this);return v._hash=this._hash.clone(),v}});l.SHA1=f._createHelper(d),l.HmacSHA1=f._createHmacHelper(d)})(),function(){var l=s,u=l.enc.Utf8;l.algo.HMAC=l.lib.Base.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=u.parse(d));var h=c.blockSize,v=4*h;d.sigBytes>v&&(d=c.finalize(d)),d.clamp();for(var p=this._oKey=d.clone(),g=this._iKey=d.clone(),m=p.words,y=g.words,S=0;S<h;S++)m[S]^=1549556828,y[S]^=909522486;p.sigBytes=g.sigBytes=v,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var d=this._hasher;return c=d.finalize(c),d.reset(),d.finalize(this._oKey.clone().concat(c))}})}(),function(){var l=s,u=l.lib,f=u.WordArray,c=l.enc;c.Base64={stringify:function(h){var v=h.words,p=h.sigBytes,g=this._map;h.clamp();for(var m=[],y=0;y<p;y+=3)for(var S=v[y>>>2]>>>24-y%4*8&255,T=v[y+1>>>2]>>>24-(y+1)%4*8&255,P=v[y+2>>>2]>>>24-(y+2)%4*8&255,x=S<<16|T<<8|P,_=0;_<4&&y+_*.75<p;_++)m.push(g.charAt(x>>>6*(3-_)&63));var M=g.charAt(64);if(M)for(;m.length%4;)m.push(M);return m.join("")},parse:function(h){var v=h.length,p=this._map,g=p.charAt(64);if(g){var m=h.indexOf(g);m!=-1&&(v=m)}for(var y=[],S=0,T=0;T<v;T++)if(T%4){var P=p.indexOf(h.charAt(T-1))<<T%4*2,x=p.indexOf(h.charAt(T))>>>6-T%4*2;y[S>>>2]|=(P|x)<<24-S%4*8,S++}return f.create(y,S)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),o(a)==="object"?a.exports=s:window.CryptoJS=s}).call(this,i("./node_modules/webpack/buildin/module.js")(r))},"./lib/md5.js":function(r,n,i){(function(a){var o,s=i("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var l=(typeof window>"u"?"undefined":s(window))==="object",u=l?window:{};u.JS_MD5_NO_WINDOW&&(l=!1);var f=!l&&(typeof self>"u"?"undefined":s(self))==="object";f&&(u=self);var c=!u.JS_MD5_NO_COMMON_JS&&s(a)==="object"&&a.exports,d=i("./node_modules/webpack/buildin/amd-options.js"),h=!u.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",v="0123456789abcdef".split(""),p=[128,32768,8388608,-2147483648],g=[0,8,16,24],m=["hex","array","digest","buffer","arrayBuffer","base64"],y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),S=[],T;if(h){var P=new ArrayBuffer(68);T=new Uint8Array(P),S=new Uint32Array(P)}(u.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(w){return Object.prototype.toString.call(w)==="[object Array]"}),h&&(u.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(w){return s(w)==="object"&&w.buffer&&w.buffer.constructor===ArrayBuffer});var x=function(b){return function(E,A){return new M(!0).update(E,A)[b]()}},_=function(){var b=x("hex");b.getCtx=b.create=function(){return new M},b.update=function(R){return b.create().update(R)};for(var E=0;E<m.length;++E){var A=m[E];b[A]=x(A)}return b};function M(w){if(w)S[0]=S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0,this.blocks=S,this.buffer8=T;else if(h){var b=new ArrayBuffer(68);this.buffer8=new Uint8Array(b),this.blocks=new Uint32Array(b)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}M.prototype.update=function(w,b){if(!this.finalized){for(var E,A=0,R,k=w.length,D=this.blocks,O=this.buffer8;A<k;){if(this.hashed&&(this.hashed=!1,D[0]=D[16],D[16]=D[1]=D[2]=D[3]=D[4]=D[5]=D[6]=D[7]=D[8]=D[9]=D[10]=D[11]=D[12]=D[13]=D[14]=D[15]=0),h)for(R=this.start;A<k&&R<64;++A)E=w.charCodeAt(A),b||E<128?O[R++]=E:E<2048?(O[R++]=192|E>>6,O[R++]=128|E&63):E<55296||E>=57344?(O[R++]=224|E>>12,O[R++]=128|E>>6&63,O[R++]=128|E&63):(E=65536+((E&1023)<<10|w.charCodeAt(++A)&1023),O[R++]=240|E>>18,O[R++]=128|E>>12&63,O[R++]=128|E>>6&63,O[R++]=128|E&63);else for(R=this.start;A<k&&R<64;++A)E=w.charCodeAt(A),b||E<128?D[R>>2]|=E<<g[R++&3]:E<2048?(D[R>>2]|=(192|E>>6)<<g[R++&3],D[R>>2]|=(128|E&63)<<g[R++&3]):E<55296||E>=57344?(D[R>>2]|=(224|E>>12)<<g[R++&3],D[R>>2]|=(128|E>>6&63)<<g[R++&3],D[R>>2]|=(128|E&63)<<g[R++&3]):(E=65536+((E&1023)<<10|w.charCodeAt(++A)&1023),D[R>>2]|=(240|E>>18)<<g[R++&3],D[R>>2]|=(128|E>>12&63)<<g[R++&3],D[R>>2]|=(128|E>>6&63)<<g[R++&3],D[R>>2]|=(128|E&63)<<g[R++&3]);this.lastByteIndex=R,this.bytes+=R-this.start,R>=64?(this.start=R-64,this.hash(),this.hashed=!0):this.start=R}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},M.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var w=this.blocks,b=this.lastByteIndex;w[b>>2]|=p[b&3],b>=56&&(this.hashed||this.hash(),w[0]=w[16],w[16]=w[1]=w[2]=w[3]=w[4]=w[5]=w[6]=w[7]=w[8]=w[9]=w[10]=w[11]=w[12]=w[13]=w[14]=w[15]=0),w[14]=this.bytes<<3,w[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},M.prototype.hash=function(){var w,b,E,A,R,k,D=this.blocks;this.first?(w=D[0]-680876937,w=(w<<7|w>>>25)-271733879<<0,A=(-1732584194^w&2004318071)+D[1]-117830708,A=(A<<12|A>>>20)+w<<0,E=(-271733879^A&(w^-271733879))+D[2]-1126478375,E=(E<<17|E>>>15)+A<<0,b=(w^E&(A^w))+D[3]-1316259209,b=(b<<22|b>>>10)+E<<0):(w=this.h0,b=this.h1,E=this.h2,A=this.h3,w+=(A^b&(E^A))+D[0]-680876936,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[1]-389564586,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[2]+606105819,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[3]-1044525330,b=(b<<22|b>>>10)+E<<0),w+=(A^b&(E^A))+D[4]-176418897,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[5]+1200080426,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[6]-1473231341,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[7]-45705983,b=(b<<22|b>>>10)+E<<0,w+=(A^b&(E^A))+D[8]+1770035416,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[9]-1958414417,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[10]-42063,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[11]-1990404162,b=(b<<22|b>>>10)+E<<0,w+=(A^b&(E^A))+D[12]+1804603682,w=(w<<7|w>>>25)+b<<0,A+=(E^w&(b^E))+D[13]-40341101,A=(A<<12|A>>>20)+w<<0,E+=(b^A&(w^b))+D[14]-1502002290,E=(E<<17|E>>>15)+A<<0,b+=(w^E&(A^w))+D[15]+1236535329,b=(b<<22|b>>>10)+E<<0,w+=(E^A&(b^E))+D[1]-165796510,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[6]-1069501632,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[11]+643717713,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[0]-373897302,b=(b<<20|b>>>12)+E<<0,w+=(E^A&(b^E))+D[5]-701558691,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[10]+38016083,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[15]-660478335,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[4]-405537848,b=(b<<20|b>>>12)+E<<0,w+=(E^A&(b^E))+D[9]+568446438,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[14]-1019803690,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[3]-187363961,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[8]+1163531501,b=(b<<20|b>>>12)+E<<0,w+=(E^A&(b^E))+D[13]-1444681467,w=(w<<5|w>>>27)+b<<0,A+=(b^E&(w^b))+D[2]-51403784,A=(A<<9|A>>>23)+w<<0,E+=(w^b&(A^w))+D[7]+1735328473,E=(E<<14|E>>>18)+A<<0,b+=(A^w&(E^A))+D[12]-1926607734,b=(b<<20|b>>>12)+E<<0,R=b^E,w+=(R^A)+D[5]-378558,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[8]-2022574463,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[11]+1839030562,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[14]-35309556,b=(b<<23|b>>>9)+E<<0,R=b^E,w+=(R^A)+D[1]-1530992060,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[4]+1272893353,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[7]-155497632,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[10]-1094730640,b=(b<<23|b>>>9)+E<<0,R=b^E,w+=(R^A)+D[13]+681279174,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[0]-358537222,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[3]-722521979,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[6]+76029189,b=(b<<23|b>>>9)+E<<0,R=b^E,w+=(R^A)+D[9]-640364487,w=(w<<4|w>>>28)+b<<0,A+=(R^w)+D[12]-421815835,A=(A<<11|A>>>21)+w<<0,k=A^w,E+=(k^b)+D[15]+530742520,E=(E<<16|E>>>16)+A<<0,b+=(k^E)+D[2]-995338651,b=(b<<23|b>>>9)+E<<0,w+=(E^(b|~A))+D[0]-198630844,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[7]+1126891415,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[14]-1416354905,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[5]-57434055,b=(b<<21|b>>>11)+E<<0,w+=(E^(b|~A))+D[12]+1700485571,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[3]-1894986606,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[10]-1051523,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[1]-2054922799,b=(b<<21|b>>>11)+E<<0,w+=(E^(b|~A))+D[8]+1873313359,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[15]-30611744,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[6]-1560198380,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[13]+1309151649,b=(b<<21|b>>>11)+E<<0,w+=(E^(b|~A))+D[4]-145523070,w=(w<<6|w>>>26)+b<<0,A+=(b^(w|~E))+D[11]-1120210379,A=(A<<10|A>>>22)+w<<0,E+=(w^(A|~b))+D[2]+718787259,E=(E<<15|E>>>17)+A<<0,b+=(A^(E|~w))+D[9]-343485551,b=(b<<21|b>>>11)+E<<0,this.first?(this.h0=w+1732584193<<0,this.h1=b-271733879<<0,this.h2=E-1732584194<<0,this.h3=A+271733878<<0,this.first=!1):(this.h0=this.h0+w<<0,this.h1=this.h1+b<<0,this.h2=this.h2+E<<0,this.h3=this.h3+A<<0)},M.prototype.hex=function(){this.finalize();var w=this.h0,b=this.h1,E=this.h2,A=this.h3;return v[w>>4&15]+v[w&15]+v[w>>12&15]+v[w>>8&15]+v[w>>20&15]+v[w>>16&15]+v[w>>28&15]+v[w>>24&15]+v[b>>4&15]+v[b&15]+v[b>>12&15]+v[b>>8&15]+v[b>>20&15]+v[b>>16&15]+v[b>>28&15]+v[b>>24&15]+v[E>>4&15]+v[E&15]+v[E>>12&15]+v[E>>8&15]+v[E>>20&15]+v[E>>16&15]+v[E>>28&15]+v[E>>24&15]+v[A>>4&15]+v[A&15]+v[A>>12&15]+v[A>>8&15]+v[A>>20&15]+v[A>>16&15]+v[A>>28&15]+v[A>>24&15]},M.prototype.toString=M.prototype.hex,M.prototype.digest=function(w){if(w==="hex")return this.hex();this.finalize();var b=this.h0,E=this.h1,A=this.h2,R=this.h3,k=[b&255,b>>8&255,b>>16&255,b>>24&255,E&255,E>>8&255,E>>16&255,E>>24&255,A&255,A>>8&255,A>>16&255,A>>24&255,R&255,R>>8&255,R>>16&255,R>>24&255];return k},M.prototype.array=M.prototype.digest,M.prototype.arrayBuffer=function(){this.finalize();var w=new ArrayBuffer(16),b=new Uint32Array(w);return b[0]=this.h0,b[1]=this.h1,b[2]=this.h2,b[3]=this.h3,w},M.prototype.buffer=M.prototype.arrayBuffer,M.prototype.base64=function(){for(var w,b,E,A="",R=this.array(),k=0;k<15;)w=R[k++],b=R[k++],E=R[k++],A+=y[w>>>2]+y[(w<<4|b>>>4)&63]+y[(b<<2|E>>>6)&63]+y[E&63];return w=R[k],A+=y[w>>>2]+y[w<<4&63]+"==",A};var C=_();c?a.exports=C:(u.md5=C,d&&(o=(function(){return C}).call(C,i,C,a),o!==void 0&&(a.exports=o)))})()}).call(this,i("./node_modules/webpack/buildin/module.js")(r))},"./lib/request.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/typeof.js"),o=function(d){switch(a(d)){case"string":return d;case"boolean":return d?"true":"false";case"number":return isFinite(d)?d:"";default:return""}},s=function(d,h,v,p){return h=h||"&",v=v||"=",d===null&&(d=void 0),a(d)==="object"?Object.keys(d).map(function(g){var m=encodeURIComponent(o(g))+v;return Array.isArray(d[g])?d[g].map(function(y){return m+encodeURIComponent(o(y))}).join(h):m+encodeURIComponent(o(d[g]))}).filter(Boolean).join(h):""},l=function(d,h,v){var p={},g=h.getAllResponseHeaders();return g&&g.length>0&&g.trim().split(`
  20. `).forEach(function(m){if(m){var y=m.indexOf(":"),S=m.substr(0,y).trim().toLowerCase(),T=m.substr(y+1).trim();p[S]=T}}),{error:d,statusCode:h.status,statusMessage:h.statusText,headers:p,body:v}},u=function(d,h){return!h&&h==="text"?d.responseText:d.response},f=function(d,h){var v=(d.method||"GET").toUpperCase(),p=d.url;if(d.qs){var g=s(d.qs);g&&(p+=(p.indexOf("?")===-1?"?":"&")+g)}var m=new XMLHttpRequest;if(m.open(v,p,!0),m.responseType=d.dataType||"text",d.xhrFields)for(var y in d.xhrFields)m[y]=d.xhrFields[y];var S=d.headers;if(S)for(var T in S)S.hasOwnProperty(T)&&T.toLowerCase()!=="content-length"&&T.toLowerCase()!=="user-agent"&&T.toLowerCase()!=="origin"&&T.toLowerCase()!=="host"&&m.setRequestHeader(T,S[T]);return d.onProgress&&m.upload&&(m.upload.onprogress=d.onProgress),d.onDownloadProgress&&(m.onprogress=d.onDownloadProgress),d.timeout&&(m.timeout=d.timeout),m.ontimeout=function(P){var x=new Error("timeout");h(l(x,m))},m.onload=function(){h(l(null,m,u(m,d.dataType)))},m.onerror=function(P){var x=u(m,d.dataType);if(x)h(l(null,m,x));else{var _=m.statusText;!_&&m.status===0&&(_=new Error("CORS blocked or network error")),h(l(_,m,x))}},m.send(d.body||""),m};r.exports=f},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(r,n){function i(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function o(l,u){for(var f=0;f<u.length;f++){var c=u[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,a(c.key),c)}}function s(l,u,f){return u&&o(l.prototype,u),f&&o(l,f),Object.defineProperty(l,"prototype",{writable:!1}),l}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/typeof.js").default;function o(s,l){if(a(s)!=="object"||s===null)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,l||"default");if(a(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(s)}r.exports=o,r.exports.__esModule=!0,r.exports.default=r.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/typeof.js").default,o=i("./node_modules/@babel/runtime/helpers/toPrimitive.js");function s(l){var u=o(l,"string");return a(u)==="symbol"?u:String(u)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(r,n){function i(a){"@babel/helpers - typeof";return r.exports=i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r.exports.__esModule=!0,r.exports.default=r.exports,i(a)}r.exports=i,r.exports.__esModule=!0,r.exports.default=r.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(r,n,i){const a=i("./node_modules/fast-xml-parser/src/validator.js"),o=i("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),s=i("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");r.exports={XMLParser:o,XMLValidator:a,XMLBuilder:s}},"./node_modules/fast-xml-parser/src/util.js":function(r,n,i){const a=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=a+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",s="["+a+"]["+o+"]*",l=new RegExp("^"+s+"$"),u=function(c,d){const h=[];let v=d.exec(c);for(;v;){const p=[];p.startIndex=d.lastIndex-v[0].length;const g=v.length;for(let m=0;m<g;m++)p.push(v[m]);h.push(p),v=d.exec(c)}return h},f=function(c){const d=l.exec(c);return!(d===null||typeof d>"u")};n.isExist=function(c){return typeof c<"u"},n.isEmptyObject=function(c){return Object.keys(c).length===0},n.merge=function(c,d,h){if(d){const v=Object.keys(d),p=v.length;for(let g=0;g<p;g++)h==="strict"?c[v[g]]=[d[v[g]]]:c[v[g]]=d[v[g]]}},n.getValue=function(c){return n.isExist(c)?c:""},n.isName=f,n.getAllMatches=u,n.nameRegexp=s},"./node_modules/fast-xml-parser/src/validator.js":function(r,n,i){const a=i("./node_modules/fast-xml-parser/src/util.js"),o={allowBooleanAttributes:!1,unpairedTags:[]};n.validate=function(x,_){_=Object.assign({},o,_);const M=[];let C=!1,w=!1;x[0]==="\uFEFF"&&(x=x.substr(1));for(let b=0;b<x.length;b++)if(x[b]==="<"&&x[b+1]==="?"){if(b+=2,b=l(x,b),b.err)return b}else if(x[b]==="<"){let E=b;if(b++,x[b]==="!"){b=u(x,b);continue}else{let A=!1;x[b]==="/"&&(A=!0,b++);let R="";for(;b<x.length&&x[b]!==">"&&x[b]!==" "&&x[b]!==" "&&x[b]!==`
  21. `&&x[b]!=="\r";b++)R+=x[b];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),b--),!S(R)){let O;return R.trim().length===0?O="Invalid space after '<'.":O="Tag '"+R+"' is an invalid name.",m("InvalidTag",O,T(x,b))}const k=d(x,b);if(k===!1)return m("InvalidAttr","Attributes for '"+R+"' have open quote.",T(x,b));let D=k.value;if(b=k.index,D[D.length-1]==="/"){const O=b-D.length;D=D.substring(0,D.length-1);const $=v(D,_);if($===!0)C=!0;else return m($.err.code,$.err.msg,T(x,O+$.err.line))}else if(A)if(k.tagClosed){if(D.trim().length>0)return m("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",T(x,E));if(M.length===0)return m("InvalidTag","Closing tag '"+R+"' has not been opened.",T(x,E));{const O=M.pop();if(R!==O.tagName){let $=T(x,O.tagStartPos);return m("InvalidTag","Expected closing tag '"+O.tagName+"' (opened in line "+$.line+", col "+$.col+") instead of closing tag '"+R+"'.",T(x,E))}M.length==0&&(w=!0)}}else return m("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",T(x,b));else{const O=v(D,_);if(O!==!0)return m(O.err.code,O.err.msg,T(x,b-D.length+O.err.line));if(w===!0)return m("InvalidXml","Multiple possible root nodes found.",T(x,b));_.unpairedTags.indexOf(R)!==-1||M.push({tagName:R,tagStartPos:E}),C=!0}for(b++;b<x.length;b++)if(x[b]==="<")if(x[b+1]==="!"){b++,b=u(x,b);continue}else if(x[b+1]==="?"){if(b=l(x,++b),b.err)return b}else break;else if(x[b]==="&"){const O=g(x,b);if(O==-1)return m("InvalidChar","char '&' is not expected.",T(x,b));b=O}else if(w===!0&&!s(x[b]))return m("InvalidXml","Extra text at the end",T(x,b));x[b]==="<"&&b--}}else{if(s(x[b]))continue;return m("InvalidChar","char '"+x[b]+"' is not expected.",T(x,b))}if(C){if(M.length==1)return m("InvalidTag","Unclosed tag '"+M[0].tagName+"'.",T(x,M[0].tagStartPos));if(M.length>0)return m("InvalidXml","Invalid '"+JSON.stringify(M.map(b=>b.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return m("InvalidXml","Start tag expected.",1);return!0};function s(x){return x===" "||x===" "||x===`
  22. `||x==="\r"}function l(x,_){const M=_;for(;_<x.length;_++)if(x[_]=="?"||x[_]==" "){const C=x.substr(M,_-M);if(_>5&&C==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",T(x,_));if(x[_]=="?"&&x[_+1]==">"){_++;break}else continue}return _}function u(x,_){if(x.length>_+5&&x[_+1]==="-"&&x[_+2]==="-"){for(_+=3;_<x.length;_++)if(x[_]==="-"&&x[_+1]==="-"&&x[_+2]===">"){_+=2;break}}else if(x.length>_+8&&x[_+1]==="D"&&x[_+2]==="O"&&x[_+3]==="C"&&x[_+4]==="T"&&x[_+5]==="Y"&&x[_+6]==="P"&&x[_+7]==="E"){let M=1;for(_+=8;_<x.length;_++)if(x[_]==="<")M++;else if(x[_]===">"&&(M--,M===0))break}else if(x.length>_+9&&x[_+1]==="["&&x[_+2]==="C"&&x[_+3]==="D"&&x[_+4]==="A"&&x[_+5]==="T"&&x[_+6]==="A"&&x[_+7]==="["){for(_+=8;_<x.length;_++)if(x[_]==="]"&&x[_+1]==="]"&&x[_+2]===">"){_+=2;break}}return _}const f='"',c="'";function d(x,_){let M="",C="",w=!1;for(;_<x.length;_++){if(x[_]===f||x[_]===c)C===""?C=x[_]:C!==x[_]||(C="");else if(x[_]===">"&&C===""){w=!0;break}M+=x[_]}return C!==""?!1:{value:M,index:_,tagClosed:w}}const h=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function v(x,_){const M=a.getAllMatches(x,h),C={};for(let w=0;w<M.length;w++){if(M[w][1].length===0)return m("InvalidAttr","Attribute '"+M[w][2]+"' has no space in starting.",P(M[w]));if(M[w][3]!==void 0&&M[w][4]===void 0)return m("InvalidAttr","Attribute '"+M[w][2]+"' is without value.",P(M[w]));if(M[w][3]===void 0&&!_.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+M[w][2]+"' is not allowed.",P(M[w]));const b=M[w][2];if(!y(b))return m("InvalidAttr","Attribute '"+b+"' is an invalid name.",P(M[w]));if(!C.hasOwnProperty(b))C[b]=1;else return m("InvalidAttr","Attribute '"+b+"' is repeated.",P(M[w]))}return!0}function p(x,_){let M=/\d/;for(x[_]==="x"&&(_++,M=/[\da-fA-F]/);_<x.length;_++){if(x[_]===";")return _;if(!x[_].match(M))break}return-1}function g(x,_){if(_++,x[_]===";")return-1;if(x[_]==="#")return _++,p(x,_);let M=0;for(;_<x.length;_++,M++)if(!(x[_].match(/\w/)&&M<20)){if(x[_]===";")break;return-1}return _}function m(x,_,M){return{err:{code:x,msg:_,line:M.line||M,col:M.col}}}function y(x){return a.isName(x)}function S(x){return a.isName(x)}function T(x,_){const M=x.substring(0,_).split(/\r?\n/);return{line:M.length,col:M[M.length-1].length+1}}function P(x){return x.startIndex+x[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(r,n,i){const a=i("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),o={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(c,d){return d},attributeValueProcessor:function(c,d){return d},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function s(c){this.options=Object.assign({},o,c),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f),this.processTextOrObjNode=l,this.options.format?(this.indentate=u,this.tagEndChar=`>
  23. `,this.newLine=`
  24. `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}s.prototype.build=function(c){return this.options.preserveOrder?a(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c={[this.options.arrayNodeName]:c}),this.j2x(c,0).val)},s.prototype.j2x=function(c,d){let h="",v="";for(let p in c)if(Object.prototype.hasOwnProperty.call(c,p))if(typeof c[p]>"u")this.isAttribute(p)&&(v+="");else if(c[p]===null)this.isAttribute(p)?v+="":p[0]==="?"?v+=this.indentate(d)+"<"+p+"?"+this.tagEndChar:v+=this.indentate(d)+"<"+p+"/"+this.tagEndChar;else if(c[p]instanceof Date)v+=this.buildTextValNode(c[p],p,"",d);else if(typeof c[p]!="object"){const g=this.isAttribute(p);if(g)h+=this.buildAttrPairStr(g,""+c[p]);else if(p===this.options.textNodeName){let m=this.options.tagValueProcessor(p,""+c[p]);v+=this.replaceEntitiesValue(m)}else v+=this.buildTextValNode(c[p],p,"",d)}else if(Array.isArray(c[p])){const g=c[p].length;let m="";for(let y=0;y<g;y++){const S=c[p][y];typeof S>"u"||(S===null?p[0]==="?"?v+=this.indentate(d)+"<"+p+"?"+this.tagEndChar:v+=this.indentate(d)+"<"+p+"/"+this.tagEndChar:typeof S=="object"?this.options.oneListGroup?m+=this.j2x(S,d+1).val:m+=this.processTextOrObjNode(S,p,d):m+=this.buildTextValNode(S,p,"",d))}this.options.oneListGroup&&(m=this.buildObjectNode(m,p,"",d)),v+=m}else if(this.options.attributesGroupName&&p===this.options.attributesGroupName){const g=Object.keys(c[p]),m=g.length;for(let y=0;y<m;y++)h+=this.buildAttrPairStr(g[y],""+c[p][g[y]])}else v+=this.processTextOrObjNode(c[p],p,d);return{attrStr:h,val:v}},s.prototype.buildAttrPairStr=function(c,d){return d=this.options.attributeValueProcessor(c,""+d),d=this.replaceEntitiesValue(d),this.options.suppressBooleanAttributes&&d==="true"?" "+c:" "+c+'="'+d+'"'};function l(c,d,h){const v=this.j2x(c,h+1);return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],d,v.attrStr,h):this.buildObjectNode(v.val,d,v.attrStr,h)}s.prototype.buildObjectNode=function(c,d,h,v){if(c==="")return d[0]==="?"?this.indentate(v)+"<"+d+h+"?"+this.tagEndChar:this.indentate(v)+"<"+d+h+this.closeTag(d)+this.tagEndChar;{let p="</"+d+this.tagEndChar,g="";return d[0]==="?"&&(g="?",p=""),(h||h==="")&&c.indexOf("<")===-1?this.indentate(v)+"<"+d+h+g+">"+c+p:this.options.commentPropName!==!1&&d===this.options.commentPropName&&g.length===0?this.indentate(v)+`<!--${c}-->`+this.newLine:this.indentate(v)+"<"+d+h+g+this.tagEndChar+c+this.indentate(v)+p}},s.prototype.closeTag=function(c){let d="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(d="/"):this.options.suppressEmptyNode?d="/":d=`></${c}`,d},s.prototype.buildTextValNode=function(c,d,h,v){if(this.options.cdataPropName!==!1&&d===this.options.cdataPropName)return this.indentate(v)+`<![CDATA[${c}]]>`+this.newLine;if(this.options.commentPropName!==!1&&d===this.options.commentPropName)return this.indentate(v)+`<!--${c}-->`+this.newLine;if(d[0]==="?")return this.indentate(v)+"<"+d+h+"?"+this.tagEndChar;{let p=this.options.tagValueProcessor(d,c);return p=this.replaceEntitiesValue(p),p===""?this.indentate(v)+"<"+d+h+this.closeTag(d)+this.tagEndChar:this.indentate(v)+"<"+d+h+">"+p+"</"+d+this.tagEndChar}},s.prototype.replaceEntitiesValue=function(c){if(c&&c.length>0&&this.options.processEntities)for(let d=0;d<this.options.entities.length;d++){const h=this.options.entities[d];c=c.replace(h.regex,h.val)}return c};function u(c){return this.options.indentBy.repeat(c)}function f(c){return c.startsWith(this.options.attributeNamePrefix)&&c!==this.options.textNodeName?c.substr(this.attrPrefixLen):!1}r.exports=s},"./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js":function(r,n){const i=`
  25. `;function a(c,d){let h="";return d.format&&d.indentBy.length>0&&(h=i),o(c,d,"",h)}function o(c,d,h,v){let p="",g=!1;for(let m=0;m<c.length;m++){const y=c[m],S=s(y);if(S===void 0)continue;let T="";if(h.length===0?T=S:T=`${h}.${S}`,S===d.textNodeName){let C=y[S];u(T,d)||(C=d.tagValueProcessor(S,C),C=f(C,d)),g&&(p+=v),p+=C,g=!1;continue}else if(S===d.cdataPropName){g&&(p+=v),p+=`<![CDATA[${y[S][0][d.textNodeName]}]]>`,g=!1;continue}else if(S===d.commentPropName){p+=v+`<!--${y[S][0][d.textNodeName]}-->`,g=!0;continue}else if(S[0]==="?"){const C=l(y[":@"],d),w=S==="?xml"?"":v;let b=y[S][0][d.textNodeName];b=b.length!==0?" "+b:"",p+=w+`<${S}${b}${C}?>`,g=!0;continue}let P=v;P!==""&&(P+=d.indentBy);const x=l(y[":@"],d),_=v+`<${S}${x}`,M=o(y[S],d,T,P);d.unpairedTags.indexOf(S)!==-1?d.suppressUnpairedNode?p+=_+">":p+=_+"/>":(!M||M.length===0)&&d.suppressEmptyNode?p+=_+"/>":M&&M.endsWith(">")?p+=_+`>${M}${v}</${S}>`:(p+=_+">",M&&v!==""&&(M.includes("/>")||M.includes("</"))?p+=v+d.indentBy+M+v:p+=M,p+=`</${S}>`),g=!0}return p}function s(c){const d=Object.keys(c);for(let h=0;h<d.length;h++){const v=d[h];if(c.hasOwnProperty(v)&&v!==":@")return v}}function l(c,d){let h="";if(c&&!d.ignoreAttributes)for(let v in c){if(!c.hasOwnProperty(v))continue;let p=d.attributeValueProcessor(v,c[v]);p=f(p,d),p===!0&&d.suppressBooleanAttributes?h+=` ${v.substr(d.attributeNamePrefix.length)}`:h+=` ${v.substr(d.attributeNamePrefix.length)}="${p}"`}return h}function u(c,d){c=c.substr(0,c.length-d.textNodeName.length-1);let h=c.substr(c.lastIndexOf(".")+1);for(let v in d.stopNodes)if(d.stopNodes[v]===c||d.stopNodes[v]==="*."+h)return!0;return!1}function f(c,d){if(c&&c.length>0&&d.processEntities)for(let h=0;h<d.entities.length;h++){const v=d.entities[h];c=c.replace(v.regex,v.val)}return c}r.exports=a},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(r,n,i){const a=i("./node_modules/fast-xml-parser/src/util.js");function o(v,p){const g={};if(v[p+3]==="O"&&v[p+4]==="C"&&v[p+5]==="T"&&v[p+6]==="Y"&&v[p+7]==="P"&&v[p+8]==="E"){p=p+9;let m=1,y=!1,S=!1,T="";for(;p<v.length;p++)if(v[p]==="<"&&!S){if(y&&u(v,p))p+=7,[entityName,val,p]=s(v,p+1),val.indexOf("&")===-1&&(g[h(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(y&&f(v,p))p+=8;else if(y&&c(v,p))p+=8;else if(y&&d(v,p))p+=9;else if(l)S=!0;else throw new Error("Invalid DOCTYPE");m++,T=""}else if(v[p]===">"){if(S?v[p-1]==="-"&&v[p-2]==="-"&&(S=!1,m--):m--,m===0)break}else v[p]==="["?y=!0:T+=v[p];if(m!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:g,i:p}}function s(v,p){let g="";for(;p<v.length&&v[p]!=="'"&&v[p]!=='"';p++)g+=v[p];if(g=g.trim(),g.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=v[p++];let y="";for(;p<v.length&&v[p]!==m;p++)y+=v[p];return[g,y,p]}function l(v,p){return v[p+1]==="!"&&v[p+2]==="-"&&v[p+3]==="-"}function u(v,p){return v[p+1]==="!"&&v[p+2]==="E"&&v[p+3]==="N"&&v[p+4]==="T"&&v[p+5]==="I"&&v[p+6]==="T"&&v[p+7]==="Y"}function f(v,p){return v[p+1]==="!"&&v[p+2]==="E"&&v[p+3]==="L"&&v[p+4]==="E"&&v[p+5]==="M"&&v[p+6]==="E"&&v[p+7]==="N"&&v[p+8]==="T"}function c(v,p){return v[p+1]==="!"&&v[p+2]==="A"&&v[p+3]==="T"&&v[p+4]==="T"&&v[p+5]==="L"&&v[p+6]==="I"&&v[p+7]==="S"&&v[p+8]==="T"}function d(v,p){return v[p+1]==="!"&&v[p+2]==="N"&&v[p+3]==="O"&&v[p+4]==="T"&&v[p+5]==="A"&&v[p+6]==="T"&&v[p+7]==="I"&&v[p+8]==="O"&&v[p+9]==="N"}function h(v){if(a.isName(v))return v;throw new Error(`Invalid entity name ${v}`)}r.exports=o},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(r,n){const i={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(o,s){return s},attributeValueProcessor:function(o,s){return s},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(o,s,l){return o}},a=function(o){return Object.assign({},i,o)};n.buildOptions=a,n.defaultOptions=i},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(r,n,i){const a=i("./node_modules/fast-xml-parser/src/util.js"),o=i("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),s=i("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),l=i("./node_modules/strnum/strnum.js");class u{constructor(w){this.options=w,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(b,E)=>String.fromCharCode(Number.parseInt(E,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(b,E)=>String.fromCharCode(Number.parseInt(E,16))}},this.addExternalEntities=f,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=d,this.buildAttributesMap=v,this.isItStopNode=S,this.replaceEntitiesValue=m,this.readStopNodeData=_,this.saveTextToParentTag=y,this.addChild=g}}function f(C){const w=Object.keys(C);for(let b=0;b<w.length;b++){const E=w[b];this.lastEntities[E]={regex:new RegExp("&"+E+";","g"),val:C[E]}}}function c(C,w,b,E,A,R,k){if(C!==void 0&&(this.options.trimValues&&!E&&(C=C.trim()),C.length>0)){k||(C=this.replaceEntitiesValue(C));const D=this.options.tagValueProcessor(w,C,b,A,R);return D==null?C:typeof D!=typeof C||D!==C?D:this.options.trimValues?M(C,this.options.parseTagValue,this.options.numberParseOptions):C.trim()===C?M(C,this.options.parseTagValue,this.options.numberParseOptions):C}}function d(C){if(this.options.removeNSPrefix){const w=C.split(":"),b=C.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";w.length===2&&(C=b+w[1])}return C}const h=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function v(C,w,b){if(!this.options.ignoreAttributes&&typeof C=="string"){const E=a.getAllMatches(C,h),A=E.length,R={};for(let k=0;k<A;k++){const D=this.resolveNameSpace(E[k][1]);let O=E[k][4],$=this.options.attributeNamePrefix+D;if(D.length)if(this.options.transformAttributeName&&($=this.options.transformAttributeName($)),$==="__proto__"&&($="#__proto__"),O!==void 0){this.options.trimValues&&(O=O.trim()),O=this.replaceEntitiesValue(O);const U=this.options.attributeValueProcessor(D,O,w);U==null?R[$]=O:typeof U!=typeof O||U!==O?R[$]=U:R[$]=M(O,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(R[$]=!0)}if(!Object.keys(R).length)return;if(this.options.attributesGroupName){const k={};return k[this.options.attributesGroupName]=R,k}return R}}const p=function(C){C=C.replace(/\r\n?/g,`
  26. `);const w=new o("!xml");let b=w,E="",A="";for(let R=0;R<C.length;R++)if(C[R]==="<")if(C[R+1]==="/"){const D=P(C,">",R,"Closing Tag is not closed.");let O=C.substring(R+2,D).trim();if(this.options.removeNSPrefix){const q=O.indexOf(":");q!==-1&&(O=O.substr(q+1))}this.options.transformTagName&&(O=this.options.transformTagName(O)),b&&(E=this.saveTextToParentTag(E,b,A));const $=A.substring(A.lastIndexOf(".")+1);if(O&&this.options.unpairedTags.indexOf(O)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${O}>`);let U=0;$&&this.options.unpairedTags.indexOf($)!==-1?(U=A.lastIndexOf(".",A.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=A.lastIndexOf("."),A=A.substring(0,U),b=this.tagsNodeStack.pop(),E="",R=D}else if(C[R+1]==="?"){let D=x(C,R,!1,"?>");if(!D)throw new Error("Pi Tag is not closed.");if(E=this.saveTextToParentTag(E,b,A),!(this.options.ignoreDeclaration&&D.tagName==="?xml"||this.options.ignorePiTags)){const O=new o(D.tagName);O.add(this.options.textNodeName,""),D.tagName!==D.tagExp&&D.attrExpPresent&&(O[":@"]=this.buildAttributesMap(D.tagExp,A,D.tagName)),this.addChild(b,O,A)}R=D.closeIndex+1}else if(C.substr(R+1,3)==="!--"){const D=P(C,"-->",R+4,"Comment is not closed.");if(this.options.commentPropName){const O=C.substring(R+4,D-2);E=this.saveTextToParentTag(E,b,A),b.add(this.options.commentPropName,[{[this.options.textNodeName]:O}])}R=D}else if(C.substr(R+1,2)==="!D"){const D=s(C,R);this.docTypeEntities=D.entities,R=D.i}else if(C.substr(R+1,2)==="!["){const D=P(C,"]]>",R,"CDATA is not closed.")-2,O=C.substring(R+9,D);E=this.saveTextToParentTag(E,b,A);let $=this.parseTextData(O,b.tagname,A,!0,!1,!0,!0);$==null&&($=""),this.options.cdataPropName?b.add(this.options.cdataPropName,[{[this.options.textNodeName]:O}]):b.add(this.options.textNodeName,$),R=D+2}else{let D=x(C,R,this.options.removeNSPrefix),O=D.tagName;const $=D.rawTagName;let U=D.tagExp,q=D.attrExpPresent,H=D.closeIndex;this.options.transformTagName&&(O=this.options.transformTagName(O)),b&&E&&b.tagname!=="!xml"&&(E=this.saveTextToParentTag(E,b,A,!1));const N=b;if(N&&this.options.unpairedTags.indexOf(N.tagname)!==-1&&(b=this.tagsNodeStack.pop(),A=A.substring(0,A.lastIndexOf("."))),O!==w.tagname&&(A+=A?"."+O:O),this.isItStopNode(this.options.stopNodes,A,O)){let G="";if(U.length>0&&U.lastIndexOf("/")===U.length-1)O[O.length-1]==="/"?(O=O.substr(0,O.length-1),A=A.substr(0,A.length-1),U=O):U=U.substr(0,U.length-1),R=D.closeIndex;else if(this.options.unpairedTags.indexOf(O)!==-1)R=D.closeIndex;else{const oe=this.readStopNodeData(C,$,H+1);if(!oe)throw new Error(`Unexpected end of ${$}`);R=oe.i,G=oe.tagContent}const j=new o(O);O!==U&&q&&(j[":@"]=this.buildAttributesMap(U,A,O)),G&&(G=this.parseTextData(G,O,A,!0,q,!0,!0)),A=A.substr(0,A.lastIndexOf(".")),j.add(this.options.textNodeName,G),this.addChild(b,j,A)}else{if(U.length>0&&U.lastIndexOf("/")===U.length-1){O[O.length-1]==="/"?(O=O.substr(0,O.length-1),A=A.substr(0,A.length-1),U=O):U=U.substr(0,U.length-1),this.options.transformTagName&&(O=this.options.transformTagName(O));const G=new o(O);O!==U&&q&&(G[":@"]=this.buildAttributesMap(U,A,O)),this.addChild(b,G,A),A=A.substr(0,A.lastIndexOf("."))}else{const G=new o(O);this.tagsNodeStack.push(b),O!==U&&q&&(G[":@"]=this.buildAttributesMap(U,A,O)),this.addChild(b,G,A),b=G}E="",R=H}}else E+=C[R];return w.child};function g(C,w,b){const E=this.options.updateTag(w.tagname,b,w[":@"]);E===!1||(typeof E=="string"&&(w.tagname=E),C.addChild(w))}const m=function(C){if(this.options.processEntities){for(let w in this.docTypeEntities){const b=this.docTypeEntities[w];C=C.replace(b.regx,b.val)}for(let w in this.lastEntities){const b=this.lastEntities[w];C=C.replace(b.regex,b.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const b=this.htmlEntities[w];C=C.replace(b.regex,b.val)}C=C.replace(this.ampEntity.regex,this.ampEntity.val)}return C};function y(C,w,b,E){return C&&(E===void 0&&(E=Object.keys(w.child).length===0),C=this.parseTextData(C,w.tagname,b,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,E),C!==void 0&&C!==""&&w.add(this.options.textNodeName,C),C=""),C}function S(C,w,b){const E="*."+b;for(const A in C){const R=C[A];if(E===R||w===R)return!0}return!1}function T(C,w,b=">"){let E,A="";for(let R=w;R<C.length;R++){let k=C[R];if(E)k===E&&(E="");else if(k==='"'||k==="'")E=k;else if(k===b[0])if(b[1]){if(C[R+1]===b[1])return{data:A,index:R}}else return{data:A,index:R};else k===" "&&(k=" ");A+=k}}function P(C,w,b,E){const A=C.indexOf(w,b);if(A===-1)throw new Error(E);return A+w.length-1}function x(C,w,b,E=">"){const A=T(C,w+1,E);if(!A)return;let R=A.data;const k=A.index,D=R.search(/\s/);let O=R,$=!0;D!==-1&&(O=R.substring(0,D),R=R.substring(D+1).trimStart());const U=O;if(b){const q=O.indexOf(":");q!==-1&&(O=O.substr(q+1),$=O!==A.data.substr(q+1))}return{tagName:O,tagExp:R,closeIndex:k,attrExpPresent:$,rawTagName:U}}function _(C,w,b){const E=b;let A=1;for(;b<C.length;b++)if(C[b]==="<")if(C[b+1]==="/"){const R=P(C,">",b,`${w} is not closed`);if(C.substring(b+2,R).trim()===w&&(A--,A===0))return{tagContent:C.substring(E,b),i:R};b=R}else if(C[b+1]==="?")b=P(C,"?>",b+1,"StopNode is not closed.");else if(C.substr(b+1,3)==="!--")b=P(C,"-->",b+3,"StopNode is not closed.");else if(C.substr(b+1,2)==="![")b=P(C,"]]>",b,"StopNode is not closed.")-2;else{const R=x(C,b,">");R&&((R&&R.tagName)===w&&R.tagExp[R.tagExp.length-1]!=="/"&&A++,b=R.closeIndex)}}function M(C,w,b){if(w&&typeof C=="string"){const E=C.trim();return E==="true"?!0:E==="false"?!1:l(C,b)}else return a.isExist(C)?C:""}r.exports=u},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(r,n,i){const{buildOptions:a}=i("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),o=i("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:s}=i("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),l=i("./node_modules/fast-xml-parser/src/validator.js");class u{constructor(c){this.externalEntities={},this.options=a(c)}parse(c,d){if(typeof c!="string")if(c.toString)c=c.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(d){d===!0&&(d={});const p=l.validate(c,d);if(p!==!0)throw Error(`${p.err.msg}:${p.err.line}:${p.err.col}`)}const h=new o(this.options);h.addExternalEntities(this.externalEntities);const v=h.parseXml(c);return this.options.preserveOrder||v===void 0?v:s(v,this.options)}addEntity(c,d){if(d.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(c.indexOf("&")!==-1||c.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(d==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[c]=d}}r.exports=u},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(r,n,i){function a(f,c){return o(f,c)}function o(f,c,d){let h;const v={};for(let p=0;p<f.length;p++){const g=f[p],m=s(g);let y="";if(d===void 0?y=m:y=d+"."+m,m===c.textNodeName)h===void 0?h=g[m]:h+=""+g[m];else{if(m===void 0)continue;if(g[m]){let S=o(g[m],c,y);const T=u(S,c);g[":@"]?l(S,g[":@"],y,c):Object.keys(S).length===1&&S[c.textNodeName]!==void 0&&!c.alwaysCreateTextNode?S=S[c.textNodeName]:Object.keys(S).length===0&&(c.alwaysCreateTextNode?S[c.textNodeName]="":S=""),v[m]!==void 0&&v.hasOwnProperty(m)?(Array.isArray(v[m])||(v[m]=[v[m]]),v[m].push(S)):c.isArray(m,y,T)?v[m]=[S]:v[m]=S}}}return typeof h=="string"?h.length>0&&(v[c.textNodeName]=h):h!==void 0&&(v[c.textNodeName]=h),v}function s(f){const c=Object.keys(f);for(let d=0;d<c.length;d++){const h=c[d];if(h!==":@")return h}}function l(f,c,d,h){if(c){const v=Object.keys(c),p=v.length;for(let g=0;g<p;g++){const m=v[g];h.isArray(m,d+"."+m,!0,!0)?f[m]=[c[m]]:f[m]=c[m]}}}function u(f,c){const{textNodeName:d}=c,h=Object.keys(f).length;return!!(h===0||h===1&&(f[d]||typeof f[d]=="boolean"||f[d]===0))}n.prettify=a},"./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js":function(r,n,i){class a{constructor(s){this.tagname=s,this.child=[],this[":@"]={}}add(s,l){s==="__proto__"&&(s="#__proto__"),this.child.push({[s]:l})}addChild(s){s.tagname==="__proto__"&&(s.tagname="#__proto__"),s[":@"]&&Object.keys(s[":@"]).length>0?this.child.push({[s.tagname]:s.child,":@":s[":@"]}):this.child.push({[s.tagname]:s.child})}}r.exports=a},"./node_modules/process/browser.js":function(r,n){var i=r.exports={},a,o;function s(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a=setTimeout:a=s}catch{a=s}try{typeof clearTimeout=="function"?o=clearTimeout:o=l}catch{o=l}})();function u(S){if(a===setTimeout)return setTimeout(S,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(S,0);try{return a(S,0)}catch{try{return a.call(null,S,0)}catch{return a.call(this,S,0)}}}function f(S){if(o===clearTimeout)return clearTimeout(S);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(S);try{return o(S)}catch{try{return o.call(null,S)}catch{return o.call(this,S)}}}var c=[],d=!1,h,v=-1;function p(){!d||!h||(d=!1,h.length?c=h.concat(c):v=-1,c.length&&g())}function g(){if(!d){var S=u(p);d=!0;for(var T=c.length;T;){for(h=c,c=[];++v<T;)h&&h[v].run();v=-1,T=c.length}h=null,d=!1,f(S)}}i.nextTick=function(S){var T=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)T[P-1]=arguments[P];c.push(new m(S,T)),c.length===1&&!d&&u(g)};function m(S,T){this.fun=S,this.array=T}m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={};function y(){}i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(S){return[]},i.binding=function(S){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(S){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"./node_modules/strnum/strnum.js":function(r,n){const i=/^[-+]?0x[a-fA-F0-9]+$/,a=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const o={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function s(u,f={}){if(f=Object.assign({},o,f),!u||typeof u!="string")return u;let c=u.trim();if(f.skipLike!==void 0&&f.skipLike.test(c))return u;if(f.hex&&i.test(c))return Number.parseInt(c,16);{const d=a.exec(c);if(d){const h=d[1],v=d[2];let p=l(d[3]);const g=d[4]||d[6];if(!f.leadingZeros&&v.length>0&&h&&c[2]!==".")return u;if(!f.leadingZeros&&v.length>0&&!h&&c[1]!==".")return u;{const m=Number(c),y=""+m;return y.search(/[eE]/)!==-1||g?f.eNotation?m:u:c.indexOf(".")!==-1?y==="0"&&p===""||y===p||h&&y==="-"+p?m:u:v?p===y||h+p===y?m:u:c===y||c===h+y?m:u}}else return u}}function l(u){return u&&u.indexOf(".")!==-1&&(u=u.replace(/0+$/,""),u==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u}r.exports=s},"./node_modules/webpack/buildin/amd-options.js":function(r,n){(function(i){r.exports=i}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(r,n){r.exports=function(i){return i.webpackPolyfill||(i.deprecate=function(){},i.paths=[],i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),i.webpackPolyfill=1),i}},"./package.json":function(r){r.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.6","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"^4.4.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/typeof.js"),o=i("./src/session.js"),s=i("./src/async.js"),l=i("./src/event.js").EventProxy,u=i("./src/util.js"),f=i("./src/tracker.js");function c(C,w){var b=this,E=new l,A=C.TaskId,R=C.Bucket,k=C.Region,D=C.Key,O=C.Body,$=C.ChunkSize||C.SliceSize||b.options.ChunkSize,U=C.AsyncLimit,q=C.StorageClass,H=C.ServerSideEncryption,N,G,j=C.onHashProgress,oe=C.tracker;oe&&oe.setParams({chunkSize:$}),E.on("error",function(Y){if(b._isRunningTask(A))return C.UploadData.UploadId&&o.removeUsing(C.UploadData.UploadId),Y.UploadId=C.UploadData.UploadId||"",w(Y)}),E.on("upload_complete",function(Y){var te=u.extend({UploadId:C.UploadData.UploadId||""},Y);w(null,te)}),E.on("upload_slice_complete",function(Y){var te={};u.each(C.Headers,function(fe,ye){var xe=ye.toLowerCase();(xe.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(xe))&&(te[ye]=fe)}),m.call(b,{Bucket:R,Region:k,Key:D,UploadId:Y.UploadId,SliceList:Y.SliceList,Headers:te,tracker:oe},function(fe,ye){if(b._isRunningTask(A)){if(o.removeUsing(Y.UploadId),fe)return G(null,!0),E.emit("error",fe);o.removeUploadId.call(b,Y.UploadId),G({loaded:N,total:N},!0),E.emit("upload_complete",ye)}})}),E.on("get_upload_data_finish",function(Y){var te=o.getFileId(O,C.ChunkSize,R,D);te&&o.saveUploadId.call(b,te,Y.UploadId,b.options.UploadIdCacheLimit),o.setUsing(Y.UploadId),G(null,!0),p.call(b,{TaskId:A,Bucket:R,Region:k,Key:D,Body:O,FileSize:N,SliceSize:$,AsyncLimit:U,ServerSideEncryption:H,UploadData:Y,Headers:C.Headers,onProgress:G,tracker:oe},function(fe,ye){if(b._isRunningTask(A)){if(fe)return G(null,!0),E.emit("error",fe);E.emit("upload_slice_complete",ye)}})}),E.on("get_file_size_finish",function(){if(G=u.throttleOnProgress.call(b,N,C.onProgress),C.UploadData.UploadId)E.emit("get_upload_data_finish",C.UploadData);else{var Y=u.extend({TaskId:A,Bucket:R,Region:k,Key:D,Headers:C.Headers,StorageClass:q,Body:O,FileSize:N,SliceSize:$,onHashProgress:j,tracker:oe},C);d.call(b,Y,function(te,fe){if(b._isRunningTask(A)){if(te)return E.emit("error",te);C.UploadData.UploadId=fe.UploadId,C.UploadData.PartList=fe.PartList,E.emit("get_upload_data_finish",C.UploadData)}})}}),N=C.ContentLength,delete C.ContentLength,!C.Headers&&(C.Headers={}),u.each(C.Headers,function(Y,te){te.toLowerCase()==="content-length"&&delete C.Headers[te]}),function(){for(var Y=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],te=1024*1024,fe=0;fe<Y.length&&(te=Y[fe]*1024*1024,!(N/te<=b.options.MaxPartNumber));fe++);C.ChunkSize=C.SliceSize=$=Math.max($,te)}(),N===0?(C.Body="",C.ContentLength=0,C.SkipTask=!0,b.putObject(C,w)):E.emit("get_file_size_finish")}function d(C,w){var b=C.TaskId,E=C.Bucket,A=C.Region,R=C.Key,k=C.StorageClass,D=this,O={},$=C.FileSize,U=C.SliceSize,q=Math.ceil($/U),H=0,N=u.throttleOnProgress.call(D,$,C.onHashProgress),G=function(te,fe){var ye=U*(te-1),xe=Math.min(ye+U,$),ce=xe-ye;O[te]?fe(null,{PartNumber:te,ETag:O[te],Size:ce}):u.fileSlice(C.Body,ye,xe,!1,function(ge){u.getFileMd5(ge,function(Ce,se){if(Ce)return fe(u.error(Ce));var he='"'+se+'"';O[te]=he,H+=ce,N({loaded:H,total:$}),fe(null,{PartNumber:te,ETag:he,Size:ce})})})},j=function(te,fe){var ye=te.length;if(ye===0)return fe(null,!0);if(ye>q)return fe(null,!1);if(ye>1){var xe=Math.max(te[0].Size,te[1].Size);if(xe!==U)return fe(null,!1)}var ce=function ge(Ce){if(Ce<ye){var se=te[Ce];G(se.PartNumber,function(he,Ae){Ae&&Ae.ETag===se.ETag&&Ae.Size===se.Size?ge(Ce+1):fe(null,!1)})}else fe(null,!0)};ce(0)},oe=new l;oe.on("error",function(Y){if(D._isRunningTask(b))return w(Y)}),oe.on("upload_id_available",function(Y){var te={},fe=[];u.each(Y.PartList,function(ce){te[ce.PartNumber]=ce});for(var ye=1;ye<=q;ye++){var xe=te[ye];xe?(xe.PartNumber=ye,xe.Uploaded=!0):xe={PartNumber:ye,ETag:null,Uploaded:!1},fe.push(xe)}Y.PartList=fe,w(null,Y)}),oe.on("no_available_upload_id",function(){if(D._isRunningTask(b)){var Y=u.extend({Bucket:E,Region:A,Key:R,Query:u.clone(C.Query),StorageClass:k,Body:C.Body,calledBySdk:"sliceUploadFile",tracker:C.tracker},C),te=u.clone(C.Headers);delete te["x-cos-mime-limit"],Y.Headers=te,D.multipartInit(Y,function(fe,ye){if(D._isRunningTask(b)){if(fe)return oe.emit("error",fe);var xe=ye.UploadId;if(!xe)return w(u.error(new Error("no such upload id")));oe.emit("upload_id_available",{UploadId:xe,PartList:[]})}})}}),oe.on("has_and_check_upload_id",function(Y){Y=Y.reverse(),s.eachLimit(Y,1,function(te,fe){if(D._isRunningTask(b)){if(o.using[te]){fe();return}v.call(D,{Bucket:E,Region:A,Key:R,UploadId:te,tracker:C.tracker},function(ye,xe){if(D._isRunningTask(b)){if(ye)return o.removeUsing(te),oe.emit("error",ye);var ce=xe.PartList;ce.forEach(function(ge){ge.PartNumber*=1,ge.Size*=1,ge.ETag=ge.ETag||""}),j(ce,function(ge,Ce){if(D._isRunningTask(b)){if(ge)return oe.emit("error",ge);Ce?fe({UploadId:te,PartList:ce}):fe()}})}})}},function(te){D._isRunningTask(b)&&(N(null,!0),te&&te.UploadId?oe.emit("upload_id_available",te):oe.emit("no_available_upload_id"))})}),oe.on("seek_local_avail_upload_id",function(Y){var te=o.getFileId(C.Body,C.ChunkSize,E,R),fe=o.getUploadIdList.call(D,te);if(!te||!fe){oe.emit("has_and_check_upload_id",Y);return}var ye=function xe(ce){if(ce>=fe.length){oe.emit("has_and_check_upload_id",Y);return}var ge=fe[ce];if(!u.isInArray(Y,ge)){o.removeUploadId.call(D,ge),xe(ce+1);return}if(o.using[ge]){xe(ce+1);return}v.call(D,{Bucket:E,Region:A,Key:R,UploadId:ge,tracker:C.tracker},function(Ce,se){D._isRunningTask(b)&&(Ce?(o.removeUploadId.call(D,ge),xe(ce+1)):oe.emit("upload_id_available",{UploadId:ge,PartList:se.PartList}))})};ye(0)}),oe.on("get_remote_upload_id_list",function(){h.call(D,{Bucket:E,Region:A,Key:R,tracker:C.tracker},function(Y,te){if(D._isRunningTask(b)){if(Y)return oe.emit("error",Y);var fe=u.filter(te.UploadList,function(ce){return ce.Key===R&&(!k||ce.StorageClass.toUpperCase()===k.toUpperCase())}).reverse().map(function(ce){return ce.UploadId||ce.UploadID});if(fe.length)oe.emit("seek_local_avail_upload_id",fe);else{var ye=o.getFileId(C.Body,C.ChunkSize,E,R),xe;ye&&(xe=o.getUploadIdList.call(D,ye))&&u.each(xe,function(ce){o.removeUploadId.call(D,ce)}),oe.emit("no_available_upload_id")}}})}),oe.emit("get_remote_upload_id_list")}function h(C,w){var b=this,E=[],A={Bucket:C.Bucket,Region:C.Region,Prefix:C.Key,calledBySdk:C.calledBySdk||"sliceUploadFile",tracker:C.tracker},R=function k(){b.multipartList(A,function(D,O){if(D)return w(D);E.push.apply(E,O.Upload||[]),O.IsTruncated==="true"?(A.KeyMarker=O.NextKeyMarker,A.UploadIdMarker=O.NextUploadIdMarker,k()):w(null,{UploadList:E})})};R()}function v(C,w){var b=this,E=[],A={Bucket:C.Bucket,Region:C.Region,Key:C.Key,UploadId:C.UploadId,calledBySdk:"sliceUploadFile",tracker:C.tracker},R=function k(){b.multipartListPart(A,function(D,O){if(D)return w(D);E.push.apply(E,O.Part||[]),O.IsTruncated==="true"?(A.PartNumberMarker=O.NextPartNumberMarker,k()):w(null,{PartList:E})})};R()}function p(C,w){var b=this,E=C.TaskId,A=C.Bucket,R=C.Region,k=C.Key,D=C.UploadData,O=C.FileSize,$=C.SliceSize,U=Math.min(C.AsyncLimit||b.options.ChunkParallelLimit||1,256),q=C.Body,H=Math.ceil(O/$),N=0,G=C.ServerSideEncryption,j=C.Headers,oe=u.filter(D.PartList,function(te){return te.Uploaded&&(N+=te.PartNumber>=H&&O%$||$),!te.Uploaded}),Y=C.onProgress;s.eachLimit(oe,U,function(te,fe){if(b._isRunningTask(E)){var ye=te.PartNumber,xe=Math.min(O,te.PartNumber*$)-(te.PartNumber-1)*$,ce=0;g.call(b,{TaskId:E,Bucket:A,Region:R,Key:k,SliceSize:$,FileSize:O,PartNumber:ye,ServerSideEncryption:G,Body:q,UploadData:D,Headers:j,onProgress:function(Ce){N+=Ce.loaded-ce,ce=Ce.loaded,Y({loaded:N,total:O})},tracker:C.tracker},function(ge,Ce){b._isRunningTask(E)&&(!ge&&!Ce.ETag&&(ge='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),ge?N-=ce:(N+=xe-ce,te.ETag=Ce.ETag),Y({loaded:N,total:O}),fe(ge||null,Ce))})}},function(te){if(b._isRunningTask(E)){if(te)return w(te);w(null,{UploadId:D.UploadId,SliceList:D.PartList})}})}function g(C,w){var b=this,E=C.TaskId,A=C.Bucket,R=C.Region,k=C.Key,D=C.FileSize,O=C.Body,$=C.PartNumber*1,U=C.SliceSize,q=C.ServerSideEncryption,H=C.UploadData,N=C.Headers||{},G=b.options.ChunkRetryTimes+1,j=U*($-1),oe=U,Y=j+U;Y>D&&(Y=D,oe=Y-j);var te=["x-cos-traffic-limit","x-cos-mime-limit"],fe={};u.each(N,function(xe,ce){te.indexOf(ce)>-1&&(fe[ce]=xe)});var ye=H.PartList[$-1];s.retry(G,function(xe){b._isRunningTask(E)&&u.fileSlice(O,j,Y,!0,function(ce){b.multipartUpload({TaskId:E,Bucket:A,Region:R,Key:k,ContentLength:oe,PartNumber:$,UploadId:H.UploadId,ServerSideEncryption:q,Body:ce,Headers:fe,onProgress:C.onProgress,calledBySdk:"sliceUploadFile",tracker:C.tracker},function(ge,Ce){if(b._isRunningTask(E))return ge?xe(ge):(ye.Uploaded=!0,xe(null,Ce))})})},function(xe,ce){if(b._isRunningTask(E))return w(xe,ce)})}function m(C,w){var b=C.Bucket,E=C.Region,A=C.Key,R=C.UploadId,k=C.SliceList,D=this,O=this.options.ChunkRetryTimes+1,$=C.Headers,U=k.map(function(q){return{PartNumber:q.PartNumber,ETag:q.ETag}});s.retry(O,function(q){D.multipartComplete({Bucket:b,Region:E,Key:A,UploadId:R,Parts:U,Headers:$,calledBySdk:"sliceUploadFile",tracker:C.tracker},q)},function(q,H){w(q,H)})}function y(C,w){var b=C.Bucket,E=C.Region,A=C.Key,R=C.UploadId,k=C.Level||"task",D=C.AsyncLimit,O=this,$=new l;if($.on("error",function(U){return w(U)}),$.on("get_abort_array",function(U){S.call(O,{Bucket:b,Region:E,Key:A,Headers:C.Headers,AsyncLimit:D,AbortArray:U},w)}),k==="bucket")h.call(O,{Bucket:b,Region:E,calledBySdk:"abortUploadTask"},function(U,q){if(U)return w(U);$.emit("get_abort_array",q.UploadList||[])});else if(k==="file"){if(!A)return w(u.error(new Error("abort_upload_task_no_key")));h.call(O,{Bucket:b,Region:E,Key:A,calledBySdk:"abortUploadTask"},function(U,q){if(U)return w(U);$.emit("get_abort_array",q.UploadList||[])})}else if(k==="task"){if(!R)return w(u.error(new Error("abort_upload_task_no_id")));if(!A)return w(u.error(new Error("abort_upload_task_no_key")));$.emit("get_abort_array",[{Key:A,UploadId:R}])}else return w(u.error(new Error("abort_unknown_level")))}function S(C,w){var b=C.Bucket,E=C.Region,A=C.Key,R=C.AbortArray,k=C.AsyncLimit||1,D=this,O=0,$=new Array(R.length);s.eachLimit(R,k,function(U,q){var H=O;if(A&&A!==U.Key){$[H]={error:{KeyNotMatch:!0}},q(null);return}var N=U.UploadId||U.UploadID;D.multipartAbort({Bucket:b,Region:E,Key:U.Key,Headers:C.Headers,UploadId:N},function(G){var j={Bucket:b,Region:E,Key:U.Key,UploadId:N};$[H]={error:G,task:j},q(null)}),O++},function(U){if(U)return w(U);for(var q=[],H=[],N=0,G=$.length;N<G;N++){var j=$[N];j.task&&(j.error?H.push(j.task):q.push(j.task))}return w(null,{successList:q,errorList:H})})}function T(C,w){var b=this,E=C.SliceSize===void 0?b.options.SliceSize:C.SliceSize,A=[],R=C.Body,k=R.size||R.length||0,D={TaskId:""};if(b.options.EnableReporter){var O=b.options.UseAccelerate||typeof b.options.Domain=="string"&&b.options.Domain.includes("accelerate."),$=k>E?"sliceUploadFile":"putObject";C.tracker=new f({Beacon:b.options.BeaconReporter,clsReporter:b.options.ClsReporter,bucket:C.Bucket,region:C.Region,apiName:"uploadFile",realApi:$,fileKey:C.Key,fileSize:k,accelerate:O,deepTracker:b.options.DeepTracker,customId:b.options.CustomId,delay:b.options.TrackerDelay})}u.each(C,function(j,oe){a(j)!=="object"&&typeof j!="function"&&(D[oe]=j)});var U=C.onTaskReady,q=function(oe){D.TaskId=oe,U&&U(oe)};C.onTaskReady=q;var H=k>E?"sliceUploadFile":"putObject",N=C.onFileFinish,G=function(oe,Y){C.tracker&&C.tracker.report(oe,Y),N&&N(oe,Y,D),w&&w(oe,Y)};A.push({api:H,params:C,callback:G}),b._addTasks(A)}function P(C,w){var b=this,E=C.SliceSize===void 0?b.options.SliceSize:C.SliceSize,A=0,R=0,k=u.throttleOnProgress.call(b,R,C.onProgress),D=C.files.length,O=C.onFileFinish,$=Array(D),U=function(N,G,j){k(null,!0),O&&O(N,G,j),$[j.Index]={options:j,error:N,data:G},--D<=0&&w&&w(null,{files:$})},q=[];u.each(C.files,function(H,N){(function(){var G=H.Body,j=G.size||G.length||0,oe={Index:N,TaskId:""};if(!b.options.UseRawKey&&H.Key&&H.Key.substr(0,1)==="/"&&(H.Key=H.Key.substr(1)),A+=j,b.options.EnableReporter){var Y=b.options.UseAccelerate||typeof b.options.Domain=="string"&&b.options.Domain.includes("accelerate."),te=j>E?"sliceUploadFile":"putObject";H.tracker=new f({Beacon:b.options.BeaconReporter,clsReporter:b.options.ClsReporter,bucket:H.Bucket,region:H.Region,apiName:"uploadFiles",realApi:te,fileKey:H.Key,fileSize:j,accelerate:Y,deepTracker:b.options.DeepTracker,customId:b.options.CustomId,delay:b.options.TrackerDelay})}u.each(H,function(Ae,Re){a(Ae)!=="object"&&typeof Ae!="function"&&(oe[Re]=Ae)});var fe=H.onTaskReady,ye=function(Re){oe.TaskId=Re,fe&&fe(Re)};H.onTaskReady=ye;var xe=0,ce=H.onProgress,ge=function(Re){R=R-xe+Re.loaded,xe=Re.loaded,ce&&ce(Re),k({loaded:R,total:A})};H.onProgress=ge;var Ce=j>E?"sliceUploadFile":"putObject",se=H.onFileFinish,he=function(Re,lt){H.tracker&&H.tracker.report(Re,lt),se&&se(Re,lt),U&&U(Re,lt,oe)};q.push({api:Ce,params:H,callback:he})})()}),b._addTasks(q)}function x(C,w){var b=new l,E=this,A=C.Bucket,R=C.Region,k=C.Key,D=C.CopySource,O=u.getSourceParams.call(this,D);if(!O){w(u.error(new Error("CopySource format error")));return}var $=O.Bucket,U=O.Region,q=decodeURIComponent(O.Key),H=C.CopySliceSize===void 0?E.options.CopySliceSize:C.CopySliceSize;H=Math.max(0,H);var N=C.CopyChunkSize||this.options.CopyChunkSize,G=this.options.CopyChunkParallelLimit,j=this.options.ChunkRetryTimes+1,oe=0,Y=0,te,fe,ye={},xe={},ce={};b.on("copy_slice_complete",function(ge){u.each(C.Headers,function(se,he){he.toLowerCase().indexOf("x-cos-meta-")});var Ce=u.map(ge.PartList,function(se){return{PartNumber:se.PartNumber,ETag:se.ETag}});s.retry(j,function(se){E.multipartComplete({Bucket:A,Region:R,Key:k,UploadId:ge.UploadId,Parts:Ce,tracker:C.tracker,calledBySdk:"sliceCopyFile"},se)},function(se,he){if(o.removeUsing(ge.UploadId),se)return fe(null,!0),w(se);o.removeUploadId(ge.UploadId),fe({loaded:te,total:te},!0),w(null,he)})}),b.on("get_copy_data_finish",function(ge){var Ce=o.getCopyFileId(D,ye,N,A,k);Ce&&o.saveUploadId(Ce,ge.UploadId,E.options.UploadIdCacheLimit),o.setUsing(ge.UploadId);var se=u.filter(ge.PartList,function(he){return he.Uploaded&&(Y+=he.PartNumber>=oe&&te%N||N),!he.Uploaded});s.eachLimit(se,G,function(he,Ae){var Re=he.PartNumber,lt=he.CopySourceRange,vt=he.end-he.start;s.retry(j,function(mt){_.call(E,{Bucket:A,Region:R,Key:k,CopySource:D,UploadId:ge.UploadId,PartNumber:Re,CopySourceRange:lt,tracker:C.tracker,calledBySdk:"sliceCopyFile"},mt)},function(mt,Fe){if(mt)return Ae(mt);Y+=vt,fe({loaded:Y,total:te}),he.ETag=Fe.ETag,Ae(mt||null,Fe)})},function(he){if(he)return o.removeUsing(ge.UploadId),fe(null,!0),w(he);b.emit("copy_slice_complete",ge)})}),b.on("get_chunk_size_finish",function(){var ge=function(){E.multipartInit({Bucket:A,Region:R,Key:k,Headers:ce,tracker:C.tracker,calledBySdk:"sliceCopyFile"},function(Re,lt){if(Re)return w(Re);C.UploadId=lt.UploadId,b.emit("get_copy_data_finish",{UploadId:C.UploadId,PartList:C.PartList})})},Ce=o.getCopyFileId(D,ye,N,A,k),se=o.getUploadIdList(Ce);if(!Ce||!se)return ge();var he=function Ae(Re){if(Re>=se.length)return ge();var lt=se[Re];if(o.using[lt])return Ae(Re+1);v.call(E,{Bucket:A,Region:R,Key:k,UploadId:lt,tracker:C.tracker,calledBySdk:"sliceCopyFile"},function(vt,mt){if(vt)o.removeUploadId(lt),Ae(Re+1);else{if(o.using[lt])return Ae(Re+1);var Fe={},Zt=0;u.each(mt.PartList,function(Ot){var Sr=parseInt(Ot.Size),mn=Zt+Sr-1;Fe[Ot.PartNumber+"|"+Zt+"|"+mn]=Ot.ETag,Zt+=Sr}),u.each(C.PartList,function(Ot){var Sr=Fe[Ot.PartNumber+"|"+Ot.start+"|"+Ot.end];Sr&&(Ot.ETag=Sr,Ot.Uploaded=!0)}),b.emit("get_copy_data_finish",{UploadId:lt,PartList:C.PartList})}})};he(0)}),b.on("get_file_size_finish",function(){if(function(){for(var Ce=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],se=1024*1024,he=0;he<Ce.length&&(se=Ce[he]*1024*1024,!(te/se<=E.options.MaxPartNumber));he++);C.ChunkSize=N=Math.max(N,se),oe=Math.ceil(te/N);for(var Ae=[],Re=1;Re<=oe;Re++){var lt=(Re-1)*N,vt=Re*N<te?Re*N-1:te-1,mt={PartNumber:Re,start:lt,end:vt,CopySourceRange:"bytes="+lt+"-"+vt};Ae.push(mt)}C.PartList=Ae}(),C.Headers["x-cos-metadata-directive"]==="Replaced"?ce=C.Headers:ce=xe,ce["x-cos-storage-class"]=C.Headers["x-cos-storage-class"]||xe["x-cos-storage-class"],ce=u.clearKey(ce),xe["x-cos-storage-class"]==="ARCHIVE"||xe["x-cos-storage-class"]==="DEEP_ARCHIVE"){var ge=xe["x-cos-restore"];if(!ge||ge==='ongoing-request="true"'){w(u.error(new Error("Unrestored archive object is not allowed to be copied")));return}}delete ce["x-cos-copy-source"],delete ce["x-cos-metadata-directive"],delete ce["x-cos-copy-source-If-Modified-Since"],delete ce["x-cos-copy-source-If-Unmodified-Since"],delete ce["x-cos-copy-source-If-Match"],delete ce["x-cos-copy-source-If-None-Match"],b.emit("get_chunk_size_finish")}),E.headObject({Bucket:$,Region:U,Key:q,tracker:C.tracker,calledBySdk:"sliceCopyFile"},function(ge,Ce){if(ge){ge.statusCode&&ge.statusCode===404?w(u.error(ge,{ErrorStatus:q+" Not Exist"})):w(ge);return}if(te=C.FileSize=Ce.headers["content-length"],te===void 0||!te){w(u.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.( 获取Content-Length失败,请在CORS ExposeHeader设置中添加Content-Length,请参考文档:https://cloud.tencent.com/document/product/436/13318 )')));return}if(C.tracker&&C.tracker.setParams({httpSize:te}),fe=u.throttleOnProgress.call(E,te,C.onProgress),te<=H)C.Headers["x-cos-metadata-directive"]||(C.Headers["x-cos-metadata-directive"]="Copy"),E.putObjectCopy(Object.assign(C,{calledBySdk:"sliceCopyFile"}),function(he,Ae){if(he)return fe(null,!0),w(he);fe({loaded:te,total:te},!0),w(he,Ae)});else{var se=Ce.headers;ye=se,xe={"Cache-Control":se["cache-control"],"Content-Disposition":se["content-disposition"],"Content-Encoding":se["content-encoding"],"Content-Type":se["content-type"],Expires:se.expires,"x-cos-storage-class":se["x-cos-storage-class"]},u.each(se,function(he,Ae){var Re="x-cos-meta-";Ae.indexOf(Re)===0&&Ae.length>Re.length&&(xe[Ae]=he)}),b.emit("get_file_size_finish")}})}function _(C,w){var b=C.TaskId,E=C.Bucket,A=C.Region,R=C.Key,k=C.CopySource,D=C.UploadId,O=C.PartNumber*1,$=C.CopySourceRange,U=this.options.ChunkRetryTimes+1,q=this;s.retry(U,function(H){q.uploadPartCopy({TaskId:b,Bucket:E,Region:A,Key:R,CopySource:k,UploadId:D,PartNumber:O,CopySourceRange:$,tracker:C.tracker,calledBySdk:C.calledBySdk},function(N,G){H(N||null,G)})},function(H,N){return w(H,N)})}var M={sliceUploadFile:c,abortUploadTask:y,uploadFile:T,uploadFiles:P,sliceCopyFile:x};r.exports.init=function(C,w){w.transferToTaskMethod(M,"sliceUploadFile"),u.each(M,function(b,E){C.prototype[E]=u.apiWrapper(E,b)})}},"./src/async.js":function(r,n){var i=function(l,u,f,c){if(c=c||function(){},!l.length||u<=0)return c();var d=0,h=0,v=0;(function p(){if(d>=l.length)return c();for(;v<u&&h<l.length;)h+=1,v+=1,f(l[h-1],function(g){g?(c(g),c=function(){}):(d+=1,v-=1,d>=l.length?c():p())})})()},a=function(l,u,f){var c=function d(h){u(function(v,p){v&&h<l?d(h+1):f(v,p)})};l<1?f():c(1)},o={eachLimit:i,retry:a};r.exports=o},"./src/base.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/typeof.js"),o=i("./lib/request.js"),s=i("./src/util.js");function l(I,F){var L=this.options.Protocol||(s.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:"),B=this.options.ServiceDomain,W=I.AppId||this.options.appId,V=I.Region;B?(B=B.replace(/\{\{AppId\}\}/gi,W||"").replace(/\{\{Region\}\}/gi,V||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(B)||(B=L+"//"+B),B.slice(-1)==="/"&&(B=B.slice(0,-1))):V?B=L+"//cos."+V+".myqcloud.com":B=L+"//service.cos.myqcloud.com";var Z="",re=V?"cos."+V+".myqcloud.com":"service.cos.myqcloud.com",me=B.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");re===me&&(Z=re),Le.call(this,{Action:"name/cos:GetService",url:B,method:"GET",headers:I.Headers,SignHost:Z,tracker:I.tracker},function(Ve,Ne){if(Ve)return F(Ve);var at=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Buckets&&Ne.ListAllMyBucketsResult.Buckets.Bucket||[];at=s.isArray(at)?at:[at];var Te=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Owner||{};F(null,{Buckets:at,Owner:Te,statusCode:Ne.statusCode,headers:Ne.headers})})}function u(I,F){var L=this,B="";if(I.BucketAZConfig){var W={BucketAZConfig:I.BucketAZConfig};B=s.json2xml({CreateBucketConfiguration:W})}Le.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,body:B,tracker:I.tracker},function(V,Z){if(V)return F(V);var re=qr({protocol:L.options.Protocol,domain:L.options.Domain,bucket:I.Bucket,region:I.Region,isLocation:!0});F(null,{Location:re,statusCode:Z.statusCode,headers:Z.headers})})}function f(I,F){Le.call(this,{Action:"name/cos:HeadBucket",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,method:"HEAD",tracker:I.tracker},F)}function c(I,F){var L={};L.prefix=I.Prefix||"",L.delimiter=I.Delimiter,L.marker=I.Marker,L["max-keys"]=I.MaxKeys,L["encoding-type"]=I.EncodingType,Le.call(this,{Action:"name/cos:GetBucket",ResourceKey:L.prefix,method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,qs:L,tracker:I.tracker},function(B,W){if(B)return F(B);var V=W.ListBucketResult||{},Z=V.Contents||[],re=V.CommonPrefixes||[];Z=s.isArray(Z)?Z:[Z],re=s.isArray(re)?re:[re];var me=s.clone(V);s.extend(me,{Contents:Z,CommonPrefixes:re,statusCode:W.statusCode,headers:W.headers}),F(null,me)})}function d(I,F){Le.call(this,{Action:"name/cos:DeleteBucket",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,method:"DELETE",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function h(I,F){var L=I.Headers,B="";if(I.AccessControlPolicy){var W=s.clone(I.AccessControlPolicy||{}),V=W.Grants||W.Grant;V=s.isArray(V)?V:[V],delete W.Grant,delete W.Grants,W.AccessControlList={Grant:V},B=s.json2xml({AccessControlPolicy:W}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(B))}s.each(L,function(Z,re){re.indexOf("x-cos-grant-")===0&&(L[re]=kn(L[re]))}),Le.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:I.Bucket,Region:I.Region,headers:L,action:"acl",body:B,tracker:I.tracker},function(Z,re){if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function v(I,F){Le.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"acl",tracker:I.tracker},function(L,B){if(L)return F(L);var W=B.AccessControlPolicy||{},V=W.Owner||{},Z=W.AccessControlList.Grant||[];Z=s.isArray(Z)?Z:[Z];var re=ht(W);B.headers&&B.headers["x-cos-acl"]&&(re.ACL=B.headers["x-cos-acl"]),re=s.extend(re,{Owner:V,Grants:Z,statusCode:B.statusCode,headers:B.headers}),F(null,re)})}function p(I,F){var L=I.CORSConfiguration||{},B=L.CORSRules||I.CORSRules||[];B=s.clone(s.isArray(B)?B:[B]),s.each(B,function(re){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(me){var Ve=me+"s",Ne=re[Ve]||re[me]||[];delete re[Ve],re[me]=s.isArray(Ne)?Ne:[Ne]})});var W={CORSRule:B};I.ResponseVary&&(W.ResponseVary=I.ResponseVary);var V=s.json2xml({CORSConfiguration:W}),Z=I.Headers;Z["Content-Type"]="application/xml",Z["Content-MD5"]=s.b64(s.md5(V)),Le.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:V,action:"cors",headers:Z,tracker:I.tracker},function(re,me){if(re)return F(re);F(null,{statusCode:me.statusCode,headers:me.headers})})}function g(I,F){Le.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"cors",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchCORSConfiguration"){var W={CORSRules:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=B.CORSConfiguration||{},Z=V.CORSRules||V.CORSRule||[];Z=s.clone(s.isArray(Z)?Z:[Z]);var re=V.ResponseVary;s.each(Z,function(me){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Ve){var Ne=Ve+"s",at=me[Ne]||me[Ve]||[];delete me[Ve],me[Ne]=s.isArray(at)?at:[at]})}),F(null,{CORSRules:Z,ResponseVary:re,statusCode:B.statusCode,headers:B.headers})})}function m(I,F){Le.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"cors",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode||L.statusCode,headers:B.headers})})}function y(I,F){Le.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"location",tracker:I.tracker},F)}function S(I,F){var L=I.Policy;try{typeof L=="string"&&(L=JSON.parse(L))}catch{}if(!L||typeof L=="string")return F(s.error(new Error("Policy format error")));var B=JSON.stringify(L);L.version||(L.version="2.0");var W=I.Headers;W["Content-Type"]="application/json",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:I.Bucket,Region:I.Region,action:"policy",body:B,headers:W,tracker:I.tracker},function(V,Z){if(V&&V.statusCode===204)return F(null,{statusCode:V.statusCode});if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function T(I,F){Le.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"policy",rawBody:!0,tracker:I.tracker},function(L,B){if(L)return L.statusCode&&L.statusCode===403?F(s.error(L,{ErrorStatus:"Access Denied"})):L.statusCode&&L.statusCode===405?F(s.error(L,{ErrorStatus:"Method Not Allowed"})):L.statusCode&&L.statusCode===404?F(s.error(L,{ErrorStatus:"Policy Not Found"})):F(L);var W={};try{W=JSON.parse(B.body)}catch{}F(null,{Policy:W,statusCode:B.statusCode,headers:B.headers})})}function P(I,F){Le.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"policy",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode||L.statusCode,headers:B.headers})})}function x(I,F){var L=I.Tagging||{},B=L.TagSet||L.Tags||I.Tags||[];B=s.clone(s.isArray(B)?B:[B]);var W=s.json2xml({Tagging:{TagSet:{Tag:B}}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"tagging",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function _(I,F){Le.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"tagging",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var W={Tags:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=[];try{V=B.Tagging.TagSet.Tag||[]}catch{}V=s.clone(s.isArray(V)?V:[V]),F(null,{Tags:V,statusCode:B.statusCode,headers:B.headers})})}function M(I,F){Le.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"tagging",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function C(I,F){var L=I.LifecycleConfiguration||{},B=L.Rules||I.Rules||[];B=s.clone(B);var W=s.json2xml({LifecycleConfiguration:{Rule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"lifecycle",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function w(I,F){Le.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"lifecycle",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchLifecycleConfiguration"){var W={Rules:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=[];try{V=B.LifecycleConfiguration.Rule||[]}catch{}V=s.clone(s.isArray(V)?V:[V]),F(null,{Rules:V,statusCode:B.statusCode,headers:B.headers})})}function b(I,F){Le.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"lifecycle",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function E(I,F){if(!I.VersioningConfiguration){F(s.error(new Error("missing param VersioningConfiguration")));return}var L=I.VersioningConfiguration||{},B=s.json2xml({VersioningConfiguration:L}),W=I.Headers;W["Content-Type"]="application/xml",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:B,action:"versioning",headers:W,tracker:I.tracker},function(V,Z){if(V&&V.statusCode===204)return F(null,{statusCode:V.statusCode});if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function A(I,F){Le.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"versioning",tracker:I.tracker},function(L,B){L||!B.VersioningConfiguration&&(B.VersioningConfiguration={}),F(L,B)})}function R(I,F){var L=s.clone(I.ReplicationConfiguration),B=s.json2xml({ReplicationConfiguration:L});B=B.replace(/<(\/?)Rules>/gi,"<$1Rule>"),B=B.replace(/<(\/?)Tags>/gi,"<$1Tag>");var W=I.Headers;W["Content-Type"]="application/xml",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:B,action:"replication",headers:W,tracker:I.tracker},function(V,Z){if(V&&V.statusCode===204)return F(null,{statusCode:V.statusCode});if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function k(I,F){Le.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"replication",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="ReplicationConfigurationnotFoundError")){var W={ReplicationConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}!B.ReplicationConfiguration&&(B.ReplicationConfiguration={}),B.ReplicationConfiguration.Rule&&(B.ReplicationConfiguration.Rules=s.makeArray(B.ReplicationConfiguration.Rule),delete B.ReplicationConfiguration.Rule),F(L,B)})}function D(I,F){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"replication",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function O(I,F){if(!I.WebsiteConfiguration){F(s.error(new Error("missing param WebsiteConfiguration")));return}var L=s.clone(I.WebsiteConfiguration||{}),B=L.RoutingRules||L.RoutingRule||[];B=s.isArray(B)?B:[B],delete L.RoutingRule,delete L.RoutingRules,B.length&&(L.RoutingRules={RoutingRule:B});var W=s.json2xml({WebsiteConfiguration:L}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"website",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function $(I,F){Le.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"website",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchWebsiteConfiguration"){var W={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=B.WebsiteConfiguration||{};if(V.RoutingRules){var Z=s.clone(V.RoutingRules.RoutingRule||[]);Z=s.makeArray(Z),V.RoutingRules=Z}F(null,{WebsiteConfiguration:V,statusCode:B.statusCode,headers:B.headers})})}function U(I,F){Le.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"website",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function q(I,F){if(!I.RefererConfiguration){F(s.error(new Error("missing param RefererConfiguration")));return}var L=s.clone(I.RefererConfiguration||{}),B=L.DomainList||{},W=B.Domains||B.Domain||[];W=s.isArray(W)?W:[W],W.length&&(L.DomainList={Domain:W});var V=s.json2xml({RefererConfiguration:L}),Z=I.Headers;Z["Content-Type"]="application/xml",Z["Content-MD5"]=s.b64(s.md5(V)),Le.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:V,action:"referer",headers:Z,tracker:I.tracker},function(re,me){if(re&&re.statusCode===204)return F(null,{statusCode:re.statusCode});if(re)return F(re);F(null,{statusCode:me.statusCode,headers:me.headers})})}function H(I,F){Le.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"referer",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchRefererConfiguration"){var W={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=B.RefererConfiguration||{};if(V.DomainList){var Z=s.makeArray(V.DomainList.Domain||[]);V.DomainList={Domains:Z}}F(null,{RefererConfiguration:V,statusCode:B.statusCode,headers:B.headers})})}function N(I,F){var L=I.DomainConfiguration||{},B=L.DomainRule||I.DomainRule||[];B=s.clone(B);var W=s.json2xml({DomainConfiguration:{DomainRule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"domain",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function G(I,F){Le.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"domain",tracker:I.tracker},function(L,B){if(L)return F(L);var W=[];try{W=B.DomainConfiguration.DomainRule||[]}catch{}W=s.clone(s.isArray(W)?W:[W]),F(null,{DomainRule:W,statusCode:B.statusCode,headers:B.headers})})}function j(I,F){Le.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"domain",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function oe(I,F){var L=I.OriginConfiguration||{},B=L.OriginRule||I.OriginRule||[];B=s.clone(B);var W=s.json2xml({OriginConfiguration:{OriginRule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"origin",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function Y(I,F){Le.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"origin",tracker:I.tracker},function(L,B){if(L)return F(L);var W=[];try{W=B.OriginConfiguration.OriginRule||[]}catch{}W=s.clone(s.isArray(W)?W:[W]),F(null,{OriginRule:W,statusCode:B.statusCode,headers:B.headers})})}function te(I,F){Le.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"origin",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function fe(I,F){var L=s.json2xml({BucketLoggingStatus:I.BucketLoggingStatus||""}),B=I.Headers;B["Content-Type"]="application/xml",B["Content-MD5"]=s.b64(s.md5(L)),Le.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:L,action:"logging",headers:B,tracker:I.tracker},function(W,V){if(W&&W.statusCode===204)return F(null,{statusCode:W.statusCode});if(W)return F(W);F(null,{statusCode:V.statusCode,headers:V.headers})})}function ye(I,F){Le.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"logging",tracker:I.tracker},function(L,B){if(L)return F(L);F(null,{BucketLoggingStatus:B.BucketLoggingStatus,statusCode:B.statusCode,headers:B.headers})})}function xe(I,F,L){var B=s.clone(F.InventoryConfiguration);if(B.OptionalFields){var W=B.OptionalFields||[];B.OptionalFields={Field:W}}if(B.Destination&&B.Destination.COSBucketDestination&&B.Destination.COSBucketDestination.Encryption){var V=B.Destination.COSBucketDestination.Encryption;Object.keys(V).indexOf("SSECOS")>-1&&(V["SSE-COS"]=V.SSECOS,delete V.SSECOS)}var Z=s.json2xml({InventoryConfiguration:B}),re=F.Headers;re["Content-Type"]="application/xml",re["Content-MD5"]=s.b64(s.md5(Z));var me=I==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Le.call(this,{Action:me,method:I,Bucket:F.Bucket,Region:F.Region,body:Z,action:"inventory",qs:{id:F.Id},headers:re,tracker:F.tracker},function(Ve,Ne){if(Ve&&Ve.statusCode===204)return L(null,{statusCode:Ve.statusCode});if(Ve)return L(Ve);L(null,{statusCode:Ne.statusCode,headers:Ne.headers})})}function ce(I,F){return xe.call(this,"PUT",I,F)}function ge(I,F){return xe.call(this,"POST",I,F)}function Ce(I,F){Le.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"inventory",qs:{id:I.Id},tracker:I.tracker},function(L,B){if(L)return F(L);var W=B.InventoryConfiguration;if(W&&W.OptionalFields&&W.OptionalFields.Field){var V=W.OptionalFields.Field;s.isArray(V)||(V=[V]),W.OptionalFields=V}if(W.Destination&&W.Destination.COSBucketDestination&&W.Destination.COSBucketDestination.Encryption){var Z=W.Destination.COSBucketDestination.Encryption;Object.keys(Z).indexOf("SSE-COS")>-1&&(Z.SSECOS=Z["SSE-COS"],delete Z["SSE-COS"])}F(null,{InventoryConfiguration:W,statusCode:B.statusCode,headers:B.headers})})}function se(I,F){Le.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"inventory",qs:{"continuation-token":I.ContinuationToken},tracker:I.tracker},function(L,B){if(L)return F(L);var W=B.ListInventoryConfigurationResult,V=W.InventoryConfiguration||[];V=s.isArray(V)?V:[V],delete W.InventoryConfiguration,s.each(V,function(Z){if(Z&&Z.OptionalFields&&Z.OptionalFields.Field){var re=Z.OptionalFields.Field;s.isArray(re)||(re=[re]),Z.OptionalFields=re}if(Z.Destination&&Z.Destination.COSBucketDestination&&Z.Destination.COSBucketDestination.Encryption){var me=Z.Destination.COSBucketDestination.Encryption;Object.keys(me).indexOf("SSE-COS")>-1&&(me.SSECOS=me["SSE-COS"],delete me["SSE-COS"])}}),W.InventoryConfigurations=V,s.extend(W,{statusCode:B.statusCode,headers:B.headers}),F(null,W)})}function he(I,F){Le.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"inventory",qs:{id:I.Id},tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function Ae(I,F){if(!I.AccelerateConfiguration){F(s.error(new Error("missing param AccelerateConfiguration")));return}var L={AccelerateConfiguration:I.AccelerateConfiguration||{}},B=s.json2xml(L),W={};W["Content-Type"]="application/xml",W["Content-MD5"]=s.b64(s.md5(B)),Le.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:B,action:"accelerate",headers:W,tracker:I.tracker},function(V,Z){if(V)return F(V);F(null,{statusCode:Z.statusCode,headers:Z.headers})})}function Re(I,F){Le.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:I.Bucket,Region:I.Region,action:"accelerate",tracker:I.tracker},function(L,B){L||!B.AccelerateConfiguration&&(B.AccelerateConfiguration={}),F(L,B)})}function lt(I,F){var L=I.ServerSideEncryptionConfiguration||{},B=L.Rule||L.Rules||[],W=s.json2xml({ServerSideEncryptionConfiguration:{Rule:B}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:I.Bucket,Region:I.Region,body:W,action:"encryption",headers:V,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function vt(I,F){Le.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"encryption",tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.code==="NoSuchEncryptionConfiguration"){var W={EncryptionConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=s.makeArray(B.EncryptionConfiguration&&B.EncryptionConfiguration.Rule||[]);B.EncryptionConfiguration={Rules:V},F(L,B)})}function mt(I,F){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"encryption",tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function Fe(I,F){Le.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,headers:I.Headers,tracker:I.tracker},function(L,B){if(L){var W=L.statusCode;return I.Headers["If-Modified-Since"]&&W&&W===304?F(null,{NotModified:!0,statusCode:W}):F(L)}B.ETag=s.attr(B.headers,"etag",""),F(null,B)})}function Zt(I,F){var L={};L.prefix=I.Prefix||"",L.delimiter=I.Delimiter,L["key-marker"]=I.KeyMarker,L["version-id-marker"]=I.VersionIdMarker,L["max-keys"]=I.MaxKeys,L["encoding-type"]=I.EncodingType,Le.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:L.prefix,method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,qs:L,action:"versions",tracker:I.tracker},function(B,W){if(B)return F(B);var V=W.ListVersionsResult||{},Z=V.DeleteMarker||[];Z=s.isArray(Z)?Z:[Z];var re=V.Version||[];re=s.isArray(re)?re:[re];var me=s.clone(V);delete me.DeleteMarker,delete me.Version,s.extend(me,{DeleteMarkers:Z,Versions:re,statusCode:W.statusCode,headers:W.headers}),F(null,me)})}function Ot(I,F){if(this.options.ObjectKeySimplifyCheck){var L=s.simplifyPath(I.Key);if(L==="/"){F(s.error(new Error("The Getobject Key is illegal")));return}}var B=I.Query||{},W=I.QueryString||"",V=s.throttleOnProgress.call(this,0,I.onProgress),Z=I.tracker;Z&&Z.setParams({signStartTime:new Date().getTime()}),B["response-content-type"]=I.ResponseContentType,B["response-content-language"]=I.ResponseContentLanguage,B["response-expires"]=I.ResponseExpires,B["response-cache-control"]=I.ResponseCacheControl,B["response-content-disposition"]=I.ResponseContentDisposition,B["response-content-encoding"]=I.ResponseContentEncoding,Le.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,DataType:I.DataType,headers:I.Headers,qs:B,qsStr:W,rawBody:!0,onDownloadProgress:V,tracker:Z},function(re,me){if(V(null,!0),re){var Ve=re.statusCode;return I.Headers["If-Modified-Since"]&&Ve&&Ve===304?F(null,{NotModified:!0}):F(re)}F(null,{Body:me.body,ETag:s.attr(me.headers,"etag",""),statusCode:me.statusCode,headers:me.headers})})}function Sr(I,F){var L=this,B=I.ContentLength,W=s.throttleOnProgress.call(L,B,I.onProgress),V=I.Headers;!V["Cache-Control"]&&!V["cache-control"]&&(V["Cache-Control"]=""),!V["Content-Type"]&&!V["content-type"]&&(V["Content-Type"]=I.Body&&I.Body.type||"");var Z=I.UploadAddMetaMd5||L.options.UploadAddMetaMd5||L.options.UploadCheckContentMd5,re=I.tracker;Z&&re&&re.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(Z,I.Body,function(me){me&&(re&&re.setParams({md5EndTime:new Date().getTime()}),L.options.UploadCheckContentMd5&&(V["Content-MD5"]=s.b64(me)),(I.UploadAddMetaMd5||L.options.UploadAddMetaMd5)&&(V["x-cos-meta-md5"]=me)),I.ContentLength!==void 0&&(V["Content-Length"]=I.ContentLength),W(null,!0),Le.call(L,{Action:"name/cos:PutObject",TaskId:I.TaskId,method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,qs:I.Query,body:I.Body,onProgress:W,tracker:re},function(Ve,Ne){if(Ve)return W(null,!0),F(Ve);W({loaded:B,total:B},!0);var at=qr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:I.Bucket,region:L.options.UseAccelerate?"accelerate":I.Region,object:I.Key});at=at.substr(at.indexOf("://")+3),Ne.Location=at,Ne.ETag=s.attr(Ne.headers,"etag",""),F(null,Ne)})},I.onHashProgress)}function mn(I,F){Le.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,VersionId:I.VersionId,action:I.Recursive?"recursive":"",tracker:I.tracker},function(L,B){if(L){var W=L.statusCode;return W&&W===404?F(null,{BucketNotFound:!0,statusCode:W}):F(L)}F(null,{statusCode:B.statusCode,headers:B.headers})})}function ri(I,F){var L={};I.VersionId&&(L.versionId=I.VersionId),Le.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,qs:L,action:"acl",tracker:I.tracker},function(B,W){if(B)return F(B);var V=W.AccessControlPolicy||{},Z=V.Owner||{},re=V.AccessControlList&&V.AccessControlList.Grant||[];re=s.isArray(re)?re:[re];var me=ht(V);delete me.GrantWrite,W.headers&&W.headers["x-cos-acl"]&&(me.ACL=W.headers["x-cos-acl"]),me=s.extend(me,{Owner:Z,Grants:re,statusCode:W.statusCode,headers:W.headers}),F(null,me)})}function ni(I,F){var L=I.Headers,B="";if(I.AccessControlPolicy){var W=s.clone(I.AccessControlPolicy||{}),V=W.Grants||W.Grant;V=s.isArray(V)?V:[V],delete W.Grant,delete W.Grants,W.AccessControlList={Grant:V},B=s.json2xml({AccessControlPolicy:W}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(B))}s.each(L,function(Z,re){re.indexOf("x-cos-grant-")===0&&(L[re]=kn(L[re]))}),Le.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,action:"acl",headers:L,body:B,tracker:I.tracker},function(Z,re){if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function ii(I,F){var L=I.Headers;L.Origin=I.Origin,L["Access-Control-Request-Method"]=I.AccessControlRequestMethod,L["Access-Control-Request-Headers"]=I.AccessControlRequestHeaders,Le.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:L,tracker:I.tracker},function(B,W){if(B)return B.statusCode&&B.statusCode===403?F(null,{OptionsForbidden:!0,statusCode:B.statusCode}):F(B);var V=W.headers||{};F(null,{AccessControlAllowOrigin:V["access-control-allow-origin"],AccessControlAllowMethods:V["access-control-allow-methods"],AccessControlAllowHeaders:V["access-control-allow-headers"],AccessControlExposeHeaders:V["access-control-expose-headers"],AccessControlMaxAge:V["access-control-max-age"],statusCode:W.statusCode,headers:W.headers})})}function ae(I,F){var L=this,B=I.Headers;!B["Cache-Control"]&&!B["cache-control"]&&(B["Cache-Control"]="");var W=I.CopySource||"",V=s.getSourceParams.call(this,W);if(!V){F(s.error(new Error("CopySource format error")));return}var Z=V.Bucket,re=V.Region,me=decodeURIComponent(V.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Z,region:re,prefix:me},{action:"name/cos:PutObject",bucket:I.Bucket,region:I.Region,prefix:I.Key}],method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,headers:I.Headers,tracker:I.tracker},function(Ve,Ne){if(Ve)return F(Ve);var at=s.clone(Ne.CopyObjectResult||{}),Te=qr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:I.Bucket,region:I.Region,object:I.Key,isLocation:!0});s.extend(at,{Location:Te,statusCode:Ne.statusCode,headers:Ne.headers}),F(null,at)})}function ne(I,F){var L=I.CopySource||"",B=s.getSourceParams.call(this,L);if(!B){F(s.error(new Error("CopySource format error")));return}var W=B.Bucket,V=B.Region,Z=decodeURIComponent(B.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:W,region:V,prefix:Z},{action:"name/cos:PutObject",bucket:I.Bucket,region:I.Region,prefix:I.Key}],method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,qs:{partNumber:I.PartNumber,uploadId:I.UploadId},headers:I.Headers,tracker:I.tracker},function(re,me){if(re)return F(re);var Ve=s.clone(me.CopyPartResult||{});s.extend(Ve,{statusCode:me.statusCode,headers:me.headers}),F(null,Ve)})}function K(I,F){var L=I.Objects||[],B=I.Quiet;L=s.isArray(L)?L:[L];var W=s.json2xml({Delete:{Object:L,Quiet:B||!1}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W));var Z=s.map(L,function(re){return{action:"name/cos:DeleteObject",bucket:I.Bucket,region:I.Region,prefix:re.Key}});Le.call(this,{Scope:Z,method:"POST",Bucket:I.Bucket,Region:I.Region,body:W,action:"delete",headers:V,tracker:I.tracker},function(re,me){if(re)return F(re);var Ve=me.DeleteResult||{},Ne=Ve.Deleted||[],at=Ve.Error||[];Ne=s.isArray(Ne)?Ne:[Ne],at=s.isArray(at)?at:[at];var Te=s.clone(Ve);s.extend(Te,{Error:at,Deleted:Ne,statusCode:me.statusCode,headers:me.headers}),F(null,Te)})}function z(I,F){var L=I.Headers;if(!I.RestoreRequest){F(s.error(new Error("missing param RestoreRequest")));return}var B=I.RestoreRequest||{},W=s.json2xml({RestoreRequest:B});L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:I.Bucket,Region:I.Region,Key:I.Key,VersionId:I.VersionId,body:W,action:"restore",headers:L,tracker:I.tracker},F)}function X(I,F){var L=I.Tagging||{},B=L.TagSet||L.Tags||I.Tags||[];B=s.clone(s.isArray(B)?B:[B]);var W=s.json2xml({Tagging:{TagSet:{Tag:B}}}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:I.Bucket,Key:I.Key,Region:I.Region,body:W,action:"tagging",headers:V,VersionId:I.VersionId,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);F(null,{statusCode:re.statusCode,headers:re.headers})})}function J(I,F){Le.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:I.Key,Bucket:I.Bucket,Region:I.Region,headers:I.Headers,action:"tagging",VersionId:I.VersionId,tracker:I.tracker},function(L,B){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var W={Tags:[],statusCode:L.statusCode};L.headers&&(W.headers=L.headers),F(null,W)}else F(L);return}var V=[];try{V=B.Tagging.TagSet.Tag||[]}catch{}V=s.clone(s.isArray(V)?V:[V]),F(null,{Tags:V,statusCode:B.statusCode,headers:B.headers})})}function ue(I,F){Le.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"tagging",VersionId:I.VersionId,tracker:I.tracker},function(L,B){if(L&&L.statusCode===204)return F(null,{statusCode:L.statusCode});if(L)return F(L);F(null,{statusCode:B.statusCode,headers:B.headers})})}function pe(I,F){var L=I.SelectType;if(!L)return F(s.error(new Error("missing param SelectType")));var B=I.SelectRequest||{},W=s.json2xml({SelectRequest:B}),V=I.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5(W)),Le.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,action:"select",qs:{"select-type":I.SelectType},VersionId:I.VersionId,body:W,DataType:"arraybuffer",rawBody:!0,tracker:I.tracker},function(Z,re){if(Z&&Z.statusCode===204)return F(null,{statusCode:Z.statusCode});if(Z)return F(Z);var me=s.parseSelectPayload(re.body);F(null,{statusCode:re.statusCode,headers:re.headers,Body:me.body,Payload:me.payload})})}function Ee(I,F){var L=this,B=I.Headers,W=I.tracker;!B["Cache-Control"]&&!B["cache-control"]&&(B["Cache-Control"]=""),!B["Content-Type"]&&!B["content-type"]&&(B["Content-Type"]=I.Body&&I.Body.type||"");var V=I.Body&&(I.UploadAddMetaMd5||L.options.UploadAddMetaMd5);V&&W&&W.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(V,I.Body,function(Z){Z&&(I.Headers["x-cos-meta-md5"]=Z),V&&W&&W.setParams({md5EndTime:new Date().getTime()}),Le.call(L,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:I.Bucket,Region:I.Region,Key:I.Key,action:"uploads",headers:I.Headers,qs:I.Query,tracker:W},function(re,me){if(re)return W&&W.parent&&W.parent.setParams({errorNode:"multipartInit"}),F(re);if(me=s.clone(me||{}),me&&me.InitiateMultipartUploadResult)return F(null,s.extend(me.InitiateMultipartUploadResult,{statusCode:me.statusCode,headers:me.headers}));F(null,me)})},I.onHashProgress)}function we(I,F){var L=this;s.getFileSize("multipartUpload",I,function(){var B=I.tracker,W=L.options.UploadCheckContentMd5;W&&B&&B.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(W,I.Body,function(V){V&&(I.Headers["Content-MD5"]=s.b64(V)),W&&B&&B.setParams({md5EndTime:new Date().getTime()}),B&&B.setParams({partNumber:I.PartNumber}),Le.call(L,{Action:"name/cos:UploadPart",TaskId:I.TaskId,method:"PUT",Bucket:I.Bucket,Region:I.Region,Key:I.Key,qs:{partNumber:I.PartNumber,uploadId:I.UploadId},headers:I.Headers,onProgress:I.onProgress,body:I.Body||null,tracker:B},function(Z,re){if(Z)return B&&B.parent&&B.parent.setParams({errorNode:"multipartUpload"}),F(Z);F(null,{ETag:s.attr(re.headers,"etag",""),statusCode:re.statusCode,headers:re.headers})})})})}function Se(I,F){for(var L=this,B=I.UploadId,W=I.Parts,V=I.tracker,Z=0,re=W.length;Z<re;Z++)W[Z].ETag&&W[Z].ETag.indexOf('"')===0||(W[Z].ETag='"'+W[Z].ETag+'"');var me=s.json2xml({CompleteMultipartUpload:{Part:W}});me=me.replace(/\n\s*/g,"");var Ve=I.Headers;Ve["Content-Type"]="application/xml",Ve["Content-MD5"]=s.b64(s.md5(me)),Le.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:I.Bucket,Region:I.Region,Key:I.Key,qs:{uploadId:B},body:me,headers:Ve,tracker:V},function(Ne,at){if(Ne)return V&&V.parent&&V.parent.setParams({errorNode:"multipartComplete"}),F(Ne);var Te=qr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:I.Bucket,region:I.Region,object:I.Key,isLocation:!0}),rt=at.CompleteMultipartUploadResult||{};if(rt.ProcessResults&&(rt.UploadResult={OriginalInfo:{Key:rt.Key,Location:Te,ETag:rt.ETag,ImageInfo:rt.ImageInfo},ProcessResults:rt.ProcessResults},delete rt.ImageInfo,delete rt.ProcessResults),rt.CallbackResult){var Ur=rt.CallbackResult;if(Ur.Status==="200"&&Ur.CallbackBody)try{rt.CallbackBody=JSON.parse(s.decodeBase64(Ur.CallbackBody))}catch{rt.CallbackBody={}}else rt.CallbackError=Ur.Error||{};delete rt.CallbackResult}if(rt.ReturnBodyResult){var tr=rt.ReturnBodyResult;if(tr.Status==="200"&&tr.ReturnBody)try{rt.ReturnBody=JSON.parse(s.decodeBase64(tr.ReturnBody))}catch{rt.ReturnBody={}}else rt.ReturnError={Code:tr.Code,Message:tr.Message,Status:tr.Status};delete rt.ReturnBodyResult}var Hr=s.extend(rt,{Location:Te,statusCode:at.statusCode,headers:at.headers});F(null,Hr)})}function Pe(I,F){var L={};L.delimiter=I.Delimiter,L["encoding-type"]=I.EncodingType,L.prefix=I.Prefix||"",L["max-uploads"]=I.MaxUploads,L["key-marker"]=I.KeyMarker,L["upload-id-marker"]=I.UploadIdMarker,L=s.clearKey(L);var B=I.tracker;B&&B.setParams({signStartTime:new Date().getTime()}),Le.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:L.prefix,method:"GET",Bucket:I.Bucket,Region:I.Region,headers:I.Headers,qs:L,action:"uploads",tracker:B},function(W,V){if(W)return B&&B.parent&&B.parent.setParams({errorNode:"multipartList"}),F(W);if(V&&V.ListMultipartUploadsResult){var Z=V.ListMultipartUploadsResult.Upload||[];Z=s.isArray(Z)?Z:[Z],V.ListMultipartUploadsResult.Upload=Z}var re=s.clone(V.ListMultipartUploadsResult||{});s.extend(re,{statusCode:V.statusCode,headers:V.headers}),F(null,re)})}function Oe(I,F){var L={},B=I.tracker;L.uploadId=I.UploadId,L["encoding-type"]=I.EncodingType,L["max-parts"]=I.MaxParts,L["part-number-marker"]=I.PartNumberMarker,Le.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,qs:L,tracker:B},function(W,V){if(W)return B&&B.parent&&B.parent.setParams({errorNode:"multipartListPart"}),F(W);var Z=V.ListPartsResult||{},re=Z.Part||[];re=s.isArray(re)?re:[re],Z.Part=re;var me=s.clone(Z);s.extend(me,{statusCode:V.statusCode,headers:V.headers}),F(null,me)})}function He(I,F){var L={};L.uploadId=I.UploadId,Le.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:I.Bucket,Region:I.Region,Key:I.Key,headers:I.Headers,qs:L,tracker:I.tracker},function(B,W){if(B)return F(B);F(null,{statusCode:W.statusCode,headers:W.headers})})}function ut(I,F){Le.call(this,{method:I.Method,Bucket:I.Bucket,Region:I.Region,Key:I.Key,action:I.Action,headers:I.Headers,qs:I.Query,body:I.Body,Url:I.Url,rawBody:I.RawBody,DataType:I.DataType,tracker:I.tracker},function(L,B){if(L)return F(L);B&&B.body&&(B.Body=B.body,delete B.body),F(L,B)})}function er(I,F){var L=I.Headers;!L["Cache-Control"]&&!L["cache-control"]&&(L["Cache-Control"]=""),!L["Content-Type"]&&!L["content-type"]&&(L["Content-Type"]=I.Body&&I.Body.type||""),Le.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:I.Bucket,Region:I.Region,action:"append",Key:I.Key,body:I.Body,qs:{position:I.Position},headers:I.Headers,tracker:I.tracker},function(B,W){if(B)return F(B);F(null,W)})}function ai(I){var F=this;return s.getAuth({SecretId:I.SecretId||this.options.SecretId||"",SecretKey:I.SecretKey||this.options.SecretKey||"",Bucket:I.Bucket,Region:I.Region,Method:I.Method,Key:I.Key,Query:I.Query,Headers:I.Headers,Expires:I.Expires,UseRawKey:F.options.UseRawKey,SystemClockOffset:F.options.SystemClockOffset})}function lr(I,F){var L=this,B=I.UseAccelerate===void 0?L.options.UseAccelerate:I.UseAccelerate,W=qr({ForcePathStyle:L.options.ForcePathStyle,protocol:I.Protocol||L.options.Protocol,domain:I.Domain||L.options.Domain,bucket:I.Bucket,region:B?"accelerate":I.Region,object:I.Key}),V="";I.Query&&(V+=s.obj2str(I.Query)),I.QueryString&&(V+=(V?"&":"")+I.QueryString);var Z=W;if(I.Sign!==void 0&&!I.Sign)return V&&(Z+="?"+V),F(null,{Url:Z}),Z;var re=Wa.call(this,{Bucket:I.Bucket,Region:I.Region,UseAccelerate:I.UseAccelerate,Url:W}),me=xl.call(this,{Action:(I.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:I.Bucket||"",Region:I.Region||"",Method:I.Method||"get",Key:I.Key,Expires:I.Expires,Headers:I.Headers,Query:I.Query,SignHost:re,ForceSignHost:I.ForceSignHost===!1?!1:L.options.ForceSignHost},function(Ve,Ne){if(F){if(Ve){F(Ve);return}var at=function(Ur){var tr=Ur.match(/q-url-param-list.*?(?=&)/g)[0],Hr="q-url-param-list="+encodeURIComponent(tr.replace(/q-url-param-list=/,"")).toLowerCase(),en=new RegExp(tr,"g"),On=Ur.replace(en,Hr);return On},Te=W;Te+="?"+(Ne.Authorization.indexOf("q-signature")>-1?at(Ne.Authorization):"sign="+encodeURIComponent(Ne.Authorization)),Ne.SecurityToken&&(Te+="&x-cos-security-token="+Ne.SecurityToken),Ne.ClientIP&&(Te+="&clientIP="+Ne.ClientIP),Ne.ClientUA&&(Te+="&clientUA="+Ne.ClientUA),Ne.Token&&(Te+="&token="+Ne.Token),V&&(Te+="&"+V),setTimeout(function(){F(null,{Url:Te})})}});return me?(Z+="?"+me.Authorization+(me.SecurityToken?"&x-cos-security-token="+me.SecurityToken:""),V&&(Z+="&"+V)):V&&(Z+="?"+V),Z}function ht(I){var F={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},L={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},B=I&&I.AccessControlList||{},W=B.Grant;W&&(W=s.isArray(W)?W:[W]);var V={READ:0,WRITE:0,FULL_CONTROL:0};return W&&W.length&&s.each(W,function(Z){var re=Z.Grantee.URI&&Z.Grantee.URI.endsWith("/groups/global/AllUsers");Z.Grantee.ID==="qcs::cam::anyone:anyone"||re?V[Z.Permission]=1:Z.Grantee.ID!==I.Owner.ID&&F[L[Z.Permission]].push('id="'+Z.Grantee.ID+'"')}),V.FULL_CONTROL||V.WRITE&&V.READ?F.ACL="public-read-write":V.READ?F.ACL="public-read":F.ACL="private",s.each(L,function(Z){F[Z]=kn(F[Z].join(","))}),F}function kn(I){var F=I.split(","),L={},B,W;for(B=0;B<F.length;)W=F[B].trim(),L[W]?F.splice(B,1):(L[W]=!0,F[B]=W,B++);return F.join(",")}function qr(I){var F=I.region||"",L=I.bucket||"",B=L.substr(0,L.lastIndexOf("-")),W=L.substr(L.lastIndexOf("-")+1),V=I.domain,Z=I.object;typeof V=="function"&&(V=V({Bucket:L,Region:F})),["http","https"].includes(I.protocol)&&(I.protocol=I.protocol+":");var re=I.protocol||(s.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:");V||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(F)>-1?V="{Region}.myqcloud.com":V="cos.{Region}.myqcloud.com",I.ForcePathStyle||(V="{Bucket}."+V)),V=V.replace(/\{\{AppId\}\}/gi,W).replace(/\{\{Bucket\}\}/gi,B).replace(/\{\{Region\}\}/gi,F).replace(/\{\{.*?\}\}/gi,""),V=V.replace(/\{AppId\}/gi,W).replace(/\{BucketName\}/gi,B).replace(/\{Bucket\}/gi,L).replace(/\{Region\}/gi,F).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(V)||(V=re+"//"+V),V.slice(-1)==="/"&&(V=V.slice(0,-1));var me=V;return I.ForcePathStyle&&(me+="/"+L),me+="/",Z&&(me+=s.camSafeUrlEncode(Z).replace(/%2F/g,"/")),I.isLocation&&(me=me.replace(/^https?:\/\//,"")),me}var Wa=function(F){if(!F.Bucket||!F.Region)return"";var L=F.UseAccelerate===void 0?this.options.UseAccelerate:F.UseAccelerate,B=F.Url||qr({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:F.Bucket,region:L?"accelerate":F.Region}),W=B.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return W};function xl(I,F){var L=s.clone(I.Headers),B="";s.each(L,function(St,tt){(St===""||["content-type","cache-control","expires"].indexOf(tt.toLowerCase())>-1)&&delete L[tt],tt.toLowerCase()==="host"&&(B=St)});var W=I.ForceSignHost!==!1;!B&&I.SignHost&&W&&(L.Host=I.SignHost);var V=!1,Z=function(tt,qe){V||(V=!0,qe&&qe.XCosSecurityToken&&!qe.SecurityToken&&(qe=s.clone(qe),qe.SecurityToken=qe.XCosSecurityToken,delete qe.XCosSecurityToken),F&&F(tt,qe))},re=this,me=I.Bucket||"",Ve=I.Region||"",Ne=I.Key||"";re.options.ForcePathStyle&&me&&(Ne=me+"/"+Ne);var at="/"+Ne,Te={},rt=I.Scope;if(!rt){var Ur=I.Action||"",tr=I.ResourceKey||I.Key||"";rt=I.Scope||[{action:Ur,bucket:me,region:Ve,prefix:tr}]}var Hr=s.md5(JSON.stringify(rt));re._StsCache=re._StsCache||[],function(){var St,tt;for(St=re._StsCache.length-1;St>=0;St--){tt=re._StsCache[St];var qe=Math.round(s.getSkewTime(re.options.SystemClockOffset)/1e3)+30;if(tt.StartTime&&qe<tt.StartTime||qe>=tt.ExpiredTime){re._StsCache.splice(St,1);continue}if(!tt.ScopeLimit||tt.ScopeLimit&&tt.ScopeKey===Hr){Te=tt;break}}}();var en=function(){var tt="";Te.StartTime&&I.Expires?tt=Te.StartTime+";"+(Te.StartTime+I.Expires*1):Te.StartTime&&Te.ExpiredTime&&(tt=Te.StartTime+";"+Te.ExpiredTime);var qe=s.getAuth({SecretId:Te.TmpSecretId,SecretKey:Te.TmpSecretKey,Method:I.Method,Pathname:at,Query:I.Query,Headers:L,Expires:I.Expires,UseRawKey:re.options.UseRawKey,SystemClockOffset:re.options.SystemClockOffset,KeyTime:tt,ForceSignHost:W}),wt={Authorization:qe,SecurityToken:Te.SecurityToken||Te.XCosSecurityToken||"",Token:Te.Token||"",ClientIP:Te.ClientIP||"",ClientUA:Te.ClientUA||"",SignFrom:"client"};Z(null,wt)},On=function(tt){if(tt.Authorization){var qe=!1,wt=tt.Authorization;if(wt)if(wt.indexOf(" ")>-1)qe=!1;else if(wt.indexOf("q-sign-algorithm=")>-1&&wt.indexOf("q-ak=")>-1&&wt.indexOf("q-sign-time=")>-1&&wt.indexOf("q-key-time=")>-1&&wt.indexOf("q-url-param-list=")>-1)qe=!0;else try{wt=atob(wt),wt.indexOf("a=")>-1&&wt.indexOf("k=")>-1&&wt.indexOf("t=")>-1&&wt.indexOf("r=")>-1&&wt.indexOf("b=")>-1&&(qe=!0)}catch{}if(!qe)return s.error(new Error("getAuthorization callback params format error"))}else{if(!tt.TmpSecretId)return s.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!tt.TmpSecretKey)return s.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!tt.SecurityToken&&!tt.XCosSecurityToken)return s.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!tt.ExpiredTime)return s.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(tt.ExpiredTime&&tt.ExpiredTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(tt.StartTime&&tt.StartTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Te.ExpiredTime&&Te.ExpiredTime-s.getSkewTime(re.options.SystemClockOffset)/1e3>60)en();else if(re.options.getAuthorization)re.options.getAuthorization.call(re,{Bucket:me,Region:Ve,Method:I.Method,Key:Ne,Pathname:at,Query:I.Query,Headers:L,Scope:rt,SystemClockOffset:re.options.SystemClockOffset,ForceSignHost:W},function(St){typeof St=="string"&&(St={Authorization:St});var tt=On(St);if(tt)return Z(tt);St.Authorization?Z(null,St):(Te=St||{},Te.Scope=rt,Te.ScopeKey=Hr,re._StsCache.push(Te),en())});else if(re.options.getSTS)re.options.getSTS.call(re,{Bucket:me,Region:Ve},function(St){Te=St||{},Te.Scope=rt,Te.ScopeKey=Hr,Te.TmpSecretId||(Te.TmpSecretId=Te.SecretId),Te.TmpSecretKey||(Te.TmpSecretKey=Te.SecretKey);var tt=On(Te);if(tt)return Z(tt);re._StsCache.push(Te),en()});else return function(){var St="";if(re.options.StartTime&&I.Expires){if(re.options.StartTime.toString().length!==10)return Z(s.error(new Error('params "StartTime" should be 10 digits')));St=re.options.StartTime+";"+(re.options.StartTime+I.Expires*1)}else if(re.options.StartTime&&re.options.ExpiredTime){if(re.options.StartTime.toString().length!==10)return Z(s.error(new Error('params "StartTime" should be 10 digits')));if(re.options.ExpiredTime.toString().length!==10)return Z(s.error(new Error('params "ExpiredTime" should be 10 digits')));St=re.options.StartTime+";"+re.options.ExpiredTime*1}var tt=s.getAuth({SecretId:I.SecretId||re.options.SecretId,SecretKey:I.SecretKey||re.options.SecretKey,Method:I.Method,Pathname:at,Query:I.Query,Headers:L,Expires:I.Expires,KeyTime:St,UseRawKey:re.options.UseRawKey,SystemClockOffset:re.options.SystemClockOffset,ForceSignHost:W}),qe={Authorization:tt,SecurityToken:re.options.SecurityToken||re.options.XCosSecurityToken,SignFrom:"client"};return Z(null,qe),qe}();return""}function cf(I){var F=this,L=!1,B=!1,W=!1,V=I.headers&&(I.headers.date||I.headers.Date)||I.error&&I.error.ServerTime;try{var Z=I.error.Code,re=I.error.Message;(Z==="RequestTimeTooSkewed"||Z==="AccessDenied"&&re==="Request has expired")&&(B=!0)}catch{}if(I)if(B&&V){var me=Date.parse(V);this.options.CorrectClockSkew&&Math.abs(s.getSkewTime(this.options.SystemClockOffset)-me)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=me-Date.now(),L=!0)}else Math.floor(I.statusCode/100)===5?L=!0:I.message==="CORS blocked or network error"&&(W=!0,L=F.options.AutoSwitchHost);return{canRetry:L,networkError:W}}function ff(I){var F=I.requestUrl,L=I.clientCalcSign,B=I.networkError;if(!this.options.AutoSwitchHost||!F||!L||!B)return!1;var W=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,V=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,Z=W.test(F)&&!V.test(F);return Z}function Le(I,F){var L=this;!I.headers&&(I.headers={}),!I.qs&&(I.qs={}),I.VersionId&&(I.qs.versionId=I.VersionId),I.qs=s.clearKey(I.qs),I.headers&&(I.headers=s.clearKey(I.headers)),I.qs&&(I.qs=s.clearKey(I.qs));var B=s.clone(I.qs);I.action&&(B[I.action]="");var W=I.url||I.Url,V=I.SignHost||Wa.call(this,{Bucket:I.Bucket,Region:I.Region,Url:W}),Z=I.tracker,re=function me(Ve){var Ne=L.options.SystemClockOffset;Z&&Z.setParams({signStartTime:new Date().getTime(),httpRetryTimes:Ve-1}),I.SwitchHost&&(V=V.replace(/myqcloud.com/,"tencentcos.cn")),xl.call(L,{Bucket:I.Bucket||"",Region:I.Region||"",Method:I.method,Key:I.Key,Query:B,Headers:I.headers,SignHost:V,Action:I.Action,ResourceKey:I.ResourceKey,Scope:I.Scope,ForceSignHost:L.options.ForceSignHost,SwitchHost:I.SwitchHost},function(at,Te){if(at){F(at);return}Z&&Z.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),I.AuthData=Te,df.call(L,I,function(rt,Ur){Z&&Z.setParams({httpEndTime:new Date().getTime()});var tr=!1,Hr=!1;if(rt){var en=cf.call(L,rt);tr=en.canRetry||Ne!==L.options.SystemClockOffset,Hr=en.networkError}if(rt&&Ve<2&&tr){I.headers&&(delete I.headers.Authorization,delete I.headers.token,delete I.headers.clientIP,delete I.headers.clientUA,I.headers["x-cos-security-token"]&&delete I.headers["x-cos-security-token"],I.headers["x-ci-security-token"]&&delete I.headers["x-ci-security-token"]);var On=ff.call(L,{requestUrl:(rt==null?void 0:rt.url)||"",clientCalcSign:Te.SignFrom==="client",networkError:Hr});I.SwitchHost=On,I.retry=!0,me(Ve+1)}else F(rt,Ur)})})};re(1)}function df(I,F){var L=this,B=I.TaskId;if(!(B&&!L._isRunningTask(B))){var W=I.Bucket,V=I.Region,Z=I.Key,re=I.method||"GET",me=I.Url||I.url,Ve=I.body,Ne=I.rawBody;L.options.UseAccelerate&&(V="accelerate"),me=me||qr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:W,region:V,object:Z}),I.SwitchHost&&(me=me.replace(/myqcloud.com/,"tencentcos.cn"));var at=Z?me:"";I.action&&(me=me+"?"+(s.isIOS_QQ?"".concat(I.action,"="):I.action)),I.qsStr&&(me.indexOf("?")>-1?me=me+"&"+I.qsStr:me=me+"?"+I.qsStr);var Te={method:re,url:me,headers:I.headers,qs:I.qs,body:Ve},rt="x-cos-security-token";if(s.isCIHost(me)&&(rt="x-ci-security-token"),Te.headers.Authorization=I.AuthData.Authorization,I.AuthData.Token&&(Te.headers.token=I.AuthData.Token),I.AuthData.ClientIP&&(Te.headers.clientIP=I.AuthData.ClientIP),I.AuthData.ClientUA&&(Te.headers.clientUA=I.AuthData.ClientUA),I.AuthData.SecurityToken&&(Te.headers[rt]=I.AuthData.SecurityToken),Te.headers&&(Te.headers=s.clearKey(Te.headers)),I.retry&&(Te.headers["x-cos-sdk-retry"]=!0),Te=s.clearKey(Te),I.onProgress&&typeof I.onProgress=="function"){var Ur=Ve&&(Ve.size||Ve.length)||0;Te.onProgress=function(qe){if(!(B&&!L._isRunningTask(B))){var wt=qe?qe.loaded:0;I.onProgress({loaded:wt,total:Ur})}}}I.onDownloadProgress&&(Te.onDownloadProgress=I.onDownloadProgress),I.DataType&&(Te.dataType=I.DataType),this.options.Timeout&&(Te.timeout=this.options.Timeout),L.options.ForcePathStyle&&(Te.pathStyle=L.options.ForcePathStyle),L.emit("before-send",Te);var tr=Te.url.includes("accelerate."),Hr=Te.qs?Object.keys(Te.qs).map(function(qe){return"".concat(qe,"=").concat(Te.qs[qe])}).join("&"):"",en=Hr?Te.url+"?"+Hr:Te.url;if(I.tracker){var On;I.tracker.setParams({url:en,httpMethod:Te.method,accelerate:tr,httpSize:((On=Te.body)===null||On===void 0?void 0:On.size)||0}),I.tracker.parent&&!I.tracker.parent.params.url&&I.tracker.parent.setParams({url:at,accelerate:tr})}var St=(L.options.Request||o)(Te,function(qe){if(!(qe&&qe.error==="abort")){var wt={options:Te,error:qe&&qe.error,statusCode:qe&&qe.statusCode||0,statusMessage:qe&&qe.statusMessage||"",headers:qe&&qe.headers||{},body:qe&&qe.body};L.emit("after-receive",wt);var hf=wt.error,Cl=wt.body,xi={statusCode:wt.statusCode,statusMessage:wt.statusMessage,headers:wt.headers},jp,aa=function(oa,Wt){if(B&&L.off("inner-kill-task",tt),!jp){jp=!0;var ja={};if(xi&&xi.statusCode&&(ja.statusCode=xi.statusCode),xi&&xi.headers&&(ja.headers=xi.headers),oa)Te.url&&(ja.url=Te.url),Te.method&&(ja.method=Te.method),oa=s.extend(oa||{},ja),F(oa,null);else{if(I.Action==="name/cos:PutObject"){var pf={};for(var Yp in I.headers){var fw=Yp.toLowerCase();pf[fw]=I.headers[Yp]}pf["x-cos-callback"]?Wt.Error?(Wt.CallbackError=s.clone(Wt.Error),delete Wt.Error):Wt.CallbackBody=s.clone(Wt):pf["x-cos-return-body"]&&(Wt.Error?(Wt.ReturnError=s.clone(Wt.Error),delete Wt.Error):Wt.ReturnBody=s.clone(Wt))}Wt=s.extend(Wt||{},ja),F(null,Wt)}St=null}};if(hf)return aa(s.error(hf));var wl=xi.statusCode,Kp=Math.floor(wl/100)===2;if(Ne){if(Kp)return aa(null,{body:Cl});if(Cl instanceof Blob){s.readAsBinaryString(Cl,function(Xp){var oa=s.parseResBody(Xp),Wt=oa.Error||oa;return aa(s.error(new Error(Wt.Message||"response body error"),{code:Wt.Code,error:Wt}))});return}}var vf=s.parseResBody(Cl),Tl=vf.Error||vf;Kp?aa(null,vf):Tl?aa(s.error(new Error(Tl.Message),{code:Tl.Code,error:Tl})):wl?aa(s.error(new Error(xi.statusMessage),{code:""+wl})):wl&&aa(s.error(new Error("statusCode error")))}}),tt=function qe(wt){wt.TaskId===B&&(St&&St.abort&&St.abort(),L.off("inner-kill-task",qe))};B&&L.on("inner-kill-task",tt)}}var Wp={getService:l,putBucket:u,headBucket:f,getBucket:c,deleteBucket:d,putBucketAcl:h,getBucketAcl:v,putBucketCors:p,getBucketCors:g,deleteBucketCors:m,getBucketLocation:y,getBucketPolicy:T,putBucketPolicy:S,deleteBucketPolicy:P,putBucketTagging:x,getBucketTagging:_,deleteBucketTagging:M,putBucketLifecycle:C,getBucketLifecycle:w,deleteBucketLifecycle:b,putBucketVersioning:E,getBucketVersioning:A,putBucketReplication:R,getBucketReplication:k,deleteBucketReplication:D,putBucketWebsite:O,getBucketWebsite:$,deleteBucketWebsite:U,putBucketReferer:q,getBucketReferer:H,putBucketDomain:N,getBucketDomain:G,deleteBucketDomain:j,putBucketOrigin:oe,getBucketOrigin:Y,deleteBucketOrigin:te,putBucketLogging:fe,getBucketLogging:ye,putBucketInventory:ce,postBucketInventory:ge,getBucketInventory:Ce,listBucketInventory:se,deleteBucketInventory:he,putBucketAccelerate:Ae,getBucketAccelerate:Re,putBucketEncryption:lt,getBucketEncryption:vt,deleteBucketEncryption:mt,getObject:Ot,headObject:Fe,listObjectVersions:Zt,putObject:Sr,deleteObject:mn,getObjectAcl:ri,putObjectAcl:ni,optionsObject:ii,putObjectCopy:ae,deleteMultipleObject:K,restoreObject:z,putObjectTagging:X,getObjectTagging:J,deleteObjectTagging:ue,selectObjectContent:pe,appendObject:er,uploadPartCopy:ne,multipartInit:Ee,multipartUpload:we,multipartComplete:Se,multipartList:Pe,multipartListPart:Oe,multipartAbort:He,request:ut,getObjectUrl:lr,getAuth:ai};function cw(I,F,L){s.each(["Cors","Acl"],function(B){if(I.slice(-B.length)===B){var W=I.slice(0,-B.length)+B.toUpperCase(),V=s.apiWrapper(I,F),Z=!1;L[W]=function(){!Z&&console.warn("warning: cos."+W+" has been deprecated. Please Use cos."+I+" instead."),Z=!0,V.apply(this,arguments)}}})}r.exports.init=function(I,F){F.transferToTaskMethod(Wp,"putObject"),s.each(Wp,function(L,B){I.prototype[B]=s.apiWrapper(B,L),cw(B,L,I.prototype)})}},"./src/cos.js":function(r,n,i){var a=i("./src/util.js"),o=i("./src/event.js"),s=i("./src/task.js"),l=i("./src/base.js"),u=i("./src/advance.js"),f=i("./package.json"),c={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},d=function(v){if(this.options=a.extend(a.clone(c),v||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),a.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");o.init(this),s.init(this)};l.init(d,s),u.init(d,s),d.util={md5:a.md5,xml2json:a.xml2json,json2xml:a.json2xml,encodeBase64:a.encodeBase64},d.getAuthorization=a.getAuth,d.version=f.version,r.exports=d},"./src/event.js":function(r,n){var i=function(s){var l={},u=function(c){return!l[c]&&(l[c]=[]),l[c]};s.on=function(f,c){f==="task-list-update"&&console.warn('warning: Event "'+f+'" has been deprecated. Please use "list-update" instead.'),u(f).push(c)},s.off=function(f,c){for(var d=u(f),h=d.length-1;h>=0;h--)c===d[h]&&d.splice(h,1)},s.emit=function(f,c){for(var d=u(f).map(function(v){return v}),h=0;h<d.length;h++)d[h](c)}},a=function(){i(this)};r.exports.init=i,r.exports.EventProxy=a},"./src/session.js":function(r,n,i){var a=i("./src/util.js"),o="cos_sdk_upload_cache",s=30*24*3600,l,u,f=function(){try{var g=JSON.parse(localStorage.getItem(o))}catch{}g||(g=[]),l=g},c=function(){try{l.length?localStorage.setItem(o,JSON.stringify(l)):localStorage.removeItem(o)}catch{}},d=function(){if(!l){f.call(this);for(var g=!1,m=Math.round(Date.now()/1e3),y=l.length-1;y>=0;y--){var S=l[y][2];(!S||S+s<m)&&(l.splice(y,1),g=!0)}g&&c()}},h=function(){u||(u=setTimeout(function(){c(),u=null},400))},v={using:{},setUsing:function(g){v.using[g]=!0},removeUsing:function(g){delete v.using[g]},getFileId:function(g,m,y,S){return g.name&&g.size&&g.lastModifiedDate&&m?a.md5([g.name,g.size,g.lastModifiedDate,m,y,S].join("::")):null},getCopyFileId:function(g,m,y,S,T){var P=m["content-length"],x=m.etag||"",_=m["last-modified"];return g&&y?a.md5([g,P,x,_,y,S,T].join("::")):null},getUploadIdList:function(g){if(!g)return null;d.call(this);for(var m=[],y=0;y<l.length;y++)l[y][0]===g&&m.push(l[y][1]);return m.length?m:null},saveUploadId:function(g,m,y){if(d.call(this),!!g){for(var S=l.length-1;S>=0;S--){var T=l[S];T[0]===g&&T[1]===m&&l.splice(S,1)}l.unshift([g,m,Math.round(Date.now()/1e3)]),l.length>y&&l.splice(y),h()}},removeUploadId:function(g){d.call(this),delete v.using[g];for(var m=l.length-1;m>=0;m--)l[m][1]===g&&l.splice(m,1);h()}};r.exports=v},"./src/task.js":function(r,n,i){var a=i("./src/session.js"),o=i("./src/util.js"),s={},l=function(c,d){s[d]=c[d],c[d]=function(h,v){h.SkipTask?s[d].call(this,h,v):this._addTask(d,h,v)}},u=function(c){var d=[],h={},v=0,p=0,g=function(_){var M={id:_.id,Bucket:_.Bucket,Region:_.Region,Key:_.Key,FilePath:_.FilePath,state:_.state,loaded:_.loaded,size:_.size,speed:_.speed,percent:_.percent,hashPercent:_.hashPercent,error:_.error};return _.FilePath&&(M.FilePath=_.FilePath),_._custom&&(M._custom=_._custom),M},m=function(){var x,_=function(){x=0,c.emit("task-list-update",{list:o.map(d,g)}),c.emit("list-update",{list:o.map(d,g)})};return function(){x||(x=setTimeout(_))}}(),y=function(){if(!(d.length<=c.options.UploadQueueSize)){for(var _=0;_<p&&_<d.length&&d.length>c.options.UploadQueueSize;){var M=d[_].state==="waiting"||d[_].state==="checking"||d[_].state==="uploading";!d[_]||!M?(h[d[_].id]&&delete h[d[_].id],d.splice(_,1),p--):_++}m()}},S=function x(){if(!(v>=c.options.FileParallelLimit)){for(;d[p]&&d[p].state!=="waiting";)p++;if(!(p>=d.length)){var _=d[p];p++,v++,_.state="checking",_.params.onTaskStart&&_.params.onTaskStart(g(_)),!_.params.UploadData&&(_.params.UploadData={});var M=o.formatParams(_.api,_.params);s[_.api].call(c,M,function(C,w){c._isRunningTask(_.id)&&((_.state==="checking"||_.state==="uploading")&&(_.state=C?"error":"success",C&&(_.error=C),v--,m(),x(),_.callback&&_.callback(C,w),_.state==="success"&&(_.params&&(delete _.params.UploadData,delete _.params.Body,delete _.params),delete _.callback)),y())}),m(),setTimeout(x)}}},T=function(_,M){var C=h[_];if(C){var w=C&&C.state==="waiting",b=C&&(C.state==="checking"||C.state==="uploading");if(M==="canceled"&&C.state!=="canceled"||M==="paused"&&w||M==="paused"&&b){C.state=M,c.emit("inner-kill-task",{TaskId:_,toState:M});try{var E=C&&C.params&&C.params.UploadData.UploadId}catch{}M==="canceled"&&E&&a.removeUsing(E),m(),b&&(v--,S()),M==="canceled"&&(C.params&&(delete C.params.UploadData,delete C.params.Body,delete C.params),delete C.callback)}y()}};c._addTasks=function(x){o.each(x,function(_){c._addTask(_.api,_.params,_.callback,!0)}),m()};var P=!0;c._addTask=function(x,_,M,C){_=o.formatParams(x,_);var w=o.uuid();_.TaskId=w,_.onTaskReady&&_.onTaskReady(w),_.TaskReady&&(_.TaskReady(w),P&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),P=!1);var b={params:_,callback:M,api:x,index:d.length,id:w,Bucket:_.Bucket,Region:_.Region,Key:_.Key,FilePath:_.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:_._custom},E=_.onHashProgress;_.onHashProgress=function(R){c._isRunningTask(b.id)&&(b.hashPercent=R.percent,E&&E(R),m())};var A=_.onProgress;return _.onProgress=function(R){c._isRunningTask(b.id)&&(b.state==="checking"&&(b.state="uploading"),b.loaded=R.loaded,b.speed=R.speed,b.percent=R.percent,A&&A(R),m())},o.getFileSize(x,_,function(R,k){if(R)return M(o.error(R));h[w]=b,d.push(b),b.size=k,!C&&m(),S(),y()}),w},c._isRunningTask=function(x){var _=h[x];return!!(_&&(_.state==="checking"||_.state==="uploading"))},c.getTaskList=function(){return o.map(d,g)},c.cancelTask=function(x){T(x,"canceled")},c.pauseTask=function(x){T(x,"paused")},c.restartTask=function(x){var _=h[x];_&&(_.state==="paused"||_.state==="error")&&(_.state="waiting",m(),p=Math.min(p,_.index),S())},c.isUploadRunning=function(){return v||p<d.length}};r.exports.transferToTaskMethod=l,r.exports.init=u},"./src/tracker.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=i("./node_modules/@babel/runtime/helpers/createClass.js"),s=i("./node_modules/@babel/runtime/helpers/typeof.js"),l=i("./package.json"),u=null,f=function(M,C){if(!u){if(typeof M!="function")throw new Error("Beacon not found");u=new M({appkey:"0WEB05PY6MHRGK0U",versionCode:l.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:C,sessionDuration:60*1e3})}return u},c=function(M){return!M||M<0?0:(M/1e3).toFixed(3)},d={getUid:function(){var M=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return M()+M()+"-"+M()+"-"+M()+"-"+M()+"-"+M()+M()+M()},getNetType:function(){if((typeof navigator>"u"?"undefined":s(navigator))==="object"){var M=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(M==null?void 0:M.type)||(M==null?void 0:M.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":s(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown os";var M=navigator.userAgent.toLowerCase(),C=/macintosh|mac os x/i.test(navigator.userAgent);return M.indexOf("win32")>=0||M.indexOf("wow32")>=0?"win32":M.indexOf("win64")>=0||M.indexOf("wow64")>=0?"win64":C?"mac":"unknown os"},isMobile:function(){var M=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isAndroid:function(){var M=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isIOS:function(){var M=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isOtherMobile:function(){return h&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown device";var M=navigator.userAgent;return M}},h=d.isMobile(),v=d.isAndroid()?"android":d.isIOS?"ios":"other_mobile",p=d.getOsType(),g=h?v:p,m=d.getUA(),y=d.getProtocol(),S=function(M){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(M)?"UploadTask":M==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(M)?"CopyTask":M};function T(_){return _.replace(/([A-Z])/g,"_$1").toLowerCase()}function P(_){var M={},C=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],w=[].concat(C,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),b=_.requestResult==="Success"?C:w;for(var E in _)if(b.includes(E)){var A=T(E);M[A]=_[E]}return M.request_name=_.realApi?S(_.realApi):_.requestName,M}var x=function(){function _(M){a(this,_);var C=M.parent,w=M.traceId,b=M.bucket,E=M.region,A=M.apiName,R=M.realApi,k=M.httpMethod,D=M.fileKey,O=M.fileSize,$=M.accelerate,U=M.customId,q=M.delay,H=M.deepTracker,N=M.Beacon,G=M.clsReporter,j=b&&b.substr(b.lastIndexOf("-")+1)||"";this.parent=C,this.deepTracker=H,this.delay=q,G&&!this.clsReporter&&(this.clsReporter=G),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:l.version,osName:g,networkType:"",requestName:A||"",requestResult:"",realApi:R,bucket:b,region:E,accelerate:$,httpMethod:k,url:"",host:"",httpDomain:"",requestPath:D||"",userAgent:m,networkProtocol:y,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:O||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:w||d.getUid(),appid:j,partNumber:0,httpRetryTimes:0,customId:U||"",partTime:0},N&&(this.beacon=f(N,q))}return o(_,[{key:"formatResult",value:function(C,w){var b,E,A,R,k,D,O=new Date().getTime(),$=d.getNetType(),U=C?(C==null?void 0:C.code)||(C==null||(b=C.error)===null||b===void 0?void 0:b.code)||(C==null||(E=C.error)===null||E===void 0?void 0:E.Code):"",q=C?(C==null?void 0:C.message)||(C==null||(A=C.error)===null||A===void 0?void 0:A.message)||(C==null||(R=C.error)===null||R===void 0?void 0:R.Message):"",H=q,N=C?(C==null?void 0:C.resource)||(C==null||(k=C.error)===null||k===void 0?void 0:k.resource)||(C==null||(D=C.error)===null||D===void 0?void 0:D.Resource):"",G=C?C==null?void 0:C.statusCode:w.statusCode,j=C?(C==null?void 0:C.headers)&&(C==null?void 0:C.headers["x-cos-request-id"]):(w==null?void 0:w.headers)&&(w==null?void 0:w.headers["x-cos-request-id"]),oe=C?j?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=w?w.headers&&w.headers["content-length"]:0);var Y=this.params.realApi==="sliceUploadFile",te=this.params.realApi==="sliceCopyFile";if(Y||te){var fe=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:fe<0?0:fe.toFixed(3)})}else{var ye=O-this.params.startTime,xe=this.params.httpEndTime-this.params.httpStartTime,ce=this.params.httpSize/1024/(xe/1e3),ge=this.params.md5EndTime-this.params.md5StartTime,Ce=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",c(xe)),this.parent.addParamValue("httpFullTime",c(ye)),this.parent.addParamValue("httpMd5",c(ge)),this.parent.addParamValue("httpSign",c(Ce)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",c(xe))),Object.assign(this.params,{httpFullTime:c(ye),httpMd5:c(ge),httpSign:c(Ce),httpTookTime:c(xe),httpSpeed:ce<0?0:ce.toFixed(3)})}if(Object.assign(this.params,{networkType:$,requestResult:C?"Failure":"Success",errorType:oe,errorCode:U,errorHttpCode:G,errorName:H,errorMessage:q,errorServiceName:N,errorRequestId:j}),C&&(!U||!q)&&(this.params.fullError=C?JSON.stringify(C):""),this.params.url){try{var se=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=se[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(C,w){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(C,w);var b=P(this.params);this.beacon&&this.sendEventsToBeacon(b),this.clsReporter&&this.sendEventsToCLS(b)}}},{key:"setParams",value:function(C){Object.assign(this.params,C)}},{key:"addParamValue",value:function(C,w){this.params[C]=(+this.params[C]+ +w).toFixed(3)}},{key:"sendEventsToBeacon",value:function(C){var w=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(w&&!this.deepTracker)){var b="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(b,C):this.beacon&&this.beacon.onUserAction(b,C)}}},{key:"sendEventsToCLS",value:function(C){var w=this.delay===0;this.clsReporter.log(C,w)}},{key:"generateSubTracker",value:function(C){return Object.assign(C,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new _(C)}}]),_}();r.exports=x},"./src/util.js":function(r,n,i){(function(a){var o=i("./node_modules/@babel/runtime/helpers/typeof.js");function s(K,z){var X=typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(!X){if(Array.isArray(K)||(X=l(K))||z){X&&(K=X);var J=0,ue=function(){};return{s:ue,n:function(){return J>=K.length?{done:!0}:{done:!1,value:K[J++]}},e:function(Pe){throw Pe},f:ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  27. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var pe=!0,Ee=!1,we;return{s:function(){X=X.call(K)},n:function(){var Pe=X.next();return pe=Pe.done,Pe},e:function(Pe){Ee=!0,we=Pe},f:function(){try{!pe&&X.return!=null&&X.return()}finally{if(Ee)throw we}}}}function l(K,z){if(K){if(typeof K=="string")return u(K,z);var X=Object.prototype.toString.call(K).slice(8,-1);if(X==="Object"&&K.constructor&&(X=K.constructor.name),X==="Map"||X==="Set")return Array.from(K);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return u(K,z)}}function u(K,z){(z==null||z>K.length)&&(z=K.length);for(var X=0,J=new Array(z);X<z;X++)J[X]=K[X];return J}var f=i("./lib/md5.js"),c=i("./lib/crypto.js"),d=i("./node_modules/fast-xml-parser/src/fxp.js"),h=d.XMLParser,v=d.XMLBuilder,p=new h({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),g=new v,m=i("./lib/base64.js"),y=i("./src/tracker.js"),S=function(z){var X=p.parse(z);return X},T=function(z){var X=g.build(z);return X};function P(K){return encodeURIComponent(K).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function x(K,z){var X=[];for(var J in K)K.hasOwnProperty(J)&&X.push(z?P(J).toLowerCase():J);return X.sort(function(ue,pe){return ue=ue.toLowerCase(),pe=pe.toLowerCase(),ue===pe?0:ue>pe?1:-1})}var _=function(z,X){var J,ue,pe,Ee=[],we=x(z);for(J=0;J<we.length;J++)ue=we[J],pe=z[ue]===void 0||z[ue]===null?"":""+z[ue],ue=X?P(ue).toLowerCase():P(ue),pe=P(pe)||"",Ee.push(ue+"="+pe);return Ee.join("&")},M=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],C=function(z){var X={};for(var J in z){var ue=J.toLowerCase();(ue.indexOf("x-cos-")>-1||M.indexOf(ue)>-1)&&(X[J]=z[J])}return X},w=function(z){z=z||{};var X=z.SecretId,J=z.SecretKey,ue=z.KeyTime,pe=(z.method||z.Method||"get").toLowerCase(),Ee=G(z.Query||z.params||{}),we=C(G(z.Headers||z.headers||{})),Se=z.Key||"",Pe;z.UseRawKey?Pe=z.Pathname||z.pathname||"/"+Se:(Pe=z.Pathname||z.pathname||Se,Pe.indexOf("/")!==0&&(Pe="/"+Pe));var Oe=z.ForceSignHost!==!1;if(!we.Host&&!we.host&&z.Bucket&&z.Region&&Oe&&(we.Host=z.Bucket+".cos."+z.Region+".myqcloud.com"),!X)throw new Error("missing param SecretId");if(!J)throw new Error("missing param SecretKey");var He=Math.round(vt(z.SystemClockOffset)/1e3)-1,ut=He,er=z.Expires||z.expires;er===void 0?ut+=900:ut+=er*1||0;var ai="sha1",lr=X,ht=ue||He+";"+ut,kn=ue||He+";"+ut,qr=x(we,!0).join(";").toLowerCase(),Wa=x(Ee,!0).join(";").toLowerCase(),xl=c.HmacSHA1(kn,J).toString(),cf=[pe,Pe,ne.obj2str(Ee,!0),ne.obj2str(we,!0),""].join(`
  28. `),ff=["sha1",ht,c.SHA1(cf).toString(),""].join(`
  29. `),Le=c.HmacSHA1(ff,xl).toString(),df=["q-sign-algorithm="+ai,"q-ak="+lr,"q-sign-time="+ht,"q-key-time="+kn,"q-header-list="+qr,"q-url-param-list="+Wa,"q-signature="+Le].join("&");return df},b=function(z,X,J){var ue=X/8,pe=z.slice(J,J+ue);return new Uint8Array(pe).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[X](pe)[0]},E=function(z,X,J,ue){var pe=z.slice(X,J),Ee="";return new Uint8Array(pe).forEach(function(we){Ee+=String.fromCharCode(we)}),ue&&(Ee=decodeURIComponent(escape(Ee))),Ee},A=function(z){for(var X={},J=E(z),ue={records:[]};z.byteLength;){var pe=b(z,32,0),Ee=b(z,32,4),we=pe-Ee-16,Se=0,Pe;for(z=z.slice(12);Se<Ee;){var Oe=b(z,8,Se),He=E(z,Se+1,Se+1+Oe),ut=b(z,16,Se+Oe+2),er=E(z,Se+Oe+4,Se+Oe+4+ut);X[He]=er,Se+=Oe+4+ut}if(X[":event-type"]==="Records")Pe=E(z,Se,Se+we,!0),ue.records.push(Pe);else if(X[":event-type"]==="Stats")Pe=E(z,Se,Se+we,!0),ue.stats=ne.xml2json(Pe).Stats;else if(X[":event-type"]==="error"){var ai=X[":error-code"],lr=X[":error-message"],ht=new Error(lr);ht.message=lr,ht.name=ht.code=ai,ue.error=ht}z=z.slice(Se+we+4)}return{payload:ue.records.join(""),body:J}},R=function(z){var X=this.options.CopySourceParser;if(X)return X(z);var J=z.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return J?{Bucket:J[1],Region:J[3],Key:J[7]}:null},k=function(){},D=function(z){var X={};for(var J in z)z.hasOwnProperty(J)&&z[J]!==void 0&&z[J]!==null&&(X[J]=z[J]);return X},O=function(z,X){var J,ue=new FileReader;FileReader.prototype.readAsBinaryString?(J=FileReader.prototype.readAsBinaryString,ue.onload=function(){X(this.result)}):FileReader.prototype.readAsArrayBuffer?J=function(Ee){var we="",Se=new FileReader;Se.onload=function(Pe){for(var Oe=new Uint8Array(Se.result),He=Oe.byteLength,ut=0;ut<He;ut++)we+=String.fromCharCode(Oe[ut]);X(we)},Se.readAsArrayBuffer(Ee)}:console.error("FileReader not support readAsBinaryString"),J.call(ue,z)},$=function(){var K=function(J,ue){J=J.split("."),ue=ue.split(".");for(var pe=0;pe<ue.length;pe++)if(J[pe]!==ue[pe])return parseInt(J[pe])>parseInt(ue[pe])?1:-1;return 0},z=function(J){if(!J)return!1;var ue=(J.match(/Chrome\/([.\d]+)/)||[])[1],pe=(J.match(/QBCore\/([.\d]+)/)||[])[1],Ee=(J.match(/QQBrowser\/([.\d]+)/)||[])[1],we=ue&&K(ue,"53.0.2785.116")<0&&pe&&K(pe,"3.53.991.400")<0&&Ee&&K(Ee,"9.0.2524.400")<=0||!1;return we};return z(typeof navigator<"u"&&navigator.userAgent)}(),U=function(z,X,J,ue,pe){var Ee;if(z.slice?Ee=z.slice(X,J):z.mozSlice?Ee=z.mozSlice(X,J):z.webkitSlice&&(Ee=z.webkitSlice(X,J)),ue&&$){var we=new FileReader;we.onload=function(Se){Ee=null,pe(new Blob([we.result]))},we.readAsArrayBuffer(Ee)}else pe(Ee)},q=function(z,X,J,ue){J=J||k,z?typeof X=="string"?J(ne.md5(X,!0)):Blob&&X instanceof Blob?ne.getFileMd5(X,function(pe,Ee){J(Ee)},ue):J():J()},H=1024*1024,N=function(z,X,J){var ue=z.size,pe=0,Ee=f.getCtx(),we=function Se(Pe){if(Pe>=ue){var Oe=Ee.digest("hex");X(null,Oe);return}var He=Math.min(ue,Pe+H);ne.fileSlice(z,Pe,He,!1,function(ut){O(ut,function(er){ut=null,Ee=Ee.update(er,!0),pe+=er.length,er=null,J&&J({loaded:pe,total:ue,percent:Math.round(pe/ue*1e4)/1e4}),Se(Pe+H)})})};we(0)};function G(K){return xe(K,function(z){return o(z)==="object"&&z!==null?G(z):z})}function j(K,z,X){return K&&z in K?K[z]:X}function oe(K,z){return ye(z,function(X,J){K[J]=z[J]}),K}function Y(K){return K instanceof Array}function te(K,z){for(var X=!1,J=0;J<K.length;J++)if(z===K[J]){X=!0;break}return X}function fe(K){return Y(K)?K:[K]}function ye(K,z){for(var X in K)K.hasOwnProperty(X)&&z(K[X],X)}function xe(K,z){var X=Y(K)?[]:{};for(var J in K)K.hasOwnProperty(J)&&(X[J]=z(K[J],J));return X}function ce(K,z){var X=Y(K),J=X?[]:{};for(var ue in K)K.hasOwnProperty(ue)&&z(K[ue],ue)&&(X?J.push(K[ue]):J[ue]=K[ue]);return J}var ge=function(z){var X,J,ue,pe="";for(X=0,J=z.length/2;X<J;X++)ue=parseInt(z[X*2]+z[X*2+1],16),pe+=String.fromCharCode(ue);return btoa(pe)},Ce=function(){var z=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return z()+z()+"-"+z()+"-"+z()+"-"+z()+"-"+z()+z()+z()},se=function(z,X){var J=X.Bucket,ue=X.Region,pe=X.Key,Ee=this.options.Domain,we=!Ee||typeof Ee=="string"&&Ee.indexOf("{Bucket}")>-1,Se=!Ee||typeof Ee=="string"&&Ee.indexOf("{Region}")>-1;if(z.indexOf("Bucket")>-1||z==="deleteMultipleObject"||z==="multipartList"||z==="listObjectVersions"){if(we&&!J)return"Bucket";if(Se&&!ue)return"Region"}else if(z.indexOf("Object")>-1||z.indexOf("multipart")>-1||z==="sliceUploadFile"||z==="abortUploadTask"||z==="uploadFile"){if(we&&!J)return"Bucket";if(Se&&!ue)return"Region";if(!pe)return"Key"}return!1},he=function(z,X){if(X=oe({},X),z!=="getAuth"&&z!=="getV4Auth"&&z!=="getObjectUrl"){var J=X.Headers||{};if(X&&o(X)==="object"){(function(){for(var pe in X)X.hasOwnProperty(pe)&&pe.indexOf("x-cos-")>-1&&(J[pe]=X[pe])})();var ue={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};ne.each(ue,function(pe,Ee){X[pe]!==void 0&&(J[Ee]=X[pe])}),X.Headers=D(J)}}return X},Ae=function(z,X){return function(J,ue){var pe=this;typeof J=="function"&&(ue=J,J={}),J=he(z,J);var Ee;if(pe.options.EnableReporter)if(J.calledBySdk==="sliceUploadFile"||J.calledBySdk==="sliceCopyFile")Ee=J.tracker&&J.tracker.generateSubTracker({apiName:z});else if(["uploadFile","uploadFiles"].includes(z))Ee=null;else{var we=0;J.Body&&(we=typeof J.Body=="string"?J.Body.length:J.Body.size||J.Body.byteLength||0);var Se=pe.options.UseAccelerate||typeof pe.options.Domain=="string"&&pe.options.Domain.includes("accelerate.");Ee=new y({Beacon:pe.options.BeaconReporter,clsReporter:pe.options.ClsReporter,bucket:J.Bucket,region:J.Region,apiName:z,realApi:z,accelerate:Se,fileKey:J.Key,fileSize:we,deepTracker:pe.options.DeepTracker,customId:pe.options.CustomId,delay:pe.options.TrackerDelay})}J.tracker=Ee;var Pe=function(ht){return ht&&ht.headers&&(ht.headers["x-cos-request-id"]&&(ht.RequestId=ht.headers["x-cos-request-id"]),ht.headers["x-ci-request-id"]&&(ht.RequestId=ht.headers["x-ci-request-id"]),ht.headers["x-cos-version-id"]&&(ht.VersionId=ht.headers["x-cos-version-id"]),ht.headers["x-cos-delete-marker"]&&(ht.DeleteMarker=ht.headers["x-cos-delete-marker"])),ht},Oe=function(ht,kn){Ee&&Ee.report(ht,kn),ue&&ue(Pe(ht),Pe(kn))},He=function(){if(z!=="getService"&&z!=="abortUploadTask"){var ht=se.call(pe,z,J);if(ht)return"missing param "+ht;if(J.Region){if(pe.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(J.Region))return"Region format error."}else{if(J.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(J.Region))return"Region format error."}!pe.options.CompatibilityMode&&J.Region.indexOf("-")===-1&&J.Region!=="yfb"&&J.Region!=="default"&&J.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(J.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(J.Bucket))if(J.AppId)J.Bucket=J.Bucket+"-"+J.AppId;else if(pe.options.AppId)J.Bucket=J.Bucket+"-"+pe.options.AppId;else return'Bucket should format as "test-1250000000".';J.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete J.AppId)}!pe.options.UseRawKey&&J.Key&&J.Key.substr(0,1)==="/"&&(J.Key=J.Key.substr(1))}},ut=He(),er=["getAuth","getObjectUrl"].includes(z);if(typeof Promise=="function"&&!er&&!ue)return new Promise(function(lr,ht){if(ue=function(qr,Wa){qr?ht(qr):lr(Wa)},ut)return Oe(ne.error(new Error(ut)));X.call(pe,J,Oe)});if(ut)return Oe(ne.error(new Error(ut)));var ai=X.call(pe,J,Oe);if(er)return ai}},Re=function(z,X){var J=this,ue=0,pe=0,Ee=Date.now(),we,Se;function Pe(){if(Se=0,X&&typeof X=="function"){we=Date.now();var Oe=Math.max(0,Math.round((pe-ue)/((we-Ee)/1e3)*100)/100)||0,He;pe===0&&z===0?He=1:He=Math.floor(pe/z*100)/100||0,Ee=we,ue=pe;try{X({loaded:pe,total:z,speed:Oe,percent:He})}catch{}}}return function(Oe,He){if(Oe&&(pe=Oe.loaded,z=Oe.total),He)clearTimeout(Se),Pe();else{if(Se)return;Se=setTimeout(Pe,J.options.ProgressInterval)}}},lt=function(z,X,J){var ue;if(typeof X.Body=="string"?X.Body=new Blob([X.Body],{type:"text/plain"}):X.Body instanceof ArrayBuffer&&(X.Body=new Blob([X.Body])),X.Body&&(X.Body instanceof Blob||X.Body.toString()==="[object File]"||X.Body.toString()==="[object Blob]"))ue=X.Body.size;else{J(ne.error(new Error("params body format error, Only allow File|Blob|String.")));return}X.ContentLength=ue,J(null,ue)},vt=function(z){return Date.now()+(z||0)},mt=function(z,X){var J=z;return z.message=z.message||null,typeof X=="string"?(z.error=X,z.message=X):o(X)==="object"&&X!==null&&(oe(z,X),(X.code||X.name)&&(z.code=X.code||X.name),X.message&&(z.message=X.message),X.stack&&(z.stack=X.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(z,"name",{writable:!0,enumerable:!1}),Object.defineProperty(z,"message",{enumerable:!0})),z.name=X&&X.name||z.name||z.code||"Error",z.code||(z.code=z.name),z.error||(z.error=G(J)),z},Fe=function(){return(typeof globalThis>"u"?"undefined":o(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Zt=function(){return(typeof window>"u"?"undefined":o(window))!=="object"&&(typeof a>"u"?"undefined":o(a))==="object"&&!0&&!Fe()},Ot=function(z){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(z)},Sr=function(){if((typeof navigator>"u"?"undefined":o(navigator))!=="object")return!1;var K=navigator.userAgent,z=!!K.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return z}(),mn=function(){return(typeof navigator>"u"?"undefined":o(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),ri=function(z,X){var J=m.encode(z);return X&&(J=J.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),J},ni=function(z){return z?m.decode(z):""},ii=function(z){var X=z.split("/"),J=[],ue=s(X),pe;try{for(ue.s();!(pe=ue.n()).done;){var Ee=pe.value;Ee===".."?J.length&&J.pop():Ee.length&&Ee!=="."&&J.push(Ee)}}catch(we){ue.e(we)}finally{ue.f()}return"/"+J.join("/")},ae=function(z){var X;if(z&&typeof z=="string"){var J=z.trim(),ue=J.indexOf("<")===0,pe=J.indexOf("{")===0;if(ue)X=ne.xml2json(z)||{};else if(pe)try{var Ee=z.replace(/\n/g," "),we=JSON.parse(Ee);Object.prototype.toString.call(we)==="[object Object]"?X=we:X=z}catch{X=z}else X=z}else X=z||{};return X},ne={noop:k,formatParams:he,apiWrapper:Ae,xml2json:S,json2xml:T,md5:f,clearKey:D,fileSlice:U,getBodyMd5:q,getFileMd5:N,b64:ge,extend:oe,isArray:Y,isInArray:te,makeArray:fe,each:ye,map:xe,filter:ce,clone:G,attr:j,uuid:Ce,camSafeUrlEncode:P,throttleOnProgress:Re,getFileSize:lt,getSkewTime:vt,error:mt,obj2str:_,getAuth:w,parseSelectPayload:A,getSourceParams:R,isBrowser:!0,isNode:Zt,isCIHost:Ot,isIOS_QQ:Sr&&mn,encodeBase64:ri,decodeBase64:ni,simplifyPath:ii,readAsBinaryString:O,parseResBody:ae};r.exports=ne}).call(this,i("./node_modules/process/browser.js"))}})})})(y1);var P_=y1.exports;const M_=Tc(P_),S1="daya-online-1303457149",ug="tencent";async function cg(t,e,r,n=!0,i){i||(i={isLoading:!0}),i.isLoading&&ui.loading(!0,i.text||"资源上传中"),n&&(t=L_(t));const a=await R_(t,r);if(a.code===200)try{const o=await D_(a.data.signature,{fileName:t,file:e,filePath:r});return i.isLoading&&ui.loading(!1),o.statusCode===200?o.Location.includes("http")?o.Location:`https://${o.Location}`:Promise.reject("")}catch{return i.isLoading&&ui.loading(!1),Promise.reject("")}else return i.isLoading&&ui.loading(!1),Promise.reject("")}const R_=async(t,e)=>{const r=`pptList/${e||"errPath/"}`+t;return EI(PI,{postData:{key:r},pluginName:ug,bucketName:S1,filename:r},{pluginName:ug})},D_=(t,e)=>new M_({Domain:"https://oss.dayaedu.com",Protocol:"https",getAuthorization:async(n,i)=>{i({Authorization:t})}}).uploadFile({Bucket:S1,Region:"ap-nanjing",Key:`pptList/${e.filePath||"errPath/"}${e.fileName}`,Body:e.file,SliceSize:1024*1024*500,onProgress:function(n){}});function L_(t){const e=t.lastIndexOf("."),r=t.substring(0,e),n=t.substring(e);return`${r}_${Date.now()}${n}`}function k_(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),e&&(n.href=e),i.href=t,i.href}const O_=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function vi(t){const e=[];for(let r=0,n=t.length;r<n;r++)e.push(t[r]);return e}function Vu(t,e){const n=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function B_(t){const e=Vu(t,"border-left-width"),r=Vu(t,"border-right-width");return t.clientWidth+e+r}function N_(t){const e=Vu(t,"border-top-width"),r=Vu(t,"border-bottom-width");return t.clientHeight+e+r}function b1(t,e={}){const r=e.width||B_(t),n=e.height||N_(t);return{width:r,height:n}}function F_(){let t,e;try{e=process}catch{}const r=e&&e.env?e.env.devicePixelRatio:null;return r&&(t=parseInt(r,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}const Vr=16384;function $_(t){(t.width>Vr||t.height>Vr)&&(t.width>Vr&&t.height>Vr?t.width>t.height?(t.height*=Vr/t.width,t.width=Vr):(t.width*=Vr/t.height,t.height=Vr):t.width>Vr?(t.height*=Vr/t.width,t.width=Vr):(t.width*=Vr/t.height,t.height=Vr))}function z_(t,e={}){return t.toBlob?new Promise(r=>{t.toBlob(r,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(r=>{const n=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=n.length,a=new Uint8Array(i);for(let o=0;o<i;o+=1)a[o]=n.charCodeAt(o);r(new Blob([a],{type:e.type?e.type:"image/png"}))})}function Gu(t){return new Promise((e,r)=>{const n=new Image;n.decode=()=>e(n),n.onload=()=>e(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=t})}async function U_(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function H_(t,e,r){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),a=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${e} ${r}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(t),U_(i)}const kr=(t,e)=>{if(t instanceof e)return!0;const r=Object.getPrototypeOf(t);return r===null?!1:r.constructor.name===e.name||kr(r,e)};function V_(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function G_(t){return vi(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function W_(t,e,r){const n=`.${t}:${e}`,i=r.cssText?V_(r):G_(r);return document.createTextNode(`${n}{${i}}`)}function fg(t,e,r){const n=window.getComputedStyle(t,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const a=O_();try{e.className=`${e.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(W_(a,r,n)),e.appendChild(o)}function j_(t,e){fg(t,e,":before"),fg(t,e,":after")}const dg="application/font-woff",hg="image/jpeg",K_={woff:dg,woff2:dg,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:hg,jpeg:hg,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function X_(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function Ev(t){const e=X_(t).toLowerCase();return K_[e]||""}function Y_(t){return t.split(/,/)[1]}function uh(t){return t.search(/^(data:)/)!==-1}function Z_(t,e){return`data:${e};base64,${t}`}async function x1(t,e,r){const n=await fetch(t,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const i=await n.blob();return new Promise((a,o)=>{const s=new FileReader;s.onerror=o,s.onloadend=()=>{try{a(r({res:n,result:s.result}))}catch(l){o(l)}},s.readAsDataURL(i)})}const If={};function Q_(t,e,r){let n=t.replace(/\?.*/,"");return r&&(n=t),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function Pv(t,e,r){const n=Q_(t,e,r.includeQueryParams);if(If[n]!=null)return If[n];r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{const a=await x1(t,r.fetchRequestInit,({res:o,result:s})=>(e||(e=o.headers.get("Content-Type")||""),Y_(s)));i=Z_(a,e)}catch(a){i=r.imagePlaceholder||"";let o=`Failed to fetch resource: ${t}`;a&&(o=typeof a=="string"?a:a.message),o&&console.warn(o)}return If[n]=i,i}async function J_(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):Gu(e)}async function q_(t,e){if(t.currentSrc){const a=document.createElement("canvas"),o=a.getContext("2d");a.width=t.clientWidth,a.height=t.clientHeight,o==null||o.drawImage(t,0,0,a.width,a.height);const s=a.toDataURL();return Gu(s)}const r=t.poster,n=Ev(r),i=await Pv(r,n,e);return Gu(i)}async function eA(t){var e;try{if(!((e=t==null?void 0:t.contentDocument)===null||e===void 0)&&e.body)return await _c(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)}async function tA(t,e){return kr(t,HTMLCanvasElement)?J_(t):kr(t,HTMLVideoElement)?q_(t,e):kr(t,HTMLIFrameElement)?eA(t):t.cloneNode(!1)}const rA=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function nA(t,e,r){var n,i;let a=[];return rA(t)&&t.assignedNodes?a=vi(t.assignedNodes()):kr(t,HTMLIFrameElement)&&(!((n=t.contentDocument)===null||n===void 0)&&n.body)?a=vi(t.contentDocument.body.childNodes):a=vi(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),a.length===0||kr(t,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>_c(s,r)).then(l=>{l&&e.appendChild(l)}),Promise.resolve()),e}function iA(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):vi(n).forEach(i=>{let a=n.getPropertyValue(i);i==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),kr(t,HTMLIFrameElement)&&i==="display"&&a==="inline"&&(a="block"),i==="d"&&e.getAttribute("d")&&(a=`path(${e.getAttribute("d")})`),r.setProperty(i,a,n.getPropertyPriority(i))})}function aA(t,e){kr(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),kr(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function oA(t,e){if(kr(t,HTMLSelectElement)){const r=e,n=Array.from(r.children).find(i=>t.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function sA(t,e){return kr(e,Element)&&(iA(t,e),j_(t,e),aA(t,e),oA(t,e)),e}async function lA(t,e){const r=t.querySelectorAll?t.querySelectorAll("use"):[];if(r.length===0)return t;const n={};for(let a=0;a<r.length;a++){const s=r[a].getAttribute("xlink:href");if(s){const l=t.querySelector(s),u=document.querySelector(s);!l&&u&&!n[s]&&(n[s]=await _c(u,e,!0))}}const i=Object.values(n);if(i.length){const a="http://www.w3.org/1999/xhtml",o=document.createElementNS(a,"svg");o.setAttribute("xmlns",a),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const s=document.createElementNS(a,"defs");o.appendChild(s);for(let l=0;l<i.length;l++)s.appendChild(i[l]);t.appendChild(o)}return t}async function _c(t,e,r){return!r&&e.filter&&!e.filter(t)?null:Promise.resolve(t).then(n=>tA(n,e)).then(n=>nA(t,n,e)).then(n=>sA(t,n)).then(n=>lA(n,e))}const C1=/url\((['"]?)([^'"]+?)\1\)/g,uA=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,cA=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function fA(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function dA(t){const e=[];return t.replace(C1,(r,n,i)=>(e.push(i),r)),e.filter(r=>!uh(r))}async function hA(t,e,r,n,i){try{const a=r?k_(e,r):e,o=Ev(e);let s;return i||(s=await Pv(a,o,n)),t.replace(fA(e),`$1${s}$3`)}catch{}return t}function vA(t,{preferredFontFormat:e}){return e?t.replace(cA,r=>{for(;;){const[n,,i]=uA.exec(r)||[];if(!i)return"";if(i===e)return`src: ${n};`}}):t}function w1(t){return t.search(C1)!==-1}async function T1(t,e,r){if(!w1(t))return t;const n=vA(t,r);return dA(n).reduce((a,o)=>a.then(s=>hA(s,o,e,r)),Promise.resolve(n))}async function Al(t,e,r){var n;const i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(t);if(i){const a=await T1(i,null,r);return e.style.setProperty(t,a,e.style.getPropertyPriority(t)),!0}return!1}async function pA(t,e){await Al("background",t,e)||await Al("background-image",t,e),await Al("mask",t,e)||await Al("mask-image",t,e)}async function gA(t,e){const r=kr(t,HTMLImageElement);if(!(r&&!uh(t.src))&&!(kr(t,SVGImageElement)&&!uh(t.href.baseVal)))return;const n=r?t.src:t.href.baseVal,i=await Pv(n,Ev(n),e);await new Promise((a,o)=>{t.onload=a,t.onerror=o;const s=t;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),r?(t.srcset="",t.src=i):t.href.baseVal=i})}async function mA(t,e){const n=vi(t.childNodes).map(i=>I1(i,e));await Promise.all(n).then(()=>t)}async function I1(t,e){kr(t,Element)&&(await pA(t,e),await gA(t,e),await mA(t,e))}function yA(t,e){const{style:r}=t;e.backgroundColor&&(r.backgroundColor=e.backgroundColor),e.width&&(r.width=`${e.width}px`),e.height&&(r.height=`${e.height}px`);const n=e.style;return n!=null&&Object.keys(n).forEach(i=>{r[i]=n[i]}),t}const vg={};async function pg(t){let e=vg[t];if(e!=null)return e;const n=await(await fetch(t)).text();return e={url:t,cssText:n},vg[t]=e,e}async function gg(t,e){let r=t.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,a=(r.match(/url\([^)]+\)/g)||[]).map(async o=>{let s=o.replace(n,"$1");return s.startsWith("https://")||(s=new URL(s,t.url).href),x1(s,e.fetchRequestInit,({result:l})=>(r=r.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>r)}function mg(t){if(t==null)return[];const e=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=t.replace(r,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(n);if(l===null)break;e.push(l[0])}n=n.replace(i,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(o,"gi");for(;;){let l=a.exec(n);if(l===null){if(l=s.exec(n),l===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;e.push(l[0])}return e}async function SA(t,e){const r=[],n=[];return t.forEach(i=>{if("cssRules"in i)try{vi(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,u=pg(l).then(f=>gg(f,e)).then(f=>mg(f).forEach(c=>{try{i.insertRule(c,c.startsWith("@import")?s+=1:i.cssRules.length)}catch(d){console.error("Error inserting rule from remote css",{rule:c,error:d})}})).catch(f=>{console.error("Error loading remote css",f.toString())});n.push(u)}})}catch(a){const o=t.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&n.push(pg(i.href).then(s=>gg(s,e)).then(s=>mg(s).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(n).then(()=>(t.forEach(i=>{if("cssRules"in i)try{vi(i.cssRules||[]).forEach(a=>{r.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),r))}function bA(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>w1(e.style.getPropertyValue("src")))}async function xA(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=vi(t.ownerDocument.styleSheets),n=await SA(r,e);return bA(n)}async function CA(t,e){const r=await xA(t,e);return(await Promise.all(r.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return T1(i.cssText,a,e)}))).join(`
  30. `)}async function wA(t,e){const r=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await CA(t,e);if(r){const n=document.createElement("style"),i=document.createTextNode(r);n.appendChild(i),t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}}async function TA(t,e={}){const{width:r,height:n}=b1(t,e),i=await _c(t,e,!0);return await wA(i,e),await I1(i,e),yA(i,e),await H_(i,r,n)}async function IA(t,e={}){const{width:r,height:n}=b1(t,e),i=await TA(t,e),a=await Gu(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=e.pixelRatio||F_(),u=e.canvasWidth||r,f=e.canvasHeight||n;return o.width=u*l,o.height=f*l,e.skipAutoScale||$_(o),o.style.width=`${u}`,o.style.height=`${f}`,e.backgroundColor&&(s.fillStyle=e.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function _A(t,e={}){const r=await IA(t,e);return await z_(r)}const AA=MI("pptWork",{state:()=>({id:DI().query.id,coverImg:"",jsonUrl:"",isSave:!1}),actions:{async initPPTData(){if(this.id){ui.loading(!0,"资源加载中,请稍等...");const t=await Zp(C_,this.id,di.pptResourcesType);if(t.code===200){const{dataJson:e,chapterLessonCoursewareName:r}=t.data||{},{coverImg:n,jsonUrl:i}=JSON.parse(e);if(this.coverImg=n||"",kt().setTitle(r),i){const o=await I_(i);o.code===200&&__(o.data)}}else LI.replace("/err");ui.loading(!1)}},async updatePPT(){ui.loading(!0,"课件保存中,请稍等..."),await this.updateCoverImg();const{blob:t}=A_();cg(`${this.id}ppt`,t,`${this.id}/`,!1,{isLoading:!1}).then(e=>{const r=Date.now();Zp(di.fromType==="PLATFORM"?T_:w_,{id:this.id,dataJson:JSON.stringify({coverImg:this.coverImg+`?v=_${r}`,jsonUrl:e+`?v=_${r}`})}).then(n=>{n.code===200&&(this.isSave=!0,Qp({showClose:!0,message:"保存成功!",type:"success"})),ui.loading(!1)})}).catch(()=>{ui.loading(!1),Qp({showClose:!0,message:"保存失败!",type:"error"})})},async updateCoverImg(){try{const t=document.querySelector("#thumbnailSlide_0");if(t){const e=await _A(t,{pixelRatio:3});if(e){const r=await cg(`${this.id}coverImg`,e,`${this.id}/`,!1,{isLoading:!1});r&&(this.coverImg=r)}}}catch(t){console.log(t,"上传coverImg错误")}}}}),Y6=()=>AA(RI),Mv=()=>{const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},_1=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},ch=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),Ac=()=>{const t=Ic(),e=kt(),r=()=>{Mv(),t.setScreening(!0)};return{enterScreening:r,enterScreeningFromStart:()=>{e.updateSlideIndex(0),r()},exitScreening:()=>{t.setScreening(!1),ch()&&_1()}}},EA=ze({__name:"Popover",props:{value:{type:Boolean,default:!1},trigger:{default:"click"},placement:{default:"bottom"},appendTo:{},contentStyle:{},center:{type:Boolean,default:!1},offsetOne:{default:0},offset:{default:8}},emits:["update:value"],setup(t,{emit:e}){const r=t,n=e,i=de(),a=de(),o=de(),s=de(!1),l=_e(()=>r.contentStyle||{});return gr(()=>r.value,()=>{i.value&&(r.value?i.value.show():i.value.hide())}),hn(()=>{i.value&&i.value.destroy()}),_r(()=>{i.value=kI(a.value,{content:o.value,allowHTML:!0,trigger:r.trigger,placement:r.placement,interactive:!0,appendTo:r.appendTo||document.body,maxWidth:"none",offset:[r.offsetOne,r.offset],duration:200,animation:"scale",theme:"popover",onShow(){s.value=!0},onShown(){r.value||n("update:value",!0)},onHidden(){r.value&&n("update:value",!1),s.value=!1}})}),(u,f)=>(ie(),ve("div",{class:ft(["popover",{center:u.center}]),ref_key:"triggerRef",ref:a},[Q("div",{class:"popover-content",style:be(l.value),ref_key:"contentRef",ref:o},[s.value?Hs(u.$slots,"content",{key:0},void 0,!0):Ue("",!0)],4),Hs(u.$slots,"default",{},void 0,!0)],2))}}),_f=Ge(EA,[["__scopeId","data-v-4ba92b31"]]),Pn=Symbol(),na=Symbol(),Z6=Symbol(),Ec=t=>({shadowStyle:_e(()=>{if(t.value){const{h:r,v:n,blur:i,color:a}=t.value;return`${r}px ${n}px ${i}px ${a}`}return""})}),A1=(t,e)=>({flipStyle:_e(()=>{let n="";return t.value&&e.value?n="rotateX(180deg) rotateY(180deg)":e.value?n="rotateX(180deg)":t.value&&(n="rotateY(180deg)"),n})});var E1=(t=>(t.RECT="rect",t.ELLIPSE="ellipse",t.POLYGON="polygon",t))(E1||{});const yg={rect:{name:"矩形",type:"rect",radius:"0",style:""},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L 0 ${e} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(t,e)=>`M 0 0 L ${t*.8} 0 L ${t} ${e*.2} L ${t} ${e} L ${t*.2} ${e} L 0 ${e*.8} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 round 10px)"},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M ${t*.5} 0 L 0 ${e} L ${t} ${e} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(t,e)=>`M ${t*.5} ${e} L 0 0 L ${t} 0 Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(t,e)=>`M 0 0 L 0 ${e} L ${t} ${e} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${e*.5} L ${t*.5} ${e} L 0 ${e*.5} Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t} ${.38*e} L ${.82*t} ${e} L ${.18*t} ${e} L 0 ${.38*e} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(t,e)=>`M ${t*.2} 0 L ${t*.8} 0 L ${t} ${e*.5} L ${t*.8} ${e} L ${t*.2} ${e} L 0 ${e*.5} Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(t,e)=>`M ${t*.5} 0 L ${t*.9} ${e*.2} L ${t} ${e*.6} L ${t*.75} ${e} L ${t*.25} ${e} L 0 ${e*.6} L ${t*.1} ${e*.2} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t*.7} 0 L ${t} ${e*.3} L ${t} ${e*.7} L ${t*.7} ${e} L ${t*.3} ${e} L 0 ${e*.7} L 0 ${e*.3} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(t,e)=>`M ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} L ${t*.25} ${e*.5} L 0 0 Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(t,e)=>`M 0 0 L ${t*.75} 0 L ${t} ${e*.5} L ${t*.75} ${e} L 0 ${e} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(t,e)=>`M 0 ${e*.2} L ${t*.6} ${e*.2} L ${t*.6} 0 L ${t} ${e*.5} L ${t*.6} ${e} L ${t*.6} ${e*.8} L 0 ${e*.8} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.3} 0 L ${t} 0 L ${t*.7} ${e} L 0 ${e} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(t,e)=>`M ${t*.3} ${e} L ${t} ${e} L ${t*.7} 0 L 0 0 Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(t,e)=>`M ${t*.25} 0 L ${t*.75} 0 L ${t} ${e} L 0 ${e} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(t,e)=>`M 0 0 L ${t} 0 L ${t*.75} ${e} L ${t*.25} ${e} Z`}},P1=t=>{const e=_e(()=>{let n=yg.rect;if(t.value.clip){const i=t.value.clip.shape||E1.RECT;n=yg[i]}return n.radius!==void 0&&t.value.radius&&(n={...n,radius:`${t.value.radius}px`,style:`inset(0 round ${t.value.radius}px)`}),n}),r=_e(()=>{if(!t.value.clip)return{top:"0",left:"0",width:"100%",height:"100%"};const[n,i]=t.value.clip.range,a=(i[0]-n[0])/100,o=(i[1]-n[1])/100,s=n[0]/a,l=n[1]/o;return{left:-s+"%",top:-l+"%",width:100/a+"%",height:100/o+"%"}});return{clipShape:e,imgPosition:r}},PA=t=>({filter:_e(()=>{if(!t.value)return"";let r="";const n=Object.keys(t.value);for(const i of n)r+=`${i}(${t.value[i]}) `;return r})}),fl=t=>{const e=_e(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=_e(()=>{var a;return((a=t.value)==null?void 0:a.style)||"solid"}),n=_e(()=>{var a;return((a=t.value)==null?void 0:a.color)||"#5b9bd5"}),i=_e(()=>{const a=e.value;return r.value==="dashed"?a<=6?`${a*4.5} ${a*2}`:`${a*4} ${a*1.5}`:r.value==="dotted"?a<=6?`${a*1.8} ${a*1.6}`:`${a*1.5} ${a*1.2}`:"0 0"});return{outlineWidth:e,outlineStyle:r,outlineColor:n,strokeDashArray:i}},MA=["width","height"],RA=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],DA=ze({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:a.width,height:a.height},[Q("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",rx:a.radius,ry:a.radius,width:a.width,height:a.height,stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,RA)],8,MA)):Ue("",!0)}}),LA=Ge(DA,[["__scopeId","data-v-801a8465"]]),kA=["width","height"],OA=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],BA=ze({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:a.width,height:a.height},[Q("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",cx:a.width/2,cy:a.height/2,rx:a.width/2,ry:a.height/2,stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,OA)],8,kA)):Ue("",!0)}}),NA=Ge(BA,[["__scopeId","data-v-2528d7e2"]]),FA=["width","height"],$A=["d","stroke","stroke-width","stroke-dasharray"],zA=ze({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:a.width,height:a.height},[Q("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:a.createPath(a.width,a.height),stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,$A)],8,FA)):Ue("",!0)}}),UA=Ge(zA,[["__scopeId","data-v-04ee0d7b"]]),HA={class:"image-outline"},VA=ze({__name:"index",props:{elementInfo:{}},setup(t){const e=t,r=_e(()=>e.elementInfo),{clipShape:n}=P1(r);return(i,a)=>(ie(),ve("div",HA,[le(n).type==="rect"?(ie(),Ke(LA,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:le(n).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):le(n).type==="ellipse"?(ie(),Ke(NA,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):le(n).type==="polygon"?(ie(),Ke(UA,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:le(n).createPath},null,8,["width","height","outline","createPath"])):Ue("",!0)]))}}),GA=["width","height"],WA=["d","stroke","stroke-width","stroke-dasharray"],jA=ze({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=fl(cl(e,"outline"));return(a,o)=>a.outline?(ie(),ve("svg",{key:0,class:"element-outline",overflow:"visible",width:a.width,height:a.height},[Q("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:`M0,0 L${a.width},0 L${a.width},${a.height} L0,${a.height} Z`,stroke:le(n),"stroke-width":le(r),"stroke-dasharray":le(i)},null,8,WA)],8,GA)):Ue("",!0)}}),M1=Ge(jA,[["__scopeId","data-v-813f8c74"]]),KA=["id","gradientTransform"],XA=["offset","stop-color"],YA=["id"],ZA=["offset","stop-color"],QA=ze({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(t){return(e,r)=>e.type==="linear"?(ie(),ve("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${e.rotate},0.5,0.5)`},[(ie(!0),ve(Xt,null,Lr(e.colors,(n,i)=>(ie(),ve("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,XA))),128))],8,KA)):(ie(),ve("radialGradient",{key:1,id:e.id},[(ie(!0),ve(Xt,null,Lr(e.colors,(n,i)=>(ie(),ve("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,ZA))),128))],8,YA))}}),JA=["id","markerWidth","markerHeight","refX","refY"],qA=["d","fill","transform"],Sg=ze({__name:"LinePointMarker",props:{id:{},position:{},type:{},baseSize:{},color:{}},setup(t){const e=t,r={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},n={"arrow-start":180,"arrow-end":0},i=_e(()=>r[e.type]),a=_e(()=>n[`${e.type}-${e.position}`]||0),o=_e(()=>e.baseSize<2?2:e.baseSize);return(s,l)=>(ie(),ve("marker",{id:`${s.id}-${s.type}-${s.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:o.value*3,markerHeight:o.value*3,refX:o.value*1.5,refY:o.value*1.5},[Q("path",{d:i.value,fill:s.color,transform:`scale(${o.value*.3}, ${o.value*.3}) rotate(${a.value}, 5, 5)`},null,8,qA)],8,JA))}}),e2=({type:t,data:e,themeColors:r,textColor:n,lineSmooth:i,stack:a})=>{if(t==="bar")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,xAxis:{type:"category",data:e.labels},yAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"bar",label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="column")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,yAxis:{type:"category",data:e.labels},xAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"bar",label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="line")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,xAxis:{type:"category",data:e.labels},yAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"line",smooth:i,label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="pie")return{color:r,textStyle:n?{color:n}:{},legend:{top:"bottom",textStyle:n?{color:n}:{}},series:[{data:e.series[0].map((o,s)=>({value:o,name:e.labels[s]})),label:n?{color:n}:{},type:"pie",radius:"70%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="ring")return{color:r,textStyle:n?{color:n}:{},legend:{top:"bottom",textStyle:n?{color:n}:{}},series:[{data:e.series[0].map((o,s)=>({value:o,name:e.labels[s]})),label:n?{color:n}:{},type:"pie",radius:["40%","70%"],padAngle:1,avoidLabelOverlap:!1,itemStyle:{borderRadius:4},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}}}]};if(t==="area")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,xAxis:{type:"category",boundaryGap:!1,data:e.labels},yAxis:{type:"value"},series:e.series.map((o,s)=>{const l={data:o,name:e.legends[s],type:"line",areaStyle:{},label:{show:!0}};return a&&(l.stack="A"),l})};if(t==="radar")return{color:r,textStyle:n?{color:n}:{},legend:e.series.length>1?{top:"bottom",textStyle:n?{color:n}:{}}:void 0,radar:{indicator:e.labels.map(o=>({name:o}))},series:[{data:e.series.map((o,s)=>({value:o,name:e.legends[s]})),type:"radar"}]};if(t==="scatter"){const o=[];for(let s=0;s<e.series[0].length;s++){const l=e.series[0][s],u=e.series[1]?e.series[1][s]:l;o.push([l,u])}return{color:r,textStyle:n?{color:n}:{},xAxis:{},yAxis:{},series:[{symbolSize:12,data:o,type:"scatter"}]}}return null};/*! *****************************************************************************
  31. Copyright (c) Microsoft Corporation.
  32. Permission to use, copy, modify, and/or distribute this software for any
  33. purpose with or without fee is hereby granted.
  34. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  35. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  36. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  37. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  38. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  39. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  40. PERFORMANCE OF THIS SOFTWARE.
  41. ***************************************************************************** */var fh=function(t,e){return fh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},fh(t,e)};function De(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");fh(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var t2=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r2=function(){function t(){this.browser=new t2,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),xt=new r2;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(xt.wxa=!0,xt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?xt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(xt.node=!0,xt.svgSupported=!0):n2(navigator.userAgent,xt);function n2(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var Rv=12,R1="sans-serif",Wi=Rv+"px "+R1,i2=20,a2=100,o2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function s2(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-i2)/a2;e[n]=i}return e}var l2=s2(o2),dl={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=dl.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Wi),t.measureText(r);r=r||"",n=n||Wi;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Rv,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=l2[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},D1=ji(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),L1=ji(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),hl=Object.prototype.toString,Pc=Array.prototype,u2=Pc.forEach,c2=Pc.filter,Dv=Pc.slice,f2=Pc.map,bg=(function(){}).constructor,El=bg?bg.prototype:null,Lv="__proto__",d2=2311;function k1(){return d2++}function O1(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function pt(t){if(t==null||typeof t!="object")return t;var e=t,r=hl.call(t);if(r==="[object Array]"){if(!Cs(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=pt(t[n])}}else if(L1[r]){if(!Cs(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!D1[r]&&!Cs(t)&&!dh(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Lv&&(e[o]=pt(t[o]))}return e}function Ct(t,e,r){if(!Ye(e)||!Ye(t))return r?pt(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Lv){var i=t[n],a=e[n];Ye(a)&&Ye(i)&&!$e(a)&&!$e(i)&&!dh(a)&&!dh(i)&&!xg(a)&&!xg(i)&&!Cs(a)&&!Cs(i)?Ct(i,a,r):(r||!(n in t))&&(t[n]=pt(e[n]))}return t}function Ie(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Lv&&(t[r]=e[r]);return t}function dt(t,e,r){for(var n=gt(e),i=0;i<n.length;i++){var a=n[i];t[a]==null&&(t[a]=e[a])}return t}function Mt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function h2(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Mn(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else dt(t,e)}function Fr(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function ee(t,e,r){if(t&&e)if(t.forEach&&t.forEach===u2)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function ke(t,e,r){if(!t)return[];if(!e)return Ov(t);if(t.map&&t.map===f2)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function ji(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function vr(t,e,r){if(!t)return[];if(!e)return Ov(t);if(t.filter&&t.filter===c2)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function v2(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function gt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function p2(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Dv.call(arguments)))}}var jt=El&&nt(El.bind)?El.call.bind(El.bind):p2;function Xr(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Dv.call(arguments)))}}function $e(t){return Array.isArray?Array.isArray(t):hl.call(t)==="[object Array]"}function nt(t){return typeof t=="function"}function We(t){return typeof t=="string"}function g2(t){return hl.call(t)==="[object String]"}function Et(t){return typeof t=="number"}function Ye(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function xg(t){return!!D1[hl.call(t)]}function $r(t){return!!L1[hl.call(t)]}function dh(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function kv(t){return t.colorStops!=null}function Wu(t){return t!==t}function Vs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Ze(t,e){return t??e}function xs(t,e,r){return t??e??r}function Ov(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Dv.apply(t,e)}function B1(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Zn(t,e){if(!t)throw new Error(e)}function ki(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var N1="__ec_primitive__";function hh(t){t[N1]=!0}function Cs(t){return t[N1]}var m2=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return gt(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),F1=typeof Map=="function";function y2(){return F1?new Map:new m2}var S2=function(){function t(e){var r=$e(e);this.data=y2();var n=this;e instanceof t?e.each(i):e&&ee(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return F1?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function it(t){return new S2(t)}function b2(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function Mc(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&Ie(r,e),r}function Gs(t,e){return t.hasOwnProperty(e)}function Yr(){}var Tu=180/Math.PI;function Lo(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function x2(t){return[t[0],t[1]]}function Cg(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function C2(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function w2(t){return Math.sqrt(T2(t))}function T2(t){return t[0]*t[0]+t[1]*t[1]}function Af(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function I2(t,e){var r=w2(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function vh(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ph=vh;function _2(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var bo=_2;function Ef(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function dn(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function po(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function go(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Ka=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),A2=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ka(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Ka(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ka(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ka(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ka(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ka(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),yi=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}(),E2=Math.log(2);function gh(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/E2);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(c+=(h%2?-1:1)*t[r][d]*gh(t,e-1,f,u,i|v,a),h++)}return a[o]=c,c}function P2(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=gh(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*gh(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var wg="___zrEVENTSAVED";function M2(t,e,r,n,i){if(e.getBoundingClientRect&&xt.domSupported&&!$1(e)){var a=e[wg]||(e[wg]={}),o=R2(e,a),s=D2(o,a);if(s)return s(t,r,n),!0}return!1}function R2(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function D2(t,e,r){for(var n="trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,d=f.left,h=f.top;o.push(d,h),l=l&&a&&d===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=P2(o,s))}function $1(t){return t.nodeName.toUpperCase()==="CANVAS"}var L2=/([&<>"'])/g,k2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function O2(t){return t==null?"":(t+"").replace(L2,function(e,r){return k2[r]})}var B2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pf=[],N2=xt.browser.firefox&&+xt.browser.version.split(".")[0]<39;function mh(t,e,r,n){return r=r||{},n?Tg(t,e,r):N2&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Tg(t,e,r),r}function Tg(t,e,r){if(xt.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if($1(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(M2(Pf,t,n,i)){r.zrX=Pf[0],r.zrY=Pf[1];return}}r.zrX=r.zrY=0}function Bv(t){return t||window.event}function wn(t,e,r){if(e=Bv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&mh(t,o,e,r)}else{mh(t,e,e,r);var a=F2(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&B2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function F2(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function $2(t,e,r,n){t.addEventListener(e,r,n)}function z2(t,e,r,n){t.removeEventListener(e,r,n)}var U2=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},H2=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=mh(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Mf)if(Mf.hasOwnProperty(r)){var n=Mf[r](this._track,e);if(n)return n}},t}();function Ig(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function V2(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Mf={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Ig(n)/Ig(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=V2(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function ws(){return[1,0,0,1,0,0]}function Nv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function G2(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function xo(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function _g(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function z1(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function W2(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Fv(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var Je=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),Pl=Math.min,Ml=Math.max,sa=new Je,la=new Je,ua=new Je,ca=new Je,zo=new Je,Uo=new Je,It=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=Pl(e.x,this.x),n=Pl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ml(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ml(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=ws();return _g(a,a,[-r.x,-r.y]),W2(a,a,[n,i]),_g(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,d=!(a<l||u<i||s<f||c<o);if(r){var h=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),y=Math.abs(c-o),S=Math.min(p,g),T=Math.min(m,y);a<l||u<i?S>v&&(v=S,p<g?Je.set(Uo,-p,0):Je.set(Uo,g,0)):S<h&&(h=S,p<g?Je.set(zo,p,0):Je.set(zo,-g,0)),s<f||c<o?T>v&&(v=T,m<y?Je.set(Uo,0,-m):Je.set(Uo,0,y)):S<h&&(h=S,m<y?Je.set(zo,0,m):Je.set(zo,0,-y))}return r&&Je.copy(r,d?zo:Uo),d},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}sa.x=ua.x=r.x,sa.y=ca.y=r.y,la.x=ca.x=r.x+r.width,la.y=ua.y=r.y+r.height,sa.transform(n),ca.transform(n),la.transform(n),ua.transform(n),e.x=Pl(sa.x,la.x,ua.x,ca.x),e.y=Pl(sa.y,la.y,ua.y,ca.y);var l=Ml(sa.x,la.x,ua.x,ca.x),u=Ml(sa.y,la.y,ua.y,ca.y);e.width=l-e.x,e.height=u-e.y},t}(),U1="silent";function j2(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:K2}}function K2(){U2(this.event)}var X2=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(yi),Ho=function(){function t(e,r){this.x=e,this.y=r}return t}(),Y2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rf=new It(0,0,0,0),H1=function(t){De(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Ho(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new X2,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new A2(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(ee(Y2,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=V1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ho(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ho(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=j2(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Ho(r,n);if(Ag(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new It(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var d=a[c];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Rf.copy(d.getBoundingRect()),d.transform&&Rf.applyTransform(d.transform),Rf.intersect(f)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),S=n+g*Math.sin(m);if(Ag(s,o,y,S,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new H2);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ho;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(yi);ee(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){H1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=V1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||ph(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function Z2(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?U1:!0}return!1}function Ag(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=Z2(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==U1)){e.target=o;break}}}function V1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var G1=32,Vo=7;function Q2(t){for(var e=0;t>=G1;)e|=t&1,t>>=1;return t+e}function Eg(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;J2(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function J2(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Pg(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Df(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function Lf(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function q2(t,e){var r=Vo,n,i,a=0,o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var v=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=Lf(t[g],t,v,p,0,e);v+=y,p-=y,p!==0&&(m=Df(t[v+p-1],t,g,m,m-1,e),m!==0&&(p<=m?c(v,p,g,m):d(v,p,g,m)))}function c(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=t[h+m];var y=0,S=p,T=h;if(t[T++]=t[S++],--g===0){for(m=0;m<v;m++)t[T+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)t[T+m]=t[S+m];t[T+g]=o[y];return}for(var P=r,x,_,M;;){x=0,_=0,M=!1;do if(e(t[S],o[y])<0){if(t[T++]=t[S++],_++,x=0,--g===0){M=!0;break}}else if(t[T++]=o[y++],x++,_=0,--v===1){M=!0;break}while((x|_)<P);if(M)break;do{if(x=Lf(t[S],o,y,v,0,e),x!==0){for(m=0;m<x;m++)t[T+m]=o[y+m];if(T+=x,y+=x,v-=x,v<=1){M=!0;break}}if(t[T++]=t[S++],--g===0){M=!0;break}if(_=Df(o[y],t,S,g,0,e),_!==0){for(m=0;m<_;m++)t[T+m]=t[S+m];if(T+=_,S+=_,g-=_,g===0){M=!0;break}}if(t[T++]=o[y++],--v===1){M=!0;break}P--}while(x>=Vo||_>=Vo);if(M)break;P<0&&(P=0),P+=2}if(r=P,r<1&&(r=1),v===1){for(m=0;m<g;m++)t[T+m]=t[S+m];t[T+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[T+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var y=h+v-1,S=g-1,T=p+g-1,P=0,x=0;if(t[T--]=t[y--],--v===0){for(P=T-(g-1),m=0;m<g;m++)t[P+m]=o[m];return}if(g===1){for(T-=v,y-=v,x=T+1,P=y+1,m=v-1;m>=0;m--)t[x+m]=t[P+m];t[T]=o[S];return}for(var _=r;;){var M=0,C=0,w=!1;do if(e(o[S],t[y])<0){if(t[T--]=t[y--],M++,C=0,--v===0){w=!0;break}}else if(t[T--]=o[S--],C++,M=0,--g===1){w=!0;break}while((M|C)<_);if(w)break;do{if(M=v-Lf(o[S],t,h,v,v-1,e),M!==0){for(T-=M,y-=M,v-=M,x=T+1,P=y+1,m=M-1;m>=0;m--)t[x+m]=t[P+m];if(v===0){w=!0;break}}if(t[T--]=o[S--],--g===1){w=!0;break}if(C=g-Df(t[y],o,0,g,g-1,e),C!==0){for(T-=C,S-=C,g-=C,x=T+1,P=S+1,m=0;m<C;m++)t[x+m]=o[P+m];if(g<=1){w=!0;break}}if(t[T--]=t[y--],--v===0){w=!0;break}_--}while(M>=Vo||C>=Vo);if(w)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),g===1){for(T-=v,y-=v,x=T+1,P=y+1,m=v-1;m>=0;m--)t[x+m]=t[P+m];t[T]=o[S]}else{if(g===0)throw new Error;for(P=T-(g-1),m=0;m<g;m++)t[P+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Iu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<G1){a=Eg(t,r,n,e),Pg(t,r,n,r+a,e);return}var o=q2(t,e),s=Q2(i);do{if(a=Eg(t,r,n,e),a<s){var l=i;l>s&&(l=s),Pg(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Vn=1,us=2,co=4,Mg=!1;function kf(){Mg||(Mg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Rg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var eE=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Rg}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,Iu(n,Rg)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Vn),this._updateAndAddDisplayable(u,r,n)}e.__dirty=0}else{var f=e;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(kf(),f.z=0),isNaN(f.z2)&&(kf(),f.z2=0),isNaN(f.zlevel)&&(kf(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=Mt(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),yh;yh=xt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ts={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ts.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ts.bounceIn(t*2)*.5:Ts.bounceOut(t*2-1)*.5+.5}},Rl=Math.pow,Ui=Math.sqrt,ju=1e-8,W1=1e-4,Dg=Ui(3),Dl=1/3,Gn=Lo(),ln=Lo(),Co=Lo();function Oi(t){return t>-ju&&t<ju}function j1(t){return t>ju||t<-ju}function or(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Lg(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Ku(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Oi(f)&&Oi(c))if(Oi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=c*c-4*f*d;if(Oi(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Ui(p),S=f*s+1.5*o*(-c+y),T=f*s+1.5*o*(-c-y);S<0?S=-Rl(-S,Dl):S=Rl(S,Dl),T<0?T=-Rl(-T,Dl):T=Rl(T,Dl);var v=(-s-(S+T))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var P=(2*f*s-3*o*c)/(2*Ui(f*f*f)),x=Math.acos(P)/3,_=Ui(f),M=Math.cos(x),v=(-s-2*_*M)/(3*o),m=(-s+_*(M+Dg*Math.sin(x)))/(3*o),C=(-s+_*(M-Dg*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),C>=0&&C<=1&&(a[h++]=C)}}return h}function K1(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Oi(o)){if(j1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Oi(f))i[0]=-a/(2*o);else if(f>0){var c=Ui(f),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Xu(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function tE(t,e,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,p,g,m;Gn[0]=l,Gn[1]=u;for(var y=0;y<1;y+=.05)ln[0]=or(t,r,i,o,y),ln[1]=or(e,n,a,s,y),g=bo(Gn,ln),g<h&&(c=y,h=g);h=1/0;for(var S=0;S<32&&!(d<W1);S++)v=c-d,p=c+d,ln[0]=or(t,r,i,o,v),ln[1]=or(e,n,a,s,v),g=bo(ln,Gn),v>=0&&g<h?(c=v,h=g):(Co[0]=or(t,r,i,o,p),Co[1]=or(e,n,a,s,p),m=bo(Co,Gn),p<=1&&m<h?(c=p,h=m):d*=.5);return Ui(h)}function rE(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=or(t,r,i,o,v),g=or(e,n,a,s,v),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function Rr(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function kg(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function nE(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Oi(a)){if(j1(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Oi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Ui(f),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function X1(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Yu(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function iE(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Gn[0]=o,Gn[1]=s;for(var d=0;d<1;d+=.05){ln[0]=Rr(t,r,i,d),ln[1]=Rr(e,n,a,d);var h=bo(Gn,ln);h<c&&(u=d,c=h)}c=1/0;for(var v=0;v<32&&!(f<W1);v++){var p=u-f,g=u+f;ln[0]=Rr(t,r,i,p),ln[1]=Rr(e,n,a,p);var h=bo(ln,Gn);if(p>=0&&h<c)u=p,c=h;else{Co[0]=Rr(t,r,i,g),Co[1]=Rr(e,n,a,g);var m=bo(Co,Gn);g<=1&&m<c?(u=g,c=m):f*=.5}}return Ui(c)}function aE(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var d=c*f,h=Rr(t,r,i,d),v=Rr(e,n,a,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var oE=/cubic-bezier\(([0-9,\.e ]+)\)/;function $v(t){var e=t&&oE.exec(t);if(e){var r=e[1].split(","),n=+ki(r[0]),i=+ki(r[1]),a=+ki(r[2]),o=+ki(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ku(0,n,a,1,l,s)&&or(0,i,o,1,s[0])}}}var sE=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yr,this.ondestroy=e.ondestroy||Yr,this.onrestart=e.onrestart||Yr,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=nt(e)?e:Ts[e]||$v(e)},t}(),Y1=function(){function t(e){this.value=e}return t}(),lE=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Y1(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),vl=function(){function t(e){this._list=new lE,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Y1(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Og={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Hi(t){return t=Math.round(t),t<0?0:t>255?255:t}function Sh(t){return t<0?0:t>1?1:t}function Of(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Hi(parseFloat(e)/100*255):Hi(parseInt(e,10))}function Is(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Sh(parseFloat(e)/100):Sh(parseFloat(e))}function Bf(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ll(t,e,r){return t+(e-t)*r}function an(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function bh(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Z1=new vl(20),kl=null;function Xa(t,e){kl&&bh(kl,e),kl=Z1.put(t,kl||e.slice())}function Kn(t,e){if(t){e=e||[];var r=Z1.get(t);if(r)return bh(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Og)return bh(e,Og[n]),Xa(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){an(e,0,0,0,1);return}return an(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Xa(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){an(e,0,0,0,1);return}return an(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xa(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?an(e,+u[0],+u[1],+u[2],1):an(e,0,0,0,1);f=Is(u.pop());case"rgb":if(u.length>=3)return an(e,Of(u[0]),Of(u[1]),Of(u[2]),u.length===3?f:Is(u[3])),Xa(t,e),e;an(e,0,0,0,1);return;case"hsla":if(u.length!==4){an(e,0,0,0,1);return}return u[3]=Is(u[3]),Bg(u,e),Xa(t,e),e;case"hsl":if(u.length!==3){an(e,0,0,0,1);return}return Bg(u,e),Xa(t,e),e;default:return}}an(e,0,0,0,1)}}function Bg(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=Is(t[1]),i=Is(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],an(e,Hi(Bf(o,a,r+1/3)*255),Hi(Bf(o,a,r)*255),Hi(Bf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Ng(t,e){var r=Kn(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Rc(r,r.length===4?"rgba":"rgb")}}function uE(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Kn(e[i]),s=Kn(e[a]),l=n-i,u=Rc([Hi(Ll(o[0],s[0],l)),Hi(Ll(o[1],s[1],l)),Hi(Ll(o[2],s[2],l)),Sh(Ll(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Rc(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Zu(t,e){var r=Kn(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Fg=new vl(100);function xh(t){if(We(t)){var e=Fg.get(t);return e||(e=Ng(t,-.1),Fg.put(t,e)),e}else if(kv(t)){var r=Ie({},t);return r.colorStops=ke(t.colorStops,function(n){return{offset:n.offset,color:Ng(n.color,-.1)}}),r}return t}var Qu=Math.round;function Ws(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Kn(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var $g=1e-4;function Bi(t){return t<$g&&t>-$g}function Ol(t){return Qu(t*1e3)/1e3}function Ch(t){return Qu(t*1e4)/1e4}function cE(t){return"matrix("+Ol(t[0])+","+Ol(t[1])+","+Ol(t[2])+","+Ol(t[3])+","+Ch(t[4])+","+Ch(t[5])+")"}var fE={left:"start",right:"end",center:"middle",middle:"middle"};function dE(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function hE(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function vE(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Q1(t){return t&&!!t.image}function pE(t){return t&&!!t.svgElement}function zv(t){return Q1(t)||pE(t)}function J1(t){return t.type==="linear"}function q1(t){return t.type==="radial"}function eS(t){return t&&(t.type==="linear"||t.type==="radial")}function Dc(t){return"url(#"+t+")"}function tS(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function rS(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Tu,i=Ze(t.scaleX,1),a=Ze(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Qu(o*Tu)+"deg, "+Qu(s*Tu)+"deg)"),l.join(" ")}var gE=function(){return xt.hasGlobalWindow&&nt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),wh=Array.prototype.slice;function li(t,e,r){return(e-t)*r+t}function Nf(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=li(e[a],r[a],n);return t}function mE(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=li(e[o][s],r[o][s],n)}return t}function Bl(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function zg(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function yE(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function SE(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:wh.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function _u(t){if(Fr(t)){var e=t.length;if(Fr(t[0])){for(var r=[],n=0;n<e;n++)r.push(wh.call(t[n]));return r}return wh.call(t)}return t}function Au(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function bE(t){return Fr(t&&t[0])?2:1}var Nl=0,Eu=1,nS=2,cs=3,Th=4,Ih=5,Ug=6;function Hg(t){return t===Th||t===Ih}function Fl(t){return t===Eu||t===nS}var Go=[0,0,0,0],xE=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ug,l=r;if(Fr(r)){var u=bE(r);s=u,(u===1&&!Et(r[0])||u===2&&!Et(r[0][0]))&&(o=!0)}else if(Et(r)&&!Wu(r))s=Nl;else if(We(r))if(!isNaN(+r))s=Nl;else{var f=Kn(r);f&&(l=f,s=cs)}else if(kv(r)){var c=Ie({},l);c.colorStops=ke(r.colorStops,function(h){return{offset:h.offset,color:Kn(h.color)}}),J1(r)?s=Th:q1(r)&&(s=Ih),l=c}a===0?this.valType=s:(s!==this.valType||s===Ug)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=nt(n)?n:Ts[n]||$v(n)),i.push(d),d},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fl(i),u=Hg(i),f=0;f<a;f++){var c=n[f],d=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?SE(d,h,i):u&&yE(d.colorStops,h.colorStops))}if(!s&&i!==Ih&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===Nl?n[f].additiveValue=n[f].value-v:i===cs?n[f].additiveValue=Bl([],n[f].value,v,-1):Fl(i)&&(n[f].additiveValue=i===Eu?Bl([],n[f].value,v,-1):zg([],n[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===cs,f,c=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=d(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=d(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=d(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Go:e[l];if((Fl(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:v.rawValue;else if(Fl(a))a===Eu?Nf(y,h[i],v[i],m):mE(y,h[i],v[i],m);else if(Hg(a)){var S=h[i],T=v[i],P=a===Th;e[l]={type:P?"linear":"radial",x:li(S.x,T.x,m),y:li(S.y,T.y,m),colorStops:ke(S.colorStops,function(_,M){var C=T.colorStops[M];return{offset:li(_.offset,C.offset,m),color:Au(Nf([],_.color,C.color,m))}}),global:T.global},P?(e[l].x2=li(S.x2,T.x2,m),e[l].y2=li(S.y2,T.y2,m)):e[l].r=li(S.r,T.r,m)}else if(u)Nf(y,h[i],v[i],m),n||(e[l]=Au(y));else{var x=li(h[i],v[i],m);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Nl?e[n]=e[n]+i:r===cs?(Kn(e[n],Go),Bl(Go,Go,i,1),e[n]=Au(Go)):r===Eu?Bl(e[n],e[n],i,1):r===nS&&zg(e[n],e[n],i,1)},t}(),Uv=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){O1("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,gt(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new xE(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,d=c[c.length-1];u=d&&d.value,f.valType===cs&&u&&(u=Au(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,_u(u),i),this._trackKeys.push(s)}l.addKeyframe(e,_u(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new sE({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ke(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=_u(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||gt(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();function mo(){return new Date().getTime()}var CE=function(t){De(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=mo()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(yh(n),!r._paused&&r.update())}yh(n)},e.prototype.start=function(){this._running||(this._time=mo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=mo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=mo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Uv(r,n.loop);return this.addAnimator(i),i},e}(yi),wE=300,Ff=xt.domSupported,$f=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ke(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),Vg={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Gg=!1;function _h(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TE(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zf(t){t&&(t.zrByTouch=!0)}function IE(t,e){return wn(t.dom,new _E(t,e),!0)}function iS(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var _E=function(){function t(e,r){this.stopPropagation=Yr,this.stopImmediatePropagation=Yr,this.preventDefault=Yr,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Tn={mousedown:function(t){t=wn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=wn(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=wn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=wn(this.dom,t);var e=t.toElement||t.relatedTarget;iS(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Gg=!0,t=wn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Gg||(t=wn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=wn(this.dom,t),zf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Tn.mousemove.call(this,t),Tn.mousedown.call(this,t)},touchmove:function(t){t=wn(this.dom,t),zf(t),this.handler.processGesture(t,"change"),Tn.mousemove.call(this,t)},touchend:function(t){t=wn(this.dom,t),zf(t),this.handler.processGesture(t,"end"),Tn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<wE&&Tn.click.call(this,t)},pointerdown:function(t){Tn.mousedown.call(this,t)},pointermove:function(t){_h(t)||Tn.mousemove.call(this,t)},pointerup:function(t){Tn.mouseup.call(this,t)},pointerout:function(t){_h(t)||Tn.mouseout.call(this,t)}};ee(["click","dblclick","contextmenu"],function(t){Tn[t]=function(e){e=wn(this.dom,e),this.trigger(t,e)}});var Ah={pointermove:function(t){_h(t)||Ah.mousemove.call(this,t)},pointerup:function(t){Ah.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function AE(t,e){var r=e.domHandlers;xt.pointerEventsSupported?ee($f.pointer,function(n){Pu(e,n,function(i){r[n].call(t,i)})}):(xt.touchEventsSupported&&ee($f.touch,function(n){Pu(e,n,function(i){r[n].call(t,i),TE(e)})}),ee($f.mouse,function(n){Pu(e,n,function(i){i=Bv(i),e.touching||r[n].call(t,i)})}))}function EE(t,e){xt.pointerEventsSupported?ee(Vg.pointer,r):xt.touchEventsSupported||ee(Vg.mouse,r);function r(n){function i(a){a=Bv(a),iS(t,a.target)||(a=IE(t,a),e.domHandlers[n].call(t,a))}Pu(e,n,i,{capture:!0})}}function Pu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,$2(t.domTarget,e,r,n)}function Uf(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&z2(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Wg=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),PE=function(t){De(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Wg(r,Tn),Ff&&(i._globalHandlerScope=new Wg(document,Ah)),AE(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Uf(this._localHandlerScope),Ff&&Uf(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Ff&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?EE(this,n):Uf(n)}},e}(yi),aS=1;xt.hasGlobalWindow&&(aS=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var jg=aS,Eh=.4,Ph="#333",Mh="#ccc",ME="#eee",Kg=Nv,Xg=5e-5;function fa(t){return t>Xg||t<-Xg}var da=[],Ya=[],Hf=ws(),Vf=Math.abs,Hv=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return fa(this.rotation)||fa(this.x)||fa(this.y)||fa(this.scaleX-1)||fa(this.scaleY-1)||fa(this.skewX)||fa(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Kg(n),this.invTransform=null);return}n=n||ws(),r?this.getLocalTransform(n):Kg(n),e&&(r?xo(n,e,n):G2(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(da);var n=da[0]<0?-1:1,i=da[1]<0?-1:1,a=((da[0]-n)*r+n)/da[0]||0,o=((da[1]-i)*r+i)/da[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ws(),Fv(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ws(),xo(Ya,e.invTransform,r),r=Ya);var n=this.originX,i=this.originY;(n||i)&&(Hf[4]=n,Hf[5]=i,xo(Ya,r,Hf),Ya[4]-=n,Ya[5]-=i,r=Ya),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&dn(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&dn(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Vf(e[0]-1)>1e-10&&Vf(e[3]-1)>1e-10?Math.sqrt(Vf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){oS(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&z1(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),js=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oS(t,e){for(var r=0;r<js.length;r++){var n=js[r];t[n]=e[n]}}var Yg={};function Zr(t,e){e=e||Wi;var r=Yg[e];r||(r=Yg[e]=new vl(500));var n=r.get(t);return n==null&&(n=dl.measureText(t,e).width,r.put(t,n)),n}function Zg(t,e,r,n){var i=Zr(t,e),a=Lc(e),o=fs(0,i,r),s=fo(0,a,n),l=new It(o,s,i,a);return l}function sS(t,e,r,n){var i=((t||"")+"").split(`
  42. `),a=i.length;if(a===1)return Zg(i[0],e,r,n);for(var o=new It(0,0,0,0),s=0;s<i.length;s++){var l=Zg(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function fs(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function fo(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function Lc(t){return Zr("国",t)}function Ki(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ju(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Ki(n[0],r.width),u+=Ki(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Gf="__zr_normal__",Wf=js.concat(["ignore"]),RE=ji(js,function(t,e){return t[e]=!0,t},{ignore:!1}),Za={},DE=new It(0,0,0,0),kc=function(){function t(e){this.id=k1(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=DE;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Za,n,f):Ju(Za,n,f),a.x=Za.x,a.y=Za.y,o=Za.align,s=Za.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,h=void 0;c==="center"?(d=f.width*.5,h=f.height*.5):(d=Ki(c[0],f.width),h=Ki(c[1],f.height)),u=!0,a.originX=-a.x+d+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,S=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),S=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),S=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=S,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Vn,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mh:Ph},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Kn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Rc(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},Ie(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(Ye(e))for(var n=e,i=gt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Gf)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Wf)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Gf,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Gf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Mt(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){O1("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,r,n,f),d&&d.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vn),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,r,d),g&&g.useStates(e,r,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vn)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Mt(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=Mt(i,e),o=Mt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];Ie(r,a),a.textConfig&&(n=n||{},Ie(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=Ie({},i?this.textConfig:n.textConfig),Ie(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Wf.length;f++){var c=Wf[f],d=a&&RE[c];r&&r[c]!=null?d?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(d?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Hv,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Ie(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Vn;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new Uv(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=Mt(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){jf(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){jf(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=jf(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Vn;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();Mn(kc,yi);Mn(kc,Hv);function jf(t,e,r,n,i){r=r||{};var a=[];lS(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d<a.length;d++){var h=a[d];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Kf(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function LE(t){return Fr(t[0])}function kE(t,e,r){if(Fr(e[r]))if(Fr(t[r])||(t[r]=[]),$r(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Kf(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(LE(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Kf(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Kf(a,i,o);a.length=i.length}else t[r]=e[r]}function OE(t,e){return t===e||Fr(t)&&Fr(e)&&BE(t,e)}function BE(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function lS(t,e,r,n,i,a,o,s){for(var l=gt(n),u=i.duration,f=i.delay,c=i.additive,d=i.setToFinal,h=!Ye(a),v=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(Ye(y)&&!Fr(y)&&!kv(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}lS(t,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),p.push(m))}var S=p.length;if(!c&&S)for(var T=0;T<v.length;T++){var P=v[T];if(P.targetName===e){var x=P.stopTracks(p);if(x){var _=Mt(v,P);v.splice(_,1)}}}if(i.force||(p=vr(p,function(b){return!OE(n[b],r[b])}),S=p.length),S>0||i.force&&!o.length){var M=void 0,C=void 0,w=void 0;if(s){C={},d&&(M={});for(var T=0;T<S;T++){var m=p[T];C[m]=r[m],d?M[m]=n[m]:r[m]=n[m]}}else if(d){w={};for(var T=0;T<S;T++){var m=p[T];w[m]=_u(r[m]),kE(r,n,m)}}var P=new Uv(r,!1,!1,c?vr(v,function(E){return E.targetName===e}):null);P.targetName=e,i.scope&&(P.scope=i.scope),d&&M&&P.whenWithKeys(0,M,p),w&&P.whenWithKeys(0,w,p),P.whenWithKeys(u??500,s?C:n,p).delay(f||0),t.addAnimator(P,e),o.push(P)}}var Yt=function(t){De(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=Mt(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Mt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new It(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(It.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(kc);Yt.prototype.type="group";/*!
  43. * ZRender, a high performance 2d drawing library.
  44. *
  45. * Copyright (c) 2013, Baidu Inc.
  46. * All rights reserved.
  47. *
  48. * LICENSE
  49. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  50. */var Mu={},uS={};function NE(t){delete uS[t]}function FE(t){if(!t)return!1;if(typeof t=="string")return Zu(t,1)<Eh;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Zu(e[i].color,1);return r/=n,r<Eh}return!1}var $E=function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new eE,o=n.renderer||"canvas";Mu[o]||(o=gt(Mu)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Mu[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!xt.node&&!xt.worker&&!l?new PE(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?xt.touchEventsSupported:!!f,d=44,h;c&&(h=Ze(n.pointerSize,d)),this.handler=new H1(a,s,u,s.root,h),this.animation=new CE({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=FE(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=mo();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=mo();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Yt&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,NE(this.id))},t}();function Qg(t,e){var r=new $E(k1(),t,e);return uS[r.id]=r,r}function zE(t,e){Mu[t]=e}var Rh;function UE(t){if(typeof Rh=="function")return Rh(t)}function HE(t){Rh=t}var Jg=1e-4,cS=20;function VE(t){return t.replace(/^\s+|\s+$/g,"")}function Dh(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function At(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return We(t)?VE(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Vt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),cS),t=(+t).toFixed(e),r?t:+t}function ci(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return GE(t)}function GE(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function WE(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function jE(t,e){var r=ji(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=ke(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=ke(i,function(h){return Math.floor(h)}),s=ji(o,function(h,v){return h+v},0),l=ke(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return ke(o,function(h){return h/n})}function KE(t,e){var r=Math.max(ci(t),ci(e)),n=t+e;return r>cS?n:Vt(n,r)}function fS(t){var e=Math.PI*2;return(t%e+e)%e}function qu(t){return t>-Jg&&t<Jg}var XE=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Xi(t){if(t instanceof Date)return t;if(We(t)){var e=XE.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function YE(t){return Math.pow(10,Vv(t))}function Vv(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function dS(t,e){var r=Vv(t),n=Math.pow(10,r),i=t/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function ZE(t){var e=parseFloat(t);return e==t&&(e!==0||!We(t)||t.indexOf("x")<=0)?e:NaN}function QE(t){return!isNaN(ZE(t))}function JE(){return Math.round(Math.random()*9)}function hS(t,e){return e===0?t:hS(e,t%e)}function qg(t,e){return t==null?e:e==null?t:t*e/hS(t,e)}function Kr(t){throw new Error(t)}function em(t,e,r){return(e-t)*r+t}var vS="series\0",qE="\0_ec_\0";function Ir(t){return t instanceof Array?t:t==null?[]:[t]}function Lh(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var tm=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function pl(t){return Ye(t)&&!$e(t)&&!(t instanceof Date)?t.value:t}function eP(t){return Ye(t)&&!(t instanceof Array)}function tP(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=it();ee(e,function(l,u){if(!Ye(l)){e[u]=null;return}});var s=rP(t,o,r);return(n||i)&&nP(s,t,o,e),n&&iP(s,e),n||i?aP(s,e,i):a&&oP(s,e),sP(s),s}function rP(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||Ks(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function nP(t,e,r,n){ee(n,function(i,a){if(!(!i||i.id==null)){var o=_s(i.id),s=r.get(o);if(s!=null){var l=t[s];Zn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function iP(t,e){ee(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!Ks(r)&&!Ks(a)&&pS("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function aP(t,e,r){ee(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Ks(i.existing)||i.existing&&n.id!=null&&!pS("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function oP(t,e){ee(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function sP(t){var e=it();ee(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),ee(t,function(r){var n=r.newOption;Zn(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),ee(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Ye(a)){if(o.name=a.name!=null?_s(a.name):i?i.name:vS+n,i)o.id=_s(i.id);else if(a.id!=null)o.id=_s(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function pS(t,e,r){var n=Xn(e[t],null),i=Xn(r[t],null);return n!=null&&i!=null&&n===i}function _s(t){return Xn(t,"")}function Xn(t,e){return t==null?e:We(t)?t:Et(t)||g2(t)?t+"":e}function Gv(t){var e=t.name;return!!(e&&e.indexOf(vS))}function Ks(t){return t&&t.id!=null&&_s(t.id).indexOf(qE)===0}function lP(t,e,r){ee(t,function(n){var i=n.newOption;Ye(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=uP(e,i,n.existing,r))})}function uP(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function _o(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return $e(e.dataIndex)?ke(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return $e(e.name)?ke(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function qt(){var t="__ec_inner_"+cP++;return function(e){return e[t]||(e[t]={})}}var cP=JE();function Xf(t,e,r){var n=gS(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Oc(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function gS(t,e){var r;if(We(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=it(),a={},o=!1;return ee(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&Mt(e.includeMainTypes,f)<0)){o=o||!!f;var d=i.get(f)||i.set(f,{});d[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var En={useDefault:!0,enableAll:!1,enableNone:!1};function Oc(t,e,r,n){n=n||En;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(Zn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Zn(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s)}function mS(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function fP(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function dP(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Et(n)){var o=em(r||0,n,i);return Vt(o,a?Math.max(ci(r||0),ci(n)):e)}else{if(We(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var d=t.getDimensionInfo(c);if(d&&d.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=em(h,v,i);s[c]=Vt(o,a?Math.max(ci(h),ci(v)):e)}}return s}}var hP=".",ha="___EC__COMPONENT__CONTAINER___",yS="___EC__EXTENDED_CLASS___";function jn(t){var e={main:"",sub:""};if(t){var r=t.split(hP);e.main=r[0]||"",e.sub=r[1]||""}return e}function vP(t){Zn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function pP(t){return!!(t&&t[yS])}function Wv(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return gP(n)?i=function(a){De(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},h2(i,this)),Ie(i.prototype,r),i[yS]=!0,i.extend=this.extend,i.superCall=SP,i.superApply=bP,i.superClass=n,i}}function gP(t){return nt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function SS(t,e){t.extend=e.extend}var mP=Math.round(Math.random()*10);function yP(t){var e=["__\0is_clz",mP++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function SP(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function bP(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Bc(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){vP(i),n.prototype.type=i;var a=jn(i);if(!a.sub)e[a.main]=n;else if(a.sub!==ha){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[ha]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=jn(n),a=[],o=e[i.main];return o&&o[ha]?ee(o,function(s,l){l!==ha&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=jn(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return ee(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=jn(n),a=e[i.main];return a&&a[ha]};function r(n){var i=e[n.main];return(!i||!i[ha])&&(i=e[n.main]={},i[ha]=!0),i}}function Xs(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&Mt(i,l)>=0||a&&Mt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var xP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CP=Xs(xP),wP=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return CP(this,e,r)},t}(),kh=new vl(50);function TP(t){if(typeof t=="string"){var e=kh.get(t);return e&&e.image}else return t}function jv(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=kh.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Nc(e)&&a.pending.push(o)):(e=dl.loadImage(t,rm,rm),e.__zrImageSrc=t,kh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function rm(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Nc(t){return t&&t.width&&t.height}var Yf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function IP(t,e,r,n,i){if(!e)return"";var a=(t+"").split(`
  51. `);i=bS(e,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=xS(a[o],i);return a.join(`
  52. `)}function bS(t,e,r,n){n=n||{};var i=Ie({},n);i.font=e,r=Ze(r,"..."),i.maxIterations=Ze(n.maxIterations,2);var a=i.minChar=Ze(n.minChar,0);i.cnCharWidth=Zr("国",e);var o=i.ascCharWidth=Zr("a",e);i.placeholder=Ze(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;var u=Zr(r,e);return u>s&&(r="",u=0),s=t-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function xS(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=Zr(t,n);if(a<=r)return t;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?_P(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=Zr(t,n)}return t===""&&(t=e.placeholder),t}function _P(t,e,r,n){for(var i=0,a=0,o=t.length;a<o&&i<e;a++){var s=t.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function AP(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,i=e.font,a=r==="truncate",o=Lc(i),s=Ze(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,c;f!=null&&(r==="break"||r==="breakAll")?c=t?CS(t,e.font,f,r==="breakAll",0).lines:[]:c=t?t.split(`
  53. `):[];var d=c.length*s,h=Ze(e.height,d);if(d>h&&u){var v=Math.floor(h/s);c=c.slice(0,v)}if(t&&a&&f!=null)for(var p=bS(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<c.length;g++)c[g]=xS(c[g],p);for(var m=h,y=0,g=0;g<c.length;g++)y=Math.max(Zr(c[g],i),y);f==null&&(f=y);var S=y;return n&&(m+=n[0]+n[2],S+=n[1]+n[3],f+=n[1]+n[3]),l&&(S=f),{lines:c,height:h,outerWidth:S,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:f}}var EP=function(){function t(){}return t}(),nm=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),PP=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function MP(t,e){var r=new PP;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,i=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Yf.lastIndex=0,l;(l=Yf.exec(t))!=null;){var u=l.index;u>s&&Zf(r,t.substring(s,u),e,o),Zf(r,l[2],e,o,l[1]),s=Yf.lastIndex}s<t.length&&Zf(r,t.substring(s,t.length),e,o);var f=[],c=0,d=0,h=e.padding,v=a==="truncate",p=e.lineOverflow==="truncate";function g($,U,q){$.width=U,$.lineHeight=q,c+=q,d=Math.max(d,U)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],S=0,T=0,P=0;P<y.tokens.length;P++){var x=y.tokens[P],_=x.styleName&&e.rich[x.styleName]||{},M=x.textPadding=_.padding,C=M?M[1]+M[3]:0,w=x.font=_.font||e.font;x.contentHeight=Lc(w);var b=Ze(_.height,x.contentHeight);if(x.innerHeight=b,M&&(b+=M[0]+M[2]),x.height=b,x.lineHeight=xs(_.lineHeight,e.lineHeight,b),x.align=_&&_.align||e.align,x.verticalAlign=_&&_.verticalAlign||"middle",p&&i!=null&&c+x.lineHeight>i){P>0?(y.tokens=y.tokens.slice(0,P),g(y,T,S),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var E=_.width,A=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")x.percentWidth=E,f.push(x),x.contentWidth=Zr(x.text,w);else{if(A){var R=_.backgroundColor,k=R&&R.image;k&&(k=TP(k),Nc(k)&&(x.width=Math.max(x.width,k.width*b/k.height)))}var D=v&&n!=null?n-T:null;D!=null&&D<x.width?!A||D<C?(x.text="",x.width=x.contentWidth=0):(x.text=IP(x.text,D-C,w,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=Zr(x.text,w)):x.contentWidth=Zr(x.text,w)}x.width+=C,T+=x.width,_&&(S=Math.max(S,x.lineHeight))}g(y,T,S)}r.outerWidth=r.width=Ze(n,d),r.outerHeight=r.height=Ze(i,c),r.contentHeight=c,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<f.length;m++){var x=f[m],O=x.percentWidth;x.width=parseInt(O,10)/100*r.width}return r}function Zf(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Ki(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(f=e.split(`
  54. `),u=!0),n.accumWidth=v}else{var p=CS(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=e.split(`
  55. `);for(var g=0;g<f.length;g++){var m=f[g],y=new EP;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[g]:Zr(m,l),!g&&!u){var S=(s[s.length-1]||(s[0]=new nm)).tokens,T=S.length;T===1&&S[0].isLineHolder?S[0]=y:(m||!T||a)&&S.push(y)}else s.push(new nm([y]))}}function RP(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DP=ji(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function LP(t){return RP(t)?!!DP[t]:!0}function CS(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<t.length;c++){var d=t.charAt(c);if(d===`
  56. `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=Zr(d,e),v=n?!1:!LP(d);if(a.length?f+h>r:i+f+h>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=d,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=d,f=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}f+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Oh="__zr_style_"+Math.round(Math.random()*10),Na={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Fc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Na[Oh]=!0;var im=["z","z2","invisible"],kP=["invisible"],OP=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=gt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&BP(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new It(0,0,0,0)),n?It.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new It(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Ie(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=us,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&us)},e.prototype.styleUpdated=function(){this.__dirty&=~us},e.prototype.createStyle=function(r){return Mc(Na,r)},e.prototype.useStyle=function(r){r[Oh]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Oh]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,im)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=gt(f),d=0;d<c.length;d++){var h=c[d];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var v=gt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?kP:im,d=0;d<p.length;d++){var h=p[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return Ie(r,n),r},e.prototype.getAnimationStyleProps=function(){return Fc},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Vn|us}(),e}(kc),Qf=new It(0,0,0,0),Jf=new It(0,0,0,0);function BP(t,e,r){return Qf.copy(t.getBoundingRect()),t.transform&&Qf.applyTransform(t.transform),Jf.width=e,Jf.height=r,!Qf.intersect(Jf)}const gl=OP;var un=Math.min,cn=Math.max,qf=Math.sin,ed=Math.cos,va=Math.PI*2,$l=Lo(),zl=Lo(),Ul=Lo();function am(t,e,r,n,i,a){i[0]=un(t,r),i[1]=un(e,n),a[0]=cn(t,r),a[1]=cn(e,n)}var om=[],sm=[];function NP(t,e,r,n,i,a,o,s,l,u){var f=K1,c=or,d=f(t,r,i,o,om);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=c(t,r,i,o,om[h]);l[0]=un(v,l[0]),u[0]=cn(v,u[0])}d=f(e,n,a,s,sm);for(var h=0;h<d;h++){var p=c(e,n,a,s,sm[h]);l[1]=un(p,l[1]),u[1]=cn(p,u[1])}l[0]=un(t,l[0]),u[0]=cn(t,u[0]),l[0]=un(o,l[0]),u[0]=cn(o,u[0]),l[1]=un(e,l[1]),u[1]=cn(e,u[1]),l[1]=un(s,l[1]),u[1]=cn(s,u[1])}function FP(t,e,r,n,i,a,o,s){var l=X1,u=Rr,f=cn(un(l(t,r,i),1),0),c=cn(un(l(e,n,a),1),0),d=u(t,r,i,f),h=u(e,n,a,c);o[0]=un(t,i,d),o[1]=un(e,a,h),s[0]=cn(t,i,d),s[1]=cn(e,a,h)}function $P(t,e,r,n,i,a,o,s,l){var u=po,f=go,c=Math.abs(i-a);if(c%va<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if($l[0]=ed(i)*r+t,$l[1]=qf(i)*n+e,zl[0]=ed(a)*r+t,zl[1]=qf(a)*n+e,u(s,$l,zl),f(l,$l,zl),i=i%va,i<0&&(i=i+va),a=a%va,a<0&&(a=a+va),i>a&&!o?a+=va:i<a&&o&&(i+=va),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Ul[0]=ed(h)*r+t,Ul[1]=qf(h)*n+e,u(s,Ul,s),f(l,Ul,l))}var bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pa=[],ga=[],Nn=[],Ci=[],Fn=[],$n=[],td=Math.min,rd=Math.max,ma=Math.cos,ya=Math.sin,oi=Math.abs,Bh=Math.PI,Ri=Bh*2,nd=typeof Float32Array<"u",Wo=[];function id(t){var e=Math.round(t/Bh*1e8)/1e8;return e%2*Bh}function wS(t,e){var r=id(t[0]);r<0&&(r+=Ri);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Ri?i=r+Ri:e&&r-i>=Ri?i=r-Ri:!e&&r>i?i=r+(Ri-id(r-i)):e&&r<i&&(i=r-(Ri-id(i-r))),t[0]=r,t[1]=i}var Yi=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=oi(n/jg/e)||0,this._uy=oi(n/jg/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(bt.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=oi(e-this._xi),i=oi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(bt.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(bt.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(bt.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Wo[0]=i,Wo[1]=a,wS(Wo,o),i=Wo[0],a=Wo[1];var s=a-i;return this.addData(bt.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=ma(a)*n+e,this._yi=ya(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(bt.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(bt.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&nd&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();nd&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,nd&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Nn[0]=Nn[1]=Fn[0]=Fn[1]=Number.MAX_VALUE,Ci[0]=Ci[1]=$n[0]=$n[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case bt.M:r=i=e[o++],n=a=e[o++],Fn[0]=i,Fn[1]=a,$n[0]=i,$n[1]=a;break;case bt.L:am(r,n,e[o],e[o+1],Fn,$n),r=e[o++],n=e[o++];break;case bt.C:NP(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Fn,$n),r=e[o++],n=e[o++];break;case bt.Q:FP(r,n,e[o++],e[o++],e[o],e[o+1],Fn,$n),r=e[o++],n=e[o++];break;case bt.A:var u=e[o++],f=e[o++],c=e[o++],d=e[o++],h=e[o++],v=e[o++]+h;o+=1;var p=!e[o++];l&&(i=ma(h)*c+u,a=ya(h)*d+f),$P(u,f,c,d,h,v,p,Fn,$n),r=ma(v)*c+u,n=ya(v)*d+f;break;case bt.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];am(i,a,i+g,a+m,Fn,$n);break;case bt.Z:r=i,n=a;break}po(Nn,Nn,Fn),go(Ci,Ci,$n)}return o===0&&(Nn[0]=Nn[1]=Ci[0]=Ci[1]=0),new It(Nn[0],Nn[1],Ci[0]-Nn[0],Ci[1]-Nn[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,d=0;d<r;){var h=e[d++],v=d===1;v&&(a=e[d],o=e[d+1],s=a,l=o);var p=-1;switch(h){case bt.M:a=s=e[d++],o=l=e[d++];break;case bt.L:{var g=e[d++],m=e[d++],y=g-a,S=m-o;(oi(y)>n||oi(S)>i||d===r-1)&&(p=Math.sqrt(y*y+S*S),a=g,o=m);break}case bt.C:{var T=e[d++],P=e[d++],g=e[d++],m=e[d++],x=e[d++],_=e[d++];p=rE(a,o,T,P,g,m,x,_,10),a=x,o=_;break}case bt.Q:{var T=e[d++],P=e[d++],g=e[d++],m=e[d++];p=aE(a,o,T,P,g,m,10),a=g,o=m;break}case bt.A:var M=e[d++],C=e[d++],w=e[d++],b=e[d++],E=e[d++],A=e[d++],R=A+E;d+=1,v&&(s=ma(E)*w+M,l=ya(E)*b+C),p=rd(w,b)*td(Ri,Math.abs(A)),a=ma(R)*w+M,o=ya(R)*b+C;break;case bt.R:{s=a=e[d++],l=o=e[d++];var k=e[d++],D=e[d++];p=k*2+D*2;break}case bt.Z:{var y=s-a,S=l-o;p=Math.sqrt(y*y+S*S),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,d,h=r<1,v,p,g=0,m=0,y,S=0,T,P;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var x=0;x<o;){var _=n[x++],M=x===1;switch(M&&(u=n[x],f=n[x+1],s=u,l=f),_!==bt.L&&S>0&&(e.lineTo(T,P),S=0),_){case bt.M:s=u=n[x++],l=f=n[x++],e.moveTo(u,f);break;case bt.L:{c=n[x++],d=n[x++];var C=oi(c-u),w=oi(d-f);if(C>i||w>a){if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;e.lineTo(u*(1-E)+c*E,f*(1-E)+d*E);break e}g+=b}e.lineTo(c,d),u=c,f=d,S=0}else{var A=C*C+w*w;A>S&&(T=c,P=d,S=A)}break}case bt.C:{var R=n[x++],k=n[x++],D=n[x++],O=n[x++],$=n[x++],U=n[x++];if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;Xu(u,R,D,$,E,pa),Xu(f,k,O,U,E,ga),e.bezierCurveTo(pa[1],ga[1],pa[2],ga[2],pa[3],ga[3]);break e}g+=b}e.bezierCurveTo(R,k,D,O,$,U),u=$,f=U;break}case bt.Q:{var R=n[x++],k=n[x++],D=n[x++],O=n[x++];if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;Yu(u,R,D,E,pa),Yu(f,k,O,E,ga),e.quadraticCurveTo(pa[1],ga[1],pa[2],ga[2]);break e}g+=b}e.quadraticCurveTo(R,k,D,O),u=D,f=O;break}case bt.A:var q=n[x++],H=n[x++],N=n[x++],G=n[x++],j=n[x++],oe=n[x++],Y=n[x++],te=!n[x++],fe=N>G?N:G,ye=oi(N-G)>.001,xe=j+oe,ce=!1;if(h){var b=v[m++];g+b>y&&(xe=j+oe*(y-g)/b,ce=!0),g+=b}if(ye&&e.ellipse?e.ellipse(q,H,N,G,Y,j,xe,te):e.arc(q,H,fe,j,xe,te),ce)break e;M&&(s=ma(j)*N+q,l=ya(j)*G+H),u=ma(xe)*N+q,f=ya(xe)*G+H;break;case bt.R:s=u=n[x],l=f=n[x+1],c=n[x++],d=n[x++];var ge=n[x++],Ce=n[x++];if(h){var b=v[m++];if(g+b>y){var se=y-g;e.moveTo(c,d),e.lineTo(c+td(se,ge),d),se-=ge,se>0&&e.lineTo(c+ge,d+td(se,Ce)),se-=Ce,se>0&&e.lineTo(c+rd(ge-se,0),d+Ce),se-=ge,se>0&&e.lineTo(c,d+rd(Ce-se,0));break e}g+=b}e.rect(c,d,ge,Ce);break;case bt.Z:if(h){var b=v[m++];if(g+b>y){var E=(y-g)/b;e.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break e}g+=b}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=bt,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Qa(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function zP(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var d=tE(t,e,r,n,i,a,o,s,u,f);return d<=c/2}function UP(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=iE(t,e,r,n,i,a,s,l);return f<=u/2}var lm=Math.PI*2;function Hl(t){return t%=lm,t<0&&(t+=lm),t}var jo=Math.PI*2;function HP(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%jo<1e-4)return!0;if(a){var c=n;n=Hl(i),i=Hl(c)}else n=Hl(n),i=Hl(i);n>i&&(i+=jo);var d=Math.atan2(l,s);return d<0&&(d+=jo),d>=n&&d<=i||d+jo>=n&&d+jo<=i}function Sa(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var wi=Yi.CMD,ba=Math.PI*2,VP=1e-4;function GP(t,e){return Math.abs(t-e)<VP}var Cr=[-1,-1,-1],sn=[-1,-1];function WP(){var t=sn[0];sn[0]=sn[1],sn[1]=t}function jP(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=Ku(e,n,a,s,u,Cr);if(f===0)return 0;for(var c=0,d=-1,h=void 0,v=void 0,p=0;p<f;p++){var g=Cr[p],m=g===0||g===1?.5:1,y=or(t,r,i,o,g);y<l||(d<0&&(d=K1(e,n,a,s,sn),sn[1]<sn[0]&&d>1&&WP(),h=or(e,n,a,s,sn[0]),d>1&&(v=or(e,n,a,s,sn[1]))),d===2?g<sn[0]?c+=h<e?m:-m:g<sn[1]?c+=v<h?m:-m:c+=s<v?m:-m:g<sn[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function KP(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=nE(e,n,a,s,Cr);if(l===0)return 0;var u=X1(e,n,a);if(u>=0&&u<=1){for(var f=0,c=Rr(e,n,a,u),d=0;d<l;d++){var h=Cr[d]===0||Cr[d]===1?.5:1,v=Rr(t,r,i,Cr[d]);v<o||(Cr[d]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Cr[0]===0||Cr[0]===1?.5:1,v=Rr(t,r,i,Cr[0]);return v<o?0:a<e?h:-h}}function XP(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Cr[0]=-l,Cr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ba-1e-4){n=0,i=ba;var f=a?1:-1;return o>=Cr[0]+t&&o<=Cr[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=ba,i+=ba);for(var d=0,h=0;h<2;h++){var v=Cr[h];if(v+t>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=ba+p),(p>=n&&p<=i||p+ba>=n&&p+ba<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),d+=f)}}return d}function TS(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,d,h,v=0;v<o;){var p=a[v++],g=v===1;switch(p===wi.M&&v>1&&(r||(s+=Sa(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case wi.M:f=a[v++],c=a[v++],l=f,u=c;break;case wi.L:if(r){if(Qa(l,u,a[v],a[v+1],e,n,i))return!0}else s+=Sa(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case wi.C:if(r){if(zP(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=jP(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case wi.Q:if(r){if(UP(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=KP(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case wi.A:var m=a[v++],y=a[v++],S=a[v++],T=a[v++],P=a[v++],x=a[v++];v+=1;var _=!!(1-a[v++]);d=Math.cos(P)*S+m,h=Math.sin(P)*T+y,g?(f=d,c=h):s+=Sa(l,u,d,h,n,i);var M=(n-m)*T/S+m;if(r){if(HP(m,y,T,P,P+x,_,e,M,i))return!0}else s+=XP(m,y,T,P,P+x,_,M,i);l=Math.cos(P+x)*S+m,u=Math.sin(P+x)*T+y;break;case wi.R:f=l=a[v++],c=u=a[v++];var C=a[v++],w=a[v++];if(d=f+C,h=c+w,r){if(Qa(f,c,d,c,e,n,i)||Qa(d,c,d,h,e,n,i)||Qa(d,h,f,h,e,n,i)||Qa(f,h,f,c,e,n,i))return!0}else s+=Sa(d,c,d,h,n,i),s+=Sa(f,h,f,c,n,i);break;case wi.Z:if(r){if(Qa(l,u,f,c,e,n,i))return!0}else s+=Sa(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!GP(u,c)&&(s+=Sa(l,u,f,c,n,i)||0),s!==0}function YP(t,e,r){return TS(t,0,!1,e,r)}function ZP(t,e,r,n){return TS(t,e,!0,r,n)}var ec=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Na),QP={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fc.style)},ad=js.concat(["invisible","culling","z","z2","zlevel","parent"]),yt=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<ad.length;++s)i[ad[s]]=this[ad[s]];i.__dirty|=Vn}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=gt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?Ie(this.style,s):this.useStyle(s):o==="shape"?Ie(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(We(r)){var n=Zu(r,0);return n>.5?Ph:n>.2?ME:Mh}else if(r)return Mh}return Ph},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(We(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Zu(r,0)<Eh;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~co},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Yi(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&co)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),ZP(s,l/u,r,n)))return!0}if(this.hasFill())return YP(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=co,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:Ie(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&co)},e.prototype.createStyle=function(r){return Mc(ec,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Ie({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=Ie({},i.shape),Ie(u,n.shape)):(u=Ie({},a?this.shape:i.shape),Ie(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Ie({},this.shape);for(var f={},c=gt(u),d=0;d<c.length;d++){var h=c[d];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return QP},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){De(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return pt(r.style)},o.prototype.getDefaultShape=function(){return pt(r.shape)},o}(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Vn|us|co}(),e}(gl),JP=dt({strokeFirst:!0,font:Wi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ec),Ys=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Mc(JP,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=sS(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(gl);Ys.prototype.type="tspan";var qP=dt({x:0,y:0},Na),eM={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fc.style)};function tM(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Rn=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Mc(qP,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=tM(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return eM},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new It(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(gl);Rn.prototype.type="image";function rM(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var yo=Math.round;function IS(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(yo(n*2)===yo(i*2)&&(t.x1=t.x2=Oa(n,s,!0)),yo(a*2)===yo(o*2)&&(t.y1=t.y2=Oa(a,s,!0))),t}}function _S(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Oa(n,s,!0),t.y=Oa(i,s,!0),t.width=Math.max(Oa(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Oa(i+o,s,!1)-t.y,o===0?0:1)),t}}function Oa(t,e,r){if(!e)return t;var n=yo(t*2);return(n+yo(e))%2===0?n/2:(n+(r?1:-1))/2}var nM=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),iM={},Qt=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new nM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=_S(iM,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?rM(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);Qt.prototype.type="rect";var um={fill:"#000"},cm=2,aM={style:dt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Fc.style)},Qr=function(t){De(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=um,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,lM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new It(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||um},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return Ie(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=gt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},Ie(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return aM},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Wi,i=r.padding,a=mm(r),o=AP(a,r),s=od(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=r.x||0,g=r.y||0,m=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",S=p,T=fo(g,o.contentHeight,y);if(s||i){var P=fs(p,f,m),x=fo(g,u,y);s&&this._renderBackground(r,r,P,x,f,u)}T+=h/2,i&&(S=gm(p,m,i),y==="top"?T+=i[0]:y==="bottom"&&(T-=i[2]));for(var _=0,M=!1,C=pm("fill"in r?r.fill:(M=!0,v.fill)),w=vm("stroke"in r?r.stroke:!l&&(!v.autoStroke||M)?(_=cm,v.stroke):null),b=r.textShadowBlur>0,E=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,R=0;R<d.length;R++){var k=this._getOrCreateChild(Ys),D=k.createStyle();k.useStyle(D),D.text=d[R],D.x=S,D.y=T,m&&(D.textAlign=m),D.textBaseline="middle",D.opacity=r.opacity,D.strokeFirst=!0,b&&(D.shadowBlur=r.textShadowBlur||0,D.shadowColor=r.textShadowColor||"transparent",D.shadowOffsetX=r.textShadowOffsetX||0,D.shadowOffsetY=r.textShadowOffsetY||0),D.stroke=w,D.fill=C,w&&(D.lineWidth=r.lineWidth||_,D.lineDash=r.lineDash,D.lineDashOffset=r.lineDashOffset||0),D.font=n,dm(D,r),T+=h,E&&k.setBoundingRect(new It(fs(D.x,r.width,D.textAlign),fo(D.y,A,D.textBaseline),c,A))}},e.prototype._updateRichTexts=function(){var r=this.style,n=mm(r),i=MP(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,d=r.align||c.align,h=r.verticalAlign||c.verticalAlign,v=fs(u,o,d),p=fo(f,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;od(r)&&this._renderBackground(r,r,v,p,o,s);for(var S=!!r.backgroundColor,T=0;T<i.lines.length;T++){for(var P=i.lines[T],x=P.tokens,_=x.length,M=P.lineHeight,C=P.width,w=0,b=g,E=y,A=_-1,R=void 0;w<_&&(R=x[w],!R.align||R.align==="left");)this._placeToken(R,r,M,m,b,"left",S),C-=R.width,b+=R.width,w++;for(;A>=0&&(R=x[A],R.align==="right");)this._placeToken(R,r,M,m,E,"right",S),C-=R.width,E-=R.width,A--;for(b+=(a-(b-g)-(y-E)-C)/2;w<=A;)R=x[w],this._placeToken(R,r,M,m,b+R.width/2,"center",S),b+=R.width,w++;m+=M}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var d=!r.isLineHolder&&od(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=gm(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Ys),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,S=0,T=pm("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),P=vm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(S=cm,m.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Wi,g.opacity=xs(u.opacity,n.opacity,1),dm(g,u),P&&(g.lineWidth=xs(u.lineWidth,n.lineWidth,S),g.lineDash=Ze(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=P),T&&(g.fill=T);var _=r.contentWidth,M=r.contentHeight;p.setBoundingRect(new It(fs(g.x,_,g.textAlign),fo(g.y,M,g.textBaseline),_,M))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,d=l&&!c,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&f){p=this._getOrCreateChild(Qt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=Ze(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Rn),g.onload=function(){v.dirtyStyle()};var S=g.style;S.image=l.image,S.x=i,S.y=a,S.width=o,S.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Ze(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var T=(p||g).style;T.shadowBlur=r.shadowBlur||0,T.shadowColor=r.shadowColor||"transparent",T.shadowOffsetX=r.shadowOffsetX||0,T.shadowOffsetY=r.shadowOffsetY||0,T.opacity=xs(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return ES(r)&&(n=[r.fontStyle,r.fontWeight,AS(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&ki(n)||r.textFont||r.font},e}(gl),oM={left:!0,right:1,center:1},sM={top:1,bottom:1,middle:1},fm=["fontStyle","fontWeight","fontSize","fontFamily"];function AS(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Rv+"px":t+"px"}function dm(t,e){for(var r=0;r<fm.length;r++){var n=fm[r],i=e[n];i!=null&&(t[n]=i)}}function ES(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function lM(t){return hm(t),ee(t.rich,hm),t}function hm(t){if(t){t.font=Qr.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||oM[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||sM[r]?r:"top";var n=t.padding;n&&(t.padding=B1(t.padding))}}function vm(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function pm(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function gm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function mm(t){var e=t.text;return e!=null&&(e+=""),e}function od(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Rt=qt(),uM=function(t,e,r,n){if(n){var i=Rt(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Rt(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},ym=1,Sm={},PS=qt(),Kv=qt(),Xv=0,$c=1,zc=2,vn=["emphasis","blur","select"],tc=["normal","emphasis","blur","select"],cM=10,fM=9,Fa="highlight",Ru="downplay",As="select",Du="unselect",Es="toggleSelect";function Ja(t){return t!=null&&t!=="none"}function Uc(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function MS(t){Uc(t,"emphasis",zc)}function RS(t){t.hoverState===zc&&Uc(t,"normal",Xv)}function Yv(t){Uc(t,"blur",$c)}function DS(t){t.hoverState===$c&&Uc(t,"normal",Xv)}function dM(t){t.selected=!0}function hM(t){t.selected=!1}function bm(t,e,r){e(t,r)}function Si(t,e,r){bm(t,e,r),t.isGroup&&t.traverse(function(n){bm(n,e,r)})}function xm(t,e){switch(e){case"emphasis":t.hoverState=zc;break;case"normal":t.hoverState=Xv;break;case"blur":t.hoverState=$c;break;case"select":t.selected=!0}}function vM(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function pM(t,e,r,n){var i=r&&Mt(r,"select")>=0,a=!1;if(t instanceof yt){var o=PS(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ja(s)||Ja(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Ie({},n),u=Ie({},u),u.fill=s):!Ja(u.fill)&&Ja(s)?(a=!0,n=Ie({},n),u=Ie({},u),u.fill=xh(s)):!Ja(u.stroke)&&Ja(l)&&(a||(n=Ie({},n),u=Ie({},u)),u.stroke=xh(l)),n.style=u}}if(n&&n.z2==null){a||(n=Ie({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??cM)}return n}function gM(t,e,r){if(r&&r.z2==null){r=Ie({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??fM)}return r}function mM(t,e,r){var n=Mt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:vM(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Ie({},r),o=Ie({opacity:n?i:a.opacity*.1},o),r.style=o),r}function sd(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return pM(this,t,e,r);if(t==="blur")return mM(this,t,r);if(t==="select")return gM(this,t,r)}return r}function yM(t){t.stateProxy=sd;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=sd),r&&(r.stateProxy=sd)}function Cm(t,e){!BS(t,e)&&!t.__highByOuter&&Si(t,MS)}function wm(t,e){!BS(t,e)&&!t.__highByOuter&&Si(t,RS)}function rc(t,e){t.__highByOuter|=1<<(e||0),Si(t,MS)}function nc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Si(t,RS)}function SM(t){Si(t,Yv)}function LS(t){Si(t,DS)}function kS(t){Si(t,dM)}function OS(t){Si(t,hM)}function BS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function NS(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Kv(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){DS(u)}),s&&r.push(a)),o.isBlured=!1}),ee(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Nh(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var d=u.getItemGraphicEl(f[c]);d&&LS(d)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!d||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Yv(g)}),Fr(e))a(u.getData(),e);else if(Ye(e))for(var v=gt(e),p=0;p<v.length;p++)a(u.getData(v[p]),e[v[p]]);l.push(u),Kv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Fh(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Kv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Yv(a)})}}}function bM(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=_o(i,e);a=($e(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Rt(o);Nh(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Nh(n,f,c,r)}}}function Zv(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Rt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xM(t,e,r){var n=Rt(t),i=Zv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Fh(n.componentMainType,n.componentIndex,r),ee(a,function(s){return Cm(s,e)})):(Nh(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Fh(n.componentMainType,n.componentIndex,r),Cm(t,e))}function CM(t,e,r){NS(r);var n=Rt(t),i=Zv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?ee(i,function(a){return wm(a,e)}):wm(t,e)}function wM(t,e,r){if(Uh(e)){var n=e.dataType,i=t.getData(n),a=_o(i,e);$e(a)||(a=[a]),t[e.type===Es?"toggleSelect":e.type===As?"select":"unselect"](a,n)}}function Tm(t){var e=t.getAllData();ee(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?kS(a):OS(a)})})}function TM(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();ee(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function $h(t,e,r){FS(t,!0),Si(t,yM),_M(t,e,r)}function IM(t){FS(t,!1)}function Ao(t,e,r,n){n?IM(t):$h(t,e,r)}function _M(t,e,r){var n=Rt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Im=["emphasis","blur","select"],AM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Eo(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Im.length;i++){var a=Im[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[AM[r]]()}}function FS(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function zh(t){return!!(t&&t.__highDownDispatcher)}function EM(t){var e=Sm[t];return e==null&&ym<=32&&(e=Sm[t]=ym++),e}function Uh(t){var e=t.type;return e===As||e===Du||e===Es}function _m(t){var e=t.type;return e===Fa||e===Ru}function PM(t){var e=PS(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var qa=Yi.CMD,MM=[[],[],[]],Am=Math.sqrt,RM=Math.atan2;function DM(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=qa.M,c=qa.C,d=qa.L,h=qa.R,v=qa.A,p=qa.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case d:a=1;break;case c:a=3;break;case p:a=2;break;case v:var g=e[4],m=e[5],y=Am(e[0]*e[0]+e[1]*e[1]),S=Am(e[2]*e[2]+e[3]*e[3]),T=RM(-e[1]/S,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=S,r[o++]+=m,r[o++]*=y,r[o++]*=S,r[o++]+=T,r[o++]+=T,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],dn(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],dn(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var P=MM[l];P[0]=r[o++],P[1]=r[o++],dn(P,P,e),r[s++]=P[0],r[s++]=P[1]}}t.increaseVersion()}}var ld=Math.sqrt,Vl=Math.sin,Gl=Math.cos,Ko=Math.PI;function Em(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Hh(t,e){return(t[0]*e[0]+t[1]*e[1])/(Em(t)*Em(e))}function Pm(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Hh(t,e))}function Mm(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Ko/180),d=Gl(c)*(t-r)/2+Vl(c)*(e-n)/2,h=-1*Vl(c)*(t-r)/2+Gl(c)*(e-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=ld(v),s*=ld(v));var p=(i===a?-1:1)*ld((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(t+r)/2+Gl(c)*g-Vl(c)*m,S=(e+n)/2+Vl(c)*g+Gl(c)*m,T=Pm([1,0],[(d-g)/o,(h-m)/s]),P=[(d-g)/o,(h-m)/s],x=[(-1*d-g)/o,(-1*h-m)/s],_=Pm(P,x);if(Hh(P,x)<=-1&&(_=Ko),Hh(P,x)>=1&&(_=0),_<0){var M=Math.round(_/Ko*1e6)/1e6;_=Ko*2+M%2*Ko}f.addData(u,y,S,o,s,T,_,c,a)}var LM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function OM(t){var e=new Yi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Yi.CMD,l=t.match(LM);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),d=void 0,h=f.match(kM)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,S=void 0,T=void 0,P=void 0,x=void 0,_=void 0,M=r,C=n,w=void 0,b=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],d=s.L,e.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,e.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,e.addData(d,r,n),i=r,a=n,c="l";break;case"M":r=h[g++],n=h[g++],d=s.M,e.addData(d,r,n),i=r,a=n,c="L";break;case"h":r+=h[g++],d=s.L,e.addData(d,r,n);break;case"H":r=h[g++],d=s.L,e.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,e.addData(d,r,n);break;case"V":n=h[g++],d=s.L,e.addData(d,r,n);break;case"C":d=s.C,e.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,e.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,w=e.len(),b=e.data,o===s.C&&(m+=r-b[w-4],y+=n-b[w-3]),d=s.C,M=h[g++],C=h[g++],r=h[g++],n=h[g++],e.addData(d,m,y,M,C,r,n);break;case"s":m=r,y=n,w=e.len(),b=e.data,o===s.C&&(m+=r-b[w-4],y+=n-b[w-3]),d=s.C,M=r+h[g++],C=n+h[g++],r+=h[g++],n+=h[g++],e.addData(d,m,y,M,C,r,n);break;case"Q":M=h[g++],C=h[g++],r=h[g++],n=h[g++],d=s.Q,e.addData(d,M,C,r,n);break;case"q":M=h[g++]+r,C=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,e.addData(d,M,C,r,n);break;case"T":m=r,y=n,w=e.len(),b=e.data,o===s.Q&&(m+=r-b[w-4],y+=n-b[w-3]),r=h[g++],n=h[g++],d=s.Q,e.addData(d,m,y,r,n);break;case"t":m=r,y=n,w=e.len(),b=e.data,o===s.Q&&(m+=r-b[w-4],y+=n-b[w-3]),r+=h[g++],n+=h[g++],d=s.Q,e.addData(d,m,y,r,n);break;case"A":S=h[g++],T=h[g++],P=h[g++],x=h[g++],_=h[g++],M=r,C=n,r=h[g++],n=h[g++],d=s.A,Mm(M,C,r,n,x,_,S,T,P,d,e);break;case"a":S=h[g++],T=h[g++],P=h[g++],x=h[g++],_=h[g++],M=r,C=n,r+=h[g++],n+=h[g++],d=s.A,Mm(M,C,r,n,x,_,S,T,P,d,e);break}}(c==="z"||c==="Z")&&(d=s.Z,e.addData(d),r=i,n=a),o=d}return e.toStatic(),e}var $S=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(yt);function zS(t){return t.setData!=null}function US(t,e){var r=OM(t),n=Ie({},e);return n.buildPath=function(i){if(zS(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){DM(r,i),this.dirtyShape()},n}function BM(t,e){return new $S(US(t,e))}function NM(t,e){var r=US(t,e),n=function(i){De(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}($S);return n}function FM(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new yt(e);return o.createPathProxy(),o.buildPath=function(s){if(zS(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var $M=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),ml=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $M},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(yt);ml.prototype.type="circle";var zM=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Qv=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new zM},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e}(yt);Qv.prototype.type="ellipse";var HS=Math.PI,ud=HS*2,xa=Math.sin,eo=Math.cos,UM=Math.acos,ur=Math.atan2,Rm=Math.abs,Ps=Math.sqrt,ds=Math.max,zn=Math.min,Cn=1e-4;function HM(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,d=c*l-f*u;if(!(d*d<Cn))return d=(f*(e-a)-c*(t-i))/d,[t+d*l,e+d*u]}function Wl(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ps(s*s+l*l),f=u*l,c=-u*s,d=t+f,h=e+c,v=r+f,p=n+c,g=(d+v)/2,m=(h+p)/2,y=v-d,S=p-h,T=y*y+S*S,P=i-a,x=d*p-v*h,_=(S<0?-1:1)*Ps(ds(0,P*P*T-x*x)),M=(x*S-y*_)/T,C=(-x*y-S*_)/T,w=(x*S+y*_)/T,b=(-x*y+S*_)/T,E=M-g,A=C-m,R=w-g,k=b-m;return E*E+A*A>R*R+k*k&&(M=w,C=b),{cx:M,cy:C,x0:-f,y0:-c,x1:M*(i/P-1),y1:C*(i/P-1)}}function VM(t){var e;if($e(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function GM(t,e){var r,n=ds(e.r,0),i=ds(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,d=!!e.clockwise,h=Rm(u-l),v=h>ud&&h%ud;if(v>Cn&&(h=v),!(n>Cn))t.moveTo(f,c);else if(h>ud-Cn)t.moveTo(f+n*eo(l),c+n*xa(l)),t.arc(f,c,n,l,u,!d),i>Cn&&(t.moveTo(f+i*eo(u),c+i*xa(u)),t.arc(f,c,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,S=void 0,T=void 0,P=void 0,x=void 0,_=void 0,M=void 0,C=void 0,w=void 0,b=void 0,E=void 0,A=void 0,R=void 0,k=n*eo(l),D=n*xa(l),O=i*eo(u),$=i*xa(u),U=h>Cn;if(U){var q=e.cornerRadius;q&&(r=VM(q),p=r[0],g=r[1],m=r[2],y=r[3]);var H=Rm(n-i)/2;if(S=zn(H,m),T=zn(H,y),P=zn(H,p),x=zn(H,g),C=_=ds(S,T),w=M=ds(P,x),(_>Cn||M>Cn)&&(b=n*eo(u),E=n*xa(u),A=i*eo(l),R=i*xa(l),h<HS)){var N=HM(k,D,A,R,b,E,O,$);if(N){var G=k-N[0],j=D-N[1],oe=b-N[0],Y=E-N[1],te=1/xa(UM((G*oe+j*Y)/(Ps(G*G+j*j)*Ps(oe*oe+Y*Y)))/2),fe=Ps(N[0]*N[0]+N[1]*N[1]);C=zn(_,(n-fe)/(te+1)),w=zn(M,(i-fe)/(te-1))}}}if(!U)t.moveTo(f+k,c+D);else if(C>Cn){var ye=zn(m,C),xe=zn(y,C),ce=Wl(A,R,k,D,n,ye,d),ge=Wl(b,E,O,$,n,xe,d);t.moveTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),C<_&&ye===xe?t.arc(f+ce.cx,c+ce.cy,C,ur(ce.y0,ce.x0),ur(ge.y0,ge.x0),!d):(ye>0&&t.arc(f+ce.cx,c+ce.cy,ye,ur(ce.y0,ce.x0),ur(ce.y1,ce.x1),!d),t.arc(f,c,n,ur(ce.cy+ce.y1,ce.cx+ce.x1),ur(ge.cy+ge.y1,ge.cx+ge.x1),!d),xe>0&&t.arc(f+ge.cx,c+ge.cy,xe,ur(ge.y1,ge.x1),ur(ge.y0,ge.x0),!d))}else t.moveTo(f+k,c+D),t.arc(f,c,n,l,u,!d);if(!(i>Cn)||!U)t.lineTo(f+O,c+$);else if(w>Cn){var ye=zn(p,w),xe=zn(g,w),ce=Wl(O,$,b,E,i,-xe,d),ge=Wl(k,D,A,R,i,-ye,d);t.lineTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),w<M&&ye===xe?t.arc(f+ce.cx,c+ce.cy,w,ur(ce.y0,ce.x0),ur(ge.y0,ge.x0),!d):(xe>0&&t.arc(f+ce.cx,c+ce.cy,xe,ur(ce.y0,ce.x0),ur(ce.y1,ce.x1),!d),t.arc(f,c,i,ur(ce.cy+ce.y1,ce.cx+ce.x1),ur(ge.cy+ge.y1,ge.cx+ge.x1),d),ye>0&&t.arc(f+ge.cx,c+ge.cy,ye,ur(ge.y1,ge.x1),ur(ge.y0,ge.x0),!d))}else t.lineTo(f+O,c+$),t.arc(f,c,i,u,l,d)}t.closePath()}}}var WM=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),ia=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WM},e.prototype.buildPath=function(r,n){GM(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);ia.prototype.type="sector";var jM=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Hc=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(yt);Hc.prototype.type="ring";function KM(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,h=t.length;d<h;d++)po(f,f,t[d]),go(c,c,t[d]);po(f,f,n[0]),go(c,c,n[1])}for(var d=0,h=t.length;d<h;d++){var v=t[d];if(r)l=t[d?d-1:h-1],u=t[(d+1)%h];else if(d===0||d===h-1){i.push(x2(t[d]));continue}else l=t[d-1],u=t[d+1];C2(a,u,l),Af(a,a,e);var p=vh(v,l),g=vh(v,u),m=p+g;m!==0&&(p/=m,g/=m),Af(o,a,-p),Af(s,a,g);var y=Cg([],v,o),S=Cg([],v,s);n&&(go(y,y,f),po(y,y,c),go(S,S,f),po(S,S,c)),i.push(y),i.push(S)}return r&&i.push(i.shift()),i}function VS(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=KM(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var XM=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),yl=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XM},e.prototype.buildPath=function(r,n){VS(r,n,!0)},e}(yt);yl.prototype.type="polygon";var YM=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Va=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YM},e.prototype.buildPath=function(r,n){VS(r,n,!1)},e}(yt);Va.prototype.type="polyline";var ZM={},QM=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Zi=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=IS(ZM,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(yt);Zi.prototype.type="line";var Ar=[],JM=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Dm(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Lg:or)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Lg:or)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?kg:Rr)(t.x1,t.cpx1,t.x2,e),(r?kg:Rr)(t.y1,t.cpy1,t.y2,e)]}var Jv=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JM},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),f==null||c==null?(d<1&&(Yu(i,l,o,d,Ar),l=Ar[1],o=Ar[2],Yu(a,u,s,d,Ar),u=Ar[1],s=Ar[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(Xu(i,l,f,o,d,Ar),l=Ar[1],f=Ar[2],o=Ar[3],Xu(a,u,c,s,d,Ar),u=Ar[1],c=Ar[2],s=Ar[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return Dm(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Dm(this.shape,r,!0);return I2(n,n)},e}(yt);Jv.prototype.type="bezier-curve";var qM=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Vc=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e}(yt);Vc.prototype.type="arc";var eR=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yt.prototype.getBoundingRect.call(this)},e}(yt);const GS=eR;var WS=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),jS=function(t){De(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(WS),tR=function(t){De(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(WS);const rR=tR;var Ca=[0,0],wa=[0,0],jl=new Je,Kl=new Je,nR=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Je;for(var n=0;n<2;n++)this._axes[n]=new Je;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Je.sub(i[0],n[1],n[0]),Je.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r){var n=!0,i=!r;return jl.set(1/0,1/0),Kl.set(0,0),!this._intersectCheckOneSide(this,e,jl,Kl,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,jl,Kl,i,-1)&&(n=!1,i)||i||Je.copy(r,n?jl:Kl),n},t.prototype._intersectCheckOneSide=function(e,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Ca),this._getProjMinMaxOnAxis(l,r._corners,wa),Ca[1]<wa[0]||Ca[0]>wa[1]){if(s=!1,a)return s;var f=Math.abs(wa[0]-Ca[1]),c=Math.abs(Ca[0]-wa[1]);Math.min(f,c)>i.len()&&(f<c?Je.scale(i,u,-f*o):Je.scale(i,u,c*o))}else if(n){var f=Math.abs(wa[0]-Ca[1]),c=Math.abs(Ca[0]-wa[1]);Math.min(f,c)<n.len()&&(f<c?Je.scale(n,u,f*o):Je.scale(n,u,-c*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},t}();const ic=nR;var iR=[],aR=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new It(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(iR)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e}(gl);const oR=aR;var sR=qt();function lR(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Ze(n.duration,200),f=Ze(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),nt(c)&&(c=c(r,i)),nt(u)&&(u=u(r));var d={duration:u||0,delay:c,easing:f};return d}else return null}function qv(t,e,r,n,i,a,o){var s=!1,l;nt(i)?(o=a,a=i,i=null):Ye(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=lR(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,d=f.delay,h=f.easing,v={duration:c,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function yr(t,e,r,n,i,a){qv("update",t,e,r,n,i,a)}function Or(t,e,r,n,i,a){qv("enter",t,e,r,n,i,a)}function Ms(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function ac(t,e,r,n,i,a){Ms(t)||qv("leave",t,e,r,n,i,a)}function Lm(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),ac(t,{style:{opacity:0}},e,r,n)}function oc(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||Lm(i,e,r,n)}):Lm(t,e,r,n)}function Zs(t){sR(t).oldStyle=t.style}var sc=Math.max,lc=Math.min,Vh={};function uR(t){return yt.extend(t)}var cR=NM;function fR(t,e){return cR(t,e)}function Dn(t,e){Vh[t]=e}function dR(t){if(Vh.hasOwnProperty(t))return Vh[t]}function ep(t,e,r,n){var i=BM(t,e);return r&&(n==="center"&&(r=XS(r,i.getBoundingRect())),YS(i,r)),i}function KS(t,e,r){var n=new Rn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(XS(e,a))}}});return n}function XS(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Gh=FM;function YS(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Qs(t,e){return IS(t,t,{lineWidth:e}),t}function hR(t){return _S(t.shape,t.shape,t.style),t}var vR=Oa;function pR(t,e){for(var r=Nv([]);t&&t!==e;)xo(r,t.getLocalTransform(),r),t=t.parent;return r}function ZS(t,e,r){return e&&!Fr(e)&&(e=Hv.getLocalTransform(e)),r&&(e=Fv([],e)),dn([],t,e)}function gR(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=ZS(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function km(t){return!t.isGroup}function mR(t){return t.shape!=null}function QS(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){km(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return mR(o)&&(s.shape=Ie({},o.shape)),s}var a=n(t);e.traverse(function(o){if(km(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),yr(o,l,r,Rt(o).dataIndex)}}})}function yR(t,e){return ke(t,function(r){var n=r[0];n=sc(n,e.x),n=lc(n,e.x+e.width);var i=r[1];return i=sc(i,e.y),i=lc(i,e.y+e.height),[n,i]})}function SR(t,e){var r=sc(t.x,e.x),n=lc(t.x+t.width,e.x+e.width),i=sc(t.y,e.y),a=lc(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function JS(t,e,r){var n=Ie({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),dt(i,r),new Rn(n)):ep(t.replace("path://",""),n,r,"center")}function bR(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(qS(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function qS(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,d=cd(f,c,l,u);if(xR(d))return!1;var h=t-i,v=e-a,p=cd(h,v,l,u)/d;if(p<0||p>1)return!1;var g=cd(h,v,f,c)/d;return!(g<0||g>1)}function cd(t,e,r,n){return t*n-r*e}function xR(t){return t<=1e-6&&t>=-1e-6}function tp(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=We(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&ee(gt(l),function(f){Gs(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Rt(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Om(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Gc(t,e){if(t)if($e(t))for(var r=0;r<t.length;r++)Om(t[r],e);else Om(t,e)}Dn("circle",ml);Dn("ellipse",Qv);Dn("sector",ia);Dn("ring",Hc);Dn("polygon",yl);Dn("polyline",Va);Dn("rect",Qt);Dn("line",Zi);Dn("bezierCurve",Jv);Dn("arc",Vc);const CR=Object.freeze(Object.defineProperty({__proto__:null,Arc:Vc,BezierCurve:Jv,BoundingRect:It,Circle:ml,CompoundPath:GS,Ellipse:Qv,Group:Yt,Image:Rn,IncrementalDisplayable:oR,Line:Zi,LinearGradient:jS,OrientedBoundingRect:ic,Path:yt,Point:Je,Polygon:yl,Polyline:Va,RadialGradient:rR,Rect:Qt,Ring:Hc,Sector:ia,Text:Qr,applyTransform:ZS,clipPointsByRect:yR,clipRectByRect:SR,createIcon:JS,extendPath:fR,extendShape:uR,getShapeClass:dR,getTransform:pR,groupTransition:QS,initProps:Or,isElementRemoved:Ms,lineLineIntersect:qS,linePolygonIntersect:bR,makeImage:KS,makePath:ep,mergePath:Gh,registerShape:Dn,removeElement:ac,removeElementWithFadeOut:oc,resizePath:YS,setTooltipConfig:tp,subPixelOptimize:vR,subPixelOptimizeLine:Qs,subPixelOptimizeRect:hR,transformDirection:gR,traverseElements:Gc,updateProps:yr},Symbol.toStringTag,{value:"Module"}));var Wc={};function wR(t,e){for(var r=0;r<vn.length;r++){var n=vn[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Bm(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=nt(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<vn.length;u++){var f=vn[u],c=e[f];l[f]=Ze(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function ko(t,e,r,n){r=r||Wc;for(var i=t instanceof Qr,a=!1,o=0;o<tc.length;o++){var s=e[tc[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Qr,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Bm(r,e),f=e.normal,c=!!f.getShallow("show"),d=Js(f,n&&n.normal,r,!1,!i);d.text=u.normal,i||t.setTextConfig(Nm(f,r,!1));for(var o=0;o<vn.length;o++){var h=vn[o],s=e[h];if(s){var v=l.ensureState(h),p=!!Ze(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=Js(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var g=t.ensureState(h);g.textConfig=Nm(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),r.enableTextSetter&&(jc(l).setLabelText=function(m){var y=Bm(r,e,m);wR(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Oo(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<vn.length;n++){var i=vn[n];r[i]=t.getModel([i,e])}return r}function Js(t,e,r,n,i){var a={};return TR(a,t,r,n,i),e&&Ie(a,e),a}function Nm(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Ze(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function TR(t,e,r,n,i){r=r||Wc;var a=e.ecModel,o=a&&a.option.textStyle,s=IR(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);Um(l[u]={},f,o,r,n,i,!1,!0)}}l&&(t.rich=l);var c=e.get("overflow");c&&(t.overflow=c);var d=e.get("minMargin");d!=null&&(t.margin=d),Um(t,e,o,r,n,i,!0,!1)}function IR(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Wc).rich;if(r){e=e||{};for(var n=gt(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Fm=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],$m=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],zm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Um(t,e,r,n,i,a,o,s){r=!i&&r||Wc;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=Ze(e.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(t.fill=u),f!=null&&(t.stroke=f);var d=Ze(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var h=Ze(e.getShallow("textBorderType"),r.textBorderType);h!=null&&(t.lineDash=h);var v=Ze(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(t.opacity=c),!i&&!a&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<Fm.length;p++){var g=Fm[p],m=Ze(e.getShallow(g),r[g]);m!=null&&(t[g]=m)}for(var p=0;p<$m.length;p++){var g=$m[p],m=e.getShallow(g);m!=null&&(t[g]=m)}if(t.verticalAlign==null){var y=e.getShallow("baseline");y!=null&&(t.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<zm.length;p++){var g=zm[p],m=e.getShallow(g);m!=null&&(t[g]=m)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function _R(t,e){var r=e&&e.getModel("textStyle");return ki([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var jc=qt();function AR(t,e,r,n){if(t){var i=jc(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var ER=["textStyle","color"],fd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],dd=new Qr,PR=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(ER):null)},t.prototype.getFont=function(){return _R({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<fd.length;n++)r[fd[n]]=this.getShallow(fd[n]);return dd.useStyle(r),dd.update(),dd.getBoundingRect()},t}(),eb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],MR=Xs(eb),RR=function(){function t(){}return t.prototype.getLineStyle=function(e){return MR(this,e)},t}(),tb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],DR=Xs(tb),LR=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return DR(this,e,r)},t}(),Jt=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){Ct(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(pt(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!xt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();Wv(Jt);yP(Jt);Mn(Jt,RR);Mn(Jt,LR);Mn(Jt,wP);Mn(Jt,PR);var kR=Math.round(Math.random()*10);function Kc(t){return[t||"",kR++].join("_")}function OR(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=jn(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=jn(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function BR(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,d={};for(ee(a,function(y){d[y]=!0});c.length;){var h=c.pop(),v=f[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),ee(v.successor,p?m:g)}ee(d,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return ee(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),ee(c,function(d){Mt(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);Mt(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return ee(a,function(l){Mt(o,l)>=0&&s.push(l)}),s}}function rb(t,e){return Ct(Ct({},t,!0),e,!0)}const NR={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},FR={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var uc="ZH",rp="EN",wo=rp,Lu={},np={},nb=xt.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||wo).toUpperCase();return t.indexOf(uc)>-1?uc:wo}():wo;function ib(t,e){t=t.toUpperCase(),np[t]=new Jt(e),Lu[t]=e}function $R(t){if(We(t)){var e=Lu[t.toUpperCase()]||{};return t===uc||t===rp?pt(e):Ct(pt(e),pt(Lu[wo]),!1)}else return Ct(pt(t),pt(Lu[wo]),!1)}function zR(t){return np[t]}function UR(){return np[wo]}ib(rp,NR);ib(uc,FR);var ip=1e3,ap=ip*60,Rs=ap*60,fn=Rs*24,Hm=fn*365,hs={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xl="{yyyy}-{MM}-{dd}",Vm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xl,hour:Xl+" "+hs.hour,minute:Xl+" "+hs.minute,second:Xl+" "+hs.second,millisecond:hs.none},hd=["year","month","day","hour","minute","second","millisecond"],ab=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ti(t,e){return t+="","0000".substr(0,e-t.length)+t}function To(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function HR(t){return t===To(t)}function VR(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ob(t,e,r,n){var i=Xi(t),a=i[op(r)](),o=i[Io(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Xc(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[qs(r)](),c=(f-1)%12+1,d=i[Yc(r)](),h=i[Zc(r)](),v=i[Qc(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Jt?n:zR(n||nb)||UR(),y=m.getModel("time"),S=y.get("month"),T=y.get("monthAbbr"),P=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ti(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[o-1]).replace(/{MMM}/g,T[o-1]).replace(/{MM}/g,Ti(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ti(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,P[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ti(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ti(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ti(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ti(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ti(v,3)).replace(/{S}/g,v+"")}function GR(t,e,r,n,i){var a=null;if(We(r))a=r;else if(nt(r))a=r(t.value,e,{level:t.level});else{var o=Ie({},hs);if(t.level>0)for(var s=0;s<hd.length;++s)o[hd[s]]="{primary|"+o[hd[s]]+"}";var l=r?r.inherit===!1?r:dt(r,o):o,u=sb(t.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=ab.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if($e(a)){var c=t.level==null?0:t.level>=0?t.level:a.length+t.level;c=Math.min(c,a.length-1),a=a[c]}}return ob(new Date(t.value),a,i,n)}function sb(t,e){var r=Xi(t),n=r[Io(e)]()+1,i=r[Xc(e)](),a=r[qs(e)](),o=r[Yc(e)](),s=r[Zc(e)](),l=r[Qc(e)](),u=l===0,f=u&&s===0,c=f&&o===0,d=c&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Gm(t,e,r){var n=Et(t)?Xi(t):t;switch(e=e||sb(t,r),e){case"year":return n[op(r)]();case"half-year":return n[Io(r)]()>=6?1:0;case"quarter":return Math.floor((n[Io(r)]()+1)/4);case"month":return n[Io(r)]();case"day":return n[Xc(r)]();case"half-day":return n[qs(r)]()/24;case"hour":return n[qs(r)]();case"minute":return n[Yc(r)]();case"second":return n[Zc(r)]();case"millisecond":return n[Qc(r)]()}}function op(t){return t?"getUTCFullYear":"getFullYear"}function Io(t){return t?"getUTCMonth":"getMonth"}function Xc(t){return t?"getUTCDate":"getDate"}function qs(t){return t?"getUTCHours":"getHours"}function Yc(t){return t?"getUTCMinutes":"getMinutes"}function Zc(t){return t?"getUTCSeconds":"getSeconds"}function Qc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function WR(t){return t?"setUTCFullYear":"setFullYear"}function lb(t){return t?"setUTCMonth":"setMonth"}function ub(t){return t?"setUTCDate":"setDate"}function cb(t){return t?"setUTCHours":"setHours"}function fb(t){return t?"setUTCMinutes":"setMinutes"}function db(t){return t?"setUTCSeconds":"setSeconds"}function hb(t){return t?"setUTCMilliseconds":"setMilliseconds"}function jR(t){if(!QE(t))return We(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var vb=B1,Wm=["a","b","c","d","e","f","g"],vd=function(t,e){return"{"+t+(e??"")+"}"};function KR(t,e,r){$e(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Wm[a];t=t.replace(vd(o),vd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(vd(Wm[l],s),u)}return t}function Wh(t,e){return e=e||"transparent",We(t)?t:Ye(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var ku=ee,XR=["left","right","top","bottom","width","height"],Yl=[["width","left","right"],["height","top","bottom"]];function sp(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),d=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var p=f.width+(d?-d.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(d?-d.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var Ds=sp;Xr(sp,"vertical");Xr(sp,"horizontal");function cc(t,e,r){r=vb(r||0);var n=e.width,i=e.height,a=At(t.left,n),o=At(t.top,i),s=At(t.right,n),l=At(t.bottom,i),u=At(t.width,n),f=At(t.height,i),c=r[2]+r[0],d=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new It(a+r[3],o+r[0],u,f);return v.margin=r,v}function el(t){var e=t.layoutMode||t.constructor.layoutMode;return Ye(e)?e:e?{type:e}:null}function Po(t,e,r){var n=r&&r.ignoreSize;!$e(n)&&(n=[n,n]);var i=o(Yl[0],0),a=o(Yl[1],1);u(Yl[0],t,i),u(Yl[1],t,a);function o(f,c){var d={},h=0,v={},p=0,g=2;if(ku(f,function(S){v[S]=t[S]}),ku(f,function(S){s(e,S)&&(d[S]=v[S]=e[S]),l(d,S)&&h++,l(v,S)&&p++}),n[c])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<f.length;m++){var y=f[m];if(!s(d,y)&&s(t,y)){d[y]=t[y];break}}return d}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,d){ku(f,function(h){c[h]=d[h]})}}function Jc(t){return YR({},t)}function YR(t,e){return e&&t&&ku(XR,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var ZR=qt(),Tt=function(t){De(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=Kc("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=el(this),a=i?Jc(r):{},o=n.getTheme();Ct(r,o.get(this.mainType)),Ct(r,this.getDefaultOption()),i&&Po(r,a,i)},e.prototype.mergeOption=function(r,n){Ct(this.option,r,!0);var i=el(this);i&&Po(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!pP(r))return r.defaultOption;var n=ZR(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Ct(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Oc(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Jt);SS(Tt,Jt);Bc(Tt);OR(Tt);BR(Tt,QR);function QR(t){var e=[];return ee(Tt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ke(e,function(r){return jn(r).main}),t!=="dataset"&&Mt(e,"dataset")<=0&&e.unshift("dataset"),e}var pb="";typeof navigator<"u"&&(pb=navigator.platform||"");var to="rgba(0, 0, 0, 0.2)";const JR={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:to,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:to,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:to,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:to,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:to,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:to,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pb.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gb=it(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),gn="original",zr="arrayRows",Ln="objectRows",ei="keyedColumns",Vi="typedArray",mb="unknown",pi="column",Bo="row",nr={Must:1,Might:2,Not:3},yb=qt();function qR(t){yb(t).datasetMap=it()}function eD(t,e,r){var n={},i=lp(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=yb(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),ee(t,function(p,g){var m=Ye(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});ee(t,function(p,g){var m=p.name,y=v(p);if(f==null){var S=d.valueWayDim;h(n[m],S,y),h(o,S,y),d.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var S=d.categoryWayDim;h(n[m],S,y),h(o,S,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function tD(t,e,r){var n={},i=lp(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Ln||a===ei)&&ee(o,function(f,c){(Ye(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=bb(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);d.push(p);var g=p===nr.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&d[f.n]===nr.Not)&&(f.n=h),m(f)&&d[f.n]!==nr.Not)return f;g||(p===nr.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function lp(t){var e=t.get("data",!0);if(!e)return Oc(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},En).models[0]}function rD(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Oc(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},En).models}function Sb(t,e){return bb(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function bb(t,e,r,n,i,a){var o,s=5;if($r(t))return nr.Not;var l,u;if(n){var f=n[a];Ye(f)?(l=f.name,u=f.type):We(f)&&(l=f)}if(u!=null)return u==="ordinal"?nr.Must:nr.Not;if(e===zr){var c=t;if(r===Bo){for(var d=c[a],h=0;h<(d||[]).length&&h<s;h++)if((o=T(d[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[i+h];if(v&&(o=T(v[a]))!=null)return o}}else if(e===Ln){var p=t;if(!l)return nr.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=T(g[l]))!=null)return o}}else if(e===ei){var m=t;if(!l)return nr.Not;var d=m[l];if(!d||$r(d))return nr.Not;for(var h=0;h<d.length&&h<s;h++)if((o=T(d[h]))!=null)return o}else if(e===gn)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],S=pl(g);if(!$e(S))return nr.Not;if((o=T(S[a]))!=null)return o}function T(P){var x=We(P);if(P!=null&&Number.isFinite(Number(P))&&P!=="")return x?nr.Might:nr.Not;if(x&&P!=="-")return nr.Must}return nr.Not}var nD=it();function iD(t,e,r){var n=nD.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var jm=qt();qt();var up=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Ir(this.get("color",!0)),a=this.get("colorLayer",!0);return oD(this,jm,i,a,e,r,n)},t.prototype.clearColorPalette=function(){sD(this,jm)},t}();function aD(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function oD(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:aD(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function sD(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Zl,Xo,Km,Xm="\0_ec_inner",lD=1,cp=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Jt(a),this._locale=new Jt(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Qm(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Qm(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Km(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&ee(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=it(),u=n&&n.replaceMergeMainTypeMap;qR(this),ee(r,function(c,d){c!=null&&(Tt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?pt(c):Ct(i[d],c,!0))}),u&&u.each(function(c,d){Tt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Tt.topologicalTravel(s,Tt.getAllClassMainTypes(),f,this);function f(c){var d=iD(this,c,Ir(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=tP(h,d,v);lP(p,c,Tt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,S;ee(p,function(T,P){var x=T.existing,_=T.newOption;if(!_)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var M=c==="series",C=Tt.getClass(c,T.keyInfo.subType,!M);if(!C)return;if(c==="tooltip"){if(S)return;S=!0}if(x&&x.constructor===C)x.name=T.keyInfo.name,x.mergeOption(_,this),x.optionUpdated(_,!1);else{var w=Ie({componentIndex:P},T.keyInfo);x=new C(_,this,this,w),Ie(x,w),T.brandNew&&(x.__requireNewView=!0),x.init(_,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Zl(this)}this._seriesIndices||Zl(this)},e.prototype.getOption=function(){var r=pt(this.option);return ee(r,function(n,i){if(Tt.hasClass(i)){for(var a=Ir(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ks(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Xm],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],ee(Ir(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ym("id",a,s):o!=null?l=Ym("name",o,s):l=vr(s,function(u){return!!u}),Zm(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):vr(this._componentsMap.get(i),function(u){return!!u});return l(Zm(o,r));function s(u){var f=i+"Index",c=i+"Id",d=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[d]!=null)?{mainType:i,index:u[f],id:u[c],name:u[d]}:null}function l(u){return r.filter?vr(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(nt(r)){var o=n,s=r;a.each(function(c,d){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=We(r)?a.get(r):Ye(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Xn(r,null);return vr(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return vr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return vr(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Xo(this),ee(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){ee(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Xo(this),ee(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return ee(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Xo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Xo(this);var i=[];ee(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=it(i)},e.prototype.restoreData=function(r){Zl(this);var n=this._componentsMap,i=[];n.each(function(a,o){Tt.hasClass(o)&&i.push(o)}),Tt.topologicalTravel(i,Tt.getAllClassMainTypes(),function(a){ee(n.get(a),function(o){o&&(a!=="series"||!uD(o,r))&&o.restoreData()})})},e.internalField=function(){Zl=function(r){var n=r._seriesIndices=[];ee(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=it(n)},Xo=function(r){},Km=function(r,n){r.option={},r.option[Xm]=lD,r._componentsMap=it({series:[]}),r._componentsCount=it();var i=n.aria;Ye(i)&&i.enabled==null&&(i.enabled=!0),cD(n,r._theme.option),Ct(n,JR,!1),r._mergeOption(n,null)}}(),e}(Jt);function uD(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function cD(t,e){var r=t.color&&!t.colorLayer;ee(e,function(n,i){i==="colorLayer"&&r||Tt.hasClass(i)||(typeof n=="object"?t[i]=t[i]?Ct(t[i],n,!1):pt(n):t[i]==null&&(t[i]=n))})}function Ym(t,e,r){if($e(e)){var n=it();return ee(e,function(a){if(a!=null){var o=Xn(a,null);o!=null&&n.set(a,!0)}}),vr(r,function(a){return a&&n.get(a[t])})}else{var i=Xn(e,null);return vr(r,function(a){return a&&i!=null&&a[t]===i})}}function Zm(t,e){return e.hasOwnProperty("subType")?vr(t,function(r){return r&&r.subType===e.subType}):t}function Qm(t){var e=it();return t&&ee(Ir(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Mn(cp,up);var fD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],xb=function(){function t(e){ee(fD,function(r){this[r]=jt(e[r],e)},this)}return t}(),pd={},fp=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];ee(pd,function(i,a){var o=i.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){ee(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){pd[e]=r},t.get=function(e){return pd[e]},t}(),dD=/^(min|max)?(.+)$/,hD=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(ee(Ir(e.series),function(o){o&&o.data&&$r(o.data)&&hh(o.data)}),ee(Ir(e.dataset),function(o){o&&o.source&&$r(o.source)&&hh(o.source)})),e=pt(e);var i=this._optionBackup,a=vD(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],pt(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=pt(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)pD(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!mD(o,this._currentMediaIndices)&&(s=ke(o,function(f){return pt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();function vD(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&$e(u)&&ee(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),ee(l,function(h){return d(h)}),ee(n,function(h){return d(h.option)});function d(h){ee(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function pD(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return ee(t,function(a,o){var s=o.match(dD);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();gD(n[u],a,l)||(i=!1)}}),i}function gD(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function mD(t,e){return t.join(",")===e.join(",")}var yn=ee,tl=Ye,Jm=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gd(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Jm.length;r<n;r++){var i=Jm[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?Ct(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?Ct(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function dr(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,dt(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function vs(t){dr(t,"itemStyle"),dr(t,"lineStyle"),dr(t,"areaStyle"),dr(t,"label"),dr(t,"labelLine"),dr(t,"upperLabel"),dr(t,"edgeLabel")}function Ut(t,e){var r=tl(t)&&t[e],n=tl(r)&&r.textStyle;if(n)for(var i=0,a=tm.length;i<a;i++){var o=tm[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function on(t){t&&(vs(t),Ut(t,"label"),t.emphasis&&Ut(t.emphasis,"label"))}function yD(t){if(tl(t)){gd(t),vs(t),Ut(t,"label"),Ut(t,"upperLabel"),Ut(t,"edgeLabel"),t.emphasis&&(Ut(t.emphasis,"label"),Ut(t.emphasis,"upperLabel"),Ut(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(gd(e),on(e));var r=t.markLine;r&&(gd(r),on(r));var n=t.markArea;n&&on(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!$r(a))for(var o=0;o<a.length;o++)on(a[o]);ee(t.categories,function(u){vs(u)})}if(i&&!$r(i))for(var o=0;o<i.length;o++)on(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)on(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)$e(l[o])?(on(l[o][0]),on(l[o][1])):on(l[o]);t.type==="gauge"?(Ut(t,"axisLabel"),Ut(t,"title"),Ut(t,"detail")):t.type==="treemap"?(dr(t.breadcrumb,"itemStyle"),ee(t.levels,function(u){vs(u)})):t.type==="tree"&&vs(t.leaves)}}function si(t){return $e(t)?t:t?[t]:[]}function qm(t){return($e(t)?t[0]:t)||{}}function SD(t,e){yn(si(t.series),function(n){tl(n)&&yD(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),yn(r,function(n){yn(si(t[n]),function(i){i&&(Ut(i,"axisLabel"),Ut(i.axisPointer,"label"))})}),yn(si(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ut(i,"axisLabel"),Ut(i&&i.axisPointer,"label")}),yn(si(t.calendar),function(n){dr(n,"itemStyle"),Ut(n,"dayLabel"),Ut(n,"monthLabel"),Ut(n,"yearLabel")}),yn(si(t.radar),function(n){Ut(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),yn(si(t.geo),function(n){tl(n)&&(on(n),yn(si(n.regions),function(i){on(i)}))}),yn(si(t.timeline),function(n){on(n),dr(n,"label"),dr(n,"itemStyle"),dr(n,"controlStyle",!0);var i=n.data;$e(i)&&ee(i,function(a){Ye(a)&&(dr(a,"label"),dr(a,"itemStyle"))})}),yn(si(t.toolbox),function(n){dr(n,"iconStyle"),yn(n.feature,function(i){dr(i,"iconStyle")})}),Ut(qm(t.axisPointer),"label"),Ut(qm(t.tooltip).axisPointer,"label")}function bD(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function xD(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function ey(t){t&&ee(CD,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var CD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],wD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],md=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Yo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<md.length;r++){var n=md[r][1],i=md[r][0];e[n]!=null&&(e[i]=e[n])}}function ty(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function ry(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function TD(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Cb(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Cb(t[r].children,e)}function wb(t,e){SD(t,e),t.series=Ir(t.series),ee(t.series,function(r){if(Ye(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),ty(r.label);var i=r.data;if(i&&!$r(i))for(var a=0;a<i.length;a++)ty(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=bD(r,"pointer.color");o!=null&&xD(r,"itemStyle.color",o)}else if(n==="bar"){Yo(r),Yo(r.backgroundStyle),Yo(r.emphasis);var i=r.data;if(i&&!$r(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Yo(i[a]),Yo(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),ry(r),Cb(r.data,ry)}else n==="graph"||n==="sankey"?TD(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&dt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),ey(r)}}),t.dataRange&&(t.visualMap=t.dataRange),ee(wD,function(r){var n=t[r];n&&($e(n)||(n=[n]),ee(n,function(i){ey(i)}))})}function ID(t){var e=it();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(_D)}function _D(t){ee(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var d=o.get(e.stackedDimension,c);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=KE(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var qc=function(){function t(e){this.data=e.data||(e.sourceFormat===ei?{}:[]),this.sourceFormat=e.sourceFormat||mb,this.seriesLayoutBy=e.seriesLayoutBy||pi,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&Sb(this,n)===nr.Must&&(i.type="ordinal")}}return t}();function dp(t){return t instanceof qc}function jh(t,e,r){r=r||Ib(t);var n=e.seriesLayoutBy,i=ED(t,r,n,e.sourceHeader,e.dimensions),a=new qc({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:pt(e)});return a}function Tb(t){return new qc({data:t,sourceFormat:$r(t)?Vi:gn})}function AD(t){return new qc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:pt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Ib(t){var e=mb;if($r(t))e=Vi;else if($e(t)){t.length===0&&(e=zr);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if($e(i)||$r(i)){e=zr;break}else if(Ye(i)){e=Ln;break}}}}else if(Ye(t)){for(var a in t)if(Gs(t,a)&&Fr(t[a])){e=ei;break}}return e}function ED(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:ny(i),startIndex:o,dimensionsDetectedCount:a};if(e===zr){var s=t;n==="auto"||n==null?iy(function(u){u!=null&&u!=="-"&&(We(u)?o==null&&(o=1):o=0)},r,s,10):o=Et(n)?n:n?1:0,!i&&o===1&&(i=[],iy(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Bo?s.length:s[0]?s[0].length:null}else if(e===Ln)i||(i=PD(t));else if(e===ei)i||(i=[],ee(t,function(u,f){i.push(f)}));else if(e===gn){var l=pl(t[0]);a=$e(l)&&l.length||1}return{startIndex:o,dimensionsDefine:ny(i),dimensionsDetectedCount:a}}function PD(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return gt(r)}function ny(t){if(t){var e=it();return ke(t,function(r,n){r=Ye(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function iy(t,e,r,n){if(e===Bo)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function _b(t){var e=t.sourceFormat;return e===Ln||e===ei}var Ta,Ia,_a,ay,oy,Ab=function(){function t(e,r){var n=dp(e)?e:Tb(e);this._source=n;var i=this._data=n.data;n.sourceFormat===Vi&&(this._offset=0,this._dimSize=r,this._data=i),oy(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;oy=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,d=l.dimensionsDefine,h=ay[hp(u,f)];if(Ie(o,h),u===Vi)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=Eb(u,f);o.getItem=jt(v,null,s,c,d);var p=Pb(u,f);o.count=jt(p,null,s,c,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,d=0;d<c;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var S=f[y*c+d];m[o+y]=S,S<v&&(v=S),S>p&&(p=S)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};ay=(e={},e[zr+"_"+pi]={pure:!0,appendData:a},e[zr+"_"+Bo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ln]={pure:!0,appendData:a},e[ei]={pure:!0,appendData:function(o){var s=this._data;ee(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[gn]={appendData:a},e[Vi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),sy=function(t,e,r,n){return t[n]},MD=(Ta={},Ta[zr+"_"+pi]=function(t,e,r,n){return t[n+e]},Ta[zr+"_"+Bo]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Ta[Ln]=sy,Ta[ei]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=t[s];a[o]=l?l[n]:null}return a},Ta[gn]=sy,Ta);function Eb(t,e){var r=MD[hp(t,e)];return r}var ly=function(t,e,r){return t.length},RD=(Ia={},Ia[zr+"_"+pi]=function(t,e,r){return Math.max(0,t.length-e)},Ia[zr+"_"+Bo]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Ia[Ln]=ly,Ia[ei]=function(t,e,r){var n=r[0].name,i=t[n];return i?i.length:0},Ia[gn]=ly,Ia);function Pb(t,e){var r=RD[hp(t,e)];return r}var yd=function(t,e,r){return t[e]},DD=(_a={},_a[zr]=yd,_a[Ln]=function(t,e,r){return t[r]},_a[ei]=yd,_a[gn]=function(t,e,r){var n=pl(t);return n instanceof Array?n[e]:n},_a[Vi]=yd,_a);function Mb(t){var e=DD[t];return e}function hp(t,e){return t===zr?t+"_"+e:t}function Mo(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return Mb(a)(n,o,s)}else{var l=n;return a===gn&&(l=pl(n)),l}}}}var LD=/\{@(.+?)\}/g,kD=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,d=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&$e(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(nt(a))return l.status=r,l.dimensionIndex=i,a(l);if(We(a)){var f=KR(a,l);return f.replace(LD,function(c,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Mo(s,e,v);if(o&&$e(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Mo(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Ls(t){return new OD(t)}var OD=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(c||h<v)){var p=this._progress;if($e(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){uy.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:uy.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),$e(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),uy=function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}}();function Ou(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Et(t)&&t!=null&&t!=="-"&&(t=+Xi(t)),t==null||t===""?NaN:Number(t))}it({number:function(t){return parseFloat(t)},time:function(t){return+Xi(t)},trim:function(t){return We(t)?ki(t):t}});var BD=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ou(e,r)},t}();function ND(t,e){var r=new BD,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==pi&&Kr(o);var s=[],l={},u=t.dimensionsDefine;if(u)ee(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var S="";Gs(l,m)&&Kr(S),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Eb(i,pi);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=jt(FD,null,t)),r.cloneRawData=jt($D,null,t);var d=Pb(i,pi);r.count=jt(d,null,n,a,s);var h=Mb(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=jt(zD,null,s,l),r.cloneAllDimensionInfo=jt(UD,null,s),r}function FD(t){var e=t.sourceFormat;if(!vp(e)){var r="";Kr(r)}return t.data}function $D(t){var e=t.sourceFormat,r=t.data;if(!vp(e)){var n="";Kr(n)}if(e===zr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Ln){for(var i=[],a=0,o=r.length;a<o;a++)i.push(Ie({},r[a]));return i}}function zD(t,e,r){if(r!=null){if(Et(r)||!isNaN(r)&&!Gs(e,r))return t[r];if(Gs(e,r))return e[r]}}function UD(t){return pt(t)}var Rb=it();function HD(t){t=pt(t);var e=t.type,r="";e||Kr(r);var n=e.split(":");n.length!==2&&Kr(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,Rb.set(e,t)}function VD(t,e,r){var n=Ir(t),i=n.length,a="";i||Kr(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=GD(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function GD(t,e,r,n){var i="";e.length||Kr(i),Ye(t)||Kr(i);var a=t.type,o=Rb.get(a);o||Kr(i);var s=ke(e,function(u){return ND(u,o)}),l=Ir(o.transform({upstream:s[0],upstreamList:s,config:pt(t.config)}));return ke(l,function(u,f){var c="";Ye(u)||Kr(c),u.data||Kr(c);var d=Ib(u.data);vp(d)||Kr(c);var h,v=e[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:pi,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:pi,sourceHeader:0,dimensions:u.dimensions};return jh(u.data,h,null)})}function vp(t){return t===zr||t===Ln}var ef="undefined",WD=typeof Uint32Array===ef?Array:Uint32Array,jD=typeof Uint16Array===ef?Array:Uint16Array,Db=typeof Int32Array===ef?Array:Int32Array,cy=typeof Float64Array===ef?Array:Float64Array,Lb={float:cy,int:Db,ordinal:Array,number:Array,time:cy},Sd;function Zo(t){return t>65535?WD:jD}function ro(){return[1/0,-1/0]}function KD(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function fy(t,e,r,n,i){var a=Lb[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var Kh=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=it()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Sd[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],_b(i),this._dimensions=ke(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new Lb[r||"float"](this._rawCount),this._rawExtent[a]=ro(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=ro());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];fy(n,u,f.type,l,!0)}for(var c=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var f=i[v],p=Sd.arrayRows.call(this,e[h]||c,f.property,h,v);n[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ke(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=ro()),fy(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var d=[],h=e;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var d=this.getRawIndex(f),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Zo(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Zo(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var p=c[f][v];h=r(p,d)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=gt(e),a=i.length;if(!a)return this;var o=r.count(),s=Zo(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],d=e[f][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=h[i[0]],S=h[i[1]],T=e[i[1]][0],P=e[i[1]][1],m=0;m<n;m++){var y=g[m],x=S[m];(y>=c&&y<=d||isNaN(y))&&(x>=T&&x<=P||isNaN(x))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var _=r.getRawIndex(m),y=h[i[0]][_];(y>=c&&y<=d||isNaN(y))&&(l[u++]=_)}else for(var m=0;m<o;m++){for(var M=!0,_=r.getRawIndex(m),C=0;C<a;C++){var w=i[C],y=h[w][_];(y<e[w][0]||y>e[w][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=ro();for(var c=0;c<s;c++){for(var d=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],g=v[f],m=u[p],y=i[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,d,h=new(Zo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,y=0,S=p;S<g;S++){var T=this.getRawIndex(S),P=a[T];isNaN(P)||(y+=P)}y/=g-p;var x=v,_=Math.min(v+l,o),M=v-1,C=a[u];f=-1,d=x;for(var w=-1,b=0,S=x;S<_;S++){var T=this.getRawIndex(S),P=a[T];if(isNaN(P)){b++,w<0&&(w=T);continue}c=Math.abs((M-m)*(P-C)-(M-S)*(y-C)),c>f&&(f=c,d=T)}b>0&&b<_-x&&(h[s++]=Math.min(w,d),d=Math.max(w,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=ro(),d=new(Zo(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(v+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=ro();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&ji(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?KD(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=pt(this._extent),e._rawExtent=pt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return Ou(r[a],this._dimensions[a])}Sd={arrayRows:e,objectRows:function(r,n,i,a){return Ou(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ou(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),XD=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Ql(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=$r(s)?Vi:gn,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ze(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=Ze(c.sourceHeader,d.sourceHeader),p=Ze(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[jh(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var S=m.get("source",!0);i=[jh(S,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&dy(a)}var o,s=[],l=[];return ee(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&dy(c),s.push(f),l.push(u._getVersionSign())}),n?o=VD(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[AD(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Ql(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Kh,s.initData(new Ab(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ql(e)){var r=lp(e);return r?[r.getSourceManager()]:[]}else return ke(rD(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Ql(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}();function Ql(t){return t.mainType==="series"}function dy(t){throw new Error(t)}function rl(t,e){return e.type=t,e}function kb(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Wh(n)}function YD(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=$e(s),u=kb(e,r),f,c,d,h;if(o>1||l&&!o){var v=ZD(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Mo(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Gv(e),m=g&&e.name||"",y=i.getName(r),S=n?m:y;return rl("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[rl("nameValue",{markerType:"item",markerColor:u,name:S,noName:!ki(S),value:f,valueType:c,dataIndex:r})].concat(d||[])})}function ZD(t,e,r,n,i){var a=e.getData(),o=ji(t,function(c,d,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?ee(n,function(c){f(Mo(a,r,c),c)}):ee(t,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(rl("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ii=qt();function Jl(t,e){return t.getName(e)||t.getId(e)}var QD="__universalTransitionEnabled",Jr=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ls({count:qD,reset:eL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ii(this).sourceManager=new XD(this);a.prepareSource();var o=this.getInitialData(r,i);vy(o,this),this.dataTask.context.data=o,Ii(this).dataBeforeProcessed=o,hy(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=el(this),a=i?Jc(r):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),Ct(r,n.getTheme().get(this.subType)),Ct(r,this.getDefaultOption()),Lh(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Po(r,a,i)},e.prototype.mergeOption=function(r,n){r=Ct(this.option,r,!0),this.fillDataTextStyle(r.data);var i=el(this);i&&Po(this.option,r,i);var a=Ii(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);vy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ii(this).dataBeforeProcessed=o,hy(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!$r(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Lh(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Xh(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Ii(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Xh(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Ii(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return it(r)},e.prototype.getSourceManager=function(){return Ii(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ii(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,i){return YD({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(xt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=up.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Jl(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=gt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Jl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[QD])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ye(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],d=Jl(r,c);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],d=Jl(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Tt.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(Tt);Mn(Jr,kD);Mn(Jr,up);SS(Jr,Tt);function hy(t){var e=t.name;Gv(t)||(t.name=JD(t)||e)}function JD(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return ee(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function qD(t){return t.model.getRawData().count()}function eL(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),tL}function tL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function vy(t,e){ee(b2(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Xr(rL,e))})}function rL(t,e){var r=Xh(t);return r&&r.setOutputEnd((e||this).count()),e}function Xh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var mi=function(){function t(){this.group=new Yt,this.uid=Kc("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();Wv(mi);Bc(mi);function pp(){var t=qt();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Ob=qt(),nL=pp(),Br=function(){function t(){this.group=new Yt,this.uid=Kc("viewChart"),this.renderTask=Ls({plan:iL,reset:aL}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&gy(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&gy(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){Gc(this.group,e)},t.markUpdateMethod=function(e,r){Ob(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function py(t,e,r){t&&zh(t)&&(e==="emphasis"?rc:nc)(t,r)}function gy(t,e,r){var n=_o(t,e),i=e&&e.highlightKey!=null?EM(e.highlightKey):null;n!=null?ee(Ir(n),function(a){py(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){py(a,r,i)})}Wv(Br);Bc(Br);function iL(t){return nL(t.model)}function aL(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Ob(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),oL[l]}var oL={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function Bb(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var p=f||e,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){f=h},d}var my=qt(),yy={itemStyle:Xs(tb,!0),lineStyle:Xs(eb,!0)},sL={lineStyle:"stroke",itemStyle:"fill"};function Nb(t,e){var r=t.visualStyleMapper||yy[e];return r||(console.warn("Unknown style type '"+e+"'."),yy.itemStyle)}function Fb(t,e){var r=t.visualDrawType||sL[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var lL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=Nb(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Fb(t,n),u=o[l],f=nt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||nt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||nt(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=t.getDataParams(v),g=Ie({},o);g[l]=f(p),h.setItemVisual(v,"style",g)}}}},Qo=new Jt,uL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Nb(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Qo.option=l[n];var u=i(Qo),f=o.ensureUniqueItemVisual(s,"style");Ie(f,u),Qo.option.decal&&(o.setItemVisual(s,"decal",Qo.option.decal),Qo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cL={performRawSeries:!0,overallReset:function(t){var e=it();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),my(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=my(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Fb(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var d=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},ql=Math.PI;function fL(t,e){e=e||{},dt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Yt,n=new Qt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Qr({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Qt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Vc({shape:{startAngle:-ql/2,endAngle:-ql/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ql*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ql*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var $b=function(){function t(e,r,n,i){this._stageTaskMap=it(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=it();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;ee(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Zn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;ee(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,d=f.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,i.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=it(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var d=c.uid,h=s.set(d,o&&o.get(d)||Ls({plan:gL,reset:mL,count:SL}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ls({reset:dL});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=it(),u=e.seriesType,f=e.getTargetSeries,c=!0,d=!1,h="";Zn(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,ee(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Ls({reset:hL,onDirty:pL})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}d&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return nt(e)&&(e={overallReset:e,seriesType:bL(e)}),e.uid=Kc("stageHandler"),r&&(e.visualType=r),e},t}();function dL(t){t.overallReset(t.ecModel,t.api,t.payload)}function hL(t){return t.overallProgress&&vL}function vL(){this.agent.dirty(),this.getDownstream().dirty()}function pL(){this.agent&&this.agent.dirty()}function gL(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function mL(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ir(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ke(e,function(r,n){return zb(n)}):yL}var yL=zb(0);function zb(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function SL(t){return t.data.count()}function bL(t){fc=null;try{t(nl,Ub)}catch{}return fc}var nl={},Ub={},fc;Hb(nl,cp);Hb(Ub,xb);nl.eachSeriesByType=nl.eachRawSeriesByType=function(t){fc=t};nl.eachComponent=function(t){t.mainType==="series"&&t.subType&&(fc=t.subType)};function Hb(t,e){for(var r in e.prototype)t[r]=Yr}var Sy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const xL={color:Sy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Sy]};var br="#B9B8CE",by="#100C2A",eu=function(){return{axisLine:{lineStyle:{color:br}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},xy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Vb={darkMode:!0,color:xy,backgroundColor:by,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:br}},textStyle:{color:br},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:br}},dataZoom:{borderColor:"#71708A",textStyle:{color:br},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:br}},timeline:{lineStyle:{color:br},label:{color:br},controlStyle:{color:br,borderColor:br}},calendar:{itemStyle:{color:by},dayLabel:{color:br},monthLabel:{color:br},yearLabel:{color:br}},timeAxis:eu(),logAxis:eu(),valueAxis:eu(),categoryAxis:eu(),line:{symbol:"circle"},graph:{color:xy},gauge:{title:{color:br},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:br},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Vb.categoryAxis.splitLine.show=!1;var CL=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(We(e)){var a=jn(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};ee(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var d=o[c],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,d,h,v){return c[h]==null||d[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Yh=["symbol","symbolSize","symbolRotate","symbolOffset"],Cy=Yh.concat(["symbolKeepAspect"]),wL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Yh.length;o++){var s=Yh[o],l=t.get(s);nt(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(Ie({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=gt(i);function f(c,d){for(var h=t.getRawValue(d),v=t.getDataParams(d),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(d,g,i[g](h,v))}}return{dataEach:a?f:null}}},TL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Cy.length;s++){var l=Cy[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function IL(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function _L(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function AL(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}ee([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=Ie({},i),o.dispatchAction(Ie(i,{type:n[1],seriesIndex:r(a,i)}))})})}function no(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),d=_o(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:$e(d)?c.getName(d[0]):c.getName(d),selected:We(l)?l:Ie({},l)})}})}function EL(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(no("map","selectchanged",e,i,n),no("pie","selectchanged",e,i,n)):n.fromAction==="select"?(no("map","selected",e,i,n),no("pie","selected",e,i,n)):n.fromAction==="unselect"&&(no("map","unselected",e,i,n),no("pie","unselected",e,i,n))})}function tu(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var PL=Math.round(Math.random()*9),ML=typeof Object.defineProperty=="function",RL=function(){function t(){this._id="__ec_inner_"+PL++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return ML?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),DL=yt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),LL=yt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),kL=yt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+d*h,r,n-v,r,n),t.bezierCurveTo(r,n-v,r-f+c*h,l+s+d*h,r-f,l+s),t.closePath()}}),OL=yt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),BL={line:Zi,rect:Qt,roundRect:Qt,square:Qt,circle:ml,diamond:LL,pin:kL,arrow:OL,triangle:DL},NL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Zh={};ee(BL,function(t,e){Zh[e]=new t});var FL=yt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Ju(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=Zh[n];i||(n="rect",i=Zh[n]),NL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function $L(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Qi(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=KS(t.slice(8),new It(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=ep(t.slice(7),{},new It(e,r,n,i),o?"center":"cover"):l=new FL({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=$L,a&&l.setColor(a),l}function Gb(t){return $e(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Wb(t,e){if(t!=null)return $e(t)||(t=[t,t]),[At(t[0],e[0])||0,At(Ze(t[1],t[0]),e[1])||0]}function Ba(t){return isFinite(t)}function zL(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Ba(n)?n:0,i=Ba(i)?i:1,a=Ba(a)?a:0,o=Ba(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function UL(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Ba(o)?o:.5,s=Ba(s)?s:.5,l=l>=0&&Ba(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function wy(t,e,r){for(var n=e.type==="radial"?UL(t,e,r):zL(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function HL(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function ru(t){return parseInt(t,10)}function Ty(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||ru(s[n])||ru(t.style[n]))-(ru(s[a])||0)-(ru(s[o])||0)|0}function VL(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Et(t)?[t]:$e(t)?t:null}function gp(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&VL(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=ke(r,function(a){return a/i}),n/=i)}return[r,n]}var GL=new Yi(!0);function dc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Iy(t){return typeof t=="string"&&t!=="none"}function hc(t){var e=t.fill;return e!=null&&e!=="none"}function _y(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Ay(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Ey(t,e,r){var n=jv(e.image,e.__image,r);if(Nc(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Tu),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function WL(t,e,r,n){var i,a=dc(r),o=hc(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||GL,c=e.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,S=void 0,T=void 0,P=void 0,x=void 0;(v||p)&&(x=e.getBoundingRect()),v&&(y=c?wy(t,d,x):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(S=c?wy(t,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(T=c||!e.__canvasFillPattern?Ey(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=T),m&&(P=c||!e.__canvasStrokePattern?Ey(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),v?t.fillStyle=y:g&&(T?t.fillStyle=T:o=!1),p?t.strokeStyle=S:m&&(P?t.strokeStyle=P:a=!1)}var _=e.getGlobalScale();f.setScale(_[0],_[1],e.segmentIgnoreThreshold);var M,C;t.setLineDash&&r.lineDash&&(i=gp(e),M=i[0],C=i[1]);var w=!0;(u||c&co)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),w=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),w&&f.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=C),n||(r.strokeFirst?(a&&Ay(t,r),o&&_y(t,r)):(o&&_y(t,r),a&&Ay(t,r))),M&&t.setLineDash([])}function jL(t,e,r){var n=e.__image=jv(r.image,e.__image,e,e.onload);if(!(!n||!Nc(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,d=s-f;t.drawImage(n,u,f,c,d,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function KL(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Wi,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=gp(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(dc(r)&&t.strokeText(i,r.x,r.y),hc(r)&&t.fillText(i,r.x,r.y)):(hc(r)&&t.fillText(i,r.x,r.y),dc(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var Py=["shadowBlur","shadowOffsetX","shadowOffsetY"],My=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function jb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Dr(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Na.opacity:o}(n||e.blend!==r.blend)&&(a||(Dr(t,i),a=!0),t.globalCompositeOperation=e.blend||Na.blend);for(var s=0;s<Py.length;s++){var l=Py[s];(n||e[l]!==r[l])&&(a||(Dr(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Dr(t,i),a=!0),t.shadowColor=e.shadowColor||Na.shadowColor),a}function Ry(t,e,r,n,i){var a=il(e,i.inHover),o=n?null:r&&il(r,i.inHover)||{};if(a===o)return!1;var s=jb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Dr(t,i),s=!0),Iy(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Dr(t,i),s=!0),Iy(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Dr(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Dr(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<My.length;f++){var c=My[f],d=c[0];(n||a[d]!==o[d])&&(s||(Dr(t,i),s=!0),t[d]=a[d]||c[1])}return s}function XL(t,e,r,n,i){return jb(t,il(e,i.inHover),r&&il(r,i.inHover),n,i)}function Kb(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function YL(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),Kb(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function ZL(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Dy=1,Ly=2,ky=3,Oy=4;function QL(t){var e=hc(t),r=dc(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Dr(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function il(t,e){return e&&t.__hoverStyle||t.style}function JL(t,e){Qh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Qh(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Vn,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||HL(a,o))&&(o&&o.length&&(Dr(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Dr(t,r),t.save(),YL(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof yt&&e.autoBatch&&QL(e.style);s||ZL(i,u.transform)?(Dr(t,r),Kb(t,e)):f||Dr(t,r);var c=il(e,r.inHover);e instanceof yt?(r.lastDrawType!==Dy&&(l=!0,r.lastDrawType=Dy),Ry(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),WL(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof Ys?(r.lastDrawType!==ky&&(l=!0,r.lastDrawType=ky),Ry(t,e,u,l,r),KL(t,e,c)):e instanceof Rn?(r.lastDrawType!==Ly&&(l=!0,r.lastDrawType=Ly),XL(t,e,u,l,r),jL(t,e,c)):e.getTemporalDisplayables&&(r.lastDrawType!==Oy&&(l=!0,r.lastDrawType=Oy),qL(t,e,r)),f&&n&&Dr(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function qL(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qh(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qh(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var bd=new RL,By=new vl(100),Ny=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Jh(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&bd.delete(t);var a=bd.get(t);if(a)return a;var o=dt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,bd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,d=0;d<Ny.length;++d){var h=o[Ny[d]];if(h!=null&&!$e(h)&&!We(h)&&!Et(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=By.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=Yb(o.dashArrayX),m=ek(o.dashArrayY),y=Xb(o.symbol),S=tk(g),T=Zb(m),P=!i&&dl.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=C(),M;P&&(P.width=_.width*r,P.height=_.height*r,M=P.getContext("2d")),w(),c&&By.put(v,P||x),u.image=P,u.svgElement=x,u.svgWidth=_.width,u.svgHeight=_.height;function C(){for(var b=1,E=0,A=S.length;E<A;++E)b=qg(b,S[E]);for(var R=1,E=0,A=y.length;E<A;++E)R=qg(R,y[E].length);b*=R;var k=T*S.length*y.length;return{width:Math.max(1,Math.min(b,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function w(){M&&(M.clearRect(0,0,P.width,P.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,P.width,P.height)));for(var b=0,E=0;E<m.length;++E)b+=m[E];if(b<=0)return;for(var A=-T,R=0,k=0,D=0;A<_.height;){if(R%2===0){for(var O=k/2%y.length,$=0,U=0,q=0;$<_.width*2;){for(var H=0,E=0;E<g[D].length;++E)H+=g[D][E];if(H<=0)break;if(U%2===0){var N=(1-o.symbolSize)*.5,G=$+g[D][U]*N,j=A+m[R]*N,oe=g[D][U]*o.symbolSize,Y=m[R]*o.symbolSize,te=q/2%y[O].length;fe(G,j,oe,Y,y[O][te])}$+=g[D][U],++q,++U,U===g[D].length&&(U=0)}++D,D===g.length&&(D=0)}A+=m[R],++k,++R,R===m.length&&(R=0)}function fe(ye,xe,ce,ge,Ce){var se=i?1:r,he=Qi(Ce,ye*se,xe*se,ce*se,ge*se,o.color,o.symbolKeepAspect);if(i){var Ae=n.painter.renderOneToVNode(he);Ae&&x.children.push(Ae)}else JL(M,he)}}}}function Xb(t){if(!t||t.length===0)return[["rect"]];if(We(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!We(t[r])){e=!1;break}if(e)return Xb([t]);for(var n=[],r=0;r<t.length;++r)We(t[r])?n.push([t[r]]):n.push(t[r]);return n}function Yb(t){if(!t||t.length===0)return[[0,0]];if(Et(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Et(t[n])){r=!1;break}if(r)return Yb([t]);for(var i=[],n=0;n<t.length;++n)if(Et(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=ke(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function ek(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Et(t)){var e=Math.ceil(t);return[e,e]}var r=ke(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function tk(t){return ke(t,function(e){return Zb(e)})}function Zb(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function rk(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Jh(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Jh(i,e)}}})}var In=new yi,Qb={};function nk(t,e){Qb[t]=e}function ik(t){return Qb[t]}var ak=1,ok=800,sk=900,lk=1e3,uk=2e3,ck=5e3,Jb=1e3,fk=1100,mp=2e3,qb=3e3,dk=4e3,tf=4500,hk=4600,vk=5e3,pk=6e3,ex=7e3,gk={PROCESSOR:{FILTER:lk,SERIES_FILTER:ok,STATISTIC:ck},VISUAL:{LAYOUT:Jb,PROGRESSIVE_LAYOUT:fk,GLOBAL:mp,CHART:qb,POST_CHART_LAYOUT:hk,COMPONENT:dk,BRUSH:vk,CHART_ITEM:tf,ARIA:pk,DECAL:ex}},cr="__flagInMainProcess",Er="__pendingUpdate",xd="__needsUpdateStatus",Fy=/^[a-zA-Z0-9_]+$/,Cd="__connectUpdateStatus",$y=0,mk=1,yk=2;function tx(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return nx(this,t,e)}}function rx(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return nx(this,t,e)}}function nx(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),yi.prototype[e].apply(t,r)}var ix=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(yi),ax=ix.prototype;ax.on=rx("on");ax.off=rx("off");var io,wd,nu,_i,Td,Id,_d,Jo,qo,zy,Uy,Ad,Hy,iu,Vy,ox,tn,Gy,sx=function(t){De(e,t);function e(r,n,i){var a=t.call(this,new CL)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},We(n)&&(n=lx[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&HE(function(d){var h=Rt(d),v=h.dataIndex;if(v!=null){var p=it();return p.set("series_index",h.seriesIndex),p.set("data_index",v),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=a._zr=Qg(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ze(i.useDirtyRect,l),useCoarsePointer:Ze(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Bb(jt(u.flush,u),17),n=pt(n),n&&wb(n,!0),a._theme=n,a._locale=$R(i.locale||nb),a._coordSysMgr=new fp;var f=a._api=Vy(a);function c(d,h){return d.__prio-h.__prio}return Iu(pc,c),Iu(qh,c),a._scheduler=new $b(a,f,qh,pc),a._messageCenter=new ix,a._initEvents(),a.resize=jt(a.resize,a),u.animation.on("frame",a._onframe,a),zy(u,a),Uy(u,a),hh(a),a}return e.prototype._onframe=function(){if(!this._disposed){Gy(this);var r=this._scheduler;if(this[Er]){var n=this[Er].silent;this[cr]=!0;try{io(this),_i.update.call(this,null,this[Er].updateParams)}catch(l){throw this[cr]=!1,this[Er]=null,l}this._zr.flush(),this[cr]=!1,this[Er]=null,Jo.call(this,n),qo.call(this,n)}else if(r.unfinished){var i=ak,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Id(this,a),r.performVisualTasks(a),iu(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[cr]){if(this._disposed){this.id;return}var a,o,s;if(Ye(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[cr]=!0,!this._model||n){var l=new hD(this._api),u=this._theme,f=this._model=new cp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ev);var c={seriesTransition:s,optionChanged:!0};if(i)this[Er]={silent:a,updateParams:c},this[cr]=!1,this.getZr().wakeUp();else{try{io(this),_i.update.call(this,null,c)}catch(d){throw this[Er]=null,this[cr]=!1,d}this._ssr||this._zr.flush(),this[Er]=null,this[cr]=!1,Jo.call(this,a),qo.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(xt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return ee(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;ee(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return ee(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Wy[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();ee(Os,function(S,T){if(S.group===i){var P=n?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(pt(r)),x=S.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),c=o(x.bottom,c),d.push({dom:P,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,p=c-u,g=dl.createCanvas(),m=Qg(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return ee(d,function(S){var T=S.left-l,P=S.top-u;y+='<g transform="translate('+T+","+P+')">'+S.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Qt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),ee(d,function(S){var T=new Rn({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});m.add(T)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return Td(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return Td(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Xf(i,r);return ee(o,function(s,l){l.indexOf("Models")>=0&&ee(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Xf(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?IL(s,l,n):_L(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;ee(Sk,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&tu(s,function(v){var p=Rt(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Ie({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var d=f&&c!=null&&o.getComponent(f,c),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),ee(ks,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),ee(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),EL(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&mS(this.getDom(),Sp,"");var n=this,i=n._api,a=n._model;ee(n._componentsViews,function(o){o.dispose(a,i)}),ee(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Os[n.id]},e.prototype.resize=function(r){if(!this[cr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Er]&&(a==null&&(a=this[Er].silent),i=!0,this[Er]=null),this[cr]=!0;try{i&&io(this),_i.update.call(this,{type:"resize",animation:Ie({duration:0},r&&r.animation)})}catch(o){throw this[cr]=!1,o}this[cr]=!1,Jo.call(this,a),qo.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ye(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!tv[r]){var i=tv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=Ie({},r);return n.type=ks[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ye(n)||(n={silent:!!n}),!!vc[r.type]&&this._model){if(this[cr]){this._pendingActions.push(r);return}var i=n.silent;_d.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&xt.browser.weChat&&this._throttledZrFlush(),Jo.call(this,i),qo.call(this,i)}},e.prototype.updateLabelLayout=function(){In.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){io=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),wd(c,!0),wd(c,!1),d.plan()},wd=function(c,d){for(var h=c._model,v=c._scheduler,p=d?c._componentsViews:c._chartsViews,g=d?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,S=0;S<p.length;S++)p[S].__alive=!1;d?h.eachComponent(function(x,_){x!=="series"&&T(_)}):h.eachSeries(T);function T(x){var _=x.__requireNewView;x.__requireNewView=!1;var M="_ec_"+x.id+"_"+x.type,C=!_&&g[M];if(!C){var w=jn(x.type),b=d?mi.getClass(w.main,w.sub):Br.getClass(w.sub);C=new b,C.init(h,y),g[M]=C,p.push(C),m.add(C.group)}x.__viewId=C.__id=M,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!d&&v.prepareView(C,x,h,y)}for(var S=0;S<p.length;){var P=p[S];P.__alive?S++:(!d&&P.renderTask.dispose(),m.remove(P.group),P.dispose(h,y),p.splice(S,1),g[P.__id]===P&&delete g[P.__id],P.__id=P.group.__ecComponentInfo=null)}},nu=function(c,d,h,v,p){var g=c._model;if(g.setUpdatePayload(h),!v){ee([].concat(c._componentsViews).concat(c._chartsViews),P);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var y={mainType:v,query:m};p&&(y.subType=p);var S=h.excludeSeriesId,T;S!=null&&(T=it(),ee(Ir(S),function(x){var _=Xn(x,null);_!=null&&T.set(_,!0)})),g&&g.eachComponent(y,function(x){var _=T&&T.get(x.id)!=null;if(!_)if(_m(h))if(x instanceof Jr)h.type===Fa&&!h.notBlur&&!x.get(["emphasis","disabled"])&&bM(x,h,c._api);else{var M=Zv(x.mainType,x.componentIndex,h.name,c._api),C=M.focusSelf,w=M.dispatchers;h.type===Fa&&C&&!h.notBlur&&Fh(x.mainType,x.componentIndex,c._api),w&&ee(w,function(b){h.type===Fa?rc(b):nc(b)})}else Uh(h)&&x instanceof Jr&&(wM(x,h,c._api),Tm(x),tn(c))},c),g&&g.eachComponent(y,function(x){var _=T&&T.get(x.id)!=null;_||P(c[v==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function P(x){x&&x.__alive&&x[d]&&x[d](x.__model,g,c._api,h)}},_i={prepareAndUpdate:function(c){io(this),_i.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,c),Id(this,h),g.update(h,v),r(h),m.performVisualTasks(h,c),Ad(this,h,v,c,d);var y=h.get("backgroundColor")||"transparent",S=h.get("darkMode");p.setBackgroundColor(y),S!=null&&S!=="auto"&&p.setDarkMode(S),In.trigger("afterupdate",h,v)}},updateTransform:function(c){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var S=d.getViewOfComponentModel(y);if(S&&S.__alive)if(S.updateTransform){var T=S.updateTransform(y,h,v,c);T&&T.update&&p.push(S)}else p.push(S)}});var g=it();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var S=y.updateTransform(m,h,v,c);S&&S.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),iu(this,h,v,c,{},g),In.trigger("afterupdate",h,v)}},updateView:function(c){var d=this._model;d&&(d.setUpdatePayload(c),Br.markUpdateMethod(c,"updateView"),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0}),Ad(this,d,this._api,c,{}),In.trigger("afterupdate",d,this._api))},updateVisual:function(c){var d=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),Br.markUpdateMethod(c,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,c)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,c)}),In.trigger("afterupdate",h,this._api))},updateLayout:function(c){_i.update.call(this,c)}},Td=function(c,d,h,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,y=Xf(p,h),S=0;S<g.length;S++){var T=g[S];if(T[d]&&(m=T[d](p,y,v))!=null)return m}},Id=function(c,d){var h=c._chartsMap,v=c._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},_d=function(c,d){var h=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=vc[p],y=m.actionInfo,S=(y.update||"update").split(":"),T=S.pop(),P=S[0]!=null&&jn(S[0]);this[cr]=!0;var x=[c],_=!1;c.batch&&(_=!0,x=ke(c.batch,function(R){return R=dt(Ie({},R),c),R.batch=null,R}));var M=[],C,w=Uh(c),b=_m(c);if(b&&NS(this._api),ee(x,function(R){if(C=m.action(R,h._model,h._api),C=C||Ie({},R),C.type=y.event||C.type,M.push(C),b){var k=gS(c),D=k.queryOptionMap,O=k.mainTypeSpecified,$=O?D.keys()[0]:"series";nu(h,T,R,$),tn(h)}else w?(nu(h,T,R,"series"),tn(h)):P&&nu(h,T,R,P.main,P.sub)}),T!=="none"&&!b&&!w&&!P)try{this[Er]?(io(this),_i.update.call(this,c),this[Er]=null):_i[T].call(this,c)}catch(R){throw this[cr]=!1,R}if(_?C={type:y.event||p,escapeConnect:g,batch:M}:C=M[0],this[cr]=!1,!d){var E=this._messageCenter;if(E.trigger(C.type,C),w){var A={type:"selectchanged",escapeConnect:g,selected:TM(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};E.trigger(A.type,A)}}},Jo=function(c){for(var d=this._pendingActions;d.length;){var h=d.shift();_d.call(this,h,c)}},qo=function(c){!c&&this.trigger("updated")},zy=function(c,d){c.on("rendered",function(h){d.trigger("rendered",h),c.animation.isFinished()&&!d[Er]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Uy=function(c,d){c.on("mouseover",function(h){var v=h.target,p=tu(v,zh);p&&(xM(p,h,d._api),tn(d))}).on("mouseout",function(h){var v=h.target,p=tu(v,zh);p&&(CM(p,h,d._api),tn(d))}).on("click",function(h){var v=h.target,p=tu(v,function(y){return Rt(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Rt(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(d){d.clearColorPalette()})}function n(c){var d=[],h=[],v=!1;if(c.eachComponent(function(y,S){var T=S.get("zlevel")||0,P=S.get("z")||0,x=S.getZLevelKey();v=v||!!x,(y==="series"?h:d).push({zlevel:T,z:P,idx:S.componentIndex,type:y,key:x})}),v){var p=d.concat(h),g,m;Iu(p,function(y,S){return y.zlevel===S.zlevel?y.z-S.z:y.zlevel-S.zlevel}),ee(p,function(y){var S=c.getComponent(y.type,y.idx),T=y.zlevel,P=y.key;g!=null&&(T=Math.max(g,T)),P?(T===g&&P!==m&&T++,m=P):m&&(T===g&&T++,m=""),g=T,S.setZLevel(T)})}}Ad=function(c,d,h,v,p){n(d),Hy(c,d,h,v,p),ee(c._chartsViews,function(g){g.__alive=!1}),iu(c,d,h,v,p),ee(c._chartsViews,function(g){g.__alive||g.remove(d,h)})},Hy=function(c,d,h,v,p,g){ee(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),f(y,m)})},iu=function(c,d,h,v,p,g){var m=c._scheduler;p=Ie(p||{},{updatedSeries:d.getSeries()}),In.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(S){var T=c._chartsMap[S.__viewId];T.__alive=!0;var P=T.renderTask;m.updatePayload(P,v),u(S,T),g&&g.get(S.uid)&&P.dirty(),P.perform(m.getPerformArgs(P))&&(y=!0),T.group.silent=!!S.get("silent"),o(S,T),Tm(S)}),m.unfinished=y||m.unfinished,In.trigger("series:layoutlabels",d,h,p),In.trigger("series:transition",d,h,p),d.eachSeries(function(S){var T=c._chartsMap[S.__viewId];s(S,T),f(S,T)}),a(c,d),In.trigger("series:afterupdate",d,h,p)},tn=function(c){c[xd]=!0,c.getZr().wakeUp()},Gy=function(c){c[xd]&&(c.getZr().storage.traverse(function(d){Ms(d)||i(d)}),c[xd]=!1)};function i(c){for(var d=[],h=c.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}c.selected&&c.states.select&&d.push("select"),c.hoverState===zc&&c.states.emphasis?d.push("emphasis"):c.hoverState===$c&&c.states.blur&&d.push("blur"),c.useStates(d)}function a(c,d){var h=c._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!xt.node&&!xt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,d){var h=c.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(c,d){if(!c.preventAutoZ){var h=c.get("z")||0,v=c.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(c,d,h,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),S=0;S<y.length;S++)v=Math.max(l(y[S],d,h,v),v);else c.z=d,c.zlevel=h,v=Math.max(c.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var T=c.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(T&&T.showAbove?1:-1))}return v}function u(c,d){d.eachRendered(function(h){if(!Ms(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,d){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ms(m))return;if(m instanceof yt&&PM(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var S=m.getTextContent(),T=m.getTextGuideLine();S&&(S.stateTransition=g),T&&(T.stateTransition=g)}m.__dirty&&i(m)}})}Vy=function(c){return new(function(d){De(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){rc(v,p),tn(c)},h.prototype.leaveEmphasis=function(v,p){nc(v,p),tn(c)},h.prototype.enterBlur=function(v){SM(v),tn(c)},h.prototype.leaveBlur=function(v){LS(v),tn(c)},h.prototype.enterSelect=function(v){kS(v),tn(c)},h.prototype.leaveSelect=function(v){OS(v),tn(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h}(xb))(c)},ox=function(c){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Cd]=v}}ee(ks,function(h,v){c._messageCenter.on(v,function(p){if(Wy[c.group]&&c[Cd]!==$y){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];ee(Os,function(y){y!==c&&y.group===c.group&&m.push(y)}),d(m,$y),ee(m,function(y){y[Cd]!==mk&&y.dispatchAction(g)}),d(m,yk)}})})}}(),e}(yi),yp=sx.prototype;yp.on=tx("on");yp.off=tx("off");yp.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var Sk=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var vc={},ks={},qh=[],ev=[],pc=[],lx={},tv={},Os={},Wy={},bk=+new Date-0,Sp="_echarts_instance_";function xk(t,e,r){var n=!(r&&r.ssr);if(n){var i=Ck(t);if(i)return i}var a=new sx(t,e,r);return a.id="ec_"+bk++,Os[a.id]=a,n&&mS(t,Sp,a.id),ox(a),In.trigger("afterinit",a),a}function Ck(t){return Os[fP(t,Sp)]}function ux(t,e){lx[t]=e}function cx(t){Mt(ev,t)<0&&ev.push(t)}function fx(t,e){xp(qh,t,e,uk)}function wk(t){bp("afterinit",t)}function Tk(t){bp("afterupdate",t)}function bp(t,e){In.on(t,e)}function No(t,e,r){nt(e)&&(r=e,e="");var n=Ye(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!ks[e]&&(Zn(Fy.test(n)&&Fy.test(e)),vc[n]||(vc[n]={action:r,actionInfo:t}),ks[e]=n)}function Ik(t,e){fp.register(t,e)}function _k(t,e){xp(pc,t,e,Jb,"layout")}function Ga(t,e){xp(pc,t,e,qb,"visual")}var jy=[];function xp(t,e,r,n,i){if((nt(e)||Ye(e))&&(r=e,e=n),!(Mt(jy,r)>=0)){jy.push(r);var a=$b.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function dx(t,e){tv[t]=e}function Ak(t,e,r){var n=ik("registerMap");n&&n(t,e,r)}var Ek=HD;Ga(mp,lL);Ga(tf,uL);Ga(tf,cL);Ga(mp,wL);Ga(tf,TL);Ga(ex,rk);cx(wb);fx(sk,ID);dx("default",fL);No({type:Fa,event:Fa,update:Fa},Yr);No({type:Ru,event:Ru,update:Ru},Yr);No({type:As,event:As,update:As},Yr);No({type:Du,event:Du,update:Du},Yr);No({type:Es,event:Es,update:Es},Yr);ux("light",xL);ux("dark",Vb);function es(t){return t==null?0:t.length||1}function Ky(t){return t}var Pk=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Ky,this._newKeyGetter=i||Ky,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=es(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=es(u),d=es(f);if(c>1&&d===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&d===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=es(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=es(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),Mk=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Rk(t,e){var r={},n=r.encode={},i=it(),a=[],o=[],s={};ee(t.dimensions,function(d){var h=t.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;Ed(n,v)[p]=d,h.isExtraCoord||(i.set(v,1),Lk(h.type)&&(a[0]=d),Ed(s,v)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}gb.each(function(g,m){var y=Ed(n,m),S=h.otherDims[m];S!=null&&S!==!1&&(y[S]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ke(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new Mk(s,e),r}function Ed(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Dk(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Lk(t){return!(t==="ordinal"||t==="time")}var Bu=function(){function t(e){this.otherDims={},e!=null&&Ie(this,e)}return t}(),kk=qt(),Ok={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},hx=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=gx(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Ze(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=_b(this.source),n=!mx(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Ok[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function vx(t){return t instanceof hx}function px(t){for(var e=it(),r=0;r<(t||[]).length;r++){var n=t[r],i=Ye(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function gx(t){var e=kk(t);return e.dimNameMap||(e.dimNameMap=px(t.dimensionsDefine))}function mx(t){return t>30}var ts=Ye,Ai=ke,Bk=typeof Int32Array>"u"?Array:Int32Array,Nk="e\0\0",Xy=-1,Fk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$k=["_approximateExtent"],Yy,au,rs,ns,Pd,ou,Md,yx=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;vx(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],d=We(c)?new Bu({name:c}):c instanceof Bu?c:new Bu(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(d.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=it();ee(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Et(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof Kh&&(a=e),!a){var o=this.dimensions,s=dp(e)||Fr(e)?new Ab(e,o.length):e;a=new Kh;var l=Ai(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Rk(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Md(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Vi&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===gn;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&eP(c)&&(this.hasItemOption=!0),c){var d=c.name;a[f]==null&&d!=null&&(a[f]=Xn(d,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Xn(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Md(this,f);Yy(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){ts(e)?Ie(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=rs(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return au(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return $e(e)?i.getValues(Ai(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n[r];return i==null||isNaN(i)?Xy:i},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){nt(e)&&(n=r,r=e,e=[]);var i=n||this,a=Ai(ns(e),this._getStoreDimIndex,this);this._store.each(a,i?jt(r,i):r)},t.prototype.filterSelf=function(e,r,n){nt(e)&&(n=r,r=e,e=[]);var i=n||this,a=Ai(ns(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?jt(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=gt(e);return ee(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){nt(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Ai(ns(e),this._getStoreDimIndex,this),s=ou(this);return s._store=this._store.map(o,a?jt(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Ai(ns(e),this._getStoreDimIndex,this);this._store.modify(o,a?jt(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=ou(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.lttbDownSample=function(e,r){var n=ou(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Jt(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new Pk(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return au(e,n)},function(n){return au(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ts(e)?Ie(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),$e(a)?a=a.slice():ts(a)&&(a=Ie({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ts(r)?Ie(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ts(e)?Ie(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?Ie(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;uM(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){ee(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Ai(this.dimensions,this._getDimInfo,this),this.hostModel)),Pd(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];nt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ov(arguments)))})},t.internalField=function(){Yy=function(e){var r=e._invertedIndicesMap;ee(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new Bk(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Xy;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},rs=function(e,r,n){return Xn(e._getCategory(r,n),null)},au=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=rs(e,e._idDimIdx,r)),n==null&&(n=Nk+r),n},ns=function(e){return $e(e)||(e=e!=null?[e]:[]),e},ou=function(e){var r=new t(e._schema?e._schema:Ai(e.dimensions,e._getDimInfo,e),e.hostModel);return Pd(r,e),r},Pd=function(e,r){ee(Fk.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,ee($k,function(n){e[n]=pt(r[n])}),e._calculationInfo=Ie({},r._calculationInfo)},Md=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=rs(e,a,r)),l==null&&o!=null&&(i[r]=l=rs(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),t}();function Sx(t,e){dp(t)||(t=Tb(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=it(),a=[],o=Uk(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&mx(o),l=n===t.dimensionsDefine,u=l?gx(t):px(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=it(f),d=new Db(o),h=0;h<d.length;h++)d[h]=-1;function v(C){var w=d[C];if(w<0){var b=n[C],E=Ye(b)?b:{name:b},A=new Bu,R=E.name;R!=null&&u.get(R)!=null&&(A.name=A.displayName=R),E.type!=null&&(A.type=E.type),E.displayName!=null&&(A.displayName=E.displayName);var k=a.length;return d[C]=k,A.storeDimIndex=C,a.push(A),A}return a[w]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(C,w){var b=Ir(C).slice();if(b.length===1&&!We(b[0])&&b[0]<0){c.set(w,!1);return}var E=c.set(w,[]);ee(b,function(A,R){var k=We(A)?u.get(A):A;k!=null&&k<o&&(E[R]=k,g(v(k),w,R))})});var p=0;ee(r,function(C){var w,b,E,A;if(We(C))w=C,A={};else{A=C,w=A.name;var R=A.ordinalMeta;A.ordinalMeta=null,A=Ie({},A),A.ordinalMeta=R,b=A.dimsDef,E=A.otherDims,A.name=A.coordDim=A.coordDimIndex=A.dimsDef=A.otherDims=null}var k=c.get(w);if(k!==!1){if(k=Ir(k),!k.length)for(var D=0;D<(b&&b.length||1);D++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&k.push(p++)}ee(k,function(O,$){var U=v(O);if(l&&A.type!=null&&(U.type=A.type),g(dt(U,A),w,$),U.name==null&&b){var q=b[$];!Ye(q)&&(q={name:q}),U.name=U.displayName=q.name,U.defaultTooltip=q.defaultTooltip}E&&dt(U.otherDims,E)})}});function g(C,w,b){gb.get(w)!=null?C.otherDims[w]=b:(C.coordDim=w,C.coordDimIndex=b,i.set(w,!0))}var m=e.generateCoord,y=e.generateCoordCount,S=y!=null;y=m?y||1:0;var T=m||"value";function P(C){C.name==null&&(C.name=C.coordDim)}if(s)ee(a,function(C){P(C)}),a.sort(function(C,w){return C.storeDimIndex-w.storeDimIndex});else for(var x=0;x<o;x++){var _=v(x),M=_.coordDim;M==null&&(_.coordDim=Hk(T,i,S),_.coordDimIndex=0,(!m||y<=0)&&(_.isExtraCoord=!0),y--),P(_),_.type==null&&(Sb(t,x)===nr.Must||_.isExtraCoord&&(_.otherDims.itemName!=null||_.otherDims.seriesName!=null))&&(_.type="ordinal")}return zk(a),new hx({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function zk(t){for(var e=it(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function Uk(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return ee(e,function(a){var o;Ye(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Hk(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Vk=function(){function t(e){this.coordSysDims=[],this.axisMap=it(),this.categoryAxisMap=it(),this.coordSysName=e}return t}();function Gk(t){var e=t.get("coordinateSystem"),r=new Vk(e),n=Wk[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var Wk={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",En).models[0],a=t.getReferringComponents("yAxis",En).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ao(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),ao(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",En).models[0];e.coordSysDims=["single"],r.set("single",i),ao(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",En).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ao(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),ao(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();ee(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),ao(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function ao(t){return t.get("type")==="category"}function jk(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Kk(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,d;if(ee(a,function(y,S){We(y)&&(a[S]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,p=0;ee(a,function(y){y.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:c}}function Kk(t){return!vx(t.schema)}function Ro(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Xk(t,e){return Ro(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Yk(t,e){var r=t.get("coordinateSystem"),n=fp.get(r),i;return e&&e.coordSysDims&&(i=ke(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=Dk(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Zk(t,e,r){var n,i;return r&&ee(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function rf(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===gn;var o=Gk(e),s=Yk(e,o),l=r.useEncodeDefaulter,u=nt(l)?l:l?Xr(eD,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Sx(i,f),d=Zk(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=jk(e,{schema:c,store:h}),p=new yx(c,e);p.setCalculationInfo(v);var g=d!=null&&Qk(i)?function(m,y,S,T){return T===d?S:this.defaultDimValueGetter(m,y,S,T)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function Qk(t){if(t.sourceFormat===gn){var e=Jk(t.data||[]);return!$e(pl(e))}}function Jk(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var ti=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var r=this._extent;e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();Bc(ti);var qk=0,rv=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++qk}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&ke(n,eO);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!We(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=it(this.categories))},t}();function eO(t){return Ye(t)&&t.value!=null?t.value:t+""}function nv(t){return t.type==="interval"||t.type==="log"}function tO(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=dS(a/e);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=bx(o),l=i.niceTickExtent=[Vt(Math.ceil(t[0]/o)*o,s),Vt(Math.floor(t[1]/o)*o,s)];return rO(l,t),i}function Rd(t){var e=Math.pow(10,Vv(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Vt(r*e)}function bx(t){return ci(t)+2}function Zy(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function rO(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Zy(t,0,e),Zy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function nf(t,e){return t>=e[0]&&t<=e[1]}function af(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function of(t,e){return t*(e[1]-e[0])+e[0]}var Cp=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new rv({})),$e(i)&&(i=new rv({categories:ke(i,function(a){return Ye(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:We(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),nf(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),af(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(of(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(ti);ti.registerClass(Cp);var Aa=Vt,Ji=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return nf(r,this._extent)},e.prototype.normalize=function(r){return af(r,this._extent)},e.prototype.scale=function(r){return of(r,this._extent)},e.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=bx(r)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Aa(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Aa(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Aa(f+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,d=c/r;u<r-1;){var h=Aa(l.value+(u+1)*d);h>a[0]&&h<a[1]&&f.push(h),u++}i.push(f)}return i},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ci(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Aa(r.value,i,!0);return jR(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=tO(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Aa(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Aa(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(ti);ti.registerClass(Ji);var xx=typeof Float32Array<"u",nO=xx?Float32Array:Array;function fi(t){return $e(t)?xx?new Float32Array(t):t:new nO(t)}var iO="__ec_stack_";function wp(t){return t.get("stack")||iO+t.seriesIndex}function Tp(t){return t.dim+t.index}function Cx(t,e){var r=[];return e.eachSeriesByType(t,function(n){Ix(n)&&r.push(n)}),r}function aO(t){var e={};ee(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),d=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),v=c.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);e[d]?e[d].push(m):e[d]=[m]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function Tx(t){var e=aO(t),r=[];return ee(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?f/d*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=At(n.get("barWidth"),s),p=At(n.get("barMaxWidth"),s),g=At(n.get("barMinWidth")||(_x(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Tp(a),stackId:wp(n)})}),oO(r)}function oO(t){var e={};ee(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return ee(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=gt(a).length;s=Math.max(35-l*4,15)+"%"}var u=At(s,o),f=At(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),ee(a,function(m){var y=m.maxWidth,S=m.minWidth;if(m.width){var T=m.width;y&&(T=Math.min(T,y)),S&&(T=Math.max(T,S)),m.width=T,c-=T+f*T,d--}else{var T=h;y&&y<T&&(T=Math.min(y,c)),S&&S>T&&(T=S),T!==h&&(m.width=T,c-=T+f*T,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,p;ee(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+f)}),p&&(v-=p.width*f);var g=-v/2;ee(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function sO(t,e,r){if(t&&e){var n=t[Tp(e)];return n!=null&&r!=null?n[wp(r)]:n}}function lO(t,e){var r=Cx(t,e),n=Tx(r);ee(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=wp(i),u=n[Tp(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function uO(t){return{seriesType:t,plan:pp(),reset:function(e){if(Ix(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ro(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=cO(i,a),v=_x(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(S,T){for(var P=S.count,x=v&&fi(P*3),_=v&&l&&fi(P*3),M=v&&fi(P),C=n.master.getRect(),w=d?C.width:C.height,b,E=T.getStore(),A=0;(b=S.next())!=null;){var R=E.get(c?g:o,b),k=E.get(s,b),D=h,O=void 0;c&&(O=+R-E.get(o,b));var $=void 0,U=void 0,q=void 0,H=void 0;if(d){var N=n.dataToPoint([R,k]);if(c){var G=n.dataToPoint([O,k]);D=G[0]}$=D,U=N[1]+y,q=N[0]-D,H=m,Math.abs(q)<p&&(q=(q<0?-1:1)*p)}else{var N=n.dataToPoint([k,R]);if(c){var G=n.dataToPoint([k,O]);D=G[1]}$=N[0]+y,U=D,q=m,H=N[1]-D,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}v?(x[A]=$,x[A+1]=U,x[A+2]=d?q:H,_&&(_[A]=d?C.x:$,_[A+1]=d?U:C.y,_[A+2]=w),M[b]=b):T.setItemLayout(b,{x:$,y:U,width:q,height:H}),A+=3}v&&T.setLayout({largePoints:x,largeDataIndices:M,largeBackgroundPoints:_,valueAxisHorizontal:d})}}}}}}function Ix(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function _x(t){return t.pipelineContext&&t.pipelineContext.large}function cO(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var fO=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},Ax=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return ob(r.value,Vm[VR(To(this._minLevelUnit))]||Vm.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return GR(r,n,i,o,a)},e.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=yO(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},e.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=fn,n[1]+=fn),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-fn}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=su.length,l=Math.min(fO(su,this._approxInterval,0,s),s-1);this._interval=su[l][1],this._minLevelUnit=su[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Et(r)?r:+Xi(r)},e.prototype.contain=function(r){return nf(this.parse(r),this._extent)},e.prototype.normalize=function(r){return af(this.parse(r),this._extent)},e.prototype.scale=function(r){return of(r,this._extent)},e.type="time",e}(Ji),su=[["second",ip],["minute",ap],["hour",Rs],["quarter-day",Rs*6],["half-day",Rs*12],["day",fn*1.2],["half-week",fn*3.5],["week",fn*7],["month",fn*31],["quarter",fn*95],["half-year",Hm/2],["year",Hm]];function dO(t,e,r,n){var i=Xi(e),a=Xi(r),o=function(v){return Gm(i,v,n)===Gm(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},d=function(){return c()&&o("second")},h=function(){return d()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return d();case"millisecond":return h()}}function hO(t,e){return t/=fn,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function vO(t){var e=30*fn;return t/=e,t>6?6:t>3?3:t>2?2:1}function pO(t){return t/=Rs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Qy(t,e){return t/=e?ap:ip,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function gO(t){return dS(t)}function mO(t,e,r){var n=new Date(t);switch(To(e)){case"year":case"month":n[lb(r)](0);case"day":n[ub(r)](1);case"hour":n[cb(r)](0);case"minute":n[fb(r)](0);case"second":n[db(r)](0),n[hb(r)](0)}return n.getTime()}function yO(t,e,r,n){var i=1e4,a=ab,o=0;function s(w,b,E,A,R,k,D){for(var O=new Date(b),$=b,U=O[A]();$<E&&$<=n[1];)D.push({value:$}),U+=w,O[R](U),$=O.getTime();D.push({value:$,notAdd:!0})}function l(w,b,E){var A=[],R=!b.length;if(!dO(To(w),n[0],n[1],r)){R&&(b=[{value:mO(new Date(n[0]),w,r)},{value:n[1]}]);for(var k=0;k<b.length-1;k++){var D=b[k].value,O=b[k+1].value;if(D!==O){var $=void 0,U=void 0,q=void 0,H=!1;switch(w){case"year":$=Math.max(1,Math.round(e/fn/365)),U=op(r),q=WR(r);break;case"half-year":case"quarter":case"month":$=vO(e),U=Io(r),q=lb(r);break;case"week":case"half-week":case"day":$=hO(e),U=Xc(r),q=ub(r),H=!0;break;case"half-day":case"quarter-day":case"hour":$=pO(e),U=qs(r),q=cb(r);break;case"minute":$=Qy(e,!0),U=Yc(r),q=fb(r);break;case"second":$=Qy(e,!1),U=Zc(r),q=db(r);break;case"millisecond":$=gO(e),U=Qc(r),q=hb(r);break}s($,D,O,U,q,H,A),w==="year"&&E.length>1&&k===0&&E.unshift({value:E[0].value-$})}}for(var k=0;k<A.length;k++)E.push(A[k]);return A}}for(var u=[],f=[],c=0,d=0,h=0;h<a.length&&o++<i;++h){var v=To(a[h]);if(HR(a[h])){l(a[h],u[u.length-1]||[],f);var p=a[h+1]?To(a[h+1]):null;if(v!==p){if(f.length){d=c,f.sort(function(w,b){return w.value-b.value});for(var g=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(g.push(f[m]),y>=n[0]&&y<=n[1]&&c++)}var S=(n[1]-n[0])/e;if(c>S*1.5&&d>S/1.5||(u.push(g),c>S||t===a[h]))break}f=[]}}}for(var T=vr(ke(u,function(w){return vr(w,function(b){return b.value>=n[0]&&b.value<=n[1]&&!b.notAdd})}),function(w){return w.length>0}),P=[],x=T.length-1,h=0;h<T.length;++h)for(var _=T[h],M=0;M<_.length;++M)P.push({value:_[M].value,level:x-h});P.sort(function(w,b){return w.value-b.value});for(var C=[],h=0;h<P.length;++h)(h===0||P[h].value!==P[h-1].value)&&C.push(P[h]);return C}ti.registerClass(Ax);var Jy=ti.prototype,Bs=Ji.prototype,SO=Vt,bO=Math.floor,xO=Math.ceil,lu=Math.pow,Sn=Math.log,Ip=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ji,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Bs.getTicks.call(this,r);return ke(o,function(s){var l=s.value,u=Vt(lu(this.base,l));return u=l===i[0]&&this._fixMin?uu(u,a[0]):u,u=l===i[1]&&this._fixMax?uu(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(r,n){var i=Sn(this.base);r=Sn(Math.max(0,r))/i,n=Sn(Math.max(0,n))/i,Bs.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=Jy.getExtent.call(this);n[0]=lu(r,n[0]),n[1]=lu(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=uu(n[0],a[0])),this._fixMax&&(n[1]=uu(n[1],a[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Sn(r[0])/Sn(n),r[1]=Sn(r[1])/Sn(n),Jy.unionExtent.call(this,r)},e.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=YE(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Vt(xO(n[0]/a)*a),Vt(bO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Bs.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.parse=function(r){return r},e.prototype.contain=function(r){return r=Sn(r)/Sn(this.base),nf(r,this._extent)},e.prototype.normalize=function(r){return r=Sn(r)/Sn(this.base),af(r,this._extent)},e.prototype.scale=function(r){return r=of(r,this._extent),lu(this.base,r)},e.type="log",e}(ti),Ex=Ip.prototype;Ex.getMinorTicks=Bs.getMinorTicks;Ex.getLabel=Bs.getLabel;function uu(t,e){return SO(t,ci(e))}ti.registerClass(Ip);var CO=function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;nt(o)?this._modelMinNum=cu(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=cu(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(nt(s)?this._modelMaxNum=cu(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=cu(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=$e(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ki(u[0],1),Ki(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Wu(s)||Wu(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[TO[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=wO[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),wO={min:"_determinedMin",max:"_determinedMax"},TO={min:"_dataMin",max:"_dataMax"};function IO(t,e,r){var n=t.rawExtentInfo;return n||(n=new CO(t,e,r),t.rawExtentInfo=n,n)}function cu(t,e){return e==null?null:Wu(e)?NaN:t.parse(e)}function Px(t,e){var r=t.type,n=IO(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=Cx("bar",o),l=!1;if(ee(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=Tx(s),f=_O(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function _O(t,e,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=sO(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;ee(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;ee(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,c=1-(s+l)/a,d=f/c-f;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function qy(t,e){var r=e,n=Px(t,r),i=n.extent,a=r.get("splitNumber");t instanceof Ip&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function AO(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Cp({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Ax({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ti.getClass(e)||Ji)}}function EO(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Fo(t){var e=t.getLabelModel().get("formatter"),r=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(n){return function(i,a){return t.scale.getFormattedLabel(i,a,n)}}(e):We(e)?function(n){return function(i){var a=t.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(e):nt(e)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(PO(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function PO(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function MO(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Cp?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=Fo(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},d=s(c,f),h=o.getTextRect(d),v=RO(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function RO(t,e){var r=e*Math.PI/180,n=t.width,i=t.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new It(t.x,t.y,a,o);return s}function _p(t){var e=t.get("interval");return e??"auto"}function Mx(t){return t.type==="category"&&_p(t.getLabelModel())===0}function DO(t,e){var r={};return ee(t.mapDimensionsAll(e),function(n){r[Xk(t,n)]=!0}),gt(r)}var Rx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),e0=[],LO={registerPreprocessor:cx,registerProcessor:fx,registerPostInit:wk,registerPostUpdate:Tk,registerUpdateLifecycle:bp,registerAction:No,registerCoordinateSystem:Ik,registerLayout:_k,registerVisual:Ga,registerTransform:Ek,registerLoading:dx,registerMap:Ak,registerImpl:nk,PRIORITY:gk,ComponentModel:Tt,ComponentView:mi,SeriesModel:Jr,ChartView:Br,registerComponentModel:function(t){Tt.registerClass(t)},registerComponentView:function(t){mi.registerClass(t)},registerSeriesModel:function(t){Jr.registerClass(t)},registerChartView:function(t){Br.registerClass(t)},registerSubTypeDefaulter:function(t,e){Tt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){zE(t,e)}};function Ha(t){if($e(t)){ee(t,function(e){Ha(e)});return}Mt(e0,t)>=0||(e0.push(t),nt(t)&&(t={install:t}),t.install(LO))}var al=qt();function Dx(t,e){var r=ke(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function kO(t){var e=t.getLabelModel().get("customValues");if(e){var r=Fo(t);return{labels:Dx(t,e).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:t.scale.getLabel(i),tickValue:n}})}}return t.type==="category"?BO(t):FO(t)}function OO(t,e){var r=t.getTickModel().get("customValues");return r?{ticks:Dx(t,r)}:t.type==="category"?NO(t,e):{ticks:ke(t.scale.getTicks(),function(n){return n.value})}}function BO(t){var e=t.getLabelModel(),r=Lx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Lx(t,e){var r=kx(t,"labels"),n=_p(e),i=Ox(r,n);if(i)return i;var a,o;return nt(n)?a=Fx(t,n):(o=n==="auto"?$O(t):n,a=Nx(t,o)),Bx(r,n,{labels:a,labelCategoryInterval:o})}function NO(t,e){var r=kx(t,"ticks"),n=_p(e),i=Ox(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),nt(n))a=Fx(t,n,!0);else if(n==="auto"){var s=Lx(t,t.getLabelModel());o=s.labelCategoryInterval,a=ke(s.labels,function(l){return l.tickValue})}else o=n,a=Nx(t,o,!0);return Bx(r,n,{ticks:a,tickCategoryInterval:o})}function FO(t){var e=t.scale.getTicks(),r=Fo(t);return{labels:ke(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function kx(t,e){return al(t)[e]||(al(t)[e]=[])}function Ox(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function Bx(t,e,r){return t.push({key:e,value:r}),r}function $O(t){var e=al(t).autoInterval;return e??(al(t).autoInterval=t.calculateCategoryInterval())}function zO(t){var e=UO(t),r=Fo(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=sS(r({value:l}),e.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/f,y=h/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var S=Math.max(0,Math.floor(Math.min(m,y))),T=al(t.model),P=t.getExtent(),x=T.lastAutoInterval,_=T.lastTickCount;return x!=null&&_!=null&&Math.abs(x-S)<=1&&Math.abs(_-o)<=1&&x>S&&T.axisExtent0===P[0]&&T.axisExtent1===P[1]?S=x:(T.lastTickCount=o,T.lastAutoInterval=S,T.axisExtent0=P[0],T.axisExtent1=P[1]),S}function UO(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Nx(t,e,r){var n=Fo(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Mx(t),d=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;d&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);h&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function Fx(t,e,r){var n=t.scale,i=Fo(t),a=[];return ee(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var t0=[0,1],$x=function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return WE(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),r0(n,i.count())),Dh(e,t0,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),r0(n,i.count()));var a=Dh(e,n,t0,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=OO(this,r),i=n.ticks,a=ke(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return HO(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=ke(n,function(a){return ke(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(){return kO(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return zO(this)},t}();function r0(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function HO(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;ee(e,function(h){h.coord-=u/2});var f=t.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var c=a[0]>a[1];d(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&d(a[0],e[0].coord)&&e.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&d(o.coord,a[1])&&e.push({coord:a[1]});function d(h,v){return h=Vt(h),v=Vt(v),c?h>v:h<v}}function zx(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,d=Math.sqrt(f*f+c*c);f/=d,c/=d;var h=l*f+u*c,v=h/d;v*=d;var p=o[0]=t+v*f,g=o[1]=e+v*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var Ni=new Je,$t=new Je,ir=new Je,Fi=new Je,Wn=new Je,gc=[],wr=new Je;function VO(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ni.fromArray(t[0]),$t.fromArray(t[1]),ir.fromArray(t[2]),Je.sub(Fi,Ni,$t),Je.sub(Wn,ir,$t);var r=Fi.len(),n=Wn.len();if(!(r<.001||n<.001)){Fi.scale(1/r),Wn.scale(1/n);var i=Fi.dot(Wn),a=Math.cos(e);if(a<i){var o=zx($t.x,$t.y,ir.x,ir.y,Ni.x,Ni.y,gc);wr.fromArray(gc),wr.scaleAndAdd(Wn,o/Math.tan(Math.PI-e));var s=ir.x!==$t.x?(wr.x-$t.x)/(ir.x-$t.x):(wr.y-$t.y)/(ir.y-$t.y);if(isNaN(s))return;s<0?Je.copy(wr,$t):s>1&&Je.copy(wr,ir),wr.toArray(t[1])}}}}function GO(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Ni.fromArray(t[0]),$t.fromArray(t[1]),ir.fromArray(t[2]),Je.sub(Fi,$t,Ni),Je.sub(Wn,ir,$t);var n=Fi.len(),i=Wn.len();if(!(n<.001||i<.001)){Fi.scale(1/n),Wn.scale(1/i);var a=Fi.dot(e),o=Math.cos(r);if(a<o){var s=zx($t.x,$t.y,ir.x,ir.y,Ni.x,Ni.y,gc);wr.fromArray(gc);var l=Math.PI/2,u=Math.acos(Wn.dot(e)),f=l+u-r;if(f>=l)Je.copy(wr,ir);else{wr.scaleAndAdd(Wn,s/Math.tan(Math.PI/2-f));var c=ir.x!==$t.x?(wr.x-$t.x)/(ir.x-$t.x):(wr.y-$t.y)/(ir.y-$t.y);if(isNaN(c))return;c<0?Je.copy(wr,$t):c>1&&Je.copy(wr,ir)}wr.toArray(t[1])}}}}function Dd(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function WO(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=ph(n[0],n[1]),a=ph(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Ef([],n[1],n[0],o/i),l=Ef([],n[1],n[2],o/a),u=Ef([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function jO(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<tc.length;l++){var u=tc[l],f=e[u],c=u==="normal";if(f){var d=f.get("show"),h=c?s:Ze(i.states[u]&&i.states[u].ignore,s);if(h||!Ze(d,o)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0),n&&Dd(n,!0,u,f);continue}n||(n=new Va,t.setTextGuideLine(n),!c&&(s||!o)&&Dd(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Dd(n,!1,u,f)}}if(n){dt(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=WO}}function KO(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<vn.length;n++){var i=vn[n];r[i]=t.getModel([i,e])}return r}function XO(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new ic(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function YO(t,e,r,n,i,a){var o=t.length;if(o<2)return;t.sort(function(M,C){return M.rect[e]-C.rect[e]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var d=t[c],h=d.rect;l=h[e]-s,l<0&&(h[e]-=l,d.label[e]-=l,u=!0);var v=Math.max(-l,0);f+=v,s=h[e]+h[r]}f>0&&a&&P(-f/o,0,o);var p=t[0],g=t[o-1],m,y;S(),m<0&&x(-m,.8),y<0&&x(y,.8),S(),T(m,y,1),T(y,m,-1),S(),m<0&&_(-m),y<0&&_(y);function S(){m=p.rect[e]-n,y=i-g.rect[e]-g.rect[r]}function T(M,C,w){if(M<0){var b=Math.min(C,-M);if(b>0){P(b*w,0,o);var E=b+M;E<0&&x(-E*w,1)}else x(-M*w,1)}}function P(M,C,w){M!==0&&(u=!0);for(var b=C;b<w;b++){var E=t[b],A=E.rect;A[e]+=M,E.label[e]+=M}}function x(M,C){for(var w=[],b=0,E=1;E<o;E++){var A=t[E-1].rect,R=Math.max(t[E].rect[e]-A[e]-A[r],0);w.push(R),b+=R}if(b){var k=Math.min(Math.abs(M)/b,C);if(M>0)for(var E=0;E<o-1;E++){var D=w[E]*k;P(D,0,E+1)}else for(var E=o-1;E>0;E--){var D=w[E-1]*k;P(-D,E,o)}}}function _(M){var C=M<0?-1:1;M=Math.abs(M);for(var w=Math.ceil(M/(o-1)),b=0;b<o-1;b++)if(C>0?P(w,0,b+1):P(-w,o-b-1,o),M-=w,M<=0)return}return u}function ZO(t,e,r,n){return YO(t,"y","height",e,r,n)}function QO(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new It(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<t.length;i++){var a=t[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,d=!1,h=0;h<e.length;h++){var v=e[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new ic(v.localRect,v.transform)),c||(c=new ic(s,l)),c.intersect(v.obb)){d=!0;break}}}d?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}var JO=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return rf(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new Yt,i=Qi("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Qi(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Jr);function Ap(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Mo(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Mo(t,e,r[o]));return a.join(" ")}}function Ux(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!$e(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var Ep=function(t){De(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Qi(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=qO,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){rc(this.childAt(0))},e.prototype.downplay=function(){nc(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?d.attr(h):yr(d,h,s,n),Zs(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Or(d,h,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,d,h,v,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,d=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),S=y.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),d=S.get("focus"),h=S.get("blurScope"),v=S.get("disabled"),p=Oo(y),g=S.getShallow("scale"),m=y.getShallow("cursor")}var T=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(T||0)*Math.PI/180||0);var P=Wb(r.getItemVisual(n,"symbolOffset"),i);P&&(s.x=P[0],s.y=P[1]),m&&s.attr("cursor",m);var x=r.getItemVisual(n,"style"),_=x.fill;if(s instanceof Rn){var M=s.style;s.useStyle(Ie({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},x))}else s.__isEmptyBrush?s.useStyle(Ie({},x)):s.useStyle(x),s.style.decal=null,s.setColor(_,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),w=this._z2;C!=null?w==null&&(this._z2=s.z2,s.z2+=C):w!=null&&(s.z2=w,this._z2=null);var b=o&&o.useNameLabel;ko(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:_,defaultOpacity:x.opacity});function E(k){return b?r.getName(k):Ap(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var A=s.ensureState("emphasis");A.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;A.scaleX=this._sizeX*R,A.scaleY=this._sizeY*R,this.setSymbolScale(1),Ao(this,d,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Rt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ac(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ac(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Gb(r.getItemVisual(n,"symbolSize"))},e}(Yt);function qO(t,e){this.parent.drift(t,e)}function Ld(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function n0(t){return t!=null&&!Ye(t)&&(t={isIgnore:t}),t||{}}function i0(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Oo(e),cursorStyle:e.get("cursor")}}var Hx=function(){function t(e){this.group=new Yt,this._SymbolCtor=e||Ep}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=n0(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=i0(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var d=f(c);if(Ld(e,d,c,r)){var h=new o(e,c,l,u);h.setPosition(d),e.setItemGraphicEl(c,h),n.add(h)}}).update(function(c,d){var h=a.getItemGraphicEl(d),v=f(c);if(!Ld(e,v,c,r)){n.remove(h);return}var p=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):yr(h,m,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=i0(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=n0(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Ld(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){Gc(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t}();function Vx(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=eB(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=ke(t.dimensions,function(v){return e.mapDimension(v)}),d=!1,h=e.getCalculationInfo("stackResultDimension");return Ro(e,c[0])&&(d=!0,c[0]=h),Ro(e,c[1])&&(d=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function eB(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Et(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Gx(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function tB(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function rB(t,e,r,n,i,a,o,s){for(var l=tB(t,e),u=[],f=[],c=[],d=[],h=[],v=[],p=[],g=Vx(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],S=0;S<l.length;S++){var T=l[S],P=!0,x=void 0,_=void 0;switch(T.cmd){case"=":x=T.idx*2,_=T.idx1*2;var M=m[x],C=m[x+1],w=y[_],b=y[_+1];(isNaN(M)||isNaN(C))&&(M=w,C=b),u.push(M,C),f.push(w,b),c.push(r[x],r[x+1]),d.push(n[_],n[_+1]),p.push(e.getRawIndex(T.idx1));break;case"+":var E=T.idx,A=g.dataDimsForPoint,R=i.dataToPoint([e.get(A[0],E),e.get(A[1],E)]);_=E*2,u.push(R[0],R[1]),f.push(y[_],y[_+1]);var k=Gx(g,i,e,E);c.push(k[0],k[1]),d.push(n[_],n[_+1]),p.push(e.getRawIndex(E));break;case"-":P=!1}P&&(h.push(T),v.push(v.length))}v.sort(function(oe,Y){return p[oe]-p[Y]});for(var D=u.length,O=fi(D),$=fi(D),U=fi(D),q=fi(D),H=[],S=0;S<v.length;S++){var N=v[S],G=S*2,j=N*2;O[G]=u[j],O[G+1]=u[j+1],$[G]=f[j],$[G+1]=f[j+1],U[G]=c[j],U[G+1]=c[j+1],q[G]=d[j],q[G+1]=d[j+1],H[S]=h[N]}return{current:O,next:$,stackedOnCurrent:U,stackedOnNext:q,status:H}}var Ei=Math.min,Pi=Math.max;function $a(t,e){return isNaN(t)||isNaN(e)}function iv(t,e,r,n,i,a,o,s,l){for(var u,f,c,d,h,v,p=r,g=0;g<n;g++){var m=e[p*2],y=e[p*2+1];if(p>=i||p<0)break;if($a(m,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,d=y;else{var S=m-u,T=y-f;if(S*S+T*T<.5){p+=a;continue}if(o>0){for(var P=p+a,x=e[P*2],_=e[P*2+1];x===m&&_===y&&g<n;)g++,P+=a,p+=a,x=e[P*2],_=e[P*2+1],m=e[p*2],y=e[p*2+1],S=m-u,T=y-f;var M=g+1;if(l)for(;$a(x,_)&&M<n;)M++,P+=a,x=e[P*2],_=e[P*2+1];var C=.5,w=0,b=0,E=void 0,A=void 0;if(M>=n||$a(x,_))h=m,v=y;else{w=x-u,b=_-f;var R=m-u,k=x-m,D=y-f,O=_-y,$=void 0,U=void 0;if(s==="x"){$=Math.abs(R),U=Math.abs(k);var q=w>0?1:-1;h=m-q*$*o,v=y,E=m+q*U*o,A=y}else if(s==="y"){$=Math.abs(D),U=Math.abs(O);var H=b>0?1:-1;h=m,v=y-H*$*o,E=m,A=y+H*U*o}else $=Math.sqrt(R*R+D*D),U=Math.sqrt(k*k+O*O),C=U/(U+$),h=m-w*o*(1-C),v=y-b*o*(1-C),E=m+w*o*C,A=y+b*o*C,E=Ei(E,Pi(x,m)),A=Ei(A,Pi(_,y)),E=Pi(E,Ei(x,m)),A=Pi(A,Ei(_,y)),w=E-m,b=A-y,h=m-w*$/U,v=y-b*$/U,h=Ei(h,Pi(u,m)),v=Ei(v,Pi(f,y)),h=Pi(h,Ei(u,m)),v=Pi(v,Ei(f,y)),w=m-h,b=y-v,E=m+w*U/$,A=y+b*U/$}t.bezierCurveTo(c,d,h,v,m,y),c=E,d=A}else t.lineTo(m,y)}u=m,f=y,p+=a}return g}var Wx=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),nB=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Wx},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&$a(i[o*2-2],i[o*2-1]);o--);for(;a<o&&$a(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=iv(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Yi.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var d=a[c++],h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,y=void 0,S=void 0;switch(d){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],S=u?(r-s)/(h-s):(r-l)/(v-l),S<=1&&S>=0){var T=u?(v-l)*S+l:(h-s)*S+s;return u?[r,T]:[T,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var P=u?Ku(s,h,p,m,r,f):Ku(l,v,g,y,r,f);if(P>0)for(var x=0;x<P;x++){var _=f[x];if(_<=1&&_>=0){var T=u?or(l,v,g,y,_):or(s,h,p,m,_);return u?[r,T]:[T,r]}}s=m,l=y;break}}},e}(yt),iB=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Wx),aB=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new iB},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&$a(i[s*2-2],i[s*2-1]);s--);for(;o<s&&$a(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=iv(r,i,o,s,s,1,n.smooth,l,n.connectNulls);iv(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(yt);function jx(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Qt({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var p=nt(i)?function(g){i(g,c)}:null;Or(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function Kx(t,e,r){var n=t.getArea(),i=Vt(n.r0,1),a=Vt(n.r,1),o=new ia({shape:{cx:Vt(t.cx,1),cy:Vt(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Or(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function oB(t,e,r,n,i){if(t){if(t.type==="polar")return Kx(t,e,r);if(t.type==="cartesian2d")return jx(t,e,r,n,i)}else return null;return null}function Pp(t,e){return t.type===e}function a0(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function o0(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[e,r],[n,i]]}function s0(t,e){var r=o0(t),n=r[0],i=r[1],a=o0(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function l0(t){return Et(t)?t:t?.5:0}function sB(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=fi(n*2),a=0;a<n;a++){var o=Gx(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Mi(t,e,r,n){var i=e.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<t.length;s+=2)!isNaN(t[s])&&!isNaN(t[s+1])&&c.push(t[s],t[s+1]);t=c}for(s=0;s<t.length-2;s+=2)switch(f[0]=t[s+2],f[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],o.push(u[0],u[1]),r){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var d=(u[a]+f[a])/2,h=[];l[a]=h[a]=d,l[1-a]=u[1-a],h[1-a]=f[1-a],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(t[s++],t[s++]),o}function lB(t,e){var r=[],n=t.length,i,a;function o(f,c,d){var h=f.coord,v=(d-h)/(c.coord-h),p=uE(v,[f.color,c.color]);return{coord:d,color:p}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function uB(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=ke(a.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var d=lB(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";ee(d,function(S){S.offset=(S.coord-p)/m}),d.push({offset:h?d[h-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:c[0]||"transparent"});var y=new jS(0,0,0,0,d,!0);return y[i]=p,y[i+"2"]=g,y}}}function cB(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&fB(a,e))){var o=e.mapDimension(a.dim),s={};return ee(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function fB(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Ep.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function dB(t,e){return isNaN(t)||isNaN(e)}function hB(t){for(var e=t.length/2;e>0&&dB(t[e*2-2],t[e*2-1]);e--);return e-1}function u0(t,e){return[t[e*2],t[e*2+1]]}function vB(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!(isNaN(o)||isNaN(t[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Xx(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<vn.length;e++)if(t.get([vn[e],"endLabel","show"]))return!0;return!1}function kd(t,e,r,n){if(Pp(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Xx(n)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=jx(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,d=Math.max(c.width,c.height);u?(c.y-=d,c.height+=d*2):(c.x-=d,c.width+=d*2)}return l&&l(1,f),f}else return Kx(e,r,n)}function pB(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var gB=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Yt,n=new Hx;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},e.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),f=r.getModel("areaStyle"),c=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,v=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&r.get("animation"),S=!f.isEmpty(),T=f.get("origin"),P=Vx(o,l,T),x=S&&sB(o,l,P),_=r.get("showSymbol"),M=r.get("connectNulls"),C=_&&!d&&cB(r,l,o),w=this._data;w&&w.eachItemGraphicEl(function(Y,te){Y.__temp&&(s.remove(Y),w.setItemGraphicEl(te,null))}),_||v.remove(),s.add(m);var b=d?!1:r.get("step"),E;o&&o.getArea&&r.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var A=uB(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&b===this._step))_&&v.updateData(l,{isIgnore:C,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Y){return[c[Y*2],c[Y*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,E),b&&(c=Mi(c,o,b,M),x&&(x=Mi(x,o,b,M))),p=this._newPolyline(c),S?g=this._newPolygon(c,x):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Wh(A)),m.setClipPath(kd(this,o,!0,r));else{S&&!g?g=this._newPolygon(c,x):g&&!S&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Wh(A));var R=m.getClipPath();if(R){var k=kd(this,o,!1,r);Or(R,{shape:k.shape},r)}else m.setClipPath(kd(this,o,!0,r));_&&v.updateData(l,{isIgnore:C,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Y){return[c[Y*2],c[Y*2+1]]}}),(!a0(this._stackedOnPoints,x)||!a0(this._points,c))&&(y?this._doUpdateAnimation(l,x,o,i,b,T,M):(b&&(c=Mi(c,o,b,M),x&&(x=Mi(x,o,b,M))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))}var D=r.getModel("emphasis"),O=D.get("focus"),$=D.get("blurScope"),U=D.get("disabled");if(p.useStyle(dt(u.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Eo(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var q=p.getState("emphasis").style;q.lineWidth=+p.style.lineWidth+1}Rt(p).seriesIndex=r.seriesIndex,Ao(p,O,$,U);var H=l0(r.get("smooth")),N=r.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:N,connectNulls:M}),g){var G=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(dt(f.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),G&&(j=l0(G.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:j,smoothMonotone:N,connectNulls:M}),Eo(g,r,"areaStyle"),Rt(g).seriesIndex=r.seriesIndex,Ao(g,O,$,U)}var oe=function(Y){a._changePolyState(Y)};l.eachItemGraphicEl(function(Y){Y&&(Y.onHoverStateChange=oe)}),this._polyline.onHoverStateChange=oe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=b,this._valueOrigin=T,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Rt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=_o(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Ep(o,s),u.x=f,u.y=c,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Br.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=_o(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Br.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;xm(this._polyline,r),n&&xm(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new nB({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new aB({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");nt(f)&&(f=f(null));var c=u.get("animationDelay")||0,d=nt(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,S=void 0;if(i)if(o){var T=i,P=n.pointToCoord(g);a?(m=T.startAngle,y=T.endAngle,S=-P[1]/180*Math.PI):(m=T.r0,y=T.r,S=P[0])}else{var x=i;a?(m=x.x,y=x.x+x.width,S=h.x):(m=x.y+x.height,y=x.y,S=h.y)}var _=y===m?0:(S-m)/(y-m);l&&(_=1-_);var M=nt(c)?c(v):f*_+d,C=p.getSymbolPath(),w=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:M}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Xx(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Qr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hB(l);f>=0&&(ko(s,Oo(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,d,h){return h!=null?Ux(o,h):Ap(o,c)},enableTextSetter:!0},pB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,S=n.shape,T=y?m?S.x:S.y+S.height:m?S.x+S.width:S.y,P=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),_=m?"x":"y",M=vB(c,T,_),C=M.range,w=C[1]-C[0],b=void 0;if(w>=1){if(w>1&&!h){var E=u0(c,C[0]);u.attr({x:E[0]+P,y:E[1]+x}),o&&(b=d.getRawValue(C[0]))}else{var E=f.getPointOn(T,_);E&&u.attr({x:E[0]+P,y:E[1]+x});var A=d.getRawValue(C[0]),R=d.getRawValue(C[1]);o&&(b=dP(i,v,A,R,M.t))}a.lastFrameIndex=C[0]}else{var k=r===1||a.lastFrameIndex>0?C[0]:0,E=u0(c,k);o&&(b=d.getRawValue(k)),u.attr({x:E[0]+P,y:E[1]+x})}if(o){var D=jc(u);typeof D.setLabelText=="function"&&D.setLabelText(b)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,d=rB(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=Mi(d.current,i,o,l),v=Mi(d.stackedOnCurrent,i,o,l),p=Mi(d.next,i,o,l),g=Mi(d.stackedOnNext,i,o,l)),s0(h,p)>3e3||f&&s0(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),yr(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),yr(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],S=d.status,T=0;T<S.length;T++){var P=S[T].cmd;if(P==="="){var x=r.getItemGraphicEl(S[T].idx1);x&&y.push({el:x,ptIdx:T})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var _=u.shape.__points,M=0;M<y.length;M++){var C=y[M].el,w=y[M].ptIdx*2;C.x=_[w],C.y=_[w+1],C.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Br);function Mp(t,e){return{seriesType:t,plan:pp(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=ke(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ro(n,s[0])&&(s[0]=u),Ro(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var p=h.end-h.start,g=o&&fi(p*l),m=[],y=[],S=h.start,T=0;S<h.end;S++){var P=void 0;if(l===1){var x=f.get(c,S);P=i.dataToPoint(x,null,y)}else m[0]=f.get(c,S),m[1]=f.get(d,S),P=i.dataToPoint(m,null,y);o?(g[T++]=P[0],g[T++]=P[1]):v.setItemLayout(S,P.slice())}o&&v.setLayout("points",g)}}}}}}var mB={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,r=-1/0,n=0;n<t.length;n++){var i=t[n],a=Math.abs(i);a>e&&(e=a,r=i)}return isFinite(r)?r:NaN},nearest:function(t){return t[0]}},yB=function(t){return Math.round(t.length/2)};function Yx(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;We(a)?v=mB[a]:nt(a)&&(v=a),v&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,v,yB))}}}}}function SB(t){t.registerChartView(gB),t.registerSeriesModel(JO),t.registerLayout(Mp("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Yx("line"))}var av=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return rf(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)ee(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),p=d.getTickModel().get("alignWithLabel"),g=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!p&&(g+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,S=void 0,T=1,P=0;P<v.length;P++){var x=v[P].coord,_=P===v.length-1?v[P-1].tickValue+T:v[P].tickValue;if(_===g){S=x;break}else if(_<g)y=x;else if(y!=null&&_>g){S=(x+y)/2;break}P===1&&(T=_-v[0].tickValue)}S==null&&(y?y&&(S=v[v.length-1].coord):S=v[0].coord),s[h]=d.toGlobalCoord(S)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Jr);Jr.registerClass(av);var bB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return rf(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=rb(av.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(av),xB=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),c0=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new xB},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?c-f<h:f-c<h;v||(f=c-(d?h:-h));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);v?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!d)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!d),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!d),o!==0&&r.arc(i,a,o,c,f,d)},e}(yt);function CB(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Ju(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,S=Math.cos,T=Math.sin,P=f+d*S(p),x=c+d*T(p),_="left",M="top";switch(s){case"startArc":P=f+(h-l)*S(m),x=c+(h-l)*T(m),_="center",M="top";break;case"insideStartArc":P=f+(h+l)*S(m),x=c+(h+l)*T(m),_="center",M="bottom";break;case"startAngle":P=f+v*S(p)+fu(p,l+y,!1),x=c+v*T(p)+du(p,l+y,!1),_="right",M="middle";break;case"insideStartAngle":P=f+v*S(p)+fu(p,-l+y,!1),x=c+v*T(p)+du(p,-l+y,!1),_="left",M="middle";break;case"middle":P=f+v*S(m),x=c+v*T(m),_="center",M="middle";break;case"endArc":P=f+(d+l)*S(m),x=c+(d+l)*T(m),_="center",M="bottom";break;case"insideEndArc":P=f+(d-l)*S(m),x=c+(d-l)*T(m),_="center",M="top";break;case"endAngle":P=f+v*S(g)+fu(g,l+y,!0),x=c+v*T(g)+du(g,l+y,!0),_="left",M="middle";break;case"insideEndAngle":P=f+v*S(g)+fu(g,-l+y,!0),x=c+v*T(g)+du(g,-l+y,!0),_="right",M="middle";break;default:return Ju(n,i,a)}return n=n||{},n.x=P,n.y=x,n.align=_,n.verticalAlign=M,n}}function wB(t,e,r,n){if(Et(n)){t.setTextConfig({rotation:n});return}else if($e(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function fu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function du(t,e,r){return e*Math.cos(t)*(r?1:-1)}function ps(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;$e(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ke(n,function(a){return Ki(a,i)})}}var Od=Math.max,Bd=Math.min;function TB(t,e){var r=t.getArea&&t.getArea();if(Pp(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var IB=function(t){De(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){Gc(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=_B(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,p=TB(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),S=y.get("borderRadius")||0,T=[],P=this._backgroundEls,x=a&&a.isInitSort,_=a&&a.type==="changeAxisOrder";function M(b){var E=hu[u.type](s,b),A=LB(u,c,E);return A.useStyle(y.getItemStyle()),u.type==="cartesian2d"?A.setShape("r",S):A.setShape("cornerRadius",S),T[b]=A,A}s.diff(l).add(function(b){var E=s.getItemModel(b),A=hu[u.type](s,b,E);if(m&&M(b),!(!s.hasValue(b)||!p0[u.type](A))){var R=!1;v&&(R=f0[u.type](p,A));var k=d0[u.type](r,s,b,A,c,d,f.model,!1,g);h&&(k.forceLabelAnimation=!0),g0(k,s,b,E,A,r,c,u.type==="polar"),x?k.attr({shape:A}):h?h0(h,d,k,A,b,c,!1,!1):Or(k,{shape:A},r,b),s.setItemGraphicEl(b,k),o.add(k),k.ignore=R}}).update(function(b,E){var A=s.getItemModel(b),R=hu[u.type](s,b,A);if(m){var k=void 0;P.length===0?k=M(E):(k=P[E],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",S):k.setShape("cornerRadius",S),T[b]=k);var D=hu[u.type](s,b),O=Qx(c,D,u);yr(k,{shape:O},d,b)}var $=l.getItemGraphicEl(E);if(!s.hasValue(b)||!p0[u.type](R)){o.remove($);return}var U=!1;if(v&&(U=f0[u.type](p,R),U&&o.remove($)),$?Zs($):$=d0[u.type](r,s,b,R,c,d,f.model,!!$,g),h&&($.forceLabelAnimation=!0),_){var q=$.getTextContent();if(q){var H=jc(q);H.prevValue!=null&&(H.prevValue=H.value)}}else g0($,s,b,A,R,r,c,u.type==="polar");x?$.attr({shape:R}):h?h0(h,d,$,R,b,c,!0,_):yr($,{shape:R},r,b,null),s.setItemGraphicEl(b,$),$.ignore=U,o.add($)}).remove(function(b){var E=l.getItemGraphicEl(b);E&&oc(E,r,b)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Yt);C.removeAll();for(var w=0;w<T.length;++w)C.add(T[w]);o.add(C),this._backgroundEls=T,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),y0(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),y0(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&oB(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ke(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){oc(a,r,Rt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Br),f0={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Od(e.x,t.x),s=Bd(e.x+e.width,i),l=Od(e.y,t.y),u=Bd(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Bd(e.r,t.r),a=Od(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},d0={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Qt({shape:Ie({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?c0:ia,f=new u({shape:n,z2:1});f.name="item";var c=Zx(i);if(f.calculateTextPosition=CB(c,{isRoundCap:u===c0}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?n.r0:n.startAngle,v[h]=n[h],(s?yr:Or)(f,{shape:v},a)}return f}};function _B(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function h0(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?yr:Or)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?yr:Or)(r,{shape:u},f,i)}function v0(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var AB=["x","y","width","height"],EB=["cx","cy","r","startAngle","endAngle"],p0={cartesian2d:function(t){return!v0(t,AB)},polar:function(t){return!v0(t,EB)}},hu={cartesian2d:function(t,e,r){var n=t.getItemLayout(e),i=r?MB(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function PB(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Zx(t){return function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(t)}function g0(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=ps(n.getModel("itemStyle"),f,!0);Ie(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=n.getShallow("cursor");d&&t.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=Oo(n);ko(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:Ap(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,wB(t,g==="outside"?h:g,Zx(o),n.get(["label","rotate"]))}AR(p,v,a.getRawValue(r),function(y){return Ux(e,y)});var m=n.getModel(["emphasis"]);Ao(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),Eo(t,n),PB(i)&&(t.style.fill="none",t.style.stroke="none",ee(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function MB(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var RB=function(){function t(){}return t}(),m0=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new RB},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e}(yt);function y0(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new m0({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),r&&r.push(f)}var c=new m0({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(i.getVisual("style")),Rt(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",S0),c.on("mousemove",S0)),r&&r.push(c)}var S0=Bb(function(t){var e=this,r=DB(e,t.offsetX,t.offsetY);Rt(e).dataIndex=r>=0?r:null},30,!1);function DB(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var d=f*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Qx(t,e,r){if(Pp(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function LB(t,e,r){var n=t.type==="polar"?ia:Qt;return new n({shape:Qx(e,r,t),silent:!0,z2:0})}function kB(t){t.registerChartView(IB),t.registerSeriesModel(bB),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Xr(lO,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,uO("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Yx("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var b0=Math.PI*2,vu=Math.PI/180;function Jx(t,e){return cc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qx(t,e){var r=Jx(t,e),n=t.get("center"),i=t.get("radius");$e(i)||(i=[0,i]);var a=At(r.width,e.getWidth()),o=At(r.height,e.getHeight()),s=Math.min(a,o),l=At(i[0],s/2),u=At(i[1],s/2),f,c,d=t.coordinateSystem;if(d){var h=d.dataToPoint(n);f=h[0]||0,c=h[1]||0}else $e(n)||(n=[n,n]),f=At(n[0],a)+r.x,c=At(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function OB(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Jx(n,r),s=qx(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,d=-n.get("startAngle")*vu,h=n.get("endAngle"),v=n.get("padAngle")*vu;h=h==="auto"?d-b0:-h*vu;var p=n.get("minAngle")*vu,g=p+v,m=0;i.each(a,function(O){!isNaN(O)&&m++});var y=i.getSum(a),S=Math.PI/(y||m)*2,T=n.get("clockwise"),P=n.get("roseType"),x=n.get("stillShowZeroSum"),_=i.getDataExtent(a);_[0]=0;var M=T?1:-1,C=[d,h],w=M*v/2;wS(C,!T),d=C[0],h=C[1];var b=eC(n);b.startAngle=d,b.endAngle=h,b.clockwise=T;var E=Math.abs(h-d),A=E,R=0,k=d;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(O,$){var U;if(isNaN(O)){i.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:l,cy:u,r0:c,r:P?NaN:f});return}P!=="area"?U=y===0&&x?S:O*S:U=E/m,U<g?(U=g,A-=g):R+=O;var q=k+M*U,H=0,N=0;v>U?(H=k+M*U/2,N=H):(H=k+w,N=q-w),i.setItemLayout($,{angle:U,startAngle:H,endAngle:N,clockwise:T,cx:l,cy:u,r0:c,r:P?Dh(O,_,[c,f]):f}),k=q}),A<b0&&m)if(A<=.001){var D=E/m;i.each(a,function(O,$){if(!isNaN(O)){var U=i.getItemLayout($);U.angle=D;var q=0,H=0;D<v?(q=d+M*($+1/2)*D,H=q):(q=d+M*$*D+w,H=d+M*($+1)*D-w),U.startAngle=q,U.endAngle=H}})}else S=A/R,k=d,i.each(a,function(O,$){if(!isNaN(O)){var U=i.getItemLayout($),q=U.angle===g?g:O*S,H=0,N=0;q<v?(H=k+M*q/2,N=H):(H=k+w,N=k+M*q-w),U.startAngle=H,U.endAngle=N,k+=M*q}})})}var eC=qt();function tC(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var BB=Math.PI/180;function x0(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var S=p.list[y],T=Math.abs(S.label.y-r),P=n+S.len,x=P*P,_=Math.sqrt((1-Math.abs(T*T/m))*x),M=e+(_+S.len2)*i,C=M-S.label.x,w=S.targetTextWidth-C*i;rC(S,w,!0),S.label.x=M}}function c(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var S=p[y],T=S.label.y>r?m:g,P=Math.abs(S.label.y-r);if(P>=T.maxY){var x=S.label.x-e-S.len2*i,_=n+S.len,M=Math.abs(x)<_?Math.sqrt(P*P/(1-x*x/_/_)):_;T.rB=M,T.maxY=P}T.list.push(S)}f(g),f(m)}for(var d=t.length,h=0;h<d;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var v=t[h].label.x-u;t[h].linePoints[1][0]+=v,t[h].label.x=u}ZO(t,l,l+o)&&c(t)}function NB(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<t.length;d++){var h=t[d].label;Nd(t[d])||(h.x<e?(f=Math.min(f,h.x),l.push(t[d])):(c=Math.max(c,h.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var v=t[d];if(!Nd(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<e?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?g=f-o-v.bleedMargin:g=o+i-c-v.bleedMargin:h.x<e?g=h.x-o-v.bleedMargin:g=o+i-h.x-v.bleedMargin,v.targetTextWidth=g,rC(v,g)}}x0(u,e,r,n,1,i,a,o,s,c),x0(l,e,r,n,-1,i,a,o,s,f);for(var d=0;d<t.length;d++){var v=t[d];if(!Nd(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,S=y?y[1]+y[3]:0,T=h.style.backgroundColor?0:S,P=v.rect.width+T,x=p[1][0]-p[2][0];m?h.x<e?p[2][0]=o+v.edgeDistance+P+v.labelDistance:p[2][0]=o+i-v.edgeDistance-P-v.labelDistance:(h.x<e?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=h.y}}}function rC(t,e,r){if(r===void 0&&(r=!1),t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=e-l,v=e<f?h:r?h>t.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function Nd(t){return t.position==="center"}function FB(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*BB,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(x){x.ignore=!0}function v(x){if(!x.ignore)return!0;for(var _ in x.states)if(x.states[_].ignore===!1)return!0;return!1}e.each(function(x){var _=e.getItemGraphicEl(x),M=_.shape,C=_.getTextContent(),w=_.getTextGuideLine(),b=e.getItemModel(x),E=b.getModel("label"),A=E.get("position")||b.get(["emphasis","label","position"]),R=E.get("distanceToLabelLine"),k=E.get("alignTo"),D=At(E.get("edgeDistance"),u),O=E.get("bleedMargin"),$=b.getModel("labelLine"),U=$.get("length");U=At(U,u);var q=$.get("length2");if(q=At(q,u),Math.abs(M.endAngle-M.startAngle)<o){ee(C.states,h),C.ignore=!0,w&&(ee(w.states,h),w.ignore=!0);return}if(v(C)){var H=(M.startAngle+M.endAngle)/2,N=Math.cos(H),G=Math.sin(H),j,oe,Y,te;n=M.cx,i=M.cy;var fe=A==="inside"||A==="inner";if(A==="center")j=M.cx,oe=M.cy,te="center";else{var ye=(fe?(M.r+M.r0)/2*N:M.r*N)+n,xe=(fe?(M.r+M.r0)/2*G:M.r*G)+i;if(j=ye+N*3,oe=xe+G*3,!fe){var ce=ye+N*(U+l-M.r),ge=xe+G*(U+l-M.r),Ce=ce+(N<0?-1:1)*q,se=ge;k==="edge"?j=N<0?f+D:f+u-D:j=Ce+(N<0?-R:R),oe=se,Y=[[ye,xe],[ce,ge],[Ce,se]]}te=fe?"center":k==="edge"?N>0?"right":"left":N>0?"left":"right"}var he=Math.PI,Ae=0,Re=E.get("rotate");if(Et(Re))Ae=Re*(he/180);else if(A==="center")Ae=0;else if(Re==="radial"||Re===!0){var lt=N<0?-H+he:-H;Ae=lt}else if(Re==="tangential"&&A!=="outside"&&A!=="outer"){var vt=Math.atan2(N,G);vt<0&&(vt=he*2+vt);var mt=G>0;mt&&(vt=he+vt),Ae=vt-he}if(a=!!Ae,C.x=j,C.y=oe,C.rotation=Ae,C.setStyle({verticalAlign:"middle"}),fe){C.setStyle({align:te});var Ot=C.states.select;Ot&&(Ot.x+=C.x,Ot.y+=C.y)}else{var Fe=C.getBoundingRect().clone();Fe.applyTransform(C.getComputedTransform());var Zt=(C.style.margin||0)+2.1;Fe.y-=Zt/2,Fe.height+=Zt,r.push({label:C,labelLine:w,position:A,len:U,len2:q,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new Je(N,G),linePoints:Y,textAlign:te,labelDistance:R,labelAlignTo:k,edgeDistance:D,bleedMargin:O,rect:Fe,unconstrainedWidth:Fe.width,labelStyleWidth:C.style.width})}_.setTextConfig({inside:fe})}}),!a&&t.get("avoidLabelOverlap")&&NB(r,n,i,l,u,d,f,c);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,S=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),S&&(ee(m.states,h),m.ignore=!0);var T=m.states.select;T&&(T.x+=m.x,T.y+=m.y)}if(y){var P=g.linePoints;S||!P?(ee(y.states,h),y.ignore=!0):(VO(P,g.minTurnAngle),GO(P,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:P}),m.__hostTarget.textGuideLineConfig={anchor:new Je(P[0][0],P[0][1])})}}}var $B=function(t){De(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Qr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=Ie(ps(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var d=s.getShallow("animationType");s.ecModel.ssr?(Or(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):d==="scale"?(o.shape.r=f.r0,Or(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Or(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,yr(o,{shape:{endAngle:f.endAngle}},s,n))}else Zs(o),yr(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),Eo(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=Ie({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ps(u.getModel("itemStyle"),f)),Ie(o.ensureState("select"),{x:p,y:g,shape:ps(l.getModel(["select","itemStyle"]),f)}),Ie(o.ensureState("blur"),{shape:ps(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),S=o.getTextContent();y&&Ie(y.ensureState("select"),{x:p,y:g}),Ie(S.ensureState("select"),{x:p,y:g}),Ao(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;ko(a,Oo(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Va,this.setTextGuideLine(h)),jO(this,KO(o),{stroke:u,opacity:xs(s.get(["lineStyle","opacity"]),f,1)})}},e}(ia),zB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=eC(r),h=new ia({shape:Ie(qx(r,i),d)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var p=new $B(o,v,u);o.setItemGraphicEl(v,p),l.add(p)}).update(function(v,p){var g=s.getItemGraphicEl(p);g.updateData(o,v,u),g.off("click"),l.add(g),o.setItemGraphicEl(v,g)}).remove(function(v){var p=s.getItemGraphicEl(v);oc(p,r,v)}).execute(),FB(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(Br);function nC(t,e,r){e=$e(e)&&{coordDimensions:e}||Ie({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Sx(n,e).dimensions,a=new yx(i,t);return a.initData(n,r),a}var iC=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),UB=qt(),HB=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new iC(jt(this.getData,this),jt(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return nC(this,{coordDimensions:["value"],encodeDefaulter:Xr(tD,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=UB(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=jE(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Lh(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Jr);function VB(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Et(o)&&!isNaN(o)&&o<0)})}}}function GB(t){t.registerChartView(zB),t.registerSeriesModel(HB),AL("pie",t.registerAction),t.registerLayout(Xr(OB,"pie")),t.registerProcessor(tC("pie")),t.registerProcessor(VB("pie"))}var WB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return rf(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Jr),aC=4,jB=function(){function t(){}return t}(),KB=function(t){De(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new jB},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<aC,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var d=i[c++],h=i[c++];isNaN(d)||isNaN(h)||f&&!f.contain(d,h)||(s.x=d-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,d=a[f+1]-l/2;if(r>=c&&n>=d&&r<=c+s&&n<=d+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,d=0;d<i.length;){var h=i[d++],v=i[d++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(v,u),c=Math.max(v,c)}r=this._rect=new It(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e}(yt),XB=function(){function t(){this.group=new Yt}return t.prototype.updateData=function(e,r){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new KB({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Qi(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<aC;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Rt(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),YB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Mp("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new XB:new Hx,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Br),ZB=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Tt),ov=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",En).models[0]},e.type="cartesian2dAxis",e}(Tt);Mn(ov,Rx);var oC={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},QB=Ct({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},oC),Rp=Ct({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},oC),JB=Ct({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Rp),qB=dt({logBase:10},Rp);const sC={category:QB,value:Rp,time:JB,log:qB};var e5={value:1,category:1,time:1,log:1};function C0(t,e,r,n){ee(e5,function(i,a){var o=Ct(Ct({},sC[a],!0),n,!0),s=function(l){De(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var d=el(this),h=d?Jc(f):{},v=c.getTheme();Ct(f,v.get(a+"Axis")),Ct(f,this.getDefaultOption()),f.type=w0(f),d&&Po(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=rv.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",w0)}function w0(t){return t.type||(t.data?"category":"value")}var t5=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ke(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),vr(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t}(),sv=["x","y"];function T0(t){return t.type==="interval"||t.type==="time"}var r5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=sv,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!T0(r)||!T0(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,d=o[0]-i[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,d,h];this._invTransform=Fv([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new It(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return dn(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return dn(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new It(a,o,s,l)},e}(t5),n5=function(t){De(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}($x);function i5(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:c[0],u==="x"?v[d[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Vs(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function I0(t){return t.get("coordinateSystem")==="cartesian2d"}function _0(t){var e={xAxisModel:null,yAxisModel:null};return ee(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,En).models[0];e[n]=a}),e}var Fd=Math.log;function lC(t,e,r){var n=Ji.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=Px(t,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(t.type==="log"){var d=Fd(t.base);u=[Fd(u[0])/d,Fd(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(t);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(t),p=u[0],g=u[1];if(f&&c)v=(g-p)/o;else if(f)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=Rd(v),g=u[0]+v*o;else if(c)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=Rd(v),p=u[1]-v*o;else{var m=t.getTicks().length-1;m>o&&(v=Rd(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=Vt(g-y),p<0&&u[0]>=0?(p=0,g=Vt(y)):g>0&&u[1]<=0&&(g=0,p=-Vt(y))}var S=(i[0].value-a[0].value)/s,T=(i[o].value-a[o].value)/s;n.setExtent.call(t,p+v*S,g+v*T),n.setInterval.call(t,v),(S||T)&&n.setNiceExtent.call(t,p+v,g-v)}var a5=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sv,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=gt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var d=+l[c],h=o[d],v=h.model,p=h.scale;nv(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(qy(p,v),nv(p)&&(s=h))}f.length&&(s||(s=f.pop(),qy(s.scale,s.model)),ee(f,function(g){lC(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};ee(n.x,function(o){A0(n,"y",o,a)}),ee(n.y,function(o){A0(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=cc(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(ee(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=MO(u);if(f){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+d,u.position==="top"?o.y+=f.height+d:u.position==="left"&&(o.x+=f.width+d)}}}),l()),ee(this._coordsList,function(u){u.calcAffineTransform()});function l(){ee(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),o5(u,f?o.x:o.y)})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}Ye(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",En).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",En).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Mt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,ee(s.x,function(f,c){ee(s.y,function(d,h){var v="x"+c+"y"+h,p=new r5(v);p.master=i,p.model=e,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(d)})});function u(f){return function(c,d){if($d(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new n5(f,AO(c),[0,0],c.get("type"),h),p=v.type==="category";v.onBand=p&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=d,a._axesList.push(v),s[f][d]=v,l[f]++}}}},t.prototype._updateScale=function(e,r){ee(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(I0(i)){var a=_0(i),o=a.xAxisModel,s=a.yAxisModel;if(!$d(o,r)||!$d(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){ee(DO(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return ee(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);Mt(r,a)<0&&r.push(a),Mt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){if(I0(i)){var a=_0(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},t.dimensions=sv,t}();function $d(t,e){return t.getCoordSysModel()===e}function A0(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)E0(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&E0(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function E0(t){return t&&t.type!=="category"&&t.type!=="time"&&EO(t)}function o5(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}var $i=Math.PI,Gi=function(){function t(e,r){this.group=new Yt,this.opt=r,this.axisModel=e,dt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Yt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!P0[e]},t.prototype.add=function(e){P0[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var i=fS(r-e),a,o;return qu(i)?(o=n>0?"top":"bottom",a="center"):qu(i-$i)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<$i?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),P0={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(dn(s,s,o),dn(l,l,o));var f=Ie({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Zi({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Qs(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var d=e.get(["axisLine","symbol"]);if(d!=null){var h=e.get(["axisLine","symbolSize"]);We(d)&&(d=[d,d]),(We(h)||Et(h))&&(h=[h,h]);var v=Wb(e.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];ee([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var S=Qi(d[y],-p/2,-g/2,p,g,f.stroke,!0),T=m.r+m.offset,P=u?l:s;S.attr({rotation:m.rotate,x:P[0]+T*Math.cos(t.rotation),y:P[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),r.add(S)}})}}},axisTickLabel:function(t,e,r,n){var i=u5(r,n,e,t),a=f5(r,n,e,t);if(l5(e,a,i),c5(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=XO(ke(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));QO(o)}},axisName:function(t,e,r,n){var i=Vs(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,R0(a)?t.labelOffset+o*l:0],d,h=e.get("nameRotate");h!=null&&(h=h*$i/180);var v;R0(a)?d=Gi.innerTextLayout(t.rotation,h??t.rotation,o):(d=s5(t.rotation,a,h||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,y=Vs(t.nameTruncateMaxWidth,g.maxWidth,v),S=new Qr({x:c[0],y:c[1],rotation:d.rotation,silent:Gi.isLabelSilent(e),style:Js(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(tp({el:S,componentModel:e,itemName:i}),S.__fullText=i,S.anid="name",e.get("triggerEvent")){var T=Gi.makeAxisEventDataBase(e);T.targetType="axisName",T.name=i,Rt(S).eventData=T}n.add(S),S.updateTransform(),r.add(S),S.decomposeTransform()}}};function s5(t,e,r,n){var i=fS(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return qu(i-$i/2)?(o=l?"bottom":"top",a="center"):qu(i-$i*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<$i*1.5&&i>$i/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function l5(t,e,r){if(!Mx(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],f=r[1],c=r[r.length-1],d=r[r.length-2];n===!1?(rn(a),rn(u)):M0(a,o)&&(n?(rn(o),rn(f)):(rn(a),rn(u))),i===!1?(rn(s),rn(c)):M0(l,s)&&(i?(rn(l),rn(d)):(rn(s),rn(c)))}}function rn(t){t&&(t.ignore=!0)}function M0(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=Nv([]);return z1(i,i,-t.rotation),r.applyTransform(xo([],i,t.getLocalTransform())),n.applyTransform(xo([],i,e.getLocalTransform())),r.intersect(n)}}function R0(t){return t==="middle"||t==="center"}function uC(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(dn(o,o,e),dn(s,s,e));var f=new Zi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Qs(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f)}return a}function u5(t,e,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=uC(u,e.transform,l,dt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}}function c5(t,e,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=dt(s.getLineStyle(),dt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=uC(o[f],e.transform,l,u,"minorticks_"+f),d=0;d<c.length;d++)t.add(c[d])}}function f5(t,e,r,n){var i=r.axis,a=Vs(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Vs(n.labelRotate,o.get("rotate"))||0)*$i/180,f=Gi.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),d=[],h=Gi.isLabelSilent(r),v=r.get("triggerEvent");return ee(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,S=p.rawLabel,T=o;if(c&&c[m]){var P=c[m];Ye(P)&&P.textStyle&&(T=new Jt(P.textStyle,o,r.ecModel))}var x=T.getTextColor()||r.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(m),M=T.getShallow("align",!0)||f.textAlign,C=Ze(T.getShallow("alignMinLabel",!0),M),w=Ze(T.getShallow("alignMaxLabel",!0),M),b=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||f.textVerticalAlign,E=Ze(T.getShallow("verticalAlignMinLabel",!0),b),A=Ze(T.getShallow("verticalAlignMaxLabel",!0),b),R=new Qr({x:_,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(p.level||0),style:Js(T,{text:y,align:g===0?C:g===l.length-1?w:M,verticalAlign:g===0?E:g===l.length-1?A:b,fill:nt(x)?x(i.type==="category"?S:i.type==="value"?m+"":m,g):x})});if(R.anid="label_"+m,v){var k=Gi.makeAxisEventDataBase(r);k.targetType="axisLabel",k.value=S,k.tickIndex=g,i.type==="category"&&(k.dataIndex=m),Rt(R).eventData=k}e.add(R),R.updateTransform(),d.push(R),t.add(R),R.decomposeTransform()}),d}}function d5(t){var e=cC(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=v5(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function cC(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[p5(t)]}function h5(t){var e=cC(t);return e&&e.axisPointerModel}function v5(t){return!!t.get(["handle","show"])}function p5(t){return t.type+"||"+t.id}var D0={},g5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&d5(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=h5(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){D0[r]=n},e.getAxisPointerClass=function(r){return r&&D0[r]},e.type="axis",e}(mi),lv=qt();function m5(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,c=lv(t).splitAreaColors,d=it(),h=0;if(c)for(var v=0;v<u.length;v++){var p=c.get(u[v].tickValue);if(p!=null){h=(p+(f-1)*v)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=$e(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),S=void 0,T=void 0,P=void 0,x=void 0;i.isHorizontal()?(S=g,T=l.y,P=y-S,x=l.height,g=S+P):(S=l.x,T=g,P=l.width,x=y-T,g=T+x);var _=u[v-1].tickValue;_!=null&&d.set(_,h),e.add(new Qt({anid:_!=null?"area_"+_:null,shape:{x:S,y:T,width:P,height:x},style:dt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}lv(t).splitAreaColors=d}}}function y5(t){lv(t).splitAreaColors=null}var S5=["axisLine","axisTickLabel","axisName"],b5=["splitArea","splitLine","minorSplitLine"],fC=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Yt,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=i5(s,r),u=new Gi(r,Ie({handleAutoShown:function(c){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(nv(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));ee(S5,u.add,u),this._axisGroup.add(u.getGroup()),ee(b5,function(c){r.get([c,"show"])&&x5[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||QS(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){y5(this)},e.type="cartesianAxis",e}(g5),x5={splitLine:function(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=$e(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),p=0;p<c.length;p++){var g=i.toGlobalCoord(c[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=f++%s.length,y=c[p].tickValue,S=new Zi({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:dt({stroke:s[m]},v),silent:!0});Qs(S.shape,v.lineWidth),e.add(S)}}},minorSplitLine:function(t,e,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],c=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=i.toGlobalCoord(u[h][v].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new Zi({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:d,silent:!0});Qs(g.shape,d.lineWidth),e.add(g)}},splitArea:function(t,e,r,n){m5(t,e,r,n)}},dC=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(fC),C5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=dC.type,r}return e.type="yAxis",e}(fC),w5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Qt({shape:r.coordinateSystem.getRect(),style:dt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(mi),L0={offset:0};function T5(t){t.registerComponentView(w5),t.registerComponentModel(ZB),t.registerCoordinateSystem("cartesian2d",a5),C0(t,"x",ov,L0),C0(t,"y",ov,L0),t.registerComponentView(dC),t.registerComponentView(C5),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function I5(t){Ha(T5),t.registerSeriesModel(WB),t.registerChartView(YB),t.registerLayout(Mp("scatter"))}function _5(t){t.eachSeriesByType("radar",function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();ee(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=k0(f)?f:O0(i)})}),r.each(function(o){var s=v2(n[o],function(l){return k0(l)})||O0(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function k0(t){return!isNaN(t[0])&&!isNaN(t[1])}function O0(t){return[t.cx,t.cy]}function A5(t){var e=t.polar;if(e){$e(e)||(e=[e]);var r=[];ee(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],$e(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}ee(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var E5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(d,h){var v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var p=Gb(d.getItemVisual(h,"symbolSize")),g=Qi(v,-1,-1,2,2),m=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function f(d,h,v,p,g,m){v.removeAll();for(var y=0;y<h.length-1;y++){var S=u(p,g);S&&(S.__dimIdx=y,d[y]?(S.setPosition(d[y]),CR[m?"initProps":"updateProps"](S,{x:h[y][0],y:h[y][1]},r,g)):S.setPosition(h[y]),v.add(S))}}function c(d){return ke(d,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new yl,p=new Va,g={shape:{points:h}};v.shape.points=c(h),p.shape.points=c(h),Or(v,g,r,d),Or(p,g,r,d);var m=new Yt,y=new Yt;m.add(p),m.add(v),m.add(y),f(p.shape.points,h,y,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,h){var v=l.getItemGraphicEl(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),y={shape:{points:s.getItemLayout(d)}};y.shape.points&&(f(p.shape.points,y.shape.points,m,s,d,!1),Zs(g),Zs(p),yr(p,y,r),yr(g,y,r),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y=s.getItemVisual(h,"style"),S=y.fill;o.add(d),p.useStyle(dt(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),Eo(p,v,"lineStyle"),Eo(g,v,"areaStyle");var T=v.getModel("areaStyle"),P=T.isEmpty()&&T.parentModel.isEmpty();g.ignore=P,ee(["emphasis","select","blur"],function(M){var C=v.getModel([M,"areaStyle"]),w=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(M).ignore=w&&P}),g.useStyle(dt(T.getAreaStyle(),{fill:S,opacity:.7,decal:y.decal}));var x=v.getModel("emphasis"),_=x.getModel("itemStyle").getItemStyle();m.eachChild(function(M){if(M instanceof Rn){var C=M.style;M.useStyle(Ie({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else M.useStyle(y),M.setColor(S),M.style.strokeNoScale=!0;var w=M.ensureState("emphasis");w.style=pt(_);var b=s.getStore().get(s.getDimensionIndex(M.__dimIdx),h);(b==null||isNaN(b))&&(b=""),ko(M,Oo(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:M.__dimIdx,defaultText:b,inheritColor:S,defaultOpacity:y.opacity})}),Ao(d,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Br),P5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new iC(jt(this.getData,this),jt(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return nC(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=kb(this,r);return rl("section",{header:u,sortBlocks:!0,blocks:ke(s,function(c){var d=a.get(a.mapDimension(c.dim),r);return rl("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(ke(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Jr),is=sC.value;function pu(t,e){return dt({show:e},t)}var M5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),d=this.get("triggerEvent"),h=ke(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=dt({color:v.color},l));var g=Ct(pt(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:d},!1);if(We(f)){var m=g.name;g.name=f.replace("{value}",m??"")}else nt(f)&&(g.name=f(g.name,g));var y=new Jt(g,null,this.ecModel);return Mn(y,Rx.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ct({lineStyle:{color:"#bbb"}},is.axisLine),axisLabel:pu(is.axisLabel,!1),axisTick:pu(is.axisTick,!1),splitLine:pu(is.splitLine,!0),splitArea:pu(is.splitArea,!0),indicator:[]},e}(Tt),R5=["axisLine","axisTickLabel","axisName"],D5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=ke(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Gi(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});ee(a,function(o){ee(R5,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),d=l.get("color"),h=u.get("color"),v=$e(d)?d:[d],p=$e(h)?h:[h],g=[],m=[];function y(k,D,O){var $=O%D.length;return k[$]=k[$]||[],$}if(a==="circle")for(var S=i[0].getTicksCoords(),T=n.cx,P=n.cy,x=0;x<S.length;x++){if(f){var _=y(g,v,x);g[_].push(new ml({shape:{cx:T,cy:P,r:S[x].coord}}))}if(c&&x<S.length-1){var _=y(m,p,x);m[_].push(new Hc({shape:{cx:T,cy:P,r0:S[x].coord,r:S[x+1].coord}}))}}else for(var M,C=ke(i,function(k,D){var O=k.getTicksCoords();return M=M==null?O.length-1:Math.min(O.length-1,M),ke(O,function($){return n.coordToPoint($.coord,D)})}),w=[],x=0;x<=M;x++){for(var b=[],E=0;E<i.length;E++)b.push(C[E][x]);if(b[0]&&b.push(b[0].slice()),f){var _=y(g,v,x);g[_].push(new Va({shape:{points:b}}))}if(c&&w){var _=y(m,p,x-1);m[_].push(new yl({shape:{points:b.concat(w)}}))}w=b.slice().reverse()}var A=l.getLineStyle(),R=u.getAreaStyle();ee(m,function(k,D){this.group.add(Gh(k,{style:dt({stroke:"none",fill:p[D%p.length]},R),silent:!0}))},this),ee(g,function(k,D){this.group.add(Gh(k,{style:dt({fill:"none",stroke:v[D%v.length]},A),silent:!0}))},this)},e.type="radar",e}(mi),L5=function(t){De(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e}($x),k5=function(){function t(e,r,n){this.dimensions=[],this._model=e,this._indicatorAxes=ke(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new L5(o,new Ji);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=e.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=At(n[0],i),this.cy=At(n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(We(s)||Et(s))&&(s=[0,s]),this.r0=At(s[0],o),this.r=At(s[1],o),ee(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model;ee(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();ee(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new Ji;o.setExtent(0,a),o.setInterval(1),ee(n,function(s,l){lC(s.scale,s.model,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent("radar",function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},t.dimensions=[],t}();function O5(t){t.registerCoordinateSystem("radar",k5),t.registerComponentModel(M5),t.registerComponentView(D5),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function B5(t){Ha(O5),t.registerChartView(E5),t.registerSeriesModel(P5),t.registerLayout(_5),t.registerProcessor(tC("radar")),t.registerPreprocessor(A5)}function N5(t,e){var r=vb(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Qt({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var F5=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},uv=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),$e(n)&&ee(n,function(a,o){We(a)&&(a={type:a}),n[o]=Ct(a,F5(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,d=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):f=!0}else f=!0;f&&Gv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=it(),s=ke(a,function(l){return(We(l)||Et(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Jt(l,this,this.ecModel))},this);this._data=vr(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;ee(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;ee(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;ee(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Mt(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Tt),oo=Xr,cv=ee,gu=Yt,hC=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new gu),this.group.add(this._selectorGroup=new gu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=cc(f,c,d),v=this.layoutInner(r,o,h,a,l,u),p=cc(dt({width:v.width,height:v.height},f),c,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=N5(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=it(),c=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),cv(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
  57. `)){var g=new gu;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),S=y.getVisual("legendLineStyle")||{},T=y.getVisual("legendIcon"),P=y.getVisual("style"),x=this._createItem(m,p,v,h,n,r,S,P,T,c,a);x.on("click",oo(B0,p,null,a,d)).on("mouseover",oo(fv,m.name,null,a,d)).on("mouseout",oo(dv,m.name,null,a,d)),i.ssr&&x.eachChild(function(_){var M=Rt(_);M.seriesIndex=m.seriesIndex,M.dataIndex=v,M.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(_){if(!f.get(p)&&_.legendVisualProvider){var M=_.legendVisualProvider;if(!M.containName(p))return;var C=M.indexOfName(p),w=M.getItemVisual(C,"style"),b=M.getItemVisual(C,"legendIcon"),E=Kn(w.fill);E&&E[3]===0&&(E[3]=.2,w=Ie(Ie({},w),{fill:Rc(E,"rgba")}));var A=this._createItem(_,p,v,h,n,r,{},w,b,c,a);A.on("click",oo(B0,null,p,a,d)).on("mouseover",oo(fv,null,p,a,d)).on("mouseout",oo(dv,null,p,a,d)),i.ssr&&A.eachChild(function(R){var k=Rt(R);k.seriesIndex=_.seriesIndex,k.dataIndex=v,k.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();cv(r,function(u){var f=u.type,c=new Qr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);ko(c,{normal:d,emphasis:h},{defaultText:u.title}),$h(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),S=a.get("icon");f=S||f||"roundRect";var T=$5(f,a,l,u,h,g,d),P=new gu,x=a.getModel("textStyle");if(nt(r.getLegendIcon)&&(!S||S==="inherit"))P.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:y}));else{var _=S==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;P.add(z5({itemWidth:v,itemHeight:p,icon:f,iconRotate:_,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:y}))}var M=s==="left"?v+5:-5,C=s,w=o.get("formatter"),b=n;We(w)&&w?b=w.replace("{name}",n??""):nt(w)&&(b=w(n));var E=g?x.getTextColor():a.get("inactiveColor");P.add(new Qr({style:Js(x,{text:b,x:M,y:p/2,fill:E,align:C,verticalAlign:"middle"},{inheritColor:E})}));var A=new Qt({shape:P.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&tp({el:A,componentModel:o,itemName:n,itemTooltipOption:R.option}),P.add(A),P.eachChild(function(k){k.silent=!0}),A.silent=!c,this.getContentGroup().add(P),$h(P),P.__legendDataIndex=i,P},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ds(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ds("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+v:c[p]+=d[g]+v,h[1-p]+=f[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var S={x:0,y:0};return S[g]=f[g]+v+d[g],S[m]=Math.max(f[m],d[m]),S[y]=Math.min(0,d[y]+h[1-p]),S}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(mi);function $5(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),cv(g,function(y,S){g[S]==="inherit"&&(g[S]=m[S])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Jh(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function z5(t){var e=t.icon||"roundRect",r=Qi(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function B0(t,e,r,n){dv(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),fv(t,e,r,n)}function vC(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function fv(t,e,r,n){vC(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function dv(t,e,r,n){vC(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function U5(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function as(t,e,r){var n={},i=t==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?o[t]():(o[t](e.name),a=o.isSelected(e.name));var s=o.getData();ee(s,function(l){var u=l.get("name");if(!(u===`
  58. `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),t==="allSelect"||t==="inverseSelect"?{selected:n}:{name:e.name,selected:n}}function H5(t){t.registerAction("legendToggleSelect","legendselectchanged",Xr(as,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Xr(as,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Xr(as,"inverseSelect")),t.registerAction("legendSelect","legendselected",Xr(as,"select")),t.registerAction("legendUnSelect","legendunselected",Xr(as,"unSelect"))}function pC(t){t.registerComponentModel(uv),t.registerComponentView(hC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,U5),t.registerSubTypeDefaulter("legend",function(){return"plain"}),H5(t)}var V5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Jc(r);t.prototype.init.call(this,r,n,i),N0(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),N0(this,this.option,r)},e.type="legend.scroll",e.defaultOption=rb(uv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(uv);function N0(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,Po(e,r,{type:"box",ignoreSize:!!i})}var F0=Yt,zd=["width","height"],Ud=["x","y"],G5=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new F0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new F0)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),d=$e(c)?c:[c,c];v("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Qr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=JS(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:jt(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=zd[u],c=Ud[u],d=zd[1-u],h=Ud[1-u];o&&Ds("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=pt(i);o&&(m[f]=i[f]-p[f]-v);var y=this._layoutContentAndController(r,a,m,u,f,d,h,c);if(o){if(s==="end")g[u]+=y[f]+v;else{var S=p[f]+v;g[u]-=S,y[c]-=S}y[f]+=p[f]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;Ds(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Ds("horizontal",d,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],S=Ze(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var T=r.get("pageButtonPosition",!0);T==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+S}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var P={x:0,y:0};if(P[o]=p?i[o]:h[o],P[s]=Math.max(h[s],v[s]),P[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-v[o]-S,0),x[s]=P[s],c.setClipPath(new Qt({shape:x})),c.__rectSize=x[o]}else d.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(r);return _.pageIndex!=null&&yr(f,{x:_.contentPosition[0],y:_.contentPosition[1]},p?r:null),this._updatePageInfoView(r,_),P},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;ee(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",d=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",We(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=zd[o],l=Ud[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],d=f.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=T(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,S=null;g<=d;++g)S=T(f[g]),(!S&&y.e>m.s+a||S&&!P(S,m.s))&&(y.i>m.i?m=y:m=S,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=S;for(var g=u-1,m=p,y=p,S=null;g>=-1;--g)S=T(f[g]),(!S||!P(y,S.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=S;return v;function T(x){if(x){var _=x.getBoundingRect(),M=_[l]+x[l];return{s:M,e:M+_[s],i:x.__legendDataIndex}}}function P(x,_){return x.e>=_&&x.s<=_+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e}(hC);function W5(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function j5(t){Ha(pC),t.registerComponentModel(V5),t.registerComponentView(G5),W5(t)}function K5(t){Ha(pC),Ha(j5)}var Hd=Math.sin,Vd=Math.cos,gC=Math.PI,Ea=Math.PI*2,X5=180/gC,mC=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),d=Bi(c-Ea)||(f?u>=Ea:-u>=Ea),h=u>0?u%Ea:u%Ea+Ea,v=!1;d?v=!0:Bi(c)?v=!1:v=h>=gC==!!f;var p=e+n*Vd(o),g=r+i*Hd(o);this._start&&this._add("M",p,g);var m=Math.round(a*X5);if(d){var y=1/this._p,S=(f?1:-1)*(Ea-y);this._add("A",n,i,m,1,+f,e+n*Vd(o+S),r+i*Hd(o+S)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var T=e+n*Vd(s),P=r+i*Hd(s);this._add("A",n,i,m,+v,+f,T,P)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Dp="none",Y5=Math.round;function Z5(t){var e=t.fill;return e!=null&&e!==Dp}function Q5(t){var e=t.stroke;return e!=null&&e!==Dp}var hv=["lineCap","miterLimit","lineJoin"],J5=ke(hv,function(t){return"stroke-"+t.toLowerCase()});function q5(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof Rn){t("opacity",i);return}if(Z5(e)){var a=Ws(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&t("fill-opacity",o)}else t("fill",Dp);if(Q5(e)){var s=Ws(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if(u!==1&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),f<1&&t("stroke-opacity",f),e.lineDash){var d=gp(r),h=d[0],v=d[1];h&&(v=Y5(v||0),t("stroke-dasharray",h.join(",")),(v||n)&&t("stroke-dashoffset",v))}for(var p=0;p<hv.length;p++){var g=hv[p];if(e[g]!==ec[g]){var m=e[g]||ec[g];m&&t(J5[p],m)}}}}var yC="http://www.w3.org/2000/svg",SC="http://www.w3.org/1999/xlink",eN="http://www.w3.org/2000/xmlns/",tN="http://www.w3.org/XML/1998/namespace",$0="ecmeta_";function bC(t){return document.createElementNS(yC,t)}function Kt(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function rN(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function nN(t){return"</"+t+">"}function Lp(t,e){e=e||{};var r=e.newline?`
  59. `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return rN(o,s)+(o!=="style"?O2(l):l||"")+(a?""+r+ke(a,function(u){return n(u)}).join(r)+r:"")+nN(o)}return n(t)}function iN(t,e,r){r=r||{};var n=r.newline?`
  60. `:"",i=" {"+n,a=n+"}",o=ke(gt(t),function(l){return l+i+ke(gt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=ke(gt(e),function(l){return"@keyframes "+l+i+ke(gt(e[l]),function(u){return u+i+ke(gt(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function vv(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function z0(t,e,r,n){return Kt("svg","root",{width:t,height:e,xmlns:yC,"xmlns:xlink":SC,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var aN=0;function xC(){return aN++}var U0={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Da="transform-origin";function oN(t,e,r){var n=Ie({},t.shape);Ie(n,e),t.buildPath(r,n);var i=new mC;return i.reset(tS(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function sN(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Da]=r+"px "+n+"px")}var lN={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function CC(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function uN(t,e,r){var n=t.shape.paths,i={},a,o;if(ee(n,function(l){var u=vv(r.zrId);u.animation=!0,sf(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,d=gt(f),h=d.length;if(h){o=d[h-1];var v=f[o];for(var p in v){var g=v[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=CC(i,r);return a.replace(o,s)}}function H0(t){return We(t)?U0[t]?"cubic-bezier("+U0[t]+")":$v(t)?t:"":""}function sf(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof GS){var s=uN(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],d=H0(f.getClip().easing),h=f.getDelay();d?c.push(d):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var v=c.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function p(y){var S=y[1],T=S.length,P={},x={},_={},M="animation-timing-function";function C(fe,ye,xe){for(var ce=fe.getTracks(),ge=fe.getMaxTime(),Ce=0;Ce<ce.length;Ce++){var se=ce[Ce];if(se.needsAnimate()){var he=se.keyframes,Ae=se.propName;if(xe&&(Ae=xe(Ae)),Ae)for(var Re=0;Re<he.length;Re++){var lt=he[Re],vt=Math.round(lt.time/ge*100)+"%",mt=H0(lt.easing),Fe=lt.rawValue;(We(Fe)||Et(Fe))&&(ye[vt]=ye[vt]||{},ye[vt][Ae]=lt.rawValue,mt&&(ye[vt][M]=mt))}}}}for(var w=0;w<T;w++){var b=S[w],E=b.targetName;E?E==="shape"&&C(b,x):!n&&C(b,P)}for(var A in P){var R={};oS(R,t),Ie(R,P[A]);var k=rS(R),D=P[A][M];_[A]=k?{transform:k}:{},sN(_[A],R),D&&(_[A][M]=D)}var O,$=!0;for(var A in x){_[A]=_[A]||{};var U=!O,D=x[A][M];U&&(O=new Yi);var q=O.len();O.reset(),_[A].d=oN(t,x[A],O);var H=O.len();if(!U&&q!==H){$=!1;break}D&&(_[A][M]=D)}if(!$)for(var A in _)delete _[A].d;if(!n)for(var w=0;w<T;w++){var b=S[w],E=b.targetName;E==="style"&&C(b,_,function(ce){return lN[ce]})}for(var N=gt(_),G=!0,j,w=1;w<N.length;w++){var oe=N[w-1],Y=N[w];if(_[oe][Da]!==_[Y][Da]){G=!1;break}j=_[oe][Da]}if(G&&j){for(var A in _)_[A][Da]&&delete _[A][Da];e[Da]=j}if(vr(N,function(fe){return gt(_[fe]).length>0}).length){var te=CC(_,r);return te+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+xC();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function cN(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};V0(n,e,r)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=xh(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),V0(n,e,r)}}function V0(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+xC(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var ol=Math.round;function wC(t){return t&&We(t.src)}function TC(t){return t&&nt(t.toDataURL)}function kp(t,e,r,n){q5(function(i,a){var o=i==="fill"||i==="stroke";o&&eS(a)?_C(e,t,i,n):o&&zv(a)?AC(r,t,i,n):o&&a==="none"?t[i]="transparent":t[i]=a},e,r,!1),mN(r,t,n)}function Op(t,e){var r=UE(e);r&&(r.each(function(n,i){n!=null&&(t[($0+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[$0+"silent"]="true"))}function G0(t){return Bi(t[0]-1)&&Bi(t[1])&&Bi(t[2])&&Bi(t[3]-1)}function fN(t){return Bi(t[4])&&Bi(t[5])}function Bp(t,e,r){if(e&&!(fN(e)&&G0(e))){var n=1e4;t.transform=G0(e)?"translate("+ol(e[4]*n)/n+" "+ol(e[5]*n)/n+")":cE(e)}}function W0(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(ol(n[a][0]*r)/r),i.push(ol(n[a][1]*r)/r);e.points=i.join(" ")}function j0(t){return!t.smooth}function dN(t){var e=ke(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=ol(s*i)/i)}}}var hN={circle:[dN(["cx","cy","r"])],polyline:[W0,j0],polygon:[W0,j0]};function vN(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function IC(t,e){var r=t.style,n=t.shape,i=hN[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&tS(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&vN(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;c&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var h=d.getVersion(),v=t,p=v.__svgPathBuilder;(v.__svgPathVersion!==h||!p||l!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new mC),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=p.getStr()}return Bp(a,t.transform),kp(a,r,t,e),Op(a,t),e.animation&&sf(t,a,e),e.emphasis&&cN(t,a,e),Kt(s,t.id+"",a)}function pN(t,e){var r=t.style,n=r.image;if(n&&!We(n)&&(wC(n)?n=n.src:TC(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),Bp(l,t.transform),kp(l,r,t,e),Op(l,t),e.animation&&sf(t,l,e),Kt("image",t.id+"",l)}}function gN(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Wi,a=r.x||0,o=dE(r.y||0,Lc(i),r.textBaseline),s=fE[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(ES(r)){var u="",f=r.fontStyle,c=AS(r.fontSize);if(!parseFloat(c))return;var d=r.fontFamily||R1,h=r.fontWeight;u+="font-size:"+c+";font-family:"+d+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Bp(l,t.transform),kp(l,r,t,e),Op(l,t),e.animation&&sf(t,l,e),Kt("text",t.id+"",l,void 0,n)}}function K0(t,e){if(t instanceof yt)return IC(t,e);if(t instanceof Rn)return pN(t,e);if(t instanceof Ys)return gN(t,e)}function mN(t,e,r){var n=t.style;if(hE(n)){var i=vE(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,d=n.shadowBlur,h=Ws(n.shadowColor),v=h.opacity,p=h.color,g=d/2/l,m=d/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Kt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Kt("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":p,"flood-opacity":v})]),a[i]=o}e.filter=Dc(o)}}function _C(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(J1(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(q1(i))a="radialGradient",o.cx=Ze(i.x,.5),o.cy=Ze(i.y,.5),o.r=Ze(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Ch(s[u].offset)*100+"%",d=s[u].color,h=Ws(d),v=h.color,p=h.opacity,g={offset:c};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(Kt("stop",u+"",g))}var m=Kt(a,"",o,l),y=Lp(m),S=n.gradientCache,T=S[y];T||(T=n.zrId+"-g"+n.gradientIdx++,S[y]=T,o.id=T,n.defs[T]=Kt(a,T,o,l)),e[r]=Dc(T)}function AC(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Q1(i)){var d=i.imageWidth,h=i.imageHeight,v=void 0,p=i.image;if(We(p)?v=p:wC(p)?v=p.src:TC(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Zn(d,g),Zn(h,g)}else if(d==null||h==null){var m=function(w,b){if(w){var E=w.elm,A=d||b.width,R=h||b.height;w.tag==="pattern"&&(u?(R=1,A/=a.width):f&&(A=1,R/=a.height)),w.attrs.width=A,w.attrs.height=R,E&&(E.setAttribute("width",A),E.setAttribute("height",R))}},y=jv(v,null,t,function(w){l||m(x,w),m(c,w)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}c=Kt("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(c=pt(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var S,T;l?S=T=1:u?(T=1,S=o.width/a.width):f?(S=1,T=o.height/a.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),T!=null&&!isNaN(T)&&(o.height=T);var P=rS(i);P&&(o.patternTransform=P);var x=Kt("pattern","",o,[c]),_=Lp(x),M=n.patternCache,C=M[_];C||(C=n.zrId+"-p"+n.patternIdx++,M[_]=C,o.id=C,x=n.defs[C]=Kt("pattern",C,o,[c])),e[r]=Dc(C)}}function yN(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=Kt("clipPath",a,o,[IC(t,r)])}e["clip-path"]=Dc(a)}function X0(t){return document.createTextNode(t)}function ka(t,e,r){t.insertBefore(e,r)}function Y0(t,e){t.removeChild(e)}function Z0(t,e){t.appendChild(e)}function EC(t){return t.parentNode}function PC(t){return t.nextSibling}function Gd(t,e){t.textContent=e}var Q0=58,SN=120,bN=Kt("","");function pv(t){return t===void 0}function Hn(t){return t!==void 0}function xN(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function gs(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function sl(t){var e,r=t.children,n=t.tag;if(Hn(n)){var i=t.elm=bC(n);if(Np(bN,t),$e(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&Z0(i,sl(a))}else Hn(t.text)&&!Ye(t.text)&&Z0(i,X0(t.text))}else t.elm=X0(t.text);return t.elm}function MC(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&ka(t,sl(a),e)}}function mc(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Hn(i.tag)){var a=EC(i.elm);Y0(a,i.elm)}else Y0(t,i.elm)}}function Np(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==SN?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(eN,r,o):r.charCodeAt(3)===Q0?n.setAttributeNS(tN,r,o):r.charCodeAt(5)===Q0?n.setAttributeNS(SC,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function CN(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,d,h,v;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:f==null?f=r[--l]:gs(o,u)?(ho(o,u),o=e[++n],u=r[++i]):gs(s,f)?(ho(s,f),s=e[--a],f=r[--l]):gs(o,f)?(ho(o,f),ka(t,o.elm,PC(s.elm)),o=e[++n],f=r[--l]):gs(s,u)?(ho(s,u),ka(t,s.elm,o.elm),s=e[--a],u=r[++i]):(pv(c)&&(c=xN(e,n,a)),d=c[u.key],pv(d)?ka(t,sl(u),o.elm):(h=e[d],h.tag!==u.tag?ka(t,sl(u),o.elm):(ho(h,u),e[d]=void 0,ka(t,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(v=r[l+1]==null?null:r[l+1].elm,MC(t,v,r,i,l)):mc(t,e,n,a))}function ho(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(Np(t,e),pv(e.text)?Hn(n)&&Hn(i)?n!==i&&CN(r,n,i):Hn(i)?(Hn(t.text)&&Gd(r,""),MC(r,null,i,0,i.length-1)):Hn(n)?mc(r,n,0,n.length-1):Hn(t.text)&&Gd(r,""):t.text!==e.text&&(Hn(n)&&mc(r,n,0,n.length-1),Gd(r,e.text)))}function wN(t,e){if(gs(t,e))ho(t,e);else{var r=t.elm,n=EC(r);sl(e),n!==null&&(ka(n,e.elm,PC(r)),mc(n,[t],0,0))}return e}var TN=0,IN=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=J0(),this.configLayer=J0(),this.storage=r,this._opts=n=Ie({},n),this.root=e,this._id="zr"+TN++,this._oldVNode=z0(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=bC("svg");Np(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",wN(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return K0(e,vv(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=vv(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis;var o=[],s=this._bgVNode=_N(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Kt("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=ke(gt(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(Kt("defs","defs",{},u)),e.animation){var f=iN(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Kt("style","stl",{},[],f);o.push(c)}}return z0(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Lp(this.renderToVNode({animation:Ze(e.cssAnimation,!0),emphasis:Ze(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ze(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var d=c.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,p=void 0;for(p=Math.max(h-1,v-1);p>=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m<h;m++){var y={};yN(d[m],y,r);var S=Kt("g","clip-g-"+u++,y,[]);(s?s.children:n).push(S),a[o++]=S,s=S}l=d;var T=K0(c,r);T&&(s?s.children:n).push(T)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=Ty(i,0,n),r=Ty(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if(zv(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=gE(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t}();function J0(t){return function(){}}function _N(t,e,r,n){var i;if(r&&r!=="none")if(i=Kt("rect","bg",{width:t,height:e,x:"0",y:"0"}),eS(r))_C({fill:r},i.attrs,"fill",n);else if(zv(r))AC({style:{fill:r},dirty:Yr,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=Ws(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function AN(t){t.registerPainter("svg",IN)}const EN=ze({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColors:{},textColor:{},options:{}},setup(t){Ha([kB,SB,GB,I5,B5,K5,AN]);const e=t;let r=null;const n=de(),i=_e(()=>{let o=[];if(e.themeColors.length>=10)o=e.themeColors;else if(e.themeColors.length===1)o=ah(e.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=e.themeColors.length,l=ah(e.themeColors[s-1]).analogous(11-s).map(u=>u.toRgbString());o=[...e.themeColors.slice(0,s-1),...l]}return o}),a=()=>{var s,l;const o=e2({type:e.type,data:e.data,themeColors:i.value,textColor:e.textColor,lineSmooth:((s=e.options)==null?void 0:s.lineSmooth)||!1,stack:((l=e.options)==null?void 0:l.stack)||!1});o&&r.setOption(o,!0)};return _r(()=>{r=xk(n.value,null,{renderer:"svg"}),a();const o=()=>r.resize();new ResizeObserver(o).observe(n.value)}),gr(()=>e.type,a),gr(()=>e.data,a),gr(()=>e.themeColors,a),gr(()=>e.textColor,a),(o,s)=>(ie(),ve("div",{class:"chart",ref_key:"chartRef",ref:n},null,512))}}),PN=Ge(EN,[["__scopeId","data-v-a77f2c9e"]]),MN=t=>{if(!t)return{};const{bold:e,em:r,underline:n,strikethrough:i,color:a,backcolor:o,fontsize:s,fontname:l,align:u}=t;let f=`${n?"underline":""} ${i?"line-through":""}`;return f===" "&&(f="none"),{fontWeight:e?"bold":"normal",fontStyle:r?"italic":"normal",textDecoration:f,color:a||"#000",backgroundColor:o||"",fontSize:s||"24px",fontFamily:l||"微软雅黑",textAlign:u||"left"}},RN=t=>t.replace(/\n/g,"</br>").replace(/ /g,"&nbsp;"),DN=t=>({hideCells:_e(()=>{const r=[];for(let n=0;n<t.value.length;n++){const i=t.value[n];for(let a=0;a<i.length;a++){const o=i[a];if(o.colspan>1||o.rowspan>1)for(let s=n;s<n+o.rowspan;s++)for(let l=s===n?a+1:a;l<a+o.colspan;l++)r.push(`${s}_${l}`)}}return r})}),LN=t=>{const e=de(["",""]);return gr(()=>t.value,()=>{t.value&&(e.value=KI(t.value.color))},{immediate:!0}),{subThemeColor:e}},kN=(t,e)=>{_r(()=>{if(!e.value)return;let r="normal";if(/m3u8(#|\?|$)/i.exec(t)?r="hls":/.flv(#|\?|$)/i.exec(t)&&(r="flv"),e.value&&r==="hls"&&(e.value.canPlayType("application/x-mpegURL")||e.value.canPlayType("application/vnd.apple.mpegURL"))&&(r="normal"),r==="hls"){const n=window.Hls;if(n&&n.isSupported()){const i=new n;i.loadSource(t),i.attachMedia(e.value)}}else if(r==="flv"){const n=window.flvjs;if(n&&n.isSupported()){const i=n.createPlayer({type:"flv",url:t});i.attachMediaElement(e.value),i.load()}}})},Fp=t=>(ta("data-v-b2516295"),t=t(),ea(),t),ON={key:0,class:"load-error"},BN=["src","poster"],NN={class:"bezel"},FN=Fp(()=>Q("div",{class:"controller-mask"},null,-1)),$N={class:"controller"},zN={class:"icons icons-left"},UN={class:"icon-content"},HN={class:"volume"},VN={class:"icon-content"},GN=Fp(()=>Q("span",{class:"thumb"},null,-1)),WN=[GN],jN={class:"time"},KN={class:"ptime"},XN={class:"dtime"},YN={class:"icons icons-right"},ZN={class:"speed"},QN={class:"icon speed-icon"},JN=["onClick"],qN={class:"icon-content"},e4={class:"bar"},t4=Fp(()=>Q("span",{class:"thumb"},null,-1)),r4=[t4],n4=ze({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1},needWaitAnimation:{type:Boolean}},setup(t){const e=t;gr(()=>e.needWaitAnimation,()=>{e.autoplay&&!e.needWaitAnimation?w():e.needWaitAnimation&&b()});const r=(se=0)=>{if(se===0||isNaN(se))return"00:00";const he=vt=>vt<10?"0"+vt:""+vt,Ae=Math.floor(se/3600),Re=Math.floor((se-Ae*3600)/60),lt=Math.floor(se-Ae*3600-Re*60);return(Ae>0?[Ae,Re,lt]:[Re,lt]).map(he).join(":")},n=se=>se.getBoundingClientRect().left,i=de(),a=de(),o=de(),s=de(.5),l=de(!0),u=de(0),f=de(0),c=de(0),d=de(!1),h=de(!1),v=de(1),p=de(!1),g=de("00:00"),m=de("0"),y=_e(()=>r(u.value)),S=_e(()=>r(f.value)),T=_e(()=>u.value/f.value*100+"%"),P=_e(()=>c.value/f.value*100+"%"),x=_e(()=>s.value*100+"%"),_=de(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],C=se=>{i.value&&(se=Math.max(se,0),se=Math.min(se,f.value),i.value.currentTime=se,u.value=se)},w=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},b=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},E=()=>{l.value?w():b()},A=se=>{i.value&&(se=Math.max(se,0),se=Math.min(se,1),i.value.volume=se,s.value=se,i.value.muted&&se!==0&&(i.value.muted=!1))},R=se=>{i.value&&(i.value.playbackRate=se),v.value=se},k=()=>{var se;f.value=((se=i.value)==null?void 0:se.duration)||0},D=()=>{var se;u.value=((se=i.value)==null?void 0:se.currentTime)||0},O=()=>{d.value?(C(0),w()):b()},$=()=>{var se;c.value=(se=i.value)!=null&&se.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},U=de(!1),q=()=>U.value=!0,H=se=>{if(!i.value||!a.value)return;let Ae=(("clientX"in se?se.clientX:se.changedTouches[0].clientX)-n(a.value))/a.value.clientWidth;Ae=Math.max(Ae,0),Ae=Math.min(Ae,1);const Re=Ae*f.value;i.value.currentTime=Re,u.value=Re},N=se=>{if(!i.value||!a.value)return;let Ae=(("clientX"in se?se.clientX:se.changedTouches[0].clientX)-n(a.value))/a.value.clientWidth;Ae=Math.max(Ae,0),Ae=Math.min(Ae,1);const Re=Ae*f.value;i.value.currentTime=Re,u.value=Re,document.removeEventListener("mousemove",H),document.removeEventListener("touchmove",H),document.removeEventListener("mouseup",N),document.removeEventListener("touchend",N)},G=()=>{document.addEventListener("mousemove",H),document.addEventListener("touchmove",H),document.addEventListener("mouseup",N),document.addEventListener("touchend",N)},j=se=>{if(!o.value)return;const Ae=(("clientX"in se?se.clientX:se.changedTouches[0].clientX)-n(o.value))/45;A(Ae)},oe=()=>{document.removeEventListener("mousemove",j),document.removeEventListener("touchmove",j),document.removeEventListener("mouseup",oe),document.removeEventListener("touchend",oe)},Y=()=>{document.addEventListener("mousemove",j),document.addEventListener("touchmove",j),document.addEventListener("mouseup",oe),document.addEventListener("touchend",oe)},te=se=>{if(!o.value)return;const he=(se.clientX-n(o.value))/45;A(he)},fe=se=>{if(f.value&&a.value){const he=a.value.getBoundingClientRect().left,Ae=se.clientX-he;if(Ae<0||Ae>a.value.offsetWidth)return;const Re=f.value*(Ae/a.value.offsetWidth);m.value=`${Ae-(Re>=3600?25:20)}px`,g.value=r(Re),p.value=!0}},ye=()=>{i.value&&(i.value.muted?(i.value.muted=!1,A(.5)):(i.value.muted=!0,A(0)))},xe=()=>{d.value=!d.value},ce=de(-1),ge=de(!1),Ce=()=>{ge.value=!1,clearTimeout(ce.value),ce.value=setTimeout(()=>{var se;(se=i.value)!=null&&se.played.length&&(ge.value=!0)},3e3)};return kN(e.src,i),(se,he)=>{const Ae=st("IconPlayOne"),Re=st("IconPause"),lt=st("IconVolumeMute"),vt=st("IconVolumeNotice"),mt=st("IconVolumeSmall");return ie(),ve("div",{class:ft(["video-player",{"hide-controller":ge.value}]),style:be({width:se.width*se.scale+"px",height:se.height*se.scale+"px",transform:`scale(${1/se.scale})`}),onMousemove:he[22]||(he[22]=Fe=>Ce()),onClick:he[23]||(he[23]=Fe=>Ce())},[Q("div",{class:"video-wrap",onClick:he[8]||(he[8]=Fe=>E())},[U.value?(ie(),ve("div",ON,"视频加载失败")):Ue("",!0),Q("video",{class:"video",ref_key:"videoRef",ref:i,src:se.src,poster:se.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:he[0]||(he[0]=Fe=>k()),onTimeupdate:he[1]||(he[1]=Fe=>D()),onEnded:he[2]||(he[2]=Fe=>O()),onProgress:he[3]||(he[3]=Fe=>$()),onPlay:he[4]||(he[4]=()=>{Ce(),l.value=!1}),onPause:he[5]||(he[5]=Fe=>Ce()),onError:he[6]||(he[6]=Fe=>q())},null,40,BN),Q("div",NN,[Q("span",{class:ft(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:he[7]||(he[7]=Fe=>h.value=!1)},[l.value?(ie(),Ke(Ae,{key:0})):(ie(),Ke(Re,{key:1}))],34)])]),FN,Q("div",$N,[Q("div",zN,[Q("div",{class:"icon play-icon",onClick:he[9]||(he[9]=Fe=>E())},[Q("span",UN,[l.value?(ie(),Ke(Ae,{key:0})):(ie(),Ke(Re,{key:1}))])]),Q("div",HN,[Q("div",{class:"icon volume-icon",onClick:he[10]||(he[10]=Fe=>ye())},[Q("span",VN,[s.value===0?(ie(),Ke(lt,{key:0})):s.value===1?(ie(),Ke(vt,{key:1})):(ie(),Ke(mt,{key:2}))])]),Q("div",{class:"volume-bar-wrap",onMousedown:he[11]||(he[11]=Fe=>Y()),onTouchstart:he[12]||(he[12]=Fe=>Y()),onClick:he[13]||(he[13]=Fe=>te(Fe))},[Q("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:o},[Q("div",{class:"volume-bar-inner",style:be({width:x.value})},WN,4)],512)],32)]),Q("span",jN,[Q("span",KN,Pt(y.value),1),Cv(" / "),Q("span",XN,Pt(S.value),1)])]),Q("div",YN,[Q("div",ZN,[Q("div",QN,[Q("span",{class:"icon-content",onClick:he[14]||(he[14]=Fe=>_.value=!_.value)},Pt(v.value===1?"倍速":v.value+"x"),1),_.value?(ie(),ve("div",{key:0,class:"speed-menu",onMouseleave:he[15]||(he[15]=Fe=>_.value=!1)},[(ie(),ve(Xt,null,Lr(M,Fe=>Q("div",{class:ft(["speed-menu-item",{active:Fe.value===v.value}]),key:Fe.label,onClick:Zt=>R(Fe.value)},Pt(Fe.label),11,JN)),64))],32)):Ue("",!0)])]),Q("div",{class:"loop",onClick:he[16]||(he[16]=Fe=>xe())},[Q("div",{class:ft(["icon loop-icon",{active:d.value}])},[Q("span",qN,"循环"+Pt(d.value?"开":"关"),1)],2)])]),Q("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:he[17]||(he[17]=Fe=>G()),onTouchstart:he[18]||(he[18]=Fe=>G()),onMousemove:he[19]||(he[19]=Fe=>fe(Fe)),onMouseenter:he[20]||(he[20]=Fe=>p.value=!0),onMouseleave:he[21]||(he[21]=Fe=>p.value=!1)},[Q("div",{class:ft(["bar-time",{hidden:!p.value}]),style:be({left:m.value})},Pt(g.value),7),Q("div",e4,[Q("div",{class:"loaded",style:be({width:P.value})},null,4),Q("div",{class:"played",style:be({width:T.value})},r4,4)])],544)])],38)}}}),i4=Ge(n4,[["__scopeId","data-v-b2516295"]]),RC=t=>(ta("data-v-589afd06"),t=t(),ea(),t),a4=["src"],o4={class:"controller"},s4={class:"icons"},l4={class:"icon-content"},u4={class:"volume"},c4={class:"icon-content"},f4=RC(()=>Q("span",{class:"thumb"},null,-1)),d4=[f4],h4={class:"time"},v4={class:"ptime"},p4={class:"dtime"},g4={class:"bar"},m4=RC(()=>Q("span",{class:"thumb"},null,-1)),y4=[m4],S4=ze({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1},needWaitAnimation:{type:Boolean}},setup(t,{expose:e}){const r=t;gr(()=>r.needWaitAnimation,()=>{r.autoplay&&!r.needWaitAnimation?_():r.needWaitAnimation&&M()});const n=(Y=0)=>{if(Y===0||isNaN(Y))return"00:00";const te=ce=>ce<10?"0"+ce:""+ce,fe=Math.floor(Y/3600),ye=Math.floor((Y-fe*3600)/60),xe=Math.floor(Y-fe*3600-ye*60);return(fe>0?[fe,ye,xe]:[ye,xe]).map(te).join(":")},i=Y=>Y.getBoundingClientRect().left,a=de(),o=de(),s=de(),l=de(.5),u=de(!0),f=de(0),c=de(0),d=de(0),h=de(!1),v=de(!1),p=de("00:00"),g=de("0"),m=_e(()=>n(f.value)),y=_e(()=>n(c.value)),S=_e(()=>f.value/c.value*100+"%"),T=_e(()=>d.value/c.value*100+"%"),P=_e(()=>l.value*100+"%"),x=Y=>{a.value&&(Y=Math.max(Y,0),Y=Math.min(Y,c.value),a.value.currentTime=Y,f.value=Y)},_=()=>{a.value&&(u.value=!1,a.value.play())},M=()=>{a.value&&(u.value=!0,a.value.pause())},C=()=>{u.value?_():M()},w=Y=>{a.value&&(Y=Math.max(Y,0),Y=Math.min(Y,1),a.value.volume=Y,l.value=Y,a.value.muted&&Y!==0&&(a.value.muted=!1))},b=()=>{var Y;c.value=((Y=a.value)==null?void 0:Y.duration)||0},E=()=>{var Y;f.value=((Y=a.value)==null?void 0:Y.currentTime)||0},A=()=>{u.value=!1},R=()=>{h.value||(r.loop?(x(0),_()):M())},k=()=>{var Y;d.value=(Y=a.value)!=null&&Y.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},D=()=>Nr.error("音频加载失败"),O=Y=>{if(!a.value||!o.value)return;let fe=(("clientX"in Y?Y.clientX:Y.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;fe=Math.max(fe,0),fe=Math.min(fe,1);const ye=fe*c.value;a.value.currentTime=ye,f.value=ye},$=Y=>{if(!a.value||!o.value)return;let fe=(("clientX"in Y?Y.clientX:Y.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;fe=Math.max(fe,0),fe=Math.min(fe,1);const ye=fe*c.value;a.value.currentTime=ye,f.value=ye;const xe=setTimeout(()=>{clearTimeout(xe),h.value=!1},500);document.removeEventListener("mousemove",O),document.removeEventListener("touchmove",O),document.removeEventListener("mouseup",$),document.removeEventListener("touchend",$)},U=()=>{h.value=!0,document.addEventListener("mousemove",O),document.addEventListener("touchmove",O),document.addEventListener("mouseup",$),document.addEventListener("touchend",$)},q=Y=>{if(!s.value)return;const fe=(("clientX"in Y?Y.clientX:Y.changedTouches[0].clientX)-i(s.value))/45;w(fe)},H=()=>{document.removeEventListener("mousemove",q),document.removeEventListener("touchmove",q),document.removeEventListener("mouseup",H),document.removeEventListener("touchend",H)},N=()=>{document.addEventListener("mousemove",q),document.addEventListener("touchmove",q),document.addEventListener("mouseup",H),document.addEventListener("touchend",H)},G=Y=>{if(!s.value)return;const te=(Y.clientX-i(s.value))/45;w(te)},j=Y=>{if(c.value&&o.value){const te=o.value.getBoundingClientRect().left,fe=Y.clientX-te;if(fe<0||fe>o.value.offsetWidth)return;const ye=c.value*(fe/o.value.offsetWidth);g.value=`${fe-(ye>=3600?25:20)}px`,p.value=n(ye),v.value=!0}},oe=()=>{a.value&&(a.value.muted?(a.value.muted=!1,w(.5)):(a.value.muted=!0,w(0)))};return e({toggle:C}),(Y,te)=>{const fe=st("IconPlayOne"),ye=st("IconPause"),xe=st("IconVolumeMute"),ce=st("IconVolumeNotice"),ge=st("IconVolumeSmall");return ie(),ve("div",{class:"audio-player",style:be({transform:`scale(${1/Y.scale})`})},[Q("audio",{class:"audio",ref_key:"audioRef",ref:a,src:Y.src,onDurationchange:te[0]||(te[0]=Ce=>b()),onTimeupdate:te[1]||(te[1]=Ce=>E()),onPlay:te[2]||(te[2]=Ce=>A()),onEnded:te[3]||(te[3]=Ce=>R()),onProgress:te[4]||(te[4]=Ce=>k()),onError:te[5]||(te[5]=Ce=>D())},null,40,a4),Q("div",o4,[Q("div",s4,[Q("div",{class:"icon play-icon",onClick:te[6]||(te[6]=Ce=>C())},[Q("span",l4,[u.value?(ie(),Ke(fe,{key:0})):(ie(),Ke(ye,{key:1}))])]),Q("div",u4,[Q("div",{class:"icon volume-icon",onClick:te[7]||(te[7]=Ce=>oe())},[Q("span",c4,[l.value===0?(ie(),Ke(xe,{key:0})):l.value===1?(ie(),Ke(ce,{key:1})):(ie(),Ke(ge,{key:2}))])]),Q("div",{class:"volume-bar-wrap",onMousedown:te[8]||(te[8]=Ce=>N()),onTouchstart:te[9]||(te[9]=Ce=>N()),onClick:te[10]||(te[10]=Ce=>G(Ce))},[Q("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[Q("div",{class:"volume-bar-inner",style:be({width:P.value})},d4,4)],512)],32)])]),Q("span",h4,[Q("span",v4,Pt(m.value),1),Cv(" / "),Q("span",p4,Pt(y.value),1)]),Q("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:te[11]||(te[11]=Ce=>U()),onTouchstart:te[12]||(te[12]=Ce=>U()),onMousemove:te[13]||(te[13]=Ce=>j(Ce)),onMouseenter:te[14]||(te[14]=Ce=>v.value=!0),onMouseleave:te[15]||(te[15]=Ce=>v.value=!1)},[Q("div",{class:ft(["bar-time",{hidden:!v.value}]),style:be({left:g.value})},Pt(p.value),7),Q("div",g4,[Q("div",{class:"loaded",style:be({width:T.value})},null,4),Q("div",{class:"played",style:be({width:S.value})},y4,4)])],544)])],4)}}}),b4=Ge(S4,[["__scopeId","data-v-589afd06"]]),x4={key:0,class:"loading-overlay"},C4=ul('<div class="loadingBox" data-v-7ab31ac7><div class="loadingItem" data-v-7ab31ac7></div><div class="loadingItem" data-v-7ab31ac7></div><div class="loadingItem" data-v-7ab31ac7></div><div class="loadingItem" data-v-7ab31ac7></div></div>',1),w4=[C4],T4=["src"],I4=ze({__name:"cloudCoachPlayer",props:{width:{},height:{},id:{},scale:{default:1}},setup(t){const e=t,r=_e(()=>di.fromType==="CLASS"?`${Hu}?v=${Date.now()}&Authorization=${hi()}&id=${e.id}&iscurseplay=play&modelType=practise&showCourseMember=true&showGuide=true&showWebGuide=false&instrumentId=${di.instrumentId}&zoom=0.8`:`${Hu}?v=${Date.now()}&showGuide=true&showWebGuide=false&platform=pc&imagePos=right&zoom=0.8&modelType=practise&instrumentId=${di.instrumentId}&iscurseplay=play&id=${e.id}&Authorization=${hi()}`),n=de(!0);function i(){n.value=!1}return(a,o)=>(ie(),ve("div",{class:"cloudCoachPlayer",style:be({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(ie(),ve("div",x4,w4)):Ue("",!0),Q("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,T4)],4))}}),_4=Ge(I4,[["__scopeId","data-v-7ab31ac7"]]);var DC={exports:{}};const A4=Iv(BI);/**!
  61. * Sortable 1.14.0
  62. * @author RubaXa <trash@rubaxa.org>
  63. * @author owenm <owen23355@gmail.com>
  64. * @license MIT
  65. */function q0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Qn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?q0(Object(r),!0).forEach(function(n){E4(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Nu(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nu=function(e){return typeof e}:Nu=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nu(t)}function E4(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pn(){return pn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pn.apply(this,arguments)}function P4(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function M4(t,e){if(t==null)return{};var r=P4(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function R4(t){return D4(t)||L4(t)||k4(t)||O4()}function D4(t){if(Array.isArray(t))return gv(t)}function L4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function k4(t,e){if(t){if(typeof t=="string")return gv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gv(t,e)}}function gv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function O4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  66. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B4="1.14.0";function gi(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var bi=gi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Sl=gi(/Edge/i),e1=gi(/firefox/i),Ns=gi(/safari/i)&&!gi(/chrome/i)&&!gi(/android/i),LC=gi(/iP(ad|od|hone)/i),N4=gi(/chrome/i)&&gi(/android/i),kC={capture:!1,passive:!1};function ct(t,e,r){t.addEventListener(e,r,!bi&&kC)}function ot(t,e,r){t.removeEventListener(e,r,!bi&&kC)}function yc(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function F4(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function An(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&yc(t,e):yc(t,e))||n&&t===r)return t;if(t===r)break}while(t=F4(t))}return null}var t1=/\s+/g;function Bt(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(t1," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(t1," ")}}function Be(t,e,r){var n=t&&t.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),e===void 0?r:r[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=r+(typeof r=="string"?"":"px")}}function za(t,e){var r="";if(typeof t=="string")r=t;else do{var n=Be(t,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function OC(t,e,r){if(t){var n=t.getElementsByTagName(e),i=0,a=n.length;if(r)for(;i<a;i++)r(n[i],i);return n}return[]}function Yn(){var t=document.scrollingElement;return t||document.documentElement}function Lt(t,e,r,n,i){if(!(!t.getBoundingClientRect&&t!==window)){var a,o,s,l,u,f,c;if(t!==window&&t.parentNode&&t!==Yn()?(a=t.getBoundingClientRect(),o=a.top,s=a.left,l=a.bottom,u=a.right,f=a.height,c=a.width):(o=0,s=0,l=window.innerHeight,u=window.innerWidth,f=window.innerHeight,c=window.innerWidth),(e||r)&&t!==window&&(i=i||t.parentNode,!bi))do if(i&&i.getBoundingClientRect&&(Be(i,"transform")!=="none"||r&&Be(i,"position")!=="static")){var d=i.getBoundingClientRect();o-=d.top+parseInt(Be(i,"border-top-width")),s-=d.left+parseInt(Be(i,"border-left-width")),l=o+a.height,u=s+a.width;break}while(i=i.parentNode);if(n&&t!==window){var h=za(i||t),v=h&&h.a,p=h&&h.d;h&&(o/=p,s/=v,c/=v,f/=p,l=o+f,u=s+c)}return{top:o,left:s,bottom:l,right:u,width:c,height:f}}}function r1(t,e,r){for(var n=zi(t,!0),i=Lt(t)[e];n;){var a=Lt(n)[r],o=void 0;if(o=i>=a,!o)return n;if(n===Yn())break;n=zi(n,!1)}return!1}function Do(t,e,r,n){for(var i=0,a=0,o=t.children;a<o.length;){if(o[a].style.display!=="none"&&o[a]!==je.ghost&&(n||o[a]!==je.dragged)&&An(o[a],r.draggable,t,!1)){if(i===e)return o[a];i++}a++}return null}function $p(t,e){for(var r=t.lastElementChild;r&&(r===je.ghost||Be(r,"display")==="none"||e&&!yc(r,e));)r=r.previousElementSibling;return r||null}function zt(t,e){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==je.clone&&(!e||yc(t,e))&&r++;return r}function n1(t){var e=0,r=0,n=Yn();if(t)do{var i=za(t),a=i.a,o=i.d;e+=t.scrollLeft*a,r+=t.scrollTop*o}while(t!==n&&(t=t.parentNode));return[e,r]}function $4(t,e){for(var r in t)if(t.hasOwnProperty(r)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[r][n])return Number(r)}return-1}function zi(t,e){if(!t||!t.getBoundingClientRect)return Yn();var r=t,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var i=Be(r);if(r.clientWidth<r.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return Yn();if(n||e)return r;n=!0}}while(r=r.parentNode);return Yn()}function z4(t,e){if(t&&e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Wd(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Fs;function BC(t,e){return function(){if(!Fs){var r=arguments,n=this;r.length===1?t.call(n,r[0]):t.apply(n,r),Fs=setTimeout(function(){Fs=void 0},e)}}}function U4(){clearTimeout(Fs),Fs=void 0}function NC(t,e,r){t.scrollLeft+=e,t.scrollTop+=r}function zp(t){var e=window.Polymer,r=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}function i1(t,e){Be(t,"position","absolute"),Be(t,"top",e.top),Be(t,"left",e.left),Be(t,"width",e.width),Be(t,"height",e.height)}function jd(t){Be(t,"position",""),Be(t,"top",""),Be(t,"left",""),Be(t,"width",""),Be(t,"height","")}var pr="Sortable"+new Date().getTime();function H4(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(Be(i,"display")==="none"||i===je.ghost)){t.push({target:i,rect:Lt(i)});var a=Qn({},t[t.length-1].rect);if(i.thisAnimationDuration){var o=za(i,!0);o&&(a.top-=o.f,a.left-=o.e)}i.fromRect=a}})}},addAnimationState:function(n){t.push(n)},removeAnimationState:function(n){t.splice($4(t,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var a=!1,o=0;t.forEach(function(s){var l=0,u=s.target,f=u.fromRect,c=Lt(u),d=u.prevFromRect,h=u.prevToRect,v=s.rect,p=za(u,!0);p&&(c.top-=p.f,c.left-=p.e),u.toRect=c,u.thisAnimationDuration&&Wd(d,c)&&!Wd(f,c)&&(v.top-c.top)/(v.left-c.left)===(f.top-c.top)/(f.left-c.left)&&(l=G4(v,d,h,i.options)),Wd(c,f)||(u.prevFromRect=f,u.prevToRect=c,l||(l=i.options.animation),i.animate(u,v,c,l)),l&&(a=!0,o=Math.max(o,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(e),a?e=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),t=[]},animate:function(n,i,a,o){if(o){Be(n,"transition",""),Be(n,"transform","");var s=za(this.el),l=s&&s.a,u=s&&s.d,f=(i.left-a.left)/(l||1),c=(i.top-a.top)/(u||1);n.animatingX=!!f,n.animatingY=!!c,Be(n,"transform","translate3d("+f+"px,"+c+"px,0)"),this.forRepaintDummy=V4(n),Be(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Be(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Be(n,"transition",""),Be(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function V4(t){return t.offsetWidth}function G4(t,e,r,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))*n.animation}var so=[],Kd={initializeByDefault:!0},bl={mount:function(e){for(var r in Kd)Kd.hasOwnProperty(r)&&!(r in e)&&(e[r]=Kd[r]);so.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),so.push(e)},pluginEvent:function(e,r,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var a=e+"Global";so.forEach(function(o){r[o.pluginName]&&(r[o.pluginName][a]&&r[o.pluginName][a](Qn({sortable:r},n)),r.options[o.pluginName]&&r[o.pluginName][e]&&r[o.pluginName][e](Qn({sortable:r},n)))})},initializePlugins:function(e,r,n,i){so.forEach(function(s){var l=s.pluginName;if(!(!e.options[l]&&!s.initializeByDefault)){var u=new s(e,r,e.options);u.sortable=e,u.options=e.options,e[l]=u,pn(n,u.defaults)}});for(var a in e.options)if(e.options.hasOwnProperty(a)){var o=this.modifyOption(e,a,e.options[a]);typeof o<"u"&&(e.options[a]=o)}},getEventProperties:function(e,r){var n={};return so.forEach(function(i){typeof i.eventProperties=="function"&&pn(n,i.eventProperties.call(r[i.pluginName],e))}),n},modifyOption:function(e,r,n){var i;return so.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[r]=="function"&&(i=a.optionListeners[r].call(e[a.pluginName],n))}),i}};function ms(t){var e=t.sortable,r=t.rootEl,n=t.name,i=t.targetEl,a=t.cloneEl,o=t.toEl,s=t.fromEl,l=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,c=t.newDraggableIndex,d=t.originalEvent,h=t.putSortable,v=t.extraEventProperties;if(e=e||r&&r[pr],!!e){var p,g=e.options,m="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!bi&&!Sl?p=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(n,!0,!0)),p.to=o||r,p.from=s||r,p.item=i||r,p.clone=a,p.oldIndex=l,p.newIndex=u,p.oldDraggableIndex=f,p.newDraggableIndex=c,p.originalEvent=d,p.pullMode=h?h.lastPutMode:void 0;var y=Qn(Qn({},v),bl.getEventProperties(n,e));for(var S in y)p[S]=y[S];r&&r.dispatchEvent(p),g[m]&&g[m].call(e,p)}}var W4=["evt"],Pr=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,a=M4(n,W4);bl.pluginEvent.bind(je)(e,r,Qn({dragEl:Me,parentEl:Nt,ghostEl:et,rootEl:Dt,nextEl:La,lastDownEl:Fu,cloneEl:Ft,cloneHidden:Li,dragStarted:ys,putSortable:rr,activeSortable:je.active,originalEvent:i,oldIndex:So,oldDraggableIndex:$s,newIndex:Wr,newDraggableIndex:Di,hideGhostForTarget:UC,unhideGhostForTarget:HC,cloneNowHidden:function(){Li=!0},cloneNowShown:function(){Li=!1},dispatchSortableEvent:function(s){xr({sortable:r,name:s,originalEvent:i})}},a))};function xr(t){ms(Qn({putSortable:rr,cloneEl:Ft,targetEl:Me,rootEl:Dt,oldIndex:So,oldDraggableIndex:$s,newIndex:Wr,newDraggableIndex:Di},t))}var Me,Nt,et,Dt,La,Fu,Ft,Li,So,Wr,$s,Di,mu,rr,vo=!1,Sc=!1,bc=[],Pa,bn,Xd,Yd,a1,o1,ys,lo,zs,Us=!1,yu=!1,$u,fr,Zd=[],mv=!1,xc=[],lf=typeof document<"u",Su=LC,s1=Sl||bi?"cssFloat":"float",j4=lf&&!N4&&!LC&&"draggable"in document.createElement("div"),FC=function(){if(lf){if(bi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),$C=function(e,r){var n=Be(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Do(e,0,r),o=Do(e,1,r),s=a&&Be(a),l=o&&Be(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Lt(a).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Lt(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&s.float&&s.float!=="none"){var c=s.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&n[s1]==="none"||o&&n[s1]==="none"&&u+f>i)?"vertical":"horizontal"},K4=function(e,r,n){var i=n?e.left:e.top,a=n?e.right:e.bottom,o=n?e.width:e.height,s=n?r.left:r.top,l=n?r.right:r.bottom,u=n?r.width:r.height;return i===s||a===l||i+o/2===s+u/2},X4=function(e,r){var n;return bc.some(function(i){var a=i[pr].options.emptyInsertThreshold;if(!(!a||$p(i))){var o=Lt(i),s=e>=o.left-a&&e<=o.right+a,l=r>=o.top-a&&r<=o.bottom+a;if(s&&l)return n=i}}),n},zC=function(e){function r(a,o){return function(s,l,u,f){var c=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(a==null&&(o||c))return!0;if(a==null||a===!1)return!1;if(o&&a==="clone")return a;if(typeof a=="function")return r(a(s,l,u,f),o)(s,l,u,f);var d=(o?s:l).options.group.name;return a===!0||typeof a=="string"&&a===d||a.join&&a.indexOf(d)>-1}}var n={},i=e.group;(!i||Nu(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=r(i.pull,!0),n.checkPut=r(i.put),n.revertClone=i.revertClone,e.group=n},UC=function(){!FC&&et&&Be(et,"display","none")},HC=function(){!FC&&et&&Be(et,"display","")};lf&&document.addEventListener("click",function(t){if(Sc)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Sc=!1,!1},!0);var Ma=function(e){if(Me){e=e.touches?e.touches[0]:e;var r=X4(e.clientX,e.clientY);if(r){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[pr]._onDragOver(n)}}},Y4=function(e){Me&&Me.parentNode[pr]._isOutsideThisEl(e.target)};function je(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=pn({},e),t[pr]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $C(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:je.supportPointer!==!1&&"PointerEvent"in window&&!Ns,emptyInsertThreshold:5};bl.initializePlugins(this,t,r);for(var n in r)!(n in e)&&(e[n]=r[n]);zC(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:j4,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ct(t,"pointerdown",this._onTapStart):(ct(t,"mousedown",this._onTapStart),ct(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(ct(t,"dragover",this),ct(t,"dragenter",this)),bc.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),pn(this,H4())}je.prototype={constructor:je,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(lo=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,Me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var r=this,n=this.el,i=this.options,a=i.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(s||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,f=i.filter;if(n3(n),!Me&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ns&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=An(l,i.draggable,n,!1),!(l&&l.animated)&&Fu!==l)){if(So=zt(l),$s=zt(l,i.draggable),typeof f=="function"){if(f.call(this,e,l,this)){xr({sortable:r,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),Pr("filter",r,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=An(u,c.trim(),n,!1),c)return xr({sortable:r,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),Pr("filter",r,{evt:e}),!0}),f)){a&&e.cancelable&&e.preventDefault();return}i.handle&&!An(u,i.handle,n,!1)||this._prepareDragStart(e,s,l)}}},_prepareDragStart:function(e,r,n){var i=this,a=i.el,o=i.options,s=a.ownerDocument,l;if(n&&!Me&&n.parentNode===a){var u=Lt(n);if(Dt=a,Me=n,Nt=Me.parentNode,La=Me.nextSibling,Fu=n,mu=o.group,je.dragged=Me,Pa={target:Me,clientX:(r||e).clientX,clientY:(r||e).clientY},a1=Pa.clientX-u.left,o1=Pa.clientY-u.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,Me.style["will-change"]="all",l=function(){if(Pr("delayEnded",i,{evt:e}),je.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!e1&&i.nativeDraggable&&(Me.draggable=!0),i._triggerDragStart(e,r),xr({sortable:i,name:"choose",originalEvent:e}),Bt(Me,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){OC(Me,f.trim(),Qd)}),ct(s,"dragover",Ma),ct(s,"mousemove",Ma),ct(s,"touchmove",Ma),ct(s,"mouseup",i._onDrop),ct(s,"touchend",i._onDrop),ct(s,"touchcancel",i._onDrop),e1&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Me.draggable=!0),Pr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Sl||bi))){if(je.eventCanceled){this._onDrop();return}ct(s,"mouseup",i._disableDelayedDrag),ct(s,"touchend",i._disableDelayedDrag),ct(s,"touchcancel",i._disableDelayedDrag),ct(s,"mousemove",i._delayedDragTouchMoveHandler),ct(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&ct(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Me&&Qd(Me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ot(e,"mouseup",this._disableDelayedDrag),ot(e,"touchend",this._disableDelayedDrag),ot(e,"touchcancel",this._disableDelayedDrag),ot(e,"mousemove",this._delayedDragTouchMoveHandler),ot(e,"touchmove",this._delayedDragTouchMoveHandler),ot(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,r){r=r||e.pointerType=="touch"&&e,!this.nativeDraggable||r?this.options.supportPointer?ct(document,"pointermove",this._onTouchMove):r?ct(document,"touchmove",this._onTouchMove):ct(document,"mousemove",this._onTouchMove):(ct(Me,"dragend",this),ct(Dt,"dragstart",this._onDragStart));try{document.selection?zu(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(vo=!1,Dt&&Me){Pr("dragStarted",this,{evt:r}),this.nativeDraggable&&ct(document,"dragover",Y4);var n=this.options;!e&&Bt(Me,n.dragClass,!1),Bt(Me,n.ghostClass,!0),je.active=this,e&&this._appendGhost(),xr({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(bn){this._lastX=bn.clientX,this._lastY=bn.clientY,UC();for(var e=document.elementFromPoint(bn.clientX,bn.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(bn.clientX,bn.clientY),e!==r);)r=e;if(Me.parentNode[pr]._isOutsideThisEl(e),r)do{if(r[pr]){var n=void 0;if(n=r[pr]._onDragOver({clientX:bn.clientX,clientY:bn.clientY,target:e,rootEl:r}),n&&!this.options.dragoverBubble)break}e=r}while(r=r.parentNode);HC()}},_onTouchMove:function(e){if(Pa){var r=this.options,n=r.fallbackTolerance,i=r.fallbackOffset,a=e.touches?e.touches[0]:e,o=et&&za(et,!0),s=et&&o&&o.a,l=et&&o&&o.d,u=Su&&fr&&n1(fr),f=(a.clientX-Pa.clientX+i.x)/(s||1)+(u?u[0]-Zd[0]:0)/(s||1),c=(a.clientY-Pa.clientY+i.y)/(l||1)+(u?u[1]-Zd[1]:0)/(l||1);if(!je.active&&!vo){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(et){o?(o.e+=f-(Xd||0),o.f+=c-(Yd||0)):o={a:1,b:0,c:0,d:1,e:f,f:c};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Be(et,"webkitTransform",d),Be(et,"mozTransform",d),Be(et,"msTransform",d),Be(et,"transform",d),Xd=f,Yd=c,bn=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!et){var e=this.options.fallbackOnBody?document.body:Dt,r=Lt(Me,!0,Su,!0,e),n=this.options;if(Su){for(fr=e;Be(fr,"position")==="static"&&Be(fr,"transform")==="none"&&fr!==document;)fr=fr.parentNode;fr!==document.body&&fr!==document.documentElement?(fr===document&&(fr=Yn()),r.top+=fr.scrollTop,r.left+=fr.scrollLeft):fr=Yn(),Zd=n1(fr)}et=Me.cloneNode(!0),Bt(et,n.ghostClass,!1),Bt(et,n.fallbackClass,!0),Bt(et,n.dragClass,!0),Be(et,"transition",""),Be(et,"transform",""),Be(et,"box-sizing","border-box"),Be(et,"margin",0),Be(et,"top",r.top),Be(et,"left",r.left),Be(et,"width",r.width),Be(et,"height",r.height),Be(et,"opacity","0.8"),Be(et,"position",Su?"absolute":"fixed"),Be(et,"zIndex","100000"),Be(et,"pointerEvents","none"),je.ghost=et,e.appendChild(et),Be(et,"transform-origin",a1/parseInt(et.style.width)*100+"% "+o1/parseInt(et.style.height)*100+"%")}},_onDragStart:function(e,r){var n=this,i=e.dataTransfer,a=n.options;if(Pr("dragStart",this,{evt:e}),je.eventCanceled){this._onDrop();return}Pr("setupClone",this),je.eventCanceled||(Ft=zp(Me),Ft.draggable=!1,Ft.style["will-change"]="",this._hideClone(),Bt(Ft,this.options.chosenClass,!1),je.clone=Ft),n.cloneId=zu(function(){Pr("clone",n),!je.eventCanceled&&(n.options.removeCloneOnHide||Dt.insertBefore(Ft,Me),n._hideClone(),xr({sortable:n,name:"clone"}))}),!r&&Bt(Me,a.dragClass,!0),r?(Sc=!0,n._loopId=setInterval(n._emulateDragOver,50)):(ot(document,"mouseup",n._onDrop),ot(document,"touchend",n._onDrop),ot(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(n,i,Me)),ct(document,"drop",n),Be(Me,"transform","translateZ(0)")),vo=!0,n._dragStartId=zu(n._dragStarted.bind(n,r,e)),ct(document,"selectstart",n),ys=!0,Ns&&Be(document.body,"user-select","none")},_onDragOver:function(e){var r=this.el,n=e.target,i,a,o,s=this.options,l=s.group,u=je.active,f=mu===l,c=s.sort,d=rr||u,h,v=this,p=!1;if(mv)return;function g($,U){Pr($,v,Qn({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:a,canSort:c,fromSortable:d,target:n,completed:y,onMove:function(H,N){return bu(Dt,r,Me,i,H,Lt(H),e,N)},changed:S},U))}function m(){g("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function y($){return g("dragOverCompleted",{insertion:$}),$&&(f?u._hideClone():u._showClone(v),v!==d&&(Bt(Me,rr?rr.options.ghostClass:u.options.ghostClass,!1),Bt(Me,s.ghostClass,!0)),rr!==v&&v!==je.active?rr=v:v===je.active&&rr&&(rr=null),d===v&&(v._ignoreWhileAnimating=n),v.animateAll(function(){g("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===Me&&!Me.animated||n===r&&!n.animated)&&(lo=null),!s.dragoverBubble&&!e.rootEl&&n!==document&&(Me.parentNode[pr]._isOutsideThisEl(e.target),!$&&Ma(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function S(){Wr=zt(Me),Di=zt(Me,s.draggable),xr({sortable:v,name:"change",toEl:r,newIndex:Wr,newDraggableIndex:Di,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=An(n,s.draggable,r,!0),g("dragOver"),je.eventCanceled)return p;if(Me.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||v._ignoreWhileAnimating===n)return y(!1);if(Sc=!1,u&&!s.disabled&&(f?c||(o=Nt!==Dt):rr===this||(this.lastPutMode=mu.checkPull(this,u,Me,e))&&l.checkPut(this,u,Me,e))){if(h=this._getDirection(e,n)==="vertical",i=Lt(Me),g("dragOverValid"),je.eventCanceled)return p;if(o)return Nt=Dt,m(),this._hideClone(),g("revert"),je.eventCanceled||(La?Dt.insertBefore(Me,La):Dt.appendChild(Me)),y(!0);var T=$p(r,s.draggable);if(!T||q4(e,h,this)&&!T.animated){if(T===Me)return y(!1);if(T&&r===e.target&&(n=T),n&&(a=Lt(n)),bu(Dt,r,Me,i,n,a,e,!!n)!==!1)return m(),r.appendChild(Me),Nt=r,S(),y(!0)}else if(T&&J4(e,h,this)){var P=Do(r,0,s,!0);if(P===Me)return y(!1);if(n=P,a=Lt(n),bu(Dt,r,Me,i,n,a,e,!1)!==!1)return m(),r.insertBefore(Me,P),Nt=r,S(),y(!0)}else if(n.parentNode===r){a=Lt(n);var x=0,_,M=Me.parentNode!==r,C=!K4(Me.animated&&Me.toRect||i,n.animated&&n.toRect||a,h),w=h?"top":"left",b=r1(n,"top","top")||r1(Me,"top","top"),E=b?b.scrollTop:void 0;lo!==n&&(_=a[w],Us=!1,yu=!C&&s.invertSwap||M),x=e3(e,n,a,h,C?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,yu,lo===n);var A;if(x!==0){var R=zt(Me);do R-=x,A=Nt.children[R];while(A&&(Be(A,"display")==="none"||A===et))}if(x===0||A===n)return y(!1);lo=n,zs=x;var k=n.nextElementSibling,D=!1;D=x===1;var O=bu(Dt,r,Me,i,n,a,e,D);if(O!==!1)return(O===1||O===-1)&&(D=O===1),mv=!0,setTimeout(Q4,30),m(),D&&!k?r.appendChild(Me):n.parentNode.insertBefore(Me,D?k:n),b&&NC(b,0,E-b.scrollTop),Nt=Me.parentNode,_!==void 0&&!yu&&($u=Math.abs(_-Lt(n)[w])),S(),y(!0)}if(r.contains(Me))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ot(document,"mousemove",this._onTouchMove),ot(document,"touchmove",this._onTouchMove),ot(document,"pointermove",this._onTouchMove),ot(document,"dragover",Ma),ot(document,"mousemove",Ma),ot(document,"touchmove",Ma)},_offUpEvents:function(){var e=this.el.ownerDocument;ot(e,"mouseup",this._onDrop),ot(e,"touchend",this._onDrop),ot(e,"pointerup",this._onDrop),ot(e,"touchcancel",this._onDrop),ot(document,"selectstart",this)},_onDrop:function(e){var r=this.el,n=this.options;if(Wr=zt(Me),Di=zt(Me,n.draggable),Pr("drop",this,{evt:e}),Nt=Me&&Me.parentNode,Wr=zt(Me),Di=zt(Me,n.draggable),je.eventCanceled){this._nulling();return}vo=!1,yu=!1,Us=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),yv(this.cloneId),yv(this._dragStartId),this.nativeDraggable&&(ot(document,"drop",this),ot(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ns&&Be(document.body,"user-select",""),Be(Me,"transform",""),e&&(ys&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(Dt===Nt||rr&&rr.lastPutMode!=="clone")&&Ft&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),Me&&(this.nativeDraggable&&ot(Me,"dragend",this),Qd(Me),Me.style["will-change"]="",ys&&!vo&&Bt(Me,rr?rr.options.ghostClass:this.options.ghostClass,!1),Bt(Me,this.options.chosenClass,!1),xr({sortable:this,name:"unchoose",toEl:Nt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Dt!==Nt?(Wr>=0&&(xr({rootEl:Nt,name:"add",toEl:Nt,fromEl:Dt,originalEvent:e}),xr({sortable:this,name:"remove",toEl:Nt,originalEvent:e}),xr({rootEl:Nt,name:"sort",toEl:Nt,fromEl:Dt,originalEvent:e}),xr({sortable:this,name:"sort",toEl:Nt,originalEvent:e})),rr&&rr.save()):Wr!==So&&Wr>=0&&(xr({sortable:this,name:"update",toEl:Nt,originalEvent:e}),xr({sortable:this,name:"sort",toEl:Nt,originalEvent:e})),je.active&&((Wr==null||Wr===-1)&&(Wr=So,Di=$s),xr({sortable:this,name:"end",toEl:Nt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Pr("nulling",this),Dt=Me=Nt=et=La=Ft=Fu=Li=Pa=bn=ys=Wr=Di=So=$s=lo=zs=rr=mu=je.dragged=je.ghost=je.clone=je.active=null,xc.forEach(function(e){e.checked=!0}),xc.length=Xd=Yd=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Me&&(this._onDragOver(e),Z4(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],r,n=this.el.children,i=0,a=n.length,o=this.options;i<a;i++)r=n[i],An(r,o.draggable,this.el,!1)&&e.push(r.getAttribute(o.dataIdAttr)||r3(r));return e},sort:function(e,r){var n={},i=this.el;this.toArray().forEach(function(a,o){var s=i.children[o];An(s,this.options.draggable,i,!1)&&(n[a]=s)},this),r&&this.captureAnimationState(),e.forEach(function(a){n[a]&&(i.removeChild(n[a]),i.appendChild(n[a]))}),r&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,r){return An(e,r||this.options.draggable,this.el,!1)},option:function(e,r){var n=this.options;if(r===void 0)return n[e];var i=bl.modifyOption(this,e,r);typeof i<"u"?n[e]=i:n[e]=r,e==="group"&&zC(n)},destroy:function(){Pr("destroy",this);var e=this.el;e[pr]=null,ot(e,"mousedown",this._onTapStart),ot(e,"touchstart",this._onTapStart),ot(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ot(e,"dragover",this),ot(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),bc.splice(bc.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Li){if(Pr("hideClone",this),je.eventCanceled)return;Be(Ft,"display","none"),this.options.removeCloneOnHide&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),Li=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Li){if(Pr("showClone",this),je.eventCanceled)return;Me.parentNode==Dt&&!this.options.group.revertClone?Dt.insertBefore(Ft,Me):La?Dt.insertBefore(Ft,La):Dt.appendChild(Ft),this.options.group.revertClone&&this.animate(Me,Ft),Be(Ft,"display",""),Li=!1}}};function Z4(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function bu(t,e,r,n,i,a,o,s){var l,u=t[pr],f=u.options.onMove,c;return window.CustomEvent&&!bi&&!Sl?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=r,l.draggedRect=n,l.related=i||e,l.relatedRect=a||Lt(e),l.willInsertAfter=s,l.originalEvent=o,t.dispatchEvent(l),f&&(c=f.call(u,l,o)),c}function Qd(t){t.draggable=!1}function Q4(){mv=!1}function J4(t,e,r){var n=Lt(Do(r.el,0,r.options,!0)),i=10;return e?t.clientX<n.left-i||t.clientY<n.top&&t.clientX<n.right:t.clientY<n.top-i||t.clientY<n.bottom&&t.clientX<n.left}function q4(t,e,r){var n=Lt($p(r.el,r.options.draggable)),i=10;return e?t.clientX>n.right+i||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+i}function e3(t,e,r,n,i,a,o,s){var l=n?t.clientY:t.clientX,u=n?r.height:r.width,f=n?r.top:r.left,c=n?r.bottom:r.right,d=!1;if(!o){if(s&&$u<u*i){if(!Us&&(zs===1?l>f+u*a/2:l<c-u*a/2)&&(Us=!0),Us)d=!0;else if(zs===1?l<f+$u:l>c-$u)return-zs}else if(l>f+u*(1-i)/2&&l<c-u*(1-i)/2)return t3(e)}return d=d||o,d&&(l<f+u*a/2||l>c-u*a/2)?l>f+u/2?1:-1:0}function t3(t){return zt(Me)<zt(t)?1:-1}function r3(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,r=e.length,n=0;r--;)n+=e.charCodeAt(r);return n.toString(36)}function n3(t){xc.length=0;for(var e=t.getElementsByTagName("input"),r=e.length;r--;){var n=e[r];n.checked&&xc.push(n)}}function zu(t){return setTimeout(t,0)}function yv(t){return clearTimeout(t)}lf&&ct(document,"touchmove",function(t){(je.active||vo)&&t.cancelable&&t.preventDefault()});je.utils={on:ct,off:ot,css:Be,find:OC,is:function(e,r){return!!An(e,r,e,!1)},extend:z4,throttle:BC,closest:An,toggleClass:Bt,clone:zp,index:zt,nextTick:zu,cancelNextTick:yv,detectDirection:$C,getChild:Do};je.get=function(t){return t[pr]};je.mount=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(je.utils=Qn(Qn({},je.utils),n.utils)),bl.mount(n)})};je.create=function(t,e){return new je(t,e)};je.version=B4;var Ht=[],Ss,Sv,bv=!1,Jd,qd,Cc,bs;function i3(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(r){var n=r.originalEvent;this.sortable.nativeDraggable?ct(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ct(document,"pointermove",this._handleFallbackAutoScroll):n.touches?ct(document,"touchmove",this._handleFallbackAutoScroll):ct(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var n=r.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?ot(document,"dragover",this._handleAutoScroll):(ot(document,"pointermove",this._handleFallbackAutoScroll),ot(document,"touchmove",this._handleFallbackAutoScroll),ot(document,"mousemove",this._handleFallbackAutoScroll)),l1(),Uu(),U4()},nulling:function(){Cc=Sv=Ss=bv=bs=Jd=qd=null,Ht.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,n){var i=this,a=(r.touches?r.touches[0]:r).clientX,o=(r.touches?r.touches[0]:r).clientY,s=document.elementFromPoint(a,o);if(Cc=r,n||this.options.forceAutoScrollFallback||Sl||bi||Ns){eh(r,this.options,s,n);var l=zi(s,!0);bv&&(!bs||a!==Jd||o!==qd)&&(bs&&l1(),bs=setInterval(function(){var u=zi(document.elementFromPoint(a,o),!0);u!==l&&(l=u,Uu()),eh(r,i.options,u,n)},10),Jd=a,qd=o)}else{if(!this.options.bubbleScroll||zi(s,!0)===Yn()){Uu();return}eh(r,this.options,zi(s,!1),!1)}}},pn(t,{pluginName:"scroll",initializeByDefault:!0})}function Uu(){Ht.forEach(function(t){clearInterval(t.pid)}),Ht=[]}function l1(){clearInterval(bs)}var eh=BC(function(t,e,r,n){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,o=e.scrollSensitivity,s=e.scrollSpeed,l=Yn(),u=!1,f;Sv!==r&&(Sv=r,Uu(),Ss=e.scroll,f=e.scrollFn,Ss===!0&&(Ss=zi(r,!0)));var c=0,d=Ss;do{var h=d,v=Lt(h),p=v.top,g=v.bottom,m=v.left,y=v.right,S=v.width,T=v.height,P=void 0,x=void 0,_=h.scrollWidth,M=h.scrollHeight,C=Be(h),w=h.scrollLeft,b=h.scrollTop;h===l?(P=S<_&&(C.overflowX==="auto"||C.overflowX==="scroll"||C.overflowX==="visible"),x=T<M&&(C.overflowY==="auto"||C.overflowY==="scroll"||C.overflowY==="visible")):(P=S<_&&(C.overflowX==="auto"||C.overflowX==="scroll"),x=T<M&&(C.overflowY==="auto"||C.overflowY==="scroll"));var E=P&&(Math.abs(y-i)<=o&&w+S<_)-(Math.abs(m-i)<=o&&!!w),A=x&&(Math.abs(g-a)<=o&&b+T<M)-(Math.abs(p-a)<=o&&!!b);if(!Ht[c])for(var R=0;R<=c;R++)Ht[R]||(Ht[R]={});(Ht[c].vx!=E||Ht[c].vy!=A||Ht[c].el!==h)&&(Ht[c].el=h,Ht[c].vx=E,Ht[c].vy=A,clearInterval(Ht[c].pid),(E!=0||A!=0)&&(u=!0,Ht[c].pid=setInterval((function(){n&&this.layer===0&&je.active._onTouchMove(Cc);var k=Ht[this.layer].vy?Ht[this.layer].vy*s:0,D=Ht[this.layer].vx?Ht[this.layer].vx*s:0;typeof f=="function"&&f.call(je.dragged.parentNode[pr],D,k,t,Cc,Ht[this.layer].el)!=="continue"||NC(Ht[this.layer].el,D,k)}).bind({layer:c}),24))),c++}while(e.bubbleScroll&&d!==l&&(d=zi(d,!1)));bv=u}},30),VC=function(e){var r=e.originalEvent,n=e.putSortable,i=e.dragEl,a=e.activeSortable,o=e.dispatchSortableEvent,s=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(r){var u=n||a;s();var f=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,c=document.elementFromPoint(f.clientX,f.clientY);l(),u&&!u.el.contains(c)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function Up(){}Up.prototype={startIndex:null,dragStart:function(e){var r=e.oldDraggableIndex;this.startIndex=r},onSpill:function(e){var r=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=Do(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(r,i):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:VC};pn(Up,{pluginName:"revertOnSpill"});function Hp(){}Hp.prototype={onSpill:function(e){var r=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),i.animateAll()},drop:VC};pn(Hp,{pluginName:"removeOnSpill"});var nn;function a3(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(r){var n=r.dragEl;nn=n},dragOverValid:function(r){var n=r.completed,i=r.target,a=r.onMove,o=r.activeSortable,s=r.changed,l=r.cancel;if(o.options.swap){var u=this.sortable.el,f=this.options;if(i&&i!==u){var c=nn;a(i)!==!1?(Bt(i,f.swapClass,!0),nn=i):nn=null,c&&c!==nn&&Bt(c,f.swapClass,!1)}s(),n(!0),l()}},drop:function(r){var n=r.activeSortable,i=r.putSortable,a=r.dragEl,o=i||this.sortable,s=this.options;nn&&Bt(nn,s.swapClass,!1),nn&&(s.swap||i&&i.options.swap)&&a!==nn&&(o.captureAnimationState(),o!==n&&n.captureAnimationState(),o3(a,nn),o.animateAll(),o!==n&&n.animateAll())},nulling:function(){nn=null}},pn(t,{pluginName:"swap",eventProperties:function(){return{swapItem:nn}}})}function o3(t,e){var r=t.parentNode,n=e.parentNode,i,a;!r||!n||r.isEqualNode(e)||n.isEqualNode(t)||(i=zt(t),a=zt(e),r.isEqualNode(n)&&i<a&&a++,r.insertBefore(e,r.children[i]),n.insertBefore(t,n.children[a]))}var Qe=[],Gr=[],os,xn,ss=!1,Mr=!1,uo=!1,_t,ls,xu;function s3(){function t(e){for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));e.options.supportPointer?ct(document,"pointerup",this._deselectMultiDrag):(ct(document,"mouseup",this._deselectMultiDrag),ct(document,"touchend",this._deselectMultiDrag)),ct(document,"keydown",this._checkKeyDown),ct(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var o="";Qe.length&&xn===e?Qe.forEach(function(s,l){o+=(l?", ":"")+s.textContent}):o=a.textContent,i.setData("Text",o)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(r){var n=r.dragEl;_t=n},delayEnded:function(){this.isMultiDrag=~Qe.indexOf(_t)},setupClone:function(r){var n=r.sortable,i=r.cancel;if(this.isMultiDrag){for(var a=0;a<Qe.length;a++)Gr.push(zp(Qe[a])),Gr[a].sortableIndex=Qe[a].sortableIndex,Gr[a].draggable=!1,Gr[a].style["will-change"]="",Bt(Gr[a],this.options.selectedClass,!1),Qe[a]===_t&&Bt(Gr[a],this.options.chosenClass,!1);n._hideClone(),i()}},clone:function(r){var n=r.sortable,i=r.rootEl,a=r.dispatchSortableEvent,o=r.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Qe.length&&xn===n&&(u1(!0,i),a("clone"),o()))},showClone:function(r){var n=r.cloneNowShown,i=r.rootEl,a=r.cancel;this.isMultiDrag&&(u1(!1,i),Gr.forEach(function(o){Be(o,"display","")}),n(),xu=!1,a())},hideClone:function(r){var n=this;r.sortable;var i=r.cloneNowHidden,a=r.cancel;this.isMultiDrag&&(Gr.forEach(function(o){Be(o,"display","none"),n.options.removeCloneOnHide&&o.parentNode&&o.parentNode.removeChild(o)}),i(),xu=!0,a())},dragStartGlobal:function(r){r.sortable,!this.isMultiDrag&&xn&&xn.multiDrag._deselectMultiDrag(),Qe.forEach(function(n){n.sortableIndex=zt(n)}),Qe=Qe.sort(function(n,i){return n.sortableIndex-i.sortableIndex}),uo=!0},dragStarted:function(r){var n=this,i=r.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Qe.forEach(function(o){o!==_t&&Be(o,"position","absolute")});var a=Lt(_t,!1,!0,!0);Qe.forEach(function(o){o!==_t&&i1(o,a)}),Mr=!0,ss=!0}i.animateAll(function(){Mr=!1,ss=!1,n.options.animation&&Qe.forEach(function(o){jd(o)}),n.options.sort&&Cu()})}},dragOver:function(r){var n=r.target,i=r.completed,a=r.cancel;Mr&&~Qe.indexOf(n)&&(i(!1),a())},revert:function(r){var n=r.fromSortable,i=r.rootEl,a=r.sortable,o=r.dragRect;Qe.length>1&&(Qe.forEach(function(s){a.addAnimationState({target:s,rect:Mr?Lt(s):o}),jd(s),s.fromRect=o,n.removeAnimationState(s)}),Mr=!1,l3(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(r){var n=r.sortable,i=r.isOwner,a=r.insertion,o=r.activeSortable,s=r.parentEl,l=r.putSortable,u=this.options;if(a){if(i&&o._hideClone(),ss=!1,u.animation&&Qe.length>1&&(Mr||!i&&!o.options.sort&&!l)){var f=Lt(_t,!1,!0,!0);Qe.forEach(function(d){d!==_t&&(i1(d,f),s.appendChild(d))}),Mr=!0}if(!i)if(Mr||Cu(),Qe.length>1){var c=xu;o._showClone(n),o.options.animation&&!xu&&c&&Gr.forEach(function(d){o.addAnimationState({target:d,rect:ls}),d.fromRect=ls,d.thisAnimationDuration=null})}else o._showClone(n)}},dragOverAnimationCapture:function(r){var n=r.dragRect,i=r.isOwner,a=r.activeSortable;if(Qe.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){ls=pn({},n);var o=za(_t,!0);ls.top-=o.f,ls.left-=o.e}},dragOverAnimationComplete:function(){Mr&&(Mr=!1,Cu())},drop:function(r){var n=r.originalEvent,i=r.rootEl,a=r.parentEl,o=r.sortable,s=r.dispatchSortableEvent,l=r.oldIndex,u=r.putSortable,f=u||this.sortable;if(n){var c=this.options,d=a.children;if(!uo)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Bt(_t,c.selectedClass,!~Qe.indexOf(_t)),~Qe.indexOf(_t))Qe.splice(Qe.indexOf(_t),1),os=null,ms({sortable:o,rootEl:i,name:"deselect",targetEl:_t,originalEvt:n});else{if(Qe.push(_t),ms({sortable:o,rootEl:i,name:"select",targetEl:_t,originalEvt:n}),n.shiftKey&&os&&o.el.contains(os)){var h=zt(os),v=zt(_t);if(~h&&~v&&h!==v){var p,g;for(v>h?(g=h,p=v):(g=v,p=h+1);g<p;g++)~Qe.indexOf(d[g])||(Bt(d[g],c.selectedClass,!0),Qe.push(d[g]),ms({sortable:o,rootEl:i,name:"select",targetEl:d[g],originalEvt:n}))}}else os=_t;xn=f}if(uo&&this.isMultiDrag){if(Mr=!1,(a[pr].options.sort||a!==i)&&Qe.length>1){var m=Lt(_t),y=zt(_t,":not(."+this.options.selectedClass+")");if(!ss&&c.animation&&(_t.thisAnimationDuration=null),f.captureAnimationState(),!ss&&(c.animation&&(_t.fromRect=m,Qe.forEach(function(T){if(T.thisAnimationDuration=null,T!==_t){var P=Mr?Lt(T):m;T.fromRect=P,f.addAnimationState({target:T,rect:P})}})),Cu(),Qe.forEach(function(T){d[y]?a.insertBefore(T,d[y]):a.appendChild(T),y++}),l===zt(_t))){var S=!1;Qe.forEach(function(T){if(T.sortableIndex!==zt(T)){S=!0;return}}),S&&s("update")}Qe.forEach(function(T){jd(T)}),f.animateAll()}xn=f}(i===a||u&&u.lastPutMode!=="clone")&&Gr.forEach(function(T){T.parentNode&&T.parentNode.removeChild(T)})}},nullingGlobal:function(){this.isMultiDrag=uo=!1,Gr.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ot(document,"pointerup",this._deselectMultiDrag),ot(document,"mouseup",this._deselectMultiDrag),ot(document,"touchend",this._deselectMultiDrag),ot(document,"keydown",this._checkKeyDown),ot(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(r){if(!(typeof uo<"u"&&uo)&&xn===this.sortable&&!(r&&An(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;Qe.length;){var n=Qe[0];Bt(n,this.options.selectedClass,!1),Qe.shift(),ms({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:r})}},_checkKeyDown:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(r){r.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},pn(t,{pluginName:"multiDrag",utils:{select:function(r){var n=r.parentNode[pr];!n||!n.options.multiDrag||~Qe.indexOf(r)||(xn&&xn!==n&&(xn.multiDrag._deselectMultiDrag(),xn=n),Bt(r,n.options.selectedClass,!0),Qe.push(r))},deselect:function(r){var n=r.parentNode[pr],i=Qe.indexOf(r);!n||!n.options.multiDrag||!~i||(Bt(r,n.options.selectedClass,!1),Qe.splice(i,1))}},eventProperties:function(){var r=this,n=[],i=[];return Qe.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var o;Mr&&a!==_t?o=-1:Mr?o=zt(a,":not(."+r.options.selectedClass+")"):o=zt(a),i.push({multiDragElement:a,index:o})}),{items:R4(Qe),clones:[].concat(Gr),oldIndicies:n,newIndicies:i}},optionListeners:{multiDragKey:function(r){return r=r.toLowerCase(),r==="ctrl"?r="Control":r.length>1&&(r=r.charAt(0).toUpperCase()+r.substr(1)),r}}})}function l3(t,e){Qe.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function u1(t,e){Gr.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function Cu(){Qe.forEach(function(t){t!==_t&&t.parentNode&&t.parentNode.removeChild(t)})}je.mount(new i3);je.mount(Hp,Up);const u3=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:s3,Sortable:je,Swap:a3,default:je},Symbol.toStringTag,{value:"Module"})),c3=Iv(u3);(function(t,e){(function(n,i){t.exports=i(A4,c3)})(typeof self<"u"?self:mr,function(r,n){return function(i){var a={};function o(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=i,o.c=a,o.d=function(s,l,u){o.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,l){if(l&1&&(s=o(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var f in s)o.d(u,f,(function(c){return s[c]}).bind(null,f));return u},o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,"a",l),l},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.p="",o(o.s="fb15")}({"00ee":function(i,a,o){var s=o("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,a,o){var s=o("1c0b");i.exports=function(l,u,f){if(s(l),u===void 0)return l;switch(f){case 0:return function(){return l.call(u)};case 1:return function(c){return l.call(u,c)};case 2:return function(c,d){return l.call(u,c,d)};case 3:return function(c,d,h){return l.call(u,c,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,a,o){var s=o("fc6a"),l=o("241c").f,u={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(d){try{return l(d)}catch{return f.slice()}};i.exports.f=function(h){return f&&u.call(h)=="[object Window]"?c(h):l(s(h))}},"06cf":function(i,a,o){var s=o("83ab"),l=o("d1e7"),u=o("5c6c"),f=o("fc6a"),c=o("c04e"),d=o("5135"),h=o("0cfb"),v=Object.getOwnPropertyDescriptor;a.f=s?v:function(g,m){if(g=f(g),m=c(m,!0),h)try{return v(g,m)}catch{}if(d(g,m))return u(!l.f.call(g,m),g[m])}},"0cfb":function(i,a,o){var s=o("83ab"),l=o("d039"),u=o("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,a,o){var s=o("23e7"),l=o("d58f").left,u=o("a640"),f=o("ae40"),c=u("reduce"),d=f("reduce",{1:0});s({target:"Array",proto:!0,forced:!c||!d},{reduce:function(v){return l(this,v,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,a,o){var s=o("c6b6"),l=o("9263");i.exports=function(u,f){var c=u.exec;if(typeof c=="function"){var d=c.call(u,f);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,f)}},"159b":function(i,a,o){var s=o("da84"),l=o("fdbc"),u=o("17c2"),f=o("9112");for(var c in l){var d=s[c],h=d&&d.prototype;if(h&&h.forEach!==u)try{f(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,a,o){var s=o("b727").forEach,l=o("a640"),u=o("ae40"),f=l("forEach"),c=u("forEach");i.exports=!f||!c?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,a,o){var s=o("d066");i.exports=s("document","documentElement")},"1c0b":function(i,a){i.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(i,a,o){var s=o("b622"),l=s("iterator"),u=!1;try{var f=0,c={next:function(){return{done:!!f++}},return:function(){u=!0}};c[l]=function(){return this},Array.from(c,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var v=!1;try{var p={};p[l]=function(){return{next:function(){return{done:v=!0}}}},d(p)}catch{}return v}},"1d80":function(i,a){i.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(i,a,o){var s=o("d039"),l=o("b622"),u=o("2d00"),f=l("species");i.exports=function(c){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[f]=function(){return{foo:1}},d[c](Boolean).foo!==1})}},"23cb":function(i,a,o){var s=o("a691"),l=Math.max,u=Math.min;i.exports=function(f,c){var d=s(f);return d<0?l(d+c,0):u(d,c)}},"23e7":function(i,a,o){var s=o("da84"),l=o("06cf").f,u=o("9112"),f=o("6eeb"),c=o("ce4e"),d=o("e893"),h=o("94ca");i.exports=function(v,p){var g=v.target,m=v.global,y=v.stat,S,T,P,x,_,M;if(m?T=s:y?T=s[g]||c(g,{}):T=(s[g]||{}).prototype,T)for(P in p){if(_=p[P],v.noTargetGet?(M=l(T,P),x=M&&M.value):x=T[P],S=h(m?P:g+(y?".":"#")+P,v.forced),!S&&x!==void 0){if(typeof _==typeof x)continue;d(_,x)}(v.sham||x&&x.sham)&&u(_,"sham",!0),f(T,P,_,v)}}},"241c":function(i,a,o){var s=o("ca84"),l=o("7839"),u=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(c){return s(c,u)}},"25f0":function(i,a,o){var s=o("6eeb"),l=o("825a"),u=o("d039"),f=o("ad6d"),c="toString",d=RegExp.prototype,h=d[c],v=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),p=h.name!=c;(v||p)&&s(RegExp.prototype,c,function(){var m=l(this),y=String(m.source),S=m.flags,T=String(S===void 0&&m instanceof RegExp&&!("flags"in d)?f.call(m):S);return"/"+y+"/"+T},{unsafe:!0})},"2ca0":function(i,a,o){var s=o("23e7"),l=o("06cf").f,u=o("50c4"),f=o("5a34"),c=o("1d80"),d=o("ab13"),h=o("c430"),v="".startsWith,p=Math.min,g=d("startsWith"),m=!h&&!g&&!!function(){var y=l(String.prototype,"startsWith");return y&&!y.writable}();s({target:"String",proto:!0,forced:!m&&!g},{startsWith:function(S){var T=String(c(this));f(S);var P=u(p(arguments.length>1?arguments[1]:void 0,T.length)),x=String(S);return v?v.call(T,x,P):T.slice(P,P+x.length)===x}})},"2d00":function(i,a,o){var s=o("da84"),l=o("342f"),u=s.process,f=u&&u.versions,c=f&&f.v8,d,h;c?(d=c.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,a,o){var s=o("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,a,o){var s=o("f5df"),l=o("3f8c"),u=o("b622"),f=u("iterator");i.exports=function(c){if(c!=null)return c[f]||c["@@iterator"]||l[s(c)]}},"37e8":function(i,a,o){var s=o("83ab"),l=o("9bf2"),u=o("825a"),f=o("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var v=f(h),p=v.length,g=0,m;p>g;)l.f(d,m=v[g++],h[m]);return d}},"3bbe":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,a,o){var s=o("6547").charAt,l=o("69f3"),u=o("7dd0"),f="String Iterator",c=l.set,d=l.getterFor(f);u(String,"String",function(h){c(this,{type:f,string:String(h),index:0})},function(){var v=d(this),p=v.string,g=v.index,m;return g>=p.length?{value:void 0,done:!0}:(m=s(p,g),v.index+=m.length,{value:m,done:!1})})},"3f8c":function(i,a){i.exports={}},4160:function(i,a,o){var s=o("23e7"),l=o("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,a,o){var s=o("da84");i.exports=s},"44ad":function(i,a,o){var s=o("d039"),l=o("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?u.call(f,""):Object(f)}:Object},"44d2":function(i,a,o){var s=o("b622"),l=o("7c73"),u=o("9bf2"),f=s("unscopables"),c=Array.prototype;c[f]==null&&u.f(c,f,{configurable:!0,value:l(null)}),i.exports=function(d){c[f][d]=!0}},"44e7":function(i,a,o){var s=o("861d"),l=o("c6b6"),u=o("b622"),f=u("match");i.exports=function(c){var d;return s(c)&&((d=c[f])!==void 0?!!d:l(c)=="RegExp")}},4930:function(i,a,o){var s=o("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,a,o){var s=o("fc6a"),l=o("50c4"),u=o("23cb"),f=function(c){return function(d,h,v){var p=s(d),g=l(p.length),m=u(v,g),y;if(c&&h!=h){for(;g>m;)if(y=p[m++],y!=y)return!0}else for(;g>m;m++)if((c||m in p)&&p[m]===h)return c||m||0;return!c&&-1}};i.exports={includes:f(!0),indexOf:f(!1)}},"4de4":function(i,a,o){var s=o("23e7"),l=o("b727").filter,u=o("1dde"),f=o("ae40"),c=u("filter"),d=f("filter");s({target:"Array",proto:!0,forced:!c||!d},{filter:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,a,o){var s=o("0366"),l=o("7b0b"),u=o("9bdd"),f=o("e95a"),c=o("50c4"),d=o("8418"),h=o("35a1");i.exports=function(p){var g=l(p),m=typeof this=="function"?this:Array,y=arguments.length,S=y>1?arguments[1]:void 0,T=S!==void 0,P=h(g),x=0,_,M,C,w,b,E;if(T&&(S=s(S,y>2?arguments[2]:void 0,2)),P!=null&&!(m==Array&&f(P)))for(w=P.call(g),b=w.next,M=new m;!(C=b.call(w)).done;x++)E=T?u(w,S,[C.value,x],!0):C.value,d(M,x,E);else for(_=c(g.length),M=new m(_);_>x;x++)E=T?S(g[x],x):g[x],d(M,x,E);return M.length=x,M}},"4fad":function(i,a,o){var s=o("23e7"),l=o("6f53").entries;s({target:"Object",stat:!0},{entries:function(f){return l(f)}})},"50c4":function(i,a,o){var s=o("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,a){var o={}.hasOwnProperty;i.exports=function(s,l){return o.call(s,l)}},5319:function(i,a,o){var s=o("d784"),l=o("825a"),u=o("7b0b"),f=o("50c4"),c=o("a691"),d=o("1d80"),h=o("8aa5"),v=o("14c3"),p=Math.max,g=Math.min,m=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,T=function(P){return P===void 0?P:String(P)};s("replace",2,function(P,x,_,M){var C=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,w=M.REPLACE_KEEPS_$0,b=C?"$":"$0";return[function(R,k){var D=d(this),O=R==null?void 0:R[P];return O!==void 0?O.call(R,D,k):x.call(String(D),R,k)},function(A,R){if(!C&&w||typeof R=="string"&&R.indexOf(b)===-1){var k=_(x,A,this,R);if(k.done)return k.value}var D=l(A),O=String(this),$=typeof R=="function";$||(R=String(R));var U=D.global;if(U){var q=D.unicode;D.lastIndex=0}for(var H=[];;){var N=v(D,O);if(N===null||(H.push(N),!U))break;var G=String(N[0]);G===""&&(D.lastIndex=h(O,f(D.lastIndex),q))}for(var j="",oe=0,Y=0;Y<H.length;Y++){N=H[Y];for(var te=String(N[0]),fe=p(g(c(N.index),O.length),0),ye=[],xe=1;xe<N.length;xe++)ye.push(T(N[xe]));var ce=N.groups;if($){var ge=[te].concat(ye,fe,O);ce!==void 0&&ge.push(ce);var Ce=String(R.apply(void 0,ge))}else Ce=E(te,O,fe,ye,ce,R);fe>=oe&&(j+=O.slice(oe,fe)+Ce,oe=fe+te.length)}return j+O.slice(oe)}];function E(A,R,k,D,O,$){var U=k+A.length,q=D.length,H=S;return O!==void 0&&(O=u(O),H=y),x.call($,H,function(N,G){var j;switch(G.charAt(0)){case"$":return"$";case"&":return A;case"`":return R.slice(0,k);case"'":return R.slice(U);case"<":j=O[G.slice(1,-1)];break;default:var oe=+G;if(oe===0)return N;if(oe>q){var Y=m(oe/10);return Y===0?N:Y<=q?D[Y-1]===void 0?G.charAt(1):D[Y-1]+G.charAt(1):N}j=D[oe-1]}return j===void 0?"":j})}})},5692:function(i,a,o){var s=o("c430"),l=o("c6cd");(i.exports=function(u,f){return l[u]||(l[u]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,a,o){var s=o("d066"),l=o("241c"),u=o("7418"),f=o("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(f(d)),v=u.f;return v?h.concat(v(d)):h}},"5a34":function(i,a,o){var s=o("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,a){i.exports=function(o,s){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:s}}},"5db7":function(i,a,o){var s=o("23e7"),l=o("a2bf"),u=o("7b0b"),f=o("50c4"),c=o("1c0b"),d=o("65f0");s({target:"Array",proto:!0},{flatMap:function(v){var p=u(this),g=f(p.length),m;return c(v),m=d(p,0),m.length=l(m,p,p,g,0,1,v,arguments.length>1?arguments[1]:void 0),m}})},6547:function(i,a,o){var s=o("a691"),l=o("1d80"),u=function(f){return function(c,d){var h=String(l(c)),v=s(d),p=h.length,g,m;return v<0||v>=p?f?"":void 0:(g=h.charCodeAt(v),g<55296||g>56319||v+1===p||(m=h.charCodeAt(v+1))<56320||m>57343?f?h.charAt(v):g:f?h.slice(v,v+2):(g-55296<<10)+(m-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,a,o){var s=o("861d"),l=o("e8b5"),u=o("b622"),f=u("species");i.exports=function(c,d){var h;return l(c)&&(h=c.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[f],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,a,o){var s=o("7f9a"),l=o("da84"),u=o("861d"),f=o("9112"),c=o("5135"),d=o("f772"),h=o("d012"),v=l.WeakMap,p,g,m,y=function(C){return m(C)?g(C):p(C,{})},S=function(C){return function(w){var b;if(!u(w)||(b=g(w)).type!==C)throw TypeError("Incompatible receiver, "+C+" required");return b}};if(s){var T=new v,P=T.get,x=T.has,_=T.set;p=function(C,w){return _.call(T,C,w),w},g=function(C){return P.call(T,C)||{}},m=function(C){return x.call(T,C)}}else{var M=d("state");h[M]=!0,p=function(C,w){return f(C,M,w),w},g=function(C){return c(C,M)?C[M]:{}},m=function(C){return c(C,M)}}i.exports={set:p,get:g,has:m,enforce:y,getterFor:S}},"6eeb":function(i,a,o){var s=o("da84"),l=o("9112"),u=o("5135"),f=o("ce4e"),c=o("8925"),d=o("69f3"),h=d.get,v=d.enforce,p=String(String).split("String");(i.exports=function(g,m,y,S){var T=S?!!S.unsafe:!1,P=S?!!S.enumerable:!1,x=S?!!S.noTargetGet:!1;if(typeof y=="function"&&(typeof m=="string"&&!u(y,"name")&&l(y,"name",m),v(y).source=p.join(typeof m=="string"?m:"")),g===s){P?g[m]=y:f(m,y);return}else T?!x&&g[m]&&(P=!0):delete g[m];P?g[m]=y:l(g,m,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||c(this)})},"6f53":function(i,a,o){var s=o("83ab"),l=o("df75"),u=o("fc6a"),f=o("d1e7").f,c=function(d){return function(h){for(var v=u(h),p=l(v),g=p.length,m=0,y=[],S;g>m;)S=p[m++],(!s||f.call(v,S))&&y.push(d?[S,v[S]]:v[S]);return y}};i.exports={entries:c(!0),values:c(!1)}},"73d9":function(i,a,o){var s=o("44d2");s("flatMap")},7418:function(i,a){a.f=Object.getOwnPropertySymbols},"746f":function(i,a,o){var s=o("428f"),l=o("5135"),u=o("e538"),f=o("9bf2").f;i.exports=function(c){var d=s.Symbol||(s.Symbol={});l(d,c)||f(d,c,{value:u.f(c)})}},7839:function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,a,o){var s=o("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,a,o){var s=o("825a"),l=o("37e8"),u=o("7839"),f=o("d012"),c=o("1be4"),d=o("cc12"),h=o("f772"),v=">",p="<",g="prototype",m="script",y=h("IE_PROTO"),S=function(){},T=function(C){return p+m+v+C+p+"/"+m+v},P=function(C){C.write(T("")),C.close();var w=C.parentWindow.Object;return C=null,w},x=function(){var C=d("iframe"),w="java"+m+":",b;return C.style.display="none",c.appendChild(C),C.src=String(w),b=C.contentWindow.document,b.open(),b.write(T("document.F=Object")),b.close(),b.F},_,M=function(){try{_=document.domain&&new ActiveXObject("htmlfile")}catch{}M=_?P(_):x();for(var C=u.length;C--;)delete M[g][u[C]];return M()};f[y]=!0,i.exports=Object.create||function(w,b){var E;return w!==null?(S[g]=s(w),E=new S,S[g]=null,E[y]=w):E=M(),b===void 0?E:l(E,b)}},"7dd0":function(i,a,o){var s=o("23e7"),l=o("9ed3"),u=o("e163"),f=o("d2bb"),c=o("d44e"),d=o("9112"),h=o("6eeb"),v=o("b622"),p=o("c430"),g=o("3f8c"),m=o("ae93"),y=m.IteratorPrototype,S=m.BUGGY_SAFARI_ITERATORS,T=v("iterator"),P="keys",x="values",_="entries",M=function(){return this};i.exports=function(C,w,b,E,A,R,k){l(b,w,E);var D=function(Y){if(Y===A&&H)return H;if(!S&&Y in U)return U[Y];switch(Y){case P:return function(){return new b(this,Y)};case x:return function(){return new b(this,Y)};case _:return function(){return new b(this,Y)}}return function(){return new b(this)}},O=w+" Iterator",$=!1,U=C.prototype,q=U[T]||U["@@iterator"]||A&&U[A],H=!S&&q||D(A),N=w=="Array"&&U.entries||q,G,j,oe;if(N&&(G=u(N.call(new C)),y!==Object.prototype&&G.next&&(!p&&u(G)!==y&&(f?f(G,y):typeof G[T]!="function"&&d(G,T,M)),c(G,O,!0,!0),p&&(g[O]=M))),A==x&&q&&q.name!==x&&($=!0,H=function(){return q.call(this)}),(!p||k)&&U[T]!==H&&d(U,T,H),g[w]=H,A)if(j={values:D(x),keys:R?H:D(P),entries:D(_)},k)for(oe in j)(S||$||!(oe in U))&&h(U,oe,j[oe]);else s({target:w,proto:!0,forced:S||$},j);return j}},"7f9a":function(i,a,o){var s=o("da84"),l=o("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,a,o){var s=o("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,a,o){var s=o("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,a,o){var s=o("c04e"),l=o("9bf2"),u=o("5c6c");i.exports=function(f,c,d){var h=s(c);h in f?l.f(f,h,u(0,d)):f[h]=d}},"861d":function(i,a){i.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(i,a,o){var s,l,u;(function(f,c){l=[],s=c,u=typeof s=="function"?s.apply(a,l):s,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function f(){var c=Object.getOwnPropertyDescriptor(document,"currentScript");if(!c&&"currentScript"in document&&document.currentScript||c&&c.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(_){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,v=d.exec(_.stack)||h.exec(_.stack),p=v&&v[1]||!1,g=v&&v[2]||!1,m=document.location.href.replace(document.location.hash,""),y,S,T,P=document.getElementsByTagName("script");p===m&&(y=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),T=y.replace(S,"$1").trim());for(var x=0;x<P.length;x++)if(P[x].readyState==="interactive"||P[x].src===p||p===m&&P[x].innerHTML&&P[x].innerHTML.trim()===T)return P[x];return null}}return f})},8925:function(i,a,o){var s=o("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),i.exports=s.inspectSource},"8aa5":function(i,a,o){var s=o("6547").charAt;i.exports=function(l,u,f){return u+(f?s(l,u).length:1)}},"8bbf":function(i,a){i.exports=r},"90e3":function(i,a){var o=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++o+s).toString(36)}},9112:function(i,a,o){var s=o("83ab"),l=o("9bf2"),u=o("5c6c");i.exports=s?function(f,c,d){return l.f(f,c,u(1,d))}:function(f,c,d){return f[c]=d,f}},9263:function(i,a,o){var s=o("ad6d"),l=o("9f7f"),u=RegExp.prototype.exec,f=String.prototype.replace,c=u,d=function(){var g=/a/,m=/b*/g;return u.call(g,"a"),u.call(m,"a"),g.lastIndex!==0||m.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,p=d||v||h;p&&(c=function(m){var y=this,S,T,P,x,_=h&&y.sticky,M=s.call(y),C=y.source,w=0,b=m;return _&&(M=M.replace("y",""),M.indexOf("g")===-1&&(M+="g"),b=String(m).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&m[y.lastIndex-1]!==`
  67. `)&&(C="(?: "+C+")",b=" "+b,w++),T=new RegExp("^(?:"+C+")",M)),v&&(T=new RegExp("^"+C+"$(?!\\s)",M)),d&&(S=y.lastIndex),P=u.call(_?T:y,b),_?P?(P.input=P.input.slice(w),P[0]=P[0].slice(w),P.index=y.lastIndex,y.lastIndex+=P[0].length):y.lastIndex=0:d&&P&&(y.lastIndex=y.global?P.index+P[0].length:S),v&&P&&P.length>1&&f.call(P[0],T,function(){for(x=1;x<arguments.length-2;x++)arguments[x]===void 0&&(P[x]=void 0)}),P}),i.exports=c},"94ca":function(i,a,o){var s=o("d039"),l=/#|\.prototype\./,u=function(v,p){var g=c[f(v)];return g==h?!0:g==d?!1:typeof p=="function"?s(p):!!p},f=u.normalize=function(v){return String(v).replace(l,".").toLowerCase()},c=u.data={},d=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u},"99af":function(i,a,o){var s=o("23e7"),l=o("d039"),u=o("e8b5"),f=o("861d"),c=o("7b0b"),d=o("50c4"),h=o("8418"),v=o("65f0"),p=o("1dde"),g=o("b622"),m=o("2d00"),y=g("isConcatSpreadable"),S=9007199254740991,T="Maximum allowed index exceeded",P=m>=51||!l(function(){var C=[];return C[y]=!1,C.concat()[0]!==C}),x=p("concat"),_=function(C){if(!f(C))return!1;var w=C[y];return w!==void 0?!!w:u(C)},M=!P||!x;s({target:"Array",proto:!0,forced:M},{concat:function(w){var b=c(this),E=v(b,0),A=0,R,k,D,O,$;for(R=-1,D=arguments.length;R<D;R++)if($=R===-1?b:arguments[R],_($)){if(O=d($.length),A+O>S)throw TypeError(T);for(k=0;k<O;k++,A++)k in $&&h(E,A,$[k])}else{if(A>=S)throw TypeError(T);h(E,A++,$)}return E.length=A,E}})},"9bdd":function(i,a,o){var s=o("825a");i.exports=function(l,u,f,c){try{return c?u(s(f)[0],f[1]):u(f)}catch(h){var d=l.return;throw d!==void 0&&s(d.call(l)),h}}},"9bf2":function(i,a,o){var s=o("83ab"),l=o("0cfb"),u=o("825a"),f=o("c04e"),c=Object.defineProperty;a.f=s?c:function(h,v,p){if(u(h),v=f(v,!0),u(p),l)try{return c(h,v,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(h[v]=p.value),h}},"9ed3":function(i,a,o){var s=o("ae93").IteratorPrototype,l=o("7c73"),u=o("5c6c"),f=o("d44e"),c=o("3f8c"),d=function(){return this};i.exports=function(h,v,p){var g=v+" Iterator";return h.prototype=l(s,{next:u(1,p)}),f(h,g,!1,!0),c[g]=d,h}},"9f7f":function(i,a,o){var s=o("d039");function l(u,f){return RegExp(u,f)}a.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),a.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,a,o){var s=o("e8b5"),l=o("50c4"),u=o("0366"),f=function(c,d,h,v,p,g,m,y){for(var S=p,T=0,P=m?u(m,y,3):!1,x;T<v;){if(T in h){if(x=P?P(h[T],T,d):h[T],g>0&&s(x))S=f(c,d,x,l(x.length),S,g-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");c[S]=x}S++}T++}return S};i.exports=f},a352:function(i,a){i.exports=n},a434:function(i,a,o){var s=o("23e7"),l=o("23cb"),u=o("a691"),f=o("50c4"),c=o("7b0b"),d=o("65f0"),h=o("8418"),v=o("1dde"),p=o("ae40"),g=v("splice"),m=p("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,S=Math.min,T=9007199254740991,P="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!g||!m},{splice:function(_,M){var C=c(this),w=f(C.length),b=l(_,w),E=arguments.length,A,R,k,D,O,$;if(E===0?A=R=0:E===1?(A=0,R=w-b):(A=E-2,R=S(y(u(M),0),w-b)),w+A-R>T)throw TypeError(P);for(k=d(C,R),D=0;D<R;D++)O=b+D,O in C&&h(k,D,C[O]);if(k.length=R,A<R){for(D=b;D<w-R;D++)O=D+R,$=D+A,O in C?C[$]=C[O]:delete C[$];for(D=w;D>w-R+A;D--)delete C[D-1]}else if(A>R)for(D=w-R;D>b;D--)O=D+R-1,$=D+A-1,O in C?C[$]=C[O]:delete C[$];for(D=0;D<A;D++)C[D+b]=arguments[D+2];return C.length=w-R+A,k}})},a4d3:function(i,a,o){var s=o("23e7"),l=o("da84"),u=o("d066"),f=o("c430"),c=o("83ab"),d=o("4930"),h=o("fdbf"),v=o("d039"),p=o("5135"),g=o("e8b5"),m=o("861d"),y=o("825a"),S=o("7b0b"),T=o("fc6a"),P=o("c04e"),x=o("5c6c"),_=o("7c73"),M=o("df75"),C=o("241c"),w=o("057f"),b=o("7418"),E=o("06cf"),A=o("9bf2"),R=o("d1e7"),k=o("9112"),D=o("6eeb"),O=o("5692"),$=o("f772"),U=o("d012"),q=o("90e3"),H=o("b622"),N=o("e538"),G=o("746f"),j=o("d44e"),oe=o("69f3"),Y=o("b727").forEach,te=$("hidden"),fe="Symbol",ye="prototype",xe=H("toPrimitive"),ce=oe.set,ge=oe.getterFor(fe),Ce=Object[ye],se=l.Symbol,he=u("JSON","stringify"),Ae=E.f,Re=A.f,lt=w.f,vt=R.f,mt=O("symbols"),Fe=O("op-symbols"),Zt=O("string-to-symbol-registry"),Ot=O("symbol-to-string-registry"),Sr=O("wks"),mn=l.QObject,ri=!mn||!mn[ye]||!mn[ye].findChild,ni=c&&v(function(){return _(Re({},"a",{get:function(){return Re(this,"a",{value:7}).a}})).a!=7})?function(we,Se,Pe){var Oe=Ae(Ce,Se);Oe&&delete Ce[Se],Re(we,Se,Pe),Oe&&we!==Ce&&Re(Ce,Se,Oe)}:Re,ii=function(we,Se){var Pe=mt[we]=_(se[ye]);return ce(Pe,{type:fe,tag:we,description:Se}),c||(Pe.description=Se),Pe},ae=h?function(we){return typeof we=="symbol"}:function(we){return Object(we)instanceof se},ne=function(Se,Pe,Oe){Se===Ce&&ne(Fe,Pe,Oe),y(Se);var He=P(Pe,!0);return y(Oe),p(mt,He)?(Oe.enumerable?(p(Se,te)&&Se[te][He]&&(Se[te][He]=!1),Oe=_(Oe,{enumerable:x(0,!1)})):(p(Se,te)||Re(Se,te,x(1,{})),Se[te][He]=!0),ni(Se,He,Oe)):Re(Se,He,Oe)},K=function(Se,Pe){y(Se);var Oe=T(Pe),He=M(Oe).concat(pe(Oe));return Y(He,function(ut){(!c||X.call(Oe,ut))&&ne(Se,ut,Oe[ut])}),Se},z=function(Se,Pe){return Pe===void 0?_(Se):K(_(Se),Pe)},X=function(Se){var Pe=P(Se,!0),Oe=vt.call(this,Pe);return this===Ce&&p(mt,Pe)&&!p(Fe,Pe)?!1:Oe||!p(this,Pe)||!p(mt,Pe)||p(this,te)&&this[te][Pe]?Oe:!0},J=function(Se,Pe){var Oe=T(Se),He=P(Pe,!0);if(!(Oe===Ce&&p(mt,He)&&!p(Fe,He))){var ut=Ae(Oe,He);return ut&&p(mt,He)&&!(p(Oe,te)&&Oe[te][He])&&(ut.enumerable=!0),ut}},ue=function(Se){var Pe=lt(T(Se)),Oe=[];return Y(Pe,function(He){!p(mt,He)&&!p(U,He)&&Oe.push(He)}),Oe},pe=function(Se){var Pe=Se===Ce,Oe=lt(Pe?Fe:T(Se)),He=[];return Y(Oe,function(ut){p(mt,ut)&&(!Pe||p(Ce,ut))&&He.push(mt[ut])}),He};if(d||(se=function(){if(this instanceof se)throw TypeError("Symbol is not a constructor");var Se=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Pe=q(Se),Oe=function(He){this===Ce&&Oe.call(Fe,He),p(this,te)&&p(this[te],Pe)&&(this[te][Pe]=!1),ni(this,Pe,x(1,He))};return c&&ri&&ni(Ce,Pe,{configurable:!0,set:Oe}),ii(Pe,Se)},D(se[ye],"toString",function(){return ge(this).tag}),D(se,"withoutSetter",function(we){return ii(q(we),we)}),R.f=X,A.f=ne,E.f=J,C.f=w.f=ue,b.f=pe,N.f=function(we){return ii(H(we),we)},c&&(Re(se[ye],"description",{configurable:!0,get:function(){return ge(this).description}}),f||D(Ce,"propertyIsEnumerable",X,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:se}),Y(M(Sr),function(we){G(we)}),s({target:fe,stat:!0,forced:!d},{for:function(we){var Se=String(we);if(p(Zt,Se))return Zt[Se];var Pe=se(Se);return Zt[Se]=Pe,Ot[Pe]=Se,Pe},keyFor:function(Se){if(!ae(Se))throw TypeError(Se+" is not a symbol");if(p(Ot,Se))return Ot[Se]},useSetter:function(){ri=!0},useSimple:function(){ri=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!c},{create:z,defineProperty:ne,defineProperties:K,getOwnPropertyDescriptor:J}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),s({target:"Object",stat:!0,forced:v(function(){b.f(1)})},{getOwnPropertySymbols:function(Se){return b.f(S(Se))}}),he){var Ee=!d||v(function(){var we=se();return he([we])!="[null]"||he({a:we})!="{}"||he(Object(we))!="{}"});s({target:"JSON",stat:!0,forced:Ee},{stringify:function(Se,Pe,Oe){for(var He=[Se],ut=1,er;arguments.length>ut;)He.push(arguments[ut++]);if(er=Pe,!(!m(Pe)&&Se===void 0||ae(Se)))return g(Pe)||(Pe=function(ai,lr){if(typeof er=="function"&&(lr=er.call(this,ai,lr)),!ae(lr))return lr}),He[1]=Pe,he.apply(null,He)}})}se[ye][xe]||k(se[ye],xe,se[ye].valueOf),j(se,fe),U[te]=!0},a630:function(i,a,o){var s=o("23e7"),l=o("4df4"),u=o("1c7e"),f=!u(function(c){Array.from(c)});s({target:"Array",stat:!0,forced:f},{from:l})},a640:function(i,a,o){var s=o("d039");i.exports=function(l,u){var f=[][l];return!!f&&s(function(){f.call(null,u||function(){throw 1},1)})}},a691:function(i,a){var o=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:o)(l)}},ab13:function(i,a,o){var s=o("b622"),l=s("match");i.exports=function(u){var f=/./;try{"/./"[u](f)}catch{try{return f[l]=!1,"/./"[u](f)}catch{}}return!1}},ac1f:function(i,a,o){var s=o("23e7"),l=o("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,a,o){var s=o("825a");i.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,a,o){var s=o("83ab"),l=o("d039"),u=o("5135"),f=Object.defineProperty,c={},d=function(h){throw h};i.exports=function(h,v){if(u(c,h))return c[h];v||(v={});var p=[][h],g=u(v,"ACCESSORS")?v.ACCESSORS:!1,m=u(v,0)?v[0]:d,y=u(v,1)?v[1]:void 0;return c[h]=!!p&&!l(function(){if(g&&!s)return!0;var S={length:-1};g?f(S,1,{enumerable:!0,get:d}):S[1]=1,p.call(S,m,y)})}},ae93:function(i,a,o){var s=o("e163"),l=o("9112"),u=o("5135"),f=o("b622"),c=o("c430"),d=f("iterator"),h=!1,v=function(){return this},p,g,m;[].keys&&(m=[].keys(),"next"in m?(g=s(s(m)),g!==Object.prototype&&(p=g)):h=!0),p==null&&(p={}),!c&&!u(p,d)&&l(p,d,v),i.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:h}},b041:function(i,a,o){var s=o("00ee"),l=o("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,a,o){var s=o("83ab"),l=o("9bf2").f,u=Function.prototype,f=u.toString,c=/^\s*function ([^ (]*)/,d="name";s&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return f.call(this).match(c)[1]}catch{return""}}})},b622:function(i,a,o){var s=o("da84"),l=o("5692"),u=o("5135"),f=o("90e3"),c=o("4930"),d=o("fdbf"),h=l("wks"),v=s.Symbol,p=d?v:v&&v.withoutSetter||f;i.exports=function(g){return u(h,g)||(c&&u(v,g)?h[g]=v[g]:h[g]=p("Symbol."+g)),h[g]}},b64b:function(i,a,o){var s=o("23e7"),l=o("7b0b"),u=o("df75"),f=o("d039"),c=f(function(){u(1)});s({target:"Object",stat:!0,forced:c},{keys:function(h){return u(l(h))}})},b727:function(i,a,o){var s=o("0366"),l=o("44ad"),u=o("7b0b"),f=o("50c4"),c=o("65f0"),d=[].push,h=function(v){var p=v==1,g=v==2,m=v==3,y=v==4,S=v==6,T=v==5||S;return function(P,x,_,M){for(var C=u(P),w=l(C),b=s(x,_,3),E=f(w.length),A=0,R=M||c,k=p?R(P,E):g?R(P,0):void 0,D,O;E>A;A++)if((T||A in w)&&(D=w[A],O=b(D,A,C),v)){if(p)k[A]=O;else if(O)switch(v){case 3:return!0;case 5:return D;case 6:return A;case 2:d.call(k,D)}else if(y)return!1}return S?-1:m||y?y:k}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(i,a,o){var s=o("861d");i.exports=function(l,u){if(!s(l))return l;var f,c;if(u&&typeof(f=l.toString)=="function"&&!s(c=f.call(l))||typeof(f=l.valueOf)=="function"&&!s(c=f.call(l))||!u&&typeof(f=l.toString)=="function"&&!s(c=f.call(l)))return c;throw TypeError("Can't convert object to primitive value")}},c430:function(i,a){i.exports=!1},c6b6:function(i,a){var o={}.toString;i.exports=function(s){return o.call(s).slice(8,-1)}},c6cd:function(i,a,o){var s=o("da84"),l=o("ce4e"),u="__core-js_shared__",f=s[u]||l(u,{});i.exports=f},c740:function(i,a,o){var s=o("23e7"),l=o("b727").findIndex,u=o("44d2"),f=o("ae40"),c="findIndex",d=!0,h=f(c);c in[]&&Array(1)[c](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!h},{findIndex:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),u(c)},c8ba:function(i,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}i.exports=o},c975:function(i,a,o){var s=o("23e7"),l=o("4d64").indexOf,u=o("a640"),f=o("ae40"),c=[].indexOf,d=!!c&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),v=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!h||!v},{indexOf:function(g){return d?c.apply(this,arguments)||0:l(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,a,o){var s=o("5135"),l=o("fc6a"),u=o("4d64").indexOf,f=o("d012");i.exports=function(c,d){var h=l(c),v=0,p=[],g;for(g in h)!s(f,g)&&s(h,g)&&p.push(g);for(;d.length>v;)s(h,g=d[v++])&&(~u(p,g)||p.push(g));return p}},caad:function(i,a,o){var s=o("23e7"),l=o("4d64").includes,u=o("44d2"),f=o("ae40"),c=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!c},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,a,o){var s=o("da84"),l=o("861d"),u=s.document,f=l(u)&&l(u.createElement);i.exports=function(c){return f?u.createElement(c):{}}},ce4e:function(i,a,o){var s=o("da84"),l=o("9112");i.exports=function(u,f){try{l(s,u,f)}catch{s[u]=f}return f}},d012:function(i,a){i.exports={}},d039:function(i,a){i.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(i,a,o){var s=o("428f"),l=o("da84"),u=function(f){return typeof f=="function"?f:void 0};i.exports=function(f,c){return arguments.length<2?u(s[f])||u(l[f]):s[f]&&s[f][c]||l[f]&&l[f][c]}},d1e7:function(i,a,o){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);a.f=u?function(c){var d=l(this,c);return!!d&&d.enumerable}:s},d28b:function(i,a,o){var s=o("746f");s("iterator")},d2bb:function(i,a,o){var s=o("825a"),l=o("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,f={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(f,[]),u=f instanceof Array}catch{}return function(h,v){return s(h),l(v),u?c.call(h,v):h.__proto__=v,h}}():void 0)},d3b7:function(i,a,o){var s=o("00ee"),l=o("6eeb"),u=o("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,a,o){var s=o("9bf2").f,l=o("5135"),u=o("b622"),f=u("toStringTag");i.exports=function(c,d,h){c&&!l(c=h?c:c.prototype,f)&&s(c,f,{configurable:!0,value:d})}},d58f:function(i,a,o){var s=o("1c0b"),l=o("7b0b"),u=o("44ad"),f=o("50c4"),c=function(d){return function(h,v,p,g){s(v);var m=l(h),y=u(m),S=f(m.length),T=d?S-1:0,P=d?-1:1;if(p<2)for(;;){if(T in y){g=y[T],T+=P;break}if(T+=P,d?T<0:S<=T)throw TypeError("Reduce of empty array with no initial value")}for(;d?T>=0:S>T;T+=P)T in y&&(g=v(g,y[T],T,m));return g}};i.exports={left:c(!1),right:c(!0)}},d784:function(i,a,o){o("ac1f");var s=o("6eeb"),l=o("d039"),u=o("b622"),f=o("9263"),c=o("9112"),d=u("species"),h=!l(function(){var y=/./;return y.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(y,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),p=u("replace"),g=function(){return/./[p]?/./[p]("a","$0")==="":!1}(),m=!l(function(){var y=/(?:)/,S=y.exec;y.exec=function(){return S.apply(this,arguments)};var T="ab".split(y);return T.length!==2||T[0]!=="a"||T[1]!=="b"});i.exports=function(y,S,T,P){var x=u(y),_=!l(function(){var A={};return A[x]=function(){return 7},""[y](A)!=7}),M=_&&!l(function(){var A=!1,R=/a/;return y==="split"&&(R={},R.constructor={},R.constructor[d]=function(){return R},R.flags="",R[x]=/./[x]),R.exec=function(){return A=!0,null},R[x](""),!A});if(!_||!M||y==="replace"&&!(h&&v&&!g)||y==="split"&&!m){var C=/./[x],w=T(x,""[y],function(A,R,k,D,O){return R.exec===f?_&&!O?{done:!0,value:C.call(R,k,D)}:{done:!0,value:A.call(k,R,D)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),b=w[0],E=w[1];s(String.prototype,y,b),s(RegExp.prototype,x,S==2?function(A,R){return E.call(A,this,R)}:function(A){return E.call(A,this)})}P&&c(RegExp.prototype[x],"sham",!0)}},d81d:function(i,a,o){var s=o("23e7"),l=o("b727").map,u=o("1dde"),f=o("ae40"),c=u("map"),d=f("map");s({target:"Array",proto:!0,forced:!c||!d},{map:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,a,o){(function(s){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,o("c8ba"))},dbb4:function(i,a,o){var s=o("23e7"),l=o("83ab"),u=o("56ef"),f=o("fc6a"),c=o("06cf"),d=o("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(v){for(var p=f(v),g=c.f,m=u(p),y={},S=0,T,P;m.length>S;)P=g(p,T=m[S++]),P!==void 0&&d(y,T,P);return y}})},dbf1:function(i,a,o){(function(s){o.d(a,"a",function(){return u});function l(){return typeof window<"u"?window.console:s.console}var u=l()}).call(this,o("c8ba"))},ddb0:function(i,a,o){var s=o("da84"),l=o("fdbc"),u=o("e260"),f=o("9112"),c=o("b622"),d=c("iterator"),h=c("toStringTag"),v=u.values;for(var p in l){var g=s[p],m=g&&g.prototype;if(m){if(m[d]!==v)try{f(m,d,v)}catch{m[d]=v}if(m[h]||f(m,h,p),l[p]){for(var y in u)if(m[y]!==u[y])try{f(m,y,u[y])}catch{m[y]=u[y]}}}}},df75:function(i,a,o){var s=o("ca84"),l=o("7839");i.exports=Object.keys||function(f){return s(f,l)}},e01a:function(i,a,o){var s=o("23e7"),l=o("83ab"),u=o("da84"),f=o("5135"),c=o("861d"),d=o("9bf2").f,h=o("e893"),v=u.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var p={},g=function(){var x=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),_=this instanceof g?new v(x):x===void 0?v():v(x);return x===""&&(p[_]=!0),_};h(g,v);var m=g.prototype=v.prototype;m.constructor=g;var y=m.toString,S=String(v("test"))=="Symbol(test)",T=/^Symbol\((.*)\)[^)]+$/;d(m,"description",{configurable:!0,get:function(){var x=c(this)?this.valueOf():this,_=y.call(x);if(f(p,x))return"";var M=S?_.slice(7,-1):_.replace(T,"$1");return M===""?void 0:M}}),s({global:!0,forced:!0},{Symbol:g})}},e163:function(i,a,o){var s=o("5135"),l=o("7b0b"),u=o("f772"),f=o("e177"),c=u("IE_PROTO"),d=Object.prototype;i.exports=f?Object.getPrototypeOf:function(h){return h=l(h),s(h,c)?h[c]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},e177:function(i,a,o){var s=o("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,a,o){var s=o("fc6a"),l=o("44d2"),u=o("3f8c"),f=o("69f3"),c=o("7dd0"),d="Array Iterator",h=f.set,v=f.getterFor(d);i.exports=c(Array,"Array",function(p,g){h(this,{type:d,target:s(p),index:0,kind:g})},function(){var p=v(this),g=p.target,m=p.kind,y=p.index++;return!g||y>=g.length?(p.target=void 0,{value:void 0,done:!0}):m=="keys"?{value:y,done:!1}:m=="values"?{value:g[y],done:!1}:{value:[y,g[y]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,a,o){var s=o("23e7"),l=o("d039"),u=o("fc6a"),f=o("06cf").f,c=o("83ab"),d=l(function(){f(1)}),h=!c||d;s({target:"Object",stat:!0,forced:h,sham:!c},{getOwnPropertyDescriptor:function(p,g){return f(u(p),g)}})},e538:function(i,a,o){var s=o("b622");a.f=s},e893:function(i,a,o){var s=o("5135"),l=o("56ef"),u=o("06cf"),f=o("9bf2");i.exports=function(c,d){for(var h=l(d),v=f.f,p=u.f,g=0;g<h.length;g++){var m=h[g];s(c,m)||v(c,m,p(d,m))}}},e8b5:function(i,a,o){var s=o("c6b6");i.exports=Array.isArray||function(u){return s(u)=="Array"}},e95a:function(i,a,o){var s=o("b622"),l=o("3f8c"),u=s("iterator"),f=Array.prototype;i.exports=function(c){return c!==void 0&&(l.Array===c||f[u]===c)}},f5df:function(i,a,o){var s=o("00ee"),l=o("c6b6"),u=o("b622"),f=u("toStringTag"),c=l(function(){return arguments}())=="Arguments",d=function(h,v){try{return h[v]}catch{}};i.exports=s?l:function(h){var v,p,g;return h===void 0?"Undefined":h===null?"Null":typeof(p=d(v=Object(h),f))=="string"?p:c?l(v):(g=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":g}},f772:function(i,a,o){var s=o("5692"),l=o("90e3"),u=s("keys");i.exports=function(f){return u[f]||(u[f]=l(f))}},fb15:function(i,a,o){if(o.r(a),typeof window<"u"){var s=window.document.currentScript;{var l=o("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(o.p=u[1])}o("99af"),o("4de4"),o("4160"),o("c975"),o("d81d"),o("a434"),o("159b"),o("a4d3"),o("e439"),o("dbb4"),o("b64b");function f(ae,ne,K){return ne in ae?Object.defineProperty(ae,ne,{value:K,enumerable:!0,configurable:!0,writable:!0}):ae[ne]=K,ae}function c(ae,ne){var K=Object.keys(ae);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(ae);ne&&(z=z.filter(function(X){return Object.getOwnPropertyDescriptor(ae,X).enumerable})),K.push.apply(K,z)}return K}function d(ae){for(var ne=1;ne<arguments.length;ne++){var K=arguments[ne]!=null?arguments[ne]:{};ne%2?c(Object(K),!0).forEach(function(z){f(ae,z,K[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(K)):c(Object(K)).forEach(function(z){Object.defineProperty(ae,z,Object.getOwnPropertyDescriptor(K,z))})}return ae}function h(ae){if(Array.isArray(ae))return ae}o("e01a"),o("d28b"),o("e260"),o("d3b7"),o("3ca3"),o("ddb0");function v(ae,ne){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ae)))){var K=[],z=!0,X=!1,J=void 0;try{for(var ue=ae[Symbol.iterator](),pe;!(z=(pe=ue.next()).done)&&(K.push(pe.value),!(ne&&K.length===ne));z=!0);}catch(Ee){X=!0,J=Ee}finally{try{!z&&ue.return!=null&&ue.return()}finally{if(X)throw J}}return K}}o("a630"),o("fb6a"),o("b0c0"),o("25f0");function p(ae,ne){(ne==null||ne>ae.length)&&(ne=ae.length);for(var K=0,z=new Array(ne);K<ne;K++)z[K]=ae[K];return z}function g(ae,ne){if(ae){if(typeof ae=="string")return p(ae,ne);var K=Object.prototype.toString.call(ae).slice(8,-1);if(K==="Object"&&ae.constructor&&(K=ae.constructor.name),K==="Map"||K==="Set")return Array.from(ae);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return p(ae,ne)}}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  68. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(ae,ne){return h(ae)||v(ae,ne)||g(ae,ne)||m()}function S(ae){if(Array.isArray(ae))return p(ae)}function T(ae){if(typeof Symbol<"u"&&Symbol.iterator in Object(ae))return Array.from(ae)}function P(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  69. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(ae){return S(ae)||T(ae)||g(ae)||P()}var _=o("a352"),M=o.n(_);function C(ae){ae.parentElement!==null&&ae.parentElement.removeChild(ae)}function w(ae,ne,K){var z=K===0?ae.children[0]:ae.children[K-1].nextSibling;ae.insertBefore(ne,z)}var b=o("dbf1");o("13d5"),o("4fad"),o("ac1f"),o("5319");function E(ae){var ne=Object.create(null);return function(z){var X=ne[z];return X||(ne[z]=ae(z))}}var A=/-(\w)/g,R=E(function(ae){return ae.replace(A,function(ne,K){return K.toUpperCase()})});o("5db7"),o("73d9");var k=["Start","Add","Remove","Update","End"],D=["Choose","Unchoose","Sort","Filter","Clone"],O=["Move"],$=[O,k,D].flatMap(function(ae){return ae}).map(function(ae){return"on".concat(ae)}),U={manage:O,manageAndEmit:k,emit:D};function q(ae){return $.indexOf(ae)!==-1}o("caad"),o("2ca0");var H=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function N(ae){return H.includes(ae)}function G(ae){return["transition-group","TransitionGroup"].includes(ae)}function j(ae){return["id","class","role","style"].includes(ae)||ae.startsWith("data-")||ae.startsWith("aria-")||ae.startsWith("on")}function oe(ae){return ae.reduce(function(ne,K){var z=y(K,2),X=z[0],J=z[1];return ne[X]=J,ne},{})}function Y(ae){var ne=ae.$attrs,K=ae.componentData,z=K===void 0?{}:K,X=oe(Object.entries(ne).filter(function(J){var ue=y(J,2),pe=ue[0];return ue[1],j(pe)}));return d(d({},X),z)}function te(ae){var ne=ae.$attrs,K=ae.callBackBuilder,z=oe(fe(ne));Object.entries(K).forEach(function(J){var ue=y(J,2),pe=ue[0],Ee=ue[1];U[pe].forEach(function(we){z["on".concat(we)]=Ee(we)})});var X="[data-draggable]".concat(z.draggable||"");return d(d({},z),{},{draggable:X})}function fe(ae){return Object.entries(ae).filter(function(ne){var K=y(ne,2),z=K[0];return K[1],!j(z)}).map(function(ne){var K=y(ne,2),z=K[0],X=K[1];return[R(z),X]}).filter(function(ne){var K=y(ne,2),z=K[0];return K[1],!q(z)})}o("c740");function ye(ae,ne){if(!(ae instanceof ne))throw new TypeError("Cannot call a class as a function")}function xe(ae,ne){for(var K=0;K<ne.length;K++){var z=ne[K];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(ae,z.key,z)}}function ce(ae,ne,K){return ne&&xe(ae.prototype,ne),ae}var ge=function(ne){var K=ne.el;return K},Ce=function(ne,K){return ne.__draggable_context=K},se=function(ne){return ne.__draggable_context},he=function(){function ae(ne){var K=ne.nodes,z=K.header,X=K.default,J=K.footer,ue=ne.root,pe=ne.realList;ye(this,ae),this.defaultNodes=X,this.children=[].concat(x(z),x(X),x(J)),this.externalComponent=ue.externalComponent,this.rootTransition=ue.transition,this.tag=ue.tag,this.realList=pe}return ce(ae,[{key:"render",value:function(K,z){var X=this.tag,J=this.children,ue=this._isRootComponent,pe=ue?{default:function(){return J}}:J;return K(X,z,pe)}},{key:"updated",value:function(){var K=this.defaultNodes,z=this.realList;K.forEach(function(X,J){Ce(ge(X),{element:z[J],index:J})})}},{key:"getUnderlyingVm",value:function(K){return se(K)}},{key:"getVmIndexFromDomIndex",value:function(K,z){var X=this.defaultNodes,J=X.length,ue=z.children,pe=ue.item(K);if(pe===null)return J;var Ee=se(pe);if(Ee)return Ee.index;if(J===0)return 0;var we=ge(X[0]),Se=x(ue).findIndex(function(Pe){return Pe===we});return K<Se?0:J}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),ae}(),Ae=o("8bbf");function Re(ae,ne){var K=ae[ne];return K?K():[]}function lt(ae){var ne=ae.$slots,K=ae.realList,z=ae.getKey,X=K||[],J=["header","footer"].map(function(Pe){return Re(ne,Pe)}),ue=y(J,2),pe=ue[0],Ee=ue[1],we=ne.item;if(!we)throw new Error("draggable element must have an item slot");var Se=X.flatMap(function(Pe,Oe){return we({element:Pe,index:Oe}).map(function(He){return He.key=z(Pe),He.props=d(d({},He.props||{}),{},{"data-draggable":!0}),He})});if(Se.length!==X.length)throw new Error("Item slot must have only one child");return{header:pe,footer:Ee,default:Se}}function vt(ae){var ne=G(ae),K=!N(ae)&&!ne;return{transition:ne,externalComponent:K,tag:K?Object(Ae.resolveComponent)(ae):ne?Ae.TransitionGroup:ae}}function mt(ae){var ne=ae.$slots,K=ae.tag,z=ae.realList,X=ae.getKey,J=lt({$slots:ne,realList:z,getKey:X}),ue=vt(K);return new he({nodes:J,root:ue,realList:z})}function Fe(ae,ne){var K=this;Object(Ae.nextTick)(function(){return K.$emit(ae.toLowerCase(),ne)})}function Zt(ae){var ne=this;return function(K,z){if(ne.realList!==null)return ne["onDrag".concat(ae)](K,z)}}function Ot(ae){var ne=this,K=Zt.call(this,ae);return function(z,X){K.call(ne,z,X),Fe.call(ne,ae,z)}}var Sr=null,mn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(ne){return ne}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},ri=["update:modelValue","change"].concat(x([].concat(x(U.manageAndEmit),x(U.emit)).map(function(ae){return ae.toLowerCase()}))),ni=Object(Ae.defineComponent)({name:"draggable",inheritAttrs:!1,props:mn,emits:ri,data:function(){return{error:!1}},render:function(){try{this.error=!1;var ne=this.$slots,K=this.$attrs,z=this.tag,X=this.componentData,J=this.realList,ue=this.getKey,pe=mt({$slots:ne,tag:z,realList:J,getKey:ue});this.componentStructure=pe;var Ee=Y({$attrs:K,componentData:X});return pe.render(Ae.h,Ee)}catch(we){return this.error=!0,Object(Ae.h)("pre",{style:{color:"red"}},we.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&b.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var ne=this;if(!this.error){var K=this.$attrs,z=this.$el,X=this.componentStructure;X.updated();var J=te({$attrs:K,callBackBuilder:{manageAndEmit:function(Ee){return Ot.call(ne,Ee)},emit:function(Ee){return Fe.bind(ne,Ee)},manage:function(Ee){return Zt.call(ne,Ee)}}}),ue=z.nodeType===1?z:z.parentElement;this._sortable=new M.a(ue,J),this.targetDomElement=ue,ue.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var ne=this.list;return ne||this.modelValue},getKey:function(){var ne=this.itemKey;return typeof ne=="function"?ne:function(K){return K[ne]}}},watch:{$attrs:{handler:function(ne){var K=this._sortable;K&&fe(ne).forEach(function(z){var X=y(z,2),J=X[0],ue=X[1];K.option(J,ue)})},deep:!0}},methods:{getUnderlyingVm:function(ne){return this.componentStructure.getUnderlyingVm(ne)||null},getUnderlyingPotencialDraggableComponent:function(ne){return ne.__draggable_component__},emitChanges:function(ne){var K=this;Object(Ae.nextTick)(function(){return K.$emit("change",ne)})},alterList:function(ne){if(this.list){ne(this.list);return}var K=x(this.modelValue);ne(K),this.$emit("update:modelValue",K)},spliceList:function(){var ne=arguments,K=function(X){return X.splice.apply(X,x(ne))};this.alterList(K)},updatePosition:function(ne,K){var z=function(J){return J.splice(K,0,J.splice(ne,1)[0])};this.alterList(z)},getRelatedContextFromMoveEvent:function(ne){var K=ne.to,z=ne.related,X=this.getUnderlyingPotencialDraggableComponent(K);if(!X)return{component:X};var J=X.realList,ue={list:J,component:X};if(K!==z&&J){var pe=X.getUnderlyingVm(z)||{};return d(d({},pe),ue)}return ue},getVmIndexFromDomIndex:function(ne){return this.componentStructure.getVmIndexFromDomIndex(ne,this.targetDomElement)},onDragStart:function(ne){this.context=this.getUnderlyingVm(ne.item),ne.item._underlying_vm_=this.clone(this.context.element),Sr=ne.item},onDragAdd:function(ne){var K=ne.item._underlying_vm_;if(K!==void 0){C(ne.item);var z=this.getVmIndexFromDomIndex(ne.newIndex);this.spliceList(z,0,K);var X={element:K,newIndex:z};this.emitChanges({added:X})}},onDragRemove:function(ne){if(w(this.$el,ne.item,ne.oldIndex),ne.pullMode==="clone"){C(ne.clone);return}var K=this.context,z=K.index,X=K.element;this.spliceList(z,1);var J={element:X,oldIndex:z};this.emitChanges({removed:J})},onDragUpdate:function(ne){C(ne.item),w(ne.from,ne.item,ne.oldIndex);var K=this.context.index,z=this.getVmIndexFromDomIndex(ne.newIndex);this.updatePosition(K,z);var X={element:this.context.element,oldIndex:K,newIndex:z};this.emitChanges({moved:X})},computeFutureIndex:function(ne,K){if(!ne.element)return 0;var z=x(K.to.children).filter(function(pe){return pe.style.display!=="none"}),X=z.indexOf(K.related),J=ne.component.getVmIndexFromDomIndex(X),ue=z.indexOf(Sr)!==-1;return ue||!K.willInsertAfter?J:J+1},onDragMove:function(ne,K){var z=this.move,X=this.realList;if(!z||!X)return!0;var J=this.getRelatedContextFromMoveEvent(ne),ue=this.computeFutureIndex(J,ne),pe=d(d({},this.context),{},{futureIndex:ue}),Ee=d(d({},ne),{},{relatedContext:J,draggedContext:pe});return z(Ee,K)},onDragEnd:function(){Sr=null}}}),ii=ni;a.default=ii},fb6a:function(i,a,o){var s=o("23e7"),l=o("861d"),u=o("e8b5"),f=o("23cb"),c=o("50c4"),d=o("fc6a"),h=o("8418"),v=o("b622"),p=o("1dde"),g=o("ae40"),m=p("slice"),y=g("slice",{ACCESSORS:!0,0:0,1:2}),S=v("species"),T=[].slice,P=Math.max;s({target:"Array",proto:!0,forced:!m||!y},{slice:function(_,M){var C=d(this),w=c(C.length),b=f(_,w),E=f(M===void 0?w:M,w),A,R,k;if(u(C)&&(A=C.constructor,typeof A=="function"&&(A===Array||u(A.prototype))?A=void 0:l(A)&&(A=A[S],A===null&&(A=void 0)),A===Array||A===void 0))return T.call(C,b,E);for(R=new(A===void 0?Array:A)(P(E-b,0)),k=0;b<E;b++,k++)b in C&&h(R,k,C[b]);return R.length=k,R}})},fc6a:function(i,a,o){var s=o("44ad"),l=o("1d80");i.exports=function(u){return s(l(u))}},fdbc:function(i,a){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,a,o){var s=o("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(DC);var f3=DC.exports;const d3=Tc(f3),h3=t=>(ta("data-v-565fb9e4"),t=t(),ea(),t),v3={class:"enjoyPlayer"},p3={key:0,class:"enjoyPlayerList"},g3={class:"titNameCon"},m3={class:"titName"},y3={class:"tit"},S3={class:"enjoyPlayerListCon"},b3=["onClick"],x3={class:"itemLeft"},C3={class:"itemRight"},w3=["onClick"],T3=["src"],I3={class:"playerCon"},_3={class:"operateMidCon"},A3={class:"titleCon"},E3={class:"title"},P3={class:"timesCon"},M3={class:"bar"},R3=h3(()=>Q("div",{class:"thumb"},null,-1)),D3=[R3],L3={class:"operateRightBtn"},k3=ze({__name:"enjoyPlayer",props:{scale:{default:1},elementInfo:{},needWaitAnimation:{type:Boolean},isScreening:{type:Boolean,default:!1},isBase:{type:Boolean,default:!1}},setup(t){const e=kt(),r=_v(),n=t;gr(()=>n.needWaitAnimation,()=>{n.needWaitAnimation&&w()});function i(){!n.isBase&&a.value&&o()}const a=de(!1);function o(){n.isBase||(a.value=!a.value,r.setIsPPTWheelPageState(!a.value))}hn(()=>{r.setIsPPTWheelPageState(!0)});function s(){e.updateElement({id:n.elementInfo.id,props:{enjoyList:n.elementInfo.enjoyList}})}function l(N){if(N===n.elementInfo.sid)if(n.elementInfo.enjoyList.length===1)e.deleteElement(n.elementInfo.id);else{const G=n.elementInfo.enjoyList.findIndex(oe=>oe.id===N);n.elementInfo.enjoyList.splice(G,1);const j=n.elementInfo.enjoyList;e.updateElement({id:n.elementInfo.id,props:{sid:j[0].id,title:j[0].title,src:j[0].src,enjoyList:j}}),p.value=!0}else{const G=n.elementInfo.enjoyList.findIndex(j=>j.id===N);n.elementInfo.enjoyList.splice(G,1),e.updateElement({id:n.elementInfo.id,props:{enjoyList:n.elementInfo.enjoyList}})}}function u(N){if(n.elementInfo.enjoyList.length===1)M(0);else{let G=n.elementInfo.enjoyList.findIndex(oe=>oe.id===n.elementInfo.sid);G+=N==="next"?1:-1,G>n.elementInfo.enjoyList.length-1?G=0:G<0&&(G=n.elementInfo.enjoyList.length-1);const j=n.elementInfo.enjoyList[G];e.updateElement({id:n.elementInfo.id,props:{sid:j.id,title:j.title,src:j.src}}),g.value=0,m.value=0,y.value=0}}function f(N){N.id===n.elementInfo.sid?b():(e.updateElement({id:n.elementInfo.id,props:{sid:N.id,title:N.title,src:N.src}}),g.value=0,m.value=0,y.value=0)}const c=(N=0)=>{if(N===0||isNaN(N))return"00:00";const G=te=>te<10?"0"+te:""+te,j=Math.floor(N/3600),oe=Math.floor((N-j*3600)/60),Y=Math.floor(N-j*3600-oe*60);return(j>0?[j,oe,Y]:[oe,Y]).map(G).join(":")},d=N=>N.getBoundingClientRect().left,h=de(),v=de(),p=de(!0),g=de(0),m=de(0),y=de(0),S=de(!1),T=_e(()=>c(g.value)),P=_e(()=>c(m.value)),x=_e(()=>g.value/m.value*100+"%"),_=_e(()=>y.value/m.value*100+"%"),M=N=>{h.value&&(N=Math.max(N,0),N=Math.min(N,m.value),h.value.currentTime=N,g.value=N)},C=()=>{h.value&&(p.value=!1,h.value.play())},w=()=>{h.value&&(p.value=!0,h.value.pause())},b=()=>{p.value?C():w()},E=()=>{var N;m.value=((N=h.value)==null?void 0:N.duration)||0},A=()=>{var N;g.value=((N=h.value)==null?void 0:N.currentTime)||0},R=()=>{p.value=!1},k=()=>{p.value=!0},D=()=>{},O=()=>{var N;y.value=(N=h.value)!=null&&N.buffered.length?h.value.buffered.end(h.value.buffered.length-1):0,p.value||C()},$=()=>Nr.error("音频加载失败"),U=N=>{if(!h.value||!v.value)return;let j=(("clientX"in N?N.clientX:N.changedTouches[0].clientX)-d(v.value))/v.value.clientWidth/n.scale;j=Math.max(j,0),j=Math.min(j,1);const oe=j*m.value;h.value.currentTime=oe,g.value=oe},q=N=>{if(!h.value||!v.value)return;let j=(("clientX"in N?N.clientX:N.changedTouches[0].clientX)-d(v.value))/v.value.clientWidth/n.scale;j=Math.max(j,0),j=Math.min(j,1);const oe=j*m.value;h.value.currentTime=oe,g.value=oe;const Y=setTimeout(()=>{clearTimeout(Y),S.value=!1},500);document.removeEventListener("mousemove",U),document.removeEventListener("touchmove",U),document.removeEventListener("mouseup",q),document.removeEventListener("touchend",q)},H=()=>{S.value=!0,document.addEventListener("mousemove",U),document.addEventListener("touchmove",U),document.addEventListener("mouseup",q),document.addEventListener("touchend",q)};return(N,G)=>{var oe;const j=Ua("click-outside");return hr((ie(),ve("div",v3,[N.isBase?Ue("",!0):hr((ie(),ve("div",p3,[Q("div",g3,[Q("div",m3,[Q("div",y3,Pt(`音频列表 (${((oe=N.elementInfo.enjoyList)==null?void 0:oe.length)||0})`),1)])]),Q("div",S3,[Xe(le(d3),{forceFallback:!0,handle:".drag-handle_enjoyPlayer",modelValue:N.elementInfo.enjoyList,"onUpdate:modelValue":G[1]||(G[1]=Y=>N.elementInfo.enjoyList=Y),itemKey:"id",animation:200,scroll:!0,scrollSensitivity:50,onEnd:s},{item:_n(({element:Y})=>[Q("div",{class:ft(["playerItem",{active:Y.id===N.elementInfo.sid}]),onClick:te=>f(Y)},[Q("div",x3,Pt(Y.title),1),Q("div",C3,[N.isScreening?Ue("",!0):(ie(),ve(Xt,{key:0},[Q("div",{class:"itemListBtn drag-handle_enjoyPlayer",onClick:G[0]||(G[0]=jr(()=>{},["stop"]))}),Q("div",{class:"itemCloseBtn",onClick:jr(te=>l(Y.id),["stop"])},null,8,w3)],64))])],10,b3)]),_:1},8,["modelValue"])])],512)),[[Tv,a.value]]),N.isBase?Ue("",!0):(ie(),ve("audio",{key:1,ref_key:"audioRef",ref:h,src:N.elementInfo.src,onDurationchange:G[2]||(G[2]=Y=>E()),onTimeupdate:G[3]||(G[3]=Y=>A()),onPlay:G[4]||(G[4]=Y=>R()),onPause:G[5]||(G[5]=Y=>k()),onEnded:G[6]||(G[6]=Y=>D()),onProgress:G[7]||(G[7]=Y=>O()),onError:G[8]||(G[8]=Y=>$())},null,40,T3)),Q("div",I3,[Q("div",{class:ft(["operateBtn",{paused:p.value}]),onClick:b},null,2),Q("div",_3,[Q("div",A3,[Q("div",E3,Pt(N.elementInfo.title),1),Q("div",P3,Pt(`${T.value}/${P.value}`),1)]),Q("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:v,onMousedown:G[9]||(G[9]=Y=>H()),onTouchstart:G[10]||(G[10]=Y=>H())},[Q("div",M3,[Q("div",{class:"loaded",style:be({width:_.value})},null,4),Q("div",{class:"played",style:be({width:x.value})},D3,4)])],544)]),Q("div",L3,[Q("div",{class:"preBtn",onClick:G[11]||(G[11]=Y=>u("pre"))}),Q("div",{class:"nextBtn",onClick:G[12]||(G[12]=Y=>u("next"))}),Q("div",{class:"listBtn",onClick:o})])])])),[[j,i]])}}}),GC=Ge(k3,[["__scopeId","data-v-565fb9e4"]]),O3={key:0,class:"loading-overlay"},B3=ul('<div class="loadingBox" data-v-3d410084><div class="loadingItem" data-v-3d410084></div><div class="loadingItem" data-v-3d410084></div><div class="loadingItem" data-v-3d410084></div><div class="loadingItem" data-v-3d410084></div></div>',1),N3=[B3],F3=["src"],$3=ze({__name:"listeningPracticePlayer",props:{width:{},height:{},scale:{default:1},code:{}},setup(t){const e=t,r=_e(()=>di.fromType==="CLASS"?`${Hu}/#/view-figner?Authorization=${hi()}&code=${e.code}&type=listenMode&linkSource=class&isPreView=true`:`${Hu}/#/view-figner?Authorization=${hi()}&code=${e.code}&platform=pc&type=listenMode&linkSource=class`),n=de(!0);function i(){n.value=!1}return(a,o)=>(ie(),ve("div",{class:"listeningPracticePlayer",style:be({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(ie(),ve("div",O3,N3)):Ue("",!0),Q("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,F3)],4))}}),z3=Ge($3,[["__scopeId","data-v-3d410084"]]),U3={key:0,class:"loading-overlay"},H3=ul('<div class="loadingBox" data-v-9bd13094><div class="loadingItem" data-v-9bd13094></div><div class="loadingItem" data-v-9bd13094></div><div class="loadingItem" data-v-9bd13094></div><div class="loadingItem" data-v-9bd13094></div></div>',1),V3=[H3],G3=["src"],W3=ze({__name:"rhythmPracticePlayer",props:{width:{},height:{},scale:{default:1},settingMode:{type:Boolean,default:!1},dataJson:{}},emits:["handleIframeLoad"],setup(t,{expose:e,emit:r}){const n=t,i=r,a=_e(()=>n.settingMode?`${wu}/#/tempo-practice?v=${Date.now()}&Authorization=${hi()}&platform=modal`:di.fromType=="CLASS"?`${wu}/#/tempo-practice?v=${Date.now()}&Authorization=${hi()}&modeType=courseware&dataJson=${n.dataJson}`:`${wu}/#/tempo-practice?v=${Date.now()}&Authorization=${hi()}&platform=modal&dataJson=${n.dataJson}&win=pc`),o=de(),s=de(!0);function l(){s.value=!1,i("handleIframeLoad")}return e({rhythmPracticeIframeDom:o}),(u,f)=>(ie(),ve("div",{class:"rhythmPracticePlayer",style:be({width:u.width*u.scale+"px",height:u.height*u.scale+"px",transform:`scale(${1/u.scale})`})},[s.value?(ie(),ve("div",U3,V3)):Ue("",!0),Q("iframe",{ref_key:"rhythmPracticeIframeDom",ref:o,class:"musicIframe",frameborder:"0",src:a.value,onLoad:l},null,40,G3)],4))}}),j3=Ge(W3,[["__scopeId","data-v-9bd13094"]]),WC=t=>({backgroundStyle:_e(()=>{if(!t.value)return{backgroundColor:"#fff"};const{type:r,color:n,image:i,imageSize:a,gradient:o}=t.value;if(r==="solid")return{backgroundColor:n};if(r==="image"&&i)return a==="repeat"?{backgroundImage:`url(${i}`,backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:`url(${i}`,backgroundRepeat:"no-repeat",backgroundSize:a||"cover"};if(r==="gradient"&&o){const{type:s,colors:l,rotate:u}=o,f=l.map(c=>`${c.color} ${c.pos}%`);return s==="radial"?{backgroundImage:`radial-gradient(${f.join(",")}`}:{backgroundImage:`linear-gradient(${u}deg, ${f.join(",")}`}}return{backgroundColor:"#fff"}})}),K3=ze({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(t){return(e,r)=>(ie(),ve("div",{class:ft(["divider",e.type]),style:be({margin:e.type==="horizontal"?`${e.margin>=0?e.margin:24}px 0`:`0 ${e.margin>=0?e.margin:8}px`})},null,6))}}),X3=Ge(K3,[["__scopeId","data-v-def6106d"]]),Y3=["src"],Z3=ze({__name:"BaseImageElement",props:{elementInfo:{}},setup(t){const e=t,r=_e(()=>e.elementInfo.shadow),{shadowStyle:n}=Ec(r),i=_e(()=>e.elementInfo.flipH),a=_e(()=>e.elementInfo.flipV),{flipStyle:o}=A1(i,a),s=_e(()=>e.elementInfo),{clipShape:l,imgPosition:u}=P1(s),f=_e(()=>e.elementInfo.filters),{filter:c}=PA(f);return(d,h)=>(ie(),ve("div",{class:"base-element-image",style:be({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Q("div",{class:"element-content",style:be({filter:le(n)?`drop-shadow(${le(n)})`:"",transform:le(o)})},[Xe(VA,{elementInfo:d.elementInfo},null,8,["elementInfo"]),Q("div",{class:"image-content",style:be({clipPath:le(l).style})},[Q("img",{src:d.elementInfo.src,draggable:!1,style:be({top:le(u).top,left:le(u).left,width:le(u).width,height:le(u).height,filter:le(c)}),alt:""},null,12,Y3),d.elementInfo.colorMask?(ie(),ve("div",{key:0,class:"color-mask",style:be({backgroundColor:d.elementInfo.colorMask})},null,4)):Ue("",!0)],4)],4)],4)],4))}}),jC=Ge(Z3,[["__scopeId","data-v-f5bbdf36"]]),Q3=["innerHTML"],J3=ze({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(t){const e=t,r=_e(()=>e.elementInfo.shadow),{shadowStyle:n}=Ec(r);return(i,a)=>(ie(),ve("div",{class:"base-element-text",style:be({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Q("div",{class:"element-content",style:be({width:i.elementInfo.vertical?"auto":i.elementInfo.width+"px",height:i.elementInfo.vertical?i.elementInfo.height+"px":"auto",backgroundColor:i.elementInfo.fill,opacity:i.elementInfo.opacity,textShadow:le(n),lineHeight:i.elementInfo.lineHeight,letterSpacing:(i.elementInfo.wordSpace||0)+"px",color:i.elementInfo.defaultColor,fontFamily:i.elementInfo.defaultFontName,writingMode:i.elementInfo.vertical?"vertical-rl":"horizontal-tb"})},[Xe(M1,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),Q("div",{class:ft(["text ProseMirror-static",{thumbnail:i.target==="thumbnail"}]),style:be({"--paragraphSpace":`${i.elementInfo.paragraphSpace===void 0?5:i.elementInfo.paragraphSpace}px`}),innerHTML:i.elementInfo.content},null,14,Q3)],4)],4)],4))}}),KC=Ge(J3,[["__scopeId","data-v-3eca1d55"]]),q3=["width","height"],eF={key:0},tF=["transform"],rF=["d","fill","stroke","stroke-width","stroke-dasharray"],nF=["innerHTML"],iF=ze({__name:"BaseShapeElement",props:{elementInfo:{}},setup(t){const e=t,r=_e(()=>e.elementInfo.outline),{outlineWidth:n,outlineColor:i,strokeDashArray:a}=fl(r),o=_e(()=>e.elementInfo.shadow),{shadowStyle:s}=Ec(o),l=_e(()=>e.elementInfo.flipH),u=_e(()=>e.elementInfo.flipV),{flipStyle:f}=A1(l,u),c=_e(()=>{const d={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return e.elementInfo.text?e.elementInfo.text:d});return(d,h)=>(ie(),ve("div",{class:"base-element-shape",style:be({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Q("div",{class:"element-content",style:be({opacity:d.elementInfo.opacity,filter:le(s)?`drop-shadow(${le(s)})`:"",transform:le(f),color:c.value.defaultColor,fontFamily:c.value.defaultFontName})},[(ie(),ve("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(ie(),ve("defs",eF,[Xe(QA,{id:`base-gradient-${d.elementInfo.id}`,type:d.elementInfo.gradient.type,colors:d.elementInfo.gradient.colors,rotate:d.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):Ue("",!0),Q("g",{transform:`scale(${d.elementInfo.width/(d.elementInfo.viewBox[0]||d.elementInfo.viewBox)}, ${d.elementInfo.height/(d.elementInfo.viewBox[1]||d.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[Q("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:d.elementInfo.path,fill:d.elementInfo.gradient?`url(#base-gradient-${d.elementInfo.id})`:d.elementInfo.fill,stroke:le(i),"stroke-width":le(n),"stroke-dasharray":le(a)},null,8,rF)],8,tF)],8,q3)),Q("div",{class:ft(["shape-text",c.value.align])},[Q("div",{class:"ProseMirror-static",innerHTML:c.value.content},null,8,nF)],2)],4)],4)],4))}}),XC=Ge(iF,[["__scopeId","data-v-b45bc689"]]),aF=["width","height"],oF=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],sF=ze({__name:"BaseLineElement",props:{elementInfo:{}},setup(t){const e=t,r=_e(()=>e.elementInfo.shadow),{shadowStyle:n}=Ec(r),i=_e(()=>{const l=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return l<24?24:l}),a=_e(()=>{const l=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return l<24?24:l}),o=_e(()=>{const l=e.elementInfo.width;return e.elementInfo.style==="dashed"?l<=8?`${l*5} ${l*2.5}`:`${l*5} ${l*1.5}`:e.elementInfo.style==="dotted"?l<=8?`${l*1.8} ${l*1.6}`:`${l*1.5} ${l*1.2}`:"0 0"}),s=_e(()=>XI(e.elementInfo));return(l,u)=>(ie(),ve("div",{class:"base-element-line",style:be({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[Q("div",{class:"element-content",style:be({filter:le(n)?`drop-shadow(${le(n)})`:""})},[(ie(),ve("svg",{overflow:"visible",width:i.value,height:a.value},[Q("defs",null,[l.elementInfo.points[0]?(ie(),Ke(Sg,{key:0,id:l.elementInfo.id,position:"start",type:l.elementInfo.points[0],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ue("",!0),l.elementInfo.points[1]?(ie(),Ke(Sg,{key:1,id:l.elementInfo.id,position:"end",type:l.elementInfo.points[1],color:l.elementInfo.color,baseSize:l.elementInfo.width},null,8,["id","type","color","baseSize"])):Ue("",!0)]),Q("path",{d:s.value,stroke:l.elementInfo.color,"stroke-width":l.elementInfo.width,"stroke-dasharray":o.value,fill:"none","marker-start":l.elementInfo.points[0]?`url(#${l.elementInfo.id}-${l.elementInfo.points[0]}-start)`:"","marker-end":l.elementInfo.points[1]?`url(#${l.elementInfo.id}-${l.elementInfo.points[1]}-end)`:""},null,8,oF)],8,aF))],4)],4))}}),YC=Ge(sF,[["__scopeId","data-v-f6565627"]]),lF=ze({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(t){return(e,r)=>(ie(),ve("div",{class:ft(["base-element-chart",{"is-thumbnail":e.target==="thumbnail"}]),style:be({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Q("div",{class:"element-content",style:be({backgroundColor:e.elementInfo.fill})},[Xe(M1,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Xe(PN,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,themeColors:e.elementInfo.themeColors,textColor:e.elementInfo.textColor,options:e.elementInfo.options},null,8,["width","height","type","data","themeColors","textColor","options"])],4)],4)],6))}}),ZC=Ge(lF,[["__scopeId","data-v-5a1fd6e3"]]),uF=["width"],cF=["rowspan","colspan"],fF=["innerHTML"],dF=ze({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(t){const e=t,r=de([]),n=_e(()=>r.value.reduce((l,u)=>l+u));gr([()=>e.colWidths,()=>e.width],()=>{r.value=e.colWidths.map(l=>l*e.width)},{immediate:!0});const i=_e(()=>e.data),{hideCells:a}=DN(i),o=_e(()=>e.theme),{subThemeColor:s}=LN(o);return(l,u)=>{var f,c,d,h,v;return ie(),ve("div",{class:"static-table",style:be({width:n.value+"px"})},[Q("table",{class:ft({theme:o.value,"row-header":(f=o.value)==null?void 0:f.rowHeader,"row-footer":(c=o.value)==null?void 0:c.rowFooter,"col-header":(d=o.value)==null?void 0:d.colHeader,"col-footer":(h=o.value)==null?void 0:h.colFooter}),style:be(`--themeColor: ${(v=o.value)==null?void 0:v.color}; --subThemeColor1: ${le(s)[0]}; --subThemeColor2: ${le(s)[1]}`)},[Q("colgroup",null,[(ie(!0),ve(Xt,null,Lr(r.value,(p,g)=>(ie(),ve("col",{span:"1",key:g,width:p},null,8,uF))),128))]),Q("tbody",null,[(ie(!0),ve(Xt,null,Lr(l.data,(p,g)=>(ie(),ve("tr",{key:g,style:be({height:l.cellMinHeight+"px"})},[(ie(!0),ve(Xt,null,Lr(p,(m,y)=>hr((ie(),ve("td",{class:"cell",style:be({borderStyle:l.outline.style,borderColor:l.outline.color,borderWidth:l.outline.width+"px",...le(MN)(m.style)}),key:m.id,rowspan:m.rowspan,colspan:m.colspan},[Q("div",{class:"cell-text",style:be({minHeight:l.cellMinHeight-4+"px"}),innerHTML:le(RN)(m.text)},null,12,fF)],12,cF)),[[Tv,!le(a).includes(`${g}_${y}`)]])),128))],4))),128))])],6)],4)}}}),hF=Ge(dF,[["__scopeId","data-v-909691d5"]]),vF={class:"element-content"},pF=ze({__name:"BaseTableElement",props:{elementInfo:{}},setup(t){return(e,r)=>(ie(),ve("div",{class:"base-element-table",style:be({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Q("div",vF,[Xe(hF,{data:e.elementInfo.data,width:e.elementInfo.width,cellMinHeight:e.elementInfo.cellMinHeight,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme},null,8,["data","width","cellMinHeight","colWidths","outline","theme"])])],4)],4))}}),QC=Ge(pF,[["__scopeId","data-v-a0ffa95b"]]),gF={class:"element-content"},mF=["width","height","stroke","stroke-width"],yF=["transform"],SF=["d"],bF=ze({__name:"BaseLatexElement",props:{elementInfo:{}},setup(t){return(e,r)=>(ie(),ve("div",{class:"base-element-latex",style:be({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Q("div",gF,[(ie(),ve("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Q("g",{transform:`scale(${e.elementInfo.width/(e.elementInfo.viewBox[0]||e.elementInfo.viewBox)}, ${e.elementInfo.height/(e.elementInfo.viewBox[1]||e.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[Q("path",{d:e.elementInfo.path},null,8,SF)],8,yF)],8,mF))])],4)],4))}}),JC=Ge(bF,[["__scopeId","data-v-4904f8d7"]]),xF=ze({__name:"BaseVideoElement",props:{elementInfo:{}},setup(t){return(e,r)=>{const n=st("IconPlayOne");return ie(),ve("div",{class:"base-element-video",style:be({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Q("div",{class:"element-content",style:be({backgroundImage:e.elementInfo.poster?`url(${e.elementInfo.poster})`:""})},[Xe(n,{class:"icon"})],4)],4)],4)}}}),CF=Ge(xF,[["__scopeId","data-v-72eec24c"]]),wF={class:"element-content"},TF=ze({__name:"BaseAudioElement",props:{elementInfo:{}},setup(t){const e=t,r=_e(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px");return(n,i)=>{const a=st("IconVolumeNotice");return ie(),ve("div",{class:"base-element-audio",style:be({top:n.elementInfo.top+"px",left:n.elementInfo.left+"px",width:n.elementInfo.width+"px",height:n.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${n.elementInfo.rotate}deg)`})},[Q("div",wF,[Xe(a,{class:"audio-icon",style:be({fontSize:r.value,color:n.elementInfo.color})},null,8,["style"])])],4)],4)}}}),IF=Ge(TF,[["__scopeId","data-v-35ae44f0"]]),_F={class:"element-content"},AF=ze({__name:"BaseCloudCoachElement",props:{elementInfo:{}},setup(t){const e=sr(Pn)||de(1);return(r,n)=>(ie(),ve("div",{class:"base-element-cloudCoach",style:be({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${r.elementInfo.rotate}deg)`})},[Q("div",_F,[Q("div",{class:"title",style:be({fontSize:14/le(e)+"px"})},Pt(r.elementInfo.title||"乐谱"),5)])],4)],4))}}),EF=Ge(AF,[["__scopeId","data-v-ce5522fb"]]),PF={class:"element-content"},MF=ze({__name:"BaseEnjoyElement",props:{elementInfo:{}},setup(t){return(e,r)=>(ie(),ve("div",{class:"base-element-enjoy",style:be({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Q("div",PF,[Xe(GC,{elementInfo:e.elementInfo,isBase:!0},null,8,["elementInfo"])])],4)],4))}}),RF=Ge(MF,[["__scopeId","data-v-788133ee"]]),DF={class:"element-content"},LF=["src"],kF=ze({__name:"BaseListeningPracticeElement",props:{elementInfo:{}},setup(t){return(e,r)=>(ie(),ve("div",{class:"base-element-listeningPractice",style:be({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Q("div",DF,[Q("img",{class:"img",src:e.elementInfo.instrumentImg,alt:""},null,8,LF)])],4)],4))}}),OF=Ge(kF,[["__scopeId","data-v-2324b0af"]]),BF=t=>(ta("data-v-ab0c8e11"),t=t(),ea(),t),NF=BF(()=>Q("div",{class:"element-content"},null,-1)),FF=[NF],$F=ze({__name:"BaseRhythmPracticeElement",props:{elementInfo:{}},setup(t){return(e,r)=>(ie(),ve("div",{class:"base-element-rhythmPractice",style:be({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${e.elementInfo.rotate}deg)`})},FF,4)],4))}}),zF=Ge($F,[["__scopeId","data-v-ab0c8e11"]]),UF={class:"element-content"},HF=ze({__name:"BaseMusicResourcesElement",props:{elementInfo:{}},setup(t){const e=sr(Pn)||de(1),r={INSTRUMENT:"乐器百科",MUSICIAN:"音乐家",MUSIC:"名曲鉴赏",THEORY:"乐理知识"};return(n,i)=>(ie(),ve("div",{class:"base-element-musicResources",style:be({top:n.elementInfo.top+"px",left:n.elementInfo.left+"px",width:n.elementInfo.width+"px",height:n.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${n.elementInfo.rotate}deg)`})},[Q("div",UF,[Q("div",{class:"title",style:be({fontSize:13/le(e)+"px"})},Pt(`${r[n.elementInfo.sType]}-${n.elementInfo.name}`),5)])],4)],4))}}),VF=Ge(HF,[["__scopeId","data-v-786eece1"]]),GF=ze({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(t){const e=t,r=_e(()=>{const n={[ar.IMAGE]:jC,[ar.TEXT]:KC,[ar.SHAPE]:XC,[ar.LINE]:YC,[ar.CHART]:ZC,[ar.TABLE]:QC,[ar.LATEX]:JC,[ar.ELF]:null},i={[Tr.AUDIO]:IF,[Tr.VIDEO]:CF,[Tr.SING_PLAY]:EF,[Tr.ENJOY]:RF,[Tr.LISTENING_PRACTICE]:OF,[Tr.RHYTHM_PRACTICE]:zF,[Tr.MUSIC_RESOURCES]:VF};return n[e.elementInfo.type]||i[e.elementInfo.subtype]||null});return(n,i)=>(ie(),ve("div",{class:ft(["base-element",`base-element-${n.elementInfo.id}`]),style:be({zIndex:n.elementIndex})},[(ie(),Ke(wv(r.value),{elementInfo:n.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),WF={key:1,class:"placeholder"},jF=ze({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(t){const e=t,{viewportRatio:r,viewportSize:n}=Gt(kt()),i=_e(()=>e.slide.background),{backgroundStyle:a}=WC(i),o=_e(()=>e.size/n.value);return wc(Pn,o),(s,l)=>(ie(),ve("div",{class:"thumbnail-slide",style:be({width:s.size+"px",height:s.size*le(r)+"px"})},[s.visible?(ie(),ve("div",{key:0,class:"elements",style:be({width:le(n)+"px",height:le(n)*le(r)+"px",transform:`scale(${o.value})`})},[Q("div",{class:"background",style:be(le(a))},null,4),(ie(!0),ve(Xt,null,Lr(s.slide.elements,(u,f)=>(ie(),Ke(GF,{key:u.id,elementInfo:u,elementIndex:f+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(ie(),ve("div",WF,"加载中 ..."))],4))}}),qC=Ge(jF,[["__scopeId","data-v-0345aefe"]]),ew=()=>{const{slides:t}=Gt(kt()),e=de(null),r=de(50),n=()=>{t.value.length>r.value?e.value=setTimeout(()=>{r.value=r.value+20,n()},600):r.value=9999};return _r(n),hn(()=>{e.value&&clearTimeout(e.value)}),{slidesLoadLimit:r}};function Vp(t,e){return e===void 0&&(e=15),+parseFloat(Number(t).toPrecision(e))}function Jn(t){var e=t.toString().split(/[eE]/),r=(e[0].split(".")[1]||"").length-+(e[1]||0);return r>0?r:0}function ll(t){if(t.toString().indexOf("e")===-1)return Number(t.toString().replace(".",""));var e=Jn(t);return e>0?Vp(Number(t)*Math.pow(10,e)):Number(t)}function xv(t){rw&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)&&console.warn(t+" is beyond boundary when transfer to integer, the results may not be accurate")}function uf(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[0],i=e.slice(1);return i.reduce(function(a,o){return t(a,o)},n)}}var qi=uf(function(t,e){var r=ll(t),n=ll(e),i=Jn(t)+Jn(e),a=r*n;return xv(a),a/Math.pow(10,i)}),KF=uf(function(t,e){var r=Math.pow(10,Math.max(Jn(t),Jn(e)));return(qi(t,r)+qi(e,r))/r}),XF=uf(function(t,e){var r=Math.pow(10,Math.max(Jn(t),Jn(e)));return(qi(t,r)-qi(e,r))/r}),tw=uf(function(t,e){var r=ll(t),n=ll(e);return xv(r),xv(n),qi(r/n,Vp(Math.pow(10,Jn(e)-Jn(t))))});function YF(t,e){var r=Math.pow(10,e),n=tw(Math.round(Math.abs(qi(t,r))),r);return t<0&&n!==0&&(n=qi(n,-1)),n}var rw=!0;function ZF(t){t===void 0&&(t=!0),rw=t}var QF={strip:Vp,plus:KF,minus:XF,times:qi,divide:tw,round:YF,digitLength:Jn,float2Fixed:ll,enableBoundaryChecking:ZF};const JF={class:"bar"},qF=["data-tooltip"],e$=["data-tooltip"],t$=["data-tooltip"],r$=ze({__name:"Slider",props:{value:{},disabled:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},range:{type:Boolean,default:!1}},emits:["update:value"],setup(t,{emit:e}){const r=T=>T.getBoundingClientRect().left,n=t,i=e,a=de(),o=de(0),s=de(0),l=de(0),u=de("end"),f=T=>{let P=T/100*(n.max-n.min);if(n.step>=1)P=Math.fround(P);else{const x=n.step.toString(),_=x.match(/^[0.]*([1-9])/);if(_){const M=_[1],C=x.indexOf(M)-1;if(C>0){const w=Math.pow(10,C);P=Math.fround(P*w)/w}}}return QF.plus(P,n.min)},c=_e(()=>f(o.value)),d=_e(()=>f(s.value)),h=_e(()=>f(l.value));gr(()=>n.value,()=>{n.max!==n.min&&(typeof n.value=="number"?o.value=(n.value-n.min)/(n.max-n.min)*100:(s.value=(n.value[0]-n.min)/(n.max-n.min)*100,l.value=(n.value[1]-n.min)/(n.max-n.min)*100))},{immediate:!0});const v=T=>{if(!a.value)return 0;let x=(("clientX"in T?T.clientX:T.changedTouches[0].clientX)-r(a.value))/a.value.clientWidth;x=Math.max(x,0),x=Math.min(x,1);let _=x*100;const M=n.step/(n.max-n.min)*100,C=_%M;return C>0&&(C<=M/2?_=_-C:_=_-C+M),_},p=T=>{const P=v(T);u.value==="start"?s.value=P:l.value=P},g=T=>{m(T);const P=f(o.value),x=n.value,_=u.value==="start"?[P,x[1]]:[x[0],P];_[0]>_[1]&&([_[0],_[1]]=[_[1],_[0]]),i("update:value",_),document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p),document.removeEventListener("mouseup",g),document.removeEventListener("touchend",g)},m=T=>{o.value=v(T)},y=T=>{m(T);const P=f(o.value);i("update:value",P),document.removeEventListener("mousemove",m),document.removeEventListener("touchmove",m),document.removeEventListener("mouseup",y),document.removeEventListener("touchend",y)},S=T=>{if(!n.disabled)if(n.range){const P=v(T);Math.abs(P-s.value)<Math.abs(P-l.value)?u.value="start":u.value="end",document.addEventListener("mousemove",p),document.addEventListener("touchmove",p),document.addEventListener("mouseup",g),document.addEventListener("touchend",g)}else document.addEventListener("mousemove",m),document.addEventListener("touchmove",m),document.addEventListener("mouseup",y),document.addEventListener("touchend",y)};return(T,P)=>(ie(),ve("div",{class:ft(["slider",{disabled:T.disabled}]),ref_key:"sliderRef",ref:a,onMousedown:P[0]||(P[0]=x=>S(x))},[Q("div",JF,[T.range?(ie(),ve(Xt,{key:1},[Q("div",{class:"track",style:be({width:`${l.value-s.value}%`,left:`${s.value}%`})},null,4),Q("div",{class:"thumb",style:be({left:`${s.value}%`}),"data-tooltip":d.value},null,12,e$),Q("div",{class:"thumb",style:be({left:`${l.value}%`}),"data-tooltip":h.value},null,12,t$)],64)):(ie(),ve(Xt,{key:0},[Q("div",{class:"track",style:be({width:`${o.value}%`})},null,4),Q("div",{class:"thumb",style:be({left:`${o.value}%`}),"data-tooltip":c.value},null,12,qF)],64))])],34))}}),th=Ge(r$,[["__scopeId","data-v-78364373"]]),Q6=1e3,J6="click",Ra="animate__",q6=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下进入",value:"rotateInDownLeft"},{name:"绕右下进入",value:"rotateInDownRight"},{name:"绕左上进入",value:"rotateInUpLeft"},{name:"绕右上进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],ez=[{type:"bounce",name:"弹跳",children:[{name:"弹出",value:"bounceOut"},{name:"向左弹出",value:"bounceOutLeft"},{name:"向右弹出",value:"bounceOutRight"},{name:"向上弹出",value:"bounceOutUp"},{name:"向下弹出",value:"bounceOutDown"}]},{type:"fade",name:"浮现",children:[{name:"浮出",value:"fadeOut"},{name:"向下浮出",value:"fadeOutDown"},{name:"向下长距浮出",value:"fadeOutDownBig"},{name:"向左浮出",value:"fadeOutLeft"},{name:"向左长距浮出",value:"fadeOutLeftBig"},{name:"向右浮出",value:"fadeOutRight"},{name:"向右长距浮出",value:"fadeOutRightBig"},{name:"向上浮出",value:"fadeOutUp"},{name:"向上长距浮出",value:"fadeOutUpBig"},{name:"从左上浮出",value:"fadeOutTopLeft"},{name:"从右上浮出",value:"fadeOutTopRight"},{name:"从左下浮出",value:"fadeOutBottomLeft"},{name:"从右下浮出",value:"fadeOutBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转退出",value:"rotateOut"},{name:"绕左下退出",value:"rotateOutDownLeft"},{name:"绕右下退出",value:"rotateOutDownRight"},{name:"绕左上退出",value:"rotateOutUpLeft"},{name:"绕右上退出",value:"rotateOutUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"缩小退出",value:"zoomOut"},{name:"向下缩小退出",value:"zoomOutDown"},{name:"从左缩小退出",value:"zoomOutLeft"},{name:"从右缩小退出",value:"zoomOutRight"},{name:"向上缩小退出",value:"zoomOutUp"}]},{type:"slide",name:"滑出",children:[{name:"向下滑出",value:"slideOutDown"},{name:"从左滑出",value:"slideOutLeft"},{name:"从右滑出",value:"slideOutRight"},{name:"向上滑出",value:"slideOutUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转退出",value:"flipOutX"},{name:"Y轴翻转退出",value:"flipOutY"}]},{type:"back",name:"缩小滑出",children:[{name:"向下缩小滑出",value:"backOutDown"},{name:"从左缩小滑出",value:"backOutLeft"},{name:"从右缩小滑出",value:"backOutRight"},{name:"向上缩小滑出",value:"backOutUp"}]},{type:"lightSpeed",name:"飞出",children:[{name:"从右飞出",value:"lightSpeedOutRight"},{name:"从左飞出",value:"lightSpeedOutLeft"}]}],tz=[{type:"shake",name:"晃动",children:[{name:"左右摇晃",value:"shakeX"},{name:"上下摇晃",value:"shakeY"},{name:"摇头",value:"headShake"},{name:"摆动",value:"swing"},{name:"晃动",value:"wobble"},{name:"惊恐",value:"tada"},{name:"果冻",value:"jello"}]},{type:"other",name:"其他",children:[{name:"弹跳",value:"bounce"},{name:"闪烁",value:"flash"},{name:"脉搏",value:"pulse"},{name:"橡皮筋",value:"rubberBand"},{name:"心跳(快)",value:"heartBeat"}]}],n$=[{label:"无",value:"no"},{label:"随机",value:"random"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"},{label:"左右推移(3D)",value:"slideX3D"},{label:"上下推移(3D)",value:"slideY3D"},{label:"淡入淡出",value:"fade"},{label:"旋转",value:"rotate"},{label:"上下展开",value:"scaleY"},{label:"左右展开",value:"scaleX"},{label:"放大",value:"scale"},{label:"缩小",value:"scaleReverse"}],i$={class:"title"},a$={class:"content"},o$=ze({__name:"MoveablePanel",props:{width:{},height:{},minWidth:{default:20},minHeight:{default:20},maxWidth:{default:500},maxHeight:{default:500},left:{default:10},top:{default:10},title:{default:""},moveable:{type:Boolean,default:!0},resizeable:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const r=t,n=e,i=de(0),a=de(0),o=de(0),s=de(0),l=de(),u=_e(()=>{var d;return s.value?s.value:((d=l.value)==null?void 0:d.clientHeight)||0});_r(()=>{r.left>=0?i.value=r.left:i.value=document.body.clientWidth+r.left-r.width,r.top>=0?a.value=r.top:a.value=document.body.clientHeight+r.top-u.value,o.value=r.width,s.value=r.height});const f=d=>{if(!r.moveable)return;let h=!0;const v=document.body.clientWidth,p=document.body.clientHeight,g=d.pageX,m=d.pageY,y=i.value,S=a.value;document.onmousemove=T=>{if(!h)return;const P=T.pageX-g,x=T.pageY-m;let _=y+P,M=S+x;_<0&&(_=0),M<0&&(M=0),_+o.value>v&&(_=v-o.value),M+u.value>p&&(M=p-u.value),i.value=_,a.value=M},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null}},c=d=>{if(!r.resizeable)return;let h=!0;const v=d.pageX,p=d.pageY,g=o.value,m=s.value;document.onmousemove=y=>{if(!h)return;const S=y.pageX-v,T=y.pageY-p;let P=g+S,x=m+T;P<r.minWidth&&(P=r.minWidth),x<r.minHeight&&(x=r.minHeight),P>r.maxWidth&&(P=r.maxWidth),x>r.maxHeight&&(x=r.maxHeight),o.value=P,s.value=x},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null}};return(d,h)=>{const v=st("IconClose");return ie(),ve("div",{class:"moveable-panel",ref_key:"moveablePanelRef",ref:l,style:be({width:o.value+"px",height:s.value?s.value+"px":"auto",left:i.value+"px",top:a.value+"px"})},[d.title?(ie(),ve(Xt,{key:0},[Q("div",{class:"header",onMousedown:h[1]||(h[1]=p=>f(p))},[Q("div",i$,Pt(d.title),1),Q("div",{class:"close-btn",onClick:h[0]||(h[0]=p=>n("close"))},[Xe(v)])],32),Q("div",a$,[Hs(d.$slots,"default",{},void 0,!0)])],64)):(ie(),ve("div",{key:1,class:"content",onMousedown:h[2]||(h[2]=p=>f(p))},[Hs(d.$slots,"default",{},void 0,!0)],32)),d.resizeable?(ie(),ve("div",{key:2,class:"resizer",onMousedown:h[3]||(h[3]=p=>c(p))},null,32)):Ue("",!0)],4)}}}),nw=Ge(o$,[["__scopeId","data-v-4a8c1601"]]),s$=(t,e,r,n)=>{const i=kt();function a(){window.parent.postMessage({type:"initPPT",content:{slidesLen:i.slides.length,isAnimationed:r.value===n.value.length}},"*")}function o(s){const{type:l,content:u}=s.data||{};l==="changePageSlide"&&(u==="prev"?t():u==="next"&&e())}a(),gr([()=>i.slideIndex,r],()=>{window.parent.postMessage({type:"changeSlideIndex",content:{slideIndex:i.slideIndex,isAnimationed:r.value===n.value.length}},"*")}),_r(()=>{window.addEventListener("message",o)}),hn(()=>{window.removeEventListener("message",o)})},iw=()=>{const t=kt(),e=_v(),{slides:r,slideIndex:n,formatedAnimations:i}=Gt(t),{isPPTWheelPage:a}=Gt(e),o=de(0),s=de(!1),l=de(n.value),u=()=>{if(s.value)return;const{animations:k,autoNext:D}=i.value[o.value];o.value+=1,s.value=!0;let O=0;for(const $ of k){const U=document.querySelector(`#screen-element-${$.elId} [class^=base-element-]`);if(!U){O+=1;continue}const q=`${Ra}${$.effect}`;U.style.removeProperty("--animate-duration");for(const N of U.classList)N.indexOf(Ra)!==-1&&U.classList.remove(N,`${Ra}animated`);U.style.setProperty("--animate-duration",`${$.duration}ms`),U.classList.add(q,`${Ra}animated`);const H=()=>{$.type!=="out"&&(U.style.removeProperty("--animate-duration"),U.classList.remove(q,`${Ra}animated`)),O+=1,O===k.length&&(s.value=!1,D&&u())};U.addEventListener("animationend",H,{once:!0})}};_r(()=>{const k=i.value[0];k&&k.animations.length&&k.animations.every(O=>O.trigger==="auto"||O.trigger==="meantime")&&u()});const f=()=>{o.value-=1;const{animations:k}=i.value[o.value];for(const D of k){const O=document.querySelector(`#screen-element-${D.elId} [class^=base-element-]`);if(O){O.style.removeProperty("--animate-duration");for(const $ of O.classList)$.indexOf(Ra)!==-1&&O.classList.remove($,`${Ra}animated`)}}k.every(D=>D.type==="attention")&&g()},c=de(0),d=()=>{c.value&&(clearInterval(c.value),c.value=0)};hn(d);const h=de(!1),v=k=>{h.value=k},p=oh.throttle(function(k){Nr.success(k)},1e3,{leading:!0,trailing:!1}),g=()=>{i.value.length&&o.value>0?f():n.value>0?(t.updateSlideIndex(n.value-1),n.value<l.value?(o.value=0,l.value=n.value):o.value=i.value.length):h.value?E(r.value.length-1):p("已经是第一页了"),s.value=!1},m=()=>{i.value.length&&o.value<i.value.length?u():n.value<r.value.length-1?(t.updateSlideIndex(n.value+1),o.value=0,s.value=!1):(h.value?E(0):(p("已经是最后一页了"),d()),s.value=!1)},y=de(2500),S=()=>{d(),Nr.success("开始自动放映"),c.value=setInterval(m,y.value)},T=k=>{d(),y.value=k,S()},P=oh.throttle(function(k){a.value&&(k.deltaY<0?g():k.deltaY>0&&m())},500,{leading:!0,trailing:!1}),x=de(null),_=k=>{a.value&&(x.value={x:k.changedTouches[0].pageX,y:k.changedTouches[0].pageY})},M=k=>{if(!a.value||!x.value)return;const D=Math.abs(x.value.x-k.changedTouches[0].pageX),O=k.changedTouches[0].pageY-x.value.y;Math.abs(O)>D&&Math.abs(O)>50&&(x.value=null,O>0?g():m())},C=k=>{const D=k.key.toUpperCase();D===Un.UP||D===Un.LEFT||D===Un.PAGEUP?g():(D===Un.DOWN||D===Un.RIGHT||D===Un.SPACE||D===Un.ENTER||D===Un.PAGEDOWN)&&m()};_r(()=>document.addEventListener("keydown",C)),hn(()=>document.removeEventListener("keydown",C));const w=()=>{t.updateSlideIndex(n.value-1),o.value=0},b=()=>{t.updateSlideIndex(n.value+1),o.value=0},E=k=>{t.updateSlideIndex(k),o.value=0},A=k=>{const D=r.value.findIndex(O=>O.id===k);D!==-1&&(t.updateSlideIndex(D),o.value=0)},R=Ic();return["pptScreen","mobileScreen"].includes(R.mode)&&s$(g,m,o,i),{autoPlayTimer:c,autoPlayInterval:y,setAutoPlayInterval:T,autoPlay:S,closeAutoPlay:d,loopPlay:h,setLoopPlay:v,mousewheelListener:P,touchStartListener:_,touchEndListener:M,turnPrevSlide:w,turnNextSlide:b,turnSlideToIndex:E,turnSlideToId:A,execPrev:g,execNext:m,animationIndex:o}},aw=t=>{const e=kt(),{viewportRatio:r}=Gt(e),n=de(0),i=de(0),a=()=>{const o=(t==null?void 0:t.value)||document.body,s=o.clientWidth,l=o.clientHeight;let u,f;l/s===r.value?(u=s,f=l):l/s>r.value?(u=s,f=s*r.value):(u=l/r.value,f=l),n.value=u,i.value=f};return _r(()=>{a(),window.addEventListener("resize",a)}),hn(()=>{window.removeEventListener("resize",a)}),{slideWidth:n,slideHeight:i}},ow=()=>{const t=de(!0),e=de(!0),{exitScreening:r}=Ac(),n=()=>{t.value=ch(),!t.value&&e.value&&r(),e.value=!0};return _r(()=>{t.value=ch(),document.addEventListener("fullscreenchange",n),document.addEventListener("webkitfullscreenchange",n)}),hn(()=>{document.removeEventListener("fullscreenchange",n),document.removeEventListener("webkitfullscreenchange",n)}),{fullscreenState:t,manualExitFullscreen:()=>{t.value&&(e.value=!1,_1())}}},l$={class:"element-content"},u$=ze({__name:"ScreenVideoElement",props:{elementInfo:{},needWaitAnimation:{type:Boolean}},setup(t){const{currentSlide:e}=Gt(kt()),r=sr(Pn)||de(1),n=sr(na)||de(""),i=_e(()=>e.value.id===n.value);return(a,o)=>(ie(),ve("div",{class:"base-element-video screen-element-video",style:be({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Q("div",l$,[i.value?(ie(),Ke(i4,{key:0,width:a.elementInfo.width,height:a.elementInfo.height,src:a.elementInfo.src,poster:a.elementInfo.poster,autoplay:a.elementInfo.autoplay,scale:le(r),needWaitAnimation:a.needWaitAnimation},null,8,["width","height","src","poster","autoplay","scale","needWaitAnimation"])):Ue("",!0)])],4)],4))}}),c$=Ge(u$,[["__scopeId","data-v-b0aefab8"]]),f$={class:"element-content"},d$=ze({__name:"ScreenAudioElement",props:{elementInfo:{},needWaitAnimation:{type:Boolean}},setup(t){const e=t,{viewportRatio:r,currentSlide:n,viewportSize:i}=Gt(kt()),a=sr(Pn)||de(1),o=sr(na)||de(""),s=_e(()=>n.value.id===o.value),l=_e(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px"),u=_e(()=>{const d=i.value,h=i.value*r.value,v=280/a.value,p=50/a.value,g=e.elementInfo.width,m=e.elementInfo.height,y=e.elementInfo.left,S=e.elementInfo.top;let T=0,P=m;return y+v>=d&&(T=g-v),S+m+p>=h&&(P=-p),{left:T+"px",top:P+"px"}}),f=de(),c=()=>{f.value&&f.value.toggle()};return(d,h)=>{const v=st("IconVolumeNotice");return ie(),ve("div",{class:"base-element-audio screen-element-audio",style:be({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Q("div",f$,[Xe(v,{class:"audio-icon",style:be({fontSize:l.value,color:d.elementInfo.color}),onClick:h[0]||(h[0]=p=>c())},null,8,["style"]),s.value?(ie(),Ke(b4,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:f,style:be({...u.value}),src:d.elementInfo.src,loop:d.elementInfo.loop,autoplay:d.elementInfo.autoplay,scale:le(a),needWaitAnimation:d.needWaitAnimation},null,8,["style","src","loop","autoplay","scale","needWaitAnimation"])):Ue("",!0)])],4)],4)}}}),h$=Ge(d$,[["__scopeId","data-v-e2703dbd"]]),v$={class:"element-content"},p$=ze({__name:"ScreenCloudCoachElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=Gt(kt()),r=sr(Pn)||de(1),n=sr(na)||de(""),i=_e(()=>e.value.id===n.value);return(a,o)=>(ie(),ve("div",{class:"base-element-cloudCoach screen-element-cloudCoach",style:be({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Q("div",v$,[i.value?(ie(),Ke(le(_4),{key:0,id:a.elementInfo.sid,width:a.elementInfo.width,height:a.elementInfo.height,scale:le(r)},null,8,["id","width","height","scale"])):Ue("",!0)])],4)],4))}}),g$=Ge(p$,[["__scopeId","data-v-f31e8dd8"]]),m$={class:"element-content"},y$=ze({__name:"ScreenEnjoyElement",props:{elementInfo:{},needWaitAnimation:{type:Boolean}},setup(t){const{currentSlide:e}=Gt(kt()),r=sr(Pn)||de(1),n=sr(na)||de(""),i=_e(()=>e.value.id===n.value);return(a,o)=>(ie(),ve("div",{class:"base-element-enjoy screen-element-enjoy",style:be({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Q("div",m$,[i.value?(ie(),Ke(GC,{key:0,elementInfo:a.elementInfo,scale:le(r),isScreening:!0,needWaitAnimation:a.needWaitAnimation},null,8,["elementInfo","scale","needWaitAnimation"])):Ue("",!0)])],4)],4))}}),S$=Ge(y$,[["__scopeId","data-v-00ede00d"]]),b$={class:"element-content"},x$=ze({__name:"ScreenListeningPracticeElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=Gt(kt()),r=sr(Pn)||de(1),n=sr(na)||de(""),i=_e(()=>e.value.id===n.value);return(a,o)=>(ie(),ve("div",{class:"base-element-cloudCoach screen-element-listeningPractice",style:be({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Q("div",b$,[i.value?(ie(),Ke(le(z3),{key:0,width:a.elementInfo.width,height:a.elementInfo.height,scale:le(r),code:a.elementInfo.code},null,8,["width","height","scale","code"])):Ue("",!0)])],4)],4))}}),C$=Ge(x$,[["__scopeId","data-v-bacd96d2"]]),w$={class:"element-content"},T$=ze({__name:"ScreenRhythmPracticeElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=Gt(kt()),r=sr(Pn)||de(1),n=sr(na)||de(""),i=_e(()=>e.value.id===n.value);return(a,o)=>(ie(),ve("div",{class:"base-element-cloudCoach screen-element-rhythmPractice",style:be({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Q("div",w$,[i.value?(ie(),Ke(le(j3),{key:0,width:a.elementInfo.width,height:a.elementInfo.height,scale:le(r),"data-json":a.elementInfo.dataJson},null,8,["width","height","scale","data-json"])):Ue("",!0)])],4)],4))}}),I$=Ge(T$,[["__scopeId","data-v-a320b708"]]),_$={class:"element-content"},A$=ze({__name:"ScreenMusicResourcesElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=Gt(kt()),r=sr(Pn)||de(1),n=sr(na)||de(""),i=_e(()=>e.value.id===n.value);return(a,o)=>(ie(),ve("div",{class:"base-element-cloudCoach screen-element-musicResources",style:be({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Q("div",{class:"rotate-wrapper",style:be({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Q("div",_$,[i.value?(ie(),Ke(le(p1),{key:0,width:a.elementInfo.width,height:a.elementInfo.height,scale:le(r),sid:a.elementInfo.sid,type:a.elementInfo.sType},null,8,["width","height","scale","sid","type"])):Ue("",!0)])],4)],4))}}),E$=Ge(A$,[["__scopeId","data-v-00fb98af"]]),P$=["id","title"],M$=ze({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,r=_e(()=>{const s={[ar.IMAGE]:jC,[ar.TEXT]:KC,[ar.SHAPE]:XC,[ar.LINE]:YC,[ar.CHART]:ZC,[ar.TABLE]:QC,[ar.LATEX]:JC,[ar.ELF]:null},l={[Tr.AUDIO]:h$,[Tr.VIDEO]:c$,[Tr.SING_PLAY]:g$,[Tr.ENJOY]:S$,[Tr.LISTENING_PRACTICE]:C$,[Tr.RHYTHM_PRACTICE]:I$,[Tr.MUSIC_RESOURCES]:E$};return s[e.elementInfo.type]||l[e.elementInfo.subtype]||null}),{formatedAnimations:n,theme:i}=Gt(kt()),a=_e(()=>{const s=n.value.findIndex(u=>u.animations.map(c=>c.elId).includes(e.elementInfo.id));if(s===-1||s<e.animationIndex)return!1;const l=n.value[s].animations.find(u=>u.elId===e.elementInfo.id);return(l==null?void 0:l.type)==="in"}),o=s=>{if(s.target.tagName==="A"){e.manualExitFullscreen();return}const l=e.elementInfo.link;l&&(l.type==="web"?(e.manualExitFullscreen(),window.open(l.target)):l.type==="slide"&&e.turnSlideToId(l.target))};return(s,l)=>{var u;return ie(),ve("div",{class:ft(["screen-element",{link:s.elementInfo.link}]),id:`screen-element-${s.elementInfo.id}`,style:be({zIndex:s.elementIndex,color:le(i).fontColor,fontFamily:le(i).fontName,fontSize:le(i).fontSize,visibility:a.value?"hidden":"visible"}),title:((u=s.elementInfo.link)==null?void 0:u.target)||"",onClick:l[0]||(l[0]=f=>o(f))},[(ie(),Ke(wv(r.value),{needWaitAnimation:a.value,elementInfo:s.elementInfo},null,8,["needWaitAnimation","elementInfo"]))],14,P$)}}}),R$=Ge(M$,[["__scopeId","data-v-446ba9f2"]]),D$=ze({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{viewportRatio:r,viewportSize:n}=Gt(kt()),i=_e(()=>e.slide.background),{backgroundStyle:a}=WC(i),o=_e(()=>e.slide.id);return wc(na,o),(s,l)=>(ie(),ve("div",{class:"screen-slide",style:be({width:le(n)+"px",height:le(n)*le(r)+"px",transform:`scale(${s.scale})`})},[Q("div",{class:"background",style:be({...le(a)})},null,4),(ie(!0),ve(Xt,null,Lr(s.slide.elements,(u,f)=>(ie(),Ke(R$,{key:u.id,elementInfo:u,elementIndex:f+1,animationIndex:s.animationIndex,turnSlideToId:s.turnSlideToId,manualExitFullscreen:s.manualExitFullscreen},null,8,["elementInfo","elementIndex","animationIndex","turnSlideToId","manualExitFullscreen"]))),128))],4))}}),L$=Ge(D$,[["__scopeId","data-v-17d2a617"]]),k$={class:"screen-slide-list"},O$=ze({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{slides:r,slideIndex:n,viewportSize:i}=Gt(kt()),a=_e(()=>r.value.map(s=>{let l=s.turningMode;if(l||(l="slideY"),l==="random"){const u=n$.filter(f=>!["random","no"].includes(f.value)).map(f=>f.value);l=u[Math.floor(Math.random()*u.length)]}return{...s,turningMode:l}})),o=_e(()=>e.slideWidth/i.value);return wc(Pn,o),(s,l)=>(ie(),ve("div",k$,[(ie(!0),ve(Xt,null,Lr(a.value,(u,f)=>{var c;return ie(),ve("div",{class:ft(["slide-item",`turning-mode-${u.turningMode}`,{current:f===le(n),before:f<le(n),after:f>le(n),hide:(f===le(n)-1||f===le(n)+1)&&u.turningMode!==a.value[le(n)].turningMode}]),key:u.id},[Math.abs(le(n)-f)<2||(c=u.animations)!=null&&c.length?(ie(),ve("div",{key:0,class:"slide-content",style:be({width:s.slideWidth+"px",height:s.slideHeight+"px"})},[Xe(L$,{slide:u,scale:o.value,animationIndex:s.animationIndex,turnSlideToId:s.turnSlideToId,manualExitFullscreen:s.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):Ue("",!0)],2)}),128))]))}}),sw=Ge(O$,[["__scopeId","data-v-9f9072dd"]]),B$={class:"slide-thumbnails"},N$={class:"return-button"},F$={class:"slide-thumbnails-content"},$$=["onClick"],z$=ze({__name:"SlideThumbnails",props:{turnSlideToIndex:{type:Function}},emits:["close"],setup(t,{emit:e}){const r=t,n=e,{slides:i,slideIndex:a}=Gt(kt()),{slidesLoadLimit:o}=ew(),s=l=>{r.turnSlideToIndex(l),n("close")};return(l,u)=>{const f=st("IconArrowCircleLeft");return ie(),ve("div",B$,[Q("div",N$,[Xe(f,{class:"icon",onClick:u[0]||(u[0]=c=>n("close"))})]),Q("div",F$,[(ie(!0),ve(Xt,null,Lr(le(i),(c,d)=>(ie(),ve("div",{class:ft(["thumbnail",{active:d===le(a)}]),key:c.id,onClick:h=>s(d)},[Xe(qC,{slide:c,size:150,visible:d<le(o)},null,8,["slide","visible"])],10,$$))),128))])])}}}),U$=Ge(z$,[["__scopeId","data-v-f836aa07"]]),H$={key:0,class:"blackboard"},V$=ze({__name:"WritingBoard",props:{color:{default:"#ffcc00"},model:{default:"pen"},blackboard:{type:Boolean,default:!1},penSize:{default:6},markSize:{default:24},rubberSize:{default:80}},emits:["end"],setup(t,{expose:e,emit:r}){const n=t,i=r;let a=null;const o=de(),s=de();let l={x:0,y:0},u=!1,f=0,c=-1;const d=de({x:0,y:0}),h=de(!1),v=de(0),p=de(0),g=_e(()=>s.value?v.value/s.value.width:1),m=_e(()=>s.value?p.value/s.value.height:1),y=()=>{o.value&&(v.value=o.value.clientWidth,p.value=o.value.clientHeight)},S=new ResizeObserver(y);_r(()=>{o.value&&S.observe(o.value)}),hn(()=>{o.value&&S.unobserve(o.value)}),_r(()=>{!s.value||!o.value||(a=s.value.getContext("2d"),a&&(s.value.width=o.value.clientWidth,s.value.height=o.value.clientHeight,a.lineCap="round",a.lineJoin="round"))});const P=()=>{a&&(n.model==="mark"?(a.globalCompositeOperation="xor",a.globalAlpha=.5):n.model==="pen"&&(a.globalCompositeOperation="source-over",a.globalAlpha=1))};gr(()=>n.model,P);const x=($,U,q)=>{if(!a)return;const H=l.x,N=l.y;a.lineWidth=q,a.strokeStyle=n.color,a.beginPath(),a.moveTo(H,N),a.lineTo($,U),a.stroke(),a.closePath()},_=($,U)=>{if(!a||!s.value)return;const q=l.x,H=l.y,N=n.rubberSize/2,G=N*Math.sin(Math.atan((U-H)/($-q))),j=N*Math.cos(Math.atan((U-H)/($-q))),oe=[q+G,H-j],Y=[q-G,H+j],te=[$+G,U-j],fe=[$-G,U+j];a.save(),a.beginPath(),a.arc($,U,N,0,Math.PI*2),a.clip(),a.clearRect(0,0,s.value.width,s.value.height),a.restore(),a.save(),a.beginPath(),a.moveTo(...oe),a.lineTo(...te),a.lineTo(...fe),a.lineTo(...Y),a.closePath(),a.clip(),a.clearRect(0,0,s.value.width,s.value.height),a.restore()},M=($,U)=>{const q=l.x,H=l.y;return Math.sqrt(($-q)*($-q)+(U-H)*(U-H))},C=($,U)=>{const N=n.penSize,G=3,j=$/U;let oe;return j<=.1?oe=N:j>=10?oe=G:oe=N-j/10*N,c===-1?oe:oe*1/3+c*2/3},w=($,U)=>{const q=new Date().getTime();if(n.model==="pen"){const H=M($,U),N=q-f,G=C(H,N);x($,U,G),c=G}else n.model==="mark"?x($,U,n.markSize):_($,U);l={x:$,y:U},f=new Date().getTime()},b=$=>{if(!s.value)return[0,0];const U=$ instanceof MouseEvent?$:$.changedTouches[0],q=s.value.getBoundingClientRect(),H=U.pageX-q.x,N=U.pageY-q.y;return[H,N]},E=$=>{const[U,q]=b($),H=U/g.value,N=q/m.value;u=!0,l={x:H,y:N},f=new Date().getTime(),$ instanceof MouseEvent||(d.value={x:U,y:q},h.value=!0)},A=$=>{const[U,q]=b($),H=U/g.value,N=q/m.value;d.value={x:U,y:q},u&&w(H,N)},R=()=>{u&&(u=!1,i("end"))};return e({clearCanvas:()=>{!a||!s.value||(a.clearRect(0,0,s.value.width,s.value.height),i("end"))},getImageDataURL:()=>{var $;return($=s.value)==null?void 0:$.toDataURL()},setImageDataURL:$=>{if(!(!a||!s.value)&&(a.clearRect(0,0,s.value.width,s.value.height),$)){a.globalCompositeOperation="source-over",a.globalAlpha=1;const U=new Image;U.src=$,U.onload=()=>{a.drawImage(U,0,0),P()}}}}),($,U)=>{const q=st("IconWrite"),H=st("IconHighLight");return ie(),ve("div",{class:"writing-board",ref_key:"writingBoardRef",ref:o},[$.blackboard?(ie(),ve("div",H$)):Ue("",!0),Q("canvas",{class:"canvas",ref_key:"canvasRef",ref:s,style:be({width:v.value+"px",height:p.value+"px"}),onMousedown:U[0]||(U[0]=N=>E(N)),onMousemove:U[1]||(U[1]=N=>A(N)),onMouseup:U[2]||(U[2]=N=>R()),onTouchstart:U[3]||(U[3]=N=>E(N)),onTouchmove:U[4]||(U[4]=N=>A(N)),onTouchend:U[5]||(U[5]=N=>{R(),h.value=!1}),onMouseleave:U[6]||(U[6]=N=>{R(),h.value=!1}),onMouseenter:U[7]||(U[7]=N=>h.value=!0)},null,36),h.value?(ie(),ve(Xt,{key:1},[$.model==="eraser"?(ie(),ve("div",{key:0,class:"eraser",style:be({left:d.value.x-$.rubberSize/2+"px",top:d.value.y-$.rubberSize/2+"px",width:$.rubberSize+"px",height:$.rubberSize+"px"})},null,4)):Ue("",!0),$.model==="pen"?(ie(),ve("div",{key:1,class:"pen",style:be({left:d.value.x-$.penSize/2+"px",top:d.value.y-$.penSize*6+$.penSize/2+"px",color:$.color})},[$.model==="pen"?(ie(),Ke(q,{key:0,class:"icon",size:$.penSize*6},null,8,["size"])):Ue("",!0)],4)):Ue("",!0),$.model==="mark"?(ie(),ve("div",{key:2,class:"pen",style:be({left:d.value.x-$.markSize/2+"px",top:d.value.y+"px",color:$.color})},[$.model==="mark"?(ie(),Ke(H,{key:0,class:"icon",size:$.markSize*1.5},null,8,["size"])):Ue("",!0)],4)):Ue("",!0)],64)):Ue("",!0)],512)}}}),G$=Ge(V$,[["__scopeId","data-v-2e998f6c"]]),Gp=t=>(ta("data-v-05ee2be6"),t=t(),ea(),t),W$={class:"writing-board-tool"},j$={class:"tool-content"},K$={class:"size"},X$=Gp(()=>Q("div",{class:"label"},"墨迹粗细:",-1)),Y$={class:"size"},Z$=Gp(()=>Q("div",{class:"label"},"墨迹粗细:",-1)),Q$={class:"size"},J$=Gp(()=>Q("div",{class:"label"},"橡皮大小:",-1)),q$={class:"colors"},e6=["onClick"],t6=ze({__name:"WritingBoardTool",props:{slideWidth:{},slideHeight:{},left:{default:-5},top:{default:-5}},emits:["close"],setup(t,{emit:e}){const r=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c","#ffff3a"],n=e,{currentSlide:i}=Gt(kt()),a=de(),o=de("#e2534d"),s=de("pen"),l=de(!1),u=de(""),f=de(6),c=de(24),d=de(80),h=y=>{s.value===y?u.value=u.value===y?"":y:(u.value&&(u.value=""),s.value=y)},v=()=>{a.value.clearCanvas()},p=y=>{s.value==="eraser"&&(s.value="pen"),o.value=y},g=()=>{n("close")};gr(i,()=>{Il.writingBoardImgs.where("id").equals(i.value.id).toArray().then(y=>{const S=y[0];a.value.setImageDataURL((S==null?void 0:S.dataURL)||"")})},{immediate:!0});const m=()=>{const y=a.value.getImageDataURL();y&&Il.writingBoardImgs.where("id").equals(i.value.id).toArray().then(S=>{const T=S[0];T?Il.writingBoardImgs.update(T,{dataURL:y}):Il.writingBoardImgs.add({id:i.value.id,dataURL:y})})};return(y,S)=>{const T=st("IconWrite"),P=st("IconHighLight"),x=st("IconErase"),_=st("IconClear"),M=st("IconFill"),C=st("IconClose"),w=Ua("tooltip");return ie(),ve("div",W$,[Q("div",{class:"writing-board-wrap",style:be({width:y.slideWidth+"px",height:y.slideHeight+"px"})},[Xe(G$,{ref_key:"writingBoardRef",ref:a,color:o.value,blackboard:l.value,model:s.value,penSize:f.value,markSize:c.value,rubberSize:d.value,onEnd:S[0]||(S[0]=b=>m())},null,8,["color","blackboard","model","penSize","markSize","rubberSize"])],4),Xe(nw,{class:"tools-panel",width:520,height:50,left:y.left,top:y.top,moveable:u.value===""},{default:_n(()=>[Q("div",{class:"tools",onMousedown:S[10]||(S[10]=jr(()=>{},["stop"]))},[Q("div",j$,[Xe(_f,{trigger:"manual",value:u.value==="pen"},{content:_n(()=>[Q("div",K$,[X$,Xe(th,{class:"size-slider",min:4,max:10,step:2,value:f.value,"onUpdate:value":S[1]||(S[1]=b=>f.value=b)},null,8,["value"])])]),default:_n(()=>[hr((ie(),ve("div",{class:ft(["btn",{active:s.value==="pen"}]),onClick:S[2]||(S[2]=b=>h("pen"))},[Xe(T,{class:"icon"})],2)),[[w,"画笔"]])]),_:1},8,["value"]),Xe(_f,{trigger:"manual",value:u.value==="mark"},{content:_n(()=>[Q("div",Y$,[Z$,Xe(th,{class:"size-slider",min:16,max:40,step:4,value:c.value,"onUpdate:value":S[3]||(S[3]=b=>c.value=b)},null,8,["value"])])]),default:_n(()=>[hr((ie(),ve("div",{class:ft(["btn",{active:s.value==="mark"}]),onClick:S[4]||(S[4]=b=>h("mark"))},[Xe(P,{class:"icon"})],2)),[[w,"荧光笔"]])]),_:1},8,["value"]),Xe(_f,{trigger:"manual",value:u.value==="eraser"},{content:_n(()=>[Q("div",Q$,[J$,Xe(th,{class:"size-slider",min:20,max:200,step:20,value:d.value,"onUpdate:value":S[5]||(S[5]=b=>d.value=b)},null,8,["value"])])]),default:_n(()=>[hr((ie(),ve("div",{class:ft(["btn",{active:s.value==="eraser"}]),onClick:S[6]||(S[6]=b=>h("eraser"))},[Xe(x,{class:"icon"})],2)),[[w,"橡皮擦"]])]),_:1},8,["value"]),hr((ie(),ve("div",{class:"btn",onClick:S[7]||(S[7]=b=>v())},[Xe(_,{class:"icon"})])),[[w,"清除墨迹"]]),hr((ie(),ve("div",{class:ft(["btn",{active:l.value}]),onClick:S[8]||(S[8]=b=>l.value=!l.value)},[Xe(M,{class:"icon"})],2)),[[w,"黑板"]]),Q("div",q$,[(ie(),ve(Xt,null,Lr(r,b=>Q("div",{class:ft(["color",{active:b===o.value}]),key:b,style:be({backgroundColor:b}),onClick:E=>p(b)},null,14,e6)),64))])]),hr((ie(),ve("div",{class:"btn",onClick:S[9]||(S[9]=b=>g())},[Xe(C,{class:"icon"})])),[[w,"关闭画笔"]])],32)]),_:1},8,["left","top","moveable"])])}}}),lw=Ge(t6,[["__scopeId","data-v-05ee2be6"]]),r6=t=>(ta("data-v-52a17a32"),t=t(),ea(),t),n6={class:"header"},i6={class:"content"},a6={class:"timer"},o6=["value","disabled"],s6=r6(()=>Q("div",{class:"colon"},":",-1)),l6={class:"timer"},u6=["value","disabled"],c6=ze({__name:"CountdownTimer",props:{left:{default:5},top:{default:5}},emits:["close"],setup(t,{emit:e}){const r=e,n=de(null),i=de(!1),a=de(!1),o=de(0),s=_e(()=>Math.floor(o.value/60)),l=_e(()=>o.value%60),u=_e(()=>!a.value||i.value),f=()=>{n.value&&clearInterval(n.value)};hn(f);const c=()=>{f(),i.value=!1},d=()=>{f(),i.value=!1,a.value?o.value=600:o.value=0},h=()=>{f(),a.value?n.value=setInterval(()=>{o.value=o.value-1,o.value<=0&&d()},1e3):n.value=setInterval(()=>{o.value=o.value+1,o.value>36e3&&c()},1e3),i.value=!0},v=()=>{i.value?c():h()},p=()=>{a.value=!a.value,d()},g=(m,y)=>{const S=m.target;let T=S.value;/^(\d)+$/.test(T)?(y==="second"&&+T>=60&&(T="59"),o.value=y==="minute"?+T*60+l.value:+T+s.value*60):S.value=_l(y==="minute"?s.value:l.value,2)};return(m,y)=>{const S=st("IconClose");return ie(),Ke(nw,{class:"countdown-timer",width:180,height:110,left:m.left,top:m.top},{default:_n(()=>[Q("div",n6,[Q("span",{class:"text-btn",onClick:y[0]||(y[0]=T=>v())},Pt(i.value?"暂停":"开始"),1),Q("span",{class:"text-btn",onClick:y[1]||(y[1]=T=>d())},"重置"),Q("span",{class:ft(["text-btn",{active:a.value}]),onClick:y[2]||(y[2]=T=>p())},"倒计时",2)]),Q("div",i6,[Q("div",a6,[Q("input",{type:"text",value:le(_l)(s.value,2),maxlength:3,disabled:u.value,onMousedown:y[3]||(y[3]=jr(()=>{},["stop"])),onBlur:y[4]||(y[4]=T=>g(T,"minute")),onKeydown:[y[5]||(y[5]=jr(()=>{},["stop"])),y[6]||(y[6]=nh(jr(T=>g(T,"minute"),["stop"]),["enter"]))]},null,40,o6)]),s6,Q("div",l6,[Q("input",{type:"text",value:le(_l)(l.value,2),maxlength:3,disabled:u.value,onMousedown:y[7]||(y[7]=jr(()=>{},["stop"])),onBlur:y[8]||(y[8]=T=>g(T,"second")),onKeydown:[y[9]||(y[9]=jr(()=>{},["stop"])),y[10]||(y[10]=nh(jr(T=>g(T,"second"),["stop"]),["enter"]))]},null,40,u6)])]),Q("div",{class:"close-btn",onClick:y[11]||(y[11]=T=>r("close"))},[Xe(S,{class:"icon"})])]),_:1},8,["left","top"])}}}),uw=Ge(c6,[["__scopeId","data-v-52a17a32"]]),f6={key:3,class:"tools-left"},d6={key:4,class:"tools-right visible"},h6={class:"content"},v6=ze({__name:"BaseView",props:{changeViewMode:{type:Function}},setup(t){const e=t,{slides:r,slideIndex:n}=Gt(kt()),i=Ic(),{autoPlayTimer:a,autoPlay:o,closeAutoPlay:s,autoPlayInterval:l,setAutoPlayInterval:u,loopPlay:f,setLoopPlay:c,mousewheelListener:d,touchStartListener:h,touchEndListener:v,turnPrevSlide:p,turnNextSlide:g,turnSlideToIndex:m,turnSlideToId:y,execPrev:S,execNext:T,animationIndex:P}=iw(),{slideWidth:x,slideHeight:_}=aw(),{exitScreening:M}=Ac(),{fullscreenState:C,manualExitFullscreen:w}=ow();de(!1);const b=de(!1),E=de(!1),A=de(!1),R=de(!1),k=()=>{const D=[{text:"上一页",subText:"↑ ←",disable:n.value<=0,handler:()=>p()},{text:"下一页",subText:"↓ →",disable:n.value>=r.value.length-1,handler:()=>g()},{text:"第一页",disable:n.value===0,handler:()=>m(0)},{text:"最后一页",disable:n.value===r.value.length-1,handler:()=>m(r.value.length-1)},{divider:!0},{text:a.value?"取消自动放映":"自动放映",handler:a.value?s:o,children:[{text:"2.5秒",subText:l.value===2500?"√":"",handler:()=>u(2500)},{text:"5秒",subText:l.value===5e3?"√":"",handler:()=>u(5e3)},{text:"7.5秒",subText:l.value===7500?"√":"",handler:()=>u(7500)},{text:"10秒",subText:l.value===1e4?"√":"",handler:()=>u(1e4)}]},{text:"循环放映",subText:f.value?"√":"",handler:()=>c(!f.value)},{divider:!0},{text:"查看所有幻灯片",handler:()=>A.value=!0},{text:"画笔工具",handler:()=>b.value=!0},{text:"演讲者视图",handler:()=>e.changeViewMode("presenter")},{divider:!0}];return i.mode==="pptEditor"&&D.push({text:"结束放映",subText:"ESC",handler:M}),D};return(D,O)=>{const $=st("IconLeftTwo"),U=st("IconRightTwo"),q=st("IconOffScreenOne"),H=st("IconFullScreenOne"),N=st("IconPower"),G=Ua("contextmenu"),j=Ua("tooltip");return ie(),ve("div",{class:ft(["base-view",{"laser-pen":R.value}])},[hr(Xe(sw,{slideWidth:le(x),slideHeight:le(_),animationIndex:le(P),turnSlideToId:le(y),manualExitFullscreen:le(w),onWheel:O[0]||(O[0]=oe=>le(d)(oe)),onTouchstart:O[1]||(O[1]=oe=>le(h)(oe)),onTouchend:O[2]||(O[2]=oe=>le(v)(oe))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[G,k]]),A.value?(ie(),Ke(U$,{key:0,turnSlideToIndex:le(m),onClose:O[3]||(O[3]=oe=>A.value=!1)},null,8,["turnSlideToIndex"])):Ue("",!0),b.value?(ie(),Ke(lw,{key:1,slideWidth:le(x),slideHeight:le(_),onClose:O[4]||(O[4]=oe=>b.value=!1)},null,8,["slideWidth","slideHeight"])):Ue("",!0),E.value?(ie(),Ke(uw,{key:2,onClose:O[5]||(O[5]=oe=>E.value=!1)})):Ue("",!0),le(i).mode==="pptEditor"?(ie(),ve("div",f6,[Xe($,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:O[6]||(O[6]=oe=>le(S)())}),Xe(U,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:O[7]||(O[7]=oe=>le(T)())})])):Ue("",!0),le(i).mode==="pptEditor"?(ie(),ve("div",d6,[Q("div",h6,[Q("div",{class:"tool-btn page-number",onClick:O[8]||(O[8]=oe=>A.value=!0)},"幻灯片 "+Pt(le(n)+1)+" / "+Pt(le(r).length),1),le(C)?hr((ie(),Ke(q,{key:0,class:"tool-btn",onClick:O[9]||(O[9]=oe=>le(w)())},null,512)),[[j,"退出全屏"]]):hr((ie(),Ke(H,{key:1,class:"tool-btn",onClick:O[10]||(O[10]=oe=>le(Mv)())},null,512)),[[j,"进入全屏"]]),le(i).mode==="pptEditor"?hr((ie(),Ke(N,{key:2,class:"tool-btn",onClick:O[11]||(O[11]=oe=>le(M)())},null,512)),[[j,"结束放映"]]):Ue("",!0)])])):Ue("",!0)],2)}}}),p6=Ge(v6,[["__scopeId","data-v-1c387970"]]),$o=t=>(ta("data-v-1e45d89b"),t=t(),ea(),t),g6={class:"presenter-view"},m6={class:"toolbar"},y6=$o(()=>Q("span",null,"普通视图",-1)),S6=$o(()=>Q("span",null,"画笔",-1)),b6=$o(()=>Q("span",null,"激光笔",-1)),x6=$o(()=>Q("span",null,"计时器",-1)),C6=$o(()=>Q("span",null,"结束放映",-1)),w6={class:"content"},T6=["onClick"],I6={class:"remark"},_6={class:"header"},A6=$o(()=>Q("span",null,"演讲者备注",-1)),E6=["innerHTML"],P6={class:"remark-scale"},M6=ze({__name:"PresenterView",props:{changeViewMode:{type:Function}},setup(t){const e=t,{slides:r,slideIndex:n,viewportRatio:i,currentSlide:a}=Gt(kt()),o=de(),s=de(),l=de(!1),u=de(!1),f=de(!1),c=Ic(),{mousewheelListener:d,touchStartListener:h,touchEndListener:v,turnPrevSlide:p,turnNextSlide:g,turnSlideToIndex:m,turnSlideToId:y,animationIndex:S}=iw(),{slideWidth:T,slideHeight:P}=aw(o),{exitScreening:x}=Ac(),{slidesLoadLimit:_}=ew(),{fullscreenState:M,manualExitFullscreen:C}=ow(),w=de(16),b=_e(()=>a_(a.value.remark||"无备注")),E=k=>{s.value&&s.value.scrollBy(k.deltaY,0)},A=k=>{k<12||k>40||(w.value=k)};gr(n,()=>{f1(()=>{if(!s.value)return;const k=s.value.querySelector(".thumbnail.active");if(!k)return;const D=s.value.offsetWidth,O=k.offsetLeft;s.value.scrollTo({left:O-D/2,behavior:"smooth"})})});const R=()=>{const k=[{text:"上一页",subText:"↑ ←",disable:n.value<=0,handler:()=>p()},{text:"下一页",subText:"↓ →",disable:n.value>=r.value.length-1,handler:()=>g()},{text:"第一页",disable:n.value===0,handler:()=>m(0)},{text:"最后一页",disable:n.value===r.value.length-1,handler:()=>m(r.value.length-1)},{divider:!0},{text:"画笔工具",handler:()=>l.value=!0},{text:"普通视图",handler:()=>e.changeViewMode("base")},{divider:!0}];return c.mode==="pptEditor"&&k.push({text:"结束放映",subText:"ESC",handler:x}),k};return(k,D)=>{const O=st("IconListView"),$=st("IconWrite"),U=st("IconMagic"),q=st("IconStopwatchStart"),H=st("IconOffScreenOne"),N=st("IconPower"),G=st("IconMinus"),j=st("IconPlus"),oe=Ua("contextmenu");return ie(),ve("div",g6,[Q("div",m6,[Q("div",{class:"tool-btn",onClick:D[0]||(D[0]=Y=>k.changeViewMode("base"))},[Xe(O,{class:"tool-icon"}),y6]),Q("div",{class:ft(["tool-btn",{active:l.value}]),onClick:D[1]||(D[1]=Y=>l.value=!l.value)},[Xe($,{class:"tool-icon"}),S6],2),Q("div",{class:ft(["tool-btn",{active:f.value}]),onClick:D[2]||(D[2]=Y=>f.value=!f.value)},[Xe(U,{class:"tool-icon"}),b6],2),Q("div",{class:ft(["tool-btn",{active:u.value}]),onClick:D[3]||(D[3]=Y=>u.value=!u.value)},[Xe(q,{class:"tool-icon"}),x6],2),le(di).hideFullScreen?Ue("",!0):(ie(),ve("div",{key:0,class:"tool-btn",onClick:D[4]||(D[4]=()=>le(M)?le(C)():le(Mv)())},[le(M)?(ie(),Ke(H,{key:0,class:"tool-icon"})):(ie(),Ke(H,{key:1,class:"tool-icon"})),Q("span",null,Pt(le(M)?"退出全屏":"全屏"),1)])),Xe(X3,{class:"divider"}),le(c).mode==="pptEditor"?(ie(),ve("div",{key:1,class:"tool-btn",onClick:D[5]||(D[5]=Y=>le(x)())},[Xe(N,{class:"tool-icon"}),C6])):Ue("",!0)]),Q("div",w6,[Q("div",{class:ft(["slide-list-wrap",{"laser-pen":f.value}]),ref_key:"slideListWrapRef",ref:o},[hr(Xe(sw,{slideWidth:le(T),slideHeight:le(P),animationIndex:le(S),turnSlideToId:le(y),manualExitFullscreen:le(C),onWheel:D[6]||(D[6]=Y=>le(d)(Y)),onTouchstart:D[7]||(D[7]=Y=>le(h)(Y)),onTouchend:D[8]||(D[8]=Y=>le(v)(Y))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[oe,R]]),l.value?(ie(),Ke(lw,{key:0,slideWidth:le(T),slideHeight:le(P),left:-365,top:-155,onClose:D[9]||(D[9]=Y=>l.value=!1)},null,8,["slideWidth","slideHeight"])):Ue("",!0),u.value?(ie(),Ke(uw,{key:1,left:75,onClose:D[10]||(D[10]=Y=>u.value=!1)})):Ue("",!0)],2),Q("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:s,onWheel:D[11]||(D[11]=jr(Y=>E(Y),["prevent"]))},[(ie(!0),ve(Xt,null,Lr(le(r),(Y,te)=>(ie(),ve("div",{class:ft(["thumbnail",{active:te===le(n)}]),key:Y.id,onClick:fe=>le(m)(te)},[Xe(qC,{slide:Y,size:120/le(i),visible:te<le(_)},null,8,["slide","size","visible"])],10,T6))),128))],544)]),Q("div",I6,[Q("div",_6,[A6,Q("span",null,"P "+Pt(le(n)+1)+" / "+Pt(le(r).length),1)]),Q("div",{class:"remark-content ProseMirror-static",style:be({fontSize:w.value+"px"}),innerHTML:b.value},null,12,E6),Q("div",P6,[Q("div",{class:ft(["scale-btn",{disable:w.value===12}]),onClick:D[12]||(D[12]=Y=>A(w.value-2))},[Xe(G)],2),Q("div",{class:ft(["scale-btn",{disable:w.value===40}]),onClick:D[13]||(D[13]=Y=>A(w.value+2))},[Xe(j)],2)])])])}}}),R6=Ge(M6,[["__scopeId","data-v-1e45d89b"]]),D6={class:"pptist-screen"},L6=ze({__name:"index",setup(t){const e=de("base"),r=a=>{e.value=a},{exitScreening:n}=Ac(),i=a=>{a.key.toUpperCase()===Un.ESC&&n()};return _r(()=>document.addEventListener("keydown",i)),hn(()=>document.removeEventListener("keydown",i)),(a,o)=>(ie(),ve("div",D6,[e.value==="base"?(ie(),Ke(p6,{key:0,changeViewMode:r})):e.value==="presenter"?(ie(),Ke(R6,{key:1,changeViewMode:r})):Ue("",!0)]))}}),rz=Ge(L6,[["__scopeId","data-v-3856f8b7"]]);export{U6 as $,b4 as A,_4 as B,PN as C,GC as D,M1 as E,z3 as F,j3 as G,O6 as H,ar as I,Tr as J,Un as K,V6 as L,WC as M,X3 as N,Pn as O,_f as P,W6 as Q,j6 as R,G6 as S,qC as T,X6 as U,i4 as V,K6 as W,b_ as X,cg as Y,ew as Z,VA as _,$6 as a,_l as a0,d3 as a1,th as a2,IA as a3,Z6 as a4,yg as a5,q6 as a6,ez as a7,tz as a8,Ra as a9,Q6 as aa,J6 as ab,n$ as ac,B6 as ad,nw as ae,rz as af,qn as ag,GI as ah,Av as ai,UI as aj,HI as ak,h1 as al,VI as am,WI as an,jI as ao,x_ as ap,Ac as b,z6 as c,I_ as d,A_ as e,F6 as f,v1 as g,sh as h,H6 as i,__ as j,N6 as k,Ec as l,Nr as m,A1 as n,P1 as o,a_ as p,PA as q,fl as r,QA as s,XI as t,Y6 as u,Sg as v,LN as w,DN as x,MN as y,RN as z};