index-Lehg-uQL.js 862 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import{cC as $x,cD as Ux,aG as zx,cE as Hx,cF as Vx,cG as Gx,cH as jx,ah as Yt,cI as Wx,cJ as Xx,cK as Kx,cL as Yx,aM as Zx,aF as Qx,cM as Jx,aB as k0,be as qx,cN as ew,cO as tw,cP as rw,cQ as nw,cR as iw,cS as aw,cT as ow,aE as sw,cU as lw,s as Me,bj as uw,al as Je,ag as je,af as Se,ak as Y,cV as cw,cW as fw,cX as dw,cY as hw,bi as vw,cZ as B0,bo as ov,aq as Ge,c_ as pw,c$ as gw,a5 as Xe,d0 as mw,d1 as yw,d2 as Sw,d3 as bw,d4 as Cw,d5 as xw,d6 as ww,d7 as Tw,d8 as Iw,d9 as Aw,da as _w,v as Ew,db as Pw,dc as Mw,dd as Rw,aR as Dw,de as Lw,df as Ow,dg as kw,dh as Bw,di as Nw,ay as Wn,dj as Fw,dk as $w,dl as Uw,dm as zw,A as Hw,dn as Vw,dp as Gw,bp as jw,dq as Ww,dr as Xw,ds as Kw,ap as Yw,ac as N0,ai as ht,dt as Zw,au as Ie,du as Qw,X as F0,y as Jw,dv as qw,aP as eT,dw as tT,w as xr,dx as rT,dy as nT,H as iT,dz as aT,bz as un,aD as oT,ae as oe,bI as Oa,$ as mc,dA as sT,bH as ka,dB as lT,aC as uT,aO as cT,R as ge,dC as fT,bq as Ud,a_ as Vr,aj as Ns,aY as ct,aZ as il,an as sv,dD as dT,dE as hT,dF as vT,dG as pT,dH as gT,dI as mT,dJ as yT,Q as ST,dK as bT,dL as CT,dM as xT,at as $t,dN as wT,dO as TT,aT as IT,ad as al,aU as AT,dP as _T,dQ as ET,dR as PT,P as he,a6 as MT,dS as RT,dT as DT,dU as LT,dV as OT,a7 as kT,dW as BT,dX as NT,dY as FT,dZ as $T,d_ as UT,b0 as zT,aA as lv,d$ as HT,e0 as VT,E as hr,x as GT,e1 as jT,e2 as WT,e3 as XT,am as xn,e4 as KT,az as rn,a$ as zd,e5 as YT,as as Tn,e6 as ZT,bx as Hd,cn as Vd,co as QT,bG as tt,bt as Gd,e7 as Yi,bB as JT,bv as zt,e8 as qT,cA as $0,bA as U0,e9 as ai,cq as eI,ea as tI,eb as rI,ec as nI,ed as iI,ee as Mp,cp as vo,ef as aI,bE as Rp,cx as yc,cv as oI,eg as Dp,bD as Lp,cB as z0,bu as H0,bw as vr,eh as Cl}from"./index-BSgMIx3Z.js";/**
  2. * vue v3.4.34
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **/const sI=()=>{},lI=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:$x,BaseTransitionPropsValidators:Ux,Comment:zx,DeprecationTypes:Hx,EffectScope:Vx,ErrorCodes:Gx,ErrorTypeStrings:jx,Fragment:Yt,KeepAlive:Wx,ReactiveEffect:Xx,Static:Kx,Suspense:Yx,Teleport:Zx,Text:Qx,TrackOpTypes:Jx,Transition:k0,TransitionGroup:qx,TriggerOpTypes:ew,VueElement:tw,assertNumber:rw,callWithAsyncErrorHandling:nw,callWithErrorHandling:iw,camelize:aw,capitalize:ow,cloneVNode:sw,compatUtils:lw,compile:sI,computed:Me,createApp:uw,createBlock:Je,createCommentVNode:je,createElementBlock:Se,createElementVNode:Y,createHydrationRenderer:cw,createPropsRestProxy:fw,createRenderer:dw,createSSRApp:hw,createSlots:vw,createStaticVNode:B0,createTextVNode:ov,createVNode:Ge,customRef:pw,defineAsyncComponent:gw,defineComponent:Xe,defineCustomElement:mw,defineEmits:yw,defineExpose:Sw,defineModel:bw,defineOptions:Cw,defineProps:xw,defineSSRCustomElement:ww,defineSlots:Tw,devtools:Iw,effect:Aw,effectScope:_w,getCurrentInstance:Ew,getCurrentScope:Pw,getTransitionRawChildren:Mw,guardReactiveProps:Rw,h:Dw,handleError:Lw,hasInjectionContext:Ow,hydrate:kw,initCustomFormatter:Bw,initDirectivesForSSR:Nw,inject:Wn,isMemoSame:Fw,isProxy:$w,isReactive:Uw,isReadonly:zw,isRef:Hw,isRuntimeOnly:Vw,isShallow:Gw,isVNode:jw,markRaw:Ww,mergeDefaults:Xw,mergeModels:Kw,mergeProps:Yw,nextTick:N0,normalizeClass:ht,normalizeProps:Zw,normalizeStyle:Ie,onActivated:Qw,onBeforeMount:F0,onBeforeUnmount:Jw,onBeforeUpdate:qw,onDeactivated:eT,onErrorCaptured:tT,onMounted:xr,onRenderTracked:rT,onRenderTriggered:nT,onScopeDispose:iT,onServerPrefetch:aT,onUnmounted:un,onUpdated:oT,openBlock:oe,popScopeId:Oa,provide:mc,proxyRefs:sT,pushScopeId:ka,queuePostFlushCb:lT,reactive:uT,readonly:cT,ref:ge,registerRuntimeCompiler:fT,render:Ud,renderList:Vr,renderSlot:Ns,resolveComponent:ct,resolveDirective:il,resolveDynamicComponent:sv,resolveFilter:dT,resolveTransitionHooks:hT,setBlockTracking:vT,setDevtoolsHook:pT,setTransitionHooks:gT,shallowReactive:mT,shallowReadonly:yT,shallowRef:ST,ssrContextKey:bT,ssrUtils:CT,stop:xT,toDisplayString:$t,toHandlerKey:wT,toHandlers:TT,toRaw:IT,toRef:al,toRefs:AT,toValue:_T,transformVNodeArgs:ET,triggerRef:PT,unref:he,useAttrs:MT,useCssModule:RT,useCssVars:DT,useModel:LT,useSSRContext:OT,useSlots:kT,useTransitionState:BT,vModelCheckbox:NT,vModelDynamic:FT,vModelRadio:$T,vModelSelect:UT,vModelText:zT,vShow:lv,version:HT,warn:VT,watch:hr,watchEffect:GT,watchPostEffect:jT,watchSyncEffect:WT,withAsyncContext:XT,withCtx:xn,withDefaults:KT,withDirectives:rn,withKeys:zd,withMemo:YT,withModifiers:Tn,withScopeId:ZT},Symbol.toStringTag,{value:"Module"}));var Nn=(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))(Nn||{});const t$=[{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"}]}],jd=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)]}},r$=t=>{const{xRange:e,yRange:r}=jd({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:n,yRange:i}=jd({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]}},V0=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}=jd({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}},n$=t=>{const e=[],r=[],n=[],i=[];t.forEach(u=>{const{minX:f,maxX:c,minY:d,maxY:h}=V0(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}},i$=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},a$=t=>{const e={};for(const r of t)e[r.id]=Hd(10);return e},o$=t=>{const e={},r={};for(const n of t){const i=n.groupId;i&&!e[i]&&(e[i]=Hd(10)),r[n.id]=Hd(10)}return{groupIdMap:e,elIdMap:r}},uI=t=>{const e=Vd(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},cI=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}=V0(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}`},s$=(t,e)=>{const r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom},fI=["id"],dI={class:"icons"},hI={class:"content"},vI={key:0,class:"title"},pI={class:"description"},gI={key:0,class:"control"},mI=Xe({__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}=QT,l=t,u=r,f=ge(!0),c=ge(null),d=()=>{l.duration<=0||(c.value=setTimeout(v,l.duration))},h=()=>{c.value&&clearTimeout(c.value)},v=()=>f.value=!1;return F0(()=>{h()}),xr(()=>{d()}),e({close:v}),(p,g)=>(oe(),Je(k0,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:g[3]||(g[3]=m=>u("close")),onAfterLeave:g[4]||(g[4]=m=>u("destroy"))},{default:xn(()=>[f.value?(oe(),Se("div",{key:0,class:"message",id:p.id},[Y("div",{class:"message-container",onMouseenter:g[1]||(g[1]=m=>h()),onMouseleave:g[2]||(g[2]=m=>d())},[Y("div",dI,[p.type==="warning"?(oe(),Je(he(n),{key:0,theme:"filled",size:"18",fill:"#faad14"})):je("",!0),p.type==="success"?(oe(),Je(he(i),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):je("",!0),p.type==="error"?(oe(),Je(he(a),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):je("",!0),p.type==="info"?(oe(),Je(he(o),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):je("",!0)]),Y("div",hI,[p.title?(oe(),Se("div",vI,$t(p.title),1)):je("",!0),Y("div",pI,$t(p.message),1)]),p.closable?(oe(),Se("div",gI,[Y("span",{class:"close-btn",onClick:g[0]||(g[0]=m=>v())},[Ge(he(s))])])):je("",!0)],32)],8,fI)):je("",!0)]),_:1}))}}),yI=tt(mI,[["__scopeId","data-v-bfa2994d"]]),Wd=[];let Dn=null,SI=0;const bI={duration:3e3},Dr=t=>{const e="message-"+SI++,r={...bI,...t,id:e};Dn||(Dn=document.createElement("div"),Dn.className="message-wrap",Dn.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(Dn));const n=Ge(yI,r,null),i=document.createElement("div");n.appContext=t.ctx||Dr._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{Dn&&Dn.childNodes.length<=1&&(Dn.remove(),Dn=null),Ud(null,i)},Ud(n,i),Dn.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 Wd.push(a),a};Dr.success=(t,e)=>Dr({...e,type:"success",message:t});Dr.info=(t,e)=>Dr({...e,type:"info",message:t});Dr.warning=(t,e)=>Dr({...e,type:"warning",message:t});Dr.error=(t,e)=>Dr({...e,type:"error",message:t});Dr.closeAll=function(){for(let t=Wd.length-1;t>=0;t--)Wd[t].close()};const CI=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},xl=(t,e)=>Gd.padStart(""+t,e,"0"),l$=t=>/^(https?:\/\/)([\w-]+\.)+[\w-]{2,}(\/[\w-./?%&=]*)?$/i.test(t);var xI=(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))(xI||{}),ir=(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))(ir||{}),oi=(t=>(t.VIDEO="elf-video",t.AUDIO="elf-audio",t.SING_PLAY="elf-sing-play",t.ENJOY="elf-enjoy",t))(oi||{});const wI=(t,e)=>Yi.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/detail",data:{id:t,fromType:e}}),TI=t=>Yi.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/savePptJson",data:t}),II=t=>Yi.axioseRquest({method:"post",url:"/edu-app/chapterKnowledgeMaterial/update",data:t}),u$=(t,e)=>Yi.axioseRquest({signal:e.signal,method:"post",url:"/edu-app/material/queryPage",data:t}),c$=()=>Yi.axioseRquest({method:"post",url:"/edu-app/subject/list",data:{delFlag:0,page:1,rows:999}}),f$=()=>Yi.axioseRquest({method:"get",url:"/edu-app/musicTag/tree"}),d$=()=>Yi.axioseRquest({method:"post",url:"/edu-app/materialTag/page",data:{page:1,rows:9999}}),h$=t=>Yi.axioseRquest({method:"post",url:"/edu-app/material/favorite",data:t});function AI(t){return new Promise((e,r)=>{JT.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 _I(t){const e=zt(),{width:r,theme:n,slides:i}=t;e.updateSlideIndex(0),e.setViewportSize(r||1920),e.setViewportRatio(n.viewportRatio||.5625);const a=PI(i);e.setTheme(n),e.setSlides(a.length?a:qT)}function EI(){const t=zt(),{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 PI(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})}var G0={exports:{}};(function(t,e){(function(n,i){t.exports=i()})($0,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(_){for(var E={},R=0,O=_.length;R<O;R++)E[_.charAt(R)]=R;return E}(l),f=String.fromCharCode,c=function(E){if(E.length<2){var R=E.charCodeAt(0);return R<128?E: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+(E.charCodeAt(0)-55296)*1024+(E.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(E){return E.replace(d,c)},v=function(E){var R=[0,2,1][E.length%3],O=E.charCodeAt(0)<<16|(E.length>1?E.charCodeAt(1):0)<<8|(E.length>2?E.charCodeAt(2):0),D=[l.charAt(O>>>18),l.charAt(O>>>12&63),R>=2?"=":l.charAt(O>>>6&63),R>=1?"=":l.charAt(O&63)];return D.join("")},p=a.btoa?function(_){return a.btoa(_)}:function(_){return _.replace(/[\s\S]{1,3}/g,v)},g=function(_){return p(h(_))},m=function(E,R){return R?g(String(E)).replace(/[+\/]/g,function(O){return O=="+"?"-":"_"}).replace(/=/g,""):g(String(E))},y=function(E){return m(E,!0)},b=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),A=function(E){switch(E.length){case 4:var R=(7&E.charCodeAt(0))<<18|(63&E.charCodeAt(1))<<12|(63&E.charCodeAt(2))<<6|63&E.charCodeAt(3),O=R-65536;return f((O>>>10)+55296)+f((O&1023)+56320);case 3:return f((15&E.charCodeAt(0))<<12|(63&E.charCodeAt(1))<<6|63&E.charCodeAt(2));default:return f((31&E.charCodeAt(0))<<6|63&E.charCodeAt(1))}},M=function(E){return E.replace(b,A)},C=function(E){var R=E.length,O=R%4,D=(R>0?u[E.charAt(0)]<<18:0)|(R>1?u[E.charAt(1)]<<12:0)|(R>2?u[E.charAt(2)]<<6:0)|(R>3?u[E.charAt(3)]:0),B=[f(D>>>16),f(D>>>8&255),f(D&255)];return B.length-=[0,0,2,1][O],B.join("")},I=a.atob?function(_){return a.atob(_)}:function(_){return _.replace(/[\s\S]{1,4}/g,C)},P=function(_){return M(I(_))},S=function(E){return P(String(E).replace(/[-_]/g,function(R){return R=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(){var E=a.Base64;return a.Base64=o,E},x={VERSION:s,atob:I,btoa:p,fromBase64:S,toBase64:m,utob:h,encode:m,encodeURI:y,btou:M,decode:S,noConflict:T};return x}();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(C){d.prototype=this;var I=new d;return C&&I.mixIn(C),I.hasOwnProperty("init")||(I.init=function(){I.$super.init.apply(this,arguments)}),I.init.prototype=I,I.$super=this,I},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var I in C)C.hasOwnProperty(I)&&(this[I]=C[I]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},v=c.WordArray=h.extend({init:function(C,I){C=this.words=C||[],this.sigBytes=I!=u?I:4*C.length},toString:function(C){return(C||g).stringify(this)},concat:function(C){var I=this.words,P=C.words,S=this.sigBytes;if(C=C.sigBytes,this.clamp(),S%4)for(var T=0;T<C;T++)I[S+T>>>2]|=(P[T>>>2]>>>24-8*(T%4)&255)<<24-8*((S+T)%4);else if(65535<P.length)for(T=0;T<C;T+=4)I[S+T>>>2]=P[T>>>2];else I.push.apply(I,P);return this.sigBytes+=C,this},clamp:function(){var C=this.words,I=this.sigBytes;C[I>>>2]&=4294967295<<32-8*(I%4),C.length=l.ceil(I/4)},clone:function(){var C=h.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var I=[],P=0;P<C;P+=4)I.push(4294967296*l.random()|0);return new v.init(I,C)}}),p=f.enc={},g=p.Hex={stringify:function(C){var I=C.words;C=C.sigBytes;for(var P=[],S=0;S<C;S++){var T=I[S>>>2]>>>24-8*(S%4)&255;P.push((T>>>4).toString(16)),P.push((T&15).toString(16))}return P.join("")},parse:function(C){for(var I=C.length,P=[],S=0;S<I;S+=2)P[S>>>3]|=parseInt(C.substr(S,2),16)<<24-4*(S%8);return new v.init(P,I/2)}},m=p.Latin1={stringify:function(C){var I=C.words;C=C.sigBytes;for(var P=[],S=0;S<C;S++)P.push(String.fromCharCode(I[S>>>2]>>>24-8*(S%4)&255));return P.join("")},parse:function(C){for(var I=C.length,P=[],S=0;S<I;S++)P[S>>>2]|=(C.charCodeAt(S)&255)<<24-8*(S%4);return new v.init(P,I)}},y=p.Utf8={stringify:function(C){try{return decodeURIComponent(escape(m.stringify(C)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(C){return m.parse(unescape(encodeURIComponent(C)))}},b=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=y.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var I=this._data,P=I.words,S=I.sigBytes,T=this.blockSize,x=S/(4*T),x=C?l.ceil(x):l.max((x|0)-this._minBufferSize,0);if(C=x*T,S=l.min(4*C,S),C){for(var _=0;_<C;_+=T)this._doProcessBlock(P,_);_=P.splice(0,C),I.sigBytes-=S}return new v.init(_,S)},clone:function(){var C=h.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});c.Hasher=b.extend({cfg:h.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(I,P){return new C.init(P).finalize(I)}},_createHmacHelper:function(C){return function(I,P){return new A.HMAC.init(C,P).finalize(I)}}});var A=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],b=g[2],A=g[3],M=g[4],C=0;80>C;C++){if(16>C)c[C]=v[p+C]|0;else{var I=c[C-3]^c[C-8]^c[C-14]^c[C-16];c[C]=I<<1|I>>>31}I=(m<<5|m>>>27)+M+c[C],I=20>C?I+((y&b|~y&A)+1518500249):40>C?I+((y^b^A)+1859775393):60>C?I+((y&b|y&A|b&A)-1894007588):I+((y^b^A)-899497514),M=A,A=b,b=y<<30|y>>>2,y=m,m=I}g[0]=g[0]+m|0,g[1]=g[1]+y|0,g[2]=g[2]+b|0,g[3]=g[3]+A|0,g[4]=g[4]+M|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,b=0;b<h;b++)m[b]^=1549556828,y[b]^=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 b=v[y>>>2]>>>24-y%4*8&255,A=v[y+1>>>2]>>>24-(y+1)%4*8&255,M=v[y+2>>>2]>>>24-(y+2)%4*8&255,C=b<<16|A<<8|M,I=0;I<4&&y+I*.75<p;I++)m.push(g.charAt(C>>>6*(3-I)&63));var P=g.charAt(64);if(P)for(;m.length%4;)m.push(P);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=[],b=0,A=0;A<v;A++)if(A%4){var M=p.indexOf(h.charAt(A-1))<<A%4*2,C=p.indexOf(h.charAt(A))>>>6-A%4*2;y[b>>>2]|=(M|C)<<24-b%4*8,b++}return f.create(y,b)},_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(""),b=[],A;if(h){var M=new ArrayBuffer(68);A=new Uint8Array(M),b=new Uint32Array(M)}(u.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),h&&(u.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return s(T)==="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});var C=function(x){return function(_,E){return new P(!0).update(_,E)[x]()}},I=function(){var x=C("hex");x.getCtx=x.create=function(){return new P},x.update=function(R){return x.create().update(R)};for(var _=0;_<m.length;++_){var E=m[_];x[E]=C(E)}return x};function P(T){if(T)b[0]=b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0,this.blocks=b,this.buffer8=A;else if(h){var x=new ArrayBuffer(68);this.buffer8=new Uint8Array(x),this.blocks=new Uint32Array(x)}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}P.prototype.update=function(T,x){if(!this.finalized){for(var _,E=0,R,O=T.length,D=this.blocks,B=this.buffer8;E<O;){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;E<O&&R<64;++E)_=T.charCodeAt(E),x||_<128?B[R++]=_:_<2048?(B[R++]=192|_>>6,B[R++]=128|_&63):_<55296||_>=57344?(B[R++]=224|_>>12,B[R++]=128|_>>6&63,B[R++]=128|_&63):(_=65536+((_&1023)<<10|T.charCodeAt(++E)&1023),B[R++]=240|_>>18,B[R++]=128|_>>12&63,B[R++]=128|_>>6&63,B[R++]=128|_&63);else for(R=this.start;E<O&&R<64;++E)_=T.charCodeAt(E),x||_<128?D[R>>2]|=_<<g[R++&3]:_<2048?(D[R>>2]|=(192|_>>6)<<g[R++&3],D[R>>2]|=(128|_&63)<<g[R++&3]):_<55296||_>=57344?(D[R>>2]|=(224|_>>12)<<g[R++&3],D[R>>2]|=(128|_>>6&63)<<g[R++&3],D[R>>2]|=(128|_&63)<<g[R++&3]):(_=65536+((_&1023)<<10|T.charCodeAt(++E)&1023),D[R>>2]|=(240|_>>18)<<g[R++&3],D[R>>2]|=(128|_>>12&63)<<g[R++&3],D[R>>2]|=(128|_>>6&63)<<g[R++&3],D[R>>2]|=(128|_&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}},P.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,x=this.lastByteIndex;T[x>>2]|=p[x&3],x>=56&&(this.hashed||this.hash(),T[0]=T[16],T[16]=T[1]=T[2]=T[3]=T[4]=T[5]=T[6]=T[7]=T[8]=T[9]=T[10]=T[11]=T[12]=T[13]=T[14]=T[15]=0),T[14]=this.bytes<<3,T[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},P.prototype.hash=function(){var T,x,_,E,R,O,D=this.blocks;this.first?(T=D[0]-680876937,T=(T<<7|T>>>25)-271733879<<0,E=(-1732584194^T&2004318071)+D[1]-117830708,E=(E<<12|E>>>20)+T<<0,_=(-271733879^E&(T^-271733879))+D[2]-1126478375,_=(_<<17|_>>>15)+E<<0,x=(T^_&(E^T))+D[3]-1316259209,x=(x<<22|x>>>10)+_<<0):(T=this.h0,x=this.h1,_=this.h2,E=this.h3,T+=(E^x&(_^E))+D[0]-680876936,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[1]-389564586,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[2]+606105819,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[3]-1044525330,x=(x<<22|x>>>10)+_<<0),T+=(E^x&(_^E))+D[4]-176418897,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[5]+1200080426,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[6]-1473231341,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[7]-45705983,x=(x<<22|x>>>10)+_<<0,T+=(E^x&(_^E))+D[8]+1770035416,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[9]-1958414417,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[10]-42063,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[11]-1990404162,x=(x<<22|x>>>10)+_<<0,T+=(E^x&(_^E))+D[12]+1804603682,T=(T<<7|T>>>25)+x<<0,E+=(_^T&(x^_))+D[13]-40341101,E=(E<<12|E>>>20)+T<<0,_+=(x^E&(T^x))+D[14]-1502002290,_=(_<<17|_>>>15)+E<<0,x+=(T^_&(E^T))+D[15]+1236535329,x=(x<<22|x>>>10)+_<<0,T+=(_^E&(x^_))+D[1]-165796510,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[6]-1069501632,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[11]+643717713,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[0]-373897302,x=(x<<20|x>>>12)+_<<0,T+=(_^E&(x^_))+D[5]-701558691,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[10]+38016083,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[15]-660478335,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[4]-405537848,x=(x<<20|x>>>12)+_<<0,T+=(_^E&(x^_))+D[9]+568446438,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[14]-1019803690,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[3]-187363961,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[8]+1163531501,x=(x<<20|x>>>12)+_<<0,T+=(_^E&(x^_))+D[13]-1444681467,T=(T<<5|T>>>27)+x<<0,E+=(x^_&(T^x))+D[2]-51403784,E=(E<<9|E>>>23)+T<<0,_+=(T^x&(E^T))+D[7]+1735328473,_=(_<<14|_>>>18)+E<<0,x+=(E^T&(_^E))+D[12]-1926607734,x=(x<<20|x>>>12)+_<<0,R=x^_,T+=(R^E)+D[5]-378558,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[8]-2022574463,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[11]+1839030562,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[14]-35309556,x=(x<<23|x>>>9)+_<<0,R=x^_,T+=(R^E)+D[1]-1530992060,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[4]+1272893353,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[7]-155497632,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[10]-1094730640,x=(x<<23|x>>>9)+_<<0,R=x^_,T+=(R^E)+D[13]+681279174,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[0]-358537222,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[3]-722521979,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[6]+76029189,x=(x<<23|x>>>9)+_<<0,R=x^_,T+=(R^E)+D[9]-640364487,T=(T<<4|T>>>28)+x<<0,E+=(R^T)+D[12]-421815835,E=(E<<11|E>>>21)+T<<0,O=E^T,_+=(O^x)+D[15]+530742520,_=(_<<16|_>>>16)+E<<0,x+=(O^_)+D[2]-995338651,x=(x<<23|x>>>9)+_<<0,T+=(_^(x|~E))+D[0]-198630844,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[7]+1126891415,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[14]-1416354905,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[5]-57434055,x=(x<<21|x>>>11)+_<<0,T+=(_^(x|~E))+D[12]+1700485571,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[3]-1894986606,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[10]-1051523,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[1]-2054922799,x=(x<<21|x>>>11)+_<<0,T+=(_^(x|~E))+D[8]+1873313359,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[15]-30611744,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[6]-1560198380,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[13]+1309151649,x=(x<<21|x>>>11)+_<<0,T+=(_^(x|~E))+D[4]-145523070,T=(T<<6|T>>>26)+x<<0,E+=(x^(T|~_))+D[11]-1120210379,E=(E<<10|E>>>22)+T<<0,_+=(T^(E|~x))+D[2]+718787259,_=(_<<15|_>>>17)+E<<0,x+=(E^(_|~T))+D[9]-343485551,x=(x<<21|x>>>11)+_<<0,this.first?(this.h0=T+1732584193<<0,this.h1=x-271733879<<0,this.h2=_-1732584194<<0,this.h3=E+271733878<<0,this.first=!1):(this.h0=this.h0+T<<0,this.h1=this.h1+x<<0,this.h2=this.h2+_<<0,this.h3=this.h3+E<<0)},P.prototype.hex=function(){this.finalize();var T=this.h0,x=this.h1,_=this.h2,E=this.h3;return v[T>>4&15]+v[T&15]+v[T>>12&15]+v[T>>8&15]+v[T>>20&15]+v[T>>16&15]+v[T>>28&15]+v[T>>24&15]+v[x>>4&15]+v[x&15]+v[x>>12&15]+v[x>>8&15]+v[x>>20&15]+v[x>>16&15]+v[x>>28&15]+v[x>>24&15]+v[_>>4&15]+v[_&15]+v[_>>12&15]+v[_>>8&15]+v[_>>20&15]+v[_>>16&15]+v[_>>28&15]+v[_>>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]},P.prototype.toString=P.prototype.hex,P.prototype.digest=function(T){if(T==="hex")return this.hex();this.finalize();var x=this.h0,_=this.h1,E=this.h2,R=this.h3,O=[x&255,x>>8&255,x>>16&255,x>>24&255,_&255,_>>8&255,_>>16&255,_>>24&255,E&255,E>>8&255,E>>16&255,E>>24&255,R&255,R>>8&255,R>>16&255,R>>24&255];return O},P.prototype.array=P.prototype.digest,P.prototype.arrayBuffer=function(){this.finalize();var T=new ArrayBuffer(16),x=new Uint32Array(T);return x[0]=this.h0,x[1]=this.h1,x[2]=this.h2,x[3]=this.h3,T},P.prototype.buffer=P.prototype.arrayBuffer,P.prototype.base64=function(){for(var T,x,_,E="",R=this.array(),O=0;O<15;)T=R[O++],x=R[O++],_=R[O++],E+=y[T>>>2]+y[(T<<4|x>>>4)&63]+y[(x<<2|_>>>6)&63]+y[_&63];return T=R[O],E+=y[T>>>2]+y[T<<4&63]+"==",E};var S=I();c?a.exports=S:(u.md5=S,d&&(o=(function(){return S}).call(S,i,S,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(":"),b=m.substr(0,y).trim().toLowerCase(),A=m.substr(y+1).trim();p[b]=A}}),{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 b=d.headers;if(b)for(var A in b)b.hasOwnProperty(A)&&A.toLowerCase()!=="content-length"&&A.toLowerCase()!=="user-agent"&&A.toLowerCase()!=="origin"&&A.toLowerCase()!=="host"&&m.setRequestHeader(A,b[A]);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(M){var C=new Error("timeout");h(l(C,m))},m.onload=function(){h(l(null,m,u(m,d.dataType)))},m.onerror=function(M){var C=u(m,d.dataType);if(C)h(l(null,m,C));else{var I=m.statusText;!I&&m.status===0&&(I=new Error("CORS blocked or network error")),h(l(I,m,C))}},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(C,I){I=Object.assign({},o,I);const P=[];let S=!1,T=!1;C[0]==="\uFEFF"&&(C=C.substr(1));for(let x=0;x<C.length;x++)if(C[x]==="<"&&C[x+1]==="?"){if(x+=2,x=l(C,x),x.err)return x}else if(C[x]==="<"){let _=x;if(x++,C[x]==="!"){x=u(C,x);continue}else{let E=!1;C[x]==="/"&&(E=!0,x++);let R="";for(;x<C.length&&C[x]!==">"&&C[x]!==" "&&C[x]!==" "&&C[x]!==`
  21. `&&C[x]!=="\r";x++)R+=C[x];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),x--),!b(R)){let B;return R.trim().length===0?B="Invalid space after '<'.":B="Tag '"+R+"' is an invalid name.",m("InvalidTag",B,A(C,x))}const O=d(C,x);if(O===!1)return m("InvalidAttr","Attributes for '"+R+"' have open quote.",A(C,x));let D=O.value;if(x=O.index,D[D.length-1]==="/"){const B=x-D.length;D=D.substring(0,D.length-1);const $=v(D,I);if($===!0)S=!0;else return m($.err.code,$.err.msg,A(C,B+$.err.line))}else if(E)if(O.tagClosed){if(D.trim().length>0)return m("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",A(C,_));if(P.length===0)return m("InvalidTag","Closing tag '"+R+"' has not been opened.",A(C,_));{const B=P.pop();if(R!==B.tagName){let $=A(C,B.tagStartPos);return m("InvalidTag","Expected closing tag '"+B.tagName+"' (opened in line "+$.line+", col "+$.col+") instead of closing tag '"+R+"'.",A(C,_))}P.length==0&&(T=!0)}}else return m("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",A(C,x));else{const B=v(D,I);if(B!==!0)return m(B.err.code,B.err.msg,A(C,x-D.length+B.err.line));if(T===!0)return m("InvalidXml","Multiple possible root nodes found.",A(C,x));I.unpairedTags.indexOf(R)!==-1||P.push({tagName:R,tagStartPos:_}),S=!0}for(x++;x<C.length;x++)if(C[x]==="<")if(C[x+1]==="!"){x++,x=u(C,x);continue}else if(C[x+1]==="?"){if(x=l(C,++x),x.err)return x}else break;else if(C[x]==="&"){const B=g(C,x);if(B==-1)return m("InvalidChar","char '&' is not expected.",A(C,x));x=B}else if(T===!0&&!s(C[x]))return m("InvalidXml","Extra text at the end",A(C,x));C[x]==="<"&&x--}}else{if(s(C[x]))continue;return m("InvalidChar","char '"+C[x]+"' is not expected.",A(C,x))}if(S){if(P.length==1)return m("InvalidTag","Unclosed tag '"+P[0].tagName+"'.",A(C,P[0].tagStartPos));if(P.length>0)return m("InvalidXml","Invalid '"+JSON.stringify(P.map(x=>x.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return m("InvalidXml","Start tag expected.",1);return!0};function s(C){return C===" "||C===" "||C===`
  22. `||C==="\r"}function l(C,I){const P=I;for(;I<C.length;I++)if(C[I]=="?"||C[I]==" "){const S=C.substr(P,I-P);if(I>5&&S==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",A(C,I));if(C[I]=="?"&&C[I+1]==">"){I++;break}else continue}return I}function u(C,I){if(C.length>I+5&&C[I+1]==="-"&&C[I+2]==="-"){for(I+=3;I<C.length;I++)if(C[I]==="-"&&C[I+1]==="-"&&C[I+2]===">"){I+=2;break}}else if(C.length>I+8&&C[I+1]==="D"&&C[I+2]==="O"&&C[I+3]==="C"&&C[I+4]==="T"&&C[I+5]==="Y"&&C[I+6]==="P"&&C[I+7]==="E"){let P=1;for(I+=8;I<C.length;I++)if(C[I]==="<")P++;else if(C[I]===">"&&(P--,P===0))break}else if(C.length>I+9&&C[I+1]==="["&&C[I+2]==="C"&&C[I+3]==="D"&&C[I+4]==="A"&&C[I+5]==="T"&&C[I+6]==="A"&&C[I+7]==="["){for(I+=8;I<C.length;I++)if(C[I]==="]"&&C[I+1]==="]"&&C[I+2]===">"){I+=2;break}}return I}const f='"',c="'";function d(C,I){let P="",S="",T=!1;for(;I<C.length;I++){if(C[I]===f||C[I]===c)S===""?S=C[I]:S!==C[I]||(S="");else if(C[I]===">"&&S===""){T=!0;break}P+=C[I]}return S!==""?!1:{value:P,index:I,tagClosed:T}}const h=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function v(C,I){const P=a.getAllMatches(C,h),S={};for(let T=0;T<P.length;T++){if(P[T][1].length===0)return m("InvalidAttr","Attribute '"+P[T][2]+"' has no space in starting.",M(P[T]));if(P[T][3]!==void 0&&P[T][4]===void 0)return m("InvalidAttr","Attribute '"+P[T][2]+"' is without value.",M(P[T]));if(P[T][3]===void 0&&!I.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+P[T][2]+"' is not allowed.",M(P[T]));const x=P[T][2];if(!y(x))return m("InvalidAttr","Attribute '"+x+"' is an invalid name.",M(P[T]));if(!S.hasOwnProperty(x))S[x]=1;else return m("InvalidAttr","Attribute '"+x+"' is repeated.",M(P[T]))}return!0}function p(C,I){let P=/\d/;for(C[I]==="x"&&(I++,P=/[\da-fA-F]/);I<C.length;I++){if(C[I]===";")return I;if(!C[I].match(P))break}return-1}function g(C,I){if(I++,C[I]===";")return-1;if(C[I]==="#")return I++,p(C,I);let P=0;for(;I<C.length;I++,P++)if(!(C[I].match(/\w/)&&P<20)){if(C[I]===";")break;return-1}return I}function m(C,I,P){return{err:{code:C,msg:I,line:P.line||P,col:P.col}}}function y(C){return a.isName(C)}function b(C){return a.isName(C)}function A(C,I){const P=C.substring(0,I).split(/\r?\n/);return{line:P.length,col:P[P.length-1].length+1}}function M(C){return C.startIndex+C[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 b=c[p][y];typeof b>"u"||(b===null?p[0]==="?"?v+=this.indentate(d)+"<"+p+"?"+this.tagEndChar:v+=this.indentate(d)+"<"+p+"/"+this.tagEndChar:typeof b=="object"?this.options.oneListGroup?m+=this.j2x(b,d+1).val:m+=this.processTextOrObjNode(b,p,d):m+=this.buildTextValNode(b,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],b=s(y);if(b===void 0)continue;let A="";if(h.length===0?A=b:A=`${h}.${b}`,b===d.textNodeName){let S=y[b];u(A,d)||(S=d.tagValueProcessor(b,S),S=f(S,d)),g&&(p+=v),p+=S,g=!1;continue}else if(b===d.cdataPropName){g&&(p+=v),p+=`<![CDATA[${y[b][0][d.textNodeName]}]]>`,g=!1;continue}else if(b===d.commentPropName){p+=v+`<!--${y[b][0][d.textNodeName]}-->`,g=!0;continue}else if(b[0]==="?"){const S=l(y[":@"],d),T=b==="?xml"?"":v;let x=y[b][0][d.textNodeName];x=x.length!==0?" "+x:"",p+=T+`<${b}${x}${S}?>`,g=!0;continue}let M=v;M!==""&&(M+=d.indentBy);const C=l(y[":@"],d),I=v+`<${b}${C}`,P=o(y[b],d,A,M);d.unpairedTags.indexOf(b)!==-1?d.suppressUnpairedNode?p+=I+">":p+=I+"/>":(!P||P.length===0)&&d.suppressEmptyNode?p+=I+"/>":P&&P.endsWith(">")?p+=I+`>${P}${v}</${b}>`:(p+=I+">",P&&v!==""&&(P.includes("/>")||P.includes("</"))?p+=v+d.indentBy+P+v:p+=P,p+=`</${b}>`),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,b=!1,A="";for(;p<v.length;p++)if(v[p]==="<"&&!b){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)b=!0;else throw new Error("Invalid DOCTYPE");m++,A=""}else if(v[p]===">"){if(b?v[p-1]==="-"&&v[p-2]==="-"&&(b=!1,m--):m--,m===0)break}else v[p]==="["?y=!0:A+=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(T){this.options=T,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:(x,_)=>String.fromCharCode(Number.parseInt(_,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(x,_)=>String.fromCharCode(Number.parseInt(_,16))}},this.addExternalEntities=f,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=d,this.buildAttributesMap=v,this.isItStopNode=b,this.replaceEntitiesValue=m,this.readStopNodeData=I,this.saveTextToParentTag=y,this.addChild=g}}function f(S){const T=Object.keys(S);for(let x=0;x<T.length;x++){const _=T[x];this.lastEntities[_]={regex:new RegExp("&"+_+";","g"),val:S[_]}}}function c(S,T,x,_,E,R,O){if(S!==void 0&&(this.options.trimValues&&!_&&(S=S.trim()),S.length>0)){O||(S=this.replaceEntitiesValue(S));const D=this.options.tagValueProcessor(T,S,x,E,R);return D==null?S:typeof D!=typeof S||D!==S?D:this.options.trimValues?P(S,this.options.parseTagValue,this.options.numberParseOptions):S.trim()===S?P(S,this.options.parseTagValue,this.options.numberParseOptions):S}}function d(S){if(this.options.removeNSPrefix){const T=S.split(":"),x=S.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(S=x+T[1])}return S}const h=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function v(S,T,x){if(!this.options.ignoreAttributes&&typeof S=="string"){const _=a.getAllMatches(S,h),E=_.length,R={};for(let O=0;O<E;O++){const D=this.resolveNameSpace(_[O][1]);let B=_[O][4],$=this.options.attributeNamePrefix+D;if(D.length)if(this.options.transformAttributeName&&($=this.options.transformAttributeName($)),$==="__proto__"&&($="#__proto__"),B!==void 0){this.options.trimValues&&(B=B.trim()),B=this.replaceEntitiesValue(B);const U=this.options.attributeValueProcessor(D,B,T);U==null?R[$]=B:typeof U!=typeof B||U!==B?R[$]=U:R[$]=P(B,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(R[$]=!0)}if(!Object.keys(R).length)return;if(this.options.attributesGroupName){const O={};return O[this.options.attributesGroupName]=R,O}return R}}const p=function(S){S=S.replace(/\r\n?/g,`
  26. `);const T=new o("!xml");let x=T,_="",E="";for(let R=0;R<S.length;R++)if(S[R]==="<")if(S[R+1]==="/"){const D=M(S,">",R,"Closing Tag is not closed.");let B=S.substring(R+2,D).trim();if(this.options.removeNSPrefix){const Q=B.indexOf(":");Q!==-1&&(B=B.substr(Q+1))}this.options.transformTagName&&(B=this.options.transformTagName(B)),x&&(_=this.saveTextToParentTag(_,x,E));const $=E.substring(E.lastIndexOf(".")+1);if(B&&this.options.unpairedTags.indexOf(B)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${B}>`);let U=0;$&&this.options.unpairedTags.indexOf($)!==-1?(U=E.lastIndexOf(".",E.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=E.lastIndexOf("."),E=E.substring(0,U),x=this.tagsNodeStack.pop(),_="",R=D}else if(S[R+1]==="?"){let D=C(S,R,!1,"?>");if(!D)throw new Error("Pi Tag is not closed.");if(_=this.saveTextToParentTag(_,x,E),!(this.options.ignoreDeclaration&&D.tagName==="?xml"||this.options.ignorePiTags)){const B=new o(D.tagName);B.add(this.options.textNodeName,""),D.tagName!==D.tagExp&&D.attrExpPresent&&(B[":@"]=this.buildAttributesMap(D.tagExp,E,D.tagName)),this.addChild(x,B,E)}R=D.closeIndex+1}else if(S.substr(R+1,3)==="!--"){const D=M(S,"-->",R+4,"Comment is not closed.");if(this.options.commentPropName){const B=S.substring(R+4,D-2);_=this.saveTextToParentTag(_,x,E),x.add(this.options.commentPropName,[{[this.options.textNodeName]:B}])}R=D}else if(S.substr(R+1,2)==="!D"){const D=s(S,R);this.docTypeEntities=D.entities,R=D.i}else if(S.substr(R+1,2)==="!["){const D=M(S,"]]>",R,"CDATA is not closed.")-2,B=S.substring(R+9,D);_=this.saveTextToParentTag(_,x,E);let $=this.parseTextData(B,x.tagname,E,!0,!1,!0,!0);$==null&&($=""),this.options.cdataPropName?x.add(this.options.cdataPropName,[{[this.options.textNodeName]:B}]):x.add(this.options.textNodeName,$),R=D+2}else{let D=C(S,R,this.options.removeNSPrefix),B=D.tagName;const $=D.rawTagName;let U=D.tagExp,Q=D.attrExpPresent,Z=D.closeIndex;this.options.transformTagName&&(B=this.options.transformTagName(B)),x&&_&&x.tagname!=="!xml"&&(_=this.saveTextToParentTag(_,x,E,!1));const V=x;if(V&&this.options.unpairedTags.indexOf(V.tagname)!==-1&&(x=this.tagsNodeStack.pop(),E=E.substring(0,E.lastIndexOf("."))),B!==T.tagname&&(E+=E?"."+B:B),this.isItStopNode(this.options.stopNodes,E,B)){let te="";if(U.length>0&&U.lastIndexOf("/")===U.length-1)B[B.length-1]==="/"?(B=B.substr(0,B.length-1),E=E.substr(0,E.length-1),U=B):U=U.substr(0,U.length-1),R=D.closeIndex;else if(this.options.unpairedTags.indexOf(B)!==-1)R=D.closeIndex;else{const se=this.readStopNodeData(S,$,Z+1);if(!se)throw new Error(`Unexpected end of ${$}`);R=se.i,te=se.tagContent}const ie=new o(B);B!==U&&Q&&(ie[":@"]=this.buildAttributesMap(U,E,B)),te&&(te=this.parseTextData(te,B,E,!0,Q,!0,!0)),E=E.substr(0,E.lastIndexOf(".")),ie.add(this.options.textNodeName,te),this.addChild(x,ie,E)}else{if(U.length>0&&U.lastIndexOf("/")===U.length-1){B[B.length-1]==="/"?(B=B.substr(0,B.length-1),E=E.substr(0,E.length-1),U=B):U=U.substr(0,U.length-1),this.options.transformTagName&&(B=this.options.transformTagName(B));const te=new o(B);B!==U&&Q&&(te[":@"]=this.buildAttributesMap(U,E,B)),this.addChild(x,te,E),E=E.substr(0,E.lastIndexOf("."))}else{const te=new o(B);this.tagsNodeStack.push(x),B!==U&&Q&&(te[":@"]=this.buildAttributesMap(U,E,B)),this.addChild(x,te,E),x=te}_="",R=Z}}else _+=S[R];return T.child};function g(S,T,x){const _=this.options.updateTag(T.tagname,x,T[":@"]);_===!1||(typeof _=="string"&&(T.tagname=_),S.addChild(T))}const m=function(S){if(this.options.processEntities){for(let T in this.docTypeEntities){const x=this.docTypeEntities[T];S=S.replace(x.regx,x.val)}for(let T in this.lastEntities){const x=this.lastEntities[T];S=S.replace(x.regex,x.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){const x=this.htmlEntities[T];S=S.replace(x.regex,x.val)}S=S.replace(this.ampEntity.regex,this.ampEntity.val)}return S};function y(S,T,x,_){return S&&(_===void 0&&(_=Object.keys(T.child).length===0),S=this.parseTextData(S,T.tagname,x,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,_),S!==void 0&&S!==""&&T.add(this.options.textNodeName,S),S=""),S}function b(S,T,x){const _="*."+x;for(const E in S){const R=S[E];if(_===R||T===R)return!0}return!1}function A(S,T,x=">"){let _,E="";for(let R=T;R<S.length;R++){let O=S[R];if(_)O===_&&(_="");else if(O==='"'||O==="'")_=O;else if(O===x[0])if(x[1]){if(S[R+1]===x[1])return{data:E,index:R}}else return{data:E,index:R};else O===" "&&(O=" ");E+=O}}function M(S,T,x,_){const E=S.indexOf(T,x);if(E===-1)throw new Error(_);return E+T.length-1}function C(S,T,x,_=">"){const E=A(S,T+1,_);if(!E)return;let R=E.data;const O=E.index,D=R.search(/\s/);let B=R,$=!0;D!==-1&&(B=R.substring(0,D),R=R.substring(D+1).trimStart());const U=B;if(x){const Q=B.indexOf(":");Q!==-1&&(B=B.substr(Q+1),$=B!==E.data.substr(Q+1))}return{tagName:B,tagExp:R,closeIndex:O,attrExpPresent:$,rawTagName:U}}function I(S,T,x){const _=x;let E=1;for(;x<S.length;x++)if(S[x]==="<")if(S[x+1]==="/"){const R=M(S,">",x,`${T} is not closed`);if(S.substring(x+2,R).trim()===T&&(E--,E===0))return{tagContent:S.substring(_,x),i:R};x=R}else if(S[x+1]==="?")x=M(S,"?>",x+1,"StopNode is not closed.");else if(S.substr(x+1,3)==="!--")x=M(S,"-->",x+3,"StopNode is not closed.");else if(S.substr(x+1,2)==="![")x=M(S,"]]>",x,"StopNode is not closed.")-2;else{const R=C(S,x,">");R&&((R&&R.tagName)===T&&R.tagExp[R.tagExp.length-1]!=="/"&&E++,x=R.closeIndex)}}function P(S,T,x){if(T&&typeof S=="string"){const _=S.trim();return _==="true"?!0:_==="false"?!1:l(S,x)}else return a.isExist(S)?S:""}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 b=o(g[m],c,y);const A=u(b,c);g[":@"]?l(b,g[":@"],y,c):Object.keys(b).length===1&&b[c.textNodeName]!==void 0&&!c.alwaysCreateTextNode?b=b[c.textNodeName]:Object.keys(b).length===0&&(c.alwaysCreateTextNode?b[c.textNodeName]="":b=""),v[m]!==void 0&&v.hasOwnProperty(m)?(Array.isArray(v[m])||(v[m]=[v[m]]),v[m].push(b)):c.isArray(m,y,A)?v[m]=[b]:v[m]=b}}}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(b){if(a===setTimeout)return setTimeout(b,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(b,0);try{return a(b,0)}catch{try{return a.call(null,b,0)}catch{return a.call(this,b,0)}}}function f(b){if(o===clearTimeout)return clearTimeout(b);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(b);try{return o(b)}catch{try{return o.call(null,b)}catch{return o.call(this,b)}}}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 b=u(p);d=!0;for(var A=c.length;A;){for(h=c,c=[];++v<A;)h&&h[v].run();v=-1,A=c.length}h=null,d=!1,f(b)}}i.nextTick=function(b){var A=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)A[M-1]=arguments[M];c.push(new m(b,A)),c.length===1&&!d&&u(g)};function m(b,A){this.fun=b,this.array=A}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(b){return[]},i.binding=function(b){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(b){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(S,T){var x=this,_=new l,E=S.TaskId,R=S.Bucket,O=S.Region,D=S.Key,B=S.Body,$=S.ChunkSize||S.SliceSize||x.options.ChunkSize,U=S.AsyncLimit,Q=S.StorageClass,Z=S.ServerSideEncryption,V,te,ie=S.onHashProgress,se=S.tracker;se&&se.setParams({chunkSize:$}),_.on("error",function(W){if(x._isRunningTask(E))return S.UploadData.UploadId&&o.removeUsing(S.UploadData.UploadId),W.UploadId=S.UploadData.UploadId||"",T(W)}),_.on("upload_complete",function(W){var q=u.extend({UploadId:S.UploadData.UploadId||""},W);T(null,q)}),_.on("upload_slice_complete",function(W){var q={};u.each(S.Headers,function(ce,me){var be=me.toLowerCase();(be.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(be))&&(q[me]=ce)}),m.call(x,{Bucket:R,Region:O,Key:D,UploadId:W.UploadId,SliceList:W.SliceList,Headers:q,tracker:se},function(ce,me){if(x._isRunningTask(E)){if(o.removeUsing(W.UploadId),ce)return te(null,!0),_.emit("error",ce);o.removeUploadId.call(x,W.UploadId),te({loaded:V,total:V},!0),_.emit("upload_complete",me)}})}),_.on("get_upload_data_finish",function(W){var q=o.getFileId(B,S.ChunkSize,R,D);q&&o.saveUploadId.call(x,q,W.UploadId,x.options.UploadIdCacheLimit),o.setUsing(W.UploadId),te(null,!0),p.call(x,{TaskId:E,Bucket:R,Region:O,Key:D,Body:B,FileSize:V,SliceSize:$,AsyncLimit:U,ServerSideEncryption:Z,UploadData:W,Headers:S.Headers,onProgress:te,tracker:se},function(ce,me){if(x._isRunningTask(E)){if(ce)return te(null,!0),_.emit("error",ce);_.emit("upload_slice_complete",me)}})}),_.on("get_file_size_finish",function(){if(te=u.throttleOnProgress.call(x,V,S.onProgress),S.UploadData.UploadId)_.emit("get_upload_data_finish",S.UploadData);else{var W=u.extend({TaskId:E,Bucket:R,Region:O,Key:D,Headers:S.Headers,StorageClass:Q,Body:B,FileSize:V,SliceSize:$,onHashProgress:ie,tracker:se},S);d.call(x,W,function(q,ce){if(x._isRunningTask(E)){if(q)return _.emit("error",q);S.UploadData.UploadId=ce.UploadId,S.UploadData.PartList=ce.PartList,_.emit("get_upload_data_finish",S.UploadData)}})}}),V=S.ContentLength,delete S.ContentLength,!S.Headers&&(S.Headers={}),u.each(S.Headers,function(W,q){q.toLowerCase()==="content-length"&&delete S.Headers[q]}),function(){for(var W=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],q=1024*1024,ce=0;ce<W.length&&(q=W[ce]*1024*1024,!(V/q<=x.options.MaxPartNumber));ce++);S.ChunkSize=S.SliceSize=$=Math.max($,q)}(),V===0?(S.Body="",S.ContentLength=0,S.SkipTask=!0,x.putObject(S,T)):_.emit("get_file_size_finish")}function d(S,T){var x=S.TaskId,_=S.Bucket,E=S.Region,R=S.Key,O=S.StorageClass,D=this,B={},$=S.FileSize,U=S.SliceSize,Q=Math.ceil($/U),Z=0,V=u.throttleOnProgress.call(D,$,S.onHashProgress),te=function(q,ce){var me=U*(q-1),be=Math.min(me+U,$),ue=be-me;B[q]?ce(null,{PartNumber:q,ETag:B[q],Size:ue}):u.fileSlice(S.Body,me,be,!1,function(ve){u.getFileMd5(ve,function(Ce,ae){if(Ce)return ce(u.error(Ce));var fe='"'+ae+'"';B[q]=fe,Z+=ue,V({loaded:Z,total:$}),ce(null,{PartNumber:q,ETag:fe,Size:ue})})})},ie=function(q,ce){var me=q.length;if(me===0)return ce(null,!0);if(me>Q)return ce(null,!1);if(me>1){var be=Math.max(q[0].Size,q[1].Size);if(be!==U)return ce(null,!1)}var ue=function ve(Ce){if(Ce<me){var ae=q[Ce];te(ae.PartNumber,function(fe,Ae){Ae&&Ae.ETag===ae.ETag&&Ae.Size===ae.Size?ve(Ce+1):ce(null,!1)})}else ce(null,!0)};ue(0)},se=new l;se.on("error",function(W){if(D._isRunningTask(x))return T(W)}),se.on("upload_id_available",function(W){var q={},ce=[];u.each(W.PartList,function(ue){q[ue.PartNumber]=ue});for(var me=1;me<=Q;me++){var be=q[me];be?(be.PartNumber=me,be.Uploaded=!0):be={PartNumber:me,ETag:null,Uploaded:!1},ce.push(be)}W.PartList=ce,T(null,W)}),se.on("no_available_upload_id",function(){if(D._isRunningTask(x)){var W=u.extend({Bucket:_,Region:E,Key:R,Query:u.clone(S.Query),StorageClass:O,Body:S.Body,calledBySdk:"sliceUploadFile",tracker:S.tracker},S),q=u.clone(S.Headers);delete q["x-cos-mime-limit"],W.Headers=q,D.multipartInit(W,function(ce,me){if(D._isRunningTask(x)){if(ce)return se.emit("error",ce);var be=me.UploadId;if(!be)return T(u.error(new Error("no such upload id")));se.emit("upload_id_available",{UploadId:be,PartList:[]})}})}}),se.on("has_and_check_upload_id",function(W){W=W.reverse(),s.eachLimit(W,1,function(q,ce){if(D._isRunningTask(x)){if(o.using[q]){ce();return}v.call(D,{Bucket:_,Region:E,Key:R,UploadId:q,tracker:S.tracker},function(me,be){if(D._isRunningTask(x)){if(me)return o.removeUsing(q),se.emit("error",me);var ue=be.PartList;ue.forEach(function(ve){ve.PartNumber*=1,ve.Size*=1,ve.ETag=ve.ETag||""}),ie(ue,function(ve,Ce){if(D._isRunningTask(x)){if(ve)return se.emit("error",ve);Ce?ce({UploadId:q,PartList:ue}):ce()}})}})}},function(q){D._isRunningTask(x)&&(V(null,!0),q&&q.UploadId?se.emit("upload_id_available",q):se.emit("no_available_upload_id"))})}),se.on("seek_local_avail_upload_id",function(W){var q=o.getFileId(S.Body,S.ChunkSize,_,R),ce=o.getUploadIdList.call(D,q);if(!q||!ce){se.emit("has_and_check_upload_id",W);return}var me=function be(ue){if(ue>=ce.length){se.emit("has_and_check_upload_id",W);return}var ve=ce[ue];if(!u.isInArray(W,ve)){o.removeUploadId.call(D,ve),be(ue+1);return}if(o.using[ve]){be(ue+1);return}v.call(D,{Bucket:_,Region:E,Key:R,UploadId:ve,tracker:S.tracker},function(Ce,ae){D._isRunningTask(x)&&(Ce?(o.removeUploadId.call(D,ve),be(ue+1)):se.emit("upload_id_available",{UploadId:ve,PartList:ae.PartList}))})};me(0)}),se.on("get_remote_upload_id_list",function(){h.call(D,{Bucket:_,Region:E,Key:R,tracker:S.tracker},function(W,q){if(D._isRunningTask(x)){if(W)return se.emit("error",W);var ce=u.filter(q.UploadList,function(ue){return ue.Key===R&&(!O||ue.StorageClass.toUpperCase()===O.toUpperCase())}).reverse().map(function(ue){return ue.UploadId||ue.UploadID});if(ce.length)se.emit("seek_local_avail_upload_id",ce);else{var me=o.getFileId(S.Body,S.ChunkSize,_,R),be;me&&(be=o.getUploadIdList.call(D,me))&&u.each(be,function(ue){o.removeUploadId.call(D,ue)}),se.emit("no_available_upload_id")}}})}),se.emit("get_remote_upload_id_list")}function h(S,T){var x=this,_=[],E={Bucket:S.Bucket,Region:S.Region,Prefix:S.Key,calledBySdk:S.calledBySdk||"sliceUploadFile",tracker:S.tracker},R=function O(){x.multipartList(E,function(D,B){if(D)return T(D);_.push.apply(_,B.Upload||[]),B.IsTruncated==="true"?(E.KeyMarker=B.NextKeyMarker,E.UploadIdMarker=B.NextUploadIdMarker,O()):T(null,{UploadList:_})})};R()}function v(S,T){var x=this,_=[],E={Bucket:S.Bucket,Region:S.Region,Key:S.Key,UploadId:S.UploadId,calledBySdk:"sliceUploadFile",tracker:S.tracker},R=function O(){x.multipartListPart(E,function(D,B){if(D)return T(D);_.push.apply(_,B.Part||[]),B.IsTruncated==="true"?(E.PartNumberMarker=B.NextPartNumberMarker,O()):T(null,{PartList:_})})};R()}function p(S,T){var x=this,_=S.TaskId,E=S.Bucket,R=S.Region,O=S.Key,D=S.UploadData,B=S.FileSize,$=S.SliceSize,U=Math.min(S.AsyncLimit||x.options.ChunkParallelLimit||1,256),Q=S.Body,Z=Math.ceil(B/$),V=0,te=S.ServerSideEncryption,ie=S.Headers,se=u.filter(D.PartList,function(q){return q.Uploaded&&(V+=q.PartNumber>=Z&&B%$||$),!q.Uploaded}),W=S.onProgress;s.eachLimit(se,U,function(q,ce){if(x._isRunningTask(_)){var me=q.PartNumber,be=Math.min(B,q.PartNumber*$)-(q.PartNumber-1)*$,ue=0;g.call(x,{TaskId:_,Bucket:E,Region:R,Key:O,SliceSize:$,FileSize:B,PartNumber:me,ServerSideEncryption:te,Body:Q,UploadData:D,Headers:ie,onProgress:function(Ce){V+=Ce.loaded-ue,ue=Ce.loaded,W({loaded:V,total:B})},tracker:S.tracker},function(ve,Ce){x._isRunningTask(_)&&(!ve&&!Ce.ETag&&(ve='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),ve?V-=ue:(V+=be-ue,q.ETag=Ce.ETag),W({loaded:V,total:B}),ce(ve||null,Ce))})}},function(q){if(x._isRunningTask(_)){if(q)return T(q);T(null,{UploadId:D.UploadId,SliceList:D.PartList})}})}function g(S,T){var x=this,_=S.TaskId,E=S.Bucket,R=S.Region,O=S.Key,D=S.FileSize,B=S.Body,$=S.PartNumber*1,U=S.SliceSize,Q=S.ServerSideEncryption,Z=S.UploadData,V=S.Headers||{},te=x.options.ChunkRetryTimes+1,ie=U*($-1),se=U,W=ie+U;W>D&&(W=D,se=W-ie);var q=["x-cos-traffic-limit","x-cos-mime-limit"],ce={};u.each(V,function(be,ue){q.indexOf(ue)>-1&&(ce[ue]=be)});var me=Z.PartList[$-1];s.retry(te,function(be){x._isRunningTask(_)&&u.fileSlice(B,ie,W,!0,function(ue){x.multipartUpload({TaskId:_,Bucket:E,Region:R,Key:O,ContentLength:se,PartNumber:$,UploadId:Z.UploadId,ServerSideEncryption:Q,Body:ue,Headers:ce,onProgress:S.onProgress,calledBySdk:"sliceUploadFile",tracker:S.tracker},function(ve,Ce){if(x._isRunningTask(_))return ve?be(ve):(me.Uploaded=!0,be(null,Ce))})})},function(be,ue){if(x._isRunningTask(_))return T(be,ue)})}function m(S,T){var x=S.Bucket,_=S.Region,E=S.Key,R=S.UploadId,O=S.SliceList,D=this,B=this.options.ChunkRetryTimes+1,$=S.Headers,U=O.map(function(Q){return{PartNumber:Q.PartNumber,ETag:Q.ETag}});s.retry(B,function(Q){D.multipartComplete({Bucket:x,Region:_,Key:E,UploadId:R,Parts:U,Headers:$,calledBySdk:"sliceUploadFile",tracker:S.tracker},Q)},function(Q,Z){T(Q,Z)})}function y(S,T){var x=S.Bucket,_=S.Region,E=S.Key,R=S.UploadId,O=S.Level||"task",D=S.AsyncLimit,B=this,$=new l;if($.on("error",function(U){return T(U)}),$.on("get_abort_array",function(U){b.call(B,{Bucket:x,Region:_,Key:E,Headers:S.Headers,AsyncLimit:D,AbortArray:U},T)}),O==="bucket")h.call(B,{Bucket:x,Region:_,calledBySdk:"abortUploadTask"},function(U,Q){if(U)return T(U);$.emit("get_abort_array",Q.UploadList||[])});else if(O==="file"){if(!E)return T(u.error(new Error("abort_upload_task_no_key")));h.call(B,{Bucket:x,Region:_,Key:E,calledBySdk:"abortUploadTask"},function(U,Q){if(U)return T(U);$.emit("get_abort_array",Q.UploadList||[])})}else if(O==="task"){if(!R)return T(u.error(new Error("abort_upload_task_no_id")));if(!E)return T(u.error(new Error("abort_upload_task_no_key")));$.emit("get_abort_array",[{Key:E,UploadId:R}])}else return T(u.error(new Error("abort_unknown_level")))}function b(S,T){var x=S.Bucket,_=S.Region,E=S.Key,R=S.AbortArray,O=S.AsyncLimit||1,D=this,B=0,$=new Array(R.length);s.eachLimit(R,O,function(U,Q){var Z=B;if(E&&E!==U.Key){$[Z]={error:{KeyNotMatch:!0}},Q(null);return}var V=U.UploadId||U.UploadID;D.multipartAbort({Bucket:x,Region:_,Key:U.Key,Headers:S.Headers,UploadId:V},function(te){var ie={Bucket:x,Region:_,Key:U.Key,UploadId:V};$[Z]={error:te,task:ie},Q(null)}),B++},function(U){if(U)return T(U);for(var Q=[],Z=[],V=0,te=$.length;V<te;V++){var ie=$[V];ie.task&&(ie.error?Z.push(ie.task):Q.push(ie.task))}return T(null,{successList:Q,errorList:Z})})}function A(S,T){var x=this,_=S.SliceSize===void 0?x.options.SliceSize:S.SliceSize,E=[],R=S.Body,O=R.size||R.length||0,D={TaskId:""};if(x.options.EnableReporter){var B=x.options.UseAccelerate||typeof x.options.Domain=="string"&&x.options.Domain.includes("accelerate."),$=O>_?"sliceUploadFile":"putObject";S.tracker=new f({Beacon:x.options.BeaconReporter,clsReporter:x.options.ClsReporter,bucket:S.Bucket,region:S.Region,apiName:"uploadFile",realApi:$,fileKey:S.Key,fileSize:O,accelerate:B,deepTracker:x.options.DeepTracker,customId:x.options.CustomId,delay:x.options.TrackerDelay})}u.each(S,function(ie,se){a(ie)!=="object"&&typeof ie!="function"&&(D[se]=ie)});var U=S.onTaskReady,Q=function(se){D.TaskId=se,U&&U(se)};S.onTaskReady=Q;var Z=O>_?"sliceUploadFile":"putObject",V=S.onFileFinish,te=function(se,W){S.tracker&&S.tracker.report(se,W),V&&V(se,W,D),T&&T(se,W)};E.push({api:Z,params:S,callback:te}),x._addTasks(E)}function M(S,T){var x=this,_=S.SliceSize===void 0?x.options.SliceSize:S.SliceSize,E=0,R=0,O=u.throttleOnProgress.call(x,R,S.onProgress),D=S.files.length,B=S.onFileFinish,$=Array(D),U=function(V,te,ie){O(null,!0),B&&B(V,te,ie),$[ie.Index]={options:ie,error:V,data:te},--D<=0&&T&&T(null,{files:$})},Q=[];u.each(S.files,function(Z,V){(function(){var te=Z.Body,ie=te.size||te.length||0,se={Index:V,TaskId:""};if(!x.options.UseRawKey&&Z.Key&&Z.Key.substr(0,1)==="/"&&(Z.Key=Z.Key.substr(1)),E+=ie,x.options.EnableReporter){var W=x.options.UseAccelerate||typeof x.options.Domain=="string"&&x.options.Domain.includes("accelerate."),q=ie>_?"sliceUploadFile":"putObject";Z.tracker=new f({Beacon:x.options.BeaconReporter,clsReporter:x.options.ClsReporter,bucket:Z.Bucket,region:Z.Region,apiName:"uploadFiles",realApi:q,fileKey:Z.Key,fileSize:ie,accelerate:W,deepTracker:x.options.DeepTracker,customId:x.options.CustomId,delay:x.options.TrackerDelay})}u.each(Z,function(Ae,Re){a(Ae)!=="object"&&typeof Ae!="function"&&(se[Re]=Ae)});var ce=Z.onTaskReady,me=function(Re){se.TaskId=Re,ce&&ce(Re)};Z.onTaskReady=me;var be=0,ue=Z.onProgress,ve=function(Re){R=R-be+Re.loaded,be=Re.loaded,ue&&ue(Re),O({loaded:R,total:E})};Z.onProgress=ve;var Ce=ie>_?"sliceUploadFile":"putObject",ae=Z.onFileFinish,fe=function(Re,st){Z.tracker&&Z.tracker.report(Re,st),ae&&ae(Re,st),U&&U(Re,st,se)};Q.push({api:Ce,params:Z,callback:fe})})()}),x._addTasks(Q)}function C(S,T){var x=new l,_=this,E=S.Bucket,R=S.Region,O=S.Key,D=S.CopySource,B=u.getSourceParams.call(this,D);if(!B){T(u.error(new Error("CopySource format error")));return}var $=B.Bucket,U=B.Region,Q=decodeURIComponent(B.Key),Z=S.CopySliceSize===void 0?_.options.CopySliceSize:S.CopySliceSize;Z=Math.max(0,Z);var V=S.CopyChunkSize||this.options.CopyChunkSize,te=this.options.CopyChunkParallelLimit,ie=this.options.ChunkRetryTimes+1,se=0,W=0,q,ce,me={},be={},ue={};x.on("copy_slice_complete",function(ve){u.each(S.Headers,function(ae,fe){fe.toLowerCase().indexOf("x-cos-meta-")});var Ce=u.map(ve.PartList,function(ae){return{PartNumber:ae.PartNumber,ETag:ae.ETag}});s.retry(ie,function(ae){_.multipartComplete({Bucket:E,Region:R,Key:O,UploadId:ve.UploadId,Parts:Ce,tracker:S.tracker,calledBySdk:"sliceCopyFile"},ae)},function(ae,fe){if(o.removeUsing(ve.UploadId),ae)return ce(null,!0),T(ae);o.removeUploadId(ve.UploadId),ce({loaded:q,total:q},!0),T(null,fe)})}),x.on("get_copy_data_finish",function(ve){var Ce=o.getCopyFileId(D,me,V,E,O);Ce&&o.saveUploadId(Ce,ve.UploadId,_.options.UploadIdCacheLimit),o.setUsing(ve.UploadId);var ae=u.filter(ve.PartList,function(fe){return fe.Uploaded&&(W+=fe.PartNumber>=se&&q%V||V),!fe.Uploaded});s.eachLimit(ae,te,function(fe,Ae){var Re=fe.PartNumber,st=fe.CopySourceRange,vt=fe.end-fe.start;s.retry(ie,function(mt){I.call(_,{Bucket:E,Region:R,Key:O,CopySource:D,UploadId:ve.UploadId,PartNumber:Re,CopySourceRange:st,tracker:S.tracker,calledBySdk:"sliceCopyFile"},mt)},function(mt,Fe){if(mt)return Ae(mt);W+=vt,ce({loaded:W,total:q}),fe.ETag=Fe.ETag,Ae(mt||null,Fe)})},function(fe){if(fe)return o.removeUsing(ve.UploadId),ce(null,!0),T(fe);x.emit("copy_slice_complete",ve)})}),x.on("get_chunk_size_finish",function(){var ve=function(){_.multipartInit({Bucket:E,Region:R,Key:O,Headers:ue,tracker:S.tracker,calledBySdk:"sliceCopyFile"},function(Re,st){if(Re)return T(Re);S.UploadId=st.UploadId,x.emit("get_copy_data_finish",{UploadId:S.UploadId,PartList:S.PartList})})},Ce=o.getCopyFileId(D,me,V,E,O),ae=o.getUploadIdList(Ce);if(!Ce||!ae)return ve();var fe=function Ae(Re){if(Re>=ae.length)return ve();var st=ae[Re];if(o.using[st])return Ae(Re+1);v.call(_,{Bucket:E,Region:R,Key:O,UploadId:st,tracker:S.tracker,calledBySdk:"sliceCopyFile"},function(vt,mt){if(vt)o.removeUploadId(st),Ae(Re+1);else{if(o.using[st])return Ae(Re+1);var Fe={},Kt=0;u.each(mt.PartList,function(Lt){var gr=parseInt(Lt.Size),hn=Kt+gr-1;Fe[Lt.PartNumber+"|"+Kt+"|"+hn]=Lt.ETag,Kt+=gr}),u.each(S.PartList,function(Lt){var gr=Fe[Lt.PartNumber+"|"+Lt.start+"|"+Lt.end];gr&&(Lt.ETag=gr,Lt.Uploaded=!0)}),x.emit("get_copy_data_finish",{UploadId:st,PartList:S.PartList})}})};fe(0)}),x.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],ae=1024*1024,fe=0;fe<Ce.length&&(ae=Ce[fe]*1024*1024,!(q/ae<=_.options.MaxPartNumber));fe++);S.ChunkSize=V=Math.max(V,ae),se=Math.ceil(q/V);for(var Ae=[],Re=1;Re<=se;Re++){var st=(Re-1)*V,vt=Re*V<q?Re*V-1:q-1,mt={PartNumber:Re,start:st,end:vt,CopySourceRange:"bytes="+st+"-"+vt};Ae.push(mt)}S.PartList=Ae}(),S.Headers["x-cos-metadata-directive"]==="Replaced"?ue=S.Headers:ue=be,ue["x-cos-storage-class"]=S.Headers["x-cos-storage-class"]||be["x-cos-storage-class"],ue=u.clearKey(ue),be["x-cos-storage-class"]==="ARCHIVE"||be["x-cos-storage-class"]==="DEEP_ARCHIVE"){var ve=be["x-cos-restore"];if(!ve||ve==='ongoing-request="true"'){T(u.error(new Error("Unrestored archive object is not allowed to be copied")));return}}delete ue["x-cos-copy-source"],delete ue["x-cos-metadata-directive"],delete ue["x-cos-copy-source-If-Modified-Since"],delete ue["x-cos-copy-source-If-Unmodified-Since"],delete ue["x-cos-copy-source-If-Match"],delete ue["x-cos-copy-source-If-None-Match"],x.emit("get_chunk_size_finish")}),_.headObject({Bucket:$,Region:U,Key:Q,tracker:S.tracker,calledBySdk:"sliceCopyFile"},function(ve,Ce){if(ve){ve.statusCode&&ve.statusCode===404?T(u.error(ve,{ErrorStatus:Q+" Not Exist"})):T(ve);return}if(q=S.FileSize=Ce.headers["content-length"],q===void 0||!q){T(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(S.tracker&&S.tracker.setParams({httpSize:q}),ce=u.throttleOnProgress.call(_,q,S.onProgress),q<=Z)S.Headers["x-cos-metadata-directive"]||(S.Headers["x-cos-metadata-directive"]="Copy"),_.putObjectCopy(Object.assign(S,{calledBySdk:"sliceCopyFile"}),function(fe,Ae){if(fe)return ce(null,!0),T(fe);ce({loaded:q,total:q},!0),T(fe,Ae)});else{var ae=Ce.headers;me=ae,be={"Cache-Control":ae["cache-control"],"Content-Disposition":ae["content-disposition"],"Content-Encoding":ae["content-encoding"],"Content-Type":ae["content-type"],Expires:ae.expires,"x-cos-storage-class":ae["x-cos-storage-class"]},u.each(ae,function(fe,Ae){var Re="x-cos-meta-";Ae.indexOf(Re)===0&&Ae.length>Re.length&&(be[Ae]=fe)}),x.emit("get_file_size_finish")}})}function I(S,T){var x=S.TaskId,_=S.Bucket,E=S.Region,R=S.Key,O=S.CopySource,D=S.UploadId,B=S.PartNumber*1,$=S.CopySourceRange,U=this.options.ChunkRetryTimes+1,Q=this;s.retry(U,function(Z){Q.uploadPartCopy({TaskId:x,Bucket:_,Region:E,Key:R,CopySource:O,UploadId:D,PartNumber:B,CopySourceRange:$,tracker:S.tracker,calledBySdk:S.calledBySdk},function(V,te){Z(V||null,te)})},function(Z,V){return T(Z,V)})}var P={sliceUploadFile:c,abortUploadTask:y,uploadFile:A,uploadFiles:M,sliceCopyFile:C};r.exports.init=function(S,T){T.transferToTaskMethod(P,"sliceUploadFile"),u.each(P,function(x,_){S.prototype[_]=u.apiWrapper(_,x)})}},"./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(w,N){var L=this.options.Protocol||(s.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:"),k=this.options.ServiceDomain,H=w.AppId||this.options.appId,z=w.Region;k?(k=k.replace(/\{\{AppId\}\}/gi,H||"").replace(/\{\{Region\}\}/gi,z||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(k)||(k=L+"//"+k),k.slice(-1)==="/"&&(k=k.slice(0,-1))):z?k=L+"//cos."+z+".myqcloud.com":k=L+"//service.cos.myqcloud.com";var X="",ee=z?"cos."+z+".myqcloud.com":"service.cos.myqcloud.com",pe=k.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");ee===pe&&(X=ee),Le.call(this,{Action:"name/cos:GetService",url:k,method:"GET",headers:w.Headers,SignHost:X,tracker:w.tracker},function(ze,Ne){if(ze)return N(ze);var at=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Buckets&&Ne.ListAllMyBucketsResult.Buckets.Bucket||[];at=s.isArray(at)?at:[at];var we=Ne&&Ne.ListAllMyBucketsResult&&Ne.ListAllMyBucketsResult.Owner||{};N(null,{Buckets:at,Owner:we,statusCode:Ne.statusCode,headers:Ne.headers})})}function u(w,N){var L=this,k="";if(w.BucketAZConfig){var H={BucketAZConfig:w.BucketAZConfig};k=s.json2xml({CreateBucketConfiguration:H})}Le.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,body:k,tracker:w.tracker},function(z,X){if(z)return N(z);var ee=Kr({protocol:L.options.Protocol,domain:L.options.Domain,bucket:w.Bucket,region:w.Region,isLocation:!0});N(null,{Location:ee,statusCode:X.statusCode,headers:X.headers})})}function f(w,N){Le.call(this,{Action:"name/cos:HeadBucket",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,method:"HEAD",tracker:w.tracker},N)}function c(w,N){var L={};L.prefix=w.Prefix||"",L.delimiter=w.Delimiter,L.marker=w.Marker,L["max-keys"]=w.MaxKeys,L["encoding-type"]=w.EncodingType,Le.call(this,{Action:"name/cos:GetBucket",ResourceKey:L.prefix,method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,qs:L,tracker:w.tracker},function(k,H){if(k)return N(k);var z=H.ListBucketResult||{},X=z.Contents||[],ee=z.CommonPrefixes||[];X=s.isArray(X)?X:[X],ee=s.isArray(ee)?ee:[ee];var pe=s.clone(z);s.extend(pe,{Contents:X,CommonPrefixes:ee,statusCode:H.statusCode,headers:H.headers}),N(null,pe)})}function d(w,N){Le.call(this,{Action:"name/cos:DeleteBucket",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,method:"DELETE",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function h(w,N){var L=w.Headers,k="";if(w.AccessControlPolicy){var H=s.clone(w.AccessControlPolicy||{}),z=H.Grants||H.Grant;z=s.isArray(z)?z:[z],delete H.Grant,delete H.Grants,H.AccessControlList={Grant:z},k=s.json2xml({AccessControlPolicy:H}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(k))}s.each(L,function(X,ee){ee.indexOf("x-cos-grant-")===0&&(L[ee]=Mn(L[ee]))}),Le.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:w.Bucket,Region:w.Region,headers:L,action:"acl",body:k,tracker:w.tracker},function(X,ee){if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function v(w,N){Le.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"acl",tracker:w.tracker},function(L,k){if(L)return N(L);var H=k.AccessControlPolicy||{},z=H.Owner||{},X=H.AccessControlList.Grant||[];X=s.isArray(X)?X:[X];var ee=dt(H);k.headers&&k.headers["x-cos-acl"]&&(ee.ACL=k.headers["x-cos-acl"]),ee=s.extend(ee,{Owner:z,Grants:X,statusCode:k.statusCode,headers:k.headers}),N(null,ee)})}function p(w,N){var L=w.CORSConfiguration||{},k=L.CORSRules||w.CORSRules||[];k=s.clone(s.isArray(k)?k:[k]),s.each(k,function(ee){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(pe){var ze=pe+"s",Ne=ee[ze]||ee[pe]||[];delete ee[ze],ee[pe]=s.isArray(Ne)?Ne:[Ne]})});var H={CORSRule:k};w.ResponseVary&&(H.ResponseVary=w.ResponseVary);var z=s.json2xml({CORSConfiguration:H}),X=w.Headers;X["Content-Type"]="application/xml",X["Content-MD5"]=s.b64(s.md5(z)),Le.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:z,action:"cors",headers:X,tracker:w.tracker},function(ee,pe){if(ee)return N(ee);N(null,{statusCode:pe.statusCode,headers:pe.headers})})}function g(w,N){Le.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"cors",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchCORSConfiguration"){var H={CORSRules:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=k.CORSConfiguration||{},X=z.CORSRules||z.CORSRule||[];X=s.clone(s.isArray(X)?X:[X]);var ee=z.ResponseVary;s.each(X,function(pe){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(ze){var Ne=ze+"s",at=pe[Ne]||pe[ze]||[];delete pe[ze],pe[Ne]=s.isArray(at)?at:[at]})}),N(null,{CORSRules:X,ResponseVary:ee,statusCode:k.statusCode,headers:k.headers})})}function m(w,N){Le.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"cors",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode||L.statusCode,headers:k.headers})})}function y(w,N){Le.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"location",tracker:w.tracker},N)}function b(w,N){var L=w.Policy;try{typeof L=="string"&&(L=JSON.parse(L))}catch{}if(!L||typeof L=="string")return N(s.error(new Error("Policy format error")));var k=JSON.stringify(L);L.version||(L.version="2.0");var H=w.Headers;H["Content-Type"]="application/json",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:w.Bucket,Region:w.Region,action:"policy",body:k,headers:H,tracker:w.tracker},function(z,X){if(z&&z.statusCode===204)return N(null,{statusCode:z.statusCode});if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function A(w,N){Le.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"policy",rawBody:!0,tracker:w.tracker},function(L,k){if(L)return L.statusCode&&L.statusCode===403?N(s.error(L,{ErrorStatus:"Access Denied"})):L.statusCode&&L.statusCode===405?N(s.error(L,{ErrorStatus:"Method Not Allowed"})):L.statusCode&&L.statusCode===404?N(s.error(L,{ErrorStatus:"Policy Not Found"})):N(L);var H={};try{H=JSON.parse(k.body)}catch{}N(null,{Policy:H,statusCode:k.statusCode,headers:k.headers})})}function M(w,N){Le.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"policy",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode||L.statusCode,headers:k.headers})})}function C(w,N){var L=w.Tagging||{},k=L.TagSet||L.Tags||w.Tags||[];k=s.clone(s.isArray(k)?k:[k]);var H=s.json2xml({Tagging:{TagSet:{Tag:k}}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"tagging",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function I(w,N){Le.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"tagging",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var H={Tags:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=[];try{z=k.Tagging.TagSet.Tag||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),N(null,{Tags:z,statusCode:k.statusCode,headers:k.headers})})}function P(w,N){Le.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"tagging",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function S(w,N){var L=w.LifecycleConfiguration||{},k=L.Rules||w.Rules||[];k=s.clone(k);var H=s.json2xml({LifecycleConfiguration:{Rule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"lifecycle",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function T(w,N){Le.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"lifecycle",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchLifecycleConfiguration"){var H={Rules:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=[];try{z=k.LifecycleConfiguration.Rule||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),N(null,{Rules:z,statusCode:k.statusCode,headers:k.headers})})}function x(w,N){Le.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"lifecycle",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function _(w,N){if(!w.VersioningConfiguration){N(s.error(new Error("missing param VersioningConfiguration")));return}var L=w.VersioningConfiguration||{},k=s.json2xml({VersioningConfiguration:L}),H=w.Headers;H["Content-Type"]="application/xml",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:k,action:"versioning",headers:H,tracker:w.tracker},function(z,X){if(z&&z.statusCode===204)return N(null,{statusCode:z.statusCode});if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function E(w,N){Le.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"versioning",tracker:w.tracker},function(L,k){L||!k.VersioningConfiguration&&(k.VersioningConfiguration={}),N(L,k)})}function R(w,N){var L=s.clone(w.ReplicationConfiguration),k=s.json2xml({ReplicationConfiguration:L});k=k.replace(/<(\/?)Rules>/gi,"<$1Rule>"),k=k.replace(/<(\/?)Tags>/gi,"<$1Tag>");var H=w.Headers;H["Content-Type"]="application/xml",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:k,action:"replication",headers:H,tracker:w.tracker},function(z,X){if(z&&z.statusCode===204)return N(null,{statusCode:z.statusCode});if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function O(w,N){Le.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"replication",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="ReplicationConfigurationnotFoundError")){var H={ReplicationConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}!k.ReplicationConfiguration&&(k.ReplicationConfiguration={}),k.ReplicationConfiguration.Rule&&(k.ReplicationConfiguration.Rules=s.makeArray(k.ReplicationConfiguration.Rule),delete k.ReplicationConfiguration.Rule),N(L,k)})}function D(w,N){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"replication",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function B(w,N){if(!w.WebsiteConfiguration){N(s.error(new Error("missing param WebsiteConfiguration")));return}var L=s.clone(w.WebsiteConfiguration||{}),k=L.RoutingRules||L.RoutingRule||[];k=s.isArray(k)?k:[k],delete L.RoutingRule,delete L.RoutingRules,k.length&&(L.RoutingRules={RoutingRule:k});var H=s.json2xml({WebsiteConfiguration:L}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"website",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function $(w,N){Le.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"website",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchWebsiteConfiguration"){var H={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=k.WebsiteConfiguration||{};if(z.RoutingRules){var X=s.clone(z.RoutingRules.RoutingRule||[]);X=s.makeArray(X),z.RoutingRules=X}N(null,{WebsiteConfiguration:z,statusCode:k.statusCode,headers:k.headers})})}function U(w,N){Le.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"website",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function Q(w,N){if(!w.RefererConfiguration){N(s.error(new Error("missing param RefererConfiguration")));return}var L=s.clone(w.RefererConfiguration||{}),k=L.DomainList||{},H=k.Domains||k.Domain||[];H=s.isArray(H)?H:[H],H.length&&(L.DomainList={Domain:H});var z=s.json2xml({RefererConfiguration:L}),X=w.Headers;X["Content-Type"]="application/xml",X["Content-MD5"]=s.b64(s.md5(z)),Le.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:z,action:"referer",headers:X,tracker:w.tracker},function(ee,pe){if(ee&&ee.statusCode===204)return N(null,{statusCode:ee.statusCode});if(ee)return N(ee);N(null,{statusCode:pe.statusCode,headers:pe.headers})})}function Z(w,N){Le.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"referer",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchRefererConfiguration"){var H={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=k.RefererConfiguration||{};if(z.DomainList){var X=s.makeArray(z.DomainList.Domain||[]);z.DomainList={Domains:X}}N(null,{RefererConfiguration:z,statusCode:k.statusCode,headers:k.headers})})}function V(w,N){var L=w.DomainConfiguration||{},k=L.DomainRule||w.DomainRule||[];k=s.clone(k);var H=s.json2xml({DomainConfiguration:{DomainRule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"domain",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function te(w,N){Le.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"domain",tracker:w.tracker},function(L,k){if(L)return N(L);var H=[];try{H=k.DomainConfiguration.DomainRule||[]}catch{}H=s.clone(s.isArray(H)?H:[H]),N(null,{DomainRule:H,statusCode:k.statusCode,headers:k.headers})})}function ie(w,N){Le.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"domain",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function se(w,N){var L=w.OriginConfiguration||{},k=L.OriginRule||w.OriginRule||[];k=s.clone(k);var H=s.json2xml({OriginConfiguration:{OriginRule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"origin",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function W(w,N){Le.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"origin",tracker:w.tracker},function(L,k){if(L)return N(L);var H=[];try{H=k.OriginConfiguration.OriginRule||[]}catch{}H=s.clone(s.isArray(H)?H:[H]),N(null,{OriginRule:H,statusCode:k.statusCode,headers:k.headers})})}function q(w,N){Le.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"origin",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function ce(w,N){var L=s.json2xml({BucketLoggingStatus:w.BucketLoggingStatus||""}),k=w.Headers;k["Content-Type"]="application/xml",k["Content-MD5"]=s.b64(s.md5(L)),Le.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:L,action:"logging",headers:k,tracker:w.tracker},function(H,z){if(H&&H.statusCode===204)return N(null,{statusCode:H.statusCode});if(H)return N(H);N(null,{statusCode:z.statusCode,headers:z.headers})})}function me(w,N){Le.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"logging",tracker:w.tracker},function(L,k){if(L)return N(L);N(null,{BucketLoggingStatus:k.BucketLoggingStatus,statusCode:k.statusCode,headers:k.headers})})}function be(w,N,L){var k=s.clone(N.InventoryConfiguration);if(k.OptionalFields){var H=k.OptionalFields||[];k.OptionalFields={Field:H}}if(k.Destination&&k.Destination.COSBucketDestination&&k.Destination.COSBucketDestination.Encryption){var z=k.Destination.COSBucketDestination.Encryption;Object.keys(z).indexOf("SSECOS")>-1&&(z["SSE-COS"]=z.SSECOS,delete z.SSECOS)}var X=s.json2xml({InventoryConfiguration:k}),ee=N.Headers;ee["Content-Type"]="application/xml",ee["Content-MD5"]=s.b64(s.md5(X));var pe=w==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Le.call(this,{Action:pe,method:w,Bucket:N.Bucket,Region:N.Region,body:X,action:"inventory",qs:{id:N.Id},headers:ee,tracker:N.tracker},function(ze,Ne){if(ze&&ze.statusCode===204)return L(null,{statusCode:ze.statusCode});if(ze)return L(ze);L(null,{statusCode:Ne.statusCode,headers:Ne.headers})})}function ue(w,N){return be.call(this,"PUT",w,N)}function ve(w,N){return be.call(this,"POST",w,N)}function Ce(w,N){Le.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"inventory",qs:{id:w.Id},tracker:w.tracker},function(L,k){if(L)return N(L);var H=k.InventoryConfiguration;if(H&&H.OptionalFields&&H.OptionalFields.Field){var z=H.OptionalFields.Field;s.isArray(z)||(z=[z]),H.OptionalFields=z}if(H.Destination&&H.Destination.COSBucketDestination&&H.Destination.COSBucketDestination.Encryption){var X=H.Destination.COSBucketDestination.Encryption;Object.keys(X).indexOf("SSE-COS")>-1&&(X.SSECOS=X["SSE-COS"],delete X["SSE-COS"])}N(null,{InventoryConfiguration:H,statusCode:k.statusCode,headers:k.headers})})}function ae(w,N){Le.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"inventory",qs:{"continuation-token":w.ContinuationToken},tracker:w.tracker},function(L,k){if(L)return N(L);var H=k.ListInventoryConfigurationResult,z=H.InventoryConfiguration||[];z=s.isArray(z)?z:[z],delete H.InventoryConfiguration,s.each(z,function(X){if(X&&X.OptionalFields&&X.OptionalFields.Field){var ee=X.OptionalFields.Field;s.isArray(ee)||(ee=[ee]),X.OptionalFields=ee}if(X.Destination&&X.Destination.COSBucketDestination&&X.Destination.COSBucketDestination.Encryption){var pe=X.Destination.COSBucketDestination.Encryption;Object.keys(pe).indexOf("SSE-COS")>-1&&(pe.SSECOS=pe["SSE-COS"],delete pe["SSE-COS"])}}),H.InventoryConfigurations=z,s.extend(H,{statusCode:k.statusCode,headers:k.headers}),N(null,H)})}function fe(w,N){Le.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"inventory",qs:{id:w.Id},tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function Ae(w,N){if(!w.AccelerateConfiguration){N(s.error(new Error("missing param AccelerateConfiguration")));return}var L={AccelerateConfiguration:w.AccelerateConfiguration||{}},k=s.json2xml(L),H={};H["Content-Type"]="application/xml",H["Content-MD5"]=s.b64(s.md5(k)),Le.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:k,action:"accelerate",headers:H,tracker:w.tracker},function(z,X){if(z)return N(z);N(null,{statusCode:X.statusCode,headers:X.headers})})}function Re(w,N){Le.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:w.Bucket,Region:w.Region,action:"accelerate",tracker:w.tracker},function(L,k){L||!k.AccelerateConfiguration&&(k.AccelerateConfiguration={}),N(L,k)})}function st(w,N){var L=w.ServerSideEncryptionConfiguration||{},k=L.Rule||L.Rules||[],H=s.json2xml({ServerSideEncryptionConfiguration:{Rule:k}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:w.Bucket,Region:w.Region,body:H,action:"encryption",headers:z,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function vt(w,N){Le.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"encryption",tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.code==="NoSuchEncryptionConfiguration"){var H={EncryptionConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=s.makeArray(k.EncryptionConfiguration&&k.EncryptionConfiguration.Rule||[]);k.EncryptionConfiguration={Rules:z},N(L,k)})}function mt(w,N){Le.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"encryption",tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function Fe(w,N){Le.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,headers:w.Headers,tracker:w.tracker},function(L,k){if(L){var H=L.statusCode;return w.Headers["If-Modified-Since"]&&H&&H===304?N(null,{NotModified:!0,statusCode:H}):N(L)}k.ETag=s.attr(k.headers,"etag",""),N(null,k)})}function Kt(w,N){var L={};L.prefix=w.Prefix||"",L.delimiter=w.Delimiter,L["key-marker"]=w.KeyMarker,L["version-id-marker"]=w.VersionIdMarker,L["max-keys"]=w.MaxKeys,L["encoding-type"]=w.EncodingType,Le.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:L.prefix,method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,qs:L,action:"versions",tracker:w.tracker},function(k,H){if(k)return N(k);var z=H.ListVersionsResult||{},X=z.DeleteMarker||[];X=s.isArray(X)?X:[X];var ee=z.Version||[];ee=s.isArray(ee)?ee:[ee];var pe=s.clone(z);delete pe.DeleteMarker,delete pe.Version,s.extend(pe,{DeleteMarkers:X,Versions:ee,statusCode:H.statusCode,headers:H.headers}),N(null,pe)})}function Lt(w,N){if(this.options.ObjectKeySimplifyCheck){var L=s.simplifyPath(w.Key);if(L==="/"){N(s.error(new Error("The Getobject Key is illegal")));return}}var k=w.Query||{},H=w.QueryString||"",z=s.throttleOnProgress.call(this,0,w.onProgress),X=w.tracker;X&&X.setParams({signStartTime:new Date().getTime()}),k["response-content-type"]=w.ResponseContentType,k["response-content-language"]=w.ResponseContentLanguage,k["response-expires"]=w.ResponseExpires,k["response-cache-control"]=w.ResponseCacheControl,k["response-content-disposition"]=w.ResponseContentDisposition,k["response-content-encoding"]=w.ResponseContentEncoding,Le.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,DataType:w.DataType,headers:w.Headers,qs:k,qsStr:H,rawBody:!0,onDownloadProgress:z,tracker:X},function(ee,pe){if(z(null,!0),ee){var ze=ee.statusCode;return w.Headers["If-Modified-Since"]&&ze&&ze===304?N(null,{NotModified:!0}):N(ee)}N(null,{Body:pe.body,ETag:s.attr(pe.headers,"etag",""),statusCode:pe.statusCode,headers:pe.headers})})}function gr(w,N){var L=this,k=w.ContentLength,H=s.throttleOnProgress.call(L,k,w.onProgress),z=w.Headers;!z["Cache-Control"]&&!z["cache-control"]&&(z["Cache-Control"]=""),!z["Content-Type"]&&!z["content-type"]&&(z["Content-Type"]=w.Body&&w.Body.type||"");var X=w.UploadAddMetaMd5||L.options.UploadAddMetaMd5||L.options.UploadCheckContentMd5,ee=w.tracker;X&&ee&&ee.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(X,w.Body,function(pe){pe&&(ee&&ee.setParams({md5EndTime:new Date().getTime()}),L.options.UploadCheckContentMd5&&(z["Content-MD5"]=s.b64(pe)),(w.UploadAddMetaMd5||L.options.UploadAddMetaMd5)&&(z["x-cos-meta-md5"]=pe)),w.ContentLength!==void 0&&(z["Content-Length"]=w.ContentLength),H(null,!0),Le.call(L,{Action:"name/cos:PutObject",TaskId:w.TaskId,method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,qs:w.Query,body:w.Body,onProgress:H,tracker:ee},function(ze,Ne){if(ze)return H(null,!0),N(ze);H({loaded:k,total:k},!0);var at=Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:w.Bucket,region:L.options.UseAccelerate?"accelerate":w.Region,object:w.Key});at=at.substr(at.indexOf("://")+3),Ne.Location=at,Ne.ETag=s.attr(Ne.headers,"etag",""),N(null,Ne)})},w.onHashProgress)}function hn(w,N){Le.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,VersionId:w.VersionId,action:w.Recursive?"recursive":"",tracker:w.tracker},function(L,k){if(L){var H=L.statusCode;return H&&H===404?N(null,{BucketNotFound:!0,statusCode:H}):N(L)}N(null,{statusCode:k.statusCode,headers:k.headers})})}function Jn(w,N){var L={};w.VersionId&&(L.versionId=w.VersionId),Le.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,qs:L,action:"acl",tracker:w.tracker},function(k,H){if(k)return N(k);var z=H.AccessControlPolicy||{},X=z.Owner||{},ee=z.AccessControlList&&z.AccessControlList.Grant||[];ee=s.isArray(ee)?ee:[ee];var pe=dt(z);delete pe.GrantWrite,H.headers&&H.headers["x-cos-acl"]&&(pe.ACL=H.headers["x-cos-acl"]),pe=s.extend(pe,{Owner:X,Grants:ee,statusCode:H.statusCode,headers:H.headers}),N(null,pe)})}function qn(w,N){var L=w.Headers,k="";if(w.AccessControlPolicy){var H=s.clone(w.AccessControlPolicy||{}),z=H.Grants||H.Grant;z=s.isArray(z)?z:[z],delete H.Grant,delete H.Grants,H.AccessControlList={Grant:z},k=s.json2xml({AccessControlPolicy:H}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(k))}s.each(L,function(X,ee){ee.indexOf("x-cos-grant-")===0&&(L[ee]=Mn(L[ee]))}),Le.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,action:"acl",headers:L,body:k,tracker:w.tracker},function(X,ee){if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function ei(w,N){var L=w.Headers;L.Origin=w.Origin,L["Access-Control-Request-Method"]=w.AccessControlRequestMethod,L["Access-Control-Request-Headers"]=w.AccessControlRequestHeaders,Le.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:L,tracker:w.tracker},function(k,H){if(k)return k.statusCode&&k.statusCode===403?N(null,{OptionsForbidden:!0,statusCode:k.statusCode}):N(k);var z=H.headers||{};N(null,{AccessControlAllowOrigin:z["access-control-allow-origin"],AccessControlAllowMethods:z["access-control-allow-methods"],AccessControlAllowHeaders:z["access-control-allow-headers"],AccessControlExposeHeaders:z["access-control-expose-headers"],AccessControlMaxAge:z["access-control-max-age"],statusCode:H.statusCode,headers:H.headers})})}function ne(w,N){var L=this,k=w.Headers;!k["Cache-Control"]&&!k["cache-control"]&&(k["Cache-Control"]="");var H=w.CopySource||"",z=s.getSourceParams.call(this,H);if(!z){N(s.error(new Error("CopySource format error")));return}var X=z.Bucket,ee=z.Region,pe=decodeURIComponent(z.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:X,region:ee,prefix:pe},{action:"name/cos:PutObject",bucket:w.Bucket,region:w.Region,prefix:w.Key}],method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,headers:w.Headers,tracker:w.tracker},function(ze,Ne){if(ze)return N(ze);var at=s.clone(Ne.CopyObjectResult||{}),we=Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:w.Bucket,region:w.Region,object:w.Key,isLocation:!0});s.extend(at,{Location:we,statusCode:Ne.statusCode,headers:Ne.headers}),N(null,at)})}function re(w,N){var L=w.CopySource||"",k=s.getSourceParams.call(this,L);if(!k){N(s.error(new Error("CopySource format error")));return}var H=k.Bucket,z=k.Region,X=decodeURIComponent(k.Key);Le.call(this,{Scope:[{action:"name/cos:GetObject",bucket:H,region:z,prefix:X},{action:"name/cos:PutObject",bucket:w.Bucket,region:w.Region,prefix:w.Key}],method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,qs:{partNumber:w.PartNumber,uploadId:w.UploadId},headers:w.Headers,tracker:w.tracker},function(ee,pe){if(ee)return N(ee);var ze=s.clone(pe.CopyPartResult||{});s.extend(ze,{statusCode:pe.statusCode,headers:pe.headers}),N(null,ze)})}function G(w,N){var L=w.Objects||[],k=w.Quiet;L=s.isArray(L)?L:[L];var H=s.json2xml({Delete:{Object:L,Quiet:k||!1}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H));var X=s.map(L,function(ee){return{action:"name/cos:DeleteObject",bucket:w.Bucket,region:w.Region,prefix:ee.Key}});Le.call(this,{Scope:X,method:"POST",Bucket:w.Bucket,Region:w.Region,body:H,action:"delete",headers:z,tracker:w.tracker},function(ee,pe){if(ee)return N(ee);var ze=pe.DeleteResult||{},Ne=ze.Deleted||[],at=ze.Error||[];Ne=s.isArray(Ne)?Ne:[Ne],at=s.isArray(at)?at:[at];var we=s.clone(ze);s.extend(we,{Error:at,Deleted:Ne,statusCode:pe.statusCode,headers:pe.headers}),N(null,we)})}function F(w,N){var L=w.Headers;if(!w.RestoreRequest){N(s.error(new Error("missing param RestoreRequest")));return}var k=w.RestoreRequest||{},H=s.json2xml({RestoreRequest:k});L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:w.Bucket,Region:w.Region,Key:w.Key,VersionId:w.VersionId,body:H,action:"restore",headers:L,tracker:w.tracker},N)}function j(w,N){var L=w.Tagging||{},k=L.TagSet||L.Tags||w.Tags||[];k=s.clone(s.isArray(k)?k:[k]);var H=s.json2xml({Tagging:{TagSet:{Tag:k}}}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:w.Bucket,Key:w.Key,Region:w.Region,body:H,action:"tagging",headers:z,VersionId:w.VersionId,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);N(null,{statusCode:ee.statusCode,headers:ee.headers})})}function K(w,N){Le.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:w.Key,Bucket:w.Bucket,Region:w.Region,headers:w.Headers,action:"tagging",VersionId:w.VersionId,tracker:w.tracker},function(L,k){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var H={Tags:[],statusCode:L.statusCode};L.headers&&(H.headers=L.headers),N(null,H)}else N(L);return}var z=[];try{z=k.Tagging.TagSet.Tag||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),N(null,{Tags:z,statusCode:k.statusCode,headers:k.headers})})}function le(w,N){Le.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"tagging",VersionId:w.VersionId,tracker:w.tracker},function(L,k){if(L&&L.statusCode===204)return N(null,{statusCode:L.statusCode});if(L)return N(L);N(null,{statusCode:k.statusCode,headers:k.headers})})}function de(w,N){var L=w.SelectType;if(!L)return N(s.error(new Error("missing param SelectType")));var k=w.SelectRequest||{},H=s.json2xml({SelectRequest:k}),z=w.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(H)),Le.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,action:"select",qs:{"select-type":w.SelectType},VersionId:w.VersionId,body:H,DataType:"arraybuffer",rawBody:!0,tracker:w.tracker},function(X,ee){if(X&&X.statusCode===204)return N(null,{statusCode:X.statusCode});if(X)return N(X);var pe=s.parseSelectPayload(ee.body);N(null,{statusCode:ee.statusCode,headers:ee.headers,Body:pe.body,Payload:pe.payload})})}function _e(w,N){var L=this,k=w.Headers,H=w.tracker;!k["Cache-Control"]&&!k["cache-control"]&&(k["Cache-Control"]=""),!k["Content-Type"]&&!k["content-type"]&&(k["Content-Type"]=w.Body&&w.Body.type||"");var z=w.Body&&(w.UploadAddMetaMd5||L.options.UploadAddMetaMd5);z&&H&&H.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(z,w.Body,function(X){X&&(w.Headers["x-cos-meta-md5"]=X),z&&H&&H.setParams({md5EndTime:new Date().getTime()}),Le.call(L,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:w.Bucket,Region:w.Region,Key:w.Key,action:"uploads",headers:w.Headers,qs:w.Query,tracker:H},function(ee,pe){if(ee)return H&&H.parent&&H.parent.setParams({errorNode:"multipartInit"}),N(ee);if(pe=s.clone(pe||{}),pe&&pe.InitiateMultipartUploadResult)return N(null,s.extend(pe.InitiateMultipartUploadResult,{statusCode:pe.statusCode,headers:pe.headers}));N(null,pe)})},w.onHashProgress)}function xe(w,N){var L=this;s.getFileSize("multipartUpload",w,function(){var k=w.tracker,H=L.options.UploadCheckContentMd5;H&&k&&k.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(H,w.Body,function(z){z&&(w.Headers["Content-MD5"]=s.b64(z)),H&&k&&k.setParams({md5EndTime:new Date().getTime()}),k&&k.setParams({partNumber:w.PartNumber}),Le.call(L,{Action:"name/cos:UploadPart",TaskId:w.TaskId,method:"PUT",Bucket:w.Bucket,Region:w.Region,Key:w.Key,qs:{partNumber:w.PartNumber,uploadId:w.UploadId},headers:w.Headers,onProgress:w.onProgress,body:w.Body||null,tracker:k},function(X,ee){if(X)return k&&k.parent&&k.parent.setParams({errorNode:"multipartUpload"}),N(X);N(null,{ETag:s.attr(ee.headers,"etag",""),statusCode:ee.statusCode,headers:ee.headers})})})})}function ye(w,N){for(var L=this,k=w.UploadId,H=w.Parts,z=w.tracker,X=0,ee=H.length;X<ee;X++)H[X].ETag&&H[X].ETag.indexOf('"')===0||(H[X].ETag='"'+H[X].ETag+'"');var pe=s.json2xml({CompleteMultipartUpload:{Part:H}});pe=pe.replace(/\n\s*/g,"");var ze=w.Headers;ze["Content-Type"]="application/xml",ze["Content-MD5"]=s.b64(s.md5(pe)),Le.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:w.Bucket,Region:w.Region,Key:w.Key,qs:{uploadId:k},body:pe,headers:ze,tracker:z},function(Ne,at){if(Ne)return z&&z.parent&&z.parent.setParams({errorNode:"multipartComplete"}),N(Ne);var we=Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:w.Bucket,region:w.Region,object:w.Key,isLocation:!0}),rt=at.CompleteMultipartUploadResult||{};if(rt.ProcessResults&&(rt.UploadResult={OriginalInfo:{Key:rt.Key,Location:we,ETag:rt.ETag,ImageInfo:rt.ImageInfo},ProcessResults:rt.ProcessResults},delete rt.ImageInfo,delete rt.ProcessResults),rt.CallbackResult){var Br=rt.CallbackResult;if(Br.Status==="200"&&Br.CallbackBody)try{rt.CallbackBody=JSON.parse(s.decodeBase64(Br.CallbackBody))}catch{rt.CallbackBody={}}else rt.CallbackError=Br.Error||{};delete rt.CallbackResult}if(rt.ReturnBodyResult){var er=rt.ReturnBodyResult;if(er.Status==="200"&&er.ReturnBody)try{rt.ReturnBody=JSON.parse(s.decodeBase64(er.ReturnBody))}catch{rt.ReturnBody={}}else rt.ReturnError={Code:er.Code,Message:er.Message,Status:er.Status};delete rt.ReturnBodyResult}var Nr=s.extend(rt,{Location:we,statusCode:at.statusCode,headers:at.headers});N(null,Nr)})}function Ee(w,N){var L={};L.delimiter=w.Delimiter,L["encoding-type"]=w.EncodingType,L.prefix=w.Prefix||"",L["max-uploads"]=w.MaxUploads,L["key-marker"]=w.KeyMarker,L["upload-id-marker"]=w.UploadIdMarker,L=s.clearKey(L);var k=w.tracker;k&&k.setParams({signStartTime:new Date().getTime()}),Le.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:L.prefix,method:"GET",Bucket:w.Bucket,Region:w.Region,headers:w.Headers,qs:L,action:"uploads",tracker:k},function(H,z){if(H)return k&&k.parent&&k.parent.setParams({errorNode:"multipartList"}),N(H);if(z&&z.ListMultipartUploadsResult){var X=z.ListMultipartUploadsResult.Upload||[];X=s.isArray(X)?X:[X],z.ListMultipartUploadsResult.Upload=X}var ee=s.clone(z.ListMultipartUploadsResult||{});s.extend(ee,{statusCode:z.statusCode,headers:z.headers}),N(null,ee)})}function ke(w,N){var L={},k=w.tracker;L.uploadId=w.UploadId,L["encoding-type"]=w.EncodingType,L["max-parts"]=w.MaxParts,L["part-number-marker"]=w.PartNumberMarker,Le.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,qs:L,tracker:k},function(H,z){if(H)return k&&k.parent&&k.parent.setParams({errorNode:"multipartListPart"}),N(H);var X=z.ListPartsResult||{},ee=X.Part||[];ee=s.isArray(ee)?ee:[ee],X.Part=ee;var pe=s.clone(X);s.extend(pe,{statusCode:z.statusCode,headers:z.headers}),N(null,pe)})}function Ue(w,N){var L={};L.uploadId=w.UploadId,Le.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:w.Bucket,Region:w.Region,Key:w.Key,headers:w.Headers,qs:L,tracker:w.tracker},function(k,H){if(k)return N(k);N(null,{statusCode:H.statusCode,headers:H.headers})})}function lt(w,N){Le.call(this,{method:w.Method,Bucket:w.Bucket,Region:w.Region,Key:w.Key,action:w.Action,headers:w.Headers,qs:w.Query,body:w.Body,Url:w.Url,rawBody:w.RawBody,DataType:w.DataType,tracker:w.tracker},function(L,k){if(L)return N(L);k&&k.body&&(k.Body=k.body,delete k.body),N(L,k)})}function qt(w,N){var L=w.Headers;!L["Cache-Control"]&&!L["cache-control"]&&(L["Cache-Control"]=""),!L["Content-Type"]&&!L["content-type"]&&(L["Content-Type"]=w.Body&&w.Body.type||""),Le.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:w.Bucket,Region:w.Region,action:"append",Key:w.Key,body:w.Body,qs:{position:w.Position},headers:w.Headers,tracker:w.tracker},function(k,H){if(k)return N(k);N(null,H)})}function ti(w){var N=this;return s.getAuth({SecretId:w.SecretId||this.options.SecretId||"",SecretKey:w.SecretKey||this.options.SecretKey||"",Bucket:w.Bucket,Region:w.Region,Method:w.Method,Key:w.Key,Query:w.Query,Headers:w.Headers,Expires:w.Expires,UseRawKey:N.options.UseRawKey,SystemClockOffset:N.options.SystemClockOffset})}function or(w,N){var L=this,k=w.UseAccelerate===void 0?L.options.UseAccelerate:w.UseAccelerate,H=Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:w.Protocol||L.options.Protocol,domain:w.Domain||L.options.Domain,bucket:w.Bucket,region:k?"accelerate":w.Region,object:w.Key}),z="";w.Query&&(z+=s.obj2str(w.Query)),w.QueryString&&(z+=(z?"&":"")+w.QueryString);var X=H;if(w.Sign!==void 0&&!w.Sign)return z&&(X+="?"+z),N(null,{Url:X}),X;var ee=$a.call(this,{Bucket:w.Bucket,Region:w.Region,UseAccelerate:w.UseAccelerate,Url:H}),pe=ml.call(this,{Action:(w.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:w.Bucket||"",Region:w.Region||"",Method:w.Method||"get",Key:w.Key,Expires:w.Expires,Headers:w.Headers,Query:w.Query,SignHost:ee,ForceSignHost:w.ForceSignHost===!1?!1:L.options.ForceSignHost},function(ze,Ne){if(N){if(ze){N(ze);return}var at=function(Br){var er=Br.match(/q-url-param-list.*?(?=&)/g)[0],Nr="q-url-param-list="+encodeURIComponent(er.replace(/q-url-param-list=/,"")).toLowerCase(),Yr=new RegExp(er,"g"),Rn=Br.replace(Yr,Nr);return Rn},we=H;we+="?"+(Ne.Authorization.indexOf("q-signature")>-1?at(Ne.Authorization):"sign="+encodeURIComponent(Ne.Authorization)),Ne.SecurityToken&&(we+="&x-cos-security-token="+Ne.SecurityToken),Ne.ClientIP&&(we+="&clientIP="+Ne.ClientIP),Ne.ClientUA&&(we+="&clientUA="+Ne.ClientUA),Ne.Token&&(we+="&token="+Ne.Token),z&&(we+="&"+z),setTimeout(function(){N(null,{Url:we})})}});return pe?(X+="?"+pe.Authorization+(pe.SecurityToken?"&x-cos-security-token="+pe.SecurityToken:""),z&&(X+="&"+z)):z&&(X+="?"+z),X}function dt(w){var N={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},L={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},k=w&&w.AccessControlList||{},H=k.Grant;H&&(H=s.isArray(H)?H:[H]);var z={READ:0,WRITE:0,FULL_CONTROL:0};return H&&H.length&&s.each(H,function(X){var ee=X.Grantee.URI&&X.Grantee.URI.endsWith("/groups/global/AllUsers");X.Grantee.ID==="qcs::cam::anyone:anyone"||ee?z[X.Permission]=1:X.Grantee.ID!==w.Owner.ID&&N[L[X.Permission]].push('id="'+X.Grantee.ID+'"')}),z.FULL_CONTROL||z.WRITE&&z.READ?N.ACL="public-read-write":z.READ?N.ACL="public-read":N.ACL="private",s.each(L,function(X){N[X]=Mn(N[X].join(","))}),N}function Mn(w){var N=w.split(","),L={},k,H;for(k=0;k<N.length;)H=N[k].trim(),L[H]?N.splice(k,1):(L[H]=!0,N[k]=H,k++);return N.join(",")}function Kr(w){var N=w.region||"",L=w.bucket||"",k=L.substr(0,L.lastIndexOf("-")),H=L.substr(L.lastIndexOf("-")+1),z=w.domain,X=w.object;typeof z=="function"&&(z=z({Bucket:L,Region:N})),["http","https"].includes(w.protocol)&&(w.protocol=w.protocol+":");var ee=w.protocol||(s.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:");z||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(N)>-1?z="{Region}.myqcloud.com":z="cos.{Region}.myqcloud.com",w.ForcePathStyle||(z="{Bucket}."+z)),z=z.replace(/\{\{AppId\}\}/gi,H).replace(/\{\{Bucket\}\}/gi,k).replace(/\{\{Region\}\}/gi,N).replace(/\{\{.*?\}\}/gi,""),z=z.replace(/\{AppId\}/gi,H).replace(/\{BucketName\}/gi,k).replace(/\{Bucket\}/gi,L).replace(/\{Region\}/gi,N).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(z)||(z=ee+"//"+z),z.slice(-1)==="/"&&(z=z.slice(0,-1));var pe=z;return w.ForcePathStyle&&(pe+="/"+L),pe+="/",X&&(pe+=s.camSafeUrlEncode(X).replace(/%2F/g,"/")),w.isLocation&&(pe=pe.replace(/^https?:\/\//,"")),pe}var $a=function(N){if(!N.Bucket||!N.Region)return"";var L=N.UseAccelerate===void 0?this.options.UseAccelerate:N.UseAccelerate,k=N.Url||Kr({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:N.Bucket,region:L?"accelerate":N.Region}),H=k.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return H};function ml(w,N){var L=s.clone(w.Headers),k="";s.each(L,function(St,et){(St===""||["content-type","cache-control","expires"].indexOf(et.toLowerCase())>-1)&&delete L[et],et.toLowerCase()==="host"&&(k=St)});var H=w.ForceSignHost!==!1;!k&&w.SignHost&&H&&(L.Host=w.SignHost);var z=!1,X=function(et,Qe){z||(z=!0,Qe&&Qe.XCosSecurityToken&&!Qe.SecurityToken&&(Qe=s.clone(Qe),Qe.SecurityToken=Qe.XCosSecurityToken,delete Qe.XCosSecurityToken),N&&N(et,Qe))},ee=this,pe=w.Bucket||"",ze=w.Region||"",Ne=w.Key||"";ee.options.ForcePathStyle&&pe&&(Ne=pe+"/"+Ne);var at="/"+Ne,we={},rt=w.Scope;if(!rt){var Br=w.Action||"",er=w.ResourceKey||w.Key||"";rt=w.Scope||[{action:Br,bucket:pe,region:ze,prefix:er}]}var Nr=s.md5(JSON.stringify(rt));ee._StsCache=ee._StsCache||[],function(){var St,et;for(St=ee._StsCache.length-1;St>=0;St--){et=ee._StsCache[St];var Qe=Math.round(s.getSkewTime(ee.options.SystemClockOffset)/1e3)+30;if(et.StartTime&&Qe<et.StartTime||Qe>=et.ExpiredTime){ee._StsCache.splice(St,1);continue}if(!et.ScopeLimit||et.ScopeLimit&&et.ScopeKey===Nr){we=et;break}}}();var Yr=function(){var et="";we.StartTime&&w.Expires?et=we.StartTime+";"+(we.StartTime+w.Expires*1):we.StartTime&&we.ExpiredTime&&(et=we.StartTime+";"+we.ExpiredTime);var Qe=s.getAuth({SecretId:we.TmpSecretId,SecretKey:we.TmpSecretKey,Method:w.Method,Pathname:at,Query:w.Query,Headers:L,Expires:w.Expires,UseRawKey:ee.options.UseRawKey,SystemClockOffset:ee.options.SystemClockOffset,KeyTime:et,ForceSignHost:H}),wt={Authorization:Qe,SecurityToken:we.SecurityToken||we.XCosSecurityToken||"",Token:we.Token||"",ClientIP:we.ClientIP||"",ClientUA:we.ClientUA||"",SignFrom:"client"};X(null,wt)},Rn=function(et){if(et.Authorization){var Qe=!1,wt=et.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(!et.TmpSecretId)return s.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!et.TmpSecretKey)return s.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!et.SecurityToken&&!et.XCosSecurityToken)return s.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!et.ExpiredTime)return s.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(et.ExpiredTime&&et.ExpiredTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(et.StartTime&&et.StartTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(we.ExpiredTime&&we.ExpiredTime-s.getSkewTime(ee.options.SystemClockOffset)/1e3>60)Yr();else if(ee.options.getAuthorization)ee.options.getAuthorization.call(ee,{Bucket:pe,Region:ze,Method:w.Method,Key:Ne,Pathname:at,Query:w.Query,Headers:L,Scope:rt,SystemClockOffset:ee.options.SystemClockOffset,ForceSignHost:H},function(St){typeof St=="string"&&(St={Authorization:St});var et=Rn(St);if(et)return X(et);St.Authorization?X(null,St):(we=St||{},we.Scope=rt,we.ScopeKey=Nr,ee._StsCache.push(we),Yr())});else if(ee.options.getSTS)ee.options.getSTS.call(ee,{Bucket:pe,Region:ze},function(St){we=St||{},we.Scope=rt,we.ScopeKey=Nr,we.TmpSecretId||(we.TmpSecretId=we.SecretId),we.TmpSecretKey||(we.TmpSecretKey=we.SecretKey);var et=Rn(we);if(et)return X(et);ee._StsCache.push(we),Yr()});else return function(){var St="";if(ee.options.StartTime&&w.Expires){if(ee.options.StartTime.toString().length!==10)return X(s.error(new Error('params "StartTime" should be 10 digits')));St=ee.options.StartTime+";"+(ee.options.StartTime+w.Expires*1)}else if(ee.options.StartTime&&ee.options.ExpiredTime){if(ee.options.StartTime.toString().length!==10)return X(s.error(new Error('params "StartTime" should be 10 digits')));if(ee.options.ExpiredTime.toString().length!==10)return X(s.error(new Error('params "ExpiredTime" should be 10 digits')));St=ee.options.StartTime+";"+ee.options.ExpiredTime*1}var et=s.getAuth({SecretId:w.SecretId||ee.options.SecretId,SecretKey:w.SecretKey||ee.options.SecretKey,Method:w.Method,Pathname:at,Query:w.Query,Headers:L,Expires:w.Expires,KeyTime:St,UseRawKey:ee.options.UseRawKey,SystemClockOffset:ee.options.SystemClockOffset,ForceSignHost:H}),Qe={Authorization:et,SecurityToken:ee.options.SecurityToken||ee.options.XCosSecurityToken,SignFrom:"client"};return X(null,Qe),Qe}();return""}function rf(w){var N=this,L=!1,k=!1,H=!1,z=w.headers&&(w.headers.date||w.headers.Date)||w.error&&w.error.ServerTime;try{var X=w.error.Code,ee=w.error.Message;(X==="RequestTimeTooSkewed"||X==="AccessDenied"&&ee==="Request has expired")&&(k=!0)}catch{}if(w)if(k&&z){var pe=Date.parse(z);this.options.CorrectClockSkew&&Math.abs(s.getSkewTime(this.options.SystemClockOffset)-pe)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=pe-Date.now(),L=!0)}else Math.floor(w.statusCode/100)===5?L=!0:w.message==="CORS blocked or network error"&&(H=!0,L=N.options.AutoSwitchHost);return{canRetry:L,networkError:H}}function nf(w){var N=w.requestUrl,L=w.clientCalcSign,k=w.networkError;if(!this.options.AutoSwitchHost||!N||!L||!k)return!1;var H=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,z=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,X=H.test(N)&&!z.test(N);return X}function Le(w,N){var L=this;!w.headers&&(w.headers={}),!w.qs&&(w.qs={}),w.VersionId&&(w.qs.versionId=w.VersionId),w.qs=s.clearKey(w.qs),w.headers&&(w.headers=s.clearKey(w.headers)),w.qs&&(w.qs=s.clearKey(w.qs));var k=s.clone(w.qs);w.action&&(k[w.action]="");var H=w.url||w.Url,z=w.SignHost||$a.call(this,{Bucket:w.Bucket,Region:w.Region,Url:H}),X=w.tracker,ee=function pe(ze){var Ne=L.options.SystemClockOffset;X&&X.setParams({signStartTime:new Date().getTime(),httpRetryTimes:ze-1}),w.SwitchHost&&(z=z.replace(/myqcloud.com/,"tencentcos.cn")),ml.call(L,{Bucket:w.Bucket||"",Region:w.Region||"",Method:w.method,Key:w.Key,Query:k,Headers:w.headers,SignHost:z,Action:w.Action,ResourceKey:w.ResourceKey,Scope:w.Scope,ForceSignHost:L.options.ForceSignHost,SwitchHost:w.SwitchHost},function(at,we){if(at){N(at);return}X&&X.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),w.AuthData=we,af.call(L,w,function(rt,Br){X&&X.setParams({httpEndTime:new Date().getTime()});var er=!1,Nr=!1;if(rt){var Yr=rf.call(L,rt);er=Yr.canRetry||Ne!==L.options.SystemClockOffset,Nr=Yr.networkError}if(rt&&ze<2&&er){w.headers&&(delete w.headers.Authorization,delete w.headers.token,delete w.headers.clientIP,delete w.headers.clientUA,w.headers["x-cos-security-token"]&&delete w.headers["x-cos-security-token"],w.headers["x-ci-security-token"]&&delete w.headers["x-ci-security-token"]);var Rn=nf.call(L,{requestUrl:(rt==null?void 0:rt.url)||"",clientCalcSign:we.SignFrom==="client",networkError:Nr});w.SwitchHost=Rn,w.retry=!0,pe(ze+1)}else N(rt,Br)})})};ee(1)}function af(w,N){var L=this,k=w.TaskId;if(!(k&&!L._isRunningTask(k))){var H=w.Bucket,z=w.Region,X=w.Key,ee=w.method||"GET",pe=w.Url||w.url,ze=w.body,Ne=w.rawBody;L.options.UseAccelerate&&(z="accelerate"),pe=pe||Kr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:H,region:z,object:X}),w.SwitchHost&&(pe=pe.replace(/myqcloud.com/,"tencentcos.cn"));var at=X?pe:"";w.action&&(pe=pe+"?"+(s.isIOS_QQ?"".concat(w.action,"="):w.action)),w.qsStr&&(pe.indexOf("?")>-1?pe=pe+"&"+w.qsStr:pe=pe+"?"+w.qsStr);var we={method:ee,url:pe,headers:w.headers,qs:w.qs,body:ze},rt="x-cos-security-token";if(s.isCIHost(pe)&&(rt="x-ci-security-token"),we.headers.Authorization=w.AuthData.Authorization,w.AuthData.Token&&(we.headers.token=w.AuthData.Token),w.AuthData.ClientIP&&(we.headers.clientIP=w.AuthData.ClientIP),w.AuthData.ClientUA&&(we.headers.clientUA=w.AuthData.ClientUA),w.AuthData.SecurityToken&&(we.headers[rt]=w.AuthData.SecurityToken),we.headers&&(we.headers=s.clearKey(we.headers)),w.retry&&(we.headers["x-cos-sdk-retry"]=!0),we=s.clearKey(we),w.onProgress&&typeof w.onProgress=="function"){var Br=ze&&(ze.size||ze.length)||0;we.onProgress=function(Qe){if(!(k&&!L._isRunningTask(k))){var wt=Qe?Qe.loaded:0;w.onProgress({loaded:wt,total:Br})}}}w.onDownloadProgress&&(we.onDownloadProgress=w.onDownloadProgress),w.DataType&&(we.dataType=w.DataType),this.options.Timeout&&(we.timeout=this.options.Timeout),L.options.ForcePathStyle&&(we.pathStyle=L.options.ForcePathStyle),L.emit("before-send",we);var er=we.url.includes("accelerate."),Nr=we.qs?Object.keys(we.qs).map(function(Qe){return"".concat(Qe,"=").concat(we.qs[Qe])}).join("&"):"",Yr=Nr?we.url+"?"+Nr:we.url;if(w.tracker){var Rn;w.tracker.setParams({url:Yr,httpMethod:we.method,accelerate:er,httpSize:((Rn=we.body)===null||Rn===void 0?void 0:Rn.size)||0}),w.tracker.parent&&!w.tracker.parent.params.url&&w.tracker.parent.setParams({url:at,accelerate:er})}var St=(L.options.Request||o)(we,function(Qe){if(!(Qe&&Qe.error==="abort")){var wt={options:we,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 of=wt.error,yl=wt.body,gi={statusCode:wt.statusCode,statusMessage:wt.statusMessage,headers:wt.headers},Ap,Qi=function(Ji,Gt){if(k&&L.off("inner-kill-task",et),!Ap){Ap=!0;var Ua={};if(gi&&gi.statusCode&&(Ua.statusCode=gi.statusCode),gi&&gi.headers&&(Ua.headers=gi.headers),Ji)we.url&&(Ua.url=we.url),we.method&&(Ua.method=we.method),Ji=s.extend(Ji||{},Ua),N(Ji,null);else{if(w.Action==="name/cos:PutObject"){var lf={};for(var Pp in w.headers){var Fx=Pp.toLowerCase();lf[Fx]=w.headers[Pp]}lf["x-cos-callback"]?Gt.Error?(Gt.CallbackError=s.clone(Gt.Error),delete Gt.Error):Gt.CallbackBody=s.clone(Gt):lf["x-cos-return-body"]&&(Gt.Error?(Gt.ReturnError=s.clone(Gt.Error),delete Gt.Error):Gt.ReturnBody=s.clone(Gt))}Gt=s.extend(Gt||{},Ua),N(null,Gt)}St=null}};if(of)return Qi(s.error(of));var Sl=gi.statusCode,_p=Math.floor(Sl/100)===2;if(Ne){if(_p)return Qi(null,{body:yl});if(yl instanceof Blob){s.readAsBinaryString(yl,function(Ep){var Ji=s.parseResBody(Ep),Gt=Ji.Error||Ji;return Qi(s.error(new Error(Gt.Message||"response body error"),{code:Gt.Code,error:Gt}))});return}}var sf=s.parseResBody(yl),bl=sf.Error||sf;_p?Qi(null,sf):bl?Qi(s.error(new Error(bl.Message),{code:bl.Code,error:bl})):Sl?Qi(s.error(new Error(gi.statusMessage),{code:""+Sl})):Sl&&Qi(s.error(new Error("statusCode error")))}}),et=function Qe(wt){wt.TaskId===k&&(St&&St.abort&&St.abort(),L.off("inner-kill-task",Qe))};k&&L.on("inner-kill-task",et)}}var Ip={getService:l,putBucket:u,headBucket:f,getBucket:c,deleteBucket:d,putBucketAcl:h,getBucketAcl:v,putBucketCors:p,getBucketCors:g,deleteBucketCors:m,getBucketLocation:y,getBucketPolicy:A,putBucketPolicy:b,deleteBucketPolicy:M,putBucketTagging:C,getBucketTagging:I,deleteBucketTagging:P,putBucketLifecycle:S,getBucketLifecycle:T,deleteBucketLifecycle:x,putBucketVersioning:_,getBucketVersioning:E,putBucketReplication:R,getBucketReplication:O,deleteBucketReplication:D,putBucketWebsite:B,getBucketWebsite:$,deleteBucketWebsite:U,putBucketReferer:Q,getBucketReferer:Z,putBucketDomain:V,getBucketDomain:te,deleteBucketDomain:ie,putBucketOrigin:se,getBucketOrigin:W,deleteBucketOrigin:q,putBucketLogging:ce,getBucketLogging:me,putBucketInventory:ue,postBucketInventory:ve,getBucketInventory:Ce,listBucketInventory:ae,deleteBucketInventory:fe,putBucketAccelerate:Ae,getBucketAccelerate:Re,putBucketEncryption:st,getBucketEncryption:vt,deleteBucketEncryption:mt,getObject:Lt,headObject:Fe,listObjectVersions:Kt,putObject:gr,deleteObject:hn,getObjectAcl:Jn,putObjectAcl:qn,optionsObject:ei,putObjectCopy:ne,deleteMultipleObject:G,restoreObject:F,putObjectTagging:j,getObjectTagging:K,deleteObjectTagging:le,selectObjectContent:de,appendObject:qt,uploadPartCopy:re,multipartInit:_e,multipartUpload:xe,multipartComplete:ye,multipartList:Ee,multipartListPart:ke,multipartAbort:Ue,request:lt,getObjectUrl:or,getAuth:ti};function Nx(w,N,L){s.each(["Cors","Acl"],function(k){if(w.slice(-k.length)===k){var H=w.slice(0,-k.length)+k.toUpperCase(),z=s.apiWrapper(w,N),X=!1;L[H]=function(){!X&&console.warn("warning: cos."+H+" has been deprecated. Please Use cos."+w+" instead."),X=!0,z.apply(this,arguments)}}})}r.exports.init=function(w,N){N.transferToTaskMethod(Ip,"putObject"),s.each(Ip,function(L,k){w.prototype[k]=s.apiWrapper(k,L),Nx(k,L,w.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 b=l[y][2];(!b||b+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,b){return g.name&&g.size&&g.lastModifiedDate&&m?a.md5([g.name,g.size,g.lastModifiedDate,m,y,b].join("::")):null},getCopyFileId:function(g,m,y,b,A){var M=m["content-length"],C=m.etag||"",I=m["last-modified"];return g&&y?a.md5([g,M,C,I,y,b,A].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 b=l.length-1;b>=0;b--){var A=l[b];A[0]===g&&A[1]===m&&l.splice(b,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(I){var P={id:I.id,Bucket:I.Bucket,Region:I.Region,Key:I.Key,FilePath:I.FilePath,state:I.state,loaded:I.loaded,size:I.size,speed:I.speed,percent:I.percent,hashPercent:I.hashPercent,error:I.error};return I.FilePath&&(P.FilePath=I.FilePath),I._custom&&(P._custom=I._custom),P},m=function(){var C,I=function(){C=0,c.emit("task-list-update",{list:o.map(d,g)}),c.emit("list-update",{list:o.map(d,g)})};return function(){C||(C=setTimeout(I))}}(),y=function(){if(!(d.length<=c.options.UploadQueueSize)){for(var I=0;I<p&&I<d.length&&d.length>c.options.UploadQueueSize;){var P=d[I].state==="waiting"||d[I].state==="checking"||d[I].state==="uploading";!d[I]||!P?(h[d[I].id]&&delete h[d[I].id],d.splice(I,1),p--):I++}m()}},b=function C(){if(!(v>=c.options.FileParallelLimit)){for(;d[p]&&d[p].state!=="waiting";)p++;if(!(p>=d.length)){var I=d[p];p++,v++,I.state="checking",I.params.onTaskStart&&I.params.onTaskStart(g(I)),!I.params.UploadData&&(I.params.UploadData={});var P=o.formatParams(I.api,I.params);s[I.api].call(c,P,function(S,T){c._isRunningTask(I.id)&&((I.state==="checking"||I.state==="uploading")&&(I.state=S?"error":"success",S&&(I.error=S),v--,m(),C(),I.callback&&I.callback(S,T),I.state==="success"&&(I.params&&(delete I.params.UploadData,delete I.params.Body,delete I.params),delete I.callback)),y())}),m(),setTimeout(C)}}},A=function(I,P){var S=h[I];if(S){var T=S&&S.state==="waiting",x=S&&(S.state==="checking"||S.state==="uploading");if(P==="canceled"&&S.state!=="canceled"||P==="paused"&&T||P==="paused"&&x){S.state=P,c.emit("inner-kill-task",{TaskId:I,toState:P});try{var _=S&&S.params&&S.params.UploadData.UploadId}catch{}P==="canceled"&&_&&a.removeUsing(_),m(),x&&(v--,b()),P==="canceled"&&(S.params&&(delete S.params.UploadData,delete S.params.Body,delete S.params),delete S.callback)}y()}};c._addTasks=function(C){o.each(C,function(I){c._addTask(I.api,I.params,I.callback,!0)}),m()};var M=!0;c._addTask=function(C,I,P,S){I=o.formatParams(C,I);var T=o.uuid();I.TaskId=T,I.onTaskReady&&I.onTaskReady(T),I.TaskReady&&(I.TaskReady(T),M&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),M=!1);var x={params:I,callback:P,api:C,index:d.length,id:T,Bucket:I.Bucket,Region:I.Region,Key:I.Key,FilePath:I.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:I._custom},_=I.onHashProgress;I.onHashProgress=function(R){c._isRunningTask(x.id)&&(x.hashPercent=R.percent,_&&_(R),m())};var E=I.onProgress;return I.onProgress=function(R){c._isRunningTask(x.id)&&(x.state==="checking"&&(x.state="uploading"),x.loaded=R.loaded,x.speed=R.speed,x.percent=R.percent,E&&E(R),m())},o.getFileSize(C,I,function(R,O){if(R)return P(o.error(R));h[T]=x,d.push(x),x.size=O,!S&&m(),b(),y()}),T},c._isRunningTask=function(C){var I=h[C];return!!(I&&(I.state==="checking"||I.state==="uploading"))},c.getTaskList=function(){return o.map(d,g)},c.cancelTask=function(C){A(C,"canceled")},c.pauseTask=function(C){A(C,"paused")},c.restartTask=function(C){var I=h[C];I&&(I.state==="paused"||I.state==="error")&&(I.state="waiting",m(),p=Math.min(p,I.index),b())},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(P,S){if(!u){if(typeof P!="function")throw new Error("Beacon not found");u=new P({appkey:"0WEB05PY6MHRGK0U",versionCode:l.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:S,sessionDuration:60*1e3})}return u},c=function(P){return!P||P<0?0:(P/1e3).toFixed(3)},d={getUid:function(){var P=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return P()+P()+"-"+P()+"-"+P()+"-"+P()+"-"+P()+P()+P()},getNetType:function(){if((typeof navigator>"u"?"undefined":s(navigator))==="object"){var P=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(P==null?void 0:P.type)||(P==null?void 0:P.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 P=navigator.userAgent.toLowerCase(),S=/macintosh|mac os x/i.test(navigator.userAgent);return P.indexOf("win32")>=0||P.indexOf("wow32")>=0?"win32":P.indexOf("win64")>=0||P.indexOf("wow64")>=0?"win64":S?"mac":"unknown os"},isMobile:function(){var P=/(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(P))},isAndroid:function(){var P=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(P))},isIOS:function(){var P=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(P))},isOtherMobile:function(){return h&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown device";var P=navigator.userAgent;return P}},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(),b=function(P){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(P)?"UploadTask":P==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(P)?"CopyTask":P};function A(I){return I.replace(/([A-Z])/g,"_$1").toLowerCase()}function M(I){var P={},S=["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"],T=[].concat(S,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),x=I.requestResult==="Success"?S:T;for(var _ in I)if(x.includes(_)){var E=A(_);P[E]=I[_]}return P.request_name=I.realApi?b(I.realApi):I.requestName,P}var C=function(){function I(P){a(this,I);var S=P.parent,T=P.traceId,x=P.bucket,_=P.region,E=P.apiName,R=P.realApi,O=P.httpMethod,D=P.fileKey,B=P.fileSize,$=P.accelerate,U=P.customId,Q=P.delay,Z=P.deepTracker,V=P.Beacon,te=P.clsReporter,ie=x&&x.substr(x.lastIndexOf("-")+1)||"";this.parent=S,this.deepTracker=Z,this.delay=Q,te&&!this.clsReporter&&(this.clsReporter=te),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:l.version,osName:g,networkType:"",requestName:E||"",requestResult:"",realApi:R,bucket:x,region:_,accelerate:$,httpMethod:O,url:"",host:"",httpDomain:"",requestPath:D||"",userAgent:m,networkProtocol:y,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:B||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:T||d.getUid(),appid:ie,partNumber:0,httpRetryTimes:0,customId:U||"",partTime:0},V&&(this.beacon=f(V,Q))}return o(I,[{key:"formatResult",value:function(S,T){var x,_,E,R,O,D,B=new Date().getTime(),$=d.getNetType(),U=S?(S==null?void 0:S.code)||(S==null||(x=S.error)===null||x===void 0?void 0:x.code)||(S==null||(_=S.error)===null||_===void 0?void 0:_.Code):"",Q=S?(S==null?void 0:S.message)||(S==null||(E=S.error)===null||E===void 0?void 0:E.message)||(S==null||(R=S.error)===null||R===void 0?void 0:R.Message):"",Z=Q,V=S?(S==null?void 0:S.resource)||(S==null||(O=S.error)===null||O===void 0?void 0:O.resource)||(S==null||(D=S.error)===null||D===void 0?void 0:D.Resource):"",te=S?S==null?void 0:S.statusCode:T.statusCode,ie=S?(S==null?void 0:S.headers)&&(S==null?void 0:S.headers["x-cos-request-id"]):(T==null?void 0:T.headers)&&(T==null?void 0:T.headers["x-cos-request-id"]),se=S?ie?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=T?T.headers&&T.headers["content-length"]:0);var W=this.params.realApi==="sliceUploadFile",q=this.params.realApi==="sliceCopyFile";if(W||q){var ce=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:ce<0?0:ce.toFixed(3)})}else{var me=B-this.params.startTime,be=this.params.httpEndTime-this.params.httpStartTime,ue=this.params.httpSize/1024/(be/1e3),ve=this.params.md5EndTime-this.params.md5StartTime,Ce=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",c(be)),this.parent.addParamValue("httpFullTime",c(me)),this.parent.addParamValue("httpMd5",c(ve)),this.parent.addParamValue("httpSign",c(Ce)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",c(be))),Object.assign(this.params,{httpFullTime:c(me),httpMd5:c(ve),httpSign:c(Ce),httpTookTime:c(be),httpSpeed:ue<0?0:ue.toFixed(3)})}if(Object.assign(this.params,{networkType:$,requestResult:S?"Failure":"Success",errorType:se,errorCode:U,errorHttpCode:te,errorName:Z,errorMessage:Q,errorServiceName:V,errorRequestId:ie}),S&&(!U||!Q)&&(this.params.fullError=S?JSON.stringify(S):""),this.params.url){try{var ae=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=ae[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(S,T){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(S,T);var x=M(this.params);this.beacon&&this.sendEventsToBeacon(x),this.clsReporter&&this.sendEventsToCLS(x)}}},{key:"setParams",value:function(S){Object.assign(this.params,S)}},{key:"addParamValue",value:function(S,T){this.params[S]=(+this.params[S]+ +T).toFixed(3)}},{key:"sendEventsToBeacon",value:function(S){var T=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(T&&!this.deepTracker)){var x="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(x,S):this.beacon&&this.beacon.onUserAction(x,S)}}},{key:"sendEventsToCLS",value:function(S){var T=this.delay===0;this.clsReporter.log(S,T)}},{key:"generateSubTracker",value:function(S){return Object.assign(S,{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 I(S)}}]),I}();r.exports=C},"./src/util.js":function(r,n,i){(function(a){var o=i("./node_modules/@babel/runtime/helpers/typeof.js");function s(G,F){var j=typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(!j){if(Array.isArray(G)||(j=l(G))||F){j&&(G=j);var K=0,le=function(){};return{s:le,n:function(){return K>=G.length?{done:!0}:{done:!1,value:G[K++]}},e:function(Ee){throw Ee},f:le}}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 de=!0,_e=!1,xe;return{s:function(){j=j.call(G)},n:function(){var Ee=j.next();return de=Ee.done,Ee},e:function(Ee){_e=!0,xe=Ee},f:function(){try{!de&&j.return!=null&&j.return()}finally{if(_e)throw xe}}}}function l(G,F){if(G){if(typeof G=="string")return u(G,F);var j=Object.prototype.toString.call(G).slice(8,-1);if(j==="Object"&&G.constructor&&(j=G.constructor.name),j==="Map"||j==="Set")return Array.from(G);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return u(G,F)}}function u(G,F){(F==null||F>G.length)&&(F=G.length);for(var j=0,K=new Array(F);j<F;j++)K[j]=G[j];return K}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"),b=function(F){var j=p.parse(F);return j},A=function(F){var j=g.build(F);return j};function M(G){return encodeURIComponent(G).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function C(G,F){var j=[];for(var K in G)G.hasOwnProperty(K)&&j.push(F?M(K).toLowerCase():K);return j.sort(function(le,de){return le=le.toLowerCase(),de=de.toLowerCase(),le===de?0:le>de?1:-1})}var I=function(F,j){var K,le,de,_e=[],xe=C(F);for(K=0;K<xe.length;K++)le=xe[K],de=F[le]===void 0||F[le]===null?"":""+F[le],le=j?M(le).toLowerCase():M(le),de=M(de)||"",_e.push(le+"="+de);return _e.join("&")},P=["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"],S=function(F){var j={};for(var K in F){var le=K.toLowerCase();(le.indexOf("x-cos-")>-1||P.indexOf(le)>-1)&&(j[K]=F[K])}return j},T=function(F){F=F||{};var j=F.SecretId,K=F.SecretKey,le=F.KeyTime,de=(F.method||F.Method||"get").toLowerCase(),_e=te(F.Query||F.params||{}),xe=S(te(F.Headers||F.headers||{})),ye=F.Key||"",Ee;F.UseRawKey?Ee=F.Pathname||F.pathname||"/"+ye:(Ee=F.Pathname||F.pathname||ye,Ee.indexOf("/")!==0&&(Ee="/"+Ee));var ke=F.ForceSignHost!==!1;if(!xe.Host&&!xe.host&&F.Bucket&&F.Region&&ke&&(xe.Host=F.Bucket+".cos."+F.Region+".myqcloud.com"),!j)throw new Error("missing param SecretId");if(!K)throw new Error("missing param SecretKey");var Ue=Math.round(vt(F.SystemClockOffset)/1e3)-1,lt=Ue,qt=F.Expires||F.expires;qt===void 0?lt+=900:lt+=qt*1||0;var ti="sha1",or=j,dt=le||Ue+";"+lt,Mn=le||Ue+";"+lt,Kr=C(xe,!0).join(";").toLowerCase(),$a=C(_e,!0).join(";").toLowerCase(),ml=c.HmacSHA1(Mn,K).toString(),rf=[de,Ee,re.obj2str(_e,!0),re.obj2str(xe,!0),""].join(`
  28. `),nf=["sha1",dt,c.SHA1(rf).toString(),""].join(`
  29. `),Le=c.HmacSHA1(nf,ml).toString(),af=["q-sign-algorithm="+ti,"q-ak="+or,"q-sign-time="+dt,"q-key-time="+Mn,"q-header-list="+Kr,"q-url-param-list="+$a,"q-signature="+Le].join("&");return af},x=function(F,j,K){var le=j/8,de=F.slice(K,K+le);return new Uint8Array(de).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[j](de)[0]},_=function(F,j,K,le){var de=F.slice(j,K),_e="";return new Uint8Array(de).forEach(function(xe){_e+=String.fromCharCode(xe)}),le&&(_e=decodeURIComponent(escape(_e))),_e},E=function(F){for(var j={},K=_(F),le={records:[]};F.byteLength;){var de=x(F,32,0),_e=x(F,32,4),xe=de-_e-16,ye=0,Ee;for(F=F.slice(12);ye<_e;){var ke=x(F,8,ye),Ue=_(F,ye+1,ye+1+ke),lt=x(F,16,ye+ke+2),qt=_(F,ye+ke+4,ye+ke+4+lt);j[Ue]=qt,ye+=ke+4+lt}if(j[":event-type"]==="Records")Ee=_(F,ye,ye+xe,!0),le.records.push(Ee);else if(j[":event-type"]==="Stats")Ee=_(F,ye,ye+xe,!0),le.stats=re.xml2json(Ee).Stats;else if(j[":event-type"]==="error"){var ti=j[":error-code"],or=j[":error-message"],dt=new Error(or);dt.message=or,dt.name=dt.code=ti,le.error=dt}F=F.slice(ye+xe+4)}return{payload:le.records.join(""),body:K}},R=function(F){var j=this.options.CopySourceParser;if(j)return j(F);var K=F.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return K?{Bucket:K[1],Region:K[3],Key:K[7]}:null},O=function(){},D=function(F){var j={};for(var K in F)F.hasOwnProperty(K)&&F[K]!==void 0&&F[K]!==null&&(j[K]=F[K]);return j},B=function(F,j){var K,le=new FileReader;FileReader.prototype.readAsBinaryString?(K=FileReader.prototype.readAsBinaryString,le.onload=function(){j(this.result)}):FileReader.prototype.readAsArrayBuffer?K=function(_e){var xe="",ye=new FileReader;ye.onload=function(Ee){for(var ke=new Uint8Array(ye.result),Ue=ke.byteLength,lt=0;lt<Ue;lt++)xe+=String.fromCharCode(ke[lt]);j(xe)},ye.readAsArrayBuffer(_e)}:console.error("FileReader not support readAsBinaryString"),K.call(le,F)},$=function(){var G=function(K,le){K=K.split("."),le=le.split(".");for(var de=0;de<le.length;de++)if(K[de]!==le[de])return parseInt(K[de])>parseInt(le[de])?1:-1;return 0},F=function(K){if(!K)return!1;var le=(K.match(/Chrome\/([.\d]+)/)||[])[1],de=(K.match(/QBCore\/([.\d]+)/)||[])[1],_e=(K.match(/QQBrowser\/([.\d]+)/)||[])[1],xe=le&&G(le,"53.0.2785.116")<0&&de&&G(de,"3.53.991.400")<0&&_e&&G(_e,"9.0.2524.400")<=0||!1;return xe};return F(typeof navigator<"u"&&navigator.userAgent)}(),U=function(F,j,K,le,de){var _e;if(F.slice?_e=F.slice(j,K):F.mozSlice?_e=F.mozSlice(j,K):F.webkitSlice&&(_e=F.webkitSlice(j,K)),le&&$){var xe=new FileReader;xe.onload=function(ye){_e=null,de(new Blob([xe.result]))},xe.readAsArrayBuffer(_e)}else de(_e)},Q=function(F,j,K,le){K=K||O,F?typeof j=="string"?K(re.md5(j,!0)):Blob&&j instanceof Blob?re.getFileMd5(j,function(de,_e){K(_e)},le):K():K()},Z=1024*1024,V=function(F,j,K){var le=F.size,de=0,_e=f.getCtx(),xe=function ye(Ee){if(Ee>=le){var ke=_e.digest("hex");j(null,ke);return}var Ue=Math.min(le,Ee+Z);re.fileSlice(F,Ee,Ue,!1,function(lt){B(lt,function(qt){lt=null,_e=_e.update(qt,!0),de+=qt.length,qt=null,K&&K({loaded:de,total:le,percent:Math.round(de/le*1e4)/1e4}),ye(Ee+Z)})})};xe(0)};function te(G){return be(G,function(F){return o(F)==="object"&&F!==null?te(F):F})}function ie(G,F,j){return G&&F in G?G[F]:j}function se(G,F){return me(F,function(j,K){G[K]=F[K]}),G}function W(G){return G instanceof Array}function q(G,F){for(var j=!1,K=0;K<G.length;K++)if(F===G[K]){j=!0;break}return j}function ce(G){return W(G)?G:[G]}function me(G,F){for(var j in G)G.hasOwnProperty(j)&&F(G[j],j)}function be(G,F){var j=W(G)?[]:{};for(var K in G)G.hasOwnProperty(K)&&(j[K]=F(G[K],K));return j}function ue(G,F){var j=W(G),K=j?[]:{};for(var le in G)G.hasOwnProperty(le)&&F(G[le],le)&&(j?K.push(G[le]):K[le]=G[le]);return K}var ve=function(F){var j,K,le,de="";for(j=0,K=F.length/2;j<K;j++)le=parseInt(F[j*2]+F[j*2+1],16),de+=String.fromCharCode(le);return btoa(de)},Ce=function(){var F=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return F()+F()+"-"+F()+"-"+F()+"-"+F()+"-"+F()+F()+F()},ae=function(F,j){var K=j.Bucket,le=j.Region,de=j.Key,_e=this.options.Domain,xe=!_e||typeof _e=="string"&&_e.indexOf("{Bucket}")>-1,ye=!_e||typeof _e=="string"&&_e.indexOf("{Region}")>-1;if(F.indexOf("Bucket")>-1||F==="deleteMultipleObject"||F==="multipartList"||F==="listObjectVersions"){if(xe&&!K)return"Bucket";if(ye&&!le)return"Region"}else if(F.indexOf("Object")>-1||F.indexOf("multipart")>-1||F==="sliceUploadFile"||F==="abortUploadTask"||F==="uploadFile"){if(xe&&!K)return"Bucket";if(ye&&!le)return"Region";if(!de)return"Key"}return!1},fe=function(F,j){if(j=se({},j),F!=="getAuth"&&F!=="getV4Auth"&&F!=="getObjectUrl"){var K=j.Headers||{};if(j&&o(j)==="object"){(function(){for(var de in j)j.hasOwnProperty(de)&&de.indexOf("x-cos-")>-1&&(K[de]=j[de])})();var le={"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"};re.each(le,function(de,_e){j[de]!==void 0&&(K[_e]=j[de])}),j.Headers=D(K)}}return j},Ae=function(F,j){return function(K,le){var de=this;typeof K=="function"&&(le=K,K={}),K=fe(F,K);var _e;if(de.options.EnableReporter)if(K.calledBySdk==="sliceUploadFile"||K.calledBySdk==="sliceCopyFile")_e=K.tracker&&K.tracker.generateSubTracker({apiName:F});else if(["uploadFile","uploadFiles"].includes(F))_e=null;else{var xe=0;K.Body&&(xe=typeof K.Body=="string"?K.Body.length:K.Body.size||K.Body.byteLength||0);var ye=de.options.UseAccelerate||typeof de.options.Domain=="string"&&de.options.Domain.includes("accelerate.");_e=new y({Beacon:de.options.BeaconReporter,clsReporter:de.options.ClsReporter,bucket:K.Bucket,region:K.Region,apiName:F,realApi:F,accelerate:ye,fileKey:K.Key,fileSize:xe,deepTracker:de.options.DeepTracker,customId:de.options.CustomId,delay:de.options.TrackerDelay})}K.tracker=_e;var Ee=function(dt){return dt&&dt.headers&&(dt.headers["x-cos-request-id"]&&(dt.RequestId=dt.headers["x-cos-request-id"]),dt.headers["x-ci-request-id"]&&(dt.RequestId=dt.headers["x-ci-request-id"]),dt.headers["x-cos-version-id"]&&(dt.VersionId=dt.headers["x-cos-version-id"]),dt.headers["x-cos-delete-marker"]&&(dt.DeleteMarker=dt.headers["x-cos-delete-marker"])),dt},ke=function(dt,Mn){_e&&_e.report(dt,Mn),le&&le(Ee(dt),Ee(Mn))},Ue=function(){if(F!=="getService"&&F!=="abortUploadTask"){var dt=ae.call(de,F,K);if(dt)return"missing param "+dt;if(K.Region){if(de.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(K.Region))return"Region format error."}else{if(K.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(K.Region))return"Region format error."}!de.options.CompatibilityMode&&K.Region.indexOf("-")===-1&&K.Region!=="yfb"&&K.Region!=="default"&&K.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(K.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(K.Bucket))if(K.AppId)K.Bucket=K.Bucket+"-"+K.AppId;else if(de.options.AppId)K.Bucket=K.Bucket+"-"+de.options.AppId;else return'Bucket should format as "test-1250000000".';K.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete K.AppId)}!de.options.UseRawKey&&K.Key&&K.Key.substr(0,1)==="/"&&(K.Key=K.Key.substr(1))}},lt=Ue(),qt=["getAuth","getObjectUrl"].includes(F);if(typeof Promise=="function"&&!qt&&!le)return new Promise(function(or,dt){if(le=function(Kr,$a){Kr?dt(Kr):or($a)},lt)return ke(re.error(new Error(lt)));j.call(de,K,ke)});if(lt)return ke(re.error(new Error(lt)));var ti=j.call(de,K,ke);if(qt)return ti}},Re=function(F,j){var K=this,le=0,de=0,_e=Date.now(),xe,ye;function Ee(){if(ye=0,j&&typeof j=="function"){xe=Date.now();var ke=Math.max(0,Math.round((de-le)/((xe-_e)/1e3)*100)/100)||0,Ue;de===0&&F===0?Ue=1:Ue=Math.floor(de/F*100)/100||0,_e=xe,le=de;try{j({loaded:de,total:F,speed:ke,percent:Ue})}catch{}}}return function(ke,Ue){if(ke&&(de=ke.loaded,F=ke.total),Ue)clearTimeout(ye),Ee();else{if(ye)return;ye=setTimeout(Ee,K.options.ProgressInterval)}}},st=function(F,j,K){var le;if(typeof j.Body=="string"?j.Body=new Blob([j.Body],{type:"text/plain"}):j.Body instanceof ArrayBuffer&&(j.Body=new Blob([j.Body])),j.Body&&(j.Body instanceof Blob||j.Body.toString()==="[object File]"||j.Body.toString()==="[object Blob]"))le=j.Body.size;else{K(re.error(new Error("params body format error, Only allow File|Blob|String.")));return}j.ContentLength=le,K(null,le)},vt=function(F){return Date.now()+(F||0)},mt=function(F,j){var K=F;return F.message=F.message||null,typeof j=="string"?(F.error=j,F.message=j):o(j)==="object"&&j!==null&&(se(F,j),(j.code||j.name)&&(F.code=j.code||j.name),j.message&&(F.message=j.message),j.stack&&(F.stack=j.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(F,"name",{writable:!0,enumerable:!1}),Object.defineProperty(F,"message",{enumerable:!0})),F.name=j&&j.name||F.name||F.code||"Error",F.code||(F.code=F.name),F.error||(F.error=te(K)),F},Fe=function(){return(typeof globalThis>"u"?"undefined":o(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Kt=function(){return(typeof window>"u"?"undefined":o(window))!=="object"&&(typeof a>"u"?"undefined":o(a))==="object"&&!0&&!Fe()},Lt=function(F){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(F)},gr=function(){if((typeof navigator>"u"?"undefined":o(navigator))!=="object")return!1;var G=navigator.userAgent,F=!!G.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return F}(),hn=function(){return(typeof navigator>"u"?"undefined":o(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Jn=function(F,j){var K=m.encode(F);return j&&(K=K.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),K},qn=function(F){return F?m.decode(F):""},ei=function(F){var j=F.split("/"),K=[],le=s(j),de;try{for(le.s();!(de=le.n()).done;){var _e=de.value;_e===".."?K.length&&K.pop():_e.length&&_e!=="."&&K.push(_e)}}catch(xe){le.e(xe)}finally{le.f()}return"/"+K.join("/")},ne=function(F){var j;if(F&&typeof F=="string"){var K=F.trim(),le=K.indexOf("<")===0,de=K.indexOf("{")===0;if(le)j=re.xml2json(F)||{};else if(de)try{var _e=F.replace(/\n/g," "),xe=JSON.parse(_e);Object.prototype.toString.call(xe)==="[object Object]"?j=xe:j=F}catch{j=F}else j=F}else j=F||{};return j},re={noop:O,formatParams:fe,apiWrapper:Ae,xml2json:b,json2xml:A,md5:f,clearKey:D,fileSlice:U,getBodyMd5:Q,getFileMd5:V,b64:ve,extend:se,isArray:W,isInArray:q,makeArray:ce,each:me,map:be,filter:ue,clone:te,attr:ie,uuid:Ce,camSafeUrlEncode:M,throttleOnProgress:Re,getFileSize:st,getSkewTime:vt,error:mt,obj2str:I,getAuth:T,parseSelectPayload:E,getSourceParams:R,isBrowser:!0,isNode:Kt,isCIHost:Lt,isIOS_QQ:gr&&hn,encodeBase64:Jn,decodeBase64:qn,simplifyPath:ei,readAsBinaryString:B,parseResBody:ne};r.exports=re}).call(this,i("./node_modules/process/browser.js"))}})})})(G0);var MI=G0.exports;const RI=U0(MI),j0="daya-online-1303457149",Op="tencent";async function kp(t,e,r,n=!0,i){i||(i={isLoading:!0}),i.isLoading&&ai.loading(!0,i.text||"资源上传中"),n&&(t=OI(t));const a=await DI(t,r);if(a.code===200)try{const o=await LI(a.data.signature,{fileName:t,file:e,filePath:r});return i.isLoading&&ai.loading(!1),o.statusCode===200?o.Location.includes("http")?o.Location:`https://${o.Location}`:Promise.reject("")}catch{return i.isLoading&&ai.loading(!1),Promise.reject("")}else return i.isLoading&&ai.loading(!1),Promise.reject("")}const DI=async(t,e)=>{const r=`pptList/${e||"errPath/"}`+t;return eI(tI,{postData:{key:r},pluginName:Op,bucketName:j0,filename:r},{pluginName:Op})},LI=(t,e)=>new RI({Domain:"https://oss.dayaedu.com",Protocol:"https",getAuthorization:async(n,i)=>{i({Authorization:t})}}).uploadFile({Bucket:j0,Region:"ap-nanjing",Key:`pptList/${e.filePath||"errPath/"}${e.fileName}`,Body:e.file,SliceSize:1024*1024*500,onProgress:function(n){}});function OI(t){const e=t.lastIndexOf("."),r=t.substring(0,e),n=t.substring(e);return`${r}_${Date.now()}${n}`}function kI(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 BI=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function ui(t){const e=[];for(let r=0,n=t.length;r<n;r++)e.push(t[r]);return e}function Nu(t,e){const n=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function NI(t){const e=Nu(t,"border-left-width"),r=Nu(t,"border-right-width");return t.clientWidth+e+r}function FI(t){const e=Nu(t,"border-top-width"),r=Nu(t,"border-bottom-width");return t.clientHeight+e+r}function W0(t,e={}){const r=e.width||NI(t),n=e.height||FI(t);return{width:r,height:n}}function $I(){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 Fr=16384;function UI(t){(t.width>Fr||t.height>Fr)&&(t.width>Fr&&t.height>Fr?t.width>t.height?(t.height*=Fr/t.width,t.width=Fr):(t.width*=Fr/t.height,t.height=Fr):t.width>Fr?(t.height*=Fr/t.width,t.width=Fr):(t.width*=Fr/t.height,t.height=Fr))}function zI(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 Fu(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 HI(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function VI(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),HI(i)}const Pr=(t,e)=>{if(t instanceof e)return!0;const r=Object.getPrototypeOf(t);return r===null?!1:r.constructor.name===e.name||Pr(r,e)};function GI(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function jI(t){return ui(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function WI(t,e,r){const n=`.${t}:${e}`,i=r.cssText?GI(r):jI(r);return document.createTextNode(`${n}{${i}}`)}function Bp(t,e,r){const n=window.getComputedStyle(t,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const a=BI();try{e.className=`${e.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(WI(a,r,n)),e.appendChild(o)}function XI(t,e){Bp(t,e,":before"),Bp(t,e,":after")}const Np="application/font-woff",Fp="image/jpeg",KI={woff:Np,woff2:Np,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Fp,jpeg:Fp,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function YI(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function uv(t){const e=YI(t).toLowerCase();return KI[e]||""}function ZI(t){return t.split(/,/)[1]}function Xd(t){return t.search(/^(data:)/)!==-1}function QI(t,e){return`data:${e};base64,${t}`}async function X0(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 uf={};function JI(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 cv(t,e,r){const n=JI(t,e,r.includeQueryParams);if(uf[n]!=null)return uf[n];r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{const a=await X0(t,r.fetchRequestInit,({res:o,result:s})=>(e||(e=o.headers.get("Content-Type")||""),ZI(s)));i=QI(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 uf[n]=i,i}async function qI(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):Fu(e)}async function eA(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 Fu(s)}const r=t.poster,n=uv(r),i=await cv(r,n,e);return Fu(i)}async function tA(t){var e;try{if(!((e=t==null?void 0:t.contentDocument)===null||e===void 0)&&e.body)return await Sc(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)}async function rA(t,e){return Pr(t,HTMLCanvasElement)?qI(t):Pr(t,HTMLVideoElement)?eA(t,e):Pr(t,HTMLIFrameElement)?tA(t):t.cloneNode(!1)}const nA=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function iA(t,e,r){var n,i;let a=[];return nA(t)&&t.assignedNodes?a=ui(t.assignedNodes()):Pr(t,HTMLIFrameElement)&&(!((n=t.contentDocument)===null||n===void 0)&&n.body)?a=ui(t.contentDocument.body.childNodes):a=ui(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),a.length===0||Pr(t,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Sc(s,r)).then(l=>{l&&e.appendChild(l)}),Promise.resolve()),e}function aA(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):ui(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`),Pr(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 oA(t,e){Pr(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),Pr(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function sA(t,e){if(Pr(t,HTMLSelectElement)){const r=e,n=Array.from(r.children).find(i=>t.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function lA(t,e){return Pr(e,Element)&&(aA(t,e),XI(t,e),oA(t,e),sA(t,e)),e}async function uA(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 Sc(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 Sc(t,e,r){return!r&&e.filter&&!e.filter(t)?null:Promise.resolve(t).then(n=>rA(n,e)).then(n=>iA(t,n,e)).then(n=>lA(t,n)).then(n=>uA(n,e))}const K0=/url\((['"]?)([^'"]+?)\1\)/g,cA=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,fA=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function dA(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function hA(t){const e=[];return t.replace(K0,(r,n,i)=>(e.push(i),r)),e.filter(r=>!Xd(r))}async function vA(t,e,r,n,i){try{const a=r?kI(e,r):e,o=uv(e);let s;return i||(s=await cv(a,o,n)),t.replace(dA(e),`$1${s}$3`)}catch{}return t}function pA(t,{preferredFontFormat:e}){return e?t.replace(fA,r=>{for(;;){const[n,,i]=cA.exec(r)||[];if(!i)return"";if(i===e)return`src: ${n};`}}):t}function Y0(t){return t.search(K0)!==-1}async function Z0(t,e,r){if(!Y0(t))return t;const n=pA(t,r);return hA(n).reduce((a,o)=>a.then(s=>vA(s,o,e,r)),Promise.resolve(n))}async function wl(t,e,r){var n;const i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(t);if(i){const a=await Z0(i,null,r);return e.style.setProperty(t,a,e.style.getPropertyPriority(t)),!0}return!1}async function gA(t,e){await wl("background",t,e)||await wl("background-image",t,e),await wl("mask",t,e)||await wl("mask-image",t,e)}async function mA(t,e){const r=Pr(t,HTMLImageElement);if(!(r&&!Xd(t.src))&&!(Pr(t,SVGImageElement)&&!Xd(t.href.baseVal)))return;const n=r?t.src:t.href.baseVal,i=await cv(n,uv(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 yA(t,e){const n=ui(t.childNodes).map(i=>Q0(i,e));await Promise.all(n).then(()=>t)}async function Q0(t,e){Pr(t,Element)&&(await gA(t,e),await mA(t,e),await yA(t,e))}function SA(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 $p={};async function Up(t){let e=$p[t];if(e!=null)return e;const n=await(await fetch(t)).text();return e={url:t,cssText:n},$p[t]=e,e}async function zp(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),X0(s,e.fetchRequestInit,({result:l})=>(r=r.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>r)}function Hp(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 bA(t,e){const r=[],n=[];return t.forEach(i=>{if("cssRules"in i)try{ui(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,u=Up(l).then(f=>zp(f,e)).then(f=>Hp(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(Up(i.href).then(s=>zp(s,e)).then(s=>Hp(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{ui(i.cssRules||[]).forEach(a=>{r.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),r))}function CA(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Y0(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=ui(t.ownerDocument.styleSheets),n=await bA(r,e);return CA(n)}async function wA(t,e){const r=await xA(t,e);return(await Promise.all(r.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return Z0(i.cssText,a,e)}))).join(`
  30. `)}async function TA(t,e){const r=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await wA(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 IA(t,e={}){const{width:r,height:n}=W0(t,e),i=await Sc(t,e,!0);return await TA(i,e),await Q0(i,e),SA(i,e),await VI(i,r,n)}async function AA(t,e={}){const{width:r,height:n}=W0(t,e),i=await IA(t,e),a=await Fu(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=e.pixelRatio||$I(),u=e.canvasWidth||r,f=e.canvasHeight||n;return o.width=u*l,o.height=f*l,e.skipAutoScale||UI(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 AA(t,e);return await zI(r)}const EA=rI("pptWork",{state:()=>({id:iI().query.id,coverImg:"",jsonUrl:"",isSave:!1}),actions:{async initPPTData(){if(this.id){ai.loading(!0,"资源加载中,请稍等...");const t=await Mp(wI,this.id,vo.pptResourcesType);if(t.code===200){const{dataJson:e,chapterLessonCoursewareName:r}=t.data||{},{coverImg:n,jsonUrl:i}=JSON.parse(e);if(this.coverImg=n||"",zt().setTitle(r),i){const o=await AI(i);o.code===200&&_I(o.data)}}else aI.replace("/err");ai.loading(!1)}},async updatePPT(){ai.loading(!0,"课件保存中,请稍等..."),await this.updateCoverImg();const{blob:t}=EI();kp(`${this.id}ppt`,t,`${this.id}/`,!1,{isLoading:!1}).then(e=>{const r=Date.now();Mp(vo.fromType==="PLATFORM"?II:TI,{id:this.id,dataJson:JSON.stringify({coverImg:this.coverImg+`?v=_${r}`,jsonUrl:e+`?v=_${r}`})}).then(n=>{n.code===200&&(this.isSave=!0,Rp({showClose:!0,message:"保存成功!",type:"success"})),ai.loading(!1)})}).catch(()=>{ai.loading(!1),Rp({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 kp(`${this.id}coverImg`,e,`${this.id}/`,!1,{isLoading:!1});r&&(this.coverImg=r)}}}catch(t){console.log(t,"上传coverImg错误")}}}}),v$=()=>EA(nI),J0=()=>{const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},q0=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},Kd=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),bc=()=>{const t=yc(),e=zt(),r=()=>{J0(),t.setScreening(!0)};return{enterScreening:r,enterScreeningFromStart:()=>{e.updateSlideIndex(0),r()},exitScreening:()=>{t.setScreening(!1),Kd()&&q0()}}},PA=Xe({__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=ge(),a=ge(),o=ge(),s=ge(!1),l=Me(()=>r.contentStyle||{});return hr(()=>r.value,()=>{i.value&&(r.value?i.value.show():i.value.hide())}),un(()=>{i.value&&i.value.destroy()}),xr(()=>{i.value=oI(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)=>(oe(),Se("div",{class:ht(["popover",{center:u.center}]),ref_key:"triggerRef",ref:a},[Y("div",{class:"popover-content",style:Ie(l.value),ref_key:"contentRef",ref:o},[s.value?Ns(u.$slots,"content",{key:0},void 0,!0):je("",!0)],4),Ns(u.$slots,"default",{},void 0,!0)],2))}}),cf=tt(PA,[["__scopeId","data-v-e147331a"]]),Ba=Symbol(),ol=Symbol(),p$=Symbol(),Cc=t=>({shadowStyle:Me(()=>{if(t.value){const{h:r,v:n,blur:i,color:a}=t.value;return`${r}px ${n}px ${i}px ${a}`}return""})}),e1=(t,e)=>({flipStyle:Me(()=>{let n="";return t.value&&e.value?n="rotateX(180deg) rotateY(180deg)":e.value?n="rotateX(180deg)":t.value&&(n="rotateY(180deg)"),n})});var t1=(t=>(t.RECT="rect",t.ELLIPSE="ellipse",t.POLYGON="polygon",t))(t1||{});const Vp={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`}},r1=t=>{const e=Me(()=>{let n=Vp.rect;if(t.value.clip){const i=t.value.clip.shape||t1.RECT;n=Vp[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=Me(()=>{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}},MA=t=>({filter:Me(()=>{if(!t.value)return"";let r="";const n=Object.keys(t.value);for(const i of n)r+=`${i}(${t.value[i]}) `;return r})}),sl=t=>{const e=Me(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=Me(()=>{var a;return((a=t.value)==null?void 0:a.style)||"solid"}),n=Me(()=>{var a;return((a=t.value)==null?void 0:a.color)||"#5b9bd5"}),i=Me(()=>{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}},RA=["width","height"],DA=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],LA=Xe({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:a.width,height:a.height},[Y("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:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,DA)],8,RA)):je("",!0)}}),OA=tt(LA,[["__scopeId","data-v-801a8465"]]),kA=["width","height"],BA=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],NA=Xe({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:a.width,height:a.height},[Y("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:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,BA)],8,kA)):je("",!0)}}),FA=tt(NA,[["__scopeId","data-v-2528d7e2"]]),$A=["width","height"],UA=["d","stroke","stroke-width","stroke-dasharray"],zA=Xe({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:a.width,height:a.height},[Y("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:a.createPath(a.width,a.height),stroke:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,UA)],8,$A)):je("",!0)}}),HA=tt(zA,[["__scopeId","data-v-04ee0d7b"]]),VA={class:"image-outline"},GA=Xe({__name:"index",props:{elementInfo:{}},setup(t){const e=t,r=Me(()=>e.elementInfo),{clipShape:n}=r1(r);return(i,a)=>(oe(),Se("div",VA,[he(n).type==="rect"?(oe(),Je(OA,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:he(n).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):he(n).type==="ellipse"?(oe(),Je(FA,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):he(n).type==="polygon"?(oe(),Je(HA,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:he(n).createPath},null,8,["width","height","outline","createPath"])):je("",!0)]))}}),jA=["width","height"],WA=["d","stroke","stroke-width","stroke-dasharray"],XA=Xe({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=sl(al(e,"outline"));return(a,o)=>a.outline?(oe(),Se("svg",{key:0,class:"element-outline",overflow:"visible",width:a.width,height:a.height},[Y("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:he(n),"stroke-width":he(r),"stroke-dasharray":he(i)},null,8,WA)],8,jA)):je("",!0)}}),n1=tt(XA,[["__scopeId","data-v-813f8c74"]]),KA=["id","gradientTransform"],YA=["offset","stop-color"],ZA=["id"],QA=["offset","stop-color"],JA=Xe({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(t){return(e,r)=>e.type==="linear"?(oe(),Se("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${e.rotate},0.5,0.5)`},[(oe(!0),Se(Yt,null,Vr(e.colors,(n,i)=>(oe(),Se("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,YA))),128))],8,KA)):(oe(),Se("radialGradient",{key:1,id:e.id},[(oe(!0),Se(Yt,null,Vr(e.colors,(n,i)=>(oe(),Se("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,QA))),128))],8,ZA))}}),qA=["id","markerWidth","markerHeight","refX","refY"],e_=["d","fill","transform"],Gp=Xe({__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=Me(()=>r[e.type]),a=Me(()=>n[`${e.type}-${e.position}`]||0),o=Me(()=>e.baseSize<2?2:e.baseSize);return(s,l)=>(oe(),Se("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},[Y("path",{d:i.value,fill:s.color,transform:`scale(${o.value*.3}, ${o.value*.3}) rotate(${a.value}, 5, 5)`},null,8,e_)],8,qA))}}),t_=({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 Yd=function(t,e){return Yd=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])},Yd(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");Yd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var r_=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),n_=function(){function t(){this.browser=new r_,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}(),Ct=new n_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ct.wxa=!0,Ct.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ct.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ct.node=!0,Ct.svgSupported=!0):i_(navigator.userAgent,Ct);function i_(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 fv=12,i1="sans-serif",Ui=fv+"px "+i1,a_=20,o_=100,s_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function l_(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)-a_)/o_;e[n]=i}return e}var u_=l_(s_),ll={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=ll.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Ui),t.measureText(r);r=r||"",n=n||Ui;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||fv,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=u_[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}},a1=zi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),o1=zi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ul=Object.prototype.toString,xc=Array.prototype,c_=xc.forEach,f_=xc.filter,dv=xc.slice,d_=xc.map,jp=(function(){}).constructor,Tl=jp?jp.prototype:null,hv="__proto__",h_=2311;function s1(){return h_++}function l1(){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=ul.call(t);if(r==="[object Array]"){if(!ms(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=pt(t[n])}}else if(o1[r]){if(!ms(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(!a1[r]&&!ms(t)&&!Zd(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==hv&&(e[o]=pt(t[o]))}return e}function xt(t,e,r){if(!We(e)||!We(t))return r?pt(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==hv){var i=t[n],a=e[n];We(a)&&We(i)&&!$e(a)&&!$e(i)&&!Zd(a)&&!Zd(i)&&!Wp(a)&&!Wp(i)&&!ms(a)&&!ms(i)?xt(i,a,r):(r||!(n in t))&&(t[n]=pt(e[n]))}return t}function Te(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==hv&&(t[r]=e[r]);return t}function ft(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 Pt(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 v_(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 An(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 ft(t,e)}function Lr(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function J(t,e,r){if(t&&e)if(t.forEach&&t.forEach===c_)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 Oe(t,e,r){if(!t)return[];if(!e)return pv(t);if(t.map&&t.map===d_)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 zi(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 fr(t,e,r){if(!t)return[];if(!e)return pv(t);if(t.filter&&t.filter===f_)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 p_(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 g_(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=Tl&&nt(Tl.bind)?Tl.call.bind(Tl.bind):g_;function Hr(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):ul.call(t)==="[object Array]"}function nt(t){return typeof t=="function"}function He(t){return typeof t=="string"}function m_(t){return ul.call(t)==="[object String]"}function Et(t){return typeof t=="number"}function We(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Wp(t){return!!a1[ul.call(t)]}function Or(t){return!!o1[ul.call(t)]}function Zd(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function vv(t){return t.colorStops!=null}function $u(t){return t!==t}function Fs(){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 Ke(t,e){return t??e}function gs(t,e,r){return t??e??r}function pv(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return dv.apply(t,e)}function u1(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 Xn(t,e){if(!t)throw new Error(e)}function Pi(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var c1="__ec_primitive__";function Qd(t){t[c1]=!0}function ms(t){return t[c1]}var y_=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 S_(){return f1?new Map:new y_}var b_=function(){function t(e){var r=$e(e);this.data=S_();var n=this;e instanceof t?e.each(i):e&&J(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 b_(t)}function C_(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 wc(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&Te(r,e),r}function $s(t,e){return t.hasOwnProperty(e)}function Gr(){}var Su=180/Math.PI;function Eo(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function x_(t){return[t[0],t[1]]}function Xp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function w_(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function T_(t){return Math.sqrt(I_(t))}function I_(t){return t[0]*t[0]+t[1]*t[1]}function ff(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function A_(t,e){var r=T_(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Jd(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var qd=Jd;function __(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var po=__;function df(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 ln(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 lo(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function uo(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var za=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),E_=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 za(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 za(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 za(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new za(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new za(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new za(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),hi=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}(),P_=Math.log(2);function eh(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)/P_);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]*eh(t,e-1,f,u,i|v,a),h++)}return a[o]=c,c}function M_(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=eh(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)*eh(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 Kp="___zrEVENTSAVED";function R_(t,e,r,n,i){if(e.getBoundingClientRect&&Ct.domSupported&&!d1(e)){var a=e[Kp]||(e[Kp]={}),o=D_(e,a),s=L_(o,a);if(s)return s(t,r,n),!0}return!1}function D_(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 L_(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]=M_(o,s))}function d1(t){return t.nodeName.toUpperCase()==="CANVAS"}var O_=/([&<>"'])/g,k_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function B_(t){return t==null?"":(t+"").replace(O_,function(e,r){return k_[r]})}var N_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hf=[],F_=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function th(t,e,r,n){return r=r||{},n?Yp(t,e,r):F_&&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):Yp(t,e,r),r}function Yp(t,e,r){if(Ct.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(d1(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(R_(hf,t,n,i)){r.zrX=hf[0],r.zrY=hf[1];return}}r.zrX=r.zrY=0}function gv(t){return t||window.event}function Sn(t,e,r){if(e=gv(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&&th(t,o,e,r)}else{th(t,e,e,r);var a=$_(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&N_.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function $_(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 U_(t,e,r,n){t.addEventListener(e,r,n)}function z_(t,e,r,n){t.removeEventListener(e,r,n)}var H_=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},V_=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=th(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 vf)if(vf.hasOwnProperty(r)){var n=vf[r](this._track,e);if(n)return n}},t}();function Zp(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function G_(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var vf={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=Zp(n)/Zp(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=G_(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function ys(){return[1,0,0,1,0,0]}function mv(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function j_(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 go(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 Qp(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 h1(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 W_(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 yv(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 Ze=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}(),Il=Math.min,Al=Math.max,qi=new Ze,ea=new Ze,ta=new Ze,ra=new Ze,ko=new Ze,Bo=new Ze,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=Il(e.x,this.x),n=Il(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Al(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Al(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=ys();return Qp(a,a,[-r.x,-r.y]),W_(a,a,[n,i]),Qp(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),b=Math.min(p,g),A=Math.min(m,y);a<l||u<i?b>v&&(v=b,p<g?Ze.set(Bo,-p,0):Ze.set(Bo,g,0)):b<h&&(h=b,p<g?Ze.set(ko,p,0):Ze.set(ko,-g,0)),s<f||c<o?A>v&&(v=A,m<y?Ze.set(Bo,0,-m):Ze.set(Bo,0,y)):b<h&&(h=b,m<y?Ze.set(ko,0,m):Ze.set(ko,0,-y))}return r&&Ze.copy(r,d?ko:Bo),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}qi.x=ta.x=r.x,qi.y=ra.y=r.y,ea.x=ra.x=r.x+r.width,ea.y=ta.y=r.y+r.height,qi.transform(n),ra.transform(n),ea.transform(n),ta.transform(n),e.x=Il(qi.x,ea.x,ta.x,ra.x),e.y=Il(qi.y,ea.y,ta.y,ra.y);var l=Al(qi.x,ea.x,ta.x,ra.x),u=Al(qi.y,ea.y,ta.y,ra.y);e.width=l-e.x,e.height=u-e.y},t}(),v1="silent";function X_(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:K_}}function K_(){H_(this.event)}var Y_=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}(hi),No=function(){function t(e,r){this.x=e,this.y=r}return t}(),Z_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pf=new It(0,0,0,0),p1=function(t){De(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new No(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Y_,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new E_(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(J(Z_,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=g1(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 No(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 No(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=X_(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 No(r,n);if(Jp(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)&&(pf.copy(d.getBoundingRect()),d.transform&&pf.applyTransform(d.transform),pf.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),b=n+g*Math.sin(m);if(Jp(s,o,y,b,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new V_);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 No;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(hi);J(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){p1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=g1(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||qd(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function Q_(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?v1:!0}return!1}function Jp(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=Q_(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==v1)){e.target=o;break}}}function g1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var m1=32,Fo=7;function J_(t){for(var e=0;t>=m1;)e|=t&1,t>>=1;return t+e}function qp(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++;q_(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function q_(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function eg(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 gf(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 mf(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 eE(t,e){var r=Fo,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=mf(t[g],t,v,p,0,e);v+=y,p-=y,p!==0&&(m=gf(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,b=p,A=h;if(t[A++]=t[b++],--g===0){for(m=0;m<v;m++)t[A+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)t[A+m]=t[b+m];t[A+g]=o[y];return}for(var M=r,C,I,P;;){C=0,I=0,P=!1;do if(e(t[b],o[y])<0){if(t[A++]=t[b++],I++,C=0,--g===0){P=!0;break}}else if(t[A++]=o[y++],C++,I=0,--v===1){P=!0;break}while((C|I)<M);if(P)break;do{if(C=mf(t[b],o,y,v,0,e),C!==0){for(m=0;m<C;m++)t[A+m]=o[y+m];if(A+=C,y+=C,v-=C,v<=1){P=!0;break}}if(t[A++]=t[b++],--g===0){P=!0;break}if(I=gf(o[y],t,b,g,0,e),I!==0){for(m=0;m<I;m++)t[A+m]=t[b+m];if(A+=I,b+=I,g-=I,g===0){P=!0;break}}if(t[A++]=o[y++],--v===1){P=!0;break}M--}while(C>=Fo||I>=Fo);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),v===1){for(m=0;m<g;m++)t[A+m]=t[b+m];t[A+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[A+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,b=g-1,A=p+g-1,M=0,C=0;if(t[A--]=t[y--],--v===0){for(M=A-(g-1),m=0;m<g;m++)t[M+m]=o[m];return}if(g===1){for(A-=v,y-=v,C=A+1,M=y+1,m=v-1;m>=0;m--)t[C+m]=t[M+m];t[A]=o[b];return}for(var I=r;;){var P=0,S=0,T=!1;do if(e(o[b],t[y])<0){if(t[A--]=t[y--],P++,S=0,--v===0){T=!0;break}}else if(t[A--]=o[b--],S++,P=0,--g===1){T=!0;break}while((P|S)<I);if(T)break;do{if(P=v-mf(o[b],t,h,v,v-1,e),P!==0){for(A-=P,y-=P,v-=P,C=A+1,M=y+1,m=P-1;m>=0;m--)t[C+m]=t[M+m];if(v===0){T=!0;break}}if(t[A--]=o[b--],--g===1){T=!0;break}if(S=g-gf(t[y],o,0,g,g-1,e),S!==0){for(A-=S,b-=S,g-=S,C=A+1,M=b+1,m=0;m<S;m++)t[C+m]=o[M+m];if(g<=1){T=!0;break}}if(t[A--]=t[y--],--v===0){T=!0;break}I--}while(P>=Fo||S>=Fo);if(T)break;I<0&&(I=0),I+=2}if(r=I,r<1&&(r=1),g===1){for(A-=v,y-=v,C=A+1,M=y+1,m=v-1;m>=0;m--)t[C+m]=t[M+m];t[A]=o[b]}else{if(g===0)throw new Error;for(M=A-(g-1),m=0;m<g;m++)t[M+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function bu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<m1){a=qp(t,r,n,e),eg(t,r,n,r+a,e);return}var o=eE(t,e),s=J_(i);do{if(a=qp(t,r,n,e),a<s){var l=i;l>s&&(l=s),eg(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 $n=1,is=2,io=4,tg=!1;function yf(){tg||(tg=!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 tE=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,bu(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|=$n),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)&&(yf(),f.z=0),isNaN(f.z2)&&(yf(),f.z2=0),isNaN(f.zlevel)&&(yf(),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=Pt(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}(),rh;rh=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ss={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-Ss.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?Ss.bounceIn(t*2)*.5:Ss.bounceOut(t*2-1)*.5+.5}},_l=Math.pow,Bi=Math.sqrt,Uu=1e-8,y1=1e-4,ng=Bi(3),El=1/3,Un=Eo(),nn=Eo(),mo=Eo();function Mi(t){return t>-Uu&&t<Uu}function S1(t){return t>Uu||t<-Uu}function ar(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 ig(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function zu(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(Mi(f)&&Mi(c))if(Mi(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(Mi(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=Bi(p),b=f*s+1.5*o*(-c+y),A=f*s+1.5*o*(-c-y);b<0?b=-_l(-b,El):b=_l(b,El),A<0?A=-_l(-A,El):A=_l(A,El);var v=(-s-(b+A))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var M=(2*f*s-3*o*c)/(2*Bi(f*f*f)),C=Math.acos(M)/3,I=Bi(f),P=Math.cos(C),v=(-s-2*I*P)/(3*o),m=(-s+I*(P+ng*Math.sin(C)))/(3*o),S=(-s+I*(P-ng*Math.sin(C)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),S>=0&&S<=1&&(a[h++]=S)}}return h}function b1(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(Mi(o)){if(S1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Mi(f))i[0]=-a/(2*o);else if(f>0){var c=Bi(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 Hu(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 rE(t,e,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,p,g,m;Un[0]=l,Un[1]=u;for(var y=0;y<1;y+=.05)nn[0]=ar(t,r,i,o,y),nn[1]=ar(e,n,a,s,y),g=po(Un,nn),g<h&&(c=y,h=g);h=1/0;for(var b=0;b<32&&!(d<y1);b++)v=c-d,p=c+d,nn[0]=ar(t,r,i,o,v),nn[1]=ar(e,n,a,s,v),g=po(nn,Un),v>=0&&g<h?(c=v,h=g):(mo[0]=ar(t,r,i,o,p),mo[1]=ar(e,n,a,s,p),m=po(mo,Un),p<=1&&m<h?(c=p,h=m):d*=.5);return Bi(h)}function nE(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=ar(t,r,i,o,v),g=ar(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 _r(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function ag(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function iE(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Mi(a)){if(S1(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Mi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Bi(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 C1(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Vu(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 aE(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Un[0]=o,Un[1]=s;for(var d=0;d<1;d+=.05){nn[0]=_r(t,r,i,d),nn[1]=_r(e,n,a,d);var h=po(Un,nn);h<c&&(u=d,c=h)}c=1/0;for(var v=0;v<32&&!(f<y1);v++){var p=u-f,g=u+f;nn[0]=_r(t,r,i,p),nn[1]=_r(e,n,a,p);var h=po(nn,Un);if(p>=0&&h<c)u=p,c=h;else{mo[0]=_r(t,r,i,g),mo[1]=_r(e,n,a,g);var m=po(mo,Un);g<=1&&m<c?(u=g,c=m):f*=.5}}return Bi(c)}function oE(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=_r(t,r,i,d),v=_r(e,n,a,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var sE=/cubic-bezier\(([0-9,\.e ]+)\)/;function Sv(t){var e=t&&sE.exec(t);if(e){var r=e[1].split(","),n=+Pi(r[0]),i=+Pi(r[1]),a=+Pi(r[2]),o=+Pi(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:zu(0,n,a,1,l,s)&&ar(0,i,o,1,s[0])}}}var lE=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||Gr,this.ondestroy=e.ondestroy||Gr,this.onrestart=e.onrestart||Gr,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:Ss[e]||Sv(e)},t}(),x1=function(){function t(e){this.value=e}return t}(),uE=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new x1(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}(),cl=function(){function t(e){this._list=new uE,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 x1(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 Ni(t){return t=Math.round(t),t<0?0:t>255?255:t}function nh(t){return t<0?0:t>1?1:t}function Sf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ni(parseFloat(e)/100*255):Ni(parseInt(e,10))}function bs(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?nh(parseFloat(e)/100):nh(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 Pl(t,e,r){return t+(e-t)*r}function qr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function ih(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var w1=new cl(20),Ml=null;function Ha(t,e){Ml&&ih(Ml,e),Ml=w1.put(t,Ml||e.slice())}function Vn(t,e){if(t){e=e||[];var r=w1.get(t);if(r)return ih(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in og)return ih(e,og[n]),Ha(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)){qr(e,0,0,0,1);return}return qr(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),Ha(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){qr(e,0,0,0,1);return}return qr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ha(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?qr(e,+u[0],+u[1],+u[2],1):qr(e,0,0,0,1);f=bs(u.pop());case"rgb":if(u.length>=3)return qr(e,Sf(u[0]),Sf(u[1]),Sf(u[2]),u.length===3?f:bs(u[3])),Ha(t,e),e;qr(e,0,0,0,1);return;case"hsla":if(u.length!==4){qr(e,0,0,0,1);return}return u[3]=bs(u[3]),sg(u,e),Ha(t,e),e;case"hsl":if(u.length!==3){qr(e,0,0,0,1);return}return sg(u,e),Ha(t,e),e;default:return}}qr(e,0,0,0,1)}}function sg(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=bs(t[1]),i=bs(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],qr(e,Ni(bf(o,a,r+1/3)*255),Ni(bf(o,a,r)*255),Ni(bf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function lg(t,e){var r=Vn(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 Tc(r,r.length===4?"rgba":"rgb")}}function cE(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=Vn(e[i]),s=Vn(e[a]),l=n-i,u=Tc([Ni(Pl(o[0],s[0],l)),Ni(Pl(o[1],s[1],l)),Ni(Pl(o[2],s[2],l)),nh(Pl(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Tc(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 Gu(t,e){var r=Vn(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var ug=new cl(100);function ah(t){if(He(t)){var e=ug.get(t);return e||(e=lg(t,-.1),ug.put(t,e)),e}else if(vv(t)){var r=Te({},t);return r.colorStops=Oe(t.colorStops,function(n){return{offset:n.offset,color:lg(n.color,-.1)}}),r}return t}var ju=Math.round;function Us(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Vn(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var cg=1e-4;function Ri(t){return t<cg&&t>-cg}function Rl(t){return ju(t*1e3)/1e3}function oh(t){return ju(t*1e4)/1e4}function fE(t){return"matrix("+Rl(t[0])+","+Rl(t[1])+","+Rl(t[2])+","+Rl(t[3])+","+oh(t[4])+","+oh(t[5])+")"}var dE={left:"start",right:"end",center:"middle",middle:"middle"};function hE(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function vE(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function pE(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 T1(t){return t&&!!t.image}function gE(t){return t&&!!t.svgElement}function bv(t){return T1(t)||gE(t)}function I1(t){return t.type==="linear"}function A1(t){return t.type==="radial"}function _1(t){return t&&(t.type==="linear"||t.type==="radial")}function Ic(t){return"url(#"+t+")"}function E1(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 P1(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Su,i=Ke(t.scaleX,1),a=Ke(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("+ju(o*Su)+"deg, "+ju(s*Su)+"deg)"),l.join(" ")}var mE=function(){return Ct.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}}(),sh=Array.prototype.slice;function ii(t,e,r){return(e-t)*r+t}function Cf(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=ii(e[a],r[a],n);return t}function yE(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]=ii(e[o][s],r[o][s],n)}return t}function Dl(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function fg(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 SE(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 bE(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]:sh.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 Cu(t){if(Lr(t)){var e=t.length;if(Lr(t[0])){for(var r=[],n=0;n<e;n++)r.push(sh.call(t[n]));return r}return sh.call(t)}return t}function xu(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 CE(t){return Lr(t&&t[0])?2:1}var Ll=0,wu=1,M1=2,as=3,lh=4,uh=5,dg=6;function hg(t){return t===lh||t===uh}function Ol(t){return t===wu||t===M1}var $o=[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=dg,l=r;if(Lr(r)){var u=CE(r);s=u,(u===1&&!Et(r[0])||u===2&&!Et(r[0][0]))&&(o=!0)}else if(Et(r)&&!$u(r))s=Ll;else if(He(r))if(!isNaN(+r))s=Ll;else{var f=Vn(r);f&&(l=f,s=as)}else if(vv(r)){var c=Te({},l);c.colorStops=Oe(r.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),I1(r)?s=lh:A1(r)&&(s=uh),l=c}a===0?this.valType=s:(s!==this.valType||s===dg)&&(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:Ss[n]||Sv(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=Ol(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?bE(d,h,i):u&&SE(d.colorStops,h.colorStops))}if(!s&&i!==uh&&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===Ll?n[f].additiveValue=n[f].value-v:i===as?n[f].additiveValue=Dl([],n[f].value,v,-1):Ol(i)&&(n[f].additiveValue=i===wu?Dl([],n[f].value,v,-1):fg([],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===as,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?$o:e[l];if((Ol(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:v.rawValue;else if(Ol(a))a===wu?Cf(y,h[i],v[i],m):yE(y,h[i],v[i],m);else if(hg(a)){var b=h[i],A=v[i],M=a===lh;e[l]={type:M?"linear":"radial",x:ii(b.x,A.x,m),y:ii(b.y,A.y,m),colorStops:Oe(b.colorStops,function(I,P){var S=A.colorStops[P];return{offset:ii(I.offset,S.offset,m),color:xu(Cf([],I.color,S.color,m))}}),global:A.global},M?(e[l].x2=ii(b.x2,A.x2,m),e[l].y2=ii(b.y2,A.y2,m)):e[l].r=ii(b.r,A.r,m)}else if(u)Cf(y,h[i],v[i],m),n||(e[l]=xu(y));else{var C=ii(h[i],v[i],m);n?this._additiveValue=C:e[l]=C}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ll?e[n]=e[n]+i:r===as?(Vn(e[n],$o),Dl($o,$o,i,1),e[n]=xu($o)):r===wu?Dl(e[n],e[n],i,1):r===M1&&fg(e[n],e[n],i,1)},t}(),Cv=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){l1("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===as&&u&&(u=xu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Cu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Cu(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 lE({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 Oe(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]=Cu(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 co(){return new Date().getTime()}var wE=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=co()-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&&(rh(n),!r._paused&&r.update())}rh(n)},e.prototype.start=function(){this._running||(this._time=co(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=co(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=co()-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 Cv(r,n.loop);return this.addAnimator(i),i},e}(hi),TE=300,xf=Ct.domSupported,wf=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=Oe(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"]},pg=!1;function ch(t){var e=t.pointerType;return e==="pen"||e==="touch"}function IE(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 Tf(t){t&&(t.zrByTouch=!0)}function AE(t,e){return Sn(t.dom,new _E(t,e),!0)}function R1(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=Gr,this.stopImmediatePropagation=Gr,this.preventDefault=Gr,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),bn={mousedown:function(t){t=Sn(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Sn(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=Sn(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Sn(this.dom,t);var e=t.toElement||t.relatedTarget;R1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){pg=!0,t=Sn(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){pg||(t=Sn(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Sn(this.dom,t),Tf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),bn.mousemove.call(this,t),bn.mousedown.call(this,t)},touchmove:function(t){t=Sn(this.dom,t),Tf(t),this.handler.processGesture(t,"change"),bn.mousemove.call(this,t)},touchend:function(t){t=Sn(this.dom,t),Tf(t),this.handler.processGesture(t,"end"),bn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<TE&&bn.click.call(this,t)},pointerdown:function(t){bn.mousedown.call(this,t)},pointermove:function(t){ch(t)||bn.mousemove.call(this,t)},pointerup:function(t){bn.mouseup.call(this,t)},pointerout:function(t){ch(t)||bn.mouseout.call(this,t)}};J(["click","dblclick","contextmenu"],function(t){bn[t]=function(e){e=Sn(this.dom,e),this.trigger(t,e)}});var fh={pointermove:function(t){ch(t)||fh.mousemove.call(this,t)},pointerup:function(t){fh.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 EE(t,e){var r=e.domHandlers;Ct.pointerEventsSupported?J(wf.pointer,function(n){Tu(e,n,function(i){r[n].call(t,i)})}):(Ct.touchEventsSupported&&J(wf.touch,function(n){Tu(e,n,function(i){r[n].call(t,i),IE(e)})}),J(wf.mouse,function(n){Tu(e,n,function(i){i=gv(i),e.touching||r[n].call(t,i)})}))}function PE(t,e){Ct.pointerEventsSupported?J(vg.pointer,r):Ct.touchEventsSupported||J(vg.mouse,r);function r(n){function i(a){a=gv(a),R1(t,a.target)||(a=AE(t,a),e.domHandlers[n].call(t,a))}Tu(e,n,i,{capture:!0})}}function Tu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,U_(t.domTarget,e,r,n)}function If(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&z_(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var gg=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),ME=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 gg(r,bn),xf&&(i._globalHandlerScope=new gg(document,fh)),EE(i,i._localHandlerScope),i}return e.prototype.dispose=function(){If(this._localHandlerScope),xf&&If(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,xf&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?PE(this,n):If(n)}},e}(hi),D1=1;Ct.hasGlobalWindow&&(D1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var mg=D1,dh=.4,hh="#333",vh="#ccc",RE="#eee",yg=mv,Sg=5e-5;function na(t){return t>Sg||t<-Sg}var ia=[],Va=[],Af=ys(),_f=Math.abs,xv=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 na(this.rotation)||na(this.x)||na(this.y)||na(this.scaleX-1)||na(this.scaleY-1)||na(this.skewX)||na(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(yg(n),this.invTransform=null);return}n=n||ys(),r?this.getLocalTransform(n):yg(n),e&&(r?go(n,e,n):j_(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ia);var n=ia[0]<0?-1:1,i=ia[1]<0?-1:1,a=((ia[0]-n)*r+n)/ia[0]||0,o=((ia[1]-i)*r+i)/ia[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ys(),yv(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||ys(),go(Va,e.invTransform,r),r=Va);var n=this.originX,i=this.originY;(n||i)&&(Af[4]=n,Af[5]=i,go(Va,r,Af),Va[4]-=n,Va[5]-=i,r=Va),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&&ln(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&ln(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&_f(e[0]-1)>1e-10&&_f(e[3]-1)>1e-10?Math.sqrt(_f(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){L1(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&&h1(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}(),zs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function L1(t,e){for(var r=0;r<zs.length;r++){var n=zs[r];t[n]=e[n]}}var bg={};function jr(t,e){e=e||Ui;var r=bg[e];r||(r=bg[e]=new cl(500));var n=r.get(t);return n==null&&(n=ll.measureText(t,e).width,r.put(t,n)),n}function Cg(t,e,r,n){var i=jr(t,e),a=Ac(e),o=os(0,i,r),s=ao(0,a,n),l=new It(o,s,i,a);return l}function O1(t,e,r,n){var i=((t||"")+"").split(`
  42. `),a=i.length;if(a===1)return Cg(i[0],e,r,n);for(var o=new It(0,0,0,0),s=0;s<i.length;s++){var l=Cg(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function os(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function ao(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function Ac(t){return jr("国",t)}function Hi(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Wu(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+=Hi(n[0],r.width),u+=Hi(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 Ef="__zr_normal__",Pf=zs.concat(["ignore"]),DE=zi(zs,function(t,e){return t[e]=!0,t},{ignore:!1}),Ga={},LE=new It(0,0,0,0),_c=function(){function t(e){this.id=s1(),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=LE;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ga,n,f):Wu(Ga,n,f),a.x=Ga.x,a.y=Ga.y,o=Ga.align,s=Ga.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=Hi(c[0],f.width),h=Hi(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,b=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),b=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),b=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=$n,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()?vh:hh},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Vn(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,Tc(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||{},Te(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(We(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!==Ef)){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,Pf)},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(Ef,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Ef,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Pt(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){l1("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&=~$n),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&=~$n)}},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=Pt(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=Pt(i,e),o=Pt(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];Te(r,a),a.textConfig&&(n=n||{},Te(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=Te({},i?this.textConfig:n.textConfig),Te(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Pf.length;f++){var c=Pf[f],d=a&&DE[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 xv,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Te(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|=$n;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 Cv(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=Pt(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){Mf(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Mf(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Mf(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=$n;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}();An(_c,hi);An(_c,xv);function Mf(t,e,r,n,i){r=r||{};var a=[];k1(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 Rf(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function OE(t){return Lr(t[0])}function kE(t,e,r){if(Lr(e[r]))if(Lr(t[r])||(t[r]=[]),Or(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Rf(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(OE(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Rf(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Rf(a,i,o);a.length=i.length}else t[r]=e[r]}function BE(t,e){return t===e||Lr(t)&&Lr(e)&&NE(t,e)}function NE(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 k1(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=!We(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(We(y)&&!Lr(y)&&!vv(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}k1(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 b=p.length;if(!c&&b)for(var A=0;A<v.length;A++){var M=v[A];if(M.targetName===e){var C=M.stopTracks(p);if(C){var I=Pt(v,M);v.splice(I,1)}}}if(i.force||(p=fr(p,function(x){return!BE(n[x],r[x])}),b=p.length),b>0||i.force&&!o.length){var P=void 0,S=void 0,T=void 0;if(s){S={},d&&(P={});for(var A=0;A<b;A++){var m=p[A];S[m]=r[m],d?P[m]=n[m]:r[m]=n[m]}}else if(d){T={};for(var A=0;A<b;A++){var m=p[A];T[m]=Cu(r[m]),kE(r,n,m)}}var M=new Cv(r,!1,!1,c?fr(v,function(_){return _.targetName===e}):null);M.targetName=e,i.scope&&(M.scope=i.scope),d&&P&&M.whenWithKeys(0,P,p),T&&M.whenWithKeys(0,T,p),M.whenWithKeys(u??500,s?S:n,p).delay(f||0),t.addAnimator(M,e),o.push(M)}}var Xt=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=Pt(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=Pt(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}(_c);Xt.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 Iu={},B1={};function FE(t){delete B1[t]}function $E(t){if(!t)return!1;if(typeof t=="string")return Gu(t,1)<dh;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Gu(e[i].color,1);return r/=n,r<dh}return!1}var UE=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 tE,o=n.renderer||"canvas";Iu[o]||(o=gt(Iu)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Iu[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ct.node&&!Ct.worker&&!l?new ME(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Ct.touchEventsSupported:!!f,d=44,h;c&&(h=Ke(n.pointerSize,d)),this.handler=new p1(a,s,u,s.root,h),this.animation=new wE({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=$E(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=co();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=co();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 Xt&&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,FE(this.id))},t}();function xg(t,e){var r=new UE(s1(),t,e);return B1[r.id]=r,r}function zE(t,e){Iu[t]=e}var ph;function HE(t){if(typeof ph=="function")return ph(t)}function VE(t){ph=t}var wg=1e-4,N1=20;function GE(t){return t.replace(/^\s+|\s+$/g,"")}function gh(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 _t(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 He(t)?GE(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),N1),t=(+t).toFixed(e),r?t:+t}function si(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 jE(t)}function jE(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 XE(t,e){var r=zi(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=Oe(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Oe(i,function(h){return Math.floor(h)}),s=zi(o,function(h,v){return h+v},0),l=Oe(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 Oe(o,function(h){return h/n})}function KE(t,e){var r=Math.max(si(t),si(e)),n=t+e;return r>N1?n:Vt(n,r)}function F1(t){var e=Math.PI*2;return(t%e+e)%e}function Xu(t){return t>-wg&&t<wg}var YE=/^(?:(\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 Vi(t){if(t instanceof Date)return t;if(He(t)){var e=YE.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 ZE(t){return Math.pow(10,wv(t))}function wv(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 $1(t,e){var r=wv(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 QE(t){var e=parseFloat(t);return e==t&&(e!==0||!He(t)||t.indexOf("x")<=0)?e:NaN}function JE(t){return!isNaN(QE(t))}function qE(){return Math.round(Math.random()*9)}function U1(t,e){return e===0?t:U1(e,t%e)}function Tg(t,e){return t==null?e:e==null?t:t*e/U1(t,e)}function zr(t){throw new Error(t)}function Ig(t,e,r){return(e-t)*r+t}var z1="series\0",e2="\0_ec_\0";function Cr(t){return t instanceof Array?t:t==null?[]:[t]}function mh(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 Ag=["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 fl(t){return We(t)&&!$e(t)&&!(t instanceof Date)?t.value:t}function t2(t){return We(t)&&!(t instanceof Array)}function r2(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=it();J(e,function(l,u){if(!We(l)){e[u]=null;return}});var s=n2(t,o,r);return(n||i)&&i2(s,t,o,e),n&&a2(s,e),n||i?o2(s,e,i):a&&s2(s,e),l2(s),s}function n2(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"||Hs(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function i2(t,e,r,n){J(n,function(i,a){if(!(!i||i.id==null)){var o=Cs(i.id),s=r.get(o);if(s!=null){var l=t[s];Xn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function a2(t,e){J(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)&&!Hs(r)&&!Hs(a)&&H1("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function o2(t,e,r){J(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Hs(i.existing)||i.existing&&n.id!=null&&!H1("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function s2(t,e){J(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function l2(t){var e=it();J(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),J(t,function(r){var n=r.newOption;Xn(!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={})}),J(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(We(a)){if(o.name=a.name!=null?Cs(a.name):i?i.name:z1+n,i)o.id=Cs(i.id);else if(a.id!=null)o.id=Cs(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 H1(t,e,r){var n=Gn(e[t],null),i=Gn(r[t],null);return n!=null&&i!=null&&n===i}function Cs(t){return Gn(t,"")}function Gn(t,e){return t==null?e:He(t)?t:Et(t)||m_(t)?t+"":e}function Tv(t){var e=t.name;return!!(e&&e.indexOf(z1))}function Hs(t){return t&&t.id!=null&&Cs(t.id).indexOf(e2)===0}function u2(t,e,r){J(t,function(n){var i=n.newOption;We(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=c2(e,i,n.existing,r))})}function c2(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Co(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return $e(e.dataIndex)?Oe(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return $e(e.name)?Oe(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Jt(){var t="__ec_inner_"+f2++;return function(e){return e[t]||(e[t]={})}}var f2=qE();function Df(t,e,r){var n=V1(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=Ec(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 V1(t,e){var r;if(He(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=it(),a={},o=!1;return J(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&&Pt(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 In={useDefault:!0,enableAll:!1,enableNone:!1};function Ec(t,e,r,n){n=n||In;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?(Xn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Xn(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 G1(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function d2(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function h2(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Et(n)){var o=Ig(r||0,n,i);return Vt(o,a?Math.max(si(r||0),si(n)):e)}else{if(He(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=Ig(h,v,i);s[c]=Vt(o,a?Math.max(si(h),si(v)):e)}}return s}}var v2=".",aa="___EC__COMPONENT__CONTAINER___",j1="___EC__EXTENDED_CLASS___";function Hn(t){var e={main:"",sub:""};if(t){var r=t.split(v2);e.main=r[0]||"",e.sub=r[1]||""}return e}function p2(t){Xn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function g2(t){return!!(t&&t[j1])}function Iv(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return m2(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)},v_(i,this)),Te(i.prototype,r),i[j1]=!0,i.extend=this.extend,i.superCall=b2,i.superApply=C2,i.superClass=n,i}}function m2(t){return nt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function W1(t,e){t.extend=e.extend}var y2=Math.round(Math.random()*10);function S2(t){var e=["__\0is_clz",y2++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function b2(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 C2(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Pc(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){p2(i),n.prototype.type=i;var a=Hn(i);if(!a.sub)e[a.main]=n;else if(a.sub!==aa){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[aa]&&(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=Hn(n),a=[],o=e[i.main];return o&&o[aa]?J(o,function(s,l){l!==aa&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=Hn(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return J(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=Hn(n),a=e[i.main];return a&&a[aa]};function r(n){var i=e[n.main];return(!i||!i[aa])&&(i=e[n.main]={},i[aa]=!0),i}}function Vs(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&&Pt(i,l)>=0||a&&Pt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var x2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],w2=Vs(x2),T2=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return w2(this,e,r)},t}(),yh=new cl(50);function I2(t){if(typeof t=="string"){var e=yh.get(t);return e&&e.image}else return t}function Av(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=yh.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Mc(e)&&a.pending.push(o)):(e=ll.loadImage(t,_g,_g),e.__zrImageSrc=t,yh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function _g(){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 Mc(t){return t&&t.width&&t.height}var Lf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function A2(t,e,r,n,i){if(!e)return"";var a=(t+"").split(`
  51. `);i=X1(e,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=K1(a[o],i);return a.join(`
  52. `)}function X1(t,e,r,n){n=n||{};var i=Te({},n);i.font=e,r=Ke(r,"..."),i.maxIterations=Ke(n.maxIterations,2);var a=i.minChar=Ke(n.minChar,0);i.cnCharWidth=jr("国",e);var o=i.ascCharWidth=jr("a",e);i.placeholder=Ke(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;var u=jr(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 K1(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=jr(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?_2(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=jr(t,n)}return t===""&&(t=e.placeholder),t}function _2(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 E2(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,i=e.font,a=r==="truncate",o=Ac(i),s=Ke(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,c;f!=null&&(r==="break"||r==="breakAll")?c=t?Y1(t,e.font,f,r==="breakAll",0).lines:[]:c=t?t.split(`
  53. `):[];var d=c.length*s,h=Ke(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=X1(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<c.length;g++)c[g]=K1(c[g],p);for(var m=h,y=0,g=0;g<c.length;g++)y=Math.max(jr(c[g],i),y);f==null&&(f=y);var b=y;return n&&(m+=n[0]+n[2],b+=n[1]+n[3],f+=n[1]+n[3]),l&&(b=f),{lines:c,height:h,outerWidth:b,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:f}}var P2=function(){function t(){}return t}(),Eg=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),M2=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 R2(t,e){var r=new M2;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=Lf.lastIndex=0,l;(l=Lf.exec(t))!=null;){var u=l.index;u>s&&Of(r,t.substring(s,u),e,o),Of(r,l[2],e,o,l[1]),s=Lf.lastIndex}s<t.length&&Of(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],b=0,A=0,M=0;M<y.tokens.length;M++){var C=y.tokens[M],I=C.styleName&&e.rich[C.styleName]||{},P=C.textPadding=I.padding,S=P?P[1]+P[3]:0,T=C.font=I.font||e.font;C.contentHeight=Ac(T);var x=Ke(I.height,C.contentHeight);if(C.innerHeight=x,P&&(x+=P[0]+P[2]),C.height=x,C.lineHeight=gs(I.lineHeight,e.lineHeight,x),C.align=I&&I.align||e.align,C.verticalAlign=I&&I.verticalAlign||"middle",p&&i!=null&&c+C.lineHeight>i){M>0?(y.tokens=y.tokens.slice(0,M),g(y,A,b),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var _=I.width,E=_==null||_==="auto";if(typeof _=="string"&&_.charAt(_.length-1)==="%")C.percentWidth=_,f.push(C),C.contentWidth=jr(C.text,T);else{if(E){var R=I.backgroundColor,O=R&&R.image;O&&(O=I2(O),Mc(O)&&(C.width=Math.max(C.width,O.width*x/O.height)))}var D=v&&n!=null?n-A:null;D!=null&&D<C.width?!E||D<S?(C.text="",C.width=C.contentWidth=0):(C.text=A2(C.text,D-S,T,e.ellipsis,{minChar:e.truncateMinChar}),C.width=C.contentWidth=jr(C.text,T)):C.contentWidth=jr(C.text,T)}C.width+=S,A+=C.width,I&&(b=Math.max(b,C.lineHeight))}g(y,A,b)}r.outerWidth=r.width=Ke(n,d),r.outerHeight=r.height=Ke(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 C=f[m],B=C.percentWidth;C.width=parseInt(B,10)/100*r.width}return r}function Of(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=Hi(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=Y1(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 P2;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[g]:jr(m,l),!g&&!u){var b=(s[s.length-1]||(s[0]=new Eg)).tokens,A=b.length;A===1&&b[0].isLineHolder?b[0]=y:(m||!A||a)&&b.push(y)}else s.push(new Eg([y]))}}function D2(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var L2=zi(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function O2(t){return D2(t)?!!L2[t]:!0}function Y1(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=jr(d,e),v=n?!1:!O2(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 Sh="__zr_style_"+Math.round(Math.random()*10),Pa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Pa[Sh]=!0;var Pg=["z","z2","invisible"],k2=["invisible"],B2=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&&N2(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:Te(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=is,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&is)},e.prototype.styleUpdated=function(){this.__dirty&=~is},e.prototype.createStyle=function(r){return wc(Pa,r)},e.prototype.useStyle=function(r){r[Sh]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Sh]},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,Pg)},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?k2:Pg,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 Te(r,n),r},e.prototype.getAnimationStyleProps=function(){return Rc},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=$n|is}(),e}(_c),kf=new It(0,0,0,0),Bf=new It(0,0,0,0);function N2(t,e,r){return kf.copy(t.getBoundingRect()),t.transform&&kf.applyTransform(t.transform),Bf.width=e,Bf.height=r,!kf.intersect(Bf)}const dl=B2;var an=Math.min,on=Math.max,Nf=Math.sin,Ff=Math.cos,oa=Math.PI*2,kl=Eo(),Bl=Eo(),Nl=Eo();function Mg(t,e,r,n,i,a){i[0]=an(t,r),i[1]=an(e,n),a[0]=on(t,r),a[1]=on(e,n)}var Rg=[],Dg=[];function F2(t,e,r,n,i,a,o,s,l,u){var f=b1,c=ar,d=f(t,r,i,o,Rg);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,Rg[h]);l[0]=an(v,l[0]),u[0]=on(v,u[0])}d=f(e,n,a,s,Dg);for(var h=0;h<d;h++){var p=c(e,n,a,s,Dg[h]);l[1]=an(p,l[1]),u[1]=on(p,u[1])}l[0]=an(t,l[0]),u[0]=on(t,u[0]),l[0]=an(o,l[0]),u[0]=on(o,u[0]),l[1]=an(e,l[1]),u[1]=on(e,u[1]),l[1]=an(s,l[1]),u[1]=on(s,u[1])}function $2(t,e,r,n,i,a,o,s){var l=C1,u=_r,f=on(an(l(t,r,i),1),0),c=on(an(l(e,n,a),1),0),d=u(t,r,i,f),h=u(e,n,a,c);o[0]=an(t,i,d),o[1]=an(e,a,h),s[0]=on(t,i,d),s[1]=on(e,a,h)}function U2(t,e,r,n,i,a,o,s,l){var u=lo,f=uo,c=Math.abs(i-a);if(c%oa<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(kl[0]=Ff(i)*r+t,kl[1]=Nf(i)*n+e,Bl[0]=Ff(a)*r+t,Bl[1]=Nf(a)*n+e,u(s,kl,Bl),f(l,kl,Bl),i=i%oa,i<0&&(i=i+oa),a=a%oa,a<0&&(a=a+oa),i>a&&!o?a+=oa:i<a&&o&&(i+=oa),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Nl[0]=Ff(h)*r+t,Nl[1]=Nf(h)*n+e,u(s,Nl,s),f(l,Nl,l))}var bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sa=[],la=[],Ln=[],mi=[],On=[],kn=[],$f=Math.min,Uf=Math.max,ua=Math.cos,ca=Math.sin,ri=Math.abs,bh=Math.PI,Ai=bh*2,zf=typeof Float32Array<"u",Uo=[];function Hf(t){var e=Math.round(t/bh*1e8)/1e8;return e%2*bh}function Z1(t,e){var r=Hf(t[0]);r<0&&(r+=Ai);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Ai?i=r+Ai:e&&r-i>=Ai?i=r-Ai:!e&&r>i?i=r+(Ai-Hf(r-i)):e&&r<i&&(i=r-(Ai-Hf(i-r))),t[0]=r,t[1]=i}var Gi=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=ri(n/mg/e)||0,this._uy=ri(n/mg/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=ri(e-this._xi),i=ri(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(),Uo[0]=i,Uo[1]=a,Z1(Uo,o),i=Uo[0],a=Uo[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=ua(a)*n+e,this._yi=ca(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)&&zf&&(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();zf&&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,zf&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Ln[0]=Ln[1]=On[0]=On[1]=Number.MAX_VALUE,mi[0]=mi[1]=kn[0]=kn[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++],On[0]=i,On[1]=a,kn[0]=i,kn[1]=a;break;case bt.L:Mg(r,n,e[o],e[o+1],On,kn),r=e[o++],n=e[o++];break;case bt.C:F2(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],On,kn),r=e[o++],n=e[o++];break;case bt.Q:$2(r,n,e[o++],e[o++],e[o],e[o+1],On,kn),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=ua(h)*c+u,a=ca(h)*d+f),U2(u,f,c,d,h,v,p,On,kn),r=ua(v)*c+u,n=ca(v)*d+f;break;case bt.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];Mg(i,a,i+g,a+m,On,kn);break;case bt.Z:r=i,n=a;break}lo(Ln,Ln,On),uo(mi,mi,kn)}return o===0&&(Ln[0]=Ln[1]=mi[0]=mi[1]=0),new It(Ln[0],Ln[1],mi[0]-Ln[0],mi[1]-Ln[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,b=m-o;(ri(y)>n||ri(b)>i||d===r-1)&&(p=Math.sqrt(y*y+b*b),a=g,o=m);break}case bt.C:{var A=e[d++],M=e[d++],g=e[d++],m=e[d++],C=e[d++],I=e[d++];p=nE(a,o,A,M,g,m,C,I,10),a=C,o=I;break}case bt.Q:{var A=e[d++],M=e[d++],g=e[d++],m=e[d++];p=oE(a,o,A,M,g,m,10),a=g,o=m;break}case bt.A:var P=e[d++],S=e[d++],T=e[d++],x=e[d++],_=e[d++],E=e[d++],R=E+_;d+=1,v&&(s=ua(_)*T+P,l=ca(_)*x+S),p=Uf(T,x)*$f(Ai,Math.abs(E)),a=ua(R)*T+P,o=ca(R)*x+S;break;case bt.R:{s=a=e[d++],l=o=e[d++];var O=e[d++],D=e[d++];p=O*2+D*2;break}case bt.Z:{var y=s-a,b=l-o;p=Math.sqrt(y*y+b*b),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,b=0,A,M;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var C=0;C<o;){var I=n[C++],P=C===1;switch(P&&(u=n[C],f=n[C+1],s=u,l=f),I!==bt.L&&b>0&&(e.lineTo(A,M),b=0),I){case bt.M:s=u=n[C++],l=f=n[C++],e.moveTo(u,f);break;case bt.L:{c=n[C++],d=n[C++];var S=ri(c-u),T=ri(d-f);if(S>i||T>a){if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;e.lineTo(u*(1-_)+c*_,f*(1-_)+d*_);break e}g+=x}e.lineTo(c,d),u=c,f=d,b=0}else{var E=S*S+T*T;E>b&&(A=c,M=d,b=E)}break}case bt.C:{var R=n[C++],O=n[C++],D=n[C++],B=n[C++],$=n[C++],U=n[C++];if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;Hu(u,R,D,$,_,sa),Hu(f,O,B,U,_,la),e.bezierCurveTo(sa[1],la[1],sa[2],la[2],sa[3],la[3]);break e}g+=x}e.bezierCurveTo(R,O,D,B,$,U),u=$,f=U;break}case bt.Q:{var R=n[C++],O=n[C++],D=n[C++],B=n[C++];if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;Vu(u,R,D,_,sa),Vu(f,O,B,_,la),e.quadraticCurveTo(sa[1],la[1],sa[2],la[2]);break e}g+=x}e.quadraticCurveTo(R,O,D,B),u=D,f=B;break}case bt.A:var Q=n[C++],Z=n[C++],V=n[C++],te=n[C++],ie=n[C++],se=n[C++],W=n[C++],q=!n[C++],ce=V>te?V:te,me=ri(V-te)>.001,be=ie+se,ue=!1;if(h){var x=v[m++];g+x>y&&(be=ie+se*(y-g)/x,ue=!0),g+=x}if(me&&e.ellipse?e.ellipse(Q,Z,V,te,W,ie,be,q):e.arc(Q,Z,ce,ie,be,q),ue)break e;P&&(s=ua(ie)*V+Q,l=ca(ie)*te+Z),u=ua(be)*V+Q,f=ca(be)*te+Z;break;case bt.R:s=u=n[C],l=f=n[C+1],c=n[C++],d=n[C++];var ve=n[C++],Ce=n[C++];if(h){var x=v[m++];if(g+x>y){var ae=y-g;e.moveTo(c,d),e.lineTo(c+$f(ae,ve),d),ae-=ve,ae>0&&e.lineTo(c+ve,d+$f(ae,Ce)),ae-=Ce,ae>0&&e.lineTo(c+Uf(ve-ae,0),d+Ce),ae-=ve,ae>0&&e.lineTo(c,d+Uf(Ce-ae,0));break e}g+=x}e.rect(c,d,ve,Ce);break;case bt.Z:if(h){var x=v[m++];if(g+x>y){var _=(y-g)/x;e.lineTo(u*(1-_)+s*_,f*(1-_)+l*_);break e}g+=x}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 ja(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 z2(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=rE(t,e,r,n,i,a,o,s,u,f);return d<=c/2}function H2(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=aE(t,e,r,n,i,a,s,l);return f<=u/2}var Lg=Math.PI*2;function Fl(t){return t%=Lg,t<0&&(t+=Lg),t}var zo=Math.PI*2;function V2(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)%zo<1e-4)return!0;if(a){var c=n;n=Fl(i),i=Fl(c)}else n=Fl(n),i=Fl(i);n>i&&(i+=zo);var d=Math.atan2(l,s);return d<0&&(d+=zo),d>=n&&d<=i||d+zo>=n&&d+zo<=i}function fa(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 yi=Gi.CMD,da=Math.PI*2,G2=1e-4;function j2(t,e){return Math.abs(t-e)<G2}var Sr=[-1,-1,-1],tn=[-1,-1];function W2(){var t=tn[0];tn[0]=tn[1],tn[1]=t}function X2(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=zu(e,n,a,s,u,Sr);if(f===0)return 0;for(var c=0,d=-1,h=void 0,v=void 0,p=0;p<f;p++){var g=Sr[p],m=g===0||g===1?.5:1,y=ar(t,r,i,o,g);y<l||(d<0&&(d=b1(e,n,a,s,tn),tn[1]<tn[0]&&d>1&&W2(),h=ar(e,n,a,s,tn[0]),d>1&&(v=ar(e,n,a,s,tn[1]))),d===2?g<tn[0]?c+=h<e?m:-m:g<tn[1]?c+=v<h?m:-m:c+=s<v?m:-m:g<tn[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function K2(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=iE(e,n,a,s,Sr);if(l===0)return 0;var u=C1(e,n,a);if(u>=0&&u<=1){for(var f=0,c=_r(e,n,a,u),d=0;d<l;d++){var h=Sr[d]===0||Sr[d]===1?.5:1,v=_r(t,r,i,Sr[d]);v<o||(Sr[d]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Sr[0]===0||Sr[0]===1?.5:1,v=_r(t,r,i,Sr[0]);return v<o?0:a<e?h:-h}}function Y2(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);Sr[0]=-l,Sr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=da-1e-4){n=0,i=da;var f=a?1:-1;return o>=Sr[0]+t&&o<=Sr[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=da,i+=da);for(var d=0,h=0;h<2;h++){var v=Sr[h];if(v+t>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=da+p),(p>=n&&p<=i||p+da>=n&&p+da<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),d+=f)}}return d}function Q1(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===yi.M&&v>1&&(r||(s+=fa(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case yi.M:f=a[v++],c=a[v++],l=f,u=c;break;case yi.L:if(r){if(ja(l,u,a[v],a[v+1],e,n,i))return!0}else s+=fa(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case yi.C:if(r){if(z2(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=X2(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 yi.Q:if(r){if(H2(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=K2(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case yi.A:var m=a[v++],y=a[v++],b=a[v++],A=a[v++],M=a[v++],C=a[v++];v+=1;var I=!!(1-a[v++]);d=Math.cos(M)*b+m,h=Math.sin(M)*A+y,g?(f=d,c=h):s+=fa(l,u,d,h,n,i);var P=(n-m)*A/b+m;if(r){if(V2(m,y,A,M,M+C,I,e,P,i))return!0}else s+=Y2(m,y,A,M,M+C,I,P,i);l=Math.cos(M+C)*b+m,u=Math.sin(M+C)*A+y;break;case yi.R:f=l=a[v++],c=u=a[v++];var S=a[v++],T=a[v++];if(d=f+S,h=c+T,r){if(ja(f,c,d,c,e,n,i)||ja(d,c,d,h,e,n,i)||ja(d,h,f,h,e,n,i)||ja(f,h,f,c,e,n,i))return!0}else s+=fa(d,c,d,h,n,i),s+=fa(f,h,f,c,n,i);break;case yi.Z:if(r){if(ja(l,u,f,c,e,n,i))return!0}else s+=fa(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!j2(u,c)&&(s+=fa(l,u,f,c,n,i)||0),s!==0}function Z2(t,e,r){return Q1(t,0,!1,e,r)}function Q2(t,e,r,n){return Q1(t,e,!0,r,n)}var Ku=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Pa),J2={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rc.style)},Vf=zs.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<Vf.length;++s)i[Vf[s]]=this[Vf[s]];i.__dirty|=$n}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?Te(this.style,s):this.useStyle(s):o==="shape"?Te(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(He(r)){var n=Gu(r,0);return n>.5?hh:n>.2?RE:vh}else if(r)return vh}return hh},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(He(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Gu(r,0)<dh;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~io},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 Gi(!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&io)&&(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)),Q2(s,l/u,r,n)))return!0}if(this.hasFill())return Z2(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=io,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:Te(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&io)},e.prototype.createStyle=function(r){return wc(Ku,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Te({},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=Te({},i.shape),Te(u,n.shape)):(u=Te({},a?this.shape:i.shape),Te(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Te({},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 J2},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=$n|is|io}(),e}(dl),q2=ft({strokeFirst:!0,font:Ui,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ku),Gs=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 wc(q2,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=O1(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}(dl);Gs.prototype.type="tspan";var eP=ft({x:0,y:0},Pa),tP={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rc.style)};function rP(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var _n=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return wc(eP,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=rP(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 tP},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}(dl);_n.prototype.type="image";function nP(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 fo=Math.round;function J1(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&&(fo(n*2)===fo(i*2)&&(t.x1=t.x2=_a(n,s,!0)),fo(a*2)===fo(o*2)&&(t.y1=t.y2=_a(a,s,!0))),t}}function q1(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=_a(n,s,!0),t.y=_a(i,s,!0),t.width=Math.max(_a(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(_a(i+o,s,!1)-t.y,o===0?0:1)),t}}function _a(t,e,r){if(!e)return t;var n=fo(t*2);return(n+fo(e))%2===0?n/2:(n+(r?1:-1))/2}var iP=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),aP={},Zt=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new iP},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=q1(aP,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?nP(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yt);Zt.prototype.type="rect";var Og={fill:"#000"},kg=2,oP={style:ft({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},Rc.style)},Wr=function(t){De(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Og,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,uP(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||Og},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return Te(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]||{},Te(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return oP},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||Ui,i=r.padding,a=Hg(r),o=E2(a,r),s=Gf(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",b=p,A=ao(g,o.contentHeight,y);if(s||i){var M=os(p,f,m),C=ao(g,u,y);s&&this._renderBackground(r,r,M,C,f,u)}A+=h/2,i&&(b=zg(p,m,i),y==="top"?A+=i[0]:y==="bottom"&&(A-=i[2]));for(var I=0,P=!1,S=Ug("fill"in r?r.fill:(P=!0,v.fill)),T=$g("stroke"in r?r.stroke:!l&&(!v.autoStroke||P)?(I=kg,v.stroke):null),x=r.textShadowBlur>0,_=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),E=o.calculatedLineHeight,R=0;R<d.length;R++){var O=this._getOrCreateChild(Gs),D=O.createStyle();O.useStyle(D),D.text=d[R],D.x=b,D.y=A,m&&(D.textAlign=m),D.textBaseline="middle",D.opacity=r.opacity,D.strokeFirst=!0,x&&(D.shadowBlur=r.textShadowBlur||0,D.shadowColor=r.textShadowColor||"transparent",D.shadowOffsetX=r.textShadowOffsetX||0,D.shadowOffsetY=r.textShadowOffsetY||0),D.stroke=T,D.fill=S,T&&(D.lineWidth=r.lineWidth||I,D.lineDash=r.lineDash,D.lineDashOffset=r.lineDashOffset||0),D.font=n,Ng(D,r),A+=h,_&&O.setBoundingRect(new It(os(D.x,r.width,D.textAlign),ao(D.y,E,D.textBaseline),c,E))}},e.prototype._updateRichTexts=function(){var r=this.style,n=Hg(r),i=R2(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=os(u,o,d),p=ao(f,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;Gf(r)&&this._renderBackground(r,r,v,p,o,s);for(var b=!!r.backgroundColor,A=0;A<i.lines.length;A++){for(var M=i.lines[A],C=M.tokens,I=C.length,P=M.lineHeight,S=M.width,T=0,x=g,_=y,E=I-1,R=void 0;T<I&&(R=C[T],!R.align||R.align==="left");)this._placeToken(R,r,P,m,x,"left",b),S-=R.width,x+=R.width,T++;for(;E>=0&&(R=C[E],R.align==="right");)this._placeToken(R,r,P,m,_,"right",b),S-=R.width,_-=R.width,E--;for(x+=(a-(x-g)-(y-_)-S)/2;T<=E;)R=C[T],this._placeToken(R,r,P,m,x+R.width/2,"center",b),x+=R.width,T++;m+=P}},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&&Gf(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=zg(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Gs),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,b=0,A=Ug("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),M=$g("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(b=kg,m.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,C&&(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||Ui,g.opacity=gs(u.opacity,n.opacity,1),Ng(g,u),M&&(g.lineWidth=gs(u.lineWidth,n.lineWidth,b),g.lineDash=Ke(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=M),A&&(g.fill=A);var I=r.contentWidth,P=r.contentHeight;p.setBoundingRect(new It(os(g.x,I,g.textAlign),ao(g.y,P,g.textBaseline),I,P))},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(Zt),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=Ke(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(_n),g.onload=function(){v.dirtyStyle()};var b=g.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Ke(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 A=(p||g).style;A.shadowBlur=r.shadowBlur||0,A.shadowColor=r.shadowColor||"transparent",A.shadowOffsetX=r.shadowOffsetX||0,A.shadowOffsetY=r.shadowOffsetY||0,A.opacity=gs(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return tS(r)&&(n=[r.fontStyle,r.fontWeight,eS(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Pi(n)||r.textFont||r.font},e}(dl),sP={left:!0,right:1,center:1},lP={top:1,bottom:1,middle:1},Bg=["fontStyle","fontWeight","fontSize","fontFamily"];function eS(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?fv+"px":t+"px"}function Ng(t,e){for(var r=0;r<Bg.length;r++){var n=Bg[r],i=e[n];i!=null&&(t[n]=i)}}function tS(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function uP(t){return Fg(t),J(t.rich,Fg),t}function Fg(t){if(t){t.font=Wr.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||sP[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||lP[r]?r:"top";var n=t.padding;n&&(t.padding=u1(t.padding))}}function $g(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Ug(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function zg(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Hg(t){var e=t.text;return e!=null&&(e+=""),e}function Gf(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Mt=Jt(),cP=function(t,e,r,n){if(n){var i=Mt(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Mt(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Vg=1,Gg={},rS=Jt(),_v=Jt(),Ev=0,Dc=1,Lc=2,cn=["emphasis","blur","select"],Yu=["normal","emphasis","blur","select"],fP=10,dP=9,Ma="highlight",Au="downplay",xs="select",_u="unselect",ws="toggleSelect";function Wa(t){return t!=null&&t!=="none"}function Oc(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function nS(t){Oc(t,"emphasis",Lc)}function iS(t){t.hoverState===Lc&&Oc(t,"normal",Ev)}function Pv(t){Oc(t,"blur",Dc)}function aS(t){t.hoverState===Dc&&Oc(t,"normal",Ev)}function hP(t){t.selected=!0}function vP(t){t.selected=!1}function jg(t,e,r){e(t,r)}function vi(t,e,r){jg(t,e,r),t.isGroup&&t.traverse(function(n){jg(n,e,r)})}function Wg(t,e){switch(e){case"emphasis":t.hoverState=Lc;break;case"normal":t.hoverState=Ev;break;case"blur":t.hoverState=Dc;break;case"select":t.selected=!0}}function pP(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 gP(t,e,r,n){var i=r&&Pt(r,"select")>=0,a=!1;if(t instanceof yt){var o=rS(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Wa(s)||Wa(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Te({},n),u=Te({},u),u.fill=s):!Wa(u.fill)&&Wa(s)?(a=!0,n=Te({},n),u=Te({},u),u.fill=ah(s)):!Wa(u.stroke)&&Wa(l)&&(a||(n=Te({},n),u=Te({},u)),u.stroke=ah(l)),n.style=u}}if(n&&n.z2==null){a||(n=Te({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??fP)}return n}function mP(t,e,r){if(r&&r.z2==null){r=Te({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??dP)}return r}function yP(t,e,r){var n=Pt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:pP(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Te({},r),o=Te({opacity:n?i:a.opacity*.1},o),r.style=o),r}function jf(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return gP(this,t,e,r);if(t==="blur")return yP(this,t,r);if(t==="select")return mP(this,t,r)}return r}function SP(t){t.stateProxy=jf;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=jf),r&&(r.stateProxy=jf)}function Xg(t,e){!uS(t,e)&&!t.__highByOuter&&vi(t,nS)}function Kg(t,e){!uS(t,e)&&!t.__highByOuter&&vi(t,iS)}function Zu(t,e){t.__highByOuter|=1<<(e||0),vi(t,nS)}function Qu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&vi(t,iS)}function bP(t){vi(t,Pv)}function oS(t){vi(t,aS)}function sS(t){vi(t,hP)}function lS(t){vi(t,vP)}function uS(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function cS(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=_v(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){aS(u)}),s&&r.push(a)),o.isBlured=!1}),J(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Ch(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&&oS(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"||Pv(g)}),Lr(e))a(u.getData(),e);else if(We(e))for(var v=gt(e),p=0;p<v.length;p++)a(u.getData(v[p]),e[v[p]]);l.push(u),_v(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 xh(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){_v(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Pv(a)})}}}function CP(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Co(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=Mt(o);Ch(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Ch(n,f,c,r)}}}function Mv(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(Mt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xP(t,e,r){var n=Mt(t),i=Mv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&xh(n.componentMainType,n.componentIndex,r),J(a,function(s){return Xg(s,e)})):(Ch(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&xh(n.componentMainType,n.componentIndex,r),Xg(t,e))}function wP(t,e,r){cS(r);var n=Mt(t),i=Mv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?J(i,function(a){return Kg(a,e)}):Kg(t,e)}function TP(t,e,r){if(Ih(e)){var n=e.dataType,i=t.getData(n),a=Co(i,e);$e(a)||(a=[a]),t[e.type===ws?"toggleSelect":e.type===xs?"select":"unselect"](a,n)}}function Yg(t){var e=t.getAllData();J(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?sS(a):lS(a)})})}function IP(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();J(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 wh(t,e,r){fS(t,!0),vi(t,SP),_P(t,e,r)}function AP(t){fS(t,!1)}function xo(t,e,r,n){n?AP(t):wh(t,e,r)}function _P(t,e,r){var n=Mt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Zg=["emphasis","blur","select"],EP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wo(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Zg.length;i++){var a=Zg[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[EP[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 Th(t){return!!(t&&t.__highDownDispatcher)}function PP(t){var e=Gg[t];return e==null&&Vg<=32&&(e=Gg[t]=Vg++),e}function Ih(t){var e=t.type;return e===xs||e===_u||e===ws}function Qg(t){var e=t.type;return e===Ma||e===Au}function MP(t){var e=rS(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 Xa=Gi.CMD,RP=[[],[],[]],Jg=Math.sqrt,DP=Math.atan2;function LP(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=Xa.M,c=Xa.C,d=Xa.L,h=Xa.R,v=Xa.A,p=Xa.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=Jg(e[0]*e[0]+e[1]*e[1]),b=Jg(e[2]*e[2]+e[3]*e[3]),A=DP(-e[1]/b,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=b,r[o++]+=m,r[o++]*=y,r[o++]*=b,r[o++]+=A,r[o++]+=A,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],ln(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ln(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var M=RP[l];M[0]=r[o++],M[1]=r[o++],ln(M,M,e),r[s++]=M[0],r[s++]=M[1]}}t.increaseVersion()}}var Wf=Math.sqrt,$l=Math.sin,Ul=Math.cos,Ho=Math.PI;function qg(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ah(t,e){return(t[0]*e[0]+t[1]*e[1])/(qg(t)*qg(e))}function em(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ah(t,e))}function tm(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Ho/180),d=Ul(c)*(t-r)/2+$l(c)*(e-n)/2,h=-1*$l(c)*(t-r)/2+Ul(c)*(e-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Wf(v),s*=Wf(v));var p=(i===a?-1:1)*Wf((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+Ul(c)*g-$l(c)*m,b=(e+n)/2+$l(c)*g+Ul(c)*m,A=em([1,0],[(d-g)/o,(h-m)/s]),M=[(d-g)/o,(h-m)/s],C=[(-1*d-g)/o,(-1*h-m)/s],I=em(M,C);if(Ah(M,C)<=-1&&(I=Ho),Ah(M,C)>=1&&(I=0),I<0){var P=Math.round(I/Ho*1e6)/1e6;I=Ho*2+P%2*Ho}f.addData(u,y,b,o,s,A,I,c,a)}var OP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BP(t){var e=new Gi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Gi.CMD,l=t.match(OP);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(kP)||[],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,b=void 0,A=void 0,M=void 0,C=void 0,I=void 0,P=r,S=n,T=void 0,x=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,T=e.len(),x=e.data,o===s.C&&(m+=r-x[T-4],y+=n-x[T-3]),d=s.C,P=h[g++],S=h[g++],r=h[g++],n=h[g++],e.addData(d,m,y,P,S,r,n);break;case"s":m=r,y=n,T=e.len(),x=e.data,o===s.C&&(m+=r-x[T-4],y+=n-x[T-3]),d=s.C,P=r+h[g++],S=n+h[g++],r+=h[g++],n+=h[g++],e.addData(d,m,y,P,S,r,n);break;case"Q":P=h[g++],S=h[g++],r=h[g++],n=h[g++],d=s.Q,e.addData(d,P,S,r,n);break;case"q":P=h[g++]+r,S=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,e.addData(d,P,S,r,n);break;case"T":m=r,y=n,T=e.len(),x=e.data,o===s.Q&&(m+=r-x[T-4],y+=n-x[T-3]),r=h[g++],n=h[g++],d=s.Q,e.addData(d,m,y,r,n);break;case"t":m=r,y=n,T=e.len(),x=e.data,o===s.Q&&(m+=r-x[T-4],y+=n-x[T-3]),r+=h[g++],n+=h[g++],d=s.Q,e.addData(d,m,y,r,n);break;case"A":b=h[g++],A=h[g++],M=h[g++],C=h[g++],I=h[g++],P=r,S=n,r=h[g++],n=h[g++],d=s.A,tm(P,S,r,n,C,I,b,A,M,d,e);break;case"a":b=h[g++],A=h[g++],M=h[g++],C=h[g++],I=h[g++],P=r,S=n,r+=h[g++],n+=h[g++],d=s.A,tm(P,S,r,n,C,I,b,A,M,d,e);break}}(c==="z"||c==="Z")&&(d=s.Z,e.addData(d),r=i,n=a),o=d}return e.toStatic(),e}var dS=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(yt);function hS(t){return t.setData!=null}function vS(t,e){var r=BP(t),n=Te({},e);return n.buildPath=function(i){if(hS(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){LP(r,i),this.dirtyShape()},n}function NP(t,e){return new dS(vS(t,e))}function FP(t,e){var r=vS(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}(dS);return n}function $P(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(hS(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var UP=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),hl=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new UP},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);hl.prototype.type="circle";var zP=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Rv=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new zP},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);Rv.prototype.type="ellipse";var pS=Math.PI,Xf=pS*2,ha=Math.sin,Ka=Math.cos,HP=Math.acos,sr=Math.atan2,rm=Math.abs,Ts=Math.sqrt,ss=Math.max,Bn=Math.min,yn=1e-4;function VP(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<yn))return d=(f*(e-a)-c*(t-i))/d,[t+d*l,e+d*u]}function zl(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ts(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,b=p-h,A=y*y+b*b,M=i-a,C=d*p-v*h,I=(b<0?-1:1)*Ts(ss(0,M*M*A-C*C)),P=(C*b-y*I)/A,S=(-C*y-b*I)/A,T=(C*b+y*I)/A,x=(-C*y+b*I)/A,_=P-g,E=S-m,R=T-g,O=x-m;return _*_+E*E>R*R+O*O&&(P=T,S=x),{cx:P,cy:S,x0:-f,y0:-c,x1:P*(i/M-1),y1:S*(i/M-1)}}function GP(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 jP(t,e){var r,n=ss(e.r,0),i=ss(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>Xf&&h%Xf;if(v>yn&&(h=v),!(n>yn))t.moveTo(f,c);else if(h>Xf-yn)t.moveTo(f+n*Ka(l),c+n*ha(l)),t.arc(f,c,n,l,u,!d),i>yn&&(t.moveTo(f+i*Ka(u),c+i*ha(u)),t.arc(f,c,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,b=void 0,A=void 0,M=void 0,C=void 0,I=void 0,P=void 0,S=void 0,T=void 0,x=void 0,_=void 0,E=void 0,R=void 0,O=n*Ka(l),D=n*ha(l),B=i*Ka(u),$=i*ha(u),U=h>yn;if(U){var Q=e.cornerRadius;Q&&(r=GP(Q),p=r[0],g=r[1],m=r[2],y=r[3]);var Z=rm(n-i)/2;if(b=Bn(Z,m),A=Bn(Z,y),M=Bn(Z,p),C=Bn(Z,g),S=I=ss(b,A),T=P=ss(M,C),(I>yn||P>yn)&&(x=n*Ka(u),_=n*ha(u),E=i*Ka(l),R=i*ha(l),h<pS)){var V=VP(O,D,E,R,x,_,B,$);if(V){var te=O-V[0],ie=D-V[1],se=x-V[0],W=_-V[1],q=1/ha(HP((te*se+ie*W)/(Ts(te*te+ie*ie)*Ts(se*se+W*W)))/2),ce=Ts(V[0]*V[0]+V[1]*V[1]);S=Bn(I,(n-ce)/(q+1)),T=Bn(P,(i-ce)/(q-1))}}}if(!U)t.moveTo(f+O,c+D);else if(S>yn){var me=Bn(m,S),be=Bn(y,S),ue=zl(E,R,O,D,n,me,d),ve=zl(x,_,B,$,n,be,d);t.moveTo(f+ue.cx+ue.x0,c+ue.cy+ue.y0),S<I&&me===be?t.arc(f+ue.cx,c+ue.cy,S,sr(ue.y0,ue.x0),sr(ve.y0,ve.x0),!d):(me>0&&t.arc(f+ue.cx,c+ue.cy,me,sr(ue.y0,ue.x0),sr(ue.y1,ue.x1),!d),t.arc(f,c,n,sr(ue.cy+ue.y1,ue.cx+ue.x1),sr(ve.cy+ve.y1,ve.cx+ve.x1),!d),be>0&&t.arc(f+ve.cx,c+ve.cy,be,sr(ve.y1,ve.x1),sr(ve.y0,ve.x0),!d))}else t.moveTo(f+O,c+D),t.arc(f,c,n,l,u,!d);if(!(i>yn)||!U)t.lineTo(f+B,c+$);else if(T>yn){var me=Bn(p,T),be=Bn(g,T),ue=zl(B,$,x,_,i,-be,d),ve=zl(O,D,E,R,i,-me,d);t.lineTo(f+ue.cx+ue.x0,c+ue.cy+ue.y0),T<P&&me===be?t.arc(f+ue.cx,c+ue.cy,T,sr(ue.y0,ue.x0),sr(ve.y0,ve.x0),!d):(be>0&&t.arc(f+ue.cx,c+ue.cy,be,sr(ue.y0,ue.x0),sr(ue.y1,ue.x1),!d),t.arc(f,c,i,sr(ue.cy+ue.y1,ue.cx+ue.x1),sr(ve.cy+ve.y1,ve.cx+ve.x1),d),me>0&&t.arc(f+ve.cx,c+ve.cy,me,sr(ve.y1,ve.x1),sr(ve.y0,ve.x0),!d))}else t.lineTo(f+B,c+$),t.arc(f,c,i,u,l,d)}t.closePath()}}}var WP=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}(),Zi=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WP},e.prototype.buildPath=function(r,n){jP(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yt);Zi.prototype.type="sector";var XP=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),kc=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new XP},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);kc.prototype.type="ring";function KP(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++)lo(f,f,t[d]),uo(c,c,t[d]);lo(f,f,n[0]),uo(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(x_(t[d]));continue}else l=t[d-1],u=t[d+1];w_(a,u,l),ff(a,a,e);var p=Jd(v,l),g=Jd(v,u),m=p+g;m!==0&&(p/=m,g/=m),ff(o,a,-p),ff(s,a,g);var y=Xp([],v,o),b=Xp([],v,s);n&&(uo(y,y,f),lo(y,y,c),uo(b,b,f),lo(b,b,c)),i.push(y),i.push(b)}return r&&i.push(i.shift()),i}function gS(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=KP(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 YP=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),vl=function(t){De(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new YP},e.prototype.buildPath=function(r,n){gS(r,n,!0)},e}(yt);vl.prototype.type="polygon";var ZP=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Na=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 ZP},e.prototype.buildPath=function(r,n){gS(r,n,!1)},e}(yt);Na.prototype.type="polyline";var QP={},JP=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),ji=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 JP},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=J1(QP,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);ji.prototype.type="line";var wr=[],qP=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 nm(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?ig:ar)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?ig:ar)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?ag:_r)(t.x1,t.cpx1,t.x2,e),(r?ag:_r)(t.y1,t.cpy1,t.y2,e)]}var Dv=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 qP},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&&(Vu(i,l,o,d,wr),l=wr[1],o=wr[2],Vu(a,u,s,d,wr),u=wr[1],s=wr[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(Hu(i,l,f,o,d,wr),l=wr[1],f=wr[2],o=wr[3],Hu(a,u,c,s,d,wr),u=wr[1],c=wr[2],s=wr[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return nm(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=nm(this.shape,r,!0);return A_(n,n)},e}(yt);Dv.prototype.type="bezier-curve";var eM=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}(),Bc=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 eM},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);Bc.prototype.type="arc";var tM=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 mS=tM;var yS=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),SS=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}(yS),rM=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}(yS);const nM=rM;var va=[0,0],pa=[0,0],Hl=new Ze,Vl=new Ze,iM=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ze;for(var n=0;n<2;n++)this._axes[n]=new Ze;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);Ze.sub(i[0],n[1],n[0]),Ze.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 Hl.set(1/0,1/0),Vl.set(0,0),!this._intersectCheckOneSide(this,e,Hl,Vl,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,Hl,Vl,i,-1)&&(n=!1,i)||i||Ze.copy(r,n?Hl:Vl),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,va),this._getProjMinMaxOnAxis(l,r._corners,pa),va[1]<pa[0]||va[0]>pa[1]){if(s=!1,a)return s;var f=Math.abs(pa[0]-va[1]),c=Math.abs(va[0]-pa[1]);Math.min(f,c)>i.len()&&(f<c?Ze.scale(i,u,-f*o):Ze.scale(i,u,c*o))}else if(n){var f=Math.abs(pa[0]-va[1]),c=Math.abs(va[0]-pa[1]);Math.min(f,c)<n.len()&&(f<c?Ze.scale(n,u,f*o):Ze.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 Ju=iM;var aM=[],oM=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(aM)),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}(dl);const sM=oM;var lM=Jt();function uM(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=Ke(n.duration,200),f=Ke(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 Lv(t,e,r,n,i,a,o){var s=!1,l;nt(i)?(o=a,a=i,i=null):We(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=uM(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 pr(t,e,r,n,i,a){Lv("update",t,e,r,n,i,a)}function Mr(t,e,r,n,i,a){Lv("enter",t,e,r,n,i,a)}function Is(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 qu(t,e,r,n,i,a){Is(t)||Lv("leave",t,e,r,n,i,a)}function im(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),qu(t,{style:{opacity:0}},e,r,n)}function ec(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||im(i,e,r,n)}):im(t,e,r,n)}function js(t){lM(t).oldStyle=t.style}var tc=Math.max,rc=Math.min,_h={};function cM(t){return yt.extend(t)}var fM=FP;function dM(t,e){return fM(t,e)}function En(t,e){_h[t]=e}function hM(t){if(_h.hasOwnProperty(t))return _h[t]}function Ov(t,e,r,n){var i=NP(t,e);return r&&(n==="center"&&(r=CS(r,i.getBoundingRect())),xS(i,r)),i}function bS(t,e,r){var n=new _n({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(CS(e,a))}}});return n}function CS(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 Eh=$P;function xS(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Ws(t,e){return J1(t,t,{lineWidth:e}),t}function vM(t){return q1(t.shape,t.shape,t.style),t}var pM=_a;function gM(t,e){for(var r=mv([]);t&&t!==e;)go(r,t.getLocalTransform(),r),t=t.parent;return r}function wS(t,e,r){return e&&!Lr(e)&&(e=xv.getLocalTransform(e)),r&&(e=yv([],e)),ln([],t,e)}function mM(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=wS(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function am(t){return!t.isGroup}function yM(t){return t.shape!=null}function TS(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){am(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return yM(o)&&(s.shape=Te({},o.shape)),s}var a=n(t);e.traverse(function(o){if(am(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),pr(o,l,r,Mt(o).dataIndex)}}})}function SM(t,e){return Oe(t,function(r){var n=r[0];n=tc(n,e.x),n=rc(n,e.x+e.width);var i=r[1];return i=tc(i,e.y),i=rc(i,e.y+e.height),[n,i]})}function bM(t,e){var r=tc(t.x,e.x),n=rc(t.x+t.width,e.x+e.width),i=tc(t.y,e.y),a=rc(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 IS(t,e,r){var n=Te({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),ft(i,r),new _n(n)):Ov(t.replace("path://",""),n,r,"center")}function CM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(AS(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function AS(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,d=Kf(f,c,l,u);if(xM(d))return!1;var h=t-i,v=e-a,p=Kf(h,v,l,u)/d;if(p<0||p>1)return!1;var g=Kf(h,v,f,c)/d;return!(g<0||g>1)}function Kf(t,e,r,n){return t*n-r*e}function xM(t){return t<=1e-6&&t>=-1e-6}function kv(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=He(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&&J(gt(l),function(f){$s(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Mt(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ft({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function om(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Nc(t,e){if(t)if($e(t))for(var r=0;r<t.length;r++)om(t[r],e);else om(t,e)}En("circle",hl);En("ellipse",Rv);En("sector",Zi);En("ring",kc);En("polygon",vl);En("polyline",Na);En("rect",Zt);En("line",ji);En("bezierCurve",Dv);En("arc",Bc);const wM=Object.freeze(Object.defineProperty({__proto__:null,Arc:Bc,BezierCurve:Dv,BoundingRect:It,Circle:hl,CompoundPath:mS,Ellipse:Rv,Group:Xt,Image:_n,IncrementalDisplayable:sM,Line:ji,LinearGradient:SS,OrientedBoundingRect:Ju,Path:yt,Point:Ze,Polygon:vl,Polyline:Na,RadialGradient:nM,Rect:Zt,Ring:kc,Sector:Zi,Text:Wr,applyTransform:wS,clipPointsByRect:SM,clipRectByRect:bM,createIcon:IS,extendPath:dM,extendShape:cM,getShapeClass:hM,getTransform:gM,groupTransition:TS,initProps:Mr,isElementRemoved:Is,lineLineIntersect:AS,linePolygonIntersect:CM,makeImage:bS,makePath:Ov,mergePath:Eh,registerShape:En,removeElement:qu,removeElementWithFadeOut:ec,resizePath:xS,setTooltipConfig:kv,subPixelOptimize:pM,subPixelOptimizeLine:Ws,subPixelOptimizeRect:vM,transformDirection:mM,traverseElements:Nc,updateProps:pr},Symbol.toStringTag,{value:"Module"}));var Fc={};function TM(t,e){for(var r=0;r<cn.length;r++){var n=cn[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 sm(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<cn.length;u++){var f=cn[u],c=e[f];l[f]=Ke(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Po(t,e,r,n){r=r||Fc;for(var i=t instanceof Wr,a=!1,o=0;o<Yu.length;o++){var s=e[Yu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Wr,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=sm(r,e),f=e.normal,c=!!f.getShallow("show"),d=Xs(f,n&&n.normal,r,!1,!i);d.text=u.normal,i||t.setTextConfig(lm(f,r,!1));for(var o=0;o<cn.length;o++){var h=cn[o],s=e[h];if(s){var v=l.ensureState(h),p=!!Ke(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=Xs(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var g=t.ensureState(h);g.textConfig=lm(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&&($c(l).setLabelText=function(m){var y=sm(r,e,m);TM(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Mo(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<cn.length;n++){var i=cn[n];r[i]=t.getModel([i,e])}return r}function Xs(t,e,r,n,i){var a={};return IM(a,t,r,n,i),e&&Te(a,e),a}function lm(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Ke(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 IM(t,e,r,n,i){r=r||Fc;var a=e.ecModel,o=a&&a.option.textStyle,s=AM(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);dm(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),dm(t,e,o,r,n,i,!0,!1)}function AM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Fc).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 um=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],cm=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function dm(t,e,r,n,i,a,o,s){r=!i&&r||Fc;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=Ke(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=Ke(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var h=Ke(e.getShallow("textBorderType"),r.textBorderType);h!=null&&(t.lineDash=h);var v=Ke(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<um.length;p++){var g=um[p],m=Ke(e.getShallow(g),r[g]);m!=null&&(t[g]=m)}for(var p=0;p<cm.length;p++){var g=cm[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<fm.length;p++){var g=fm[p],m=e.getShallow(g);m!=null&&(t[g]=m)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function _M(t,e){var r=e&&e.getModel("textStyle");return Pi([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 $c=Jt();function EM(t,e,r,n){if(t){var i=$c(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 PM=["textStyle","color"],Yf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zf=new Wr,MM=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(PM):null)},t.prototype.getFont=function(){return _M({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<Yf.length;n++)r[Yf[n]]=this.getShallow(Yf[n]);return Zf.useStyle(r),Zf.update(),Zf.getBoundingRect()},t}(),_S=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],RM=Vs(_S),DM=function(){function t(){}return t.prototype.getLineStyle=function(e){return RM(this,e)},t}(),ES=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],LM=Vs(ES),OM=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return LM(this,e,r)},t}(),Qt=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){xt(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(!Ct.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}();Iv(Qt);S2(Qt);An(Qt,DM);An(Qt,OM);An(Qt,T2);An(Qt,MM);var kM=Math.round(Math.random()*10);function Uc(t){return[t||"",kM++].join("_")}function BM(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Hn(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Hn(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function NM(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(J(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]),J(v.successor,p?m:g)}J(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 J(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),J(c,function(d){Pt(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);Pt(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 J(a,function(l){Pt(o,l)>=0&&s.push(l)}),s}}function PS(t,e){return xt(xt({},t,!0),e,!0)}const FM={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:". "}}}},$M={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 nc="ZH",Bv="EN",yo=Bv,Eu={},Nv={},MS=Ct.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yo).toUpperCase();return t.indexOf(nc)>-1?nc:yo}():yo;function RS(t,e){t=t.toUpperCase(),Nv[t]=new Qt(e),Eu[t]=e}function UM(t){if(He(t)){var e=Eu[t.toUpperCase()]||{};return t===nc||t===Bv?pt(e):xt(pt(e),pt(Eu[yo]),!1)}else return xt(pt(t),pt(Eu[yo]),!1)}function zM(t){return Nv[t]}function HM(){return Nv[yo]}RS(Bv,FM);RS(nc,$M);var Fv=1e3,$v=Fv*60,As=$v*60,sn=As*24,hm=sn*365,ls={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}"},Gl="{yyyy}-{MM}-{dd}",vm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gl,hour:Gl+" "+ls.hour,minute:Gl+" "+ls.minute,second:Gl+" "+ls.second,millisecond:ls.none},Qf=["year","month","day","hour","minute","second","millisecond"],DS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Si(t,e){return t+="","0000".substr(0,e-t.length)+t}function So(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 VM(t){return t===So(t)}function GM(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function LS(t,e,r,n){var i=Vi(t),a=i[Uv(r)](),o=i[bo(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[zc(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Ks(r)](),c=(f-1)%12+1,d=i[Hc(r)](),h=i[Vc(r)](),v=i[Gc(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Qt?n:zM(n||MS)||HM(),y=m.getModel("time"),b=y.get("month"),A=y.get("monthAbbr"),M=y.get("dayOfWeek"),C=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Si(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,A[o-1]).replace(/{MM}/g,Si(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Si(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,M[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Si(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Si(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Si(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Si(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Si(v,3)).replace(/{S}/g,v+"")}function jM(t,e,r,n,i){var a=null;if(He(r))a=r;else if(nt(r))a=r(t.value,e,{level:t.level});else{var o=Te({},ls);if(t.level>0)for(var s=0;s<Qf.length;++s)o[Qf[s]]="{primary|"+o[Qf[s]]+"}";var l=r?r.inherit===!1?r:ft(r,o):o,u=OS(t.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=DS.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 LS(new Date(t.value),a,i,n)}function OS(t,e){var r=Vi(t),n=r[bo(e)]()+1,i=r[zc(e)](),a=r[Ks(e)](),o=r[Hc(e)](),s=r[Vc(e)](),l=r[Gc(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 pm(t,e,r){var n=Et(t)?Vi(t):t;switch(e=e||OS(t,r),e){case"year":return n[Uv(r)]();case"half-year":return n[bo(r)]()>=6?1:0;case"quarter":return Math.floor((n[bo(r)]()+1)/4);case"month":return n[bo(r)]();case"day":return n[zc(r)]();case"half-day":return n[Ks(r)]()/24;case"hour":return n[Ks(r)]();case"minute":return n[Hc(r)]();case"second":return n[Vc(r)]();case"millisecond":return n[Gc(r)]()}}function Uv(t){return t?"getUTCFullYear":"getFullYear"}function bo(t){return t?"getUTCMonth":"getMonth"}function zc(t){return t?"getUTCDate":"getDate"}function Ks(t){return t?"getUTCHours":"getHours"}function Hc(t){return t?"getUTCMinutes":"getMinutes"}function Vc(t){return t?"getUTCSeconds":"getSeconds"}function Gc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function WM(t){return t?"setUTCFullYear":"setFullYear"}function kS(t){return t?"setUTCMonth":"setMonth"}function BS(t){return t?"setUTCDate":"setDate"}function NS(t){return t?"setUTCHours":"setHours"}function FS(t){return t?"setUTCMinutes":"setMinutes"}function $S(t){return t?"setUTCSeconds":"setSeconds"}function US(t){return t?"setUTCMilliseconds":"setMilliseconds"}function XM(t){if(!JE(t))return He(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var zS=u1,gm=["a","b","c","d","e","f","g"],Jf=function(t,e){return"{"+t+(e??"")+"}"};function KM(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=gm[a];t=t.replace(Jf(o),Jf(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(Jf(gm[l],s),u)}return t}function Ph(t,e){return e=e||"transparent",He(t)?t:We(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Pu=J,YM=["left","right","top","bottom","width","height"],jl=[["width","left","right"],["height","top","bottom"]];function zv(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 _s=zv;Hr(zv,"vertical");Hr(zv,"horizontal");function ic(t,e,r){r=zS(r||0);var n=e.width,i=e.height,a=_t(t.left,n),o=_t(t.top,i),s=_t(t.right,n),l=_t(t.bottom,i),u=_t(t.width,n),f=_t(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 Ys(t){var e=t.layoutMode||t.constructor.layoutMode;return We(e)?e:e?{type:e}:null}function To(t,e,r){var n=r&&r.ignoreSize;!$e(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],t,i),u(jl[1],t,a);function o(f,c){var d={},h=0,v={},p=0,g=2;if(Pu(f,function(b){v[b]=t[b]}),Pu(f,function(b){s(e,b)&&(d[b]=v[b]=e[b]),l(d,b)&&h++,l(v,b)&&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){Pu(f,function(h){c[h]=d[h]})}}function jc(t){return ZM({},t)}function ZM(t,e){return e&&t&&Pu(YM,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var QM=Jt(),Tt=function(t){De(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=Uc("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ys(this),a=i?jc(r):{},o=n.getTheme();xt(r,o.get(this.mainType)),xt(r,this.getDefaultOption()),i&&To(r,a,i)},e.prototype.mergeOption=function(r,n){xt(this.option,r,!0);var i=Ys(this);i&&To(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!g2(r))return r.defaultOption;var n=QM(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=xt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ec(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}(Qt);W1(Tt,Qt);Pc(Tt);BM(Tt);NM(Tt,JM);function JM(t){var e=[];return J(Tt.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Oe(e,function(r){return Hn(r).main}),t!=="dataset"&&Pt(e,"dataset")<=0&&e.unshift("dataset"),e}var HS="";typeof navigator<"u"&&(HS=navigator.platform||"");var Ya="rgba(0, 0, 0, 0.2)";const qM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ya,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ya,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ya,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ya,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ya,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ya,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:HS.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 VS=it(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dn="original",kr="arrayRows",Pn="objectRows",Zn="keyedColumns",Fi="typedArray",GS="unknown",ci="column",Ro="row",rr={Must:1,Might:2,Not:3},jS=Jt();function eR(t){jS(t).datasetMap=it()}function tR(t,e,r){var n={},i=Hv(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=jS(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),J(t,function(p,g){var m=We(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});J(t,function(p,g){var m=p.name,y=v(p);if(f==null){var b=d.valueWayDim;h(n[m],b,y),h(o,b,y),d.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var b=d.categoryWayDim;h(n[m],b,y),h(o,b,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 rR(t,e,r){var n={},i=Hv(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Pn||a===Zn)&&J(o,function(f,c){(We(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=XS(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);d.push(p);var g=p===rr.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&d[f.n]===rr.Not)&&(f.n=h),m(f)&&d[f.n]!==rr.Not)return f;g||(p===rr.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 Hv(t){var e=t.get("data",!0);if(!e)return Ec(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},In).models[0]}function nR(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Ec(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},In).models}function WS(t,e){return XS(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function XS(t,e,r,n,i,a){var o,s=5;if(Or(t))return rr.Not;var l,u;if(n){var f=n[a];We(f)?(l=f.name,u=f.type):He(f)&&(l=f)}if(u!=null)return u==="ordinal"?rr.Must:rr.Not;if(e===kr){var c=t;if(r===Ro){for(var d=c[a],h=0;h<(d||[]).length&&h<s;h++)if((o=A(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=A(v[a]))!=null)return o}}else if(e===Pn){var p=t;if(!l)return rr.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=A(g[l]))!=null)return o}}else if(e===Zn){var m=t;if(!l)return rr.Not;var d=m[l];if(!d||Or(d))return rr.Not;for(var h=0;h<d.length&&h<s;h++)if((o=A(d[h]))!=null)return o}else if(e===dn)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],b=fl(g);if(!$e(b))return rr.Not;if((o=A(b[a]))!=null)return o}function A(M){var C=He(M);if(M!=null&&Number.isFinite(Number(M))&&M!=="")return C?rr.Might:rr.Not;if(C&&M!=="-")return rr.Must}return rr.Not}var iR=it();function aR(t,e,r){var n=iR.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var mm=Jt();Jt();var Vv=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Cr(this.get("color",!0)),a=this.get("colorLayer",!0);return sR(this,mm,i,a,e,r,n)},t.prototype.clearColorPalette=function(){lR(this,mm)},t}();function oR(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 sR(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:oR(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 lR(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Wl,Vo,ym,Sm="\0_ec_inner",uR=1,Gv=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 Qt(a),this._locale=new Qt(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=xm(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,xm(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"?ym(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&&J(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;eR(this),J(r,function(c,d){c!=null&&(Tt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?pt(c):xt(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=aR(this,c,Cr(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=r2(h,d,v);u2(p,c,Tt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,b;J(p,function(A,M){var C=A.existing,I=A.newOption;if(!I)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var P=c==="series",S=Tt.getClass(c,A.keyInfo.subType,!P);if(!S)return;if(c==="tooltip"){if(b)return;b=!0}if(C&&C.constructor===S)C.name=A.keyInfo.name,C.mergeOption(I,this),C.optionUpdated(I,!1);else{var T=Te({componentIndex:M},A.keyInfo);C=new S(I,this,this,T),Te(C,T),A.brandNew&&(C.__requireNewView=!0),C.init(I,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),m.push(C),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Wl(this)}this._seriesIndices||Wl(this)},e.prototype.getOption=function(){var r=pt(this.option);return J(r,function(n,i){if(Tt.hasClass(i)){for(var a=Cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Hs(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Sm],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=[],J(Cr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=bm("id",a,s):o!=null?l=bm("name",o,s):l=fr(s,function(u){return!!u}),Cm(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):fr(this._componentsMap.get(i),function(u){return!!u});return l(Cm(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?fr(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=He(r)?a.get(r):We(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=Gn(r,null);return fr(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 fr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return fr(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Vo(this),J(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){J(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Vo(this),J(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 J(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Vo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Vo(this);var i=[];J(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){Wl(this);var n=this._componentsMap,i=[];n.each(function(a,o){Tt.hasClass(o)&&i.push(o)}),Tt.topologicalTravel(i,Tt.getAllClassMainTypes(),function(a){J(n.get(a),function(o){o&&(a!=="series"||!cR(o,r))&&o.restoreData()})})},e.internalField=function(){Wl=function(r){var n=r._seriesIndices=[];J(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=it(n)},Vo=function(r){},ym=function(r,n){r.option={},r.option[Sm]=uR,r._componentsMap=it({series:[]}),r._componentsCount=it();var i=n.aria;We(i)&&i.enabled==null&&(i.enabled=!0),fR(n,r._theme.option),xt(n,qM,!1),r._mergeOption(n,null)}}(),e}(Qt);function cR(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 fR(t,e){var r=t.color&&!t.colorLayer;J(e,function(n,i){i==="colorLayer"&&r||Tt.hasClass(i)||(typeof n=="object"?t[i]=t[i]?xt(t[i],n,!1):pt(n):t[i]==null&&(t[i]=n))})}function bm(t,e,r){if($e(e)){var n=it();return J(e,function(a){if(a!=null){var o=Gn(a,null);o!=null&&n.set(a,!0)}}),fr(r,function(a){return a&&n.get(a[t])})}else{var i=Gn(e,null);return fr(r,function(a){return a&&i!=null&&a[t]===i})}}function Cm(t,e){return e.hasOwnProperty("subType")?fr(t,function(r){return r&&r.subType===e.subType}):t}function xm(t){var e=it();return t&&J(Cr(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}An(Gv,Vv);var dR=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],KS=function(){function t(e){J(dR,function(r){this[r]=jt(e[r],e)},this)}return t}(),qf={},jv=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];J(qf,function(i,a){var o=i.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){J(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){qf[e]=r},t.get=function(e){return qf[e]},t}(),hR=/^(min|max)?(.+)$/,vR=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(J(Cr(e.series),function(o){o&&o.data&&Or(o.data)&&Qd(o.data)}),J(Cr(e.dataset),function(o){o&&o.source&&Or(o.source)&&Qd(o.source)})),e=pt(e);var i=this._optionBackup,a=pR(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++)gR(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!yR(o,this._currentMediaIndices)&&(s=Oe(o,function(f){return pt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();function pR(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)&&J(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),J(l,function(h){return d(h)}),J(n,function(h){return d(h.option)});function d(h){J(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function gR(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return J(t,function(a,o){var s=o.match(hR);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();mR(n[u],a,l)||(i=!1)}}),i}function mR(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function yR(t,e){return t.join(",")===e.join(",")}var vn=J,Zs=We,wm=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ed(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=wm.length;r<n;r++){var i=wm[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?xt(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?xt(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function cr(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,ft(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 us(t){cr(t,"itemStyle"),cr(t,"lineStyle"),cr(t,"areaStyle"),cr(t,"label"),cr(t,"labelLine"),cr(t,"upperLabel"),cr(t,"edgeLabel")}function Ut(t,e){var r=Zs(t)&&t[e],n=Zs(r)&&r.textStyle;if(n)for(var i=0,a=Ag.length;i<a;i++){var o=Ag[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function en(t){t&&(us(t),Ut(t,"label"),t.emphasis&&Ut(t.emphasis,"label"))}function SR(t){if(Zs(t)){ed(t),us(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&&(ed(e),en(e));var r=t.markLine;r&&(ed(r),en(r));var n=t.markArea;n&&en(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!Or(a))for(var o=0;o<a.length;o++)en(a[o]);J(t.categories,function(u){us(u)})}if(i&&!Or(i))for(var o=0;o<i.length;o++)en(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)en(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)$e(l[o])?(en(l[o][0]),en(l[o][1])):en(l[o]);t.type==="gauge"?(Ut(t,"axisLabel"),Ut(t,"title"),Ut(t,"detail")):t.type==="treemap"?(cr(t.breadcrumb,"itemStyle"),J(t.levels,function(u){us(u)})):t.type==="tree"&&us(t.leaves)}}function ni(t){return $e(t)?t:t?[t]:[]}function Tm(t){return($e(t)?t[0]:t)||{}}function bR(t,e){vn(ni(t.series),function(n){Zs(n)&&SR(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),vn(r,function(n){vn(ni(t[n]),function(i){i&&(Ut(i,"axisLabel"),Ut(i.axisPointer,"label"))})}),vn(ni(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ut(i,"axisLabel"),Ut(i&&i.axisPointer,"label")}),vn(ni(t.calendar),function(n){cr(n,"itemStyle"),Ut(n,"dayLabel"),Ut(n,"monthLabel"),Ut(n,"yearLabel")}),vn(ni(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)}),vn(ni(t.geo),function(n){Zs(n)&&(en(n),vn(ni(n.regions),function(i){en(i)}))}),vn(ni(t.timeline),function(n){en(n),cr(n,"label"),cr(n,"itemStyle"),cr(n,"controlStyle",!0);var i=n.data;$e(i)&&J(i,function(a){We(a)&&(cr(a,"label"),cr(a,"itemStyle"))})}),vn(ni(t.toolbox),function(n){cr(n,"iconStyle"),vn(n.feature,function(i){cr(i,"iconStyle")})}),Ut(Tm(t.axisPointer),"label"),Ut(Tm(t.tooltip).axisPointer,"label")}function CR(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 xR(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 Im(t){t&&J(wR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var wR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],TR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],td=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Go(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<td.length;r++){var n=td[r][1],i=td[r][0];e[n]!=null&&(e[i]=e[n])}}function Am(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function _m(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function IR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function YS(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&YS(t[r].children,e)}function ZS(t,e){bR(t,e),t.series=Cr(t.series),J(t.series,function(r){if(We(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),Am(r.label);var i=r.data;if(i&&!Or(i))for(var a=0;a<i.length;a++)Am(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=CR(r,"pointer.color");o!=null&&xR(r,"itemStyle.color",o)}else if(n==="bar"){Go(r),Go(r.backgroundStyle),Go(r.emphasis);var i=r.data;if(i&&!Or(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Go(i[a]),Go(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)),_m(r),YS(r.data,_m)}else n==="graph"||n==="sankey"?IR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ft(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Im(r)}}),t.dataRange&&(t.visualMap=t.dataRange),J(TR,function(r){var n=t[r];n&&($e(n)||(n=[n]),J(n,function(i){Im(i)}))})}function AR(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(_R)}function _R(t){J(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 Wc=function(){function t(e){this.data=e.data||(e.sourceFormat===Zn?{}:[]),this.sourceFormat=e.sourceFormat||GS,this.seriesLayoutBy=e.seriesLayoutBy||ci,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&&WS(this,n)===rr.Must&&(i.type="ordinal")}}return t}();function Wv(t){return t instanceof Wc}function Mh(t,e,r){r=r||JS(t);var n=e.seriesLayoutBy,i=PR(t,r,n,e.sourceHeader,e.dimensions),a=new Wc({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:pt(e)});return a}function QS(t){return new Wc({data:t,sourceFormat:Or(t)?Fi:dn})}function ER(t){return new Wc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:pt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function JS(t){var e=GS;if(Or(t))e=Fi;else if($e(t)){t.length===0&&(e=kr);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if($e(i)||Or(i)){e=kr;break}else if(We(i)){e=Pn;break}}}}else if(We(t)){for(var a in t)if($s(t,a)&&Lr(t[a])){e=Zn;break}}return e}function PR(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Em(i),startIndex:o,dimensionsDetectedCount:a};if(e===kr){var s=t;n==="auto"||n==null?Pm(function(u){u!=null&&u!=="-"&&(He(u)?o==null&&(o=1):o=0)},r,s,10):o=Et(n)?n:n?1:0,!i&&o===1&&(i=[],Pm(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Ro?s.length:s[0]?s[0].length:null}else if(e===Pn)i||(i=MR(t));else if(e===Zn)i||(i=[],J(t,function(u,f){i.push(f)}));else if(e===dn){var l=fl(t[0]);a=$e(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Em(i),dimensionsDetectedCount:a}}function MR(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return gt(r)}function Em(t){if(t){var e=it();return Oe(t,function(r,n){r=We(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 Pm(t,e,r,n){if(e===Ro)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 qS(t){var e=t.sourceFormat;return e===Pn||e===Zn}var ga,ma,ya,Mm,Rm,eb=function(){function t(e,r){var n=Wv(e)?e:QS(e);this._source=n;var i=this._data=n.data;n.sourceFormat===Fi&&(this._offset=0,this._dimSize=r,this._data=i),Rm(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;Rm=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,d=l.dimensionsDefine,h=Mm[Xv(u,f)];if(Te(o,h),u===Fi)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=tb(u,f);o.getItem=jt(v,null,s,c,d);var p=rb(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 b=f[y*c+d];m[o+y]=b,b<v&&(v=b),b>p&&(p=b)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Mm=(e={},e[kr+"_"+ci]={pure:!0,appendData:a},e[kr+"_"+Ro]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pn]={pure:!0,appendData:a},e[Zn]={pure:!0,appendData:function(o){var s=this._data;J(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[dn]={appendData:a},e[Fi]={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}(),Dm=function(t,e,r,n){return t[n]},RR=(ga={},ga[kr+"_"+ci]=function(t,e,r,n){return t[n+e]},ga[kr+"_"+Ro]=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},ga[Pn]=Dm,ga[Zn]=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},ga[dn]=Dm,ga);function tb(t,e){var r=RR[Xv(t,e)];return r}var Lm=function(t,e,r){return t.length},DR=(ma={},ma[kr+"_"+ci]=function(t,e,r){return Math.max(0,t.length-e)},ma[kr+"_"+Ro]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ma[Pn]=Lm,ma[Zn]=function(t,e,r){var n=r[0].name,i=t[n];return i?i.length:0},ma[dn]=Lm,ma);function rb(t,e){var r=DR[Xv(t,e)];return r}var rd=function(t,e,r){return t[e]},LR=(ya={},ya[kr]=rd,ya[Pn]=function(t,e,r){return t[r]},ya[Zn]=rd,ya[dn]=function(t,e,r){var n=fl(t);return n instanceof Array?n[e]:n},ya[Fi]=rd,ya);function nb(t){var e=LR[t];return e}function Xv(t,e){return t===kr?t+"_"+e:t}function Io(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 nb(a)(n,o,s)}else{var l=n;return a===dn&&(l=fl(n)),l}}}}var OR=/\{@(.+?)\}/g,kR=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(He(a)){var f=KM(a,l);return f.replace(OR,function(c,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Io(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 Io(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Es(t){return new BR(t)}var BR=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){Om.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Om.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}(),Om=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 Mu(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Et(t)&&t!=null&&t!=="-"&&(t=+Vi(t)),t==null||t===""?NaN:Number(t))}it({number:function(t){return parseFloat(t)},time:function(t){return+Vi(t)},trim:function(t){return He(t)?Pi(t):t}});var NR=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 Mu(e,r)},t}();function FR(t,e){var r=new NR,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==ci&&zr(o);var s=[],l={},u=t.dimensionsDefine;if(u)J(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var b="";$s(l,m)&&zr(b),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=tb(i,ci);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=jt($R,null,t)),r.cloneRawData=jt(UR,null,t);var d=rb(i,ci);r.count=jt(d,null,n,a,s);var h=nb(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(zR,null,s,l),r.cloneAllDimensionInfo=jt(HR,null,s),r}function $R(t){var e=t.sourceFormat;if(!Kv(e)){var r="";zr(r)}return t.data}function UR(t){var e=t.sourceFormat,r=t.data;if(!Kv(e)){var n="";zr(n)}if(e===kr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Pn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(Te({},r[a]));return i}}function zR(t,e,r){if(r!=null){if(Et(r)||!isNaN(r)&&!$s(e,r))return t[r];if($s(e,r))return e[r]}}function HR(t){return pt(t)}var ib=it();function VR(t){t=pt(t);var e=t.type,r="";e||zr(r);var n=e.split(":");n.length!==2&&zr(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,ib.set(e,t)}function GR(t,e,r){var n=Cr(t),i=n.length,a="";i||zr(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=jR(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function jR(t,e,r,n){var i="";e.length||zr(i),We(t)||zr(i);var a=t.type,o=ib.get(a);o||zr(i);var s=Oe(e,function(u){return FR(u,o)}),l=Cr(o.transform({upstream:s[0],upstreamList:s,config:pt(t.config)}));return Oe(l,function(u,f){var c="";We(u)||zr(c),u.data||zr(c);var d=JS(u.data);Kv(d)||zr(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:ci,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:ci,sourceHeader:0,dimensions:u.dimensions};return Mh(u.data,h,null)})}function Kv(t){return t===kr||t===Pn}var Xc="undefined",WR=typeof Uint32Array===Xc?Array:Uint32Array,XR=typeof Uint16Array===Xc?Array:Uint16Array,ab=typeof Int32Array===Xc?Array:Int32Array,km=typeof Float64Array===Xc?Array:Float64Array,ob={float:km,int:ab,ordinal:Array,number:Array,time:km},nd;function jo(t){return t>65535?WR:XR}function Za(){return[1/0,-1/0]}function KR(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Bm(t,e,r,n,i){var a=ob[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 Rh=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=nd[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],qS(i),this._dimensions=Oe(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 ob[r||"float"](this._rawCount),this._rawExtent[a]=Za(),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]=Za());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];Bm(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=nd.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=Oe(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Za()),Bm(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=jo(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=jo(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=jo(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]],b=h[i[1]],A=e[i[1]][0],M=e[i[1]][1],m=0;m<n;m++){var y=g[m],C=b[m];(y>=c&&y<=d||isNaN(y))&&(C>=A&&C<=M||isNaN(C))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var I=r.getRawIndex(m),y=h[i[0]][I];(y>=c&&y<=d||isNaN(y))&&(l[u++]=I)}else for(var m=0;m<o;m++){for(var P=!0,I=r.getRawIndex(m),S=0;S<a;S++){var T=i[S],y=h[T][I];(y<e[T][0]||y>e[T][1])&&(P=!1)}P&&(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]]=Za();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(jo(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,b=p;b<g;b++){var A=this.getRawIndex(b),M=a[A];isNaN(M)||(y+=M)}y/=g-p;var C=v,I=Math.min(v+l,o),P=v-1,S=a[u];f=-1,d=C;for(var T=-1,x=0,b=C;b<I;b++){var A=this.getRawIndex(b),M=a[A];if(isNaN(M)){x++,T<0&&(T=A);continue}c=Math.abs((P-m)*(M-S)-(P-b)*(y-S)),c>f&&(f=c,d=A)}x>0&&x<I-C&&(h[s++]=Math.min(T,d),d=Math.max(T,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]=Za(),d=new(jo(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=Za();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&&zi(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?KR(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 Mu(r[a],this._dimensions[a])}nd={arrayRows:e,objectRows:function(r,n,i,a){return Mu(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Mu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),YR=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(Xl(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=Or(s)?Fi:dn,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ke(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=Ke(c.sourceHeader,d.sourceHeader),p=Ke(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[Mh(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 b=m.get("source",!0);i=[Mh(b,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&&Nm(a)}var o,s=[],l=[];return J(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Nm(c),s.push(f),l.push(u._getVersionSign())}),n?o=GR(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[ER(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];Xl(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Rh,s.initData(new eb(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Xl(e)){var r=Hv(e);return r?[r.getSourceManager()]:[]}else return Oe(nR(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Xl(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 Xl(t){return t.mainType==="series"}function Nm(t){throw new Error(t)}function Qs(t,e){return e.type=t,e}function sb(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Ph(n)}function ZR(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=sb(e,r),f,c,d,h;if(o>1||l&&!o){var v=QR(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=Io(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Tv(e),m=g&&e.name||"",y=i.getName(r),b=n?m:y;return Qs("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Qs("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Pi(b),value:f,valueType:c,dataIndex:r})].concat(d||[])})}function QR(t,e,r,n,i){var a=e.getData(),o=zi(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?J(n,function(c){f(Io(a,r,c),c)}):J(t,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Qs("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 bi=Jt();function Kl(t,e){return t.getName(e)||t.getId(e)}var JR="__universalTransitionEnabled",Xr=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=Es({count:eD,reset:tD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=bi(this).sourceManager=new YR(this);a.prepareSource();var o=this.getInitialData(r,i);$m(o,this),this.dataTask.context.data=o,bi(this).dataBeforeProcessed=o,Fm(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Ys(this),a=i?jc(r):{},o=this.subType;Tt.hasClass(o)&&(o+="Series"),xt(r,n.getTheme().get(this.subType)),xt(r,this.getDefaultOption()),mh(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&To(r,a,i)},e.prototype.mergeOption=function(r,n){r=xt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ys(this);i&&To(this.option,r,i);var a=bi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);$m(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,bi(this).dataBeforeProcessed=o,Fm(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Or(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&mh(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=Dh(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return bi(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=Dh(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}bi(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return it(r)},e.prototype.getSourceManager=function(){return bi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return bi(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 ZR({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ct.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=Vv.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=Kl(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[Kl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[JR])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"){We(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],d=Kl(r,c);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],d=Kl(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);An(Xr,kR);An(Xr,Vv);W1(Xr,Tt);function Fm(t){var e=t.name;Tv(t)||(t.name=qR(t)||e)}function qR(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return J(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function eD(t){return t.model.getRawData().count()}function tD(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),rD}function rD(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function $m(t,e){J(C_(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Hr(nD,e))})}function nD(t,e){var r=Dh(t);return r&&r.setOutputEnd((e||this).count()),e}function Dh(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 di=function(){function t(){this.group=new Xt,this.uid=Uc("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}();Iv(di);Pc(di);function Yv(){var t=Jt();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 lb=Jt(),iD=Yv(),Rr=function(){function t(){this.group=new Xt,this.uid=Uc("viewChart"),this.renderTask=Es({plan:aD,reset:oD}),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&&zm(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&zm(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){Nc(this.group,e)},t.markUpdateMethod=function(e,r){lb(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Um(t,e,r){t&&Th(t)&&(e==="emphasis"?Zu:Qu)(t,r)}function zm(t,e,r){var n=Co(t,e),i=e&&e.highlightKey!=null?PP(e.highlightKey):null;n!=null?J(Cr(n),function(a){Um(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Um(a,r,i)})}Iv(Rr);Pc(Rr);function aD(t){return iD(t.model)}function oD(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&lb(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),sD[l]}var sD={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 ub(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 Hm=Jt(),Vm={itemStyle:Vs(ES,!0),lineStyle:Vs(_S,!0)},lD={lineStyle:"stroke",itemStyle:"fill"};function cb(t,e){var r=t.visualStyleMapper||Vm[e];return r||(console.warn("Unknown style type '"+e+"'."),Vm.itemStyle)}function fb(t,e){var r=t.visualDrawType||lD[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var uD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=cb(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=Te({},o);g[l]=f(p),h.setItemVisual(v,"style",g)}}}},Wo=new Qt,cD={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=cb(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Wo.option=l[n];var u=i(Wo),f=o.ensureUniqueItemVisual(s,"style");Te(f,u),Wo.option.decal&&(o.setItemVisual(s,"decal",Wo.option.decal),Wo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},fD={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)),Hm(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Hm(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)}})}})}},Yl=Math.PI;function dD(t,e){e=e||{},ft(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 Xt,n=new Zt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Wr({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 Zt({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 Bc({shape:{startAngle:-Yl/2,endAngle:-Yl/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:Yl*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Yl*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 db=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;J(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Xn(!(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;J(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)||Es({plan:mD,reset:yD,count:bD}));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||Es({reset:hD});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="";Xn(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,J(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Es({reset:vD,onDirty:gD})));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:CD(e)}),e.uid=Uc("stageHandler"),r&&(e.visualType=r),e},t}();function hD(t){t.overallReset(t.ecModel,t.api,t.payload)}function vD(t){return t.overallProgress&&pD}function pD(){this.agent.dirty(),this.getDownstream().dirty()}function gD(){this.agent&&this.agent.dirty()}function mD(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function yD(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Cr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Oe(e,function(r,n){return hb(n)}):SD}var SD=hb(0);function hb(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 bD(t){return t.data.count()}function CD(t){ac=null;try{t(Js,vb)}catch{}return ac}var Js={},vb={},ac;pb(Js,Gv);pb(vb,KS);Js.eachSeriesByType=Js.eachRawSeriesByType=function(t){ac=t};Js.eachComponent=function(t){t.mainType==="series"&&t.subType&&(ac=t.subType)};function pb(t,e){for(var r in e.prototype)t[r]=Gr}var Gm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const xD={color:Gm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Gm]};var mr="#B9B8CE",jm="#100C2A",Zl=function(){return{axisLine:{lineStyle:{color:mr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Wm=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],gb={darkMode:!0,color:Wm,backgroundColor:jm,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:mr}},textStyle:{color:mr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:mr}},dataZoom:{borderColor:"#71708A",textStyle:{color:mr},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:mr}},timeline:{lineStyle:{color:mr},label:{color:mr},controlStyle:{color:mr,borderColor:mr}},calendar:{itemStyle:{color:jm},dayLabel:{color:mr},monthLabel:{color:mr},yearLabel:{color:mr}},timeAxis:Zl(),logAxis:Zl(),valueAxis:Zl(),categoryAxis:Zl(),line:{symbol:"circle"},graph:{color:Wm},gauge:{title:{color:mr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:mr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};gb.categoryAxis.splitLine.show=!1;var wD=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(He(e)){var a=Hn(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};J(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}(),Lh=["symbol","symbolSize","symbolRotate","symbolOffset"],Xm=Lh.concat(["symbolKeepAspect"]),TD={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<Lh.length;o++){var s=Lh[o],l=t.get(s);nt(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(Te({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}}},ID={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<Xm.length;s++){var l=Xm[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function AD(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 _D(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 ED(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}J([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=Te({},i),o.dispatchAction(Te(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Qa(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=Co(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:$e(d)?c.getName(d[0]):c.getName(d),selected:He(l)?l:Te({},l)})}})}function PD(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Qa("map","selectchanged",e,i,n),Qa("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Qa("map","selected",e,i,n),Qa("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Qa("map","unselected",e,i,n),Qa("pie","unselected",e,i,n))})}function Ql(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var MD=Math.round(Math.random()*9),RD=typeof Object.defineProperty=="function",DD=function(){function t(){this._id="__ec_inner_"+MD++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return RD?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}(),LD=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()}}),OD=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()}}),kD=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()}}),BD=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()}}),ND={line:ji,rect:Zt,roundRect:Zt,square:Zt,circle:hl,diamond:OD,pin:kD,arrow:BD,triangle:LD},FD={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}},Oh={};J(ND,function(t,e){Oh[e]=new t});var $D=yt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Wu(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=Oh[n];i||(n="rect",i=Oh[n]),FD[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function UD(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 Wi(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=bS(t.slice(8),new It(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Ov(t.slice(7),{},new It(e,r,n,i),o?"center":"cover"):l=new $D({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=UD,a&&l.setColor(a),l}function mb(t){return $e(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function yb(t,e){if(t!=null)return $e(t)||(t=[t,t]),[_t(t[0],e[0])||0,_t(Ke(t[1],t[0]),e[1])||0]}function Ea(t){return isFinite(t)}function zD(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=Ea(n)?n:0,i=Ea(i)?i:1,a=Ea(a)?a:0,o=Ea(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function HD(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=Ea(o)?o:.5,s=Ea(s)?s:.5,l=l>=0&&Ea(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Km(t,e,r){for(var n=e.type==="radial"?HD(t,e,r):zD(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function VD(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 Jl(t){return parseInt(t,10)}function Ym(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]||Jl(s[n])||Jl(t.style[n]))-(Jl(s[a])||0)-(Jl(s[o])||0)|0}function GD(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 Zv(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&GD(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=Oe(r,function(a){return a/i}),n/=i)}return[r,n]}var jD=new Gi(!0);function oc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Zm(t){return typeof t=="string"&&t!=="none"}function sc(t){var e=t.fill;return e!=null&&e!=="none"}function Qm(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 Jm(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 qm(t,e,r){var n=Av(e.image,e.__image,r);if(Mc(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)*Su),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function WD(t,e,r,n){var i,a=oc(r),o=sc(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||jD,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,b=void 0,A=void 0,M=void 0,C=void 0;(v||p)&&(C=e.getBoundingRect()),v&&(y=c?Km(t,d,C):e.__canvasFillGradient,e.__canvasFillGradient=y),p&&(b=c?Km(t,h,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),g&&(A=c||!e.__canvasFillPattern?qm(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=A),m&&(M=c||!e.__canvasStrokePattern?qm(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),v?t.fillStyle=y:g&&(A?t.fillStyle=A:o=!1),p?t.strokeStyle=b:m&&(M?t.strokeStyle=M:a=!1)}var I=e.getGlobalScale();f.setScale(I[0],I[1],e.segmentIgnoreThreshold);var P,S;t.setLineDash&&r.lineDash&&(i=Zv(e),P=i[0],S=i[1]);var T=!0;(u||c&io)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),T=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),T&&f.rebuildPath(t,l?s:1),P&&(t.setLineDash(P),t.lineDashOffset=S),n||(r.strokeFirst?(a&&Jm(t,r),o&&Qm(t,r)):(o&&Qm(t,r),a&&Jm(t,r))),P&&t.setLineDash([])}function XD(t,e,r){var n=e.__image=Av(r.image,e.__image,e,e.onload);if(!(!n||!Mc(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 KD(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Ui,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Zv(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(oc(r)&&t.strokeText(i,r.x,r.y),sc(r)&&t.fillText(i,r.x,r.y)):(sc(r)&&t.fillText(i,r.x,r.y),oc(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var ey=["shadowBlur","shadowOffsetX","shadowOffsetY"],ty=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Sb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Er(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Pa.opacity:o}(n||e.blend!==r.blend)&&(a||(Er(t,i),a=!0),t.globalCompositeOperation=e.blend||Pa.blend);for(var s=0;s<ey.length;s++){var l=ey[s];(n||e[l]!==r[l])&&(a||(Er(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Er(t,i),a=!0),t.shadowColor=e.shadowColor||Pa.shadowColor),a}function ry(t,e,r,n,i){var a=qs(e,i.inHover),o=n?null:r&&qs(r,i.inHover)||{};if(a===o)return!1;var s=Sb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Er(t,i),s=!0),Zm(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Er(t,i),s=!0),Zm(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Er(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||(Er(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<ty.length;f++){var c=ty[f],d=c[0];(n||a[d]!==o[d])&&(s||(Er(t,i),s=!0),t[d]=a[d]||c[1])}return s}function YD(t,e,r,n,i){return Sb(t,qs(e,i.inHover),r&&qs(r,i.inHover),n,i)}function bb(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 ZD(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),bb(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function QD(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 ny=1,iy=2,ay=3,oy=4;function JD(t){var e=sc(t),r=oc(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 Er(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function qs(t,e){return e&&t.__hoverStyle||t.style}function qD(t,e){kh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function kh(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~$n,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||VD(a,o))&&(o&&o.length&&(Er(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Er(t,r),t.save(),ZD(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&&JD(e.style);s||QD(i,u.transform)?(Er(t,r),bb(t,e)):f||Er(t,r);var c=qs(e,r.inHover);e instanceof yt?(r.lastDrawType!==ny&&(l=!0,r.lastDrawType=ny),ry(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),WD(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof Gs?(r.lastDrawType!==ay&&(l=!0,r.lastDrawType=ay),ry(t,e,u,l,r),KD(t,e,c)):e instanceof _n?(r.lastDrawType!==iy&&(l=!0,r.lastDrawType=iy),YD(t,e,u,l,r),XD(t,e,c)):e.getTemporalDisplayables&&(r.lastDrawType!==oy&&(l=!0,r.lastDrawType=oy),eL(t,e,r)),f&&n&&Er(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function eL(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(),kh(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(),kh(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var id=new DD,sy=new cl(100),ly=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Bh(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&id.delete(t);var a=id.get(t);if(a)return a;var o=ft(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,id.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,d=0;d<ly.length;++d){var h=o[ly[d]];if(h!=null&&!$e(h)&&!He(h)&&!Et(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=sy.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=xb(o.dashArrayX),m=tL(o.dashArrayY),y=Cb(o.symbol),b=rL(g),A=wb(m),M=!i&&ll.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},I=S(),P;M&&(M.width=I.width*r,M.height=I.height*r,P=M.getContext("2d")),T(),c&&sy.put(v,M||C),u.image=M,u.svgElement=C,u.svgWidth=I.width,u.svgHeight=I.height;function S(){for(var x=1,_=0,E=b.length;_<E;++_)x=Tg(x,b[_]);for(var R=1,_=0,E=y.length;_<E;++_)R=Tg(R,y[_].length);x*=R;var O=A*b.length*y.length;return{width:Math.max(1,Math.min(x,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function T(){P&&(P.clearRect(0,0,M.width,M.height),o.backgroundColor&&(P.fillStyle=o.backgroundColor,P.fillRect(0,0,M.width,M.height)));for(var x=0,_=0;_<m.length;++_)x+=m[_];if(x<=0)return;for(var E=-A,R=0,O=0,D=0;E<I.height;){if(R%2===0){for(var B=O/2%y.length,$=0,U=0,Q=0;$<I.width*2;){for(var Z=0,_=0;_<g[D].length;++_)Z+=g[D][_];if(Z<=0)break;if(U%2===0){var V=(1-o.symbolSize)*.5,te=$+g[D][U]*V,ie=E+m[R]*V,se=g[D][U]*o.symbolSize,W=m[R]*o.symbolSize,q=Q/2%y[B].length;ce(te,ie,se,W,y[B][q])}$+=g[D][U],++Q,++U,U===g[D].length&&(U=0)}++D,D===g.length&&(D=0)}E+=m[R],++O,++R,R===m.length&&(R=0)}function ce(me,be,ue,ve,Ce){var ae=i?1:r,fe=Wi(Ce,me*ae,be*ae,ue*ae,ve*ae,o.color,o.symbolKeepAspect);if(i){var Ae=n.painter.renderOneToVNode(fe);Ae&&C.children.push(Ae)}else qD(P,fe)}}}}function Cb(t){if(!t||t.length===0)return[["rect"]];if(He(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!He(t[r])){e=!1;break}if(e)return Cb([t]);for(var n=[],r=0;r<t.length;++r)He(t[r])?n.push([t[r]]):n.push(t[r]);return n}function xb(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 xb([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=Oe(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function tL(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=Oe(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function rL(t){return Oe(t,function(e){return wb(e)})}function wb(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function nL(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=Bh(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Bh(i,e)}}})}var Cn=new hi,Tb={};function iL(t,e){Tb[t]=e}function aL(t){return Tb[t]}var oL=1,sL=800,lL=900,uL=1e3,cL=2e3,fL=5e3,Ib=1e3,dL=1100,Qv=2e3,Ab=3e3,hL=4e3,Kc=4500,vL=4600,pL=5e3,gL=6e3,_b=7e3,mL={PROCESSOR:{FILTER:uL,SERIES_FILTER:sL,STATISTIC:fL},VISUAL:{LAYOUT:Ib,PROGRESSIVE_LAYOUT:dL,GLOBAL:Qv,CHART:Ab,POST_CHART_LAYOUT:vL,COMPONENT:hL,BRUSH:pL,CHART_ITEM:Kc,ARIA:gL,DECAL:_b}},lr="__flagInMainProcess",Tr="__pendingUpdate",ad="__needsUpdateStatus",uy=/^[a-zA-Z0-9_]+$/,od="__connectUpdateStatus",cy=0,yL=1,SL=2;function Eb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return Mb(this,t,e)}}function Pb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Mb(this,t,e)}}function Mb(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),hi.prototype[e].apply(t,r)}var Rb=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(hi),Db=Rb.prototype;Db.on=Pb("on");Db.off=Pb("off");var Ja,sd,ql,Ci,ld,ud,cd,Xo,Ko,fy,dy,fd,hy,eu,vy,Lb,Zr,py,Ob=function(t){De(e,t);function e(r,n,i){var a=t.call(this,new wD)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},He(n)&&(n=kb[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&VE(function(d){var h=Mt(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=xg(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ke(i.useDirtyRect,l),useCoarsePointer:Ke(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=ub(jt(u.flush,u),17),n=pt(n),n&&ZS(n,!0),a._theme=n,a._locale=UM(i.locale||MS),a._coordSysMgr=new jv;var f=a._api=vy(a);function c(d,h){return d.__prio-h.__prio}return bu(uc,c),bu(Nh,c),a._scheduler=new db(a,f,Nh,uc),a._messageCenter=new Rb,a._initEvents(),a.resize=jt(a.resize,a),u.animation.on("frame",a._onframe,a),fy(u,a),dy(u,a),Qd(a),a}return e.prototype._onframe=function(){if(!this._disposed){py(this);var r=this._scheduler;if(this[Tr]){var n=this[Tr].silent;this[lr]=!0;try{Ja(this),Ci.update.call(this,null,this[Tr].updateParams)}catch(l){throw this[lr]=!1,this[Tr]=null,l}this._zr.flush(),this[lr]=!1,this[Tr]=null,Xo.call(this,n),Ko.call(this,n)}else if(r.unfinished){var i=oL,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ud(this,a),r.performVisualTasks(a),eu(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[lr]){if(this._disposed){this.id;return}var a,o,s;if(We(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[lr]=!0,!this._model||n){var l=new vR(this._api),u=this._theme,f=this._model=new Gv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Fh);var c={seriesTransition:s,optionChanged:!0};if(i)this[Tr]={silent:a,updateParams:c},this[lr]=!1,this.getZr().wakeUp();else{try{Ja(this),Ci.update.call(this,null,c)}catch(d){throw this[Tr]=null,this[lr]=!1,d}this._ssr||this._zr.flush(),this[Tr]=null,this[lr]=!1,Xo.call(this,a),Ko.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||Ct.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(Ct.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return J(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;J(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 J(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(gy[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();J(Ms,function(b,A){if(b.group===i){var M=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(pt(r)),C=b.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),f=o(C.right,f),c=o(C.bottom,c),d.push({dom:M,left:C.left,top:C.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,p=c-u,g=ll.createCanvas(),m=xg(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return J(d,function(b){var A=b.left-l,M=b.top-u;y+='<g transform="translate('+A+","+M+')">'+b.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 Zt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),J(d,function(b){var A=new _n({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});m.add(A)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return ld(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return ld(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Df(i,r);return J(o,function(s,l){l.indexOf("Models")>=0&&J(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=Df(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?AD(s,l,n):_D(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;J(bL,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ql(s,function(v){var p=Mt(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=Te({},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)}),J(Ps,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),J(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),PD(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&&G1(this.getDom(),qv,"");var n=this,i=n._api,a=n._model;J(n._componentsViews,function(o){o.dispose(a,i)}),J(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 Ms[n.id]},e.prototype.resize=function(r){if(!this[lr]){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[Tr]&&(a==null&&(a=this[Tr].silent),i=!0,this[Tr]=null),this[lr]=!0;try{i&&Ja(this),Ci.update.call(this,{type:"resize",animation:Te({duration:0},r&&r.animation)})}catch(o){throw this[lr]=!1,o}this[lr]=!1,Xo.call(this,a),Ko.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(We(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!$h[r]){var i=$h[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=Te({},r);return n.type=Ps[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(We(n)||(n={silent:!!n}),!!lc[r.type]&&this._model){if(this[lr]){this._pendingActions.push(r);return}var i=n.silent;cd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),Xo.call(this,i),Ko.call(this,i)}},e.prototype.updateLabelLayout=function(){Cn.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(){Ja=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),sd(c,!0),sd(c,!1),d.plan()},sd=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,b=0;b<p.length;b++)p[b].__alive=!1;d?h.eachComponent(function(C,I){C!=="series"&&A(I)}):h.eachSeries(A);function A(C){var I=C.__requireNewView;C.__requireNewView=!1;var P="_ec_"+C.id+"_"+C.type,S=!I&&g[P];if(!S){var T=Hn(C.type),x=d?di.getClass(T.main,T.sub):Rr.getClass(T.sub);S=new x,S.init(h,y),g[P]=S,p.push(S),m.add(S.group)}C.__viewId=S.__id=P,S.__alive=!0,S.__model=C,S.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(S,C,h,y)}for(var b=0;b<p.length;){var M=p[b];M.__alive?b++:(!d&&M.renderTask.dispose(),m.remove(M.group),M.dispose(h,y),p.splice(b,1),g[M.__id]===M&&delete g[M.__id],M.__id=M.group.__ecComponentInfo=null)}},ql=function(c,d,h,v,p){var g=c._model;if(g.setUpdatePayload(h),!v){J([].concat(c._componentsViews).concat(c._chartsViews),M);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 b=h.excludeSeriesId,A;b!=null&&(A=it(),J(Cr(b),function(C){var I=Gn(C,null);I!=null&&A.set(I,!0)})),g&&g.eachComponent(y,function(C){var I=A&&A.get(C.id)!=null;if(!I)if(Qg(h))if(C instanceof Xr)h.type===Ma&&!h.notBlur&&!C.get(["emphasis","disabled"])&&CP(C,h,c._api);else{var P=Mv(C.mainType,C.componentIndex,h.name,c._api),S=P.focusSelf,T=P.dispatchers;h.type===Ma&&S&&!h.notBlur&&xh(C.mainType,C.componentIndex,c._api),T&&J(T,function(x){h.type===Ma?Zu(x):Qu(x)})}else Ih(h)&&C instanceof Xr&&(TP(C,h,c._api),Yg(C),Zr(c))},c),g&&g.eachComponent(y,function(C){var I=A&&A.get(C.id)!=null;I||M(c[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},c);function M(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,c._api,h)}},Ci={prepareAndUpdate:function(c){Ja(this),Ci.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),ud(this,h),g.update(h,v),r(h),m.performVisualTasks(h,c),fd(this,h,v,c,d);var y=h.get("backgroundColor")||"transparent",b=h.get("darkMode");p.setBackgroundColor(y),b!=null&&b!=="auto"&&p.setDarkMode(b),Cn.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 b=d.getViewOfComponentModel(y);if(b&&b.__alive)if(b.updateTransform){var A=b.updateTransform(y,h,v,c);A&&A.update&&p.push(b)}else p.push(b)}});var g=it();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var b=y.updateTransform(m,h,v,c);b&&b.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),eu(this,h,v,c,{},g),Cn.trigger("afterupdate",h,v)}},updateView:function(c){var d=this._model;d&&(d.setUpdatePayload(c),Rr.markUpdateMethod(c,"updateView"),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0}),fd(this,d,this._api,c,{}),Cn.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()}),Rr.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)}),Cn.trigger("afterupdate",h,this._api))},updateLayout:function(c){Ci.update.call(this,c)}},ld=function(c,d,h,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,y=Df(p,h),b=0;b<g.length;b++){var A=g[b];if(A[d]&&(m=A[d](p,y,v))!=null)return m}},ud=function(c,d){var h=c._chartsMap,v=c._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},cd=function(c,d){var h=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=lc[p],y=m.actionInfo,b=(y.update||"update").split(":"),A=b.pop(),M=b[0]!=null&&Hn(b[0]);this[lr]=!0;var C=[c],I=!1;c.batch&&(I=!0,C=Oe(c.batch,function(R){return R=ft(Te({},R),c),R.batch=null,R}));var P=[],S,T=Ih(c),x=Qg(c);if(x&&cS(this._api),J(C,function(R){if(S=m.action(R,h._model,h._api),S=S||Te({},R),S.type=y.event||S.type,P.push(S),x){var O=V1(c),D=O.queryOptionMap,B=O.mainTypeSpecified,$=B?D.keys()[0]:"series";ql(h,A,R,$),Zr(h)}else T?(ql(h,A,R,"series"),Zr(h)):M&&ql(h,A,R,M.main,M.sub)}),A!=="none"&&!x&&!T&&!M)try{this[Tr]?(Ja(this),Ci.update.call(this,c),this[Tr]=null):Ci[A].call(this,c)}catch(R){throw this[lr]=!1,R}if(I?S={type:y.event||p,escapeConnect:g,batch:P}:S=P[0],this[lr]=!1,!d){var _=this._messageCenter;if(_.trigger(S.type,S),T){var E={type:"selectchanged",escapeConnect:g,selected:IP(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};_.trigger(E.type,E)}}},Xo=function(c){for(var d=this._pendingActions;d.length;){var h=d.shift();cd.call(this,h,c)}},Ko=function(c){!c&&this.trigger("updated")},fy=function(c,d){c.on("rendered",function(h){d.trigger("rendered",h),c.animation.isFinished()&&!d[Tr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},dy=function(c,d){c.on("mouseover",function(h){var v=h.target,p=Ql(v,Th);p&&(xP(p,h,d._api),Zr(d))}).on("mouseout",function(h){var v=h.target,p=Ql(v,Th);p&&(wP(p,h,d._api),Zr(d))}).on("click",function(h){var v=h.target,p=Ql(v,function(y){return Mt(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Mt(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,b){var A=b.get("zlevel")||0,M=b.get("z")||0,C=b.getZLevelKey();v=v||!!C,(y==="series"?h:d).push({zlevel:A,z:M,idx:b.componentIndex,type:y,key:C})}),v){var p=d.concat(h),g,m;bu(p,function(y,b){return y.zlevel===b.zlevel?y.z-b.z:y.zlevel-b.zlevel}),J(p,function(y){var b=c.getComponent(y.type,y.idx),A=y.zlevel,M=y.key;g!=null&&(A=Math.max(g,A)),M?(A===g&&M!==m&&A++,m=M):m&&(A===g&&A++,m=""),g=A,b.setZLevel(A)})}}fd=function(c,d,h,v,p){n(d),hy(c,d,h,v,p),J(c._chartsViews,function(g){g.__alive=!1}),eu(c,d,h,v,p),J(c._chartsViews,function(g){g.__alive||g.remove(d,h)})},hy=function(c,d,h,v,p,g){J(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),f(y,m)})},eu=function(c,d,h,v,p,g){var m=c._scheduler;p=Te(p||{},{updatedSeries:d.getSeries()}),Cn.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(b){var A=c._chartsMap[b.__viewId];A.__alive=!0;var M=A.renderTask;m.updatePayload(M,v),u(b,A),g&&g.get(b.uid)&&M.dirty(),M.perform(m.getPerformArgs(M))&&(y=!0),A.group.silent=!!b.get("silent"),o(b,A),Yg(b)}),m.unfinished=y||m.unfinished,Cn.trigger("series:layoutlabels",d,h,p),Cn.trigger("series:transition",d,h,p),d.eachSeries(function(b){var A=c._chartsMap[b.__viewId];s(b,A),f(b,A)}),a(c,d),Cn.trigger("series:afterupdate",d,h,p)},Zr=function(c){c[ad]=!0,c.getZr().wakeUp()},py=function(c){c[ad]&&(c.getZr().storage.traverse(function(d){Is(d)||i(d)}),c[ad]=!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===Lc&&c.states.emphasis?d.push("emphasis"):c.hoverState===Dc&&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")&&!Ct.node&&!Ct.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(),b=0;b<y.length;b++)v=Math.max(l(y[b],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 A=c.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(A&&A.showAbove?1:-1))}return v}function u(c,d){d.eachRendered(function(h){if(!Is(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(Is(m))return;if(m instanceof yt&&MP(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var b=m.getTextContent(),A=m.getTextGuideLine();b&&(b.stateTransition=g),A&&(A.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){Zu(v,p),Zr(c)},h.prototype.leaveEmphasis=function(v,p){Qu(v,p),Zr(c)},h.prototype.enterBlur=function(v){bP(v),Zr(c)},h.prototype.leaveBlur=function(v){oS(v),Zr(c)},h.prototype.enterSelect=function(v){sS(v),Zr(c)},h.prototype.leaveSelect=function(v){lS(v),Zr(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}(KS))(c)},Lb=function(c){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[od]=v}}J(Ps,function(h,v){c._messageCenter.on(v,function(p){if(gy[c.group]&&c[od]!==cy){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];J(Ms,function(y){y!==c&&y.group===c.group&&m.push(y)}),d(m,cy),J(m,function(y){y[od]!==yL&&y.dispatchAction(g)}),d(m,SL)}})})}}(),e}(hi),Jv=Ob.prototype;Jv.on=Eb("on");Jv.off=Eb("off");Jv.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 bL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var lc={},Ps={},Nh=[],Fh=[],uc=[],kb={},$h={},Ms={},gy={},CL=+new Date-0,qv="_echarts_instance_";function xL(t,e,r){var n=!(r&&r.ssr);if(n){var i=wL(t);if(i)return i}var a=new Ob(t,e,r);return a.id="ec_"+CL++,Ms[a.id]=a,n&&G1(t,qv,a.id),Lb(a),Cn.trigger("afterinit",a),a}function wL(t){return Ms[d2(t,qv)]}function Bb(t,e){kb[t]=e}function Nb(t){Pt(Fh,t)<0&&Fh.push(t)}function Fb(t,e){tp(Nh,t,e,cL)}function TL(t){ep("afterinit",t)}function IL(t){ep("afterupdate",t)}function ep(t,e){Cn.on(t,e)}function Do(t,e,r){nt(e)&&(r=e,e="");var n=We(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!Ps[e]&&(Xn(uy.test(n)&&uy.test(e)),lc[n]||(lc[n]={action:r,actionInfo:t}),Ps[e]=n)}function AL(t,e){jv.register(t,e)}function _L(t,e){tp(uc,t,e,Ib,"layout")}function Fa(t,e){tp(uc,t,e,Ab,"visual")}var my=[];function tp(t,e,r,n,i){if((nt(e)||We(e))&&(r=e,e=n),!(Pt(my,r)>=0)){my.push(r);var a=db.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function $b(t,e){$h[t]=e}function EL(t,e,r){var n=aL("registerMap");n&&n(t,e,r)}var PL=VR;Fa(Qv,uD);Fa(Kc,cD);Fa(Kc,fD);Fa(Qv,TD);Fa(Kc,ID);Fa(_b,nL);Nb(ZS);Fb(lL,AR);$b("default",dD);Do({type:Ma,event:Ma,update:Ma},Gr);Do({type:Au,event:Au,update:Au},Gr);Do({type:xs,event:xs,update:xs},Gr);Do({type:_u,event:_u,update:_u},Gr);Do({type:ws,event:ws,update:ws},Gr);Bb("light",xD);Bb("dark",gb);function Yo(t){return t==null?0:t.length||1}function yy(t){return t}var ML=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||yy,this._newKeyGetter=i||yy,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=Yo(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=Yo(u),d=Yo(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=Yo(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=Yo(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),RL=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 DL(t,e){var r={},n=r.encode={},i=it(),a=[],o=[],s={};J(t.dimensions,function(d){var h=t.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;dd(n,v)[p]=d,h.isExtraCoord||(i.set(v,1),OL(h.type)&&(a[0]=d),dd(s,v)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}VS.each(function(g,m){var y=dd(n,m),b=h.otherDims[m];b!=null&&b!==!1&&(y[b]=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=Oe(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 RL(s,e),r}function dd(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function LL(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function OL(t){return!(t==="ordinal"||t==="time")}var Ru=function(){function t(e){this.otherDims={},e!=null&&Te(this,e)}return t}(),kL=Jt(),BL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ub=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=Vb(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Ke(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=qS(this.source),n=!Gb(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+=BL[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 zb(t){return t instanceof Ub}function Hb(t){for(var e=it(),r=0;r<(t||[]).length;r++){var n=t[r],i=We(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function Vb(t){var e=kL(t);return e.dimNameMap||(e.dimNameMap=Hb(t.dimensionsDefine))}function Gb(t){return t>30}var Zo=We,xi=Oe,NL=typeof Int32Array>"u"?Array:Int32Array,FL="e\0\0",Sy=-1,$L=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],UL=["_approximateExtent"],by,tu,Qo,Jo,hd,ru,vd,jb=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;zb(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=He(c)?new Ru({name:c}):c instanceof Ru?c:new Ru(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();J(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 Rh&&(a=e),!a){var o=this.dimensions,s=Wv(e)||Lr(e)?new eb(e,o.length):e;a=new Rh;var l=xi(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=DL(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&&vd(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!==Fi&&!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===dn;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&t2(c)&&(this.hasItemOption=!0),c){var d=c.name;a[f]==null&&d!=null&&(a[f]=Gn(d,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Gn(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)vd(this,f);by(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){Zo(e)?Te(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=Qo(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 tu(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(xi(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)?Sy: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=xi(Jo(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=xi(Jo(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 J(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=xi(Jo(e),this._getStoreDimIndex,this),s=ru(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=xi(Jo(e),this._getStoreDimIndex,this);this._store.modify(o,a?jt(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=ru(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.lttbDownSample=function(e,r){var n=ru(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 Qt(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new ML(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return tu(e,n)},function(n){return tu(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||{},Zo(e)?Te(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():Zo(a)&&(a=Te({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Zo(r)?Te(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Zo(e)?Te(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?Te(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;cP(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){J(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:xi(this.dimensions,this._getDimInfo,this),this.hostModel)),hd(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(pv(arguments)))})},t.internalField=function(){by=function(e){var r=e._invertedIndicesMap;J(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new NL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Sy;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Qo=function(e,r,n){return Gn(e._getCategory(r,n),null)},tu=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Qo(e,e._idDimIdx,r)),n==null&&(n=FL+r),n},Jo=function(e){return $e(e)||(e=e!=null?[e]:[]),e},ru=function(e){var r=new t(e._schema?e._schema:xi(e.dimensions,e._getDimInfo,e),e.hostModel);return hd(r,e),r},hd=function(e,r){J($L.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,J(UL,function(n){e[n]=pt(r[n])}),e._calculationInfo=Te({},r._calculationInfo)},vd=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=Qo(e,a,r)),l==null&&o!=null&&(i[r]=l=Qo(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 Wb(t,e){Wv(t)||(t=QS(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=it(),a=[],o=HL(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Gb(o),l=n===t.dimensionsDefine,u=l?Vb(t):Hb(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=it(f),d=new ab(o),h=0;h<d.length;h++)d[h]=-1;function v(S){var T=d[S];if(T<0){var x=n[S],_=We(x)?x:{name:x},E=new Ru,R=_.name;R!=null&&u.get(R)!=null&&(E.name=E.displayName=R),_.type!=null&&(E.type=_.type),_.displayName!=null&&(E.displayName=_.displayName);var O=a.length;return d[S]=O,E.storeDimIndex=S,a.push(E),E}return a[T]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(S,T){var x=Cr(S).slice();if(x.length===1&&!He(x[0])&&x[0]<0){c.set(T,!1);return}var _=c.set(T,[]);J(x,function(E,R){var O=He(E)?u.get(E):E;O!=null&&O<o&&(_[R]=O,g(v(O),T,R))})});var p=0;J(r,function(S){var T,x,_,E;if(He(S))T=S,E={};else{E=S,T=E.name;var R=E.ordinalMeta;E.ordinalMeta=null,E=Te({},E),E.ordinalMeta=R,x=E.dimsDef,_=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var O=c.get(T);if(O!==!1){if(O=Cr(O),!O.length)for(var D=0;D<(x&&x.length||1);D++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&O.push(p++)}J(O,function(B,$){var U=v(B);if(l&&E.type!=null&&(U.type=E.type),g(ft(U,E),T,$),U.name==null&&x){var Q=x[$];!We(Q)&&(Q={name:Q}),U.name=U.displayName=Q.name,U.defaultTooltip=Q.defaultTooltip}_&&ft(U.otherDims,_)})}});function g(S,T,x){VS.get(T)!=null?S.otherDims[T]=x:(S.coordDim=T,S.coordDimIndex=x,i.set(T,!0))}var m=e.generateCoord,y=e.generateCoordCount,b=y!=null;y=m?y||1:0;var A=m||"value";function M(S){S.name==null&&(S.name=S.coordDim)}if(s)J(a,function(S){M(S)}),a.sort(function(S,T){return S.storeDimIndex-T.storeDimIndex});else for(var C=0;C<o;C++){var I=v(C),P=I.coordDim;P==null&&(I.coordDim=VL(A,i,b),I.coordDimIndex=0,(!m||y<=0)&&(I.isExtraCoord=!0),y--),M(I),I.type==null&&(WS(t,C)===rr.Must||I.isExtraCoord&&(I.otherDims.itemName!=null||I.otherDims.seriesName!=null))&&(I.type="ordinal")}return zL(a),new Ub({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function zL(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 HL(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return J(e,function(a){var o;We(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function VL(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 GL=function(){function t(e){this.coordSysDims=[],this.axisMap=it(),this.categoryAxisMap=it(),this.coordSysName=e}return t}();function jL(t){var e=t.get("coordinateSystem"),r=new GL(e),n=WL[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var WL={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",In).models[0],a=t.getReferringComponents("yAxis",In).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),qa(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),qa(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",In).models[0];e.coordSysDims=["single"],r.set("single",i),qa(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",In).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),qa(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),qa(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();J(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),qa(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function qa(t){return t.get("type")==="category"}function XL(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;KL(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,d;if(J(a,function(y,b){He(y)&&(a[b]=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;J(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 KL(t){return!zb(t.schema)}function Ao(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function YL(t,e){return Ao(t,e)?t.getCalculationInfo("stackResultDimension"):e}function ZL(t,e){var r=t.get("coordinateSystem"),n=jv.get(r),i;return e&&e.coordSysDims&&(i=Oe(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=LL(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function QL(t,e,r){var n,i;return r&&J(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 Yc(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===dn;var o=jL(e),s=ZL(e,o),l=r.useEncodeDefaulter,u=nt(l)?l:l?Hr(tR,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Wb(i,f),d=QL(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=XL(e,{schema:c,store:h}),p=new jb(c,e);p.setCalculationInfo(v);var g=d!=null&&JL(i)?function(m,y,b,A){return A===d?b:this.defaultDimValueGetter(m,y,b,A)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function JL(t){if(t.sourceFormat===dn){var e=qL(t.data||[]);return!$e(fl(e))}}function qL(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Qn=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}();Pc(Qn);var eO=0,Uh=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++eO}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&Oe(n,tO);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(!He(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 tO(t){return We(t)&&t.value!=null?t.value:t+""}function zh(t){return t.type==="interval"||t.type==="log"}function rO(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=$1(a/e);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=Xb(o),l=i.niceTickExtent=[Vt(Math.ceil(t[0]/o)*o,s),Vt(Math.floor(t[1]/o)*o,s)];return nO(l,t),i}function pd(t){var e=Math.pow(10,wv(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Vt(r*e)}function Xb(t){return si(t)+2}function Cy(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function nO(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Cy(t,0,e),Cy(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Zc(t,e){return t>=e[0]&&t<=e[1]}function Qc(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Jc(t,e){return t*(e[1]-e[0])+e[0]}var rp=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 Uh({})),$e(i)&&(i=new Uh({categories:Oe(i,function(a){return We(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:He(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),Zc(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Qc(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(Jc(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}(Qn);Qn.registerClass(rp);var Sa=Vt,Xi=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 Zc(r,this._extent)},e.prototype.normalize=function(r){return Qc(r,this._extent)},e.prototype.scale=function(r){return Jc(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=Xb(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:Sa(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Sa(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:Sa(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=Sa(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=si(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Sa(r.value,i,!0);return XM(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=rO(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]=Sa(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Sa(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(Qn);Qn.registerClass(Xi);var Kb=typeof Float32Array<"u",iO=Kb?Float32Array:Array;function li(t){return $e(t)?Kb?new Float32Array(t):t:new iO(t)}var aO="__ec_stack_";function np(t){return t.get("stack")||aO+t.seriesIndex}function ip(t){return t.dim+t.index}function Yb(t,e){var r=[];return e.eachSeriesByType(t,function(n){Qb(n)&&r.push(n)}),r}function oO(t){var e={};J(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 Zb(t){var e=oO(t),r=[];return J(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=_t(n.get("barWidth"),s),p=_t(n.get("barMaxWidth"),s),g=_t(n.get("barMinWidth")||(Jb(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:ip(a),stackId:np(n)})}),sO(r)}function sO(t){var e={};J(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 J(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=_t(s,o),f=_t(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),J(a,function(m){var y=m.maxWidth,b=m.minWidth;if(m.width){var A=m.width;y&&(A=Math.min(A,y)),b&&(A=Math.max(A,b)),m.width=A,c-=A+f*A,d--}else{var A=h;y&&y<A&&(A=Math.min(y,c)),b&&b>A&&(A=b),A!==h&&(m.width=A,c-=A+f*A,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,p;J(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;J(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function lO(t,e,r){if(t&&e){var n=t[ip(e)];return n!=null&&r!=null?n[np(r)]:n}}function uO(t,e){var r=Yb(t,e),n=Zb(r);J(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=np(i),u=n[ip(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function cO(t){return{seriesType:t,plan:Yv(),reset:function(e){if(Qb(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=Ao(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=fO(i,a),v=Jb(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(b,A){for(var M=b.count,C=v&&li(M*3),I=v&&l&&li(M*3),P=v&&li(M),S=n.master.getRect(),T=d?S.width:S.height,x,_=A.getStore(),E=0;(x=b.next())!=null;){var R=_.get(c?g:o,x),O=_.get(s,x),D=h,B=void 0;c&&(B=+R-_.get(o,x));var $=void 0,U=void 0,Q=void 0,Z=void 0;if(d){var V=n.dataToPoint([R,O]);if(c){var te=n.dataToPoint([B,O]);D=te[0]}$=D,U=V[1]+y,Q=V[0]-D,Z=m,Math.abs(Q)<p&&(Q=(Q<0?-1:1)*p)}else{var V=n.dataToPoint([O,R]);if(c){var te=n.dataToPoint([O,B]);D=te[1]}$=V[0]+y,U=D,Q=m,Z=V[1]-D,Math.abs(Z)<p&&(Z=(Z<=0?-1:1)*p)}v?(C[E]=$,C[E+1]=U,C[E+2]=d?Q:Z,I&&(I[E]=d?S.x:$,I[E+1]=d?U:S.y,I[E+2]=T),P[x]=x):A.setItemLayout(x,{x:$,y:U,width:Q,height:Z}),E+=3}v&&A.setLayout({largePoints:C,largeDataIndices:P,largeBackgroundPoints:I,valueAxisHorizontal:d})}}}}}}function Qb(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Jb(t){return t.pipelineContext&&t.pipelineContext.large}function fO(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 dO=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},qb=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 LS(r.value,vm[GM(So(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 jM(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=SO(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]-=sn,n[1]+=sn),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]-sn}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=nu.length,l=Math.min(dO(nu,this._approxInterval,0,s),s-1);this._interval=nu[l][1],this._minLevelUnit=nu[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return Et(r)?r:+Vi(r)},e.prototype.contain=function(r){return Zc(this.parse(r),this._extent)},e.prototype.normalize=function(r){return Qc(this.parse(r),this._extent)},e.prototype.scale=function(r){return Jc(r,this._extent)},e.type="time",e}(Xi),nu=[["second",Fv],["minute",$v],["hour",As],["quarter-day",As*6],["half-day",As*12],["day",sn*1.2],["half-week",sn*3.5],["week",sn*7],["month",sn*31],["quarter",sn*95],["half-year",hm/2],["year",hm]];function hO(t,e,r,n){var i=Vi(e),a=Vi(r),o=function(v){return pm(i,v,n)===pm(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 vO(t,e){return t/=sn,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function pO(t){var e=30*sn;return t/=e,t>6?6:t>3?3:t>2?2:1}function gO(t){return t/=As,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function xy(t,e){return t/=e?$v:Fv,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function mO(t){return $1(t)}function yO(t,e,r){var n=new Date(t);switch(So(e)){case"year":case"month":n[kS(r)](0);case"day":n[BS(r)](1);case"hour":n[NS(r)](0);case"minute":n[FS(r)](0);case"second":n[$S(r)](0),n[US(r)](0)}return n.getTime()}function SO(t,e,r,n){var i=1e4,a=DS,o=0;function s(T,x,_,E,R,O,D){for(var B=new Date(x),$=x,U=B[E]();$<_&&$<=n[1];)D.push({value:$}),U+=T,B[R](U),$=B.getTime();D.push({value:$,notAdd:!0})}function l(T,x,_){var E=[],R=!x.length;if(!hO(So(T),n[0],n[1],r)){R&&(x=[{value:yO(new Date(n[0]),T,r)},{value:n[1]}]);for(var O=0;O<x.length-1;O++){var D=x[O].value,B=x[O+1].value;if(D!==B){var $=void 0,U=void 0,Q=void 0,Z=!1;switch(T){case"year":$=Math.max(1,Math.round(e/sn/365)),U=Uv(r),Q=WM(r);break;case"half-year":case"quarter":case"month":$=pO(e),U=bo(r),Q=kS(r);break;case"week":case"half-week":case"day":$=vO(e),U=zc(r),Q=BS(r),Z=!0;break;case"half-day":case"quarter-day":case"hour":$=gO(e),U=Ks(r),Q=NS(r);break;case"minute":$=xy(e,!0),U=Hc(r),Q=FS(r);break;case"second":$=xy(e,!1),U=Vc(r),Q=$S(r);break;case"millisecond":$=mO(e),U=Gc(r),Q=US(r);break}s($,D,B,U,Q,Z,E),T==="year"&&_.length>1&&O===0&&_.unshift({value:_[0].value-$})}}for(var O=0;O<E.length;O++)_.push(E[O]);return E}}for(var u=[],f=[],c=0,d=0,h=0;h<a.length&&o++<i;++h){var v=So(a[h]);if(VM(a[h])){l(a[h],u[u.length-1]||[],f);var p=a[h+1]?So(a[h+1]):null;if(v!==p){if(f.length){d=c,f.sort(function(T,x){return T.value-x.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 b=(n[1]-n[0])/e;if(c>b*1.5&&d>b/1.5||(u.push(g),c>b||t===a[h]))break}f=[]}}}for(var A=fr(Oe(u,function(T){return fr(T,function(x){return x.value>=n[0]&&x.value<=n[1]&&!x.notAdd})}),function(T){return T.length>0}),M=[],C=A.length-1,h=0;h<A.length;++h)for(var I=A[h],P=0;P<I.length;++P)M.push({value:I[P].value,level:C-h});M.sort(function(T,x){return T.value-x.value});for(var S=[],h=0;h<M.length;++h)(h===0||M[h].value!==M[h-1].value)&&S.push(M[h]);return S}Qn.registerClass(qb);var wy=Qn.prototype,Rs=Xi.prototype,bO=Vt,CO=Math.floor,xO=Math.ceil,iu=Math.pow,pn=Math.log,ap=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 Xi,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Rs.getTicks.call(this,r);return Oe(o,function(s){var l=s.value,u=Vt(iu(this.base,l));return u=l===i[0]&&this._fixMin?au(u,a[0]):u,u=l===i[1]&&this._fixMax?au(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(r,n){var i=pn(this.base);r=pn(Math.max(0,r))/i,n=pn(Math.max(0,n))/i,Rs.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=wy.getExtent.call(this);n[0]=iu(r,n[0]),n[1]=iu(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=au(n[0],a[0])),this._fixMax&&(n[1]=au(n[1],a[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=pn(r[0])/pn(n),r[1]=pn(r[1])/pn(n),wy.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=ZE(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(CO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Rs.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=pn(r)/pn(this.base),Zc(r,this._extent)},e.prototype.normalize=function(r){return r=pn(r)/pn(this.base),Qc(r,this._extent)},e.prototype.scale=function(r){return r=Jc(r,this._extent),iu(this.base,r)},e.type="log",e}(Qn),eC=ap.prototype;eC.getMinorTicks=Rs.getMinorTicks;eC.getLabel=Rs.getLabel;function au(t,e){return bO(t,si(e))}Qn.registerClass(ap);var wO=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=ou(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=ou(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(nt(s)?this._modelMaxNum=ou(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=ou(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=[Hi(u[0],1),Hi(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=$u(s)||$u(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[IO[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=TO[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),TO={min:"_determinedMin",max:"_determinedMax"},IO={min:"_dataMin",max:"_dataMax"};function AO(t,e,r){var n=t.rawExtentInfo;return n||(n=new wO(t,e,r),t.rawExtentInfo=n,n)}function ou(t,e){return e==null?null:$u(e)?NaN:t.parse(e)}function tC(t,e){var r=t.type,n=AO(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=Yb("bar",o),l=!1;if(J(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=Zb(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=lO(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;J(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;J(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 Ty(t,e){var r=e,n=tC(t,r),i=n.extent,a=r.get("splitNumber");t instanceof ap&&(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 EO(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new rp({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new qb({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Qn.getClass(e)||Xi)}}function PO(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Lo(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):He(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(MO(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function MO(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function RO(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof rp?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=Lo(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=DO(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function DO(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 op(t){var e=t.get("interval");return e??"auto"}function rC(t){return t.type==="category"&&op(t.getLabelModel())===0}function LO(t,e){var r={};return J(t.mapDimensionsAll(e),function(n){r[YL(t,n)]=!0}),gt(r)}var nC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),Iy=[],OO={registerPreprocessor:Nb,registerProcessor:Fb,registerPostInit:TL,registerPostUpdate:IL,registerUpdateLifecycle:ep,registerAction:Do,registerCoordinateSystem:AL,registerLayout:_L,registerVisual:Fa,registerTransform:PL,registerLoading:$b,registerMap:EL,registerImpl:iL,PRIORITY:mL,ComponentModel:Tt,ComponentView:di,SeriesModel:Xr,ChartView:Rr,registerComponentModel:function(t){Tt.registerClass(t)},registerComponentView:function(t){di.registerClass(t)},registerSeriesModel:function(t){Xr.registerClass(t)},registerChartView:function(t){Rr.registerClass(t)},registerSubTypeDefaulter:function(t,e){Tt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){zE(t,e)}};function La(t){if($e(t)){J(t,function(e){La(e)});return}Pt(Iy,t)>=0||(Iy.push(t),nt(t)&&(t={install:t}),t.install(OO))}var el=Jt();function iC(t,e){var r=Oe(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=Lo(t);return{labels:iC(t,e).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:t.scale.getLabel(i),tickValue:n}})}}return t.type==="category"?NO(t):$O(t)}function BO(t,e){var r=t.getTickModel().get("customValues");return r?{ticks:iC(t,r)}:t.type==="category"?FO(t,e):{ticks:Oe(t.scale.getTicks(),function(n){return n.value})}}function NO(t){var e=t.getLabelModel(),r=aC(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function aC(t,e){var r=oC(t,"labels"),n=op(e),i=sC(r,n);if(i)return i;var a,o;return nt(n)?a=cC(t,n):(o=n==="auto"?UO(t):n,a=uC(t,o)),lC(r,n,{labels:a,labelCategoryInterval:o})}function FO(t,e){var r=oC(t,"ticks"),n=op(e),i=sC(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),nt(n))a=cC(t,n,!0);else if(n==="auto"){var s=aC(t,t.getLabelModel());o=s.labelCategoryInterval,a=Oe(s.labels,function(l){return l.tickValue})}else o=n,a=uC(t,o,!0);return lC(r,n,{ticks:a,tickCategoryInterval:o})}function $O(t){var e=t.scale.getTicks(),r=Lo(t);return{labels:Oe(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function oC(t,e){return el(t)[e]||(el(t)[e]=[])}function sC(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function lC(t,e,r){return t.push({key:e,value:r}),r}function UO(t){var e=el(t).autoInterval;return e??(el(t).autoInterval=t.calculateCategoryInterval())}function zO(t){var e=HO(t),r=Lo(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=O1(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 b=Math.max(0,Math.floor(Math.min(m,y))),A=el(t.model),M=t.getExtent(),C=A.lastAutoInterval,I=A.lastTickCount;return C!=null&&I!=null&&Math.abs(C-b)<=1&&Math.abs(I-o)<=1&&C>b&&A.axisExtent0===M[0]&&A.axisExtent1===M[1]?b=C:(A.lastTickCount=o,A.lastAutoInterval=b,A.axisExtent0=M[0],A.axisExtent1=M[1]),b}function HO(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 uC(t,e,r){var n=Lo(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=rC(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 cC(t,e,r){var n=t.scale,i=Lo(t),a=[];return J(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 Ay=[0,1],fC=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(),_y(n,i.count())),gh(e,Ay,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),_y(n,i.count()));var a=gh(e,n,Ay,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=BO(this,r),i=n.ticks,a=Oe(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return VO(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=Oe(n,function(a){return Oe(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 _y(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function VO(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;J(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 dC(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 Di=new Ze,Nt=new Ze,nr=new Ze,Li=new Ze,zn=new Ze,cc=[],br=new Ze;function GO(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Di.fromArray(t[0]),Nt.fromArray(t[1]),nr.fromArray(t[2]),Ze.sub(Li,Di,Nt),Ze.sub(zn,nr,Nt);var r=Li.len(),n=zn.len();if(!(r<.001||n<.001)){Li.scale(1/r),zn.scale(1/n);var i=Li.dot(zn),a=Math.cos(e);if(a<i){var o=dC(Nt.x,Nt.y,nr.x,nr.y,Di.x,Di.y,cc);br.fromArray(cc),br.scaleAndAdd(zn,o/Math.tan(Math.PI-e));var s=nr.x!==Nt.x?(br.x-Nt.x)/(nr.x-Nt.x):(br.y-Nt.y)/(nr.y-Nt.y);if(isNaN(s))return;s<0?Ze.copy(br,Nt):s>1&&Ze.copy(br,nr),br.toArray(t[1])}}}}function jO(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Di.fromArray(t[0]),Nt.fromArray(t[1]),nr.fromArray(t[2]),Ze.sub(Li,Nt,Di),Ze.sub(zn,nr,Nt);var n=Li.len(),i=zn.len();if(!(n<.001||i<.001)){Li.scale(1/n),zn.scale(1/i);var a=Li.dot(e),o=Math.cos(r);if(a<o){var s=dC(Nt.x,Nt.y,nr.x,nr.y,Di.x,Di.y,cc);br.fromArray(cc);var l=Math.PI/2,u=Math.acos(zn.dot(e)),f=l+u-r;if(f>=l)Ze.copy(br,nr);else{br.scaleAndAdd(zn,s/Math.tan(Math.PI/2-f));var c=nr.x!==Nt.x?(br.x-Nt.x)/(nr.x-Nt.x):(br.y-Nt.y)/(nr.y-Nt.y);if(isNaN(c))return;c<0?Ze.copy(br,Nt):c>1&&Ze.copy(br,nr)}br.toArray(t[1])}}}}function gd(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=qd(n[0],n[1]),a=qd(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=df([],n[1],n[0],o/i),l=df([],n[1],n[2],o/a),u=df([],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 XO(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<Yu.length;l++){var u=Yu[l],f=e[u],c=u==="normal";if(f){var d=f.get("show"),h=c?s:Ke(i.states[u]&&i.states[u].ignore,s);if(h||!Ke(d,o)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0),n&&gd(n,!0,u,f);continue}n||(n=new Na,t.setTextGuideLine(n),!c&&(s||!o)&&gd(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),gd(n,!1,u,f)}}if(n){ft(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<cn.length;n++){var i=cn[n];r[i]=t.getModel([i,e])}return r}function YO(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 Ju(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 ZO(t,e,r,n,i,a){var o=t.length;if(o<2)return;t.sort(function(P,S){return P.rect[e]-S.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&&M(-f/o,0,o);var p=t[0],g=t[o-1],m,y;b(),m<0&&C(-m,.8),y<0&&C(y,.8),b(),A(m,y,1),A(y,m,-1),b(),m<0&&I(-m),y<0&&I(y);function b(){m=p.rect[e]-n,y=i-g.rect[e]-g.rect[r]}function A(P,S,T){if(P<0){var x=Math.min(S,-P);if(x>0){M(x*T,0,o);var _=x+P;_<0&&C(-_*T,1)}else C(-P*T,1)}}function M(P,S,T){P!==0&&(u=!0);for(var x=S;x<T;x++){var _=t[x],E=_.rect;E[e]+=P,_.label[e]+=P}}function C(P,S){for(var T=[],x=0,_=1;_<o;_++){var E=t[_-1].rect,R=Math.max(t[_].rect[e]-E[e]-E[r],0);T.push(R),x+=R}if(x){var O=Math.min(Math.abs(P)/x,S);if(P>0)for(var _=0;_<o-1;_++){var D=T[_]*O;M(D,0,_+1)}else for(var _=o-1;_>0;_--){var D=T[_-1]*O;M(-D,_,o)}}}function I(P){var S=P<0?-1:1;P=Math.abs(P);for(var T=Math.ceil(P/(o-1)),x=0;x<o-1;x++)if(S>0?M(T,0,x+1):M(-T,o-x-1,o),P-=T,P<=0)return}return u}function QO(t,e,r,n){return ZO(t,"y","height",e,r,n)}function JO(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 Ju(v.localRect,v.transform)),c||(c=new Ju(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 qO=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 Yc(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new Xt,i=Wi("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=Wi(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}(Xr);function sp(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Io(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Io(t,e,r[o]));return a.join(" ")}}function hC(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 lp=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=Wi(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=ek,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(){Zu(this.childAt(0))},e.prototype.downplay=function(){Qu(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):pr(d,h,s,n),js(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,Mr(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),b=y.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),v=b.get("disabled"),p=Mo(y),g=b.getShallow("scale"),m=y.getShallow("cursor")}var A=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(A||0)*Math.PI/180||0);var M=yb(r.getItemVisual(n,"symbolOffset"),i);M&&(s.x=M[0],s.y=M[1]),m&&s.attr("cursor",m);var C=r.getItemVisual(n,"style"),I=C.fill;if(s instanceof _n){var P=s.style;s.useStyle(Te({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},C))}else s.__isEmptyBrush?s.useStyle(Te({},C)):s.useStyle(C),s.style.decal=null,s.setColor(I,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var S=r.getItemVisual(n,"liftZ"),T=this._z2;S!=null?T==null&&(this._z2=s.z2,s.z2+=S):T!=null&&(s.z2=T,this._z2=null);var x=o&&o.useNameLabel;Po(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:_,inheritColor:I,defaultOpacity:C.opacity});function _(O){return x?r.getName(O):sp(r,O)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var E=s.ensureState("emphasis");E.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;E.scaleX=this._sizeX*R,E.scaleY=this._sizeY*R,this.setSymbolScale(1),xo(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=Mt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&qu(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();qu(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return mb(r.getItemVisual(n,"symbolSize"))},e}(Xt);function ek(t,e){this.parent.drift(t,e)}function md(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 Ey(t){return t!=null&&!We(t)&&(t={isIgnore:t}),t||{}}function Py(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:Mo(e),cursorStyle:e.get("cursor")}}var vC=function(){function t(e){this.group=new Xt,this._SymbolCtor=e||lp}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Ey(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Py(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(md(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(!md(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):pr(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=Py(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Ey(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(md(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){Nc(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 pC(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=tk(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=Oe(t.dimensions,function(v){return e.mapDimension(v)}),d=!1,h=e.getCalculationInfo("stackResultDimension");return Ao(e,c[0])&&(d=!0,c[0]=h),Ao(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 tk(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 gC(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 rk(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 nk(t,e,r,n,i,a,o,s){for(var l=rk(t,e),u=[],f=[],c=[],d=[],h=[],v=[],p=[],g=pC(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var A=l[b],M=!0,C=void 0,I=void 0;switch(A.cmd){case"=":C=A.idx*2,I=A.idx1*2;var P=m[C],S=m[C+1],T=y[I],x=y[I+1];(isNaN(P)||isNaN(S))&&(P=T,S=x),u.push(P,S),f.push(T,x),c.push(r[C],r[C+1]),d.push(n[I],n[I+1]),p.push(e.getRawIndex(A.idx1));break;case"+":var _=A.idx,E=g.dataDimsForPoint,R=i.dataToPoint([e.get(E[0],_),e.get(E[1],_)]);I=_*2,u.push(R[0],R[1]),f.push(y[I],y[I+1]);var O=gC(g,i,e,_);c.push(O[0],O[1]),d.push(n[I],n[I+1]),p.push(e.getRawIndex(_));break;case"-":M=!1}M&&(h.push(A),v.push(v.length))}v.sort(function(se,W){return p[se]-p[W]});for(var D=u.length,B=li(D),$=li(D),U=li(D),Q=li(D),Z=[],b=0;b<v.length;b++){var V=v[b],te=b*2,ie=V*2;B[te]=u[ie],B[te+1]=u[ie+1],$[te]=f[ie],$[te+1]=f[ie+1],U[te]=c[ie],U[te+1]=c[ie+1],Q[te]=d[ie],Q[te+1]=d[ie+1],Z[b]=h[V]}return{current:B,next:$,stackedOnCurrent:U,stackedOnNext:Q,status:Z}}var wi=Math.min,Ti=Math.max;function Ra(t,e){return isNaN(t)||isNaN(e)}function Hh(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(Ra(m,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,d=y;else{var b=m-u,A=y-f;if(b*b+A*A<.5){p+=a;continue}if(o>0){for(var M=p+a,C=e[M*2],I=e[M*2+1];C===m&&I===y&&g<n;)g++,M+=a,p+=a,C=e[M*2],I=e[M*2+1],m=e[p*2],y=e[p*2+1],b=m-u,A=y-f;var P=g+1;if(l)for(;Ra(C,I)&&P<n;)P++,M+=a,C=e[M*2],I=e[M*2+1];var S=.5,T=0,x=0,_=void 0,E=void 0;if(P>=n||Ra(C,I))h=m,v=y;else{T=C-u,x=I-f;var R=m-u,O=C-m,D=y-f,B=I-y,$=void 0,U=void 0;if(s==="x"){$=Math.abs(R),U=Math.abs(O);var Q=T>0?1:-1;h=m-Q*$*o,v=y,_=m+Q*U*o,E=y}else if(s==="y"){$=Math.abs(D),U=Math.abs(B);var Z=x>0?1:-1;h=m,v=y-Z*$*o,_=m,E=y+Z*U*o}else $=Math.sqrt(R*R+D*D),U=Math.sqrt(O*O+B*B),S=U/(U+$),h=m-T*o*(1-S),v=y-x*o*(1-S),_=m+T*o*S,E=y+x*o*S,_=wi(_,Ti(C,m)),E=wi(E,Ti(I,y)),_=Ti(_,wi(C,m)),E=Ti(E,wi(I,y)),T=_-m,x=E-y,h=m-T*$/U,v=y-x*$/U,h=wi(h,Ti(u,m)),v=wi(v,Ti(f,y)),h=Ti(h,wi(u,m)),v=Ti(v,wi(f,y)),T=m-h,x=y-v,_=m+T*U/$,E=y+x*U/$}t.bezierCurveTo(c,d,h,v,m,y),c=_,d=E}else t.lineTo(m,y)}u=m,f=y,p+=a}return g}var mC=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ik=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 mC},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Ra(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Ra(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Hh(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=Gi.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,b=void 0;switch(d){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],b=u?(r-s)/(h-s):(r-l)/(v-l),b<=1&&b>=0){var A=u?(v-l)*b+l:(h-s)*b+s;return u?[r,A]:[A,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 M=u?zu(s,h,p,m,r,f):zu(l,v,g,y,r,f);if(M>0)for(var C=0;C<M;C++){var I=f[C];if(I<=1&&I>=0){var A=u?ar(l,v,g,y,I):ar(s,h,p,m,I);return u?[r,A]:[A,r]}}s=m,l=y;break}}},e}(yt),ak=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(mC),ok=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 ak},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&&Ra(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Ra(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Hh(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Hh(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(yt);function yC(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 Zt({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;Mr(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function SC(t,e,r){var n=t.getArea(),i=Vt(n.r0,1),a=Vt(n.r,1),o=new Zi({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,Mr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function sk(t,e,r,n,i){if(t){if(t.type==="polar")return SC(t,e,r);if(t.type==="cartesian2d")return yC(t,e,r,n,i)}else return null;return null}function up(t,e){return t.type===e}function My(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function Ry(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 Dy(t,e){var r=Ry(t),n=r[0],i=r[1],a=Ry(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 Ly(t){return Et(t)?t:t?.5:0}function lk(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=li(n*2),a=0;a<n;a++){var o=gC(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Ii(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 uk(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=cE(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 ck(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=Oe(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var d=uk(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";J(d,function(b){b.offset=(b.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 SS(0,0,0,0,d,!0);return y[i]=p,y[i+"2"]=g,y}}}function fk(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&dk(a,e))){var o=e.mapDimension(a.dim),s={};return J(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function dk(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(lp.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function hk(t,e){return isNaN(t)||isNaN(e)}function vk(t){for(var e=t.length/2;e>0&&hk(t[e*2-2],t[e*2-1]);e--);return e-1}function Oy(t,e){return[t[e*2],t[e*2+1]]}function pk(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 bC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<cn.length;e++)if(t.get([cn[e],"endLabel","show"]))return!0;return!1}function yd(t,e,r,n){if(up(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=bC(n)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=yC(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 SC(e,r,n)}function gk(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 mk=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Xt,n=new vC;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"),b=!f.isEmpty(),A=f.get("origin"),M=pC(o,l,A),C=b&&lk(o,l,M),I=r.get("showSymbol"),P=r.get("connectNulls"),S=I&&!d&&fk(r,l,o),T=this._data;T&&T.eachItemGraphicEl(function(W,q){W.__temp&&(s.remove(W),T.setItemGraphicEl(q,null))}),I||v.remove(),s.add(m);var x=d?!1:r.get("step"),_;o&&o.getArea&&r.get("clip",!0)&&(_=o.getArea(),_.width!=null?(_.x-=.1,_.y-=.1,_.width+=.2,_.height+=.2):_.r0&&(_.r0-=.5,_.r+=.5)),this._clipShapeForSymbol=_;var E=ck(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&x===this._step))I&&v.updateData(l,{isIgnore:S,clipShape:_,disableAnimation:!0,getSymbolPoint:function(W){return[c[W*2],c[W*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,_),x&&(c=Ii(c,o,x,P),C&&(C=Ii(C,o,x,P))),p=this._newPolyline(c),b?g=this._newPolygon(c,C):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Ph(E)),m.setClipPath(yd(this,o,!0,r));else{b&&!g?g=this._newPolygon(c,C):g&&!b&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Ph(E));var R=m.getClipPath();if(R){var O=yd(this,o,!1,r);Mr(R,{shape:O.shape},r)}else m.setClipPath(yd(this,o,!0,r));I&&v.updateData(l,{isIgnore:S,clipShape:_,disableAnimation:!0,getSymbolPoint:function(W){return[c[W*2],c[W*2+1]]}}),(!My(this._stackedOnPoints,C)||!My(this._points,c))&&(y?this._doUpdateAnimation(l,C,o,i,x,A,P):(x&&(c=Ii(c,o,x,P),C&&(C=Ii(C,o,x,P))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:C})))}var D=r.getModel("emphasis"),B=D.get("focus"),$=D.get("blurScope"),U=D.get("disabled");if(p.useStyle(ft(u.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),wo(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}Mt(p).seriesIndex=r.seriesIndex,xo(p,B,$,U);var Z=Ly(r.get("smooth")),V=r.get("smoothMonotone");if(p.setShape({smooth:Z,smoothMonotone:V,connectNulls:P}),g){var te=l.getCalculationInfo("stackedOnSeries"),ie=0;g.useStyle(ft(f.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),te&&(ie=Ly(te.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:ie,smoothMonotone:V,connectNulls:P}),wo(g,r,"areaStyle"),Mt(g).seriesIndex=r.seriesIndex,xo(g,B,$,U)}var se=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=se)}),this._polyline.onHoverStateChange=se,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=c,this._step=x,this._valueOrigin=A,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){Mt(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=Co(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 lp(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 Rr.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Co(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 Rr.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Wg(this._polyline,r),n&&Wg(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new ik({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 ok({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,b=void 0;if(i)if(o){var A=i,M=n.pointToCoord(g);a?(m=A.startAngle,y=A.endAngle,b=-M[1]/180*Math.PI):(m=A.r0,y=A.r,b=M[0])}else{var C=i;a?(m=C.x,y=C.x+C.width,b=h.x):(m=C.y+C.height,y=C.y,b=h.y)}var I=y===m?0:(b-m)/(y-m);l&&(I=1-I);var P=nt(c)?c(v):f*I+d,S=p.getSymbolPath(),T=S.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:P}),S.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(bC(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 Wr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=vk(l);f>=0&&(Po(s,Mo(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,d,h){return h!=null?hC(o,h):sp(o,c)},enableTextSetter:!0},gk(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,b=n.shape,A=y?m?b.x:b.y+b.height:m?b.x+b.width:b.y,M=(m?p:0)*(y?-1:1),C=(m?0:-p)*(y?-1:1),I=m?"x":"y",P=pk(c,A,I),S=P.range,T=S[1]-S[0],x=void 0;if(T>=1){if(T>1&&!h){var _=Oy(c,S[0]);u.attr({x:_[0]+M,y:_[1]+C}),o&&(x=d.getRawValue(S[0]))}else{var _=f.getPointOn(A,I);_&&u.attr({x:_[0]+M,y:_[1]+C});var E=d.getRawValue(S[0]),R=d.getRawValue(S[1]);o&&(x=h2(i,v,E,R,P.t))}a.lastFrameIndex=S[0]}else{var O=r===1||a.lastFrameIndex>0?S[0]:0,_=Oy(c,O);o&&(x=d.getRawValue(O)),u.attr({x:_[0]+M,y:_[1]+C})}if(o){var D=$c(u);typeof D.setLabelText=="function"&&D.setLabelText(x)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,d=nk(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=Ii(d.current,i,o,l),v=Ii(d.stackedOnCurrent,i,o,l),p=Ii(d.next,i,o,l),g=Ii(d.stackedOnNext,i,o,l)),Dy(h,p)>3e3||f&&Dy(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(),pr(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),pr(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],b=d.status,A=0;A<b.length;A++){var M=b[A].cmd;if(M==="="){var C=r.getItemGraphicEl(b[A].idx1);C&&y.push({el:C,ptIdx:A})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var I=u.shape.__points,P=0;P<y.length;P++){var S=y[P].el,T=y[P].ptIdx*2;S.x=I[T],S.y=I[T+1],S.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}(Rr);function cp(t,e){return{seriesType:t,plan:Yv(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=Oe(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ao(n,s[0])&&(s[0]=u),Ao(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&&li(p*l),m=[],y=[],b=h.start,A=0;b<h.end;b++){var M=void 0;if(l===1){var C=f.get(c,b);M=i.dataToPoint(C,null,y)}else m[0]=f.get(c,b),m[1]=f.get(d,b),M=i.dataToPoint(m,null,y);o?(g[A++]=M[0],g[A++]=M[1]):v.setItemLayout(b,M.slice())}o&&v.setLayout("points",g)}}}}}}var yk={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]}},Sk=function(t){return Math.round(t.length/2)};function CC(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;He(a)?v=yk[a]:nt(a)&&(v=a),v&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,v,Sk))}}}}}function bk(t){t.registerChartView(mk),t.registerSeriesModel(qO),t.registerLayout(cp("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,CC("line"))}var Vh=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 Yc(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)J(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,b=void 0,A=1,M=0;M<v.length;M++){var C=v[M].coord,I=M===v.length-1?v[M-1].tickValue+A:v[M].tickValue;if(I===g){b=C;break}else if(I<g)y=C;else if(y!=null&&I>g){b=(C+y)/2;break}M===1&&(A=I-v[0].tickValue)}b==null&&(y?y&&(b=v[v.length-1].coord):b=v[0].coord),s[h]=d.toGlobalCoord(b)}});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}(Xr);Xr.registerClass(Vh);var Ck=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 Yc(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=PS(Vh.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}(Vh),xk=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}(),ky=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 xk},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 wk(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Wu(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,b=Math.cos,A=Math.sin,M=f+d*b(p),C=c+d*A(p),I="left",P="top";switch(s){case"startArc":M=f+(h-l)*b(m),C=c+(h-l)*A(m),I="center",P="top";break;case"insideStartArc":M=f+(h+l)*b(m),C=c+(h+l)*A(m),I="center",P="bottom";break;case"startAngle":M=f+v*b(p)+su(p,l+y,!1),C=c+v*A(p)+lu(p,l+y,!1),I="right",P="middle";break;case"insideStartAngle":M=f+v*b(p)+su(p,-l+y,!1),C=c+v*A(p)+lu(p,-l+y,!1),I="left",P="middle";break;case"middle":M=f+v*b(m),C=c+v*A(m),I="center",P="middle";break;case"endArc":M=f+(d+l)*b(m),C=c+(d+l)*A(m),I="center",P="bottom";break;case"insideEndArc":M=f+(d-l)*b(m),C=c+(d-l)*A(m),I="center",P="top";break;case"endAngle":M=f+v*b(g)+su(g,l+y,!0),C=c+v*A(g)+lu(g,l+y,!0),I="left",P="middle";break;case"insideEndAngle":M=f+v*b(g)+su(g,-l+y,!0),C=c+v*A(g)+lu(g,-l+y,!0),I="right",P="middle";break;default:return Wu(n,i,a)}return n=n||{},n.x=M,n.y=C,n.align=I,n.verticalAlign=P,n}}function Tk(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 su(t,e,r){return e*Math.sin(t)*(r?-1:1)}function lu(t,e,r){return e*Math.cos(t)*(r?1:-1)}function cs(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:Oe(n,function(a){return Hi(a,i)})}}var Sd=Math.max,bd=Math.min;function Ik(t,e){var r=t.getArea&&t.getArea();if(up(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 Ak=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){Nc(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=_k(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,p=Ik(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),b=y.get("borderRadius")||0,A=[],M=this._backgroundEls,C=a&&a.isInitSort,I=a&&a.type==="changeAxisOrder";function P(x){var _=uu[u.type](s,x),E=Ok(u,c,_);return E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",b):E.setShape("cornerRadius",b),A[x]=E,E}s.diff(l).add(function(x){var _=s.getItemModel(x),E=uu[u.type](s,x,_);if(m&&P(x),!(!s.hasValue(x)||!Uy[u.type](E))){var R=!1;v&&(R=By[u.type](p,E));var O=Ny[u.type](r,s,x,E,c,d,f.model,!1,g);h&&(O.forceLabelAnimation=!0),zy(O,s,x,_,E,r,c,u.type==="polar"),C?O.attr({shape:E}):h?Fy(h,d,O,E,x,c,!1,!1):Mr(O,{shape:E},r,x),s.setItemGraphicEl(x,O),o.add(O),O.ignore=R}}).update(function(x,_){var E=s.getItemModel(x),R=uu[u.type](s,x,E);if(m){var O=void 0;M.length===0?O=P(_):(O=M[_],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",b):O.setShape("cornerRadius",b),A[x]=O);var D=uu[u.type](s,x),B=wC(c,D,u);pr(O,{shape:B},d,x)}var $=l.getItemGraphicEl(_);if(!s.hasValue(x)||!Uy[u.type](R)){o.remove($);return}var U=!1;if(v&&(U=By[u.type](p,R),U&&o.remove($)),$?js($):$=Ny[u.type](r,s,x,R,c,d,f.model,!!$,g),h&&($.forceLabelAnimation=!0),I){var Q=$.getTextContent();if(Q){var Z=$c(Q);Z.prevValue!=null&&(Z.prevValue=Z.value)}}else zy($,s,x,E,R,r,c,u.type==="polar");C?$.attr({shape:R}):h?Fy(h,d,$,R,x,c,!0,I):pr($,{shape:R},r,x,null),s.setItemGraphicEl(x,$),$.ignore=U,o.add($)}).remove(function(x){var _=l.getItemGraphicEl(x);_&&ec(_,r,x)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Xt);S.removeAll();for(var T=0;T<A.length;++T)S.add(A[T]);o.add(S),this._backgroundEls=A,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),Vy(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Vy(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&sk(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:Oe(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){ec(a,r,Mt(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}(Rr),By={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=Sd(e.x,t.x),s=bd(e.x+e.width,i),l=Sd(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=Sd(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}},Ny={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Zt({shape:Te({},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?ky:Zi,f=new u({shape:n,z2:1});f.name="item";var c=xC(i);if(f.calculateTextPosition=wk(c,{isRoundCap:u===ky}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?n.r0:n.startAngle,v[h]=n[h],(s?pr:Mr)(f,{shape:v},a)}return f}};function _k(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 Fy(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?pr:Mr)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?pr:Mr)(r,{shape:u},f,i)}function $y(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var Ek=["x","y","width","height"],Pk=["cx","cy","r","startAngle","endAngle"],Uy={cartesian2d:function(t){return!$y(t,Ek)},polar:function(t){return!$y(t,Pk)}},uu={cartesian2d:function(t,e,r){var n=t.getItemLayout(e),i=r?Rk(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 Mk(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function xC(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 zy(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=cs(n.getModel("itemStyle"),f,!0);Te(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=Mo(n);Po(t,v,{labelFetcher:a,labelDataIndex:r,defaultText:sp(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,Tk(t,g==="outside"?h:g,xC(o),n.get(["label","rotate"]))}EM(p,v,a.getRawValue(r),function(y){return hC(e,y)});var m=n.getModel(["emphasis"]);xo(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),wo(t,n),Mk(i)&&(t.style.fill="none",t.style.stroke="none",J(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Rk(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 Dk=function(){function t(){}return t}(),Hy=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 Dk},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 Vy(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 Hy({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 Hy({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")),Mt(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",Gy),c.on("mousemove",Gy)),r&&r.push(c)}var Gy=ub(function(t){var e=this,r=Lk(e,t.offsetX,t.offsetY);Mt(e).dataIndex=r>=0?r:null},30,!1);function Lk(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 wC(t,e,r){if(up(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 Ok(t,e,r){var n=t.type==="polar"?Zi:Zt;return new n({shape:wC(e,r,t),silent:!0,z2:0})}function kk(t){t.registerChartView(Ak),t.registerSeriesModel(Ck),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Hr(uO,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,cO("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,CC("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 jy=Math.PI*2,cu=Math.PI/180;function TC(t,e){return ic(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function IC(t,e){var r=TC(t,e),n=t.get("center"),i=t.get("radius");$e(i)||(i=[0,i]);var a=_t(r.width,e.getWidth()),o=_t(r.height,e.getHeight()),s=Math.min(a,o),l=_t(i[0],s/2),u=_t(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=_t(n[0],a)+r.x,c=_t(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function Bk(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=TC(n,r),s=IC(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,d=-n.get("startAngle")*cu,h=n.get("endAngle"),v=n.get("padAngle")*cu;h=h==="auto"?d-jy:-h*cu;var p=n.get("minAngle")*cu,g=p+v,m=0;i.each(a,function(B){!isNaN(B)&&m++});var y=i.getSum(a),b=Math.PI/(y||m)*2,A=n.get("clockwise"),M=n.get("roseType"),C=n.get("stillShowZeroSum"),I=i.getDataExtent(a);I[0]=0;var P=A?1:-1,S=[d,h],T=P*v/2;Z1(S,!A),d=S[0],h=S[1];var x=AC(n);x.startAngle=d,x.endAngle=h,x.clockwise=A;var _=Math.abs(h-d),E=_,R=0,O=d;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(B,$){var U;if(isNaN(B)){i.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:l,cy:u,r0:c,r:M?NaN:f});return}M!=="area"?U=y===0&&C?b:B*b:U=_/m,U<g?(U=g,E-=g):R+=B;var Q=O+P*U,Z=0,V=0;v>U?(Z=O+P*U/2,V=Z):(Z=O+T,V=Q-T),i.setItemLayout($,{angle:U,startAngle:Z,endAngle:V,clockwise:A,cx:l,cy:u,r0:c,r:M?gh(B,I,[c,f]):f}),O=Q}),E<jy&&m)if(E<=.001){var D=_/m;i.each(a,function(B,$){if(!isNaN(B)){var U=i.getItemLayout($);U.angle=D;var Q=0,Z=0;D<v?(Q=d+P*($+1/2)*D,Z=Q):(Q=d+P*$*D+T,Z=d+P*($+1)*D-T),U.startAngle=Q,U.endAngle=Z}})}else b=E/R,O=d,i.each(a,function(B,$){if(!isNaN(B)){var U=i.getItemLayout($),Q=U.angle===g?g:B*b,Z=0,V=0;Q<v?(Z=O+P*Q/2,V=Z):(Z=O+T,V=O+P*Q-T),U.startAngle=Z,U.endAngle=V,O+=P*Q}})})}var AC=Jt();function _C(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 Nk=Math.PI/180;function Wy(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 b=p.list[y],A=Math.abs(b.label.y-r),M=n+b.len,C=M*M,I=Math.sqrt((1-Math.abs(A*A/m))*C),P=e+(I+b.len2)*i,S=P-b.label.x,T=b.targetTextWidth-S*i;EC(b,T,!0),b.label.x=P}}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 b=p[y],A=b.label.y>r?m:g,M=Math.abs(b.label.y-r);if(M>=A.maxY){var C=b.label.x-e-b.len2*i,I=n+b.len,P=Math.abs(C)<I?Math.sqrt(M*M/(1-C*C/I/I)):I;A.rB=P,A.maxY=M}A.list.push(b)}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}QO(t,l,l+o)&&c(t)}function Fk(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;Cd(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(!Cd(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,EC(v,g)}}Wy(u,e,r,n,1,i,a,o,s,c),Wy(l,e,r,n,-1,i,a,o,s,f);for(var d=0;d<t.length;d++){var v=t[d];if(!Cd(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,b=y?y[1]+y[3]:0,A=h.style.backgroundColor?0:b,M=v.rect.width+A,C=p[1][0]-p[2][0];m?h.x<e?p[2][0]=o+v.edgeDistance+M+v.labelDistance:p[2][0]=o+i-v.edgeDistance-M-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]+C),p[1][1]=p[2][1]=h.y}}}function EC(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 Cd(t){return t.position==="center"}function $k(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*Nk,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var I in C.states)if(C.states[I].ignore===!1)return!0;return!1}e.each(function(C){var I=e.getItemGraphicEl(C),P=I.shape,S=I.getTextContent(),T=I.getTextGuideLine(),x=e.getItemModel(C),_=x.getModel("label"),E=_.get("position")||x.get(["emphasis","label","position"]),R=_.get("distanceToLabelLine"),O=_.get("alignTo"),D=_t(_.get("edgeDistance"),u),B=_.get("bleedMargin"),$=x.getModel("labelLine"),U=$.get("length");U=_t(U,u);var Q=$.get("length2");if(Q=_t(Q,u),Math.abs(P.endAngle-P.startAngle)<o){J(S.states,h),S.ignore=!0,T&&(J(T.states,h),T.ignore=!0);return}if(v(S)){var Z=(P.startAngle+P.endAngle)/2,V=Math.cos(Z),te=Math.sin(Z),ie,se,W,q;n=P.cx,i=P.cy;var ce=E==="inside"||E==="inner";if(E==="center")ie=P.cx,se=P.cy,q="center";else{var me=(ce?(P.r+P.r0)/2*V:P.r*V)+n,be=(ce?(P.r+P.r0)/2*te:P.r*te)+i;if(ie=me+V*3,se=be+te*3,!ce){var ue=me+V*(U+l-P.r),ve=be+te*(U+l-P.r),Ce=ue+(V<0?-1:1)*Q,ae=ve;O==="edge"?ie=V<0?f+D:f+u-D:ie=Ce+(V<0?-R:R),se=ae,W=[[me,be],[ue,ve],[Ce,ae]]}q=ce?"center":O==="edge"?V>0?"right":"left":V>0?"left":"right"}var fe=Math.PI,Ae=0,Re=_.get("rotate");if(Et(Re))Ae=Re*(fe/180);else if(E==="center")Ae=0;else if(Re==="radial"||Re===!0){var st=V<0?-Z+fe:-Z;Ae=st}else if(Re==="tangential"&&E!=="outside"&&E!=="outer"){var vt=Math.atan2(V,te);vt<0&&(vt=fe*2+vt);var mt=te>0;mt&&(vt=fe+vt),Ae=vt-fe}if(a=!!Ae,S.x=ie,S.y=se,S.rotation=Ae,S.setStyle({verticalAlign:"middle"}),ce){S.setStyle({align:q});var Lt=S.states.select;Lt&&(Lt.x+=S.x,Lt.y+=S.y)}else{var Fe=S.getBoundingRect().clone();Fe.applyTransform(S.getComputedTransform());var Kt=(S.style.margin||0)+2.1;Fe.y-=Kt/2,Fe.height+=Kt,r.push({label:S,labelLine:T,position:E,len:U,len2:Q,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new Ze(V,te),linePoints:W,textAlign:q,labelDistance:R,labelAlignTo:O,edgeDistance:D,bleedMargin:B,rect:Fe,unconstrainedWidth:Fe.width,labelStyleWidth:S.style.width})}I.setTextConfig({inside:ce})}}),!a&&t.get("avoidLabelOverlap")&&Fk(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,b=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),b&&(J(m.states,h),m.ignore=!0);var A=m.states.select;A&&(A.x+=m.x,A.y+=m.y)}if(y){var M=g.linePoints;b||!M?(J(y.states,h),y.ignore=!0):(GO(M,g.minTurnAngle),jO(M,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:M}),m.__hostTarget.textGuideLineConfig={anchor:new Ze(M[0][0],M[0][1])})}}}var Uk=function(t){De(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Wr;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=Te(cs(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?(Mr(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,Mr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Mr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,pr(o,{shape:{endAngle:f.endAngle}},s,n))}else js(o),pr(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),wo(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=Te({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},cs(u.getModel("itemStyle"),f)),Te(o.ensureState("select"),{x:p,y:g,shape:cs(l.getModel(["select","itemStyle"]),f)}),Te(o.ensureState("blur"),{shape:cs(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),b=o.getTextContent();y&&Te(y.ensureState("select"),{x:p,y:g}),Te(b.ensureState("select"),{x:p,y:g}),xo(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;Po(a,Mo(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 Na,this.setTextGuideLine(h)),XO(this,KO(o),{stroke:u,opacity:gs(s.get(["lineStyle","opacity"]),f,1)})}},e}(Zi),zk=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=AC(r),h=new Zi({shape:Te(IC(r,i),d)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var p=new Uk(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);ec(p,r,v)}).execute(),$k(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}(Rr);function PC(t,e,r){e=$e(e)&&{coordDimensions:e}||Te({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Wb(n,e).dimensions,a=new jb(i,t);return a.initData(n,r),a}var MC=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}(),Hk=Jt(),Vk=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 MC(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 PC(this,{coordDimensions:["value"],encodeDefaulter:Hr(rR,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=Hk(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=XE(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){mh(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}(Xr);function Gk(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 jk(t){t.registerChartView(zk),t.registerSeriesModel(Vk),ED("pie",t.registerAction),t.registerLayout(Hr(Bk,"pie")),t.registerProcessor(_C("pie")),t.registerProcessor(Gk("pie"))}var Wk=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 Yc(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}(Xr),RC=4,Xk=function(){function t(){}return t}(),Kk=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 Xk},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]<RC,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),Yk=function(){function t(){this.group=new Xt}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 Kk({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=Wi(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<RC;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=Mt(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}(),Zk=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=cp("").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 Yk:new vC,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}(Rr),Qk=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),Gh=function(t){De(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",In).models[0]},e.type="cartesian2dAxis",e}(Tt);An(Gh,nC);var DC={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)"]}}},Jk=xt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},DC),fp=xt({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}}},DC),qk=xt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fp),eB=ft({logBase:10},fp);const LC={category:Jk,value:fp,time:qk,log:eB};var tB={value:1,category:1,time:1,log:1};function Xy(t,e,r,n){J(tB,function(i,a){var o=xt(xt({},LC[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=Ys(this),h=d?jc(f):{},v=c.getTheme();xt(f,v.get(a+"Axis")),xt(f,this.getDefaultOption()),f.type=Ky(f),d&&To(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Uh.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",Ky)}function Ky(t){return t.type||(t.data?"category":"value")}var rB=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 Oe(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),fr(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}(),jh=["x","y"];function Yy(t){return t.type==="interval"||t.type==="time"}var nB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=jh,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Yy(r)||!Yy(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=yv([],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 ln(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 ln(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}(rB),iB=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}(fC);function aB(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),Fs(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 Zy(t){return t.get("coordinateSystem")==="cartesian2d"}function Qy(t){var e={xAxisModel:null,yAxisModel:null};return J(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,In).models[0];e[n]=a}),e}var xd=Math.log;function OC(t,e,r){var n=Xi.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=tC(t,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(t.type==="log"){var d=xd(t.base);u=[xd(u[0])/d,xd(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=pd(v),g=u[0]+v*o;else if(c)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=pd(v),p=u[1]-v*o;else{var m=t.getTicks().length-1;m>o&&(v=pd(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 b=(i[0].value-a[0].value)/s,A=(i[o].value-a[o].value)/s;n.setExtent.call(t,p+v*b,g+v*A),n.setInterval.call(t,v),(b||A)&&n.setNiceExtent.call(t,p+v,g-v)}var oB=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jh,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;zh(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Ty(p,v),zh(p)&&(s=h))}f.length&&(s||(s=f.pop(),Ty(s.scale,s.model)),J(f,function(g){OC(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};J(n.x,function(o){Jy(n,"y",o,a)}),J(n.y,function(o){Jy(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=ic(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(J(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=RO(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()),J(this._coordsList,function(u){u.calcAffineTransform()});function l(){J(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]),sB(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]}We(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",In).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",In).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Pt(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,J(s.x,function(f,c){J(s.y,function(d,h){var v="x"+c+"y"+h,p=new nB(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(wd(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 iB(f,EO(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){J(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(Zy(i)){var a=Qy(i),o=a.xAxisModel,s=a.yAxisModel;if(!wd(o,r)||!wd(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){J(LO(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return J(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);Pt(r,a)<0&&r.push(a),Pt(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(Zy(i)){var a=Qy(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},t.dimensions=jh,t}();function wd(t,e){return t.getCoordSysModel()===e}function Jy(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)qy(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&qy(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function qy(t){return t&&t.type!=="category"&&t.type!=="time"&&PO(t)}function sB(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 Oi=Math.PI,$i=function(){function t(e,r){this.group=new Xt,this.opt=r,this.axisModel=e,ft(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Xt({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!e0[e]},t.prototype.add=function(e){e0[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var i=F1(r-e),a,o;return Xu(i)?(o=n>0?"top":"bottom",a="center"):Xu(i-Oi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Oi?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}(),e0={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&&(ln(s,s,o),ln(l,l,o));var f=Te({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ji({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ws(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"]);He(d)&&(d=[d,d]),(He(h)||Et(h))&&(h=[h,h]);var v=yb(e.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];J([{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 b=Wi(d[y],-p/2,-g/2,p,g,f.stroke,!0),A=m.r+m.offset,M=u?l:s;b.attr({rotation:m.rotate,x:M[0]+A*Math.cos(t.rotation),y:M[1]-A*Math.sin(t.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(t,e,r,n){var i=cB(r,n,e,t),a=dB(r,n,e,t);if(uB(e,a,i),fB(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=YO(Oe(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));JO(o)}},axisName:function(t,e,r,n){var i=Fs(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*Oi/180);var v;r0(a)?d=$i.innerTextLayout(t.rotation,h??t.rotation,o):(d=lB(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=Fs(t.nameTruncateMaxWidth,g.maxWidth,v),b=new Wr({x:c[0],y:c[1],rotation:d.rotation,silent:$i.isLabelSilent(e),style:Xs(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(kv({el:b,componentModel:e,itemName:i}),b.__fullText=i,b.anid="name",e.get("triggerEvent")){var A=$i.makeAxisEventDataBase(e);A.targetType="axisName",A.name=i,Mt(b).eventData=A}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function lB(t,e,r,n){var i=F1(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Xu(i-Oi/2)?(o=l?"bottom":"top",a="center"):Xu(i-Oi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Oi*1.5&&i>Oi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function uB(t,e,r){if(!rC(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?(Qr(a),Qr(u)):t0(a,o)&&(n?(Qr(o),Qr(f)):(Qr(a),Qr(u))),i===!1?(Qr(s),Qr(c)):t0(l,s)&&(i?(Qr(l),Qr(d)):(Qr(s),Qr(c)))}}function Qr(t){t&&(t.ignore=!0)}function t0(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=mv([]);return h1(i,i,-t.rotation),r.applyTransform(go([],i,t.getLocalTransform())),n.applyTransform(go([],i,e.getLocalTransform())),r.intersect(n)}}function r0(t){return t==="middle"||t==="center"}function kC(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&&(ln(o,o,e),ln(s,s,e));var f=new ji({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ws(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f)}return a}function cB(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=kC(u,e.transform,l,ft(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}}function fB(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=ft(s.getLineStyle(),ft(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=kC(o[f],e.transform,l,u,"minorticks_"+f),d=0;d<c.length;d++)t.add(c[d])}}function dB(t,e,r,n){var i=r.axis,a=Fs(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Fs(n.labelRotate,o.get("rotate"))||0)*Oi/180,f=$i.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),d=[],h=$i.isLabelSilent(r),v=r.get("triggerEvent");return J(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,b=p.rawLabel,A=o;if(c&&c[m]){var M=c[m];We(M)&&M.textStyle&&(A=new Qt(M.textStyle,o,r.ecModel))}var C=A.getTextColor()||r.get(["axisLine","lineStyle","color"]),I=i.dataToCoord(m),P=A.getShallow("align",!0)||f.textAlign,S=Ke(A.getShallow("alignMinLabel",!0),P),T=Ke(A.getShallow("alignMaxLabel",!0),P),x=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||f.textVerticalAlign,_=Ke(A.getShallow("verticalAlignMinLabel",!0),x),E=Ke(A.getShallow("verticalAlignMaxLabel",!0),x),R=new Wr({x:I,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(p.level||0),style:Xs(A,{text:y,align:g===0?S:g===l.length-1?T:P,verticalAlign:g===0?_:g===l.length-1?E:x,fill:nt(C)?C(i.type==="category"?b:i.type==="value"?m+"":m,g):C})});if(R.anid="label_"+m,v){var O=$i.makeAxisEventDataBase(r);O.targetType="axisLabel",O.value=b,O.tickIndex=g,i.type==="category"&&(O.dataIndex=m),Mt(R).eventData=O}e.add(R),R.updateTransform(),d.push(R),t.add(R),R.decomposeTransform()}),d}}function hB(t){var e=BC(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=pB(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 BC(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[gB(t)]}function vB(t){var e=BC(t);return e&&e.axisPointerModel}function pB(t){return!!t.get(["handle","show"])}function gB(t){return t.type+"||"+t.id}var n0={},mB=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&&hB(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=vB(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){n0[r]=n},e.getAxisPointerClass=function(r){return r&&n0[r]},e.type="axis",e}(di),Wh=Jt();function yB(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=Wh(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),b=void 0,A=void 0,M=void 0,C=void 0;i.isHorizontal()?(b=g,A=l.y,M=y-b,C=l.height,g=b+M):(b=l.x,A=g,M=l.width,C=y-A,g=A+C);var I=u[v-1].tickValue;I!=null&&d.set(I,h),e.add(new Zt({anid:I!=null?"area_"+I:null,shape:{x:b,y:A,width:M,height:C},style:ft({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}Wh(t).splitAreaColors=d}}}function SB(t){Wh(t).splitAreaColors=null}var bB=["axisLine","axisTickLabel","axisName"],CB=["splitArea","splitLine","minorSplitLine"],NC=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 Xt,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=aB(s,r),u=new $i(r,Te({handleAutoShown:function(c){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(zh(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));J(bB,u.add,u),this._axisGroup.add(u.getGroup()),J(CB,function(c){r.get([c,"show"])&&xB[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||TS(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){SB(this)},e.type="cartesianAxis",e}(mB),xB={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,b=new ji({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:ft({stroke:s[m]},v),silent:!0});Ws(b.shape,v.lineWidth),e.add(b)}}},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 ji({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});Ws(g.shape,d.lineWidth),e.add(g)}},splitArea:function(t,e,r,n){yB(t,e,r,n)}},FC=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}(NC),wB=function(t){De(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=FC.type,r}return e.type="yAxis",e}(NC),TB=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 Zt({shape:r.coordinateSystem.getRect(),style:ft({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(di),i0={offset:0};function IB(t){t.registerComponentView(TB),t.registerComponentModel(Qk),t.registerCoordinateSystem("cartesian2d",oB),Xy(t,"x",Gh,i0),Xy(t,"y",Gh,i0),t.registerComponentView(FC),t.registerComponentView(wB),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function AB(t){La(IB),t.registerSeriesModel(Wk),t.registerChartView(Zk),t.registerLayout(cp("scatter"))}function _B(t){t.eachSeriesByType("radar",function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();J(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]=a0(f)?f:o0(i)})}),r.each(function(o){var s=p_(n[o],function(l){return a0(l)})||o0(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function a0(t){return!isNaN(t[0])&&!isNaN(t[1])}function o0(t){return[t.cx,t.cy]}function EB(t){var e=t.polar;if(e){$e(e)||(e=[e]);var r=[];J(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}J(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var PB=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=mb(d.getItemVisual(h,"symbolSize")),g=Wi(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 b=u(p,g);b&&(b.__dimIdx=y,d[y]?(b.setPosition(d[y]),wM[m?"initProps":"updateProps"](b,{x:h[y][0],y:h[y][1]},r,g)):b.setPosition(h[y]),v.add(b))}}function c(d){return Oe(d,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new vl,p=new Na,g={shape:{points:h}};v.shape.points=c(h),p.shape.points=c(h),Mr(v,g,r,d),Mr(p,g,r,d);var m=new Xt,y=new Xt;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),js(g),js(p),pr(p,y,r),pr(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"),b=y.fill;o.add(d),p.useStyle(ft(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),wo(p,v,"lineStyle"),wo(g,v,"areaStyle");var A=v.getModel("areaStyle"),M=A.isEmpty()&&A.parentModel.isEmpty();g.ignore=M,J(["emphasis","select","blur"],function(P){var S=v.getModel([P,"areaStyle"]),T=S.isEmpty()&&S.parentModel.isEmpty();g.ensureState(P).ignore=T&&M}),g.useStyle(ft(A.getAreaStyle(),{fill:b,opacity:.7,decal:y.decal}));var C=v.getModel("emphasis"),I=C.getModel("itemStyle").getItemStyle();m.eachChild(function(P){if(P instanceof _n){var S=P.style;P.useStyle(Te({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},y))}else P.useStyle(y),P.setColor(b),P.style.strokeNoScale=!0;var T=P.ensureState("emphasis");T.style=pt(I);var x=s.getStore().get(s.getDimensionIndex(P.__dimIdx),h);(x==null||isNaN(x))&&(x=""),Po(P,Mo(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:P.__dimIdx,defaultText:x,inheritColor:b,defaultOpacity:y.opacity})}),xo(d,C.get("focus"),C.get("blurScope"),C.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Rr),MB=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 MC(jt(this.getData,this),jt(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return PC(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=sb(this,r);return Qs("section",{header:u,sortBlocks:!0,blocks:Oe(s,function(c){var d=a.get(a.mapDimension(c.dim),r);return Qs("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(Oe(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}(Xr),qo=LC.value;function fu(t,e){return ft({show:e},t)}var RB=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=Oe(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=ft({color:v.color},l));var g=xt(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(He(f)){var m=g.name;g.name=f.replace("{value}",m??"")}else nt(f)&&(g.name=f(g.name,g));var y=new Qt(g,null,this.ecModel);return An(y,nC.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:xt({lineStyle:{color:"#bbb"}},qo.axisLine),axisLabel:fu(qo.axisLabel,!1),axisTick:fu(qo.axisTick,!1),splitLine:fu(qo.splitLine,!0),splitArea:fu(qo.splitArea,!0),indicator:[]},e}(Tt),DB=["axisLine","axisTickLabel","axisName"],LB=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=Oe(i,function(o){var s=o.model.get("showName")?o.name:"",l=new $i(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});J(a,function(o){J(DB,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(O,D,B){var $=B%D.length;return O[$]=O[$]||[],$}if(a==="circle")for(var b=i[0].getTicksCoords(),A=n.cx,M=n.cy,C=0;C<b.length;C++){if(f){var I=y(g,v,C);g[I].push(new hl({shape:{cx:A,cy:M,r:b[C].coord}}))}if(c&&C<b.length-1){var I=y(m,p,C);m[I].push(new kc({shape:{cx:A,cy:M,r0:b[C].coord,r:b[C+1].coord}}))}}else for(var P,S=Oe(i,function(O,D){var B=O.getTicksCoords();return P=P==null?B.length-1:Math.min(B.length-1,P),Oe(B,function($){return n.coordToPoint($.coord,D)})}),T=[],C=0;C<=P;C++){for(var x=[],_=0;_<i.length;_++)x.push(S[_][C]);if(x[0]&&x.push(x[0].slice()),f){var I=y(g,v,C);g[I].push(new Na({shape:{points:x}}))}if(c&&T){var I=y(m,p,C-1);m[I].push(new vl({shape:{points:x.concat(T)}}))}T=x.slice().reverse()}var E=l.getLineStyle(),R=u.getAreaStyle();J(m,function(O,D){this.group.add(Eh(O,{style:ft({stroke:"none",fill:p[D%p.length]},R),silent:!0}))},this),J(g,function(O,D){this.group.add(Eh(O,{style:ft({fill:"none",stroke:v[D%v.length]},E),silent:!0}))},this)},e.type="radar",e}(di),OB=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}(fC),kB=function(){function t(e,r,n){this.dimensions=[],this._model=e,this._indicatorAxes=Oe(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new OB(o,new Xi);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=_t(n[0],i),this.cy=_t(n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(He(s)||Et(s))&&(s=[0,s]),this.r0=_t(s[0],o),this.r=_t(s[1],o),J(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;J(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();J(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new Xi;o.setExtent(0,a),o.setInterval(1),J(n,function(s,l){OC(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 BB(t){t.registerCoordinateSystem("radar",kB),t.registerComponentModel(RB),t.registerComponentView(LB),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 NB(t){La(BB),t.registerChartView(PB),t.registerSeriesModel(MB),t.registerLayout(_B),t.registerProcessor(_C("radar")),t.registerPreprocessor(EB)}function FB(t,e){var r=zS(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Zt({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 $B=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"])}},Xh=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)&&J(n,function(a,o){He(a)&&(a={type:a}),n[o]=xt(a,$B(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&&Tv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=it(),s=Oe(a,function(l){return(He(l)||Et(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Qt(l,this,this.ecModel))},this);this._data=fr(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;J(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;J(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;J(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])&&Pt(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),eo=Hr,Kh=J,du=Xt,$C=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 du),this.group.add(this._selectorGroup=new du),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=ic(f,c,d),v=this.layoutInner(r,o,h,a,l,u),p=ic(ft({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=FB(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)}),Kh(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
  57. `)){var g=new du;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),b=y.getVisual("legendLineStyle")||{},A=y.getVisual("legendIcon"),M=y.getVisual("style"),C=this._createItem(m,p,v,h,n,r,b,M,A,c,a);C.on("click",eo(s0,p,null,a,d)).on("mouseover",eo(Yh,m.name,null,a,d)).on("mouseout",eo(Zh,m.name,null,a,d)),i.ssr&&C.eachChild(function(I){var P=Mt(I);P.seriesIndex=m.seriesIndex,P.dataIndex=v,P.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(I){if(!f.get(p)&&I.legendVisualProvider){var P=I.legendVisualProvider;if(!P.containName(p))return;var S=P.indexOfName(p),T=P.getItemVisual(S,"style"),x=P.getItemVisual(S,"legendIcon"),_=Vn(T.fill);_&&_[3]===0&&(_[3]=.2,T=Te(Te({},T),{fill:Tc(_,"rgba")}));var E=this._createItem(I,p,v,h,n,r,{},T,x,c,a);E.on("click",eo(s0,null,p,a,d)).on("mouseover",eo(Yh,null,p,a,d)).on("mouseout",eo(Zh,null,p,a,d)),i.ssr&&E.eachChild(function(R){var O=Mt(R);O.seriesIndex=I.seriesIndex,O.dataIndex=v,O.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();Kh(r,function(u){var f=u.type,c=new Wr({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"]);Po(c,{normal:d,emphasis:h},{defaultText:u.title}),wh(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"),b=a.get("icon");f=b||f||"roundRect";var A=UB(f,a,l,u,h,g,d),M=new du,C=a.getModel("textStyle");if(nt(r.getLegendIcon)&&(!b||b==="inherit"))M.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}));else{var I=b==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;M.add(zB({itemWidth:v,itemHeight:p,icon:f,iconRotate:I,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:y}))}var P=s==="left"?v+5:-5,S=s,T=o.get("formatter"),x=n;He(T)&&T?x=T.replace("{name}",n??""):nt(T)&&(x=T(n));var _=g?C.getTextColor():a.get("inactiveColor");M.add(new Wr({style:Xs(C,{text:x,x:P,y:p/2,fill:_,align:S,verticalAlign:"middle"},{inheritColor:_})}));var E=new Zt({shape:M.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&kv({el:E,componentModel:o,itemName:n,itemTooltipOption:R.option}),M.add(E),M.eachChild(function(O){O.silent=!0}),E.silent=!c,this.getContentGroup().add(M),wh(M),M.__legendDataIndex=i,M},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();_s(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){_s("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 b={x:0,y:0};return b[g]=f[g]+v+d[g],b[m]=Math.max(f[m],d[m]),b[y]=Math.min(0,d[y]+h[1-p]),b}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}(di);function UB(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Kh(g,function(y,b){g[b]==="inherit"&&(g[b]=m[b])})}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:Bh(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 zB(t){var e=t.icon||"roundRect",r=Wi(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 s0(t,e,r,n){Zh(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Yh(t,e,r,n)}function UC(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 Yh(t,e,r,n){UC(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Zh(t,e,r,n){UC(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function HB(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 es(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();J(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 VB(t){t.registerAction("legendToggleSelect","legendselectchanged",Hr(es,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Hr(es,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Hr(es,"inverseSelect")),t.registerAction("legendSelect","legendselected",Hr(es,"select")),t.registerAction("legendUnSelect","legendunselected",Hr(es,"unSelect"))}function zC(t){t.registerComponentModel(Xh),t.registerComponentView($C),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,HB),t.registerSubTypeDefaulter("legend",function(){return"plain"}),VB(t)}var GB=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),l0(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),l0(this,this.option,r)},e.type="legend.scroll",e.defaultOption=PS(Xh.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}(Xh);function l0(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,To(e,r,{type:"box",ignoreSize:!!i})}var u0=Xt,Td=["width","height"],Id=["x","y"],jB=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 u0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new u0)},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 Wr({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=IS(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=Td[u],c=Id[u],d=Td[1-u],h=Id[1-u];o&&_s("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 b=p[f]+v;g[u]-=b,y[c]-=b}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;_s(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),_s("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],b=Ke(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var A=r.get("pageButtonPosition",!0);A==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+b}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var M={x:0,y:0};if(M[o]=p?i[o]:h[o],M[s]=Math.max(h[s],v[s]),M[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var C={x:0,y:0};C[o]=Math.max(i[o]-v[o]-b,0),C[s]=M[s],c.setClipPath(new Zt({shape:C})),c.__rectSize=C[o]}else d.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var I=this._getPageInfo(r);return I.pageIndex!=null&&pr(f,{x:I.contentPosition[0],y:I.contentPosition[1]},p?r:null),this._updatePageInfoView(r,I),M},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;J(["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",He(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=Td[o],l=Id[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=A(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,b=null;g<=d;++g)b=A(f[g]),(!b&&y.e>m.s+a||b&&!M(b,m.s))&&(y.i>m.i?m=y:m=b,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=b;for(var g=u-1,m=p,y=p,b=null;g>=-1;--g)b=A(f[g]),(!b||!M(y,b.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=b;return v;function A(C){if(C){var I=C.getBoundingRect(),P=I[l]+C[l];return{s:P,e:P+I[s],i:C.__legendDataIndex}}}function M(C,I){return C.e>=I&&C.s<=I+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}($C);function WB(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 XB(t){La(zC),t.registerComponentModel(GB),t.registerComponentView(jB),WB(t)}function KB(t){La(zC),La(XB)}var Ad=Math.sin,_d=Math.cos,HC=Math.PI,ba=Math.PI*2,YB=180/HC,VC=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=Ri(c-ba)||(f?u>=ba:-u>=ba),h=u>0?u%ba:u%ba+ba,v=!1;d?v=!0:Ri(c)?v=!1:v=h>=HC==!!f;var p=e+n*_d(o),g=r+i*Ad(o);this._start&&this._add("M",p,g);var m=Math.round(a*YB);if(d){var y=1/this._p,b=(f?1:-1)*(ba-y);this._add("A",n,i,m,1,+f,e+n*_d(o+b),r+i*Ad(o+b)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var A=e+n*_d(s),M=r+i*Ad(s);this._add("A",n,i,m,+v,+f,A,M)}},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",ZB=Math.round;function QB(t){var e=t.fill;return e!=null&&e!==dp}function JB(t){var e=t.stroke;return e!=null&&e!==dp}var Qh=["lineCap","miterLimit","lineJoin"],qB=Oe(Qh,function(t){return"stroke-"+t.toLowerCase()});function e5(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof _n){t("opacity",i);return}if(QB(e)){var a=Us(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(JB(e)){var s=Us(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=Zv(r),h=d[0],v=d[1];h&&(v=ZB(v||0),t("stroke-dasharray",h.join(",")),(v||n)&&t("stroke-dashoffset",v))}for(var p=0;p<Qh.length;p++){var g=Qh[p];if(e[g]!==Ku[g]){var m=e[g]||Ku[g];m&&t(qB[p],m)}}}}var GC="http://www.w3.org/2000/svg",jC="http://www.w3.org/1999/xlink",t5="http://www.w3.org/2000/xmlns/",r5="http://www.w3.org/XML/1998/namespace",c0="ecmeta_";function WC(t){return document.createElementNS(GC,t)}function Wt(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function n5(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 i5(t){return"</"+t+">"}function hp(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 n5(o,s)+(o!=="style"?B_(l):l||"")+(a?""+r+Oe(a,function(u){return n(u)}).join(r)+r:"")+i5(o)}return n(t)}function a5(t,e,r){r=r||{};var n=r.newline?`
  60. `:"",i=" {"+n,a=n+"}",o=Oe(gt(t),function(l){return l+i+Oe(gt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=Oe(gt(e),function(l){return"@keyframes "+l+i+Oe(gt(e[l]),function(u){return u+i+Oe(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 Jh(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function f0(t,e,r,n){return Wt("svg","root",{width:t,height:e,xmlns:GC,"xmlns:xlink":jC,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var o5=0;function XC(){return o5++}var d0={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"},Ta="transform-origin";function s5(t,e,r){var n=Te({},t.shape);Te(n,e),t.buildPath(r,n);var i=new VC;return i.reset(E1(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function l5(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Ta]=r+"px "+n+"px")}var u5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KC(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function c5(t,e,r){var n=t.shape.paths,i={},a,o;if(J(n,function(l){var u=Jh(r.zrId);u.animation=!0,qc(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=KC(i,r);return a.replace(o,s)}}function h0(t){return He(t)?d0[t]?"cubic-bezier("+d0[t]+")":Sv(t)?t:"":""}function qc(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof mS){var s=c5(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 b=y[1],A=b.length,M={},C={},I={},P="animation-timing-function";function S(ce,me,be){for(var ue=ce.getTracks(),ve=ce.getMaxTime(),Ce=0;Ce<ue.length;Ce++){var ae=ue[Ce];if(ae.needsAnimate()){var fe=ae.keyframes,Ae=ae.propName;if(be&&(Ae=be(Ae)),Ae)for(var Re=0;Re<fe.length;Re++){var st=fe[Re],vt=Math.round(st.time/ve*100)+"%",mt=h0(st.easing),Fe=st.rawValue;(He(Fe)||Et(Fe))&&(me[vt]=me[vt]||{},me[vt][Ae]=st.rawValue,mt&&(me[vt][P]=mt))}}}}for(var T=0;T<A;T++){var x=b[T],_=x.targetName;_?_==="shape"&&S(x,C):!n&&S(x,M)}for(var E in M){var R={};L1(R,t),Te(R,M[E]);var O=P1(R),D=M[E][P];I[E]=O?{transform:O}:{},l5(I[E],R),D&&(I[E][P]=D)}var B,$=!0;for(var E in C){I[E]=I[E]||{};var U=!B,D=C[E][P];U&&(B=new Gi);var Q=B.len();B.reset(),I[E].d=s5(t,C[E],B);var Z=B.len();if(!U&&Q!==Z){$=!1;break}D&&(I[E][P]=D)}if(!$)for(var E in I)delete I[E].d;if(!n)for(var T=0;T<A;T++){var x=b[T],_=x.targetName;_==="style"&&S(x,I,function(ue){return u5[ue]})}for(var V=gt(I),te=!0,ie,T=1;T<V.length;T++){var se=V[T-1],W=V[T];if(I[se][Ta]!==I[W][Ta]){te=!1;break}ie=I[se][Ta]}if(te&&ie){for(var E in I)I[E][Ta]&&delete I[E][Ta];e[Ta]=ie}if(fr(V,function(ce){return gt(I[ce]).length>0}).length){var q=KC(I,r);return q+" "+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 f5(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=ah(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 tl=Math.round;function YC(t){return t&&He(t.src)}function ZC(t){return t&&nt(t.toDataURL)}function vp(t,e,r,n){e5(function(i,a){var o=i==="fill"||i==="stroke";o&&_1(a)?JC(e,t,i,n):o&&bv(a)?qC(r,t,i,n):o&&a==="none"?t[i]="transparent":t[i]=a},e,r,!1),y5(r,t,n)}function pp(t,e){var r=HE(e);r&&(r.each(function(n,i){n!=null&&(t[(c0+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[c0+"silent"]="true"))}function p0(t){return Ri(t[0]-1)&&Ri(t[1])&&Ri(t[2])&&Ri(t[3]-1)}function d5(t){return Ri(t[4])&&Ri(t[5])}function gp(t,e,r){if(e&&!(d5(e)&&p0(e))){var n=1e4;t.transform=p0(e)?"translate("+tl(e[4]*n)/n+" "+tl(e[5]*n)/n+")":fE(e)}}function g0(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(tl(n[a][0]*r)/r),i.push(tl(n[a][1]*r)/r);e.points=i.join(" ")}function m0(t){return!t.smooth}function h5(t){var e=Oe(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]]=tl(s*i)/i)}}}var v5={circle:[h5(["cx","cy","r"])],polyline:[g0,m0],polygon:[g0,m0]};function p5(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function QC(t,e){var r=t.style,n=t.shape,i=v5[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&E1(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&p5(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 VC),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=p.getStr()}return gp(a,t.transform),vp(a,r,t,e),pp(a,t),e.animation&&qc(t,a,e),e.emphasis&&f5(t,a,e),Wt(s,t.id+"",a)}function g5(t,e){var r=t.style,n=r.image;if(n&&!He(n)&&(YC(n)?n=n.src:ZC(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),gp(l,t.transform),vp(l,r,t,e),pp(l,t),e.animation&&qc(t,l,e),Wt("image",t.id+"",l)}}function m5(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Ui,a=r.x||0,o=hE(r.y||0,Ac(i),r.textBaseline),s=dE[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(tS(r)){var u="",f=r.fontStyle,c=eS(r.fontSize);if(!parseFloat(c))return;var d=r.fontFamily||i1,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),gp(l,t.transform),vp(l,r,t,e),pp(l,t),e.animation&&qc(t,l,e),Wt("text",t.id+"",l,void 0,n)}}function y0(t,e){if(t instanceof yt)return QC(t,e);if(t instanceof _n)return g5(t,e);if(t instanceof Gs)return m5(t,e)}function y5(t,e,r){var n=t.style;if(vE(n)){var i=pE(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=Us(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]=Wt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Wt("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":p,"flood-opacity":v})]),a[i]=o}e.filter=Ic(o)}}function JC(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(I1(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(A1(i))a="radialGradient",o.cx=Ke(i.x,.5),o.cy=Ke(i.y,.5),o.r=Ke(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=oh(s[u].offset)*100+"%",d=s[u].color,h=Us(d),v=h.color,p=h.opacity,g={offset:c};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(Wt("stop",u+"",g))}var m=Wt(a,"",o,l),y=hp(m),b=n.gradientCache,A=b[y];A||(A=n.zrId+"-g"+n.gradientIdx++,b[y]=A,o.id=A,n.defs[A]=Wt(a,A,o,l)),e[r]=Ic(A)}function qC(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(T1(i)){var d=i.imageWidth,h=i.imageHeight,v=void 0,p=i.image;if(He(p)?v=p:YC(p)?v=p.src:ZC(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Xn(d,g),Xn(h,g)}else if(d==null||h==null){var m=function(T,x){if(T){var _=T.elm,E=d||x.width,R=h||x.height;T.tag==="pattern"&&(u?(R=1,E/=a.width):f&&(E=1,R/=a.height)),T.attrs.width=E,T.attrs.height=R,_&&(_.setAttribute("width",E),_.setAttribute("height",R))}},y=Av(v,null,t,function(T){l||m(C,T),m(c,T)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}c=Wt("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 b,A;l?b=A=1:u?(A=1,b=o.width/a.width):f?(b=1,A=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),A!=null&&!isNaN(A)&&(o.height=A);var M=P1(i);M&&(o.patternTransform=M);var C=Wt("pattern","",o,[c]),I=hp(C),P=n.patternCache,S=P[I];S||(S=n.zrId+"-p"+n.patternIdx++,P[I]=S,o.id=S,C=n.defs[S]=Wt("pattern",S,o,[c])),e[r]=Ic(S)}}function S5(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]=Wt("clipPath",a,o,[QC(t,r)])}e["clip-path"]=Ic(a)}function S0(t){return document.createTextNode(t)}function Aa(t,e,r){t.insertBefore(e,r)}function b0(t,e){t.removeChild(e)}function C0(t,e){t.appendChild(e)}function ex(t){return t.parentNode}function tx(t){return t.nextSibling}function Ed(t,e){t.textContent=e}var x0=58,b5=120,C5=Wt("","");function qh(t){return t===void 0}function Fn(t){return t!==void 0}function x5(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 fs(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function rl(t){var e,r=t.children,n=t.tag;if(Fn(n)){var i=t.elm=WC(n);if(mp(C5,t),$e(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&C0(i,rl(a))}else Fn(t.text)&&!We(t.text)&&C0(i,S0(t.text))}else t.elm=S0(t.text);return t.elm}function rx(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Aa(t,rl(a),e)}}function fc(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Fn(i.tag)){var a=ex(i.elm);b0(a,i.elm)}else b0(t,i.elm)}}function mp(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)!==b5?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(t5,r,o):r.charCodeAt(3)===x0?n.setAttributeNS(r5,r,o):r.charCodeAt(5)===x0?n.setAttributeNS(jC,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function w5(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]:fs(o,u)?(oo(o,u),o=e[++n],u=r[++i]):fs(s,f)?(oo(s,f),s=e[--a],f=r[--l]):fs(o,f)?(oo(o,f),Aa(t,o.elm,tx(s.elm)),o=e[++n],f=r[--l]):fs(s,u)?(oo(s,u),Aa(t,s.elm,o.elm),s=e[--a],u=r[++i]):(qh(c)&&(c=x5(e,n,a)),d=c[u.key],qh(d)?Aa(t,rl(u),o.elm):(h=e[d],h.tag!==u.tag?Aa(t,rl(u),o.elm):(oo(h,u),e[d]=void 0,Aa(t,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(v=r[l+1]==null?null:r[l+1].elm,rx(t,v,r,i,l)):fc(t,e,n,a))}function oo(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(mp(t,e),qh(e.text)?Fn(n)&&Fn(i)?n!==i&&w5(r,n,i):Fn(i)?(Fn(t.text)&&Ed(r,""),rx(r,null,i,0,i.length-1)):Fn(n)?fc(r,n,0,n.length-1):Fn(t.text)&&Ed(r,""):t.text!==e.text&&(Fn(n)&&fc(r,n,0,n.length-1),Ed(r,e.text)))}function T5(t,e){if(fs(t,e))oo(t,e);else{var r=t.elm,n=ex(r);rl(e),n!==null&&(Aa(n,e.elm,tx(r)),fc(n,[t],0,0))}return e}var I5=0,A5=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=w0(),this.configLayer=w0(),this.storage=r,this._opts=n=Te({},n),this.root=e,this._id="zr"+I5++,this._oldVNode=f0(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=WC("svg");mp(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",T5(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return y0(e,Jh(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Jh(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis;var o=[],s=this._bgVNode=_5(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Wt("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Oe(gt(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(Wt("defs","defs",{},u)),e.animation){var f=a5(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Wt("style","stl",{},[],f);o.push(c)}}return f0(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},hp(this.renderToVNode({animation:Ke(e.cssAnimation,!0),emphasis:Ke(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ke(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={};S5(d[m],y,r);var b=Wt("g","clip-g-"+u++,y,[]);(s?s.children:n).push(b),a[o++]=b,s=b}l=d;var A=y0(c,r);A&&(s?s.children:n).push(A)}}},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=Ym(i,0,n),r=Ym(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(bv(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=mE(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t}();function w0(t){return function(){}}function _5(t,e,r,n){var i;if(r&&r!=="none")if(i=Wt("rect","bg",{width:t,height:e,x:"0",y:"0"}),_1(r))JC({fill:r},i.attrs,"fill",n);else if(bv(r))qC({style:{fill:r},dirty:Gr,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=Us(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function E5(t){t.registerPainter("svg",A5)}const P5=Xe({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColors:{},textColor:{},options:{}},setup(t){La([kk,bk,jk,AB,NB,KB,E5]);const e=t;let r=null;const n=ge(),i=Me(()=>{let o=[];if(e.themeColors.length>=10)o=e.themeColors;else if(e.themeColors.length===1)o=Vd(e.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=e.themeColors.length,l=Vd(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=t_({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 xr(()=>{r=xL(n.value,null,{renderer:"svg"}),a();const o=()=>r.resize();new ResizeObserver(o).observe(n.value)}),hr(()=>e.type,a),hr(()=>e.data,a),hr(()=>e.themeColors,a),hr(()=>e.textColor,a),(o,s)=>(oe(),Se("div",{class:"chart",ref_key:"chartRef",ref:n},null,512))}}),M5=tt(P5,[["__scopeId","data-v-a77f2c9e"]]),R5=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"}},D5=t=>t.replace(/\n/g,"</br>").replace(/ /g,"&nbsp;"),L5=t=>({hideCells:Me(()=>{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})}),O5=t=>{const e=ge(["",""]);return hr(()=>t.value,()=>{t.value&&(e.value=uI(t.value.color))},{immediate:!0}),{subThemeColor:e}},k5=(t,e)=>{xr(()=>{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()}}})},yp=t=>(ka("data-v-b2516295"),t=t(),Oa(),t),B5={key:0,class:"load-error"},N5=["src","poster"],F5={class:"bezel"},$5=yp(()=>Y("div",{class:"controller-mask"},null,-1)),U5={class:"controller"},z5={class:"icons icons-left"},H5={class:"icon-content"},V5={class:"volume"},G5={class:"icon-content"},j5=yp(()=>Y("span",{class:"thumb"},null,-1)),W5=[j5],X5={class:"time"},K5={class:"ptime"},Y5={class:"dtime"},Z5={class:"icons icons-right"},Q5={class:"speed"},J5={class:"icon speed-icon"},q5=["onClick"],eN={class:"icon-content"},tN={class:"bar"},rN=yp(()=>Y("span",{class:"thumb"},null,-1)),nN=[rN],iN=Xe({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1},needWaitAnimation:{type:Boolean}},setup(t){const e=t;hr(()=>e.needWaitAnimation,()=>{e.autoplay&&!e.needWaitAnimation?T():e.needWaitAnimation&&x()});const r=(ae=0)=>{if(ae===0||isNaN(ae))return"00:00";const fe=vt=>vt<10?"0"+vt:""+vt,Ae=Math.floor(ae/3600),Re=Math.floor((ae-Ae*3600)/60),st=Math.floor(ae-Ae*3600-Re*60);return(Ae>0?[Ae,Re,st]:[Re,st]).map(fe).join(":")},n=ae=>ae.getBoundingClientRect().left,i=ge(),a=ge(),o=ge(),s=ge(.5),l=ge(!0),u=ge(0),f=ge(0),c=ge(0),d=ge(!1),h=ge(!1),v=ge(1),p=ge(!1),g=ge("00:00"),m=ge("0"),y=Me(()=>r(u.value)),b=Me(()=>r(f.value)),A=Me(()=>u.value/f.value*100+"%"),M=Me(()=>c.value/f.value*100+"%"),C=Me(()=>s.value*100+"%"),I=ge(!1),P=[{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}],S=ae=>{i.value&&(ae=Math.max(ae,0),ae=Math.min(ae,f.value),i.value.currentTime=ae,u.value=ae)},T=()=>{i.value&&(l.value=!1,i.value.play(),h.value=!0)},x=()=>{i.value&&(l.value=!0,i.value.pause(),h.value=!0)},_=()=>{l.value?T():x()},E=ae=>{i.value&&(ae=Math.max(ae,0),ae=Math.min(ae,1),i.value.volume=ae,s.value=ae,i.value.muted&&ae!==0&&(i.value.muted=!1))},R=ae=>{i.value&&(i.value.playbackRate=ae),v.value=ae},O=()=>{var ae;f.value=((ae=i.value)==null?void 0:ae.duration)||0},D=()=>{var ae;u.value=((ae=i.value)==null?void 0:ae.currentTime)||0},B=()=>{d.value?(S(0),T()):x()},$=()=>{var ae;c.value=(ae=i.value)!=null&&ae.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},U=ge(!1),Q=()=>U.value=!0,Z=ae=>{if(!i.value||!a.value)return;let Ae=(("clientX"in ae?ae.clientX:ae.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},V=ae=>{if(!i.value||!a.value)return;let Ae=(("clientX"in ae?ae.clientX:ae.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",Z),document.removeEventListener("touchmove",Z),document.removeEventListener("mouseup",V),document.removeEventListener("touchend",V)},te=()=>{document.addEventListener("mousemove",Z),document.addEventListener("touchmove",Z),document.addEventListener("mouseup",V),document.addEventListener("touchend",V)},ie=ae=>{if(!o.value)return;const Ae=(("clientX"in ae?ae.clientX:ae.changedTouches[0].clientX)-n(o.value))/45;E(Ae)},se=()=>{document.removeEventListener("mousemove",ie),document.removeEventListener("touchmove",ie),document.removeEventListener("mouseup",se),document.removeEventListener("touchend",se)},W=()=>{document.addEventListener("mousemove",ie),document.addEventListener("touchmove",ie),document.addEventListener("mouseup",se),document.addEventListener("touchend",se)},q=ae=>{if(!o.value)return;const fe=(ae.clientX-n(o.value))/45;E(fe)},ce=ae=>{if(f.value&&a.value){const fe=a.value.getBoundingClientRect().left,Ae=ae.clientX-fe;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}},me=()=>{i.value&&(i.value.muted?(i.value.muted=!1,E(.5)):(i.value.muted=!0,E(0)))},be=()=>{d.value=!d.value},ue=ge(-1),ve=ge(!1),Ce=()=>{ve.value=!1,clearTimeout(ue.value),ue.value=setTimeout(()=>{var ae;(ae=i.value)!=null&&ae.played.length&&(ve.value=!0)},3e3)};return k5(e.src,i),(ae,fe)=>{const Ae=ct("IconPlayOne"),Re=ct("IconPause"),st=ct("IconVolumeMute"),vt=ct("IconVolumeNotice"),mt=ct("IconVolumeSmall");return oe(),Se("div",{class:ht(["video-player",{"hide-controller":ve.value}]),style:Ie({width:ae.width*ae.scale+"px",height:ae.height*ae.scale+"px",transform:`scale(${1/ae.scale})`}),onMousemove:fe[22]||(fe[22]=Fe=>Ce()),onClick:fe[23]||(fe[23]=Fe=>Ce())},[Y("div",{class:"video-wrap",onClick:fe[8]||(fe[8]=Fe=>_())},[U.value?(oe(),Se("div",B5,"视频加载失败")):je("",!0),Y("video",{class:"video",ref_key:"videoRef",ref:i,src:ae.src,poster:ae.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:fe[0]||(fe[0]=Fe=>O()),onTimeupdate:fe[1]||(fe[1]=Fe=>D()),onEnded:fe[2]||(fe[2]=Fe=>B()),onProgress:fe[3]||(fe[3]=Fe=>$()),onPlay:fe[4]||(fe[4]=()=>{Ce(),l.value=!1}),onPause:fe[5]||(fe[5]=Fe=>Ce()),onError:fe[6]||(fe[6]=Fe=>Q())},null,40,N5),Y("div",F5,[Y("span",{class:ht(["bezel-icon",{"bezel-transition":h.value}]),onAnimationend:fe[7]||(fe[7]=Fe=>h.value=!1)},[l.value?(oe(),Je(Ae,{key:0})):(oe(),Je(Re,{key:1}))],34)])]),$5,Y("div",U5,[Y("div",z5,[Y("div",{class:"icon play-icon",onClick:fe[9]||(fe[9]=Fe=>_())},[Y("span",H5,[l.value?(oe(),Je(Ae,{key:0})):(oe(),Je(Re,{key:1}))])]),Y("div",V5,[Y("div",{class:"icon volume-icon",onClick:fe[10]||(fe[10]=Fe=>me())},[Y("span",G5,[s.value===0?(oe(),Je(st,{key:0})):s.value===1?(oe(),Je(vt,{key:1})):(oe(),Je(mt,{key:2}))])]),Y("div",{class:"volume-bar-wrap",onMousedown:fe[11]||(fe[11]=Fe=>W()),onTouchstart:fe[12]||(fe[12]=Fe=>W()),onClick:fe[13]||(fe[13]=Fe=>q(Fe))},[Y("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:o},[Y("div",{class:"volume-bar-inner",style:Ie({width:C.value})},W5,4)],512)],32)]),Y("span",X5,[Y("span",K5,$t(y.value),1),ov(" / "),Y("span",Y5,$t(b.value),1)])]),Y("div",Z5,[Y("div",Q5,[Y("div",J5,[Y("span",{class:"icon-content",onClick:fe[14]||(fe[14]=Fe=>I.value=!I.value)},$t(v.value===1?"倍速":v.value+"x"),1),I.value?(oe(),Se("div",{key:0,class:"speed-menu",onMouseleave:fe[15]||(fe[15]=Fe=>I.value=!1)},[(oe(),Se(Yt,null,Vr(P,Fe=>Y("div",{class:ht(["speed-menu-item",{active:Fe.value===v.value}]),key:Fe.label,onClick:Kt=>R(Fe.value)},$t(Fe.label),11,q5)),64))],32)):je("",!0)])]),Y("div",{class:"loop",onClick:fe[16]||(fe[16]=Fe=>be())},[Y("div",{class:ht(["icon loop-icon",{active:d.value}])},[Y("span",eN,"循环"+$t(d.value?"开":"关"),1)],2)])]),Y("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:fe[17]||(fe[17]=Fe=>te()),onTouchstart:fe[18]||(fe[18]=Fe=>te()),onMousemove:fe[19]||(fe[19]=Fe=>ce(Fe)),onMouseenter:fe[20]||(fe[20]=Fe=>p.value=!0),onMouseleave:fe[21]||(fe[21]=Fe=>p.value=!1)},[Y("div",{class:ht(["bar-time",{hidden:!p.value}]),style:Ie({left:m.value})},$t(g.value),7),Y("div",tN,[Y("div",{class:"loaded",style:Ie({width:M.value})},null,4),Y("div",{class:"played",style:Ie({width:A.value})},nN,4)])],544)])],38)}}}),aN=tt(iN,[["__scopeId","data-v-b2516295"]]),nx=t=>(ka("data-v-589afd06"),t=t(),Oa(),t),oN=["src"],sN={class:"controller"},lN={class:"icons"},uN={class:"icon-content"},cN={class:"volume"},fN={class:"icon-content"},dN=nx(()=>Y("span",{class:"thumb"},null,-1)),hN=[dN],vN={class:"time"},pN={class:"ptime"},gN={class:"dtime"},mN={class:"bar"},yN=nx(()=>Y("span",{class:"thumb"},null,-1)),SN=[yN],bN=Xe({__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;hr(()=>r.needWaitAnimation,()=>{r.autoplay&&!r.needWaitAnimation?I():r.needWaitAnimation&&P()});const n=(W=0)=>{if(W===0||isNaN(W))return"00:00";const q=ue=>ue<10?"0"+ue:""+ue,ce=Math.floor(W/3600),me=Math.floor((W-ce*3600)/60),be=Math.floor(W-ce*3600-me*60);return(ce>0?[ce,me,be]:[me,be]).map(q).join(":")},i=W=>W.getBoundingClientRect().left,a=ge(),o=ge(),s=ge(),l=ge(.5),u=ge(!0),f=ge(0),c=ge(0),d=ge(0),h=ge(!1),v=ge(!1),p=ge("00:00"),g=ge("0"),m=Me(()=>n(f.value)),y=Me(()=>n(c.value)),b=Me(()=>f.value/c.value*100+"%"),A=Me(()=>d.value/c.value*100+"%"),M=Me(()=>l.value*100+"%"),C=W=>{a.value&&(W=Math.max(W,0),W=Math.min(W,c.value),a.value.currentTime=W,f.value=W)},I=()=>{a.value&&(u.value=!1,a.value.play())},P=()=>{a.value&&(u.value=!0,a.value.pause())},S=()=>{u.value?I():P()},T=W=>{a.value&&(W=Math.max(W,0),W=Math.min(W,1),a.value.volume=W,l.value=W,a.value.muted&&W!==0&&(a.value.muted=!1))},x=()=>{var W;c.value=((W=a.value)==null?void 0:W.duration)||0},_=()=>{var W;f.value=((W=a.value)==null?void 0:W.currentTime)||0},E=()=>{u.value=!1},R=()=>{h.value||(r.loop?(C(0),I()):P())},O=()=>{var W;d.value=(W=a.value)!=null&&W.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},D=()=>Dr.error("音频加载失败"),B=W=>{if(!a.value||!o.value)return;let ce=(("clientX"in W?W.clientX:W.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;ce=Math.max(ce,0),ce=Math.min(ce,1);const me=ce*c.value;a.value.currentTime=me,f.value=me},$=W=>{if(!a.value||!o.value)return;let ce=(("clientX"in W?W.clientX:W.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;ce=Math.max(ce,0),ce=Math.min(ce,1);const me=ce*c.value;a.value.currentTime=me,f.value=me;const be=setTimeout(()=>{clearTimeout(be),h.value=!1},500);document.removeEventListener("mousemove",B),document.removeEventListener("touchmove",B),document.removeEventListener("mouseup",$),document.removeEventListener("touchend",$)},U=()=>{h.value=!0,document.addEventListener("mousemove",B),document.addEventListener("touchmove",B),document.addEventListener("mouseup",$),document.addEventListener("touchend",$)},Q=W=>{if(!s.value)return;const ce=(("clientX"in W?W.clientX:W.changedTouches[0].clientX)-i(s.value))/45;T(ce)},Z=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("touchmove",Q),document.removeEventListener("mouseup",Z),document.removeEventListener("touchend",Z)},V=()=>{document.addEventListener("mousemove",Q),document.addEventListener("touchmove",Q),document.addEventListener("mouseup",Z),document.addEventListener("touchend",Z)},te=W=>{if(!s.value)return;const q=(W.clientX-i(s.value))/45;T(q)},ie=W=>{if(c.value&&o.value){const q=o.value.getBoundingClientRect().left,ce=W.clientX-q;if(ce<0||ce>o.value.offsetWidth)return;const me=c.value*(ce/o.value.offsetWidth);g.value=`${ce-(me>=3600?25:20)}px`,p.value=n(me),v.value=!0}},se=()=>{a.value&&(a.value.muted?(a.value.muted=!1,T(.5)):(a.value.muted=!0,T(0)))};return e({toggle:S}),(W,q)=>{const ce=ct("IconPlayOne"),me=ct("IconPause"),be=ct("IconVolumeMute"),ue=ct("IconVolumeNotice"),ve=ct("IconVolumeSmall");return oe(),Se("div",{class:"audio-player",style:Ie({transform:`scale(${1/W.scale})`})},[Y("audio",{class:"audio",ref_key:"audioRef",ref:a,src:W.src,onDurationchange:q[0]||(q[0]=Ce=>x()),onTimeupdate:q[1]||(q[1]=Ce=>_()),onPlay:q[2]||(q[2]=Ce=>E()),onEnded:q[3]||(q[3]=Ce=>R()),onProgress:q[4]||(q[4]=Ce=>O()),onError:q[5]||(q[5]=Ce=>D())},null,40,oN),Y("div",sN,[Y("div",lN,[Y("div",{class:"icon play-icon",onClick:q[6]||(q[6]=Ce=>S())},[Y("span",uN,[u.value?(oe(),Je(ce,{key:0})):(oe(),Je(me,{key:1}))])]),Y("div",cN,[Y("div",{class:"icon volume-icon",onClick:q[7]||(q[7]=Ce=>se())},[Y("span",fN,[l.value===0?(oe(),Je(be,{key:0})):l.value===1?(oe(),Je(ue,{key:1})):(oe(),Je(ve,{key:2}))])]),Y("div",{class:"volume-bar-wrap",onMousedown:q[8]||(q[8]=Ce=>V()),onTouchstart:q[9]||(q[9]=Ce=>V()),onClick:q[10]||(q[10]=Ce=>te(Ce))},[Y("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[Y("div",{class:"volume-bar-inner",style:Ie({width:M.value})},hN,4)],512)],32)])]),Y("span",vN,[Y("span",pN,$t(m.value),1),ov(" / "),Y("span",gN,$t(y.value),1)]),Y("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:q[11]||(q[11]=Ce=>U()),onTouchstart:q[12]||(q[12]=Ce=>U()),onMousemove:q[13]||(q[13]=Ce=>ie(Ce)),onMouseenter:q[14]||(q[14]=Ce=>v.value=!0),onMouseleave:q[15]||(q[15]=Ce=>v.value=!1)},[Y("div",{class:ht(["bar-time",{hidden:!v.value}]),style:Ie({left:g.value})},$t(p.value),7),Y("div",mN,[Y("div",{class:"loaded",style:Ie({width:A.value})},null,4),Y("div",{class:"played",style:Ie({width:b.value})},SN,4)])],544)])],4)}}}),CN=tt(bN,[["__scopeId","data-v-589afd06"]]),xN={key:0,class:"loading-overlay"},wN=B0('<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),TN=[wN],IN=["src"],AN=Xe({__name:"cloudCoachPlayer",props:{width:{},height:{},id:{},scale:{default:1}},setup(t){const e=t,r=Me(()=>vo.fromType==="CLASS"?`${Dp}?v=${Date.now()}&Authorization=${Lp()}&id=${e.id}&iscurseplay=play&modelType=practise&showCourseMember=true&showGuide=true&showWebGuide=false&instrumentId=${vo.instrumentId}&zoom=0.8`:`${Dp}?v=${Date.now()}&showGuide=true&showWebGuide=false&platform=pc&imagePos=right&zoom=0.8&modelType=practise&instrumentId=${vo.instrumentId}&iscurseplay=play&id=${e.id}&Authorization=${Lp()}`),n=ge(!0);function i(){n.value=!1}return(a,o)=>(oe(),Se("div",{class:"cloudCoachPlayer",style:Ie({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(oe(),Se("div",xN,TN)):je("",!0),Y("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,IN)],4))}}),_N=tt(AN,[["__scopeId","data-v-7ab31ac7"]]);var ix={exports:{}};const EN=z0(lI);/**!
  61. * Sortable 1.14.0
  62. * @author RubaXa <trash@rubaxa.org>
  63. * @author owenm <owen23355@gmail.com>
  64. * @license MIT
  65. */function T0(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 Kn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?T0(Object(r),!0).forEach(function(n){PN(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Du(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Du=function(e){return typeof e}:Du=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Du(t)}function PN(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fn(){return fn=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},fn.apply(this,arguments)}function MN(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 RN(t,e){if(t==null)return{};var r=MN(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 DN(t){return LN(t)||ON(t)||kN(t)||BN()}function LN(t){if(Array.isArray(t))return ev(t)}function ON(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function kN(t,e){if(t){if(typeof t=="string")return ev(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 ev(t,e)}}function ev(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 BN(){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 NN="1.14.0";function fi(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var pi=fi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),pl=fi(/Edge/i),I0=fi(/firefox/i),Ds=fi(/safari/i)&&!fi(/chrome/i)&&!fi(/android/i),ax=fi(/iP(ad|od|hone)/i),FN=fi(/chrome/i)&&fi(/android/i),ox={capture:!1,passive:!1};function ut(t,e,r){t.addEventListener(e,r,!pi&&ox)}function ot(t,e,r){t.removeEventListener(e,r,!pi&&ox)}function dc(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 $N(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function wn(t,e,r,n){if(t){r=r||document;do{if(e!=null&&(e[0]===">"?t.parentNode===r&&dc(t,e):dc(t,e))||n&&t===r)return t;if(t===r)break}while(t=$N(t))}return null}var A0=/\s+/g;function Ot(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(A0," ").replace(" "+e+" "," ");t.className=(n+(r?" "+e:"")).replace(A0," ")}}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 Da(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 sx(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 jn(){var t=document.scrollingElement;return t||document.documentElement}function Dt(t,e,r,n,i){if(!(!t.getBoundingClientRect&&t!==window)){var a,o,s,l,u,f,c;if(t!==window&&t.parentNode&&t!==jn()?(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,!pi))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=Da(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 _0(t,e,r){for(var n=ki(t,!0),i=Dt(t)[e];n;){var a=Dt(n)[r],o=void 0;if(o=i>=a,!o)return n;if(n===jn())break;n=ki(n,!1)}return!1}function _o(t,e,r,n){for(var i=0,a=0,o=t.children;a<o.length;){if(o[a].style.display!=="none"&&o[a]!==Ve.ghost&&(n||o[a]!==Ve.dragged)&&wn(o[a],r.draggable,t,!1)){if(i===e)return o[a];i++}a++}return null}function Sp(t,e){for(var r=t.lastElementChild;r&&(r===Ve.ghost||Be(r,"display")==="none"||e&&!dc(r,e));)r=r.previousElementSibling;return r||null}function Ft(t,e){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Ve.clone&&(!e||dc(t,e))&&r++;return r}function E0(t){var e=0,r=0,n=jn();if(t)do{var i=Da(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 UN(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 ki(t,e){if(!t||!t.getBoundingClientRect)return jn();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 jn();if(n||e)return r;n=!0}}while(r=r.parentNode);return jn()}function zN(t,e){if(t&&e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Pd(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 Ls;function lx(t,e){return function(){if(!Ls){var r=arguments,n=this;r.length===1?t.call(n,r[0]):t.apply(n,r),Ls=setTimeout(function(){Ls=void 0},e)}}}function HN(){clearTimeout(Ls),Ls=void 0}function ux(t,e,r){t.scrollLeft+=e,t.scrollTop+=r}function bp(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 P0(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 Md(t){Be(t,"position",""),Be(t,"top",""),Be(t,"left",""),Be(t,"width",""),Be(t,"height","")}var dr="Sortable"+new Date().getTime();function VN(){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===Ve.ghost)){t.push({target:i,rect:Dt(i)});var a=Kn({},t[t.length-1].rect);if(i.thisAnimationDuration){var o=Da(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(UN(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=Dt(u),d=u.prevFromRect,h=u.prevToRect,v=s.rect,p=Da(u,!0);p&&(c.top-=p.f,c.left-=p.e),u.toRect=c,u.thisAnimationDuration&&Pd(d,c)&&!Pd(f,c)&&(v.top-c.top)/(v.left-c.left)===(f.top-c.top)/(f.left-c.left)&&(l=jN(v,d,h,i.options)),Pd(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=Da(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=GN(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 GN(t){return t.offsetWidth}function jN(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 to=[],Rd={initializeByDefault:!0},gl={mount:function(e){for(var r in Rd)Rd.hasOwnProperty(r)&&!(r in e)&&(e[r]=Rd[r]);to.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),to.push(e)},pluginEvent:function(e,r,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var a=e+"Global";to.forEach(function(o){r[o.pluginName]&&(r[o.pluginName][a]&&r[o.pluginName][a](Kn({sortable:r},n)),r.options[o.pluginName]&&r[o.pluginName][e]&&r[o.pluginName][e](Kn({sortable:r},n)))})},initializePlugins:function(e,r,n,i){to.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,fn(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 to.forEach(function(i){typeof i.eventProperties=="function"&&fn(n,i.eventProperties.call(r[i.pluginName],e))}),n},modifyOption:function(e,r,n){var i;return to.forEach(function(a){e[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[r]=="function"&&(i=a.optionListeners[r].call(e[a.pluginName],n))}),i}};function ds(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[dr],!!e){var p,g=e.options,m="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!pi&&!pl?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=Kn(Kn({},v),gl.getEventProperties(n,e));for(var b in y)p[b]=y[b];r&&r.dispatchEvent(p),g[m]&&g[m].call(e,p)}}var WN=["evt"],Ir=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,a=RN(n,WN);gl.pluginEvent.bind(Ve)(e,r,Kn({dragEl:Pe,parentEl:kt,ghostEl:qe,rootEl:Rt,nextEl:Ia,lastDownEl:Lu,cloneEl:Bt,cloneHidden:Ei,dragStarted:hs,putSortable:tr,activeSortable:Ve.active,originalEvent:i,oldIndex:ho,oldDraggableIndex:Os,newIndex:Ur,newDraggableIndex:_i,hideGhostForTarget:hx,unhideGhostForTarget:vx,cloneNowHidden:function(){Ei=!0},cloneNowShown:function(){Ei=!1},dispatchSortableEvent:function(s){yr({sortable:r,name:s,originalEvent:i})}},a))};function yr(t){ds(Kn({putSortable:tr,cloneEl:Bt,targetEl:Pe,rootEl:Rt,oldIndex:ho,oldDraggableIndex:Os,newIndex:Ur,newDraggableIndex:_i},t))}var Pe,kt,qe,Rt,Ia,Lu,Bt,Ei,ho,Ur,Os,_i,hu,tr,so=!1,hc=!1,vc=[],Ca,gn,Dd,Ld,M0,R0,hs,ro,ks,Bs=!1,vu=!1,Ou,ur,Od=[],tv=!1,pc=[],ef=typeof document<"u",pu=ax,D0=pl||pi?"cssFloat":"float",XN=ef&&!FN&&!ax&&"draggable"in document.createElement("div"),cx=function(){if(ef){if(pi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),fx=function(e,r){var n=Be(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=_o(e,0,r),o=_o(e,1,r),s=a&&Be(a),l=o&&Be(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Dt(a).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Dt(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[D0]==="none"||o&&n[D0]==="none"&&u+f>i)?"vertical":"horizontal"},KN=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},YN=function(e,r){var n;return vc.some(function(i){var a=i[dr].options.emptyInsertThreshold;if(!(!a||Sp(i))){var o=Dt(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},dx=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||Du(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},hx=function(){!cx&&qe&&Be(qe,"display","none")},vx=function(){!cx&&qe&&Be(qe,"display","")};ef&&document.addEventListener("click",function(t){if(hc)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),hc=!1,!1},!0);var xa=function(e){if(Pe){e=e.touches?e.touches[0]:e;var r=YN(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[dr]._onDragOver(n)}}},ZN=function(e){Pe&&Pe.parentNode[dr]._isOutsideThisEl(e.target)};function Ve(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=fn({},e),t[dr]=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 fx(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:Ve.supportPointer!==!1&&"PointerEvent"in window&&!Ds,emptyInsertThreshold:5};gl.initializePlugins(this,t,r);for(var n in r)!(n in e)&&(e[n]=r[n]);dx(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:XN,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?ut(t,"pointerdown",this._onTapStart):(ut(t,"mousedown",this._onTapStart),ut(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(ut(t,"dragover",this),ut(t,"dragenter",this)),vc.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),fn(this,VN())}Ve.prototype={constructor:Ve,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ro=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,Pe):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(iF(n),!Pe&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ds&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=wn(l,i.draggable,n,!1),!(l&&l.animated)&&Lu!==l)){if(ho=Ft(l),Os=Ft(l,i.draggable),typeof f=="function"){if(f.call(this,e,l,this)){yr({sortable:r,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),Ir("filter",r,{evt:e}),a&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=wn(u,c.trim(),n,!1),c)return yr({sortable:r,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),Ir("filter",r,{evt:e}),!0}),f)){a&&e.cancelable&&e.preventDefault();return}i.handle&&!wn(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&&!Pe&&n.parentNode===a){var u=Dt(n);if(Rt=a,Pe=n,kt=Pe.parentNode,Ia=Pe.nextSibling,Lu=n,hu=o.group,Ve.dragged=Pe,Ca={target:Pe,clientX:(r||e).clientX,clientY:(r||e).clientY},M0=Ca.clientX-u.left,R0=Ca.clientY-u.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,Pe.style["will-change"]="all",l=function(){if(Ir("delayEnded",i,{evt:e}),Ve.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!I0&&i.nativeDraggable&&(Pe.draggable=!0),i._triggerDragStart(e,r),yr({sortable:i,name:"choose",originalEvent:e}),Ot(Pe,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){sx(Pe,f.trim(),kd)}),ut(s,"dragover",xa),ut(s,"mousemove",xa),ut(s,"touchmove",xa),ut(s,"mouseup",i._onDrop),ut(s,"touchend",i._onDrop),ut(s,"touchcancel",i._onDrop),I0&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Pe.draggable=!0),Ir("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(pl||pi))){if(Ve.eventCanceled){this._onDrop();return}ut(s,"mouseup",i._disableDelayedDrag),ut(s,"touchend",i._disableDelayedDrag),ut(s,"touchcancel",i._disableDelayedDrag),ut(s,"mousemove",i._delayedDragTouchMoveHandler),ut(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&ut(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(){Pe&&kd(Pe),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?ut(document,"pointermove",this._onTouchMove):r?ut(document,"touchmove",this._onTouchMove):ut(document,"mousemove",this._onTouchMove):(ut(Pe,"dragend",this),ut(Rt,"dragstart",this._onDragStart));try{document.selection?ku(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(so=!1,Rt&&Pe){Ir("dragStarted",this,{evt:r}),this.nativeDraggable&&ut(document,"dragover",ZN);var n=this.options;!e&&Ot(Pe,n.dragClass,!1),Ot(Pe,n.ghostClass,!0),Ve.active=this,e&&this._appendGhost(),yr({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(gn){this._lastX=gn.clientX,this._lastY=gn.clientY,hx();for(var e=document.elementFromPoint(gn.clientX,gn.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(gn.clientX,gn.clientY),e!==r);)r=e;if(Pe.parentNode[dr]._isOutsideThisEl(e),r)do{if(r[dr]){var n=void 0;if(n=r[dr]._onDragOver({clientX:gn.clientX,clientY:gn.clientY,target:e,rootEl:r}),n&&!this.options.dragoverBubble)break}e=r}while(r=r.parentNode);vx()}},_onTouchMove:function(e){if(Ca){var r=this.options,n=r.fallbackTolerance,i=r.fallbackOffset,a=e.touches?e.touches[0]:e,o=qe&&Da(qe,!0),s=qe&&o&&o.a,l=qe&&o&&o.d,u=pu&&ur&&E0(ur),f=(a.clientX-Ca.clientX+i.x)/(s||1)+(u?u[0]-Od[0]:0)/(s||1),c=(a.clientY-Ca.clientY+i.y)/(l||1)+(u?u[1]-Od[1]:0)/(l||1);if(!Ve.active&&!so){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(qe){o?(o.e+=f-(Dd||0),o.f+=c-(Ld||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(qe,"webkitTransform",d),Be(qe,"mozTransform",d),Be(qe,"msTransform",d),Be(qe,"transform",d),Dd=f,Ld=c,gn=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!qe){var e=this.options.fallbackOnBody?document.body:Rt,r=Dt(Pe,!0,pu,!0,e),n=this.options;if(pu){for(ur=e;Be(ur,"position")==="static"&&Be(ur,"transform")==="none"&&ur!==document;)ur=ur.parentNode;ur!==document.body&&ur!==document.documentElement?(ur===document&&(ur=jn()),r.top+=ur.scrollTop,r.left+=ur.scrollLeft):ur=jn(),Od=E0(ur)}qe=Pe.cloneNode(!0),Ot(qe,n.ghostClass,!1),Ot(qe,n.fallbackClass,!0),Ot(qe,n.dragClass,!0),Be(qe,"transition",""),Be(qe,"transform",""),Be(qe,"box-sizing","border-box"),Be(qe,"margin",0),Be(qe,"top",r.top),Be(qe,"left",r.left),Be(qe,"width",r.width),Be(qe,"height",r.height),Be(qe,"opacity","0.8"),Be(qe,"position",pu?"absolute":"fixed"),Be(qe,"zIndex","100000"),Be(qe,"pointerEvents","none"),Ve.ghost=qe,e.appendChild(qe),Be(qe,"transform-origin",M0/parseInt(qe.style.width)*100+"% "+R0/parseInt(qe.style.height)*100+"%")}},_onDragStart:function(e,r){var n=this,i=e.dataTransfer,a=n.options;if(Ir("dragStart",this,{evt:e}),Ve.eventCanceled){this._onDrop();return}Ir("setupClone",this),Ve.eventCanceled||(Bt=bp(Pe),Bt.draggable=!1,Bt.style["will-change"]="",this._hideClone(),Ot(Bt,this.options.chosenClass,!1),Ve.clone=Bt),n.cloneId=ku(function(){Ir("clone",n),!Ve.eventCanceled&&(n.options.removeCloneOnHide||Rt.insertBefore(Bt,Pe),n._hideClone(),yr({sortable:n,name:"clone"}))}),!r&&Ot(Pe,a.dragClass,!0),r?(hc=!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,Pe)),ut(document,"drop",n),Be(Pe,"transform","translateZ(0)")),so=!0,n._dragStartId=ku(n._dragStarted.bind(n,r,e)),ut(document,"selectstart",n),hs=!0,Ds&&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=Ve.active,f=hu===l,c=s.sort,d=tr||u,h,v=this,p=!1;if(tv)return;function g($,U){Ir($,v,Kn({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:a,canSort:c,fromSortable:d,target:n,completed:y,onMove:function(Z,V){return gu(Rt,r,Pe,i,Z,Dt(Z),e,V)},changed:b},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&&(Ot(Pe,tr?tr.options.ghostClass:u.options.ghostClass,!1),Ot(Pe,s.ghostClass,!0)),tr!==v&&v!==Ve.active?tr=v:v===Ve.active&&tr&&(tr=null),d===v&&(v._ignoreWhileAnimating=n),v.animateAll(function(){g("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===Pe&&!Pe.animated||n===r&&!n.animated)&&(ro=null),!s.dragoverBubble&&!e.rootEl&&n!==document&&(Pe.parentNode[dr]._isOutsideThisEl(e.target),!$&&xa(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function b(){Ur=Ft(Pe),_i=Ft(Pe,s.draggable),yr({sortable:v,name:"change",toEl:r,newIndex:Ur,newDraggableIndex:_i,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=wn(n,s.draggable,r,!0),g("dragOver"),Ve.eventCanceled)return p;if(Pe.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||v._ignoreWhileAnimating===n)return y(!1);if(hc=!1,u&&!s.disabled&&(f?c||(o=kt!==Rt):tr===this||(this.lastPutMode=hu.checkPull(this,u,Pe,e))&&l.checkPut(this,u,Pe,e))){if(h=this._getDirection(e,n)==="vertical",i=Dt(Pe),g("dragOverValid"),Ve.eventCanceled)return p;if(o)return kt=Rt,m(),this._hideClone(),g("revert"),Ve.eventCanceled||(Ia?Rt.insertBefore(Pe,Ia):Rt.appendChild(Pe)),y(!0);var A=Sp(r,s.draggable);if(!A||eF(e,h,this)&&!A.animated){if(A===Pe)return y(!1);if(A&&r===e.target&&(n=A),n&&(a=Dt(n)),gu(Rt,r,Pe,i,n,a,e,!!n)!==!1)return m(),r.appendChild(Pe),kt=r,b(),y(!0)}else if(A&&qN(e,h,this)){var M=_o(r,0,s,!0);if(M===Pe)return y(!1);if(n=M,a=Dt(n),gu(Rt,r,Pe,i,n,a,e,!1)!==!1)return m(),r.insertBefore(Pe,M),kt=r,b(),y(!0)}else if(n.parentNode===r){a=Dt(n);var C=0,I,P=Pe.parentNode!==r,S=!KN(Pe.animated&&Pe.toRect||i,n.animated&&n.toRect||a,h),T=h?"top":"left",x=_0(n,"top","top")||_0(Pe,"top","top"),_=x?x.scrollTop:void 0;ro!==n&&(I=a[T],Bs=!1,vu=!S&&s.invertSwap||P),C=tF(e,n,a,h,S?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,vu,ro===n);var E;if(C!==0){var R=Ft(Pe);do R-=C,E=kt.children[R];while(E&&(Be(E,"display")==="none"||E===qe))}if(C===0||E===n)return y(!1);ro=n,ks=C;var O=n.nextElementSibling,D=!1;D=C===1;var B=gu(Rt,r,Pe,i,n,a,e,D);if(B!==!1)return(B===1||B===-1)&&(D=B===1),tv=!0,setTimeout(JN,30),m(),D&&!O?r.appendChild(Pe):n.parentNode.insertBefore(Pe,D?O:n),x&&ux(x,0,_-x.scrollTop),kt=Pe.parentNode,I!==void 0&&!vu&&(Ou=Math.abs(I-Dt(n)[T])),b(),y(!0)}if(r.contains(Pe))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",xa),ot(document,"mousemove",xa),ot(document,"touchmove",xa)},_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(Ur=Ft(Pe),_i=Ft(Pe,n.draggable),Ir("drop",this,{evt:e}),kt=Pe&&Pe.parentNode,Ur=Ft(Pe),_i=Ft(Pe,n.draggable),Ve.eventCanceled){this._nulling();return}so=!1,vu=!1,Bs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),rv(this.cloneId),rv(this._dragStartId),this.nativeDraggable&&(ot(document,"drop",this),ot(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ds&&Be(document.body,"user-select",""),Be(Pe,"transform",""),e&&(hs&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),qe&&qe.parentNode&&qe.parentNode.removeChild(qe),(Rt===kt||tr&&tr.lastPutMode!=="clone")&&Bt&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),Pe&&(this.nativeDraggable&&ot(Pe,"dragend",this),kd(Pe),Pe.style["will-change"]="",hs&&!so&&Ot(Pe,tr?tr.options.ghostClass:this.options.ghostClass,!1),Ot(Pe,this.options.chosenClass,!1),yr({sortable:this,name:"unchoose",toEl:kt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Rt!==kt?(Ur>=0&&(yr({rootEl:kt,name:"add",toEl:kt,fromEl:Rt,originalEvent:e}),yr({sortable:this,name:"remove",toEl:kt,originalEvent:e}),yr({rootEl:kt,name:"sort",toEl:kt,fromEl:Rt,originalEvent:e}),yr({sortable:this,name:"sort",toEl:kt,originalEvent:e})),tr&&tr.save()):Ur!==ho&&Ur>=0&&(yr({sortable:this,name:"update",toEl:kt,originalEvent:e}),yr({sortable:this,name:"sort",toEl:kt,originalEvent:e})),Ve.active&&((Ur==null||Ur===-1)&&(Ur=ho,_i=Os),yr({sortable:this,name:"end",toEl:kt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ir("nulling",this),Rt=Pe=kt=qe=Ia=Bt=Lu=Ei=Ca=gn=hs=Ur=_i=ho=Os=ro=ks=tr=hu=Ve.dragged=Ve.ghost=Ve.clone=Ve.active=null,pc.forEach(function(e){e.checked=!0}),pc.length=Dd=Ld=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Pe&&(this._onDragOver(e),QN(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],wn(r,o.draggable,this.el,!1)&&e.push(r.getAttribute(o.dataIdAttr)||nF(r));return e},sort:function(e,r){var n={},i=this.el;this.toArray().forEach(function(a,o){var s=i.children[o];wn(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 wn(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=gl.modifyOption(this,e,r);typeof i<"u"?n[e]=i:n[e]=r,e==="group"&&dx(n)},destroy:function(){Ir("destroy",this);var e=this.el;e[dr]=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(),vc.splice(vc.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ei){if(Ir("hideClone",this),Ve.eventCanceled)return;Be(Bt,"display","none"),this.options.removeCloneOnHide&&Bt.parentNode&&Bt.parentNode.removeChild(Bt),Ei=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ei){if(Ir("showClone",this),Ve.eventCanceled)return;Pe.parentNode==Rt&&!this.options.group.revertClone?Rt.insertBefore(Bt,Pe):Ia?Rt.insertBefore(Bt,Ia):Rt.appendChild(Bt),this.options.group.revertClone&&this.animate(Pe,Bt),Be(Bt,"display",""),Ei=!1}}};function QN(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function gu(t,e,r,n,i,a,o,s){var l,u=t[dr],f=u.options.onMove,c;return window.CustomEvent&&!pi&&!pl?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||Dt(e),l.willInsertAfter=s,l.originalEvent=o,t.dispatchEvent(l),f&&(c=f.call(u,l,o)),c}function kd(t){t.draggable=!1}function JN(){tv=!1}function qN(t,e,r){var n=Dt(_o(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 eF(t,e,r){var n=Dt(Sp(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 tF(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&&Ou<u*i){if(!Bs&&(ks===1?l>f+u*a/2:l<c-u*a/2)&&(Bs=!0),Bs)d=!0;else if(ks===1?l<f+Ou:l>c-Ou)return-ks}else if(l>f+u*(1-i)/2&&l<c-u*(1-i)/2)return rF(e)}return d=d||o,d&&(l<f+u*a/2||l>c-u*a/2)?l>f+u/2?1:-1:0}function rF(t){return Ft(Pe)<Ft(t)?1:-1}function nF(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 iF(t){pc.length=0;for(var e=t.getElementsByTagName("input"),r=e.length;r--;){var n=e[r];n.checked&&pc.push(n)}}function ku(t){return setTimeout(t,0)}function rv(t){return clearTimeout(t)}ef&&ut(document,"touchmove",function(t){(Ve.active||so)&&t.cancelable&&t.preventDefault()});Ve.utils={on:ut,off:ot,css:Be,find:sx,is:function(e,r){return!!wn(e,r,e,!1)},extend:zN,throttle:lx,closest:wn,toggleClass:Ot,clone:bp,index:Ft,nextTick:ku,cancelNextTick:rv,detectDirection:fx,getChild:_o};Ve.get=function(t){return t[dr]};Ve.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&&(Ve.utils=Kn(Kn({},Ve.utils),n.utils)),gl.mount(n)})};Ve.create=function(t,e){return new Ve(t,e)};Ve.version=NN;var Ht=[],vs,nv,iv=!1,Bd,Nd,gc,ps;function aF(){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?ut(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ut(document,"pointermove",this._handleFallbackAutoScroll):n.touches?ut(document,"touchmove",this._handleFallbackAutoScroll):ut(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)),L0(),Bu(),HN()},nulling:function(){gc=nv=vs=iv=ps=Bd=Nd=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(gc=r,n||this.options.forceAutoScrollFallback||pl||pi||Ds){Fd(r,this.options,s,n);var l=ki(s,!0);iv&&(!ps||a!==Bd||o!==Nd)&&(ps&&L0(),ps=setInterval(function(){var u=ki(document.elementFromPoint(a,o),!0);u!==l&&(l=u,Bu()),Fd(r,i.options,u,n)},10),Bd=a,Nd=o)}else{if(!this.options.bubbleScroll||ki(s,!0)===jn()){Bu();return}Fd(r,this.options,ki(s,!1),!1)}}},fn(t,{pluginName:"scroll",initializeByDefault:!0})}function Bu(){Ht.forEach(function(t){clearInterval(t.pid)}),Ht=[]}function L0(){clearInterval(ps)}var Fd=lx(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=jn(),u=!1,f;nv!==r&&(nv=r,Bu(),vs=e.scroll,f=e.scrollFn,vs===!0&&(vs=ki(r,!0)));var c=0,d=vs;do{var h=d,v=Dt(h),p=v.top,g=v.bottom,m=v.left,y=v.right,b=v.width,A=v.height,M=void 0,C=void 0,I=h.scrollWidth,P=h.scrollHeight,S=Be(h),T=h.scrollLeft,x=h.scrollTop;h===l?(M=b<I&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible"),C=A<P&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")):(M=b<I&&(S.overflowX==="auto"||S.overflowX==="scroll"),C=A<P&&(S.overflowY==="auto"||S.overflowY==="scroll"));var _=M&&(Math.abs(y-i)<=o&&T+b<I)-(Math.abs(m-i)<=o&&!!T),E=C&&(Math.abs(g-a)<=o&&x+A<P)-(Math.abs(p-a)<=o&&!!x);if(!Ht[c])for(var R=0;R<=c;R++)Ht[R]||(Ht[R]={});(Ht[c].vx!=_||Ht[c].vy!=E||Ht[c].el!==h)&&(Ht[c].el=h,Ht[c].vx=_,Ht[c].vy=E,clearInterval(Ht[c].pid),(_!=0||E!=0)&&(u=!0,Ht[c].pid=setInterval((function(){n&&this.layer===0&&Ve.active._onTouchMove(gc);var O=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(Ve.dragged.parentNode[dr],D,O,t,gc,Ht[this.layer].el)!=="continue"||ux(Ht[this.layer].el,D,O)}).bind({layer:c}),24))),c++}while(e.bubbleScroll&&d!==l&&(d=ki(d,!1)));iv=u}},30),px=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 Cp(){}Cp.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=_o(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:px};fn(Cp,{pluginName:"revertOnSpill"});function xp(){}xp.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:px};fn(xp,{pluginName:"removeOnSpill"});var Jr;function oF(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(r){var n=r.dragEl;Jr=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=Jr;a(i)!==!1?(Ot(i,f.swapClass,!0),Jr=i):Jr=null,c&&c!==Jr&&Ot(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;Jr&&Ot(Jr,s.swapClass,!1),Jr&&(s.swap||i&&i.options.swap)&&a!==Jr&&(o.captureAnimationState(),o!==n&&n.captureAnimationState(),sF(a,Jr),o.animateAll(),o!==n&&n.animateAll())},nulling:function(){Jr=null}},fn(t,{pluginName:"swap",eventProperties:function(){return{swapItem:Jr}}})}function sF(t,e){var r=t.parentNode,n=e.parentNode,i,a;!r||!n||r.isEqualNode(e)||n.isEqualNode(t)||(i=Ft(t),a=Ft(e),r.isEqualNode(n)&&i<a&&a++,r.insertBefore(e,r.children[i]),n.insertBefore(t,n.children[a]))}var Ye=[],$r=[],ts,mn,rs=!1,Ar=!1,no=!1,At,ns,mu;function lF(){function t(e){for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));e.options.supportPointer?ut(document,"pointerup",this._deselectMultiDrag):(ut(document,"mouseup",this._deselectMultiDrag),ut(document,"touchend",this._deselectMultiDrag)),ut(document,"keydown",this._checkKeyDown),ut(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var o="";Ye.length&&mn===e?Ye.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;At=n},delayEnded:function(){this.isMultiDrag=~Ye.indexOf(At)},setupClone:function(r){var n=r.sortable,i=r.cancel;if(this.isMultiDrag){for(var a=0;a<Ye.length;a++)$r.push(bp(Ye[a])),$r[a].sortableIndex=Ye[a].sortableIndex,$r[a].draggable=!1,$r[a].style["will-change"]="",Ot($r[a],this.options.selectedClass,!1),Ye[a]===At&&Ot($r[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||Ye.length&&mn===n&&(O0(!0,i),a("clone"),o()))},showClone:function(r){var n=r.cloneNowShown,i=r.rootEl,a=r.cancel;this.isMultiDrag&&(O0(!1,i),$r.forEach(function(o){Be(o,"display","")}),n(),mu=!1,a())},hideClone:function(r){var n=this;r.sortable;var i=r.cloneNowHidden,a=r.cancel;this.isMultiDrag&&($r.forEach(function(o){Be(o,"display","none"),n.options.removeCloneOnHide&&o.parentNode&&o.parentNode.removeChild(o)}),i(),mu=!0,a())},dragStartGlobal:function(r){r.sortable,!this.isMultiDrag&&mn&&mn.multiDrag._deselectMultiDrag(),Ye.forEach(function(n){n.sortableIndex=Ft(n)}),Ye=Ye.sort(function(n,i){return n.sortableIndex-i.sortableIndex}),no=!0},dragStarted:function(r){var n=this,i=r.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Ye.forEach(function(o){o!==At&&Be(o,"position","absolute")});var a=Dt(At,!1,!0,!0);Ye.forEach(function(o){o!==At&&P0(o,a)}),Ar=!0,rs=!0}i.animateAll(function(){Ar=!1,rs=!1,n.options.animation&&Ye.forEach(function(o){Md(o)}),n.options.sort&&yu()})}},dragOver:function(r){var n=r.target,i=r.completed,a=r.cancel;Ar&&~Ye.indexOf(n)&&(i(!1),a())},revert:function(r){var n=r.fromSortable,i=r.rootEl,a=r.sortable,o=r.dragRect;Ye.length>1&&(Ye.forEach(function(s){a.addAnimationState({target:s,rect:Ar?Dt(s):o}),Md(s),s.fromRect=o,n.removeAnimationState(s)}),Ar=!1,uF(!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(),rs=!1,u.animation&&Ye.length>1&&(Ar||!i&&!o.options.sort&&!l)){var f=Dt(At,!1,!0,!0);Ye.forEach(function(d){d!==At&&(P0(d,f),s.appendChild(d))}),Ar=!0}if(!i)if(Ar||yu(),Ye.length>1){var c=mu;o._showClone(n),o.options.animation&&!mu&&c&&$r.forEach(function(d){o.addAnimationState({target:d,rect:ns}),d.fromRect=ns,d.thisAnimationDuration=null})}else o._showClone(n)}},dragOverAnimationCapture:function(r){var n=r.dragRect,i=r.isOwner,a=r.activeSortable;if(Ye.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){ns=fn({},n);var o=Da(At,!0);ns.top-=o.f,ns.left-=o.e}},dragOverAnimationComplete:function(){Ar&&(Ar=!1,yu())},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(!no)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ot(At,c.selectedClass,!~Ye.indexOf(At)),~Ye.indexOf(At))Ye.splice(Ye.indexOf(At),1),ts=null,ds({sortable:o,rootEl:i,name:"deselect",targetEl:At,originalEvt:n});else{if(Ye.push(At),ds({sortable:o,rootEl:i,name:"select",targetEl:At,originalEvt:n}),n.shiftKey&&ts&&o.el.contains(ts)){var h=Ft(ts),v=Ft(At);if(~h&&~v&&h!==v){var p,g;for(v>h?(g=h,p=v):(g=v,p=h+1);g<p;g++)~Ye.indexOf(d[g])||(Ot(d[g],c.selectedClass,!0),Ye.push(d[g]),ds({sortable:o,rootEl:i,name:"select",targetEl:d[g],originalEvt:n}))}}else ts=At;mn=f}if(no&&this.isMultiDrag){if(Ar=!1,(a[dr].options.sort||a!==i)&&Ye.length>1){var m=Dt(At),y=Ft(At,":not(."+this.options.selectedClass+")");if(!rs&&c.animation&&(At.thisAnimationDuration=null),f.captureAnimationState(),!rs&&(c.animation&&(At.fromRect=m,Ye.forEach(function(A){if(A.thisAnimationDuration=null,A!==At){var M=Ar?Dt(A):m;A.fromRect=M,f.addAnimationState({target:A,rect:M})}})),yu(),Ye.forEach(function(A){d[y]?a.insertBefore(A,d[y]):a.appendChild(A),y++}),l===Ft(At))){var b=!1;Ye.forEach(function(A){if(A.sortableIndex!==Ft(A)){b=!0;return}}),b&&s("update")}Ye.forEach(function(A){Md(A)}),f.animateAll()}mn=f}(i===a||u&&u.lastPutMode!=="clone")&&$r.forEach(function(A){A.parentNode&&A.parentNode.removeChild(A)})}},nullingGlobal:function(){this.isMultiDrag=no=!1,$r.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 no<"u"&&no)&&mn===this.sortable&&!(r&&wn(r.target,this.options.draggable,this.sortable.el,!1))&&!(r&&r.button!==0))for(;Ye.length;){var n=Ye[0];Ot(n,this.options.selectedClass,!1),Ye.shift(),ds({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)}},fn(t,{pluginName:"multiDrag",utils:{select:function(r){var n=r.parentNode[dr];!n||!n.options.multiDrag||~Ye.indexOf(r)||(mn&&mn!==n&&(mn.multiDrag._deselectMultiDrag(),mn=n),Ot(r,n.options.selectedClass,!0),Ye.push(r))},deselect:function(r){var n=r.parentNode[dr],i=Ye.indexOf(r);!n||!n.options.multiDrag||!~i||(Ot(r,n.options.selectedClass,!1),Ye.splice(i,1))}},eventProperties:function(){var r=this,n=[],i=[];return Ye.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var o;Ar&&a!==At?o=-1:Ar?o=Ft(a,":not(."+r.options.selectedClass+")"):o=Ft(a),i.push({multiDragElement:a,index:o})}),{items:DN(Ye),clones:[].concat($r),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 uF(t,e){Ye.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function O0(t,e){$r.forEach(function(r,n){var i=e.children[r.sortableIndex+(t?Number(n):0)];i?e.insertBefore(r,i):e.appendChild(r)})}function yu(){Ye.forEach(function(t){t!==At&&t.parentNode&&t.parentNode.removeChild(t)})}Ve.mount(new aF);Ve.mount(xp,Cp);const cF=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:lF,Sortable:Ve,Swap:oF,default:Ve},Symbol.toStringTag,{value:"Module"})),fF=z0(cF);(function(t,e){(function(n,i){t.exports=i(EN,fF)})(typeof self<"u"?self:$0,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,b,A,M,C,I,P;if(m?A=s:y?A=s[g]||c(g,{}):A=(s[g]||{}).prototype,A)for(M in p){if(I=p[M],v.noTargetGet?(P=l(A,M),C=P&&P.value):C=A[M],b=h(m?M:g+(y?".":"#")+M,v.forced),!b&&C!==void 0){if(typeof I==typeof C)continue;d(I,C)}(v.sham||C&&C.sham)&&u(I,"sham",!0),f(A,M,I,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),b=m.flags,A=String(b===void 0&&m instanceof RegExp&&!("flags"in d)?f.call(m):b);return"/"+y+"/"+A},{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(b){var A=String(c(this));f(b);var M=u(p(arguments.length>1?arguments[1]:void 0,A.length)),C=String(b);return v?v.call(A,C,M):A.slice(M,M+C.length)===C}})},"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,b=y>1?arguments[1]:void 0,A=b!==void 0,M=h(g),C=0,I,P,S,T,x,_;if(A&&(b=s(b,y>2?arguments[2]:void 0,2)),M!=null&&!(m==Array&&f(M)))for(T=M.call(g),x=T.next,P=new m;!(S=x.call(T)).done;C++)_=A?u(T,b,[S.value,C],!0):S.value,d(P,C,_);else for(I=c(g.length),P=new m(I);I>C;C++)_=A?b(g[C],C):g[C],d(P,C,_);return P.length=C,P}},"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,b=/\$([$&'`]|\d\d?)/g,A=function(M){return M===void 0?M:String(M)};s("replace",2,function(M,C,I,P){var S=P.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=P.REPLACE_KEEPS_$0,x=S?"$":"$0";return[function(R,O){var D=d(this),B=R==null?void 0:R[M];return B!==void 0?B.call(R,D,O):C.call(String(D),R,O)},function(E,R){if(!S&&T||typeof R=="string"&&R.indexOf(x)===-1){var O=I(C,E,this,R);if(O.done)return O.value}var D=l(E),B=String(this),$=typeof R=="function";$||(R=String(R));var U=D.global;if(U){var Q=D.unicode;D.lastIndex=0}for(var Z=[];;){var V=v(D,B);if(V===null||(Z.push(V),!U))break;var te=String(V[0]);te===""&&(D.lastIndex=h(B,f(D.lastIndex),Q))}for(var ie="",se=0,W=0;W<Z.length;W++){V=Z[W];for(var q=String(V[0]),ce=p(g(c(V.index),B.length),0),me=[],be=1;be<V.length;be++)me.push(A(V[be]));var ue=V.groups;if($){var ve=[q].concat(me,ce,B);ue!==void 0&&ve.push(ue);var Ce=String(R.apply(void 0,ve))}else Ce=_(q,B,ce,me,ue,R);ce>=se&&(ie+=B.slice(se,ce)+Ce,se=ce+q.length)}return ie+B.slice(se)}];function _(E,R,O,D,B,$){var U=O+E.length,Q=D.length,Z=b;return B!==void 0&&(B=u(B),Z=y),C.call($,Z,function(V,te){var ie;switch(te.charAt(0)){case"$":return"$";case"&":return E;case"`":return R.slice(0,O);case"'":return R.slice(U);case"<":ie=B[te.slice(1,-1)];break;default:var se=+te;if(se===0)return V;if(se>Q){var W=m(se/10);return W===0?V:W<=Q?D[W-1]===void 0?te.charAt(1):D[W-1]+te.charAt(1):V}ie=D[se-1]}return ie===void 0?"":ie})}})},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(S){return m(S)?g(S):p(S,{})},b=function(S){return function(T){var x;if(!u(T)||(x=g(T)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return x}};if(s){var A=new v,M=A.get,C=A.has,I=A.set;p=function(S,T){return I.call(A,S,T),T},g=function(S){return M.call(A,S)||{}},m=function(S){return C.call(A,S)}}else{var P=d("state");h[P]=!0,p=function(S,T){return f(S,P,T),T},g=function(S){return c(S,P)?S[P]:{}},m=function(S){return c(S,P)}}i.exports={set:p,get:g,has:m,enforce:y,getterFor:b}},"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,b){var A=b?!!b.unsafe:!1,M=b?!!b.enumerable:!1,C=b?!!b.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){M?g[m]=y:f(m,y);return}else A?!C&&g[m]&&(M=!0):delete g[m];M?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=[],b;g>m;)b=p[m++],(!s||f.call(v,b))&&y.push(d?[b,v[b]]:v[b]);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"),b=function(){},A=function(S){return p+m+v+S+p+"/"+m+v},M=function(S){S.write(A("")),S.close();var T=S.parentWindow.Object;return S=null,T},C=function(){var S=d("iframe"),T="java"+m+":",x;return S.style.display="none",c.appendChild(S),S.src=String(T),x=S.contentWindow.document,x.open(),x.write(A("document.F=Object")),x.close(),x.F},I,P=function(){try{I=document.domain&&new ActiveXObject("htmlfile")}catch{}P=I?M(I):C();for(var S=u.length;S--;)delete P[g][u[S]];return P()};f[y]=!0,i.exports=Object.create||function(T,x){var _;return T!==null?(b[g]=s(T),_=new b,b[g]=null,_[y]=T):_=P(),x===void 0?_:l(_,x)}},"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,b=m.BUGGY_SAFARI_ITERATORS,A=v("iterator"),M="keys",C="values",I="entries",P=function(){return this};i.exports=function(S,T,x,_,E,R,O){l(x,T,_);var D=function(W){if(W===E&&Z)return Z;if(!b&&W in U)return U[W];switch(W){case M:return function(){return new x(this,W)};case C:return function(){return new x(this,W)};case I:return function(){return new x(this,W)}}return function(){return new x(this)}},B=T+" Iterator",$=!1,U=S.prototype,Q=U[A]||U["@@iterator"]||E&&U[E],Z=!b&&Q||D(E),V=T=="Array"&&U.entries||Q,te,ie,se;if(V&&(te=u(V.call(new S)),y!==Object.prototype&&te.next&&(!p&&u(te)!==y&&(f?f(te,y):typeof te[A]!="function"&&d(te,A,P)),c(te,B,!0,!0),p&&(g[B]=P))),E==C&&Q&&Q.name!==C&&($=!0,Z=function(){return Q.call(this)}),(!p||O)&&U[A]!==Z&&d(U,A,Z),g[T]=Z,E)if(ie={values:D(C),keys:R?Z:D(M),entries:D(I)},O)for(se in ie)(b||$||!(se in U))&&h(U,se,ie[se]);else s({target:T,proto:!0,forced:b||$},ie);return ie}},"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(I){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,v=d.exec(I.stack)||h.exec(I.stack),p=v&&v[1]||!1,g=v&&v[2]||!1,m=document.location.href.replace(document.location.hash,""),y,b,A,M=document.getElementsByTagName("script");p===m&&(y=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),A=y.replace(b,"$1").trim());for(var C=0;C<M.length;C++)if(M[C].readyState==="interactive"||M[C].src===p||p===m&&M[C].innerHTML&&M[C].innerHTML.trim()===A)return M[C];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,b,A,M,C,I=h&&y.sticky,P=s.call(y),S=y.source,T=0,x=m;return I&&(P=P.replace("y",""),P.indexOf("g")===-1&&(P+="g"),x=String(m).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&m[y.lastIndex-1]!==`
  67. `)&&(S="(?: "+S+")",x=" "+x,T++),A=new RegExp("^(?:"+S+")",P)),v&&(A=new RegExp("^"+S+"$(?!\\s)",P)),d&&(b=y.lastIndex),M=u.call(I?A:y,x),I?M?(M.input=M.input.slice(T),M[0]=M[0].slice(T),M.index=y.lastIndex,y.lastIndex+=M[0].length):y.lastIndex=0:d&&M&&(y.lastIndex=y.global?M.index+M[0].length:b),v&&M&&M.length>1&&f.call(M[0],A,function(){for(C=1;C<arguments.length-2;C++)arguments[C]===void 0&&(M[C]=void 0)}),M}),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"),b=9007199254740991,A="Maximum allowed index exceeded",M=m>=51||!l(function(){var S=[];return S[y]=!1,S.concat()[0]!==S}),C=p("concat"),I=function(S){if(!f(S))return!1;var T=S[y];return T!==void 0?!!T:u(S)},P=!M||!C;s({target:"Array",proto:!0,forced:P},{concat:function(T){var x=c(this),_=v(x,0),E=0,R,O,D,B,$;for(R=-1,D=arguments.length;R<D;R++)if($=R===-1?x:arguments[R],I($)){if(B=d($.length),E+B>b)throw TypeError(A);for(O=0;O<B;O++,E++)O in $&&h(_,E,$[O])}else{if(E>=b)throw TypeError(A);h(_,E++,$)}return _.length=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 b=p,A=0,M=m?u(m,y,3):!1,C;A<v;){if(A in h){if(C=M?M(h[A],A,d):h[A],g>0&&s(C))b=f(c,d,C,l(C.length),b,g-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");c[b]=C}b++}A++}return b};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,b=Math.min,A=9007199254740991,M="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!g||!m},{splice:function(I,P){var S=c(this),T=f(S.length),x=l(I,T),_=arguments.length,E,R,O,D,B,$;if(_===0?E=R=0:_===1?(E=0,R=T-x):(E=_-2,R=b(y(u(P),0),T-x)),T+E-R>A)throw TypeError(M);for(O=d(S,R),D=0;D<R;D++)B=x+D,B in S&&h(O,D,S[B]);if(O.length=R,E<R){for(D=x;D<T-R;D++)B=D+R,$=D+E,B in S?S[$]=S[B]:delete S[$];for(D=T;D>T-R+E;D--)delete S[D-1]}else if(E>R)for(D=T-R;D>x;D--)B=D+R-1,$=D+E-1,B in S?S[$]=S[B]:delete S[$];for(D=0;D<E;D++)S[D+x]=arguments[D+2];return S.length=T-R+E,O}})},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"),b=o("7b0b"),A=o("fc6a"),M=o("c04e"),C=o("5c6c"),I=o("7c73"),P=o("df75"),S=o("241c"),T=o("057f"),x=o("7418"),_=o("06cf"),E=o("9bf2"),R=o("d1e7"),O=o("9112"),D=o("6eeb"),B=o("5692"),$=o("f772"),U=o("d012"),Q=o("90e3"),Z=o("b622"),V=o("e538"),te=o("746f"),ie=o("d44e"),se=o("69f3"),W=o("b727").forEach,q=$("hidden"),ce="Symbol",me="prototype",be=Z("toPrimitive"),ue=se.set,ve=se.getterFor(ce),Ce=Object[me],ae=l.Symbol,fe=u("JSON","stringify"),Ae=_.f,Re=E.f,st=T.f,vt=R.f,mt=B("symbols"),Fe=B("op-symbols"),Kt=B("string-to-symbol-registry"),Lt=B("symbol-to-string-registry"),gr=B("wks"),hn=l.QObject,Jn=!hn||!hn[me]||!hn[me].findChild,qn=c&&v(function(){return I(Re({},"a",{get:function(){return Re(this,"a",{value:7}).a}})).a!=7})?function(xe,ye,Ee){var ke=Ae(Ce,ye);ke&&delete Ce[ye],Re(xe,ye,Ee),ke&&xe!==Ce&&Re(Ce,ye,ke)}:Re,ei=function(xe,ye){var Ee=mt[xe]=I(ae[me]);return ue(Ee,{type:ce,tag:xe,description:ye}),c||(Ee.description=ye),Ee},ne=h?function(xe){return typeof xe=="symbol"}:function(xe){return Object(xe)instanceof ae},re=function(ye,Ee,ke){ye===Ce&&re(Fe,Ee,ke),y(ye);var Ue=M(Ee,!0);return y(ke),p(mt,Ue)?(ke.enumerable?(p(ye,q)&&ye[q][Ue]&&(ye[q][Ue]=!1),ke=I(ke,{enumerable:C(0,!1)})):(p(ye,q)||Re(ye,q,C(1,{})),ye[q][Ue]=!0),qn(ye,Ue,ke)):Re(ye,Ue,ke)},G=function(ye,Ee){y(ye);var ke=A(Ee),Ue=P(ke).concat(de(ke));return W(Ue,function(lt){(!c||j.call(ke,lt))&&re(ye,lt,ke[lt])}),ye},F=function(ye,Ee){return Ee===void 0?I(ye):G(I(ye),Ee)},j=function(ye){var Ee=M(ye,!0),ke=vt.call(this,Ee);return this===Ce&&p(mt,Ee)&&!p(Fe,Ee)?!1:ke||!p(this,Ee)||!p(mt,Ee)||p(this,q)&&this[q][Ee]?ke:!0},K=function(ye,Ee){var ke=A(ye),Ue=M(Ee,!0);if(!(ke===Ce&&p(mt,Ue)&&!p(Fe,Ue))){var lt=Ae(ke,Ue);return lt&&p(mt,Ue)&&!(p(ke,q)&&ke[q][Ue])&&(lt.enumerable=!0),lt}},le=function(ye){var Ee=st(A(ye)),ke=[];return W(Ee,function(Ue){!p(mt,Ue)&&!p(U,Ue)&&ke.push(Ue)}),ke},de=function(ye){var Ee=ye===Ce,ke=st(Ee?Fe:A(ye)),Ue=[];return W(ke,function(lt){p(mt,lt)&&(!Ee||p(Ce,lt))&&Ue.push(mt[lt])}),Ue};if(d||(ae=function(){if(this instanceof ae)throw TypeError("Symbol is not a constructor");var ye=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ee=Q(ye),ke=function(Ue){this===Ce&&ke.call(Fe,Ue),p(this,q)&&p(this[q],Ee)&&(this[q][Ee]=!1),qn(this,Ee,C(1,Ue))};return c&&Jn&&qn(Ce,Ee,{configurable:!0,set:ke}),ei(Ee,ye)},D(ae[me],"toString",function(){return ve(this).tag}),D(ae,"withoutSetter",function(xe){return ei(Q(xe),xe)}),R.f=j,E.f=re,_.f=K,S.f=T.f=le,x.f=de,V.f=function(xe){return ei(Z(xe),xe)},c&&(Re(ae[me],"description",{configurable:!0,get:function(){return ve(this).description}}),f||D(Ce,"propertyIsEnumerable",j,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ae}),W(P(gr),function(xe){te(xe)}),s({target:ce,stat:!0,forced:!d},{for:function(xe){var ye=String(xe);if(p(Kt,ye))return Kt[ye];var Ee=ae(ye);return Kt[ye]=Ee,Lt[Ee]=ye,Ee},keyFor:function(ye){if(!ne(ye))throw TypeError(ye+" is not a symbol");if(p(Lt,ye))return Lt[ye]},useSetter:function(){Jn=!0},useSimple:function(){Jn=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!c},{create:F,defineProperty:re,defineProperties:G,getOwnPropertyDescriptor:K}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:le,getOwnPropertySymbols:de}),s({target:"Object",stat:!0,forced:v(function(){x.f(1)})},{getOwnPropertySymbols:function(ye){return x.f(b(ye))}}),fe){var _e=!d||v(function(){var xe=ae();return fe([xe])!="[null]"||fe({a:xe})!="{}"||fe(Object(xe))!="{}"});s({target:"JSON",stat:!0,forced:_e},{stringify:function(ye,Ee,ke){for(var Ue=[ye],lt=1,qt;arguments.length>lt;)Ue.push(arguments[lt++]);if(qt=Ee,!(!m(Ee)&&ye===void 0||ne(ye)))return g(Ee)||(Ee=function(ti,or){if(typeof qt=="function"&&(or=qt.call(this,ti,or)),!ne(or))return or}),Ue[1]=Ee,fe.apply(null,Ue)}})}ae[me][be]||O(ae[me],be,ae[me].valueOf),ie(ae,ce),U[q]=!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 b={length:-1};g?f(b,1,{enumerable:!0,get:d}):b[1]=1,p.call(b,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,b=v==6,A=v==5||b;return function(M,C,I,P){for(var S=u(M),T=l(S),x=s(C,I,3),_=f(T.length),E=0,R=P||c,O=p?R(M,_):g?R(M,0):void 0,D,B;_>E;E++)if((A||E in T)&&(D=T[E],B=x(D,E,S),v)){if(p)O[E]=B;else if(B)switch(v){case 3:return!0;case 5:return D;case 6:return E;case 2:d.call(O,D)}else if(y)return!1}return b?-1:m||y?y:O}};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),b=f(m.length),A=d?b-1:0,M=d?-1:1;if(p<2)for(;;){if(A in y){g=y[A],A+=M;break}if(A+=M,d?A<0:b<=A)throw TypeError("Reduce of empty array with no initial value")}for(;d?A>=0:b>A;A+=M)A in y&&(g=v(g,y[A],A,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 b=[];return b.groups={a:"7"},b},"".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=/(?:)/,b=y.exec;y.exec=function(){return b.apply(this,arguments)};var A="ab".split(y);return A.length!==2||A[0]!=="a"||A[1]!=="b"});i.exports=function(y,b,A,M){var C=u(y),I=!l(function(){var E={};return E[C]=function(){return 7},""[y](E)!=7}),P=I&&!l(function(){var E=!1,R=/a/;return y==="split"&&(R={},R.constructor={},R.constructor[d]=function(){return R},R.flags="",R[C]=/./[C]),R.exec=function(){return E=!0,null},R[C](""),!E});if(!I||!P||y==="replace"&&!(h&&v&&!g)||y==="split"&&!m){var S=/./[C],T=A(C,""[y],function(E,R,O,D,B){return R.exec===f?I&&!B?{done:!0,value:S.call(R,O,D)}:{done:!0,value:E.call(O,R,D)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),x=T[0],_=T[1];s(String.prototype,y,x),s(RegExp.prototype,C,b==2?function(E,R){return _.call(E,this,R)}:function(E){return _.call(E,this)})}M&&c(RegExp.prototype[C],"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={},b=0,A,M;m.length>b;)M=g(p,A=m[b++]),M!==void 0&&d(y,A,M);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 C=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof g?new v(C):C===void 0?v():v(C);return C===""&&(p[I]=!0),I};h(g,v);var m=g.prototype=v.prototype;m.constructor=g;var y=m.toString,b=String(v("test"))=="Symbol(test)",A=/^Symbol\((.*)\)[^)]+$/;d(m,"description",{configurable:!0,get:function(){var C=c(this)?this.valueOf():this,I=y.call(C);if(f(p,C))return"";var P=b?I.slice(7,-1):I.replace(A,"$1");return P===""?void 0:P}}),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(ne,re,G){return re in ne?Object.defineProperty(ne,re,{value:G,enumerable:!0,configurable:!0,writable:!0}):ne[re]=G,ne}function c(ne,re){var G=Object.keys(ne);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(ne);re&&(F=F.filter(function(j){return Object.getOwnPropertyDescriptor(ne,j).enumerable})),G.push.apply(G,F)}return G}function d(ne){for(var re=1;re<arguments.length;re++){var G=arguments[re]!=null?arguments[re]:{};re%2?c(Object(G),!0).forEach(function(F){f(ne,F,G[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(G)):c(Object(G)).forEach(function(F){Object.defineProperty(ne,F,Object.getOwnPropertyDescriptor(G,F))})}return ne}function h(ne){if(Array.isArray(ne))return ne}o("e01a"),o("d28b"),o("e260"),o("d3b7"),o("3ca3"),o("ddb0");function v(ne,re){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ne)))){var G=[],F=!0,j=!1,K=void 0;try{for(var le=ne[Symbol.iterator](),de;!(F=(de=le.next()).done)&&(G.push(de.value),!(re&&G.length===re));F=!0);}catch(_e){j=!0,K=_e}finally{try{!F&&le.return!=null&&le.return()}finally{if(j)throw K}}return G}}o("a630"),o("fb6a"),o("b0c0"),o("25f0");function p(ne,re){(re==null||re>ne.length)&&(re=ne.length);for(var G=0,F=new Array(re);G<re;G++)F[G]=ne[G];return F}function g(ne,re){if(ne){if(typeof ne=="string")return p(ne,re);var G=Object.prototype.toString.call(ne).slice(8,-1);if(G==="Object"&&ne.constructor&&(G=ne.constructor.name),G==="Map"||G==="Set")return Array.from(ne);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return p(ne,re)}}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(ne,re){return h(ne)||v(ne,re)||g(ne,re)||m()}function b(ne){if(Array.isArray(ne))return p(ne)}function A(ne){if(typeof Symbol<"u"&&Symbol.iterator in Object(ne))return Array.from(ne)}function M(){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 C(ne){return b(ne)||A(ne)||g(ne)||M()}var I=o("a352"),P=o.n(I);function S(ne){ne.parentElement!==null&&ne.parentElement.removeChild(ne)}function T(ne,re,G){var F=G===0?ne.children[0]:ne.children[G-1].nextSibling;ne.insertBefore(re,F)}var x=o("dbf1");o("13d5"),o("4fad"),o("ac1f"),o("5319");function _(ne){var re=Object.create(null);return function(F){var j=re[F];return j||(re[F]=ne(F))}}var E=/-(\w)/g,R=_(function(ne){return ne.replace(E,function(re,G){return G.toUpperCase()})});o("5db7"),o("73d9");var O=["Start","Add","Remove","Update","End"],D=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"],$=[B,O,D].flatMap(function(ne){return ne}).map(function(ne){return"on".concat(ne)}),U={manage:B,manageAndEmit:O,emit:D};function Q(ne){return $.indexOf(ne)!==-1}o("caad"),o("2ca0");var Z=["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 V(ne){return Z.includes(ne)}function te(ne){return["transition-group","TransitionGroup"].includes(ne)}function ie(ne){return["id","class","role","style"].includes(ne)||ne.startsWith("data-")||ne.startsWith("aria-")||ne.startsWith("on")}function se(ne){return ne.reduce(function(re,G){var F=y(G,2),j=F[0],K=F[1];return re[j]=K,re},{})}function W(ne){var re=ne.$attrs,G=ne.componentData,F=G===void 0?{}:G,j=se(Object.entries(re).filter(function(K){var le=y(K,2),de=le[0];return le[1],ie(de)}));return d(d({},j),F)}function q(ne){var re=ne.$attrs,G=ne.callBackBuilder,F=se(ce(re));Object.entries(G).forEach(function(K){var le=y(K,2),de=le[0],_e=le[1];U[de].forEach(function(xe){F["on".concat(xe)]=_e(xe)})});var j="[data-draggable]".concat(F.draggable||"");return d(d({},F),{},{draggable:j})}function ce(ne){return Object.entries(ne).filter(function(re){var G=y(re,2),F=G[0];return G[1],!ie(F)}).map(function(re){var G=y(re,2),F=G[0],j=G[1];return[R(F),j]}).filter(function(re){var G=y(re,2),F=G[0];return G[1],!Q(F)})}o("c740");function me(ne,re){if(!(ne instanceof re))throw new TypeError("Cannot call a class as a function")}function be(ne,re){for(var G=0;G<re.length;G++){var F=re[G];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(ne,F.key,F)}}function ue(ne,re,G){return re&&be(ne.prototype,re),ne}var ve=function(re){var G=re.el;return G},Ce=function(re,G){return re.__draggable_context=G},ae=function(re){return re.__draggable_context},fe=function(){function ne(re){var G=re.nodes,F=G.header,j=G.default,K=G.footer,le=re.root,de=re.realList;me(this,ne),this.defaultNodes=j,this.children=[].concat(C(F),C(j),C(K)),this.externalComponent=le.externalComponent,this.rootTransition=le.transition,this.tag=le.tag,this.realList=de}return ue(ne,[{key:"render",value:function(G,F){var j=this.tag,K=this.children,le=this._isRootComponent,de=le?{default:function(){return K}}:K;return G(j,F,de)}},{key:"updated",value:function(){var G=this.defaultNodes,F=this.realList;G.forEach(function(j,K){Ce(ve(j),{element:F[K],index:K})})}},{key:"getUnderlyingVm",value:function(G){return ae(G)}},{key:"getVmIndexFromDomIndex",value:function(G,F){var j=this.defaultNodes,K=j.length,le=F.children,de=le.item(G);if(de===null)return K;var _e=ae(de);if(_e)return _e.index;if(K===0)return 0;var xe=ve(j[0]),ye=C(le).findIndex(function(Ee){return Ee===xe});return G<ye?0:K}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),ne}(),Ae=o("8bbf");function Re(ne,re){var G=ne[re];return G?G():[]}function st(ne){var re=ne.$slots,G=ne.realList,F=ne.getKey,j=G||[],K=["header","footer"].map(function(Ee){return Re(re,Ee)}),le=y(K,2),de=le[0],_e=le[1],xe=re.item;if(!xe)throw new Error("draggable element must have an item slot");var ye=j.flatMap(function(Ee,ke){return xe({element:Ee,index:ke}).map(function(Ue){return Ue.key=F(Ee),Ue.props=d(d({},Ue.props||{}),{},{"data-draggable":!0}),Ue})});if(ye.length!==j.length)throw new Error("Item slot must have only one child");return{header:de,footer:_e,default:ye}}function vt(ne){var re=te(ne),G=!V(ne)&&!re;return{transition:re,externalComponent:G,tag:G?Object(Ae.resolveComponent)(ne):re?Ae.TransitionGroup:ne}}function mt(ne){var re=ne.$slots,G=ne.tag,F=ne.realList,j=ne.getKey,K=st({$slots:re,realList:F,getKey:j}),le=vt(G);return new fe({nodes:K,root:le,realList:F})}function Fe(ne,re){var G=this;Object(Ae.nextTick)(function(){return G.$emit(ne.toLowerCase(),re)})}function Kt(ne){var re=this;return function(G,F){if(re.realList!==null)return re["onDrag".concat(ne)](G,F)}}function Lt(ne){var re=this,G=Kt.call(this,ne);return function(F,j){G.call(re,F,j),Fe.call(re,ne,F)}}var gr=null,hn={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(re){return re}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Jn=["update:modelValue","change"].concat(C([].concat(C(U.manageAndEmit),C(U.emit)).map(function(ne){return ne.toLowerCase()}))),qn=Object(Ae.defineComponent)({name:"draggable",inheritAttrs:!1,props:hn,emits:Jn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var re=this.$slots,G=this.$attrs,F=this.tag,j=this.componentData,K=this.realList,le=this.getKey,de=mt({$slots:re,tag:F,realList:K,getKey:le});this.componentStructure=de;var _e=W({$attrs:G,componentData:j});return de.render(Ae.h,_e)}catch(xe){return this.error=!0,Object(Ae.h)("pre",{style:{color:"red"}},xe.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&x.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var re=this;if(!this.error){var G=this.$attrs,F=this.$el,j=this.componentStructure;j.updated();var K=q({$attrs:G,callBackBuilder:{manageAndEmit:function(_e){return Lt.call(re,_e)},emit:function(_e){return Fe.bind(re,_e)},manage:function(_e){return Kt.call(re,_e)}}}),le=F.nodeType===1?F:F.parentElement;this._sortable=new P.a(le,K),this.targetDomElement=le,le.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var re=this.list;return re||this.modelValue},getKey:function(){var re=this.itemKey;return typeof re=="function"?re:function(G){return G[re]}}},watch:{$attrs:{handler:function(re){var G=this._sortable;G&&ce(re).forEach(function(F){var j=y(F,2),K=j[0],le=j[1];G.option(K,le)})},deep:!0}},methods:{getUnderlyingVm:function(re){return this.componentStructure.getUnderlyingVm(re)||null},getUnderlyingPotencialDraggableComponent:function(re){return re.__draggable_component__},emitChanges:function(re){var G=this;Object(Ae.nextTick)(function(){return G.$emit("change",re)})},alterList:function(re){if(this.list){re(this.list);return}var G=C(this.modelValue);re(G),this.$emit("update:modelValue",G)},spliceList:function(){var re=arguments,G=function(j){return j.splice.apply(j,C(re))};this.alterList(G)},updatePosition:function(re,G){var F=function(K){return K.splice(G,0,K.splice(re,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(re){var G=re.to,F=re.related,j=this.getUnderlyingPotencialDraggableComponent(G);if(!j)return{component:j};var K=j.realList,le={list:K,component:j};if(G!==F&&K){var de=j.getUnderlyingVm(F)||{};return d(d({},de),le)}return le},getVmIndexFromDomIndex:function(re){return this.componentStructure.getVmIndexFromDomIndex(re,this.targetDomElement)},onDragStart:function(re){this.context=this.getUnderlyingVm(re.item),re.item._underlying_vm_=this.clone(this.context.element),gr=re.item},onDragAdd:function(re){var G=re.item._underlying_vm_;if(G!==void 0){S(re.item);var F=this.getVmIndexFromDomIndex(re.newIndex);this.spliceList(F,0,G);var j={element:G,newIndex:F};this.emitChanges({added:j})}},onDragRemove:function(re){if(T(this.$el,re.item,re.oldIndex),re.pullMode==="clone"){S(re.clone);return}var G=this.context,F=G.index,j=G.element;this.spliceList(F,1);var K={element:j,oldIndex:F};this.emitChanges({removed:K})},onDragUpdate:function(re){S(re.item),T(re.from,re.item,re.oldIndex);var G=this.context.index,F=this.getVmIndexFromDomIndex(re.newIndex);this.updatePosition(G,F);var j={element:this.context.element,oldIndex:G,newIndex:F};this.emitChanges({moved:j})},computeFutureIndex:function(re,G){if(!re.element)return 0;var F=C(G.to.children).filter(function(de){return de.style.display!=="none"}),j=F.indexOf(G.related),K=re.component.getVmIndexFromDomIndex(j),le=F.indexOf(gr)!==-1;return le||!G.willInsertAfter?K:K+1},onDragMove:function(re,G){var F=this.move,j=this.realList;if(!F||!j)return!0;var K=this.getRelatedContextFromMoveEvent(re),le=this.computeFutureIndex(K,re),de=d(d({},this.context),{},{futureIndex:le}),_e=d(d({},re),{},{relatedContext:K,draggedContext:de});return F(_e,G)},onDragEnd:function(){gr=null}}}),ei=qn;a.default=ei},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}),b=v("species"),A=[].slice,M=Math.max;s({target:"Array",proto:!0,forced:!m||!y},{slice:function(I,P){var S=d(this),T=c(S.length),x=f(I,T),_=f(P===void 0?T:P,T),E,R,O;if(u(S)&&(E=S.constructor,typeof E=="function"&&(E===Array||u(E.prototype))?E=void 0:l(E)&&(E=E[b],E===null&&(E=void 0)),E===Array||E===void 0))return A.call(S,x,_);for(R=new(E===void 0?Array:E)(M(_-x,0)),O=0;x<_;x++,O++)x in S&&h(R,O,S[x]);return R.length=O,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})})(ix);var dF=ix.exports;const hF=U0(dF),vF=t=>(ka("data-v-565fb9e4"),t=t(),Oa(),t),pF={class:"enjoyPlayer"},gF={key:0,class:"enjoyPlayerList"},mF={class:"titNameCon"},yF={class:"titName"},SF={class:"tit"},bF={class:"enjoyPlayerListCon"},CF=["onClick"],xF={class:"itemLeft"},wF={class:"itemRight"},TF=["onClick"],IF=["src"],AF={class:"playerCon"},_F={class:"operateMidCon"},EF={class:"titleCon"},PF={class:"title"},MF={class:"timesCon"},RF={class:"bar"},DF=vF(()=>Y("div",{class:"thumb"},null,-1)),LF=[DF],OF={class:"operateRightBtn"},kF=Xe({__name:"enjoyPlayer",props:{scale:{default:1},elementInfo:{},needWaitAnimation:{type:Boolean},isScreening:{type:Boolean,default:!1},isBase:{type:Boolean,default:!1}},setup(t){const e=zt(),r=H0(),n=t;hr(()=>n.needWaitAnimation,()=>{n.needWaitAnimation&&T()});function i(){!n.isBase&&a.value&&o()}const a=ge(!1);function o(){n.isBase||(a.value=!a.value,r.setIsPPTWheelPageState(!a.value))}un(()=>{r.setIsPPTWheelPageState(!0)});function s(){e.updateElement({id:n.elementInfo.id,props:{enjoyList:n.elementInfo.enjoyList}})}function l(V){if(V===n.elementInfo.sid)if(n.elementInfo.enjoyList.length===1)e.deleteElement(n.elementInfo.id);else{const te=n.elementInfo.enjoyList.findIndex(se=>se.id===V);n.elementInfo.enjoyList.splice(te,1);const ie=n.elementInfo.enjoyList;e.updateElement({id:n.elementInfo.id,props:{sid:ie[0].id,title:ie[0].title,src:ie[0].src,enjoyList:ie}}),p.value=!0}else{const te=n.elementInfo.enjoyList.findIndex(ie=>ie.id===V);n.elementInfo.enjoyList.splice(te,1),e.updateElement({id:n.elementInfo.id,props:{enjoyList:n.elementInfo.enjoyList}})}}function u(V){if(n.elementInfo.enjoyList.length===1)P(0);else{let te=n.elementInfo.enjoyList.findIndex(se=>se.id===n.elementInfo.sid);te+=V==="next"?1:-1,te>n.elementInfo.enjoyList.length-1?te=0:te<0&&(te=n.elementInfo.enjoyList.length-1);const ie=n.elementInfo.enjoyList[te];e.updateElement({id:n.elementInfo.id,props:{sid:ie.id,title:ie.title,src:ie.src}}),g.value=0,m.value=0,y.value=0}}function f(V){V.id===n.elementInfo.sid?x():(e.updateElement({id:n.elementInfo.id,props:{sid:V.id,title:V.title,src:V.src}}),g.value=0,m.value=0,y.value=0)}const c=(V=0)=>{if(V===0||isNaN(V))return"00:00";const te=q=>q<10?"0"+q:""+q,ie=Math.floor(V/3600),se=Math.floor((V-ie*3600)/60),W=Math.floor(V-ie*3600-se*60);return(ie>0?[ie,se,W]:[se,W]).map(te).join(":")},d=V=>V.getBoundingClientRect().left,h=ge(),v=ge(),p=ge(!0),g=ge(0),m=ge(0),y=ge(0),b=ge(!1),A=Me(()=>c(g.value)),M=Me(()=>c(m.value)),C=Me(()=>g.value/m.value*100+"%"),I=Me(()=>y.value/m.value*100+"%"),P=V=>{h.value&&(V=Math.max(V,0),V=Math.min(V,m.value),h.value.currentTime=V,g.value=V)},S=()=>{h.value&&(p.value=!1,h.value.play())},T=()=>{h.value&&(p.value=!0,h.value.pause())},x=()=>{p.value?S():T()},_=()=>{var V;m.value=((V=h.value)==null?void 0:V.duration)||0},E=()=>{var V;g.value=((V=h.value)==null?void 0:V.currentTime)||0},R=()=>{p.value=!1},O=()=>{p.value=!0},D=()=>{},B=()=>{var V;y.value=(V=h.value)!=null&&V.buffered.length?h.value.buffered.end(h.value.buffered.length-1):0,p.value||S()},$=()=>Dr.error("音频加载失败"),U=V=>{if(!h.value||!v.value)return;let ie=(("clientX"in V?V.clientX:V.changedTouches[0].clientX)-d(v.value))/v.value.clientWidth/n.scale;ie=Math.max(ie,0),ie=Math.min(ie,1);const se=ie*m.value;h.value.currentTime=se,g.value=se},Q=V=>{if(!h.value||!v.value)return;let ie=(("clientX"in V?V.clientX:V.changedTouches[0].clientX)-d(v.value))/v.value.clientWidth/n.scale;ie=Math.max(ie,0),ie=Math.min(ie,1);const se=ie*m.value;h.value.currentTime=se,g.value=se;const W=setTimeout(()=>{clearTimeout(W),b.value=!1},500);document.removeEventListener("mousemove",U),document.removeEventListener("touchmove",U),document.removeEventListener("mouseup",Q),document.removeEventListener("touchend",Q)},Z=()=>{b.value=!0,document.addEventListener("mousemove",U),document.addEventListener("touchmove",U),document.addEventListener("mouseup",Q),document.addEventListener("touchend",Q)};return(V,te)=>{var se;const ie=il("click-outside");return rn((oe(),Se("div",pF,[V.isBase?je("",!0):rn((oe(),Se("div",gF,[Y("div",mF,[Y("div",yF,[Y("div",SF,$t(`音频列表 (${((se=V.elementInfo.enjoyList)==null?void 0:se.length)||0})`),1)])]),Y("div",bF,[Ge(he(hF),{forceFallback:!0,handle:".drag-handle_enjoyPlayer",modelValue:V.elementInfo.enjoyList,"onUpdate:modelValue":te[1]||(te[1]=W=>V.elementInfo.enjoyList=W),itemKey:"id",animation:200,scroll:!0,scrollSensitivity:50,onEnd:s},{item:xn(({element:W})=>[Y("div",{class:ht(["playerItem",{active:W.id===V.elementInfo.sid}]),onClick:q=>f(W)},[Y("div",xF,$t(W.title),1),Y("div",wF,[V.isScreening?je("",!0):(oe(),Se(Yt,{key:0},[Y("div",{class:"itemListBtn drag-handle_enjoyPlayer",onClick:te[0]||(te[0]=Tn(()=>{},["stop"]))}),Y("div",{class:"itemCloseBtn",onClick:Tn(q=>l(W.id),["stop"])},null,8,TF)],64))])],10,CF)]),_:1},8,["modelValue"])])],512)),[[lv,a.value]]),V.isBase?je("",!0):(oe(),Se("audio",{key:1,ref_key:"audioRef",ref:h,src:V.elementInfo.src,onDurationchange:te[2]||(te[2]=W=>_()),onTimeupdate:te[3]||(te[3]=W=>E()),onPlay:te[4]||(te[4]=W=>R()),onPause:te[5]||(te[5]=W=>O()),onEnded:te[6]||(te[6]=W=>D()),onProgress:te[7]||(te[7]=W=>B()),onError:te[8]||(te[8]=W=>$())},null,40,IF)),Y("div",AF,[Y("div",{class:ht(["operateBtn",{paused:p.value}]),onClick:x},null,2),Y("div",_F,[Y("div",EF,[Y("div",PF,$t(V.elementInfo.title),1),Y("div",MF,$t(`${A.value}/${M.value}`),1)]),Y("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:v,onMousedown:te[9]||(te[9]=W=>Z()),onTouchstart:te[10]||(te[10]=W=>Z())},[Y("div",RF,[Y("div",{class:"loaded",style:Ie({width:I.value})},null,4),Y("div",{class:"played",style:Ie({width:C.value})},LF,4)])],544)]),Y("div",OF,[Y("div",{class:"preBtn",onClick:te[11]||(te[11]=W=>u("pre"))}),Y("div",{class:"nextBtn",onClick:te[12]||(te[12]=W=>u("next"))}),Y("div",{class:"listBtn",onClick:o})])])])),[[ie,i]])}}}),gx=tt(kF,[["__scopeId","data-v-565fb9e4"]]),mx=t=>({backgroundStyle:Me(()=>{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"}})}),BF=Xe({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(t){return(e,r)=>(oe(),Se("div",{class:ht(["divider",e.type]),style:Ie({margin:e.type==="horizontal"?`${e.margin>=0?e.margin:24}px 0`:`0 ${e.margin>=0?e.margin:8}px`})},null,6))}}),NF=tt(BF,[["__scopeId","data-v-def6106d"]]),FF=["src"],$F=Xe({__name:"BaseImageElement",props:{elementInfo:{}},setup(t){const e=t,r=Me(()=>e.elementInfo.shadow),{shadowStyle:n}=Cc(r),i=Me(()=>e.elementInfo.flipH),a=Me(()=>e.elementInfo.flipV),{flipStyle:o}=e1(i,a),s=Me(()=>e.elementInfo),{clipShape:l,imgPosition:u}=r1(s),f=Me(()=>e.elementInfo.filters),{filter:c}=MA(f);return(d,h)=>(oe(),Se("div",{class:"base-element-image",style:Ie({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:Ie({filter:he(n)?`drop-shadow(${he(n)})`:"",transform:he(o)})},[Ge(GA,{elementInfo:d.elementInfo},null,8,["elementInfo"]),Y("div",{class:"image-content",style:Ie({clipPath:he(l).style})},[Y("img",{src:d.elementInfo.src,draggable:!1,style:Ie({top:he(u).top,left:he(u).left,width:he(u).width,height:he(u).height,filter:he(c)}),alt:""},null,12,FF),d.elementInfo.colorMask?(oe(),Se("div",{key:0,class:"color-mask",style:Ie({backgroundColor:d.elementInfo.colorMask})},null,4)):je("",!0)],4)],4)],4)],4))}}),yx=tt($F,[["__scopeId","data-v-f5bbdf36"]]),UF=["innerHTML"],zF=Xe({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(t){const e=t,r=Me(()=>e.elementInfo.shadow),{shadowStyle:n}=Cc(r);return(i,a)=>(oe(),Se("div",{class:"base-element-text",style:Ie({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${i.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:Ie({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:he(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"})},[Ge(n1,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),Y("div",{class:ht(["text ProseMirror-static",{thumbnail:i.target==="thumbnail"}]),style:Ie({"--paragraphSpace":`${i.elementInfo.paragraphSpace===void 0?5:i.elementInfo.paragraphSpace}px`}),innerHTML:i.elementInfo.content},null,14,UF)],4)],4)],4))}}),Sx=tt(zF,[["__scopeId","data-v-3eca1d55"]]),HF=["width","height"],VF={key:0},GF=["transform"],jF=["d","fill","stroke","stroke-width","stroke-dasharray"],WF=["innerHTML"],XF=Xe({__name:"BaseShapeElement",props:{elementInfo:{}},setup(t){const e=t,r=Me(()=>e.elementInfo.outline),{outlineWidth:n,outlineColor:i,strokeDashArray:a}=sl(r),o=Me(()=>e.elementInfo.shadow),{shadowStyle:s}=Cc(o),l=Me(()=>e.elementInfo.flipH),u=Me(()=>e.elementInfo.flipV),{flipStyle:f}=e1(l,u),c=Me(()=>{const d={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return e.elementInfo.text?e.elementInfo.text:d});return(d,h)=>(oe(),Se("div",{class:"base-element-shape",style:Ie({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:Ie({opacity:d.elementInfo.opacity,filter:he(s)?`drop-shadow(${he(s)})`:"",transform:he(f),color:c.value.defaultColor,fontFamily:c.value.defaultFontName})},[(oe(),Se("svg",{overflow:"visible",width:d.elementInfo.width,height:d.elementInfo.height},[d.elementInfo.gradient?(oe(),Se("defs",VF,[Ge(JA,{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"])])):je("",!0),Y("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)`},[Y("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:he(i),"stroke-width":he(n),"stroke-dasharray":he(a)},null,8,jF)],8,GF)],8,HF)),Y("div",{class:ht(["shape-text",c.value.align])},[Y("div",{class:"ProseMirror-static",innerHTML:c.value.content},null,8,WF)],2)],4)],4)],4))}}),bx=tt(XF,[["__scopeId","data-v-b45bc689"]]),KF=["width","height"],YF=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],ZF=Xe({__name:"BaseLineElement",props:{elementInfo:{}},setup(t){const e=t,r=Me(()=>e.elementInfo.shadow),{shadowStyle:n}=Cc(r),i=Me(()=>{const l=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return l<24?24:l}),a=Me(()=>{const l=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return l<24?24:l}),o=Me(()=>{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=Me(()=>cI(e.elementInfo));return(l,u)=>(oe(),Se("div",{class:"base-element-line",style:Ie({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[Y("div",{class:"element-content",style:Ie({filter:he(n)?`drop-shadow(${he(n)})`:""})},[(oe(),Se("svg",{overflow:"visible",width:i.value,height:a.value},[Y("defs",null,[l.elementInfo.points[0]?(oe(),Je(Gp,{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"])):je("",!0),l.elementInfo.points[1]?(oe(),Je(Gp,{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"])):je("",!0)]),Y("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,YF)],8,KF))],4)],4))}}),Cx=tt(ZF,[["__scopeId","data-v-f6565627"]]),QF=Xe({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(t){return(e,r)=>(oe(),Se("div",{class:ht(["base-element-chart",{"is-thumbnail":e.target==="thumbnail"}]),style:Ie({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:Ie({backgroundColor:e.elementInfo.fill})},[Ge(n1,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Ge(M5,{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))}}),xx=tt(QF,[["__scopeId","data-v-5a1fd6e3"]]),JF=["width"],qF=["rowspan","colspan"],e4=["innerHTML"],t4=Xe({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(t){const e=t,r=ge([]),n=Me(()=>r.value.reduce((l,u)=>l+u));hr([()=>e.colWidths,()=>e.width],()=>{r.value=e.colWidths.map(l=>l*e.width)},{immediate:!0});const i=Me(()=>e.data),{hideCells:a}=L5(i),o=Me(()=>e.theme),{subThemeColor:s}=O5(o);return(l,u)=>{var f,c,d,h,v;return oe(),Se("div",{class:"static-table",style:Ie({width:n.value+"px"})},[Y("table",{class:ht({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:Ie(`--themeColor: ${(v=o.value)==null?void 0:v.color}; --subThemeColor1: ${he(s)[0]}; --subThemeColor2: ${he(s)[1]}`)},[Y("colgroup",null,[(oe(!0),Se(Yt,null,Vr(r.value,(p,g)=>(oe(),Se("col",{span:"1",key:g,width:p},null,8,JF))),128))]),Y("tbody",null,[(oe(!0),Se(Yt,null,Vr(l.data,(p,g)=>(oe(),Se("tr",{key:g,style:Ie({height:l.cellMinHeight+"px"})},[(oe(!0),Se(Yt,null,Vr(p,(m,y)=>rn((oe(),Se("td",{class:"cell",style:Ie({borderStyle:l.outline.style,borderColor:l.outline.color,borderWidth:l.outline.width+"px",...he(R5)(m.style)}),key:m.id,rowspan:m.rowspan,colspan:m.colspan},[Y("div",{class:"cell-text",style:Ie({minHeight:l.cellMinHeight-4+"px"}),innerHTML:he(D5)(m.text)},null,12,e4)],12,qF)),[[lv,!he(a).includes(`${g}_${y}`)]])),128))],4))),128))])],6)],4)}}}),r4=tt(t4,[["__scopeId","data-v-909691d5"]]),n4={class:"element-content"},i4=Xe({__name:"BaseTableElement",props:{elementInfo:{}},setup(t){return(e,r)=>(oe(),Se("div",{class:"base-element-table",style:Ie({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Y("div",n4,[Ge(r4,{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))}}),Tx=tt(i4,[["__scopeId","data-v-a0ffa95b"]]),a4={class:"element-content"},o4=["width","height","stroke","stroke-width"],s4=["transform"],l4=["d"],u4=Xe({__name:"BaseLatexElement",props:{elementInfo:{}},setup(t){return(e,r)=>(oe(),Se("div",{class:"base-element-latex",style:Ie({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Y("div",a4,[(oe(),Se("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"},[Y("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)`},[Y("path",{d:e.elementInfo.path},null,8,l4)],8,s4)],8,o4))])],4)],4))}}),Ix=tt(u4,[["__scopeId","data-v-4904f8d7"]]),c4=Xe({__name:"BaseVideoElement",props:{elementInfo:{}},setup(t){return(e,r)=>{const n=ct("IconPlayOne");return oe(),Se("div",{class:"base-element-video",style:Ie({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Y("div",{class:"element-content",style:Ie({backgroundImage:e.elementInfo.poster?`url(${e.elementInfo.poster})`:""})},[Ge(n,{class:"icon"})],4)],4)],4)}}}),f4=tt(c4,[["__scopeId","data-v-72eec24c"]]),d4={class:"element-content"},h4=Xe({__name:"BaseAudioElement",props:{elementInfo:{}},setup(t){const e=t,r=Me(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px");return(n,i)=>{const a=ct("IconVolumeNotice");return oe(),Se("div",{class:"base-element-audio",style:Ie({top:n.elementInfo.top+"px",left:n.elementInfo.left+"px",width:n.elementInfo.width+"px",height:n.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${n.elementInfo.rotate}deg)`})},[Y("div",d4,[Ge(a,{class:"audio-icon",style:Ie({fontSize:r.value,color:n.elementInfo.color})},null,8,["style"])])],4)],4)}}}),v4=tt(h4,[["__scopeId","data-v-35ae44f0"]]),p4={class:"element-content"},g4=Xe({__name:"BaseCloudCoachElement",props:{elementInfo:{}},setup(t){const e=Wn(Ba)||ge(1);return(r,n)=>(oe(),Se("div",{class:"base-element-cloudCoach",style:Ie({top:r.elementInfo.top+"px",left:r.elementInfo.left+"px",width:r.elementInfo.width+"px",height:r.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${r.elementInfo.rotate}deg)`})},[Y("div",p4,[Y("div",{class:"title",style:Ie({fontSize:14/he(e)+"px"})},$t(r.elementInfo.title||"乐谱"),5)])],4)],4))}}),m4=tt(g4,[["__scopeId","data-v-ce5522fb"]]),y4={class:"element-content"},S4=Xe({__name:"BaseEnjoyElement",props:{elementInfo:{}},setup(t){return(e,r)=>(oe(),Se("div",{class:"base-element-enjoy",style:Ie({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${e.elementInfo.rotate}deg)`})},[Y("div",y4,[Ge(gx,{elementInfo:e.elementInfo,isBase:!0},null,8,["elementInfo"])])],4)],4))}}),b4=tt(S4,[["__scopeId","data-v-788133ee"]]),C4=Xe({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(t){const e=t,r=Me(()=>{const n={[ir.IMAGE]:yx,[ir.TEXT]:Sx,[ir.SHAPE]:bx,[ir.LINE]:Cx,[ir.CHART]:xx,[ir.TABLE]:Tx,[ir.LATEX]:Ix,[ir.ELF]:null},i={[oi.AUDIO]:v4,[oi.VIDEO]:f4,[oi.SING_PLAY]:m4,[oi.ENJOY]:b4};return n[e.elementInfo.type]||i[e.elementInfo.subtype]||null});return(n,i)=>(oe(),Se("div",{class:ht(["base-element",`base-element-${n.elementInfo.id}`]),style:Ie({zIndex:n.elementIndex})},[(oe(),Je(sv(r.value),{elementInfo:n.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),x4={key:1,class:"placeholder"},w4=Xe({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(t){const e=t,{viewportRatio:r,viewportSize:n}=vr(zt()),i=Me(()=>e.slide.background),{backgroundStyle:a}=mx(i),o=Me(()=>e.size/n.value);return mc(Ba,o),(s,l)=>(oe(),Se("div",{class:"thumbnail-slide",style:Ie({width:s.size+"px",height:s.size*he(r)+"px"})},[s.visible?(oe(),Se("div",{key:0,class:"elements",style:Ie({width:he(n)+"px",height:he(n)*he(r)+"px",transform:`scale(${o.value})`})},[Y("div",{class:"background",style:Ie(he(a))},null,4),(oe(!0),Se(Yt,null,Vr(s.slide.elements,(u,f)=>(oe(),Je(C4,{key:u.id,elementInfo:u,elementIndex:f+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(oe(),Se("div",x4,"加载中 ..."))],4))}}),Ax=tt(w4,[["__scopeId","data-v-0345aefe"]]),_x=()=>{const{slides:t}=vr(zt()),e=ge(null),r=ge(50),n=()=>{t.value.length>r.value?e.value=setTimeout(()=>{r.value=r.value+20,n()},600):r.value=9999};return xr(n),un(()=>{e.value&&clearTimeout(e.value)}),{slidesLoadLimit:r}};function wp(t,e){return e===void 0&&(e=15),+parseFloat(Number(t).toPrecision(e))}function Yn(t){var e=t.toString().split(/[eE]/),r=(e[0].split(".")[1]||"").length-+(e[1]||0);return r>0?r:0}function nl(t){if(t.toString().indexOf("e")===-1)return Number(t.toString().replace(".",""));var e=Yn(t);return e>0?wp(Number(t)*Math.pow(10,e)):Number(t)}function av(t){Px&&(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 tf(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 Ki=tf(function(t,e){var r=nl(t),n=nl(e),i=Yn(t)+Yn(e),a=r*n;return av(a),a/Math.pow(10,i)}),T4=tf(function(t,e){var r=Math.pow(10,Math.max(Yn(t),Yn(e)));return(Ki(t,r)+Ki(e,r))/r}),I4=tf(function(t,e){var r=Math.pow(10,Math.max(Yn(t),Yn(e)));return(Ki(t,r)-Ki(e,r))/r}),Ex=tf(function(t,e){var r=nl(t),n=nl(e);return av(r),av(n),Ki(r/n,wp(Math.pow(10,Yn(e)-Yn(t))))});function A4(t,e){var r=Math.pow(10,e),n=Ex(Math.round(Math.abs(Ki(t,r))),r);return t<0&&n!==0&&(n=Ki(n,-1)),n}var Px=!0;function _4(t){t===void 0&&(t=!0),Px=t}var E4={strip:wp,plus:T4,minus:I4,times:Ki,divide:Ex,round:A4,digitLength:Yn,float2Fixed:nl,enableBoundaryChecking:_4};const P4={class:"bar"},M4=["data-tooltip"],R4=["data-tooltip"],D4=["data-tooltip"],L4=Xe({__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=A=>A.getBoundingClientRect().left,n=t,i=e,a=ge(),o=ge(0),s=ge(0),l=ge(0),u=ge("end"),f=A=>{let M=A/100*(n.max-n.min);if(n.step>=1)M=Math.fround(M);else{const C=n.step.toString(),I=C.match(/^[0.]*([1-9])/);if(I){const P=I[1],S=C.indexOf(P)-1;if(S>0){const T=Math.pow(10,S);M=Math.fround(M*T)/T}}}return E4.plus(M,n.min)},c=Me(()=>f(o.value)),d=Me(()=>f(s.value)),h=Me(()=>f(l.value));hr(()=>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=A=>{if(!a.value)return 0;let C=(("clientX"in A?A.clientX:A.changedTouches[0].clientX)-r(a.value))/a.value.clientWidth;C=Math.max(C,0),C=Math.min(C,1);let I=C*100;const P=n.step/(n.max-n.min)*100,S=I%P;return S>0&&(S<=P/2?I=I-S:I=I-S+P),I},p=A=>{const M=v(A);u.value==="start"?s.value=M:l.value=M},g=A=>{m(A);const M=f(o.value),C=n.value,I=u.value==="start"?[M,C[1]]:[C[0],M];I[0]>I[1]&&([I[0],I[1]]=[I[1],I[0]]),i("update:value",I),document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p),document.removeEventListener("mouseup",g),document.removeEventListener("touchend",g)},m=A=>{o.value=v(A)},y=A=>{m(A);const M=f(o.value);i("update:value",M),document.removeEventListener("mousemove",m),document.removeEventListener("touchmove",m),document.removeEventListener("mouseup",y),document.removeEventListener("touchend",y)},b=A=>{if(!n.disabled)if(n.range){const M=v(A);Math.abs(M-s.value)<Math.abs(M-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(A,M)=>(oe(),Se("div",{class:ht(["slider",{disabled:A.disabled}]),ref_key:"sliderRef",ref:a,onMousedown:M[0]||(M[0]=C=>b(C))},[Y("div",P4,[A.range?(oe(),Se(Yt,{key:1},[Y("div",{class:"track",style:Ie({width:`${l.value-s.value}%`,left:`${s.value}%`})},null,4),Y("div",{class:"thumb",style:Ie({left:`${s.value}%`}),"data-tooltip":d.value},null,12,R4),Y("div",{class:"thumb",style:Ie({left:`${l.value}%`}),"data-tooltip":h.value},null,12,D4)],64)):(oe(),Se(Yt,{key:0},[Y("div",{class:"track",style:Ie({width:`${o.value}%`})},null,4),Y("div",{class:"thumb",style:Ie({left:`${o.value}%`}),"data-tooltip":c.value},null,12,M4)],64))])],34))}}),$d=tt(L4,[["__scopeId","data-v-78364373"]]),g$=1e3,m$="click",wa="animate__",y$=[{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"}]}],S$=[{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"}]}],b$=[{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"}]}],O4=[{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"}],k4={class:"title"},B4={class:"content"},N4=Xe({__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=ge(0),a=ge(0),o=ge(0),s=ge(0),l=ge(),u=Me(()=>{var d;return s.value?s.value:((d=l.value)==null?void 0:d.clientHeight)||0});xr(()=>{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,b=a.value;document.onmousemove=A=>{if(!h)return;const M=A.pageX-g,C=A.pageY-m;let I=y+M,P=b+C;I<0&&(I=0),P<0&&(P=0),I+o.value>v&&(I=v-o.value),P+u.value>p&&(P=p-u.value),i.value=I,a.value=P},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 b=y.pageX-v,A=y.pageY-p;let M=g+b,C=m+A;M<r.minWidth&&(M=r.minWidth),C<r.minHeight&&(C=r.minHeight),M>r.maxWidth&&(M=r.maxWidth),C>r.maxHeight&&(C=r.maxHeight),o.value=M,s.value=C},document.onmouseup=()=>{h=!1,document.onmousemove=null,document.onmouseup=null}};return(d,h)=>{const v=ct("IconClose");return oe(),Se("div",{class:"moveable-panel",ref_key:"moveablePanelRef",ref:l,style:Ie({width:o.value+"px",height:s.value?s.value+"px":"auto",left:i.value+"px",top:a.value+"px"})},[d.title?(oe(),Se(Yt,{key:0},[Y("div",{class:"header",onMousedown:h[1]||(h[1]=p=>f(p))},[Y("div",k4,$t(d.title),1),Y("div",{class:"close-btn",onClick:h[0]||(h[0]=p=>n("close"))},[Ge(v)])],32),Y("div",B4,[Ns(d.$slots,"default",{},void 0,!0)])],64)):(oe(),Se("div",{key:1,class:"content",onMousedown:h[2]||(h[2]=p=>f(p))},[Ns(d.$slots,"default",{},void 0,!0)],32)),d.resizeable?(oe(),Se("div",{key:2,class:"resizer",onMousedown:h[3]||(h[3]=p=>c(p))},null,32)):je("",!0)],4)}}}),Mx=tt(N4,[["__scopeId","data-v-4a8c1601"]]),F4=(t,e,r,n)=>{const i=zt();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(),hr([()=>i.slideIndex,r],()=>{window.parent.postMessage({type:"changeSlideIndex",content:{slideIndex:i.slideIndex,isAnimationed:r.value===n.value.length}},"*")}),xr(()=>{window.addEventListener("message",o)}),un(()=>{window.removeEventListener("message",o)})},Rx=()=>{const t=zt(),e=H0(),{slides:r,slideIndex:n,formatedAnimations:i}=vr(t),{isPPTWheelPage:a}=vr(e),o=ge(0),s=ge(!1),l=ge(n.value),u=()=>{if(s.value)return;const{animations:O,autoNext:D}=i.value[o.value];o.value+=1,s.value=!0;let B=0;for(const $ of O){const U=document.querySelector(`#screen-element-${$.elId} [class^=base-element-]`);if(!U){B+=1;continue}const Q=`${wa}${$.effect}`;U.style.removeProperty("--animate-duration");for(const V of U.classList)V.indexOf(wa)!==-1&&U.classList.remove(V,`${wa}animated`);U.style.setProperty("--animate-duration",`${$.duration}ms`),U.classList.add(Q,`${wa}animated`);const Z=()=>{$.type!=="out"&&(U.style.removeProperty("--animate-duration"),U.classList.remove(Q,`${wa}animated`)),B+=1,B===O.length&&(s.value=!1,D&&u())};U.addEventListener("animationend",Z,{once:!0})}};xr(()=>{const O=i.value[0];O&&O.animations.length&&O.animations.every(B=>B.trigger==="auto"||B.trigger==="meantime")&&u()});const f=()=>{o.value-=1;const{animations:O}=i.value[o.value];for(const D of O){const B=document.querySelector(`#screen-element-${D.elId} [class^=base-element-]`);if(B){B.style.removeProperty("--animate-duration");for(const $ of B.classList)$.indexOf(wa)!==-1&&B.classList.remove($,`${wa}animated`)}}O.every(D=>D.type==="attention")&&g()},c=ge(0),d=()=>{c.value&&(clearInterval(c.value),c.value=0)};un(d);const h=ge(!1),v=O=>{h.value=O},p=Gd.throttle(function(O){Dr.success(O)},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?_(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?_(0):(p("已经是最后一页了"),d()),s.value=!1)},y=ge(2500),b=()=>{d(),Dr.success("开始自动放映"),c.value=setInterval(m,y.value)},A=O=>{d(),y.value=O,b()},M=Gd.throttle(function(O){a.value&&(O.deltaY<0?g():O.deltaY>0&&m())},500,{leading:!0,trailing:!1}),C=ge(null),I=O=>{a.value&&(C.value={x:O.changedTouches[0].pageX,y:O.changedTouches[0].pageY})},P=O=>{if(!a.value||!C.value)return;const D=Math.abs(C.value.x-O.changedTouches[0].pageX),B=O.changedTouches[0].pageY-C.value.y;Math.abs(B)>D&&Math.abs(B)>50&&(C.value=null,B>0?g():m())},S=O=>{const D=O.key.toUpperCase();D===Nn.UP||D===Nn.LEFT||D===Nn.PAGEUP?g():(D===Nn.DOWN||D===Nn.RIGHT||D===Nn.SPACE||D===Nn.ENTER||D===Nn.PAGEDOWN)&&m()};xr(()=>document.addEventListener("keydown",S)),un(()=>document.removeEventListener("keydown",S));const T=()=>{t.updateSlideIndex(n.value-1),o.value=0},x=()=>{t.updateSlideIndex(n.value+1),o.value=0},_=O=>{t.updateSlideIndex(O),o.value=0},E=O=>{const D=r.value.findIndex(B=>B.id===O);D!==-1&&(t.updateSlideIndex(D),o.value=0)},R=yc();return["pptScreen","mobileScreen"].includes(R.mode)&&F4(g,m,o,i),{autoPlayTimer:c,autoPlayInterval:y,setAutoPlayInterval:A,autoPlay:b,closeAutoPlay:d,loopPlay:h,setLoopPlay:v,mousewheelListener:M,touchStartListener:I,touchEndListener:P,turnPrevSlide:T,turnNextSlide:x,turnSlideToIndex:_,turnSlideToId:E,execPrev:g,execNext:m,animationIndex:o}},Dx=t=>{const e=zt(),{viewportRatio:r}=vr(e),n=ge(0),i=ge(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 xr(()=>{a(),window.addEventListener("resize",a)}),un(()=>{window.removeEventListener("resize",a)}),{slideWidth:n,slideHeight:i}},Lx=()=>{const t=ge(!0),e=ge(!0),{exitScreening:r}=bc(),n=()=>{t.value=Kd(),!t.value&&e.value&&r(),e.value=!0};return xr(()=>{t.value=Kd(),document.addEventListener("fullscreenchange",n),document.addEventListener("webkitfullscreenchange",n)}),un(()=>{document.removeEventListener("fullscreenchange",n),document.removeEventListener("webkitfullscreenchange",n)}),{fullscreenState:t,manualExitFullscreen:()=>{t.value&&(e.value=!1,q0())}}},$4={class:"element-content"},U4=Xe({__name:"ScreenVideoElement",props:{elementInfo:{},needWaitAnimation:{type:Boolean}},setup(t){const{currentSlide:e}=vr(zt()),r=Wn(Ba)||ge(1),n=Wn(ol)||ge(""),i=Me(()=>e.value.id===n.value);return(a,o)=>(oe(),Se("div",{class:"base-element-video screen-element-video",style:Ie({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Y("div",$4,[i.value?(oe(),Je(aN,{key:0,width:a.elementInfo.width,height:a.elementInfo.height,src:a.elementInfo.src,poster:a.elementInfo.poster,autoplay:a.elementInfo.autoplay,scale:he(r),needWaitAnimation:a.needWaitAnimation},null,8,["width","height","src","poster","autoplay","scale","needWaitAnimation"])):je("",!0)])],4)],4))}}),z4=tt(U4,[["__scopeId","data-v-b0aefab8"]]),H4={class:"element-content"},V4=Xe({__name:"ScreenAudioElement",props:{elementInfo:{},needWaitAnimation:{type:Boolean}},setup(t){const e=t,{viewportRatio:r,currentSlide:n,viewportSize:i}=vr(zt()),a=Wn(Ba)||ge(1),o=Wn(ol)||ge(""),s=Me(()=>n.value.id===o.value),l=Me(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px"),u=Me(()=>{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,b=e.elementInfo.top;let A=0,M=m;return y+v>=d&&(A=g-v),b+m+p>=h&&(M=-p),{left:A+"px",top:M+"px"}}),f=ge(),c=()=>{f.value&&f.value.toggle()};return(d,h)=>{const v=ct("IconVolumeNotice");return oe(),Se("div",{class:"base-element-audio screen-element-audio",style:Ie({top:d.elementInfo.top+"px",left:d.elementInfo.left+"px",width:d.elementInfo.width+"px",height:d.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${d.elementInfo.rotate}deg)`})},[Y("div",H4,[Ge(v,{class:"audio-icon",style:Ie({fontSize:l.value,color:d.elementInfo.color}),onClick:h[0]||(h[0]=p=>c())},null,8,["style"]),s.value?(oe(),Je(CN,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:f,style:Ie({...u.value}),src:d.elementInfo.src,loop:d.elementInfo.loop,autoplay:d.elementInfo.autoplay,scale:he(a),needWaitAnimation:d.needWaitAnimation},null,8,["style","src","loop","autoplay","scale","needWaitAnimation"])):je("",!0)])],4)],4)}}}),G4=tt(V4,[["__scopeId","data-v-e2703dbd"]]),j4={class:"element-content"},W4=Xe({__name:"ScreenCloudCoachElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=vr(zt()),r=Wn(Ba)||ge(1),n=Wn(ol)||ge(""),i=Me(()=>e.value.id===n.value);return(a,o)=>(oe(),Se("div",{class:"base-element-cloudCoach screen-element-cloudCoach",style:Ie({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Y("div",j4,[i.value?(oe(),Je(he(_N),{key:0,id:a.elementInfo.sid,width:a.elementInfo.width,height:a.elementInfo.height,scale:he(r)},null,8,["id","width","height","scale"])):je("",!0)])],4)],4))}}),X4=tt(W4,[["__scopeId","data-v-f31e8dd8"]]),K4={class:"element-content"},Y4=Xe({__name:"ScreenEnjoyElement",props:{elementInfo:{},needWaitAnimation:{type:Boolean}},setup(t){const{currentSlide:e}=vr(zt()),r=Wn(Ba)||ge(1),n=Wn(ol)||ge(""),i=Me(()=>e.value.id===n.value);return(a,o)=>(oe(),Se("div",{class:"base-element-enjoy screen-element-enjoy",style:Ie({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[Y("div",{class:"rotate-wrapper",style:Ie({transform:`rotate(${a.elementInfo.rotate}deg)`})},[Y("div",K4,[i.value?(oe(),Je(gx,{key:0,elementInfo:a.elementInfo,scale:he(r),isScreening:!0,needWaitAnimation:a.needWaitAnimation},null,8,["elementInfo","scale","needWaitAnimation"])):je("",!0)])],4)],4))}}),Z4=tt(Y4,[["__scopeId","data-v-00ede00d"]]),Q4=["id","title"],J4=Xe({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,r=Me(()=>{const s={[ir.IMAGE]:yx,[ir.TEXT]:Sx,[ir.SHAPE]:bx,[ir.LINE]:Cx,[ir.CHART]:xx,[ir.TABLE]:Tx,[ir.LATEX]:Ix,[ir.ELF]:null},l={[oi.AUDIO]:G4,[oi.VIDEO]:z4,[oi.SING_PLAY]:X4,[oi.ENJOY]:Z4};return s[e.elementInfo.type]||l[e.elementInfo.subtype]||null}),{formatedAnimations:n,theme:i}=vr(zt()),a=Me(()=>{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 oe(),Se("div",{class:ht(["screen-element",{link:s.elementInfo.link}]),id:`screen-element-${s.elementInfo.id}`,style:Ie({zIndex:s.elementIndex,color:he(i).fontColor,fontFamily:he(i).fontName,fontSize:he(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))},[(oe(),Je(sv(r.value),{needWaitAnimation:a.value,elementInfo:s.elementInfo},null,8,["needWaitAnimation","elementInfo"]))],14,Q4)}}}),q4=tt(J4,[["__scopeId","data-v-93c5ed29"]]),e3=Xe({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{viewportRatio:r,viewportSize:n}=vr(zt()),i=Me(()=>e.slide.background),{backgroundStyle:a}=mx(i),o=Me(()=>e.slide.id);return mc(ol,o),(s,l)=>(oe(),Se("div",{class:"screen-slide",style:Ie({width:he(n)+"px",height:he(n)*he(r)+"px",transform:`scale(${s.scale})`})},[Y("div",{class:"background",style:Ie({...he(a)})},null,4),(oe(!0),Se(Yt,null,Vr(s.slide.elements,(u,f)=>(oe(),Je(q4,{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))}}),t3=tt(e3,[["__scopeId","data-v-17d2a617"]]),r3={class:"screen-slide-list"},n3=Xe({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{slides:r,slideIndex:n,viewportSize:i}=vr(zt()),a=Me(()=>r.value.map(s=>{let l=s.turningMode;if(l||(l="slideY"),l==="random"){const u=O4.filter(f=>!["random","no"].includes(f.value)).map(f=>f.value);l=u[Math.floor(Math.random()*u.length)]}return{...s,turningMode:l}})),o=Me(()=>e.slideWidth/i.value);return mc(Ba,o),(s,l)=>(oe(),Se("div",r3,[(oe(!0),Se(Yt,null,Vr(a.value,(u,f)=>{var c;return oe(),Se("div",{class:ht(["slide-item",`turning-mode-${u.turningMode}`,{current:f===he(n),before:f<he(n),after:f>he(n),hide:(f===he(n)-1||f===he(n)+1)&&u.turningMode!==a.value[he(n)].turningMode}]),key:u.id},[Math.abs(he(n)-f)<2||(c=u.animations)!=null&&c.length?(oe(),Se("div",{key:0,class:"slide-content",style:Ie({width:s.slideWidth+"px",height:s.slideHeight+"px"})},[Ge(t3,{slide:u,scale:o.value,animationIndex:s.animationIndex,turnSlideToId:s.turnSlideToId,manualExitFullscreen:s.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):je("",!0)],2)}),128))]))}}),Ox=tt(n3,[["__scopeId","data-v-9f9072dd"]]),i3={class:"slide-thumbnails"},a3={class:"return-button"},o3={class:"slide-thumbnails-content"},s3=["onClick"],l3=Xe({__name:"SlideThumbnails",props:{turnSlideToIndex:{type:Function}},emits:["close"],setup(t,{emit:e}){const r=t,n=e,{slides:i,slideIndex:a}=vr(zt()),{slidesLoadLimit:o}=_x(),s=l=>{r.turnSlideToIndex(l),n("close")};return(l,u)=>{const f=ct("IconArrowCircleLeft");return oe(),Se("div",i3,[Y("div",a3,[Ge(f,{class:"icon",onClick:u[0]||(u[0]=c=>n("close"))})]),Y("div",o3,[(oe(!0),Se(Yt,null,Vr(he(i),(c,d)=>(oe(),Se("div",{class:ht(["thumbnail",{active:d===he(a)}]),key:c.id,onClick:h=>s(d)},[Ge(Ax,{slide:c,size:150,visible:d<he(o)},null,8,["slide","visible"])],10,s3))),128))])])}}}),u3=tt(l3,[["__scopeId","data-v-f836aa07"]]),c3={key:0,class:"blackboard"},f3=Xe({__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=ge(),s=ge();let l={x:0,y:0},u=!1,f=0,c=-1;const d=ge({x:0,y:0}),h=ge(!1),v=ge(0),p=ge(0),g=Me(()=>s.value?v.value/s.value.width:1),m=Me(()=>s.value?p.value/s.value.height:1),y=()=>{o.value&&(v.value=o.value.clientWidth,p.value=o.value.clientHeight)},b=new ResizeObserver(y);xr(()=>{o.value&&b.observe(o.value)}),un(()=>{o.value&&b.unobserve(o.value)}),xr(()=>{!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 M=()=>{a&&(n.model==="mark"?(a.globalCompositeOperation="xor",a.globalAlpha=.5):n.model==="pen"&&(a.globalCompositeOperation="source-over",a.globalAlpha=1))};hr(()=>n.model,M);const C=($,U,Q)=>{if(!a)return;const Z=l.x,V=l.y;a.lineWidth=Q,a.strokeStyle=n.color,a.beginPath(),a.moveTo(Z,V),a.lineTo($,U),a.stroke(),a.closePath()},I=($,U)=>{if(!a||!s.value)return;const Q=l.x,Z=l.y,V=n.rubberSize/2,te=V*Math.sin(Math.atan((U-Z)/($-Q))),ie=V*Math.cos(Math.atan((U-Z)/($-Q))),se=[Q+te,Z-ie],W=[Q-te,Z+ie],q=[$+te,U-ie],ce=[$-te,U+ie];a.save(),a.beginPath(),a.arc($,U,V,0,Math.PI*2),a.clip(),a.clearRect(0,0,s.value.width,s.value.height),a.restore(),a.save(),a.beginPath(),a.moveTo(...se),a.lineTo(...q),a.lineTo(...ce),a.lineTo(...W),a.closePath(),a.clip(),a.clearRect(0,0,s.value.width,s.value.height),a.restore()},P=($,U)=>{const Q=l.x,Z=l.y;return Math.sqrt(($-Q)*($-Q)+(U-Z)*(U-Z))},S=($,U)=>{const V=n.penSize,te=3,ie=$/U;let se;return ie<=.1?se=V:ie>=10?se=te:se=V-ie/10*V,c===-1?se:se*1/3+c*2/3},T=($,U)=>{const Q=new Date().getTime();if(n.model==="pen"){const Z=P($,U),V=Q-f,te=S(Z,V);C($,U,te),c=te}else n.model==="mark"?C($,U,n.markSize):I($,U);l={x:$,y:U},f=new Date().getTime()},x=$=>{if(!s.value)return[0,0];const U=$ instanceof MouseEvent?$:$.changedTouches[0],Q=s.value.getBoundingClientRect(),Z=U.pageX-Q.x,V=U.pageY-Q.y;return[Z,V]},_=$=>{const[U,Q]=x($),Z=U/g.value,V=Q/m.value;u=!0,l={x:Z,y:V},f=new Date().getTime(),$ instanceof MouseEvent||(d.value={x:U,y:Q},h.value=!0)},E=$=>{const[U,Q]=x($),Z=U/g.value,V=Q/m.value;d.value={x:U,y:Q},u&&T(Z,V)},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),M()}}}}),($,U)=>{const Q=ct("IconWrite"),Z=ct("IconHighLight");return oe(),Se("div",{class:"writing-board",ref_key:"writingBoardRef",ref:o},[$.blackboard?(oe(),Se("div",c3)):je("",!0),Y("canvas",{class:"canvas",ref_key:"canvasRef",ref:s,style:Ie({width:v.value+"px",height:p.value+"px"}),onMousedown:U[0]||(U[0]=V=>_(V)),onMousemove:U[1]||(U[1]=V=>E(V)),onMouseup:U[2]||(U[2]=V=>R()),onTouchstart:U[3]||(U[3]=V=>_(V)),onTouchmove:U[4]||(U[4]=V=>E(V)),onTouchend:U[5]||(U[5]=V=>{R(),h.value=!1}),onMouseleave:U[6]||(U[6]=V=>{R(),h.value=!1}),onMouseenter:U[7]||(U[7]=V=>h.value=!0)},null,36),h.value?(oe(),Se(Yt,{key:1},[$.model==="eraser"?(oe(),Se("div",{key:0,class:"eraser",style:Ie({left:d.value.x-$.rubberSize/2+"px",top:d.value.y-$.rubberSize/2+"px",width:$.rubberSize+"px",height:$.rubberSize+"px"})},null,4)):je("",!0),$.model==="pen"?(oe(),Se("div",{key:1,class:"pen",style:Ie({left:d.value.x-$.penSize/2+"px",top:d.value.y-$.penSize*6+$.penSize/2+"px",color:$.color})},[$.model==="pen"?(oe(),Je(Q,{key:0,class:"icon",size:$.penSize*6},null,8,["size"])):je("",!0)],4)):je("",!0),$.model==="mark"?(oe(),Se("div",{key:2,class:"pen",style:Ie({left:d.value.x-$.markSize/2+"px",top:d.value.y+"px",color:$.color})},[$.model==="mark"?(oe(),Je(Z,{key:0,class:"icon",size:$.markSize*1.5},null,8,["size"])):je("",!0)],4)):je("",!0)],64)):je("",!0)],512)}}}),d3=tt(f3,[["__scopeId","data-v-2e998f6c"]]),Tp=t=>(ka("data-v-05ee2be6"),t=t(),Oa(),t),h3={class:"writing-board-tool"},v3={class:"tool-content"},p3={class:"size"},g3=Tp(()=>Y("div",{class:"label"},"墨迹粗细:",-1)),m3={class:"size"},y3=Tp(()=>Y("div",{class:"label"},"墨迹粗细:",-1)),S3={class:"size"},b3=Tp(()=>Y("div",{class:"label"},"橡皮大小:",-1)),C3={class:"colors"},x3=["onClick"],w3=Xe({__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}=vr(zt()),a=ge(),o=ge("#e2534d"),s=ge("pen"),l=ge(!1),u=ge(""),f=ge(6),c=ge(24),d=ge(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")};hr(i,()=>{Cl.writingBoardImgs.where("id").equals(i.value.id).toArray().then(y=>{const b=y[0];a.value.setImageDataURL((b==null?void 0:b.dataURL)||"")})},{immediate:!0});const m=()=>{const y=a.value.getImageDataURL();y&&Cl.writingBoardImgs.where("id").equals(i.value.id).toArray().then(b=>{const A=b[0];A?Cl.writingBoardImgs.update(A,{dataURL:y}):Cl.writingBoardImgs.add({id:i.value.id,dataURL:y})})};return(y,b)=>{const A=ct("IconWrite"),M=ct("IconHighLight"),C=ct("IconErase"),I=ct("IconClear"),P=ct("IconFill"),S=ct("IconClose"),T=il("tooltip");return oe(),Se("div",h3,[Y("div",{class:"writing-board-wrap",style:Ie({width:y.slideWidth+"px",height:y.slideHeight+"px"})},[Ge(d3,{ref_key:"writingBoardRef",ref:a,color:o.value,blackboard:l.value,model:s.value,penSize:f.value,markSize:c.value,rubberSize:d.value,onEnd:b[0]||(b[0]=x=>m())},null,8,["color","blackboard","model","penSize","markSize","rubberSize"])],4),Ge(Mx,{class:"tools-panel",width:520,height:50,left:y.left,top:y.top,moveable:u.value===""},{default:xn(()=>[Y("div",{class:"tools",onMousedown:b[10]||(b[10]=Tn(()=>{},["stop"]))},[Y("div",v3,[Ge(cf,{trigger:"manual",value:u.value==="pen"},{content:xn(()=>[Y("div",p3,[g3,Ge($d,{class:"size-slider",min:4,max:10,step:2,value:f.value,"onUpdate:value":b[1]||(b[1]=x=>f.value=x)},null,8,["value"])])]),default:xn(()=>[rn((oe(),Se("div",{class:ht(["btn",{active:s.value==="pen"}]),onClick:b[2]||(b[2]=x=>h("pen"))},[Ge(A,{class:"icon"})],2)),[[T,"画笔"]])]),_:1},8,["value"]),Ge(cf,{trigger:"manual",value:u.value==="mark"},{content:xn(()=>[Y("div",m3,[y3,Ge($d,{class:"size-slider",min:16,max:40,step:4,value:c.value,"onUpdate:value":b[3]||(b[3]=x=>c.value=x)},null,8,["value"])])]),default:xn(()=>[rn((oe(),Se("div",{class:ht(["btn",{active:s.value==="mark"}]),onClick:b[4]||(b[4]=x=>h("mark"))},[Ge(M,{class:"icon"})],2)),[[T,"荧光笔"]])]),_:1},8,["value"]),Ge(cf,{trigger:"manual",value:u.value==="eraser"},{content:xn(()=>[Y("div",S3,[b3,Ge($d,{class:"size-slider",min:20,max:200,step:20,value:d.value,"onUpdate:value":b[5]||(b[5]=x=>d.value=x)},null,8,["value"])])]),default:xn(()=>[rn((oe(),Se("div",{class:ht(["btn",{active:s.value==="eraser"}]),onClick:b[6]||(b[6]=x=>h("eraser"))},[Ge(C,{class:"icon"})],2)),[[T,"橡皮擦"]])]),_:1},8,["value"]),rn((oe(),Se("div",{class:"btn",onClick:b[7]||(b[7]=x=>v())},[Ge(I,{class:"icon"})])),[[T,"清除墨迹"]]),rn((oe(),Se("div",{class:ht(["btn",{active:l.value}]),onClick:b[8]||(b[8]=x=>l.value=!l.value)},[Ge(P,{class:"icon"})],2)),[[T,"黑板"]]),Y("div",C3,[(oe(),Se(Yt,null,Vr(r,x=>Y("div",{class:ht(["color",{active:x===o.value}]),key:x,style:Ie({backgroundColor:x}),onClick:_=>p(x)},null,14,x3)),64))])]),rn((oe(),Se("div",{class:"btn",onClick:b[9]||(b[9]=x=>g())},[Ge(S,{class:"icon"})])),[[T,"关闭画笔"]])],32)]),_:1},8,["left","top","moveable"])])}}}),kx=tt(w3,[["__scopeId","data-v-05ee2be6"]]),T3=t=>(ka("data-v-52a17a32"),t=t(),Oa(),t),I3={class:"header"},A3={class:"content"},_3={class:"timer"},E3=["value","disabled"],P3=T3(()=>Y("div",{class:"colon"},":",-1)),M3={class:"timer"},R3=["value","disabled"],D3=Xe({__name:"CountdownTimer",props:{left:{default:5},top:{default:5}},emits:["close"],setup(t,{emit:e}){const r=e,n=ge(null),i=ge(!1),a=ge(!1),o=ge(0),s=Me(()=>Math.floor(o.value/60)),l=Me(()=>o.value%60),u=Me(()=>!a.value||i.value),f=()=>{n.value&&clearInterval(n.value)};un(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 b=m.target;let A=b.value;/^(\d)+$/.test(A)?(y==="second"&&+A>=60&&(A="59"),o.value=y==="minute"?+A*60+l.value:+A+s.value*60):b.value=xl(y==="minute"?s.value:l.value,2)};return(m,y)=>{const b=ct("IconClose");return oe(),Je(Mx,{class:"countdown-timer",width:180,height:110,left:m.left,top:m.top},{default:xn(()=>[Y("div",I3,[Y("span",{class:"text-btn",onClick:y[0]||(y[0]=A=>v())},$t(i.value?"暂停":"开始"),1),Y("span",{class:"text-btn",onClick:y[1]||(y[1]=A=>d())},"重置"),Y("span",{class:ht(["text-btn",{active:a.value}]),onClick:y[2]||(y[2]=A=>p())},"倒计时",2)]),Y("div",A3,[Y("div",_3,[Y("input",{type:"text",value:he(xl)(s.value,2),maxlength:3,disabled:u.value,onMousedown:y[3]||(y[3]=Tn(()=>{},["stop"])),onBlur:y[4]||(y[4]=A=>g(A,"minute")),onKeydown:[y[5]||(y[5]=Tn(()=>{},["stop"])),y[6]||(y[6]=zd(Tn(A=>g(A,"minute"),["stop"]),["enter"]))]},null,40,E3)]),P3,Y("div",M3,[Y("input",{type:"text",value:he(xl)(l.value,2),maxlength:3,disabled:u.value,onMousedown:y[7]||(y[7]=Tn(()=>{},["stop"])),onBlur:y[8]||(y[8]=A=>g(A,"second")),onKeydown:[y[9]||(y[9]=Tn(()=>{},["stop"])),y[10]||(y[10]=zd(Tn(A=>g(A,"second"),["stop"]),["enter"]))]},null,40,R3)])]),Y("div",{class:"close-btn",onClick:y[11]||(y[11]=A=>r("close"))},[Ge(b,{class:"icon"})])]),_:1},8,["left","top"])}}}),Bx=tt(D3,[["__scopeId","data-v-52a17a32"]]),L3={key:3,class:"tools-left"},O3=Xe({__name:"BaseView",props:{changeViewMode:{type:Function}},setup(t){const e=t,{slides:r,slideIndex:n}=vr(zt()),i=yc(),{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:b,execNext:A,animationIndex:M}=Rx(),{slideWidth:C,slideHeight:I}=Dx(),{exitScreening:P}=bc(),{fullscreenState:S,manualExitFullscreen:T}=Lx();ge(!1);const x=ge(!1),_=ge(!1),E=ge(!1),R=ge(!1),O=()=>{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:()=>E.value=!0},{text:"画笔工具",handler:()=>x.value=!0},{text:"演讲者视图",handler:()=>e.changeViewMode("presenter")},{divider:!0}];return i.mode==="pptEditor"&&D.push({text:"结束放映",subText:"ESC",handler:P}),D};return(D,B)=>{const $=ct("IconLeftTwo"),U=ct("IconRightTwo"),Q=il("contextmenu");return oe(),Se("div",{class:ht(["base-view",{"laser-pen":R.value}])},[rn(Ge(Ox,{slideWidth:he(C),slideHeight:he(I),animationIndex:he(M),turnSlideToId:he(y),manualExitFullscreen:he(T),onWheel:B[0]||(B[0]=Z=>he(d)(Z)),onTouchstart:B[1]||(B[1]=Z=>he(h)(Z)),onTouchend:B[2]||(B[2]=Z=>he(v)(Z))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[Q,O]]),E.value?(oe(),Je(u3,{key:0,turnSlideToIndex:he(m),onClose:B[3]||(B[3]=Z=>E.value=!1)},null,8,["turnSlideToIndex"])):je("",!0),x.value?(oe(),Je(kx,{key:1,slideWidth:he(C),slideHeight:he(I),onClose:B[4]||(B[4]=Z=>x.value=!1)},null,8,["slideWidth","slideHeight"])):je("",!0),_.value?(oe(),Je(Bx,{key:2,onClose:B[5]||(B[5]=Z=>_.value=!1)})):je("",!0),he(i).mode==="pptEditor"?(oe(),Se("div",L3,[Ge($,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:B[6]||(B[6]=Z=>he(b)())}),Ge(U,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:B[7]||(B[7]=Z=>he(A)())})])):je("",!0)],2)}}}),k3=tt(O3,[["__scopeId","data-v-c13d9b74"]]),Oo=t=>(ka("data-v-1e45d89b"),t=t(),Oa(),t),B3={class:"presenter-view"},N3={class:"toolbar"},F3=Oo(()=>Y("span",null,"普通视图",-1)),$3=Oo(()=>Y("span",null,"画笔",-1)),U3=Oo(()=>Y("span",null,"激光笔",-1)),z3=Oo(()=>Y("span",null,"计时器",-1)),H3=Oo(()=>Y("span",null,"结束放映",-1)),V3={class:"content"},G3=["onClick"],j3={class:"remark"},W3={class:"header"},X3=Oo(()=>Y("span",null,"演讲者备注",-1)),K3=["innerHTML"],Y3={class:"remark-scale"},Z3=Xe({__name:"PresenterView",props:{changeViewMode:{type:Function}},setup(t){const e=t,{slides:r,slideIndex:n,viewportRatio:i,currentSlide:a}=vr(zt()),o=ge(),s=ge(),l=ge(!1),u=ge(!1),f=ge(!1),c=yc(),{mousewheelListener:d,touchStartListener:h,touchEndListener:v,turnPrevSlide:p,turnNextSlide:g,turnSlideToIndex:m,turnSlideToId:y,animationIndex:b}=Rx(),{slideWidth:A,slideHeight:M}=Dx(o),{exitScreening:C}=bc(),{slidesLoadLimit:I}=_x(),{fullscreenState:P,manualExitFullscreen:S}=Lx(),T=ge(16),x=Me(()=>CI(a.value.remark||"无备注")),_=O=>{s.value&&s.value.scrollBy(O.deltaY,0)},E=O=>{O<12||O>40||(T.value=O)};hr(n,()=>{N0(()=>{if(!s.value)return;const O=s.value.querySelector(".thumbnail.active");if(!O)return;const D=s.value.offsetWidth,B=O.offsetLeft;s.value.scrollTo({left:B-D/2,behavior:"smooth"})})});const R=()=>{const O=[{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"&&O.push({text:"结束放映",subText:"ESC",handler:C}),O};return(O,D)=>{const B=ct("IconListView"),$=ct("IconWrite"),U=ct("IconMagic"),Q=ct("IconStopwatchStart"),Z=ct("IconOffScreenOne"),V=ct("IconPower"),te=ct("IconMinus"),ie=ct("IconPlus"),se=il("contextmenu");return oe(),Se("div",B3,[Y("div",N3,[Y("div",{class:"tool-btn",onClick:D[0]||(D[0]=W=>O.changeViewMode("base"))},[Ge(B,{class:"tool-icon"}),F3]),Y("div",{class:ht(["tool-btn",{active:l.value}]),onClick:D[1]||(D[1]=W=>l.value=!l.value)},[Ge($,{class:"tool-icon"}),$3],2),Y("div",{class:ht(["tool-btn",{active:f.value}]),onClick:D[2]||(D[2]=W=>f.value=!f.value)},[Ge(U,{class:"tool-icon"}),U3],2),Y("div",{class:ht(["tool-btn",{active:u.value}]),onClick:D[3]||(D[3]=W=>u.value=!u.value)},[Ge(Q,{class:"tool-icon"}),z3],2),he(vo).hideFullScreen?je("",!0):(oe(),Se("div",{key:0,class:"tool-btn",onClick:D[4]||(D[4]=()=>he(P)?he(S)():he(J0)())},[he(P)?(oe(),Je(Z,{key:0,class:"tool-icon"})):(oe(),Je(Z,{key:1,class:"tool-icon"})),Y("span",null,$t(he(P)?"退出全屏":"全屏"),1)])),Ge(NF,{class:"divider"}),he(c).mode==="pptEditor"?(oe(),Se("div",{key:1,class:"tool-btn",onClick:D[5]||(D[5]=W=>he(C)())},[Ge(V,{class:"tool-icon"}),H3])):je("",!0)]),Y("div",V3,[Y("div",{class:ht(["slide-list-wrap",{"laser-pen":f.value}]),ref_key:"slideListWrapRef",ref:o},[rn(Ge(Ox,{slideWidth:he(A),slideHeight:he(M),animationIndex:he(b),turnSlideToId:he(y),manualExitFullscreen:he(S),onWheel:D[6]||(D[6]=W=>he(d)(W)),onTouchstart:D[7]||(D[7]=W=>he(h)(W)),onTouchend:D[8]||(D[8]=W=>he(v)(W))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[se,R]]),l.value?(oe(),Je(kx,{key:0,slideWidth:he(A),slideHeight:he(M),left:-365,top:-155,onClose:D[9]||(D[9]=W=>l.value=!1)},null,8,["slideWidth","slideHeight"])):je("",!0),u.value?(oe(),Je(Bx,{key:1,left:75,onClose:D[10]||(D[10]=W=>u.value=!1)})):je("",!0)],2),Y("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:s,onWheel:D[11]||(D[11]=Tn(W=>_(W),["prevent"]))},[(oe(!0),Se(Yt,null,Vr(he(r),(W,q)=>(oe(),Se("div",{class:ht(["thumbnail",{active:q===he(n)}]),key:W.id,onClick:ce=>he(m)(q)},[Ge(Ax,{slide:W,size:120/he(i),visible:q<he(I)},null,8,["slide","size","visible"])],10,G3))),128))],544)]),Y("div",j3,[Y("div",W3,[X3,Y("span",null,"P "+$t(he(n)+1)+" / "+$t(he(r).length),1)]),Y("div",{class:"remark-content ProseMirror-static",style:Ie({fontSize:T.value+"px"}),innerHTML:x.value},null,12,K3),Y("div",Y3,[Y("div",{class:ht(["scale-btn",{disable:T.value===12}]),onClick:D[12]||(D[12]=W=>E(T.value-2))},[Ge(te)],2),Y("div",{class:ht(["scale-btn",{disable:T.value===40}]),onClick:D[13]||(D[13]=W=>E(T.value+2))},[Ge(ie)],2)])])])}}}),Q3=tt(Z3,[["__scopeId","data-v-1e45d89b"]]),J3={class:"pptist-screen"},q3=Xe({__name:"index",setup(t){const e=ge("base"),r=a=>{e.value=a},{exitScreening:n}=bc(),i=a=>{a.key.toUpperCase()===Nn.ESC&&n()};return xr(()=>document.addEventListener("keydown",i)),un(()=>document.removeEventListener("keydown",i)),(a,o)=>(oe(),Se("div",J3,[e.value==="base"?(oe(),Je(k3,{key:0,changeViewMode:r})):e.value==="presenter"?(oe(),Je(Q3,{key:1,changeViewMode:r})):je("",!0)]))}}),C$=tt(q3,[["__scopeId","data-v-3856f8b7"]]);export{AA as $,CN as A,_N as B,M5 as C,gx as D,n1 as E,ir as F,oi as G,t$ as H,mx as I,NF as J,Nn as K,Ba as L,c$ as M,f$ as N,u$ as O,cf as P,h$ as Q,d$ as R,kp as S,Ax as T,_x as U,aN as V,s$ as W,xl as X,hF as Y,$d as Z,GA as _,a$ as a,p$ as a0,Vp as a1,y$ as a2,S$ as a3,b$ as a4,wa as a5,g$ as a6,m$ as a7,O4 as a8,r$ as a9,Mx as aa,C$ as ab,xI as ac,bc as b,o$ as c,AI as d,EI as e,i$ as f,V0 as g,jd as h,l$ as i,_I as j,n$ as k,Cc as l,Dr as m,e1 as n,r1 as o,CI as p,MA as q,sl as r,JA as s,cI as t,v$ as u,Gp as v,O5 as w,L5 as x,R5 as y,D5 as z};