index-BJ2AGjfq.js 756 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import{cK as nf,dx as af,M as He,aM as ve,as as yS,ax as ir,aE as re,s as $e,bx as Sn,u as pe,v as j,bc as ae,t as Ve,b3 as Mt,I as De,g as mS,dy as _S,cR as Ye,aO as Fv,cG as of,dI as yh,cM as SS,cI as kt,dJ as bS,cC as wS,cD as CS,dK as Gr,dz as TS,dL as xS,dM as IS,dN as AS,dO as kS,dP as $v,cP as zv,dF as mh,q as Te,bs as Rr,aC as hn,dD as MS,aQ as fl,aq as Se,ao as Je,b7 as Vl,F as $t,aP as Lr,aR as We,H as Ly,aI as Vi,aF as Hi,dQ as PS,cO as RS,bz as Vt,bp as LS,aT as Ey,cJ as lr,aG as _h,aa as ba,aS as hl,bC as zn,dR as os,bA as Uv,dS as Dy,an as ES}from"./index-DBygDY21.js";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 pB=[{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"}]}],sf=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,h=[f+o*Math.cos(l),f+o*Math.cos(u),f-o*Math.cos(l),f-o*Math.cos(u)],v=[c-o*Math.sin(l),c-o*Math.sin(u),c+o*Math.sin(l),c+o*Math.sin(u)];return{xRange:[Math.min(...h),Math.max(...h)],yRange:[Math.min(...v),Math.max(...v)]}},gB=t=>{const{xRange:e,yRange:r}=sf({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:n,yRange:i}=sf({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]}},Oy=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}=sf({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}},yB=t=>{const e=[],r=[],n=[],i=[];t.forEach(u=>{const{minX:f,maxX:c,minY:h,maxY:v}=Oy(u);e.push(f),r.push(h),n.push(c),i.push(v)});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}},mB=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},_B=t=>{const e={};for(const r of t)e[r.id]=nf(10);return e},SB=t=>{const e={},r={};for(const n of t){const i=n.groupId;i&&!e[i]&&(e[i]=nf(10)),r[n.id]=nf(10)}return{groupIdMap:e,elIdMap:r}},DS=t=>{const e=af(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},OS=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}=Oy(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}`},bB=(t,e)=>{const r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom},BS=["id"],NS={class:"icons"},FS={class:"content"},$S={key:0,class:"title"},zS={class:"description"},US={key:0,class:"control"},VS=He({__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}=_S,l=t,u=r,f=ve(!0),c=ve(null),h=()=>{l.duration<=0||(c.value=setTimeout(d,l.duration))},v=()=>{c.value&&clearTimeout(c.value)},d=()=>f.value=!1;return yS(()=>{v()}),ir(()=>{h()}),e({close:d}),(p,g)=>(re(),$e(mS,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:g[3]||(g[3]=y=>u("close")),onAfterLeave:g[4]||(g[4]=y=>u("destroy"))},{default:Sn(()=>[f.value?(re(),pe("div",{key:0,class:"message",id:p.id},[j("div",{class:"message-container",onMouseenter:g[1]||(g[1]=y=>v()),onMouseleave:g[2]||(g[2]=y=>h())},[j("div",NS,[p.type==="warning"?(re(),$e(ae(n),{key:0,theme:"filled",size:"18",fill:"#faad14"})):Ve("",!0),p.type==="success"?(re(),$e(ae(i),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):Ve("",!0),p.type==="error"?(re(),$e(ae(a),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):Ve("",!0),p.type==="info"?(re(),$e(ae(o),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):Ve("",!0)]),j("div",FS,[p.title?(re(),pe("div",$S,Mt(p.title),1)):Ve("",!0),j("div",zS,Mt(p.message),1)]),p.closable?(re(),pe("div",US,[j("span",{class:"close-btn",onClick:g[0]||(g[0]=y=>d())},[De(ae(s))])])):Ve("",!0)],32)],8,BS)):Ve("",!0)]),_:1}))}}),HS=Ye(VS,[["__scopeId","data-v-bfa2994d"]]),lf=[];let Qr=null,GS=0;const WS={duration:3e3},yr=t=>{const e="message-"+GS++,r={...WS,...t,id:e};Qr||(Qr=document.createElement("div"),Qr.className="message-wrap",Qr.style.cssText=`
  2. width: 100%;
  3. position: fixed;
  4. top: 0;
  5. left: 0;
  6. z-index: 6000;
  7. pointer-events: none;
  8. display: flex;
  9. flex-direction: column;
  10. box-sizing: border-box;
  11. padding: 15px;
  12. background-color: rgba(255, 255, 255, 0);
  13. transition: all 1s ease-in-out;
  14. align-items: center;
  15. `,document.body.appendChild(Qr));const n=De(HS,r,null),i=document.createElement("div");n.appContext=t.ctx||yr._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{Qr&&Qr.childNodes.length<=1&&(Qr.remove(),Qr=null),Fv(null,i)},Fv(n,i),Qr.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 lf.push(a),a};yr.success=(t,e)=>yr({...e,type:"success",message:t});yr.info=(t,e)=>yr({...e,type:"info",message:t});yr.warning=(t,e)=>yr({...e,type:"warning",message:t});yr.error=(t,e)=>yr({...e,type:"error",message:t});yr.closeAll=function(){for(let t=lf.length-1;t>=0;t--)lf[t].close()};const jS=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},ss=(t,e)=>of.padStart(""+t,e,"0"),wB=t=>/^(https?:\/\/)([\w-]+\.)+[\w-]{2,}(\/[\w-./?%&=]*)?$/i.test(t);var XS=(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))(XS||{}),Nt=(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))(Nt||{}),Ni=(t=>(t.VIDEO="elf-video",t.AUDIO="elf-audio",t.SING_PLAY="elf-sing-play",t))(Ni||{});const qS=t=>yh.axioseRquest({method:"get",url:`/edu-app/teacherChapterKnowledgeMaterial/detail/${t}`}),KS=t=>yh.axioseRquest({method:"post",url:"/edu-app/teacherChapterKnowledgeMaterial/savePptJson",data:t}),CB=t=>yh.axioseRquest({method:"post",url:"/edu-app/material/queryPage",data:t});function YS(t){return new Promise((e,r)=>{SS.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 ZS(t){const e=kt(),{width:r,theme:n,slides:i}=t;e.updateSlideIndex(0),e.setViewportSize(r||1920),e.setViewportRatio(n.viewportRatio),e.setTheme(n),e.setSlides(i.length?i:bS)}function QS(){const t=kt(),{slides:e,theme:r,viewportRatio:n,viewportSize:i,title:a}=t,o={width:i,height:i*n,slides:e,theme:Object.assign(r,{viewportRatio:n})};return{blob:new Blob([JSON.stringify(o)]),title:a}}var By={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(wS,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(x){for(var A={},R=0,N=x.length;R<N;R++)A[x.charAt(R)]=R;return A}(l),f=String.fromCharCode,c=function(A){if(A.length<2){var R=A.charCodeAt(0);return R<128?A:R<2048?f(192|R>>>6)+f(128|R&63):f(224|R>>>12&15)+f(128|R>>>6&63)+f(128|R&63)}else{var R=65536+(A.charCodeAt(0)-55296)*1024+(A.charCodeAt(1)-56320);return f(240|R>>>18&7)+f(128|R>>>12&63)+f(128|R>>>6&63)+f(128|R&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(A){return A.replace(h,c)},d=function(A){var R=[0,2,1][A.length%3],N=A.charCodeAt(0)<<16|(A.length>1?A.charCodeAt(1):0)<<8|(A.length>2?A.charCodeAt(2):0),E=[l.charAt(N>>>18),l.charAt(N>>>12&63),R>=2?"=":l.charAt(N>>>6&63),R>=1?"=":l.charAt(N&63)];return E.join("")},p=a.btoa?function(x){return a.btoa(x)}:function(x){return x.replace(/[\s\S]{1,3}/g,d)},g=function(x){return p(v(x))},y=function(A,R){return R?g(String(A)).replace(/[+\/]/g,function(N){return N=="+"?"-":"_"}).replace(/=/g,""):g(String(A))},m=function(A){return y(A,!0)},w=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),k=function(A){switch(A.length){case 4:var R=(7&A.charCodeAt(0))<<18|(63&A.charCodeAt(1))<<12|(63&A.charCodeAt(2))<<6|63&A.charCodeAt(3),N=R-65536;return f((N>>>10)+55296)+f((N&1023)+56320);case 3:return f((15&A.charCodeAt(0))<<12|(63&A.charCodeAt(1))<<6|63&A.charCodeAt(2));default:return f((31&A.charCodeAt(0))<<6|63&A.charCodeAt(1))}},P=function(A){return A.replace(w,k)},C=function(A){var R=A.length,N=R%4,E=(R>0?u[A.charAt(0)]<<18:0)|(R>1?u[A.charAt(1)]<<12:0)|(R>2?u[A.charAt(2)]<<6:0)|(R>3?u[A.charAt(3)]:0),U=[f(E>>>16),f(E>>>8&255),f(E&255)];return U.length-=[0,0,2,1][N],U.join("")},I=a.atob?function(x){return a.atob(x)}:function(x){return x.replace(/[\s\S]{1,4}/g,C)},M=function(x){return P(I(x))},b=function(A){return M(String(A).replace(/[-_]/g,function(R){return R=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(){var A=a.Base64;return a.Base64=o,A},_={VERSION:s,atob:I,btoa:p,fromBase64:b,toBase64:y,utob:v,encode:y,encodeURI:m,btou:P,decode:b,noConflict:T};return _}();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={},h=function(){},v=c.Base={extend:function(C){h.prototype=this;var I=new h;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)}},d=c.WordArray=v.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,M=C.words,b=this.sigBytes;if(C=C.sigBytes,this.clamp(),b%4)for(var T=0;T<C;T++)I[b+T>>>2]|=(M[T>>>2]>>>24-8*(T%4)&255)<<24-8*((b+T)%4);else if(65535<M.length)for(T=0;T<C;T+=4)I[b+T>>>2]=M[T>>>2];else I.push.apply(I,M);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=v.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var I=[],M=0;M<C;M+=4)I.push(4294967296*l.random()|0);return new d.init(I,C)}}),p=f.enc={},g=p.Hex={stringify:function(C){var I=C.words;C=C.sigBytes;for(var M=[],b=0;b<C;b++){var T=I[b>>>2]>>>24-8*(b%4)&255;M.push((T>>>4).toString(16)),M.push((T&15).toString(16))}return M.join("")},parse:function(C){for(var I=C.length,M=[],b=0;b<I;b+=2)M[b>>>3]|=parseInt(C.substr(b,2),16)<<24-4*(b%8);return new d.init(M,I/2)}},y=p.Latin1={stringify:function(C){var I=C.words;C=C.sigBytes;for(var M=[],b=0;b<C;b++)M.push(String.fromCharCode(I[b>>>2]>>>24-8*(b%4)&255));return M.join("")},parse:function(C){for(var I=C.length,M=[],b=0;b<I;b++)M[b>>>2]|=(C.charCodeAt(b)&255)<<24-8*(b%4);return new d.init(M,I)}},m=p.Utf8={stringify:function(C){try{return decodeURIComponent(escape(y.stringify(C)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(C){return y.parse(unescape(encodeURIComponent(C)))}},w=c.BufferedBlockAlgorithm=v.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=m.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var I=this._data,M=I.words,b=I.sigBytes,T=this.blockSize,_=b/(4*T),_=C?l.ceil(_):l.max((_|0)-this._minBufferSize,0);if(C=_*T,b=l.min(4*C,b),C){for(var x=0;x<C;x+=T)this._doProcessBlock(M,x);x=M.splice(0,C),I.sigBytes-=b}return new d.init(x,b)},clone:function(){var C=v.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});c.Hasher=w.extend({cfg:v.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){w.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,M){return new C.init(M).finalize(I)}},_createHmacHelper:function(C){return function(I,M){return new k.HMAC.init(C,M).finalize(I)}}});var k=f.algo={};return f}(Math);(function(){var l=s,h=l.lib,u=h.WordArray,f=h.Hasher,c=[],h=l.algo.SHA1=f.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,p){for(var g=this._hash.words,y=g[0],m=g[1],w=g[2],k=g[3],P=g[4],C=0;80>C;C++){if(16>C)c[C]=d[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=(y<<5|y>>>27)+P+c[C],I=20>C?I+((m&w|~m&k)+1518500249):40>C?I+((m^w^k)+1859775393):60>C?I+((m&w|m&k|w&k)-1894007588):I+((m^w^k)-899497514),P=k,k=w,w=m<<30|m>>>2,m=y,y=I}g[0]=g[0]+y|0,g[1]=g[1]+m|0,g[2]=g[2]+w|0,g[3]=g[3]+k|0,g[4]=g[4]+P|0},_doFinalize:function(){var d=this._data,p=d.words,g=8*this._nDataBytes,y=8*d.sigBytes;return p[y>>>5]|=128<<24-y%32,p[(y+64>>>9<<4)+14]=Math.floor(g/4294967296),p[(y+64>>>9<<4)+15]=g,d.sigBytes=4*p.length,this._process(),this._hash},clone:function(){var d=f.clone.call(this);return d._hash=this._hash.clone(),d}});l.SHA1=f._createHelper(h),l.HmacSHA1=f._createHmacHelper(h)})(),function(){var l=s,u=l.enc.Utf8;l.algo.HMAC=l.lib.Base.extend({init:function(c,h){c=this._hasher=new c.init,typeof h=="string"&&(h=u.parse(h));var v=c.blockSize,d=4*v;h.sigBytes>d&&(h=c.finalize(h)),h.clamp();for(var p=this._oKey=h.clone(),g=this._iKey=h.clone(),y=p.words,m=g.words,w=0;w<v;w++)y[w]^=1549556828,m[w]^=909522486;p.sigBytes=g.sigBytes=d,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 h=this._hasher;return c=h.finalize(c),h.reset(),h.finalize(this._oKey.clone().concat(c))}})}(),function(){var l=s,u=l.lib,f=u.WordArray,c=l.enc;c.Base64={stringify:function(v){var d=v.words,p=v.sigBytes,g=this._map;v.clamp();for(var y=[],m=0;m<p;m+=3)for(var w=d[m>>>2]>>>24-m%4*8&255,k=d[m+1>>>2]>>>24-(m+1)%4*8&255,P=d[m+2>>>2]>>>24-(m+2)%4*8&255,C=w<<16|k<<8|P,I=0;I<4&&m+I*.75<p;I++)y.push(g.charAt(C>>>6*(3-I)&63));var M=g.charAt(64);if(M)for(;y.length%4;)y.push(M);return y.join("")},parse:function(v){var d=v.length,p=this._map,g=p.charAt(64);if(g){var y=v.indexOf(g);y!=-1&&(d=y)}for(var m=[],w=0,k=0;k<d;k++)if(k%4){var P=p.indexOf(v.charAt(k-1))<<k%4*2,C=p.indexOf(v.charAt(k))>>>6-k%4*2;m[w>>>2]|=(P|C)<<24-w%4*8,w++}return f.create(m,w)},_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,h=i("./node_modules/webpack/buildin/amd-options.js"),v=!u.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",d="0123456789abcdef".split(""),p=[128,32768,8388608,-2147483648],g=[0,8,16,24],y=["hex","array","digest","buffer","arrayBuffer","base64"],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),w=[],k;if(v){var P=new ArrayBuffer(68);k=new Uint8Array(P),w=new Uint32Array(P)}(u.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),v&&(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(_){return function(x,A){return new M(!0).update(x,A)[_]()}},I=function(){var _=C("hex");_.getCtx=_.create=function(){return new M},_.update=function(R){return _.create().update(R)};for(var x=0;x<y.length;++x){var A=y[x];_[A]=C(A)}return _};function M(T){if(T)w[0]=w[16]=w[1]=w[2]=w[3]=w[4]=w[5]=w[6]=w[7]=w[8]=w[9]=w[10]=w[11]=w[12]=w[13]=w[14]=w[15]=0,this.blocks=w,this.buffer8=k;else if(v){var _=new ArrayBuffer(68);this.buffer8=new Uint8Array(_),this.blocks=new Uint32Array(_)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}M.prototype.update=function(T,_){if(!this.finalized){for(var x,A=0,R,N=T.length,E=this.blocks,U=this.buffer8;A<N;){if(this.hashed&&(this.hashed=!1,E[0]=E[16],E[16]=E[1]=E[2]=E[3]=E[4]=E[5]=E[6]=E[7]=E[8]=E[9]=E[10]=E[11]=E[12]=E[13]=E[14]=E[15]=0),v)for(R=this.start;A<N&&R<64;++A)x=T.charCodeAt(A),_||x<128?U[R++]=x:x<2048?(U[R++]=192|x>>6,U[R++]=128|x&63):x<55296||x>=57344?(U[R++]=224|x>>12,U[R++]=128|x>>6&63,U[R++]=128|x&63):(x=65536+((x&1023)<<10|T.charCodeAt(++A)&1023),U[R++]=240|x>>18,U[R++]=128|x>>12&63,U[R++]=128|x>>6&63,U[R++]=128|x&63);else for(R=this.start;A<N&&R<64;++A)x=T.charCodeAt(A),_||x<128?E[R>>2]|=x<<g[R++&3]:x<2048?(E[R>>2]|=(192|x>>6)<<g[R++&3],E[R>>2]|=(128|x&63)<<g[R++&3]):x<55296||x>=57344?(E[R>>2]|=(224|x>>12)<<g[R++&3],E[R>>2]|=(128|x>>6&63)<<g[R++&3],E[R>>2]|=(128|x&63)<<g[R++&3]):(x=65536+((x&1023)<<10|T.charCodeAt(++A)&1023),E[R>>2]|=(240|x>>18)<<g[R++&3],E[R>>2]|=(128|x>>12&63)<<g[R++&3],E[R>>2]|=(128|x>>6&63)<<g[R++&3],E[R>>2]|=(128|x&63)<<g[R++&3]);this.lastByteIndex=R,this.bytes+=R-this.start,R>=64?(this.start=R-64,this.hash(),this.hashed=!0):this.start=R}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},M.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,_=this.lastByteIndex;T[_>>2]|=p[_&3],_>=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()}},M.prototype.hash=function(){var T,_,x,A,R,N,E=this.blocks;this.first?(T=E[0]-680876937,T=(T<<7|T>>>25)-271733879<<0,A=(-1732584194^T&2004318071)+E[1]-117830708,A=(A<<12|A>>>20)+T<<0,x=(-271733879^A&(T^-271733879))+E[2]-1126478375,x=(x<<17|x>>>15)+A<<0,_=(T^x&(A^T))+E[3]-1316259209,_=(_<<22|_>>>10)+x<<0):(T=this.h0,_=this.h1,x=this.h2,A=this.h3,T+=(A^_&(x^A))+E[0]-680876936,T=(T<<7|T>>>25)+_<<0,A+=(x^T&(_^x))+E[1]-389564586,A=(A<<12|A>>>20)+T<<0,x+=(_^A&(T^_))+E[2]+606105819,x=(x<<17|x>>>15)+A<<0,_+=(T^x&(A^T))+E[3]-1044525330,_=(_<<22|_>>>10)+x<<0),T+=(A^_&(x^A))+E[4]-176418897,T=(T<<7|T>>>25)+_<<0,A+=(x^T&(_^x))+E[5]+1200080426,A=(A<<12|A>>>20)+T<<0,x+=(_^A&(T^_))+E[6]-1473231341,x=(x<<17|x>>>15)+A<<0,_+=(T^x&(A^T))+E[7]-45705983,_=(_<<22|_>>>10)+x<<0,T+=(A^_&(x^A))+E[8]+1770035416,T=(T<<7|T>>>25)+_<<0,A+=(x^T&(_^x))+E[9]-1958414417,A=(A<<12|A>>>20)+T<<0,x+=(_^A&(T^_))+E[10]-42063,x=(x<<17|x>>>15)+A<<0,_+=(T^x&(A^T))+E[11]-1990404162,_=(_<<22|_>>>10)+x<<0,T+=(A^_&(x^A))+E[12]+1804603682,T=(T<<7|T>>>25)+_<<0,A+=(x^T&(_^x))+E[13]-40341101,A=(A<<12|A>>>20)+T<<0,x+=(_^A&(T^_))+E[14]-1502002290,x=(x<<17|x>>>15)+A<<0,_+=(T^x&(A^T))+E[15]+1236535329,_=(_<<22|_>>>10)+x<<0,T+=(x^A&(_^x))+E[1]-165796510,T=(T<<5|T>>>27)+_<<0,A+=(_^x&(T^_))+E[6]-1069501632,A=(A<<9|A>>>23)+T<<0,x+=(T^_&(A^T))+E[11]+643717713,x=(x<<14|x>>>18)+A<<0,_+=(A^T&(x^A))+E[0]-373897302,_=(_<<20|_>>>12)+x<<0,T+=(x^A&(_^x))+E[5]-701558691,T=(T<<5|T>>>27)+_<<0,A+=(_^x&(T^_))+E[10]+38016083,A=(A<<9|A>>>23)+T<<0,x+=(T^_&(A^T))+E[15]-660478335,x=(x<<14|x>>>18)+A<<0,_+=(A^T&(x^A))+E[4]-405537848,_=(_<<20|_>>>12)+x<<0,T+=(x^A&(_^x))+E[9]+568446438,T=(T<<5|T>>>27)+_<<0,A+=(_^x&(T^_))+E[14]-1019803690,A=(A<<9|A>>>23)+T<<0,x+=(T^_&(A^T))+E[3]-187363961,x=(x<<14|x>>>18)+A<<0,_+=(A^T&(x^A))+E[8]+1163531501,_=(_<<20|_>>>12)+x<<0,T+=(x^A&(_^x))+E[13]-1444681467,T=(T<<5|T>>>27)+_<<0,A+=(_^x&(T^_))+E[2]-51403784,A=(A<<9|A>>>23)+T<<0,x+=(T^_&(A^T))+E[7]+1735328473,x=(x<<14|x>>>18)+A<<0,_+=(A^T&(x^A))+E[12]-1926607734,_=(_<<20|_>>>12)+x<<0,R=_^x,T+=(R^A)+E[5]-378558,T=(T<<4|T>>>28)+_<<0,A+=(R^T)+E[8]-2022574463,A=(A<<11|A>>>21)+T<<0,N=A^T,x+=(N^_)+E[11]+1839030562,x=(x<<16|x>>>16)+A<<0,_+=(N^x)+E[14]-35309556,_=(_<<23|_>>>9)+x<<0,R=_^x,T+=(R^A)+E[1]-1530992060,T=(T<<4|T>>>28)+_<<0,A+=(R^T)+E[4]+1272893353,A=(A<<11|A>>>21)+T<<0,N=A^T,x+=(N^_)+E[7]-155497632,x=(x<<16|x>>>16)+A<<0,_+=(N^x)+E[10]-1094730640,_=(_<<23|_>>>9)+x<<0,R=_^x,T+=(R^A)+E[13]+681279174,T=(T<<4|T>>>28)+_<<0,A+=(R^T)+E[0]-358537222,A=(A<<11|A>>>21)+T<<0,N=A^T,x+=(N^_)+E[3]-722521979,x=(x<<16|x>>>16)+A<<0,_+=(N^x)+E[6]+76029189,_=(_<<23|_>>>9)+x<<0,R=_^x,T+=(R^A)+E[9]-640364487,T=(T<<4|T>>>28)+_<<0,A+=(R^T)+E[12]-421815835,A=(A<<11|A>>>21)+T<<0,N=A^T,x+=(N^_)+E[15]+530742520,x=(x<<16|x>>>16)+A<<0,_+=(N^x)+E[2]-995338651,_=(_<<23|_>>>9)+x<<0,T+=(x^(_|~A))+E[0]-198630844,T=(T<<6|T>>>26)+_<<0,A+=(_^(T|~x))+E[7]+1126891415,A=(A<<10|A>>>22)+T<<0,x+=(T^(A|~_))+E[14]-1416354905,x=(x<<15|x>>>17)+A<<0,_+=(A^(x|~T))+E[5]-57434055,_=(_<<21|_>>>11)+x<<0,T+=(x^(_|~A))+E[12]+1700485571,T=(T<<6|T>>>26)+_<<0,A+=(_^(T|~x))+E[3]-1894986606,A=(A<<10|A>>>22)+T<<0,x+=(T^(A|~_))+E[10]-1051523,x=(x<<15|x>>>17)+A<<0,_+=(A^(x|~T))+E[1]-2054922799,_=(_<<21|_>>>11)+x<<0,T+=(x^(_|~A))+E[8]+1873313359,T=(T<<6|T>>>26)+_<<0,A+=(_^(T|~x))+E[15]-30611744,A=(A<<10|A>>>22)+T<<0,x+=(T^(A|~_))+E[6]-1560198380,x=(x<<15|x>>>17)+A<<0,_+=(A^(x|~T))+E[13]+1309151649,_=(_<<21|_>>>11)+x<<0,T+=(x^(_|~A))+E[4]-145523070,T=(T<<6|T>>>26)+_<<0,A+=(_^(T|~x))+E[11]-1120210379,A=(A<<10|A>>>22)+T<<0,x+=(T^(A|~_))+E[2]+718787259,x=(x<<15|x>>>17)+A<<0,_+=(A^(x|~T))+E[9]-343485551,_=(_<<21|_>>>11)+x<<0,this.first?(this.h0=T+1732584193<<0,this.h1=_-271733879<<0,this.h2=x-1732584194<<0,this.h3=A+271733878<<0,this.first=!1):(this.h0=this.h0+T<<0,this.h1=this.h1+_<<0,this.h2=this.h2+x<<0,this.h3=this.h3+A<<0)},M.prototype.hex=function(){this.finalize();var T=this.h0,_=this.h1,x=this.h2,A=this.h3;return d[T>>4&15]+d[T&15]+d[T>>12&15]+d[T>>8&15]+d[T>>20&15]+d[T>>16&15]+d[T>>28&15]+d[T>>24&15]+d[_>>4&15]+d[_&15]+d[_>>12&15]+d[_>>8&15]+d[_>>20&15]+d[_>>16&15]+d[_>>28&15]+d[_>>24&15]+d[x>>4&15]+d[x&15]+d[x>>12&15]+d[x>>8&15]+d[x>>20&15]+d[x>>16&15]+d[x>>28&15]+d[x>>24&15]+d[A>>4&15]+d[A&15]+d[A>>12&15]+d[A>>8&15]+d[A>>20&15]+d[A>>16&15]+d[A>>28&15]+d[A>>24&15]},M.prototype.toString=M.prototype.hex,M.prototype.digest=function(T){if(T==="hex")return this.hex();this.finalize();var _=this.h0,x=this.h1,A=this.h2,R=this.h3,N=[_&255,_>>8&255,_>>16&255,_>>24&255,x&255,x>>8&255,x>>16&255,x>>24&255,A&255,A>>8&255,A>>16&255,A>>24&255,R&255,R>>8&255,R>>16&255,R>>24&255];return N},M.prototype.array=M.prototype.digest,M.prototype.arrayBuffer=function(){this.finalize();var T=new ArrayBuffer(16),_=new Uint32Array(T);return _[0]=this.h0,_[1]=this.h1,_[2]=this.h2,_[3]=this.h3,T},M.prototype.buffer=M.prototype.arrayBuffer,M.prototype.base64=function(){for(var T,_,x,A="",R=this.array(),N=0;N<15;)T=R[N++],_=R[N++],x=R[N++],A+=m[T>>>2]+m[(T<<4|_>>>4)&63]+m[(_<<2|x>>>6)&63]+m[x&63];return T=R[N],A+=m[T>>>2]+m[T<<4&63]+"==",A};var b=I();c?a.exports=b:(u.md5=b,h&&(o=(function(){return b}).call(b,i,b,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(h){switch(a(h)){case"string":return h;case"boolean":return h?"true":"false";case"number":return isFinite(h)?h:"";default:return""}},s=function(h,v,d,p){return v=v||"&",d=d||"=",h===null&&(h=void 0),a(h)==="object"?Object.keys(h).map(function(g){var y=encodeURIComponent(o(g))+d;return Array.isArray(h[g])?h[g].map(function(m){return y+encodeURIComponent(o(m))}).join(v):y+encodeURIComponent(o(h[g]))}).filter(Boolean).join(v):""},l=function(h,v,d){var p={},g=v.getAllResponseHeaders();return g&&g.length>0&&g.trim().split(`
  16. `).forEach(function(y){if(y){var m=y.indexOf(":"),w=y.substr(0,m).trim().toLowerCase(),k=y.substr(m+1).trim();p[w]=k}}),{error:h,statusCode:v.status,statusMessage:v.statusText,headers:p,body:d}},u=function(h,v){return!v&&v==="text"?h.responseText:h.response},f=function(h,v){var d=(h.method||"GET").toUpperCase(),p=h.url;if(h.qs){var g=s(h.qs);g&&(p+=(p.indexOf("?")===-1?"?":"&")+g)}var y=new XMLHttpRequest;if(y.open(d,p,!0),y.responseType=h.dataType||"text",h.xhrFields)for(var m in h.xhrFields)y[m]=h.xhrFields[m];var w=h.headers;if(w)for(var k in w)w.hasOwnProperty(k)&&k.toLowerCase()!=="content-length"&&k.toLowerCase()!=="user-agent"&&k.toLowerCase()!=="origin"&&k.toLowerCase()!=="host"&&y.setRequestHeader(k,w[k]);return h.onProgress&&y.upload&&(y.upload.onprogress=h.onProgress),h.onDownloadProgress&&(y.onprogress=h.onDownloadProgress),h.timeout&&(y.timeout=h.timeout),y.ontimeout=function(P){var C=new Error("timeout");v(l(C,y))},y.onload=function(){v(l(null,y,u(y,h.dataType)))},y.onerror=function(P){var C=u(y,h.dataType);if(C)v(l(null,y,C));else{var I=y.statusText;!I&&y.status===0&&(I=new Error("CORS blocked or network error")),v(l(I,y,C))}},y.send(h.body||""),y};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,h){const v=[];let d=h.exec(c);for(;d;){const p=[];p.startIndex=h.lastIndex-d[0].length;const g=d.length;for(let y=0;y<g;y++)p.push(d[y]);v.push(p),d=h.exec(c)}return v},f=function(c){const h=l.exec(c);return!(h===null||typeof h>"u")};n.isExist=function(c){return typeof c<"u"},n.isEmptyObject=function(c){return Object.keys(c).length===0},n.merge=function(c,h,v){if(h){const d=Object.keys(h),p=d.length;for(let g=0;g<p;g++)v==="strict"?c[d[g]]=[h[d[g]]]:c[d[g]]=h[d[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 M=[];let b=!1,T=!1;C[0]==="\uFEFF"&&(C=C.substr(1));for(let _=0;_<C.length;_++)if(C[_]==="<"&&C[_+1]==="?"){if(_+=2,_=l(C,_),_.err)return _}else if(C[_]==="<"){let x=_;if(_++,C[_]==="!"){_=u(C,_);continue}else{let A=!1;C[_]==="/"&&(A=!0,_++);let R="";for(;_<C.length&&C[_]!==">"&&C[_]!==" "&&C[_]!==" "&&C[_]!==`
  17. `&&C[_]!=="\r";_++)R+=C[_];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),_--),!w(R)){let U;return R.trim().length===0?U="Invalid space after '<'.":U="Tag '"+R+"' is an invalid name.",y("InvalidTag",U,k(C,_))}const N=h(C,_);if(N===!1)return y("InvalidAttr","Attributes for '"+R+"' have open quote.",k(C,_));let E=N.value;if(_=N.index,E[E.length-1]==="/"){const U=_-E.length;E=E.substring(0,E.length-1);const F=d(E,I);if(F===!0)b=!0;else return y(F.err.code,F.err.msg,k(C,U+F.err.line))}else if(A)if(N.tagClosed){if(E.trim().length>0)return y("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",k(C,x));if(M.length===0)return y("InvalidTag","Closing tag '"+R+"' has not been opened.",k(C,x));{const U=M.pop();if(R!==U.tagName){let F=k(C,U.tagStartPos);return y("InvalidTag","Expected closing tag '"+U.tagName+"' (opened in line "+F.line+", col "+F.col+") instead of closing tag '"+R+"'.",k(C,x))}M.length==0&&(T=!0)}}else return y("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",k(C,_));else{const U=d(E,I);if(U!==!0)return y(U.err.code,U.err.msg,k(C,_-E.length+U.err.line));if(T===!0)return y("InvalidXml","Multiple possible root nodes found.",k(C,_));I.unpairedTags.indexOf(R)!==-1||M.push({tagName:R,tagStartPos:x}),b=!0}for(_++;_<C.length;_++)if(C[_]==="<")if(C[_+1]==="!"){_++,_=u(C,_);continue}else if(C[_+1]==="?"){if(_=l(C,++_),_.err)return _}else break;else if(C[_]==="&"){const U=g(C,_);if(U==-1)return y("InvalidChar","char '&' is not expected.",k(C,_));_=U}else if(T===!0&&!s(C[_]))return y("InvalidXml","Extra text at the end",k(C,_));C[_]==="<"&&_--}}else{if(s(C[_]))continue;return y("InvalidChar","char '"+C[_]+"' is not expected.",k(C,_))}if(b){if(M.length==1)return y("InvalidTag","Unclosed tag '"+M[0].tagName+"'.",k(C,M[0].tagStartPos));if(M.length>0)return y("InvalidXml","Invalid '"+JSON.stringify(M.map(_=>_.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return y("InvalidXml","Start tag expected.",1);return!0};function s(C){return C===" "||C===" "||C===`
  18. `||C==="\r"}function l(C,I){const M=I;for(;I<C.length;I++)if(C[I]=="?"||C[I]==" "){const b=C.substr(M,I-M);if(I>5&&b==="xml")return y("InvalidXml","XML declaration allowed only at the start of the document.",k(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 M=1;for(I+=8;I<C.length;I++)if(C[I]==="<")M++;else if(C[I]===">"&&(M--,M===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 h(C,I){let M="",b="",T=!1;for(;I<C.length;I++){if(C[I]===f||C[I]===c)b===""?b=C[I]:b!==C[I]||(b="");else if(C[I]===">"&&b===""){T=!0;break}M+=C[I]}return b!==""?!1:{value:M,index:I,tagClosed:T}}const v=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function d(C,I){const M=a.getAllMatches(C,v),b={};for(let T=0;T<M.length;T++){if(M[T][1].length===0)return y("InvalidAttr","Attribute '"+M[T][2]+"' has no space in starting.",P(M[T]));if(M[T][3]!==void 0&&M[T][4]===void 0)return y("InvalidAttr","Attribute '"+M[T][2]+"' is without value.",P(M[T]));if(M[T][3]===void 0&&!I.allowBooleanAttributes)return y("InvalidAttr","boolean attribute '"+M[T][2]+"' is not allowed.",P(M[T]));const _=M[T][2];if(!m(_))return y("InvalidAttr","Attribute '"+_+"' is an invalid name.",P(M[T]));if(!b.hasOwnProperty(_))b[_]=1;else return y("InvalidAttr","Attribute '"+_+"' is repeated.",P(M[T]))}return!0}function p(C,I){let M=/\d/;for(C[I]==="x"&&(I++,M=/[\da-fA-F]/);I<C.length;I++){if(C[I]===";")return I;if(!C[I].match(M))break}return-1}function g(C,I){if(I++,C[I]===";")return-1;if(C[I]==="#")return I++,p(C,I);let M=0;for(;I<C.length;I++,M++)if(!(C[I].match(/\w/)&&M<20)){if(C[I]===";")break;return-1}return I}function y(C,I,M){return{err:{code:C,msg:I,line:M.line||M,col:M.col}}}function m(C){return a.isName(C)}function w(C){return a.isName(C)}function k(C,I){const M=C.substring(0,I).split(/\r?\n/);return{line:M.length,col:M[M.length-1].length+1}}function P(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,h){return h},attributeValueProcessor:function(c,h){return h},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=`>
  19. `,this.newLine=`
  20. `):(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,h){let v="",d="";for(let p in c)if(Object.prototype.hasOwnProperty.call(c,p))if(typeof c[p]>"u")this.isAttribute(p)&&(d+="");else if(c[p]===null)this.isAttribute(p)?d+="":p[0]==="?"?d+=this.indentate(h)+"<"+p+"?"+this.tagEndChar:d+=this.indentate(h)+"<"+p+"/"+this.tagEndChar;else if(c[p]instanceof Date)d+=this.buildTextValNode(c[p],p,"",h);else if(typeof c[p]!="object"){const g=this.isAttribute(p);if(g)v+=this.buildAttrPairStr(g,""+c[p]);else if(p===this.options.textNodeName){let y=this.options.tagValueProcessor(p,""+c[p]);d+=this.replaceEntitiesValue(y)}else d+=this.buildTextValNode(c[p],p,"",h)}else if(Array.isArray(c[p])){const g=c[p].length;let y="";for(let m=0;m<g;m++){const w=c[p][m];typeof w>"u"||(w===null?p[0]==="?"?d+=this.indentate(h)+"<"+p+"?"+this.tagEndChar:d+=this.indentate(h)+"<"+p+"/"+this.tagEndChar:typeof w=="object"?this.options.oneListGroup?y+=this.j2x(w,h+1).val:y+=this.processTextOrObjNode(w,p,h):y+=this.buildTextValNode(w,p,"",h))}this.options.oneListGroup&&(y=this.buildObjectNode(y,p,"",h)),d+=y}else if(this.options.attributesGroupName&&p===this.options.attributesGroupName){const g=Object.keys(c[p]),y=g.length;for(let m=0;m<y;m++)v+=this.buildAttrPairStr(g[m],""+c[p][g[m]])}else d+=this.processTextOrObjNode(c[p],p,h);return{attrStr:v,val:d}},s.prototype.buildAttrPairStr=function(c,h){return h=this.options.attributeValueProcessor(c,""+h),h=this.replaceEntitiesValue(h),this.options.suppressBooleanAttributes&&h==="true"?" "+c:" "+c+'="'+h+'"'};function l(c,h,v){const d=this.j2x(c,v+1);return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],h,d.attrStr,v):this.buildObjectNode(d.val,h,d.attrStr,v)}s.prototype.buildObjectNode=function(c,h,v,d){if(c==="")return h[0]==="?"?this.indentate(d)+"<"+h+v+"?"+this.tagEndChar:this.indentate(d)+"<"+h+v+this.closeTag(h)+this.tagEndChar;{let p="</"+h+this.tagEndChar,g="";return h[0]==="?"&&(g="?",p=""),(v||v==="")&&c.indexOf("<")===-1?this.indentate(d)+"<"+h+v+g+">"+c+p:this.options.commentPropName!==!1&&h===this.options.commentPropName&&g.length===0?this.indentate(d)+`<!--${c}-->`+this.newLine:this.indentate(d)+"<"+h+v+g+this.tagEndChar+c+this.indentate(d)+p}},s.prototype.closeTag=function(c){let h="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(h="/"):this.options.suppressEmptyNode?h="/":h=`></${c}`,h},s.prototype.buildTextValNode=function(c,h,v,d){if(this.options.cdataPropName!==!1&&h===this.options.cdataPropName)return this.indentate(d)+`<![CDATA[${c}]]>`+this.newLine;if(this.options.commentPropName!==!1&&h===this.options.commentPropName)return this.indentate(d)+`<!--${c}-->`+this.newLine;if(h[0]==="?")return this.indentate(d)+"<"+h+v+"?"+this.tagEndChar;{let p=this.options.tagValueProcessor(h,c);return p=this.replaceEntitiesValue(p),p===""?this.indentate(d)+"<"+h+v+this.closeTag(h)+this.tagEndChar:this.indentate(d)+"<"+h+v+">"+p+"</"+h+this.tagEndChar}},s.prototype.replaceEntitiesValue=function(c){if(c&&c.length>0&&this.options.processEntities)for(let h=0;h<this.options.entities.length;h++){const v=this.options.entities[h];c=c.replace(v.regex,v.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=`
  21. `;function a(c,h){let v="";return h.format&&h.indentBy.length>0&&(v=i),o(c,h,"",v)}function o(c,h,v,d){let p="",g=!1;for(let y=0;y<c.length;y++){const m=c[y],w=s(m);if(w===void 0)continue;let k="";if(v.length===0?k=w:k=`${v}.${w}`,w===h.textNodeName){let b=m[w];u(k,h)||(b=h.tagValueProcessor(w,b),b=f(b,h)),g&&(p+=d),p+=b,g=!1;continue}else if(w===h.cdataPropName){g&&(p+=d),p+=`<![CDATA[${m[w][0][h.textNodeName]}]]>`,g=!1;continue}else if(w===h.commentPropName){p+=d+`<!--${m[w][0][h.textNodeName]}-->`,g=!0;continue}else if(w[0]==="?"){const b=l(m[":@"],h),T=w==="?xml"?"":d;let _=m[w][0][h.textNodeName];_=_.length!==0?" "+_:"",p+=T+`<${w}${_}${b}?>`,g=!0;continue}let P=d;P!==""&&(P+=h.indentBy);const C=l(m[":@"],h),I=d+`<${w}${C}`,M=o(m[w],h,k,P);h.unpairedTags.indexOf(w)!==-1?h.suppressUnpairedNode?p+=I+">":p+=I+"/>":(!M||M.length===0)&&h.suppressEmptyNode?p+=I+"/>":M&&M.endsWith(">")?p+=I+`>${M}${d}</${w}>`:(p+=I+">",M&&d!==""&&(M.includes("/>")||M.includes("</"))?p+=d+h.indentBy+M+d:p+=M,p+=`</${w}>`),g=!0}return p}function s(c){const h=Object.keys(c);for(let v=0;v<h.length;v++){const d=h[v];if(c.hasOwnProperty(d)&&d!==":@")return d}}function l(c,h){let v="";if(c&&!h.ignoreAttributes)for(let d in c){if(!c.hasOwnProperty(d))continue;let p=h.attributeValueProcessor(d,c[d]);p=f(p,h),p===!0&&h.suppressBooleanAttributes?v+=` ${d.substr(h.attributeNamePrefix.length)}`:v+=` ${d.substr(h.attributeNamePrefix.length)}="${p}"`}return v}function u(c,h){c=c.substr(0,c.length-h.textNodeName.length-1);let v=c.substr(c.lastIndexOf(".")+1);for(let d in h.stopNodes)if(h.stopNodes[d]===c||h.stopNodes[d]==="*."+v)return!0;return!1}function f(c,h){if(c&&c.length>0&&h.processEntities)for(let v=0;v<h.entities.length;v++){const d=h.entities[v];c=c.replace(d.regex,d.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(d,p){const g={};if(d[p+3]==="O"&&d[p+4]==="C"&&d[p+5]==="T"&&d[p+6]==="Y"&&d[p+7]==="P"&&d[p+8]==="E"){p=p+9;let y=1,m=!1,w=!1,k="";for(;p<d.length;p++)if(d[p]==="<"&&!w){if(m&&u(d,p))p+=7,[entityName,val,p]=s(d,p+1),val.indexOf("&")===-1&&(g[v(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(m&&f(d,p))p+=8;else if(m&&c(d,p))p+=8;else if(m&&h(d,p))p+=9;else if(l)w=!0;else throw new Error("Invalid DOCTYPE");y++,k=""}else if(d[p]===">"){if(w?d[p-1]==="-"&&d[p-2]==="-"&&(w=!1,y--):y--,y===0)break}else d[p]==="["?m=!0:k+=d[p];if(y!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:g,i:p}}function s(d,p){let g="";for(;p<d.length&&d[p]!=="'"&&d[p]!=='"';p++)g+=d[p];if(g=g.trim(),g.indexOf(" ")!==-1)throw new Error("External entites are not supported");const y=d[p++];let m="";for(;p<d.length&&d[p]!==y;p++)m+=d[p];return[g,m,p]}function l(d,p){return d[p+1]==="!"&&d[p+2]==="-"&&d[p+3]==="-"}function u(d,p){return d[p+1]==="!"&&d[p+2]==="E"&&d[p+3]==="N"&&d[p+4]==="T"&&d[p+5]==="I"&&d[p+6]==="T"&&d[p+7]==="Y"}function f(d,p){return d[p+1]==="!"&&d[p+2]==="E"&&d[p+3]==="L"&&d[p+4]==="E"&&d[p+5]==="M"&&d[p+6]==="E"&&d[p+7]==="N"&&d[p+8]==="T"}function c(d,p){return d[p+1]==="!"&&d[p+2]==="A"&&d[p+3]==="T"&&d[p+4]==="T"&&d[p+5]==="L"&&d[p+6]==="I"&&d[p+7]==="S"&&d[p+8]==="T"}function h(d,p){return d[p+1]==="!"&&d[p+2]==="N"&&d[p+3]==="O"&&d[p+4]==="T"&&d[p+5]==="A"&&d[p+6]==="T"&&d[p+7]==="I"&&d[p+8]==="O"&&d[p+9]==="N"}function v(d){if(a.isName(d))return d;throw new Error(`Invalid entity name ${d}`)}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(x,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(_,x)=>String.fromCharCode(Number.parseInt(x,16))}},this.addExternalEntities=f,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=h,this.buildAttributesMap=d,this.isItStopNode=w,this.replaceEntitiesValue=y,this.readStopNodeData=I,this.saveTextToParentTag=m,this.addChild=g}}function f(b){const T=Object.keys(b);for(let _=0;_<T.length;_++){const x=T[_];this.lastEntities[x]={regex:new RegExp("&"+x+";","g"),val:b[x]}}}function c(b,T,_,x,A,R,N){if(b!==void 0&&(this.options.trimValues&&!x&&(b=b.trim()),b.length>0)){N||(b=this.replaceEntitiesValue(b));const E=this.options.tagValueProcessor(T,b,_,A,R);return E==null?b:typeof E!=typeof b||E!==b?E:this.options.trimValues?M(b,this.options.parseTagValue,this.options.numberParseOptions):b.trim()===b?M(b,this.options.parseTagValue,this.options.numberParseOptions):b}}function h(b){if(this.options.removeNSPrefix){const T=b.split(":"),_=b.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(b=_+T[1])}return b}const v=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(b,T,_){if(!this.options.ignoreAttributes&&typeof b=="string"){const x=a.getAllMatches(b,v),A=x.length,R={};for(let N=0;N<A;N++){const E=this.resolveNameSpace(x[N][1]);let U=x[N][4],F=this.options.attributeNamePrefix+E;if(E.length)if(this.options.transformAttributeName&&(F=this.options.transformAttributeName(F)),F==="__proto__"&&(F="#__proto__"),U!==void 0){this.options.trimValues&&(U=U.trim()),U=this.replaceEntitiesValue(U);const B=this.options.attributeValueProcessor(E,U,T);B==null?R[F]=U:typeof B!=typeof U||B!==U?R[F]=B:R[F]=M(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(R[F]=!0)}if(!Object.keys(R).length)return;if(this.options.attributesGroupName){const N={};return N[this.options.attributesGroupName]=R,N}return R}}const p=function(b){b=b.replace(/\r\n?/g,`
  22. `);const T=new o("!xml");let _=T,x="",A="";for(let R=0;R<b.length;R++)if(b[R]==="<")if(b[R+1]==="/"){const E=P(b,">",R,"Closing Tag is not closed.");let U=b.substring(R+2,E).trim();if(this.options.removeNSPrefix){const X=U.indexOf(":");X!==-1&&(U=U.substr(X+1))}this.options.transformTagName&&(U=this.options.transformTagName(U)),_&&(x=this.saveTextToParentTag(x,_,A));const F=A.substring(A.lastIndexOf(".")+1);if(U&&this.options.unpairedTags.indexOf(U)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${U}>`);let B=0;F&&this.options.unpairedTags.indexOf(F)!==-1?(B=A.lastIndexOf(".",A.lastIndexOf(".")-1),this.tagsNodeStack.pop()):B=A.lastIndexOf("."),A=A.substring(0,B),_=this.tagsNodeStack.pop(),x="",R=E}else if(b[R+1]==="?"){let E=C(b,R,!1,"?>");if(!E)throw new Error("Pi Tag is not closed.");if(x=this.saveTextToParentTag(x,_,A),!(this.options.ignoreDeclaration&&E.tagName==="?xml"||this.options.ignorePiTags)){const U=new o(E.tagName);U.add(this.options.textNodeName,""),E.tagName!==E.tagExp&&E.attrExpPresent&&(U[":@"]=this.buildAttributesMap(E.tagExp,A,E.tagName)),this.addChild(_,U,A)}R=E.closeIndex+1}else if(b.substr(R+1,3)==="!--"){const E=P(b,"-->",R+4,"Comment is not closed.");if(this.options.commentPropName){const U=b.substring(R+4,E-2);x=this.saveTextToParentTag(x,_,A),_.add(this.options.commentPropName,[{[this.options.textNodeName]:U}])}R=E}else if(b.substr(R+1,2)==="!D"){const E=s(b,R);this.docTypeEntities=E.entities,R=E.i}else if(b.substr(R+1,2)==="!["){const E=P(b,"]]>",R,"CDATA is not closed.")-2,U=b.substring(R+9,E);x=this.saveTextToParentTag(x,_,A);let F=this.parseTextData(U,_.tagname,A,!0,!1,!0,!0);F==null&&(F=""),this.options.cdataPropName?_.add(this.options.cdataPropName,[{[this.options.textNodeName]:U}]):_.add(this.options.textNodeName,F),R=E+2}else{let E=C(b,R,this.options.removeNSPrefix),U=E.tagName;const F=E.rawTagName;let B=E.tagExp,X=E.attrExpPresent,Z=E.closeIndex;this.options.transformTagName&&(U=this.options.transformTagName(U)),_&&x&&_.tagname!=="!xml"&&(x=this.saveTextToParentTag(x,_,A,!1));const q=_;if(q&&this.options.unpairedTags.indexOf(q.tagname)!==-1&&(_=this.tagsNodeStack.pop(),A=A.substring(0,A.lastIndexOf("."))),U!==T.tagname&&(A+=A?"."+U:U),this.isItStopNode(this.options.stopNodes,A,U)){let se="";if(B.length>0&&B.lastIndexOf("/")===B.length-1)U[U.length-1]==="/"?(U=U.substr(0,U.length-1),A=A.substr(0,A.length-1),B=U):B=B.substr(0,B.length-1),R=E.closeIndex;else if(this.options.unpairedTags.indexOf(U)!==-1)R=E.closeIndex;else{const Q=this.readStopNodeData(b,F,Z+1);if(!Q)throw new Error(`Unexpected end of ${F}`);R=Q.i,se=Q.tagContent}const ce=new o(U);U!==B&&X&&(ce[":@"]=this.buildAttributesMap(B,A,U)),se&&(se=this.parseTextData(se,U,A,!0,X,!0,!0)),A=A.substr(0,A.lastIndexOf(".")),ce.add(this.options.textNodeName,se),this.addChild(_,ce,A)}else{if(B.length>0&&B.lastIndexOf("/")===B.length-1){U[U.length-1]==="/"?(U=U.substr(0,U.length-1),A=A.substr(0,A.length-1),B=U):B=B.substr(0,B.length-1),this.options.transformTagName&&(U=this.options.transformTagName(U));const se=new o(U);U!==B&&X&&(se[":@"]=this.buildAttributesMap(B,A,U)),this.addChild(_,se,A),A=A.substr(0,A.lastIndexOf("."))}else{const se=new o(U);this.tagsNodeStack.push(_),U!==B&&X&&(se[":@"]=this.buildAttributesMap(B,A,U)),this.addChild(_,se,A),_=se}x="",R=Z}}else x+=b[R];return T.child};function g(b,T,_){const x=this.options.updateTag(T.tagname,_,T[":@"]);x===!1||(typeof x=="string"&&(T.tagname=x),b.addChild(T))}const y=function(b){if(this.options.processEntities){for(let T in this.docTypeEntities){const _=this.docTypeEntities[T];b=b.replace(_.regx,_.val)}for(let T in this.lastEntities){const _=this.lastEntities[T];b=b.replace(_.regex,_.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){const _=this.htmlEntities[T];b=b.replace(_.regex,_.val)}b=b.replace(this.ampEntity.regex,this.ampEntity.val)}return b};function m(b,T,_,x){return b&&(x===void 0&&(x=Object.keys(T.child).length===0),b=this.parseTextData(b,T.tagname,_,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,x),b!==void 0&&b!==""&&T.add(this.options.textNodeName,b),b=""),b}function w(b,T,_){const x="*."+_;for(const A in b){const R=b[A];if(x===R||T===R)return!0}return!1}function k(b,T,_=">"){let x,A="";for(let R=T;R<b.length;R++){let N=b[R];if(x)N===x&&(x="");else if(N==='"'||N==="'")x=N;else if(N===_[0])if(_[1]){if(b[R+1]===_[1])return{data:A,index:R}}else return{data:A,index:R};else N===" "&&(N=" ");A+=N}}function P(b,T,_,x){const A=b.indexOf(T,_);if(A===-1)throw new Error(x);return A+T.length-1}function C(b,T,_,x=">"){const A=k(b,T+1,x);if(!A)return;let R=A.data;const N=A.index,E=R.search(/\s/);let U=R,F=!0;E!==-1&&(U=R.substring(0,E),R=R.substring(E+1).trimStart());const B=U;if(_){const X=U.indexOf(":");X!==-1&&(U=U.substr(X+1),F=U!==A.data.substr(X+1))}return{tagName:U,tagExp:R,closeIndex:N,attrExpPresent:F,rawTagName:B}}function I(b,T,_){const x=_;let A=1;for(;_<b.length;_++)if(b[_]==="<")if(b[_+1]==="/"){const R=P(b,">",_,`${T} is not closed`);if(b.substring(_+2,R).trim()===T&&(A--,A===0))return{tagContent:b.substring(x,_),i:R};_=R}else if(b[_+1]==="?")_=P(b,"?>",_+1,"StopNode is not closed.");else if(b.substr(_+1,3)==="!--")_=P(b,"-->",_+3,"StopNode is not closed.");else if(b.substr(_+1,2)==="![")_=P(b,"]]>",_,"StopNode is not closed.")-2;else{const R=C(b,_,">");R&&((R&&R.tagName)===T&&R.tagExp[R.tagExp.length-1]!=="/"&&A++,_=R.closeIndex)}}function M(b,T,_){if(T&&typeof b=="string"){const x=b.trim();return x==="true"?!0:x==="false"?!1:l(b,_)}else return a.isExist(b)?b:""}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,h){if(typeof c!="string")if(c.toString)c=c.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(h){h===!0&&(h={});const p=l.validate(c,h);if(p!==!0)throw Error(`${p.err.msg}:${p.err.line}:${p.err.col}`)}const v=new o(this.options);v.addExternalEntities(this.externalEntities);const d=v.parseXml(c);return this.options.preserveOrder||d===void 0?d:s(d,this.options)}addEntity(c,h){if(h.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(h==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[c]=h}}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,h){let v;const d={};for(let p=0;p<f.length;p++){const g=f[p],y=s(g);let m="";if(h===void 0?m=y:m=h+"."+y,y===c.textNodeName)v===void 0?v=g[y]:v+=""+g[y];else{if(y===void 0)continue;if(g[y]){let w=o(g[y],c,m);const k=u(w,c);g[":@"]?l(w,g[":@"],m,c):Object.keys(w).length===1&&w[c.textNodeName]!==void 0&&!c.alwaysCreateTextNode?w=w[c.textNodeName]:Object.keys(w).length===0&&(c.alwaysCreateTextNode?w[c.textNodeName]="":w=""),d[y]!==void 0&&d.hasOwnProperty(y)?(Array.isArray(d[y])||(d[y]=[d[y]]),d[y].push(w)):c.isArray(y,m,k)?d[y]=[w]:d[y]=w}}}return typeof v=="string"?v.length>0&&(d[c.textNodeName]=v):v!==void 0&&(d[c.textNodeName]=v),d}function s(f){const c=Object.keys(f);for(let h=0;h<c.length;h++){const v=c[h];if(v!==":@")return v}}function l(f,c,h,v){if(c){const d=Object.keys(c),p=d.length;for(let g=0;g<p;g++){const y=d[g];v.isArray(y,h+"."+y,!0,!0)?f[y]=[c[y]]:f[y]=c[y]}}}function u(f,c){const{textNodeName:h}=c,v=Object.keys(f).length;return!!(v===0||v===1&&(f[h]||typeof f[h]=="boolean"||f[h]===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(w){if(a===setTimeout)return setTimeout(w,0);if((a===s||!a)&&setTimeout)return a=setTimeout,setTimeout(w,0);try{return a(w,0)}catch{try{return a.call(null,w,0)}catch{return a.call(this,w,0)}}}function f(w){if(o===clearTimeout)return clearTimeout(w);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(w);try{return o(w)}catch{try{return o.call(null,w)}catch{return o.call(this,w)}}}var c=[],h=!1,v,d=-1;function p(){!h||!v||(h=!1,v.length?c=v.concat(c):d=-1,c.length&&g())}function g(){if(!h){var w=u(p);h=!0;for(var k=c.length;k;){for(v=c,c=[];++d<k;)v&&v[d].run();d=-1,k=c.length}v=null,h=!1,f(w)}}i.nextTick=function(w){var k=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)k[P-1]=arguments[P];c.push(new y(w,k)),c.length===1&&!h&&u(g)};function y(w,k){this.fun=w,this.array=k}y.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={};function m(){}i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){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 h=a.exec(c);if(h){const v=h[1],d=h[2];let p=l(h[3]);const g=h[4]||h[6];if(!f.leadingZeros&&d.length>0&&v&&c[2]!==".")return u;if(!f.leadingZeros&&d.length>0&&!v&&c[1]!==".")return u;{const y=Number(c),m=""+y;return m.search(/[eE]/)!==-1||g?f.eNotation?y:u:c.indexOf(".")!==-1?m==="0"&&p===""||m===p||v&&m==="-"+p?y:u:d?p===m||v+p===m?y:u:c===m||c===v+m?y: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(b,T){var _=this,x=new l,A=b.TaskId,R=b.Bucket,N=b.Region,E=b.Key,U=b.Body,F=b.ChunkSize||b.SliceSize||_.options.ChunkSize,B=b.AsyncLimit,X=b.StorageClass,Z=b.ServerSideEncryption,q,se,ce=b.onHashProgress,Q=b.tracker;Q&&Q.setParams({chunkSize:F}),x.on("error",function(J){if(_._isRunningTask(A))return b.UploadData.UploadId&&o.removeUsing(b.UploadData.UploadId),J.UploadId=b.UploadData.UploadId||"",T(J)}),x.on("upload_complete",function(J){var ee=u.extend({UploadId:b.UploadData.UploadId||""},J);T(null,ee)}),x.on("upload_slice_complete",function(J){var ee={};u.each(b.Headers,function(ue,fe){var he=fe.toLowerCase();(he.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(he))&&(ee[fe]=ue)}),y.call(_,{Bucket:R,Region:N,Key:E,UploadId:J.UploadId,SliceList:J.SliceList,Headers:ee,tracker:Q},function(ue,fe){if(_._isRunningTask(A)){if(o.removeUsing(J.UploadId),ue)return se(null,!0),x.emit("error",ue);o.removeUploadId.call(_,J.UploadId),se({loaded:q,total:q},!0),x.emit("upload_complete",fe)}})}),x.on("get_upload_data_finish",function(J){var ee=o.getFileId(U,b.ChunkSize,R,E);ee&&o.saveUploadId.call(_,ee,J.UploadId,_.options.UploadIdCacheLimit),o.setUsing(J.UploadId),se(null,!0),p.call(_,{TaskId:A,Bucket:R,Region:N,Key:E,Body:U,FileSize:q,SliceSize:F,AsyncLimit:B,ServerSideEncryption:Z,UploadData:J,Headers:b.Headers,onProgress:se,tracker:Q},function(ue,fe){if(_._isRunningTask(A)){if(ue)return se(null,!0),x.emit("error",ue);x.emit("upload_slice_complete",fe)}})}),x.on("get_file_size_finish",function(){if(se=u.throttleOnProgress.call(_,q,b.onProgress),b.UploadData.UploadId)x.emit("get_upload_data_finish",b.UploadData);else{var J=u.extend({TaskId:A,Bucket:R,Region:N,Key:E,Headers:b.Headers,StorageClass:X,Body:U,FileSize:q,SliceSize:F,onHashProgress:ce,tracker:Q},b);h.call(_,J,function(ee,ue){if(_._isRunningTask(A)){if(ee)return x.emit("error",ee);b.UploadData.UploadId=ue.UploadId,b.UploadData.PartList=ue.PartList,x.emit("get_upload_data_finish",b.UploadData)}})}}),q=b.ContentLength,delete b.ContentLength,!b.Headers&&(b.Headers={}),u.each(b.Headers,function(J,ee){ee.toLowerCase()==="content-length"&&delete b.Headers[ee]}),function(){for(var J=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],ee=1024*1024,ue=0;ue<J.length&&(ee=J[ue]*1024*1024,!(q/ee<=_.options.MaxPartNumber));ue++);b.ChunkSize=b.SliceSize=F=Math.max(F,ee)}(),q===0?(b.Body="",b.ContentLength=0,b.SkipTask=!0,_.putObject(b,T)):x.emit("get_file_size_finish")}function h(b,T){var _=b.TaskId,x=b.Bucket,A=b.Region,R=b.Key,N=b.StorageClass,E=this,U={},F=b.FileSize,B=b.SliceSize,X=Math.ceil(F/B),Z=0,q=u.throttleOnProgress.call(E,F,b.onHashProgress),se=function(ee,ue){var fe=B*(ee-1),he=Math.min(fe+B,F),te=he-fe;U[ee]?ue(null,{PartNumber:ee,ETag:U[ee],Size:te}):u.fileSlice(b.Body,fe,he,!1,function(ie){u.getFileMd5(ie,function(Ae,ne){if(Ae)return ue(u.error(Ae));var le='"'+ne+'"';U[ee]=le,Z+=te,q({loaded:Z,total:F}),ue(null,{PartNumber:ee,ETag:le,Size:te})})})},ce=function(ee,ue){var fe=ee.length;if(fe===0)return ue(null,!0);if(fe>X)return ue(null,!1);if(fe>1){var he=Math.max(ee[0].Size,ee[1].Size);if(he!==B)return ue(null,!1)}var te=function ie(Ae){if(Ae<fe){var ne=ee[Ae];se(ne.PartNumber,function(le,we){we&&we.ETag===ne.ETag&&we.Size===ne.Size?ie(Ae+1):ue(null,!1)})}else ue(null,!0)};te(0)},Q=new l;Q.on("error",function(J){if(E._isRunningTask(_))return T(J)}),Q.on("upload_id_available",function(J){var ee={},ue=[];u.each(J.PartList,function(te){ee[te.PartNumber]=te});for(var fe=1;fe<=X;fe++){var he=ee[fe];he?(he.PartNumber=fe,he.Uploaded=!0):he={PartNumber:fe,ETag:null,Uploaded:!1},ue.push(he)}J.PartList=ue,T(null,J)}),Q.on("no_available_upload_id",function(){if(E._isRunningTask(_)){var J=u.extend({Bucket:x,Region:A,Key:R,Query:u.clone(b.Query),StorageClass:N,Body:b.Body,calledBySdk:"sliceUploadFile",tracker:b.tracker},b),ee=u.clone(b.Headers);delete ee["x-cos-mime-limit"],J.Headers=ee,E.multipartInit(J,function(ue,fe){if(E._isRunningTask(_)){if(ue)return Q.emit("error",ue);var he=fe.UploadId;if(!he)return T(u.error(new Error("no such upload id")));Q.emit("upload_id_available",{UploadId:he,PartList:[]})}})}}),Q.on("has_and_check_upload_id",function(J){J=J.reverse(),s.eachLimit(J,1,function(ee,ue){if(E._isRunningTask(_)){if(o.using[ee]){ue();return}d.call(E,{Bucket:x,Region:A,Key:R,UploadId:ee,tracker:b.tracker},function(fe,he){if(E._isRunningTask(_)){if(fe)return o.removeUsing(ee),Q.emit("error",fe);var te=he.PartList;te.forEach(function(ie){ie.PartNumber*=1,ie.Size*=1,ie.ETag=ie.ETag||""}),ce(te,function(ie,Ae){if(E._isRunningTask(_)){if(ie)return Q.emit("error",ie);Ae?ue({UploadId:ee,PartList:te}):ue()}})}})}},function(ee){E._isRunningTask(_)&&(q(null,!0),ee&&ee.UploadId?Q.emit("upload_id_available",ee):Q.emit("no_available_upload_id"))})}),Q.on("seek_local_avail_upload_id",function(J){var ee=o.getFileId(b.Body,b.ChunkSize,x,R),ue=o.getUploadIdList.call(E,ee);if(!ee||!ue){Q.emit("has_and_check_upload_id",J);return}var fe=function he(te){if(te>=ue.length){Q.emit("has_and_check_upload_id",J);return}var ie=ue[te];if(!u.isInArray(J,ie)){o.removeUploadId.call(E,ie),he(te+1);return}if(o.using[ie]){he(te+1);return}d.call(E,{Bucket:x,Region:A,Key:R,UploadId:ie,tracker:b.tracker},function(Ae,ne){E._isRunningTask(_)&&(Ae?(o.removeUploadId.call(E,ie),he(te+1)):Q.emit("upload_id_available",{UploadId:ie,PartList:ne.PartList}))})};fe(0)}),Q.on("get_remote_upload_id_list",function(){v.call(E,{Bucket:x,Region:A,Key:R,tracker:b.tracker},function(J,ee){if(E._isRunningTask(_)){if(J)return Q.emit("error",J);var ue=u.filter(ee.UploadList,function(te){return te.Key===R&&(!N||te.StorageClass.toUpperCase()===N.toUpperCase())}).reverse().map(function(te){return te.UploadId||te.UploadID});if(ue.length)Q.emit("seek_local_avail_upload_id",ue);else{var fe=o.getFileId(b.Body,b.ChunkSize,x,R),he;fe&&(he=o.getUploadIdList.call(E,fe))&&u.each(he,function(te){o.removeUploadId.call(E,te)}),Q.emit("no_available_upload_id")}}})}),Q.emit("get_remote_upload_id_list")}function v(b,T){var _=this,x=[],A={Bucket:b.Bucket,Region:b.Region,Prefix:b.Key,calledBySdk:b.calledBySdk||"sliceUploadFile",tracker:b.tracker},R=function N(){_.multipartList(A,function(E,U){if(E)return T(E);x.push.apply(x,U.Upload||[]),U.IsTruncated==="true"?(A.KeyMarker=U.NextKeyMarker,A.UploadIdMarker=U.NextUploadIdMarker,N()):T(null,{UploadList:x})})};R()}function d(b,T){var _=this,x=[],A={Bucket:b.Bucket,Region:b.Region,Key:b.Key,UploadId:b.UploadId,calledBySdk:"sliceUploadFile",tracker:b.tracker},R=function N(){_.multipartListPart(A,function(E,U){if(E)return T(E);x.push.apply(x,U.Part||[]),U.IsTruncated==="true"?(A.PartNumberMarker=U.NextPartNumberMarker,N()):T(null,{PartList:x})})};R()}function p(b,T){var _=this,x=b.TaskId,A=b.Bucket,R=b.Region,N=b.Key,E=b.UploadData,U=b.FileSize,F=b.SliceSize,B=Math.min(b.AsyncLimit||_.options.ChunkParallelLimit||1,256),X=b.Body,Z=Math.ceil(U/F),q=0,se=b.ServerSideEncryption,ce=b.Headers,Q=u.filter(E.PartList,function(ee){return ee.Uploaded&&(q+=ee.PartNumber>=Z&&U%F||F),!ee.Uploaded}),J=b.onProgress;s.eachLimit(Q,B,function(ee,ue){if(_._isRunningTask(x)){var fe=ee.PartNumber,he=Math.min(U,ee.PartNumber*F)-(ee.PartNumber-1)*F,te=0;g.call(_,{TaskId:x,Bucket:A,Region:R,Key:N,SliceSize:F,FileSize:U,PartNumber:fe,ServerSideEncryption:se,Body:X,UploadData:E,Headers:ce,onProgress:function(Ae){q+=Ae.loaded-te,te=Ae.loaded,J({loaded:q,total:U})},tracker:b.tracker},function(ie,Ae){_._isRunningTask(x)&&(!ie&&!Ae.ETag&&(ie='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),ie?q-=te:(q+=he-te,ee.ETag=Ae.ETag),J({loaded:q,total:U}),ue(ie||null,Ae))})}},function(ee){if(_._isRunningTask(x)){if(ee)return T(ee);T(null,{UploadId:E.UploadId,SliceList:E.PartList})}})}function g(b,T){var _=this,x=b.TaskId,A=b.Bucket,R=b.Region,N=b.Key,E=b.FileSize,U=b.Body,F=b.PartNumber*1,B=b.SliceSize,X=b.ServerSideEncryption,Z=b.UploadData,q=b.Headers||{},se=_.options.ChunkRetryTimes+1,ce=B*(F-1),Q=B,J=ce+B;J>E&&(J=E,Q=J-ce);var ee=["x-cos-traffic-limit","x-cos-mime-limit"],ue={};u.each(q,function(he,te){ee.indexOf(te)>-1&&(ue[te]=he)});var fe=Z.PartList[F-1];s.retry(se,function(he){_._isRunningTask(x)&&u.fileSlice(U,ce,J,!0,function(te){_.multipartUpload({TaskId:x,Bucket:A,Region:R,Key:N,ContentLength:Q,PartNumber:F,UploadId:Z.UploadId,ServerSideEncryption:X,Body:te,Headers:ue,onProgress:b.onProgress,calledBySdk:"sliceUploadFile",tracker:b.tracker},function(ie,Ae){if(_._isRunningTask(x))return ie?he(ie):(fe.Uploaded=!0,he(null,Ae))})})},function(he,te){if(_._isRunningTask(x))return T(he,te)})}function y(b,T){var _=b.Bucket,x=b.Region,A=b.Key,R=b.UploadId,N=b.SliceList,E=this,U=this.options.ChunkRetryTimes+1,F=b.Headers,B=N.map(function(X){return{PartNumber:X.PartNumber,ETag:X.ETag}});s.retry(U,function(X){E.multipartComplete({Bucket:_,Region:x,Key:A,UploadId:R,Parts:B,Headers:F,calledBySdk:"sliceUploadFile",tracker:b.tracker},X)},function(X,Z){T(X,Z)})}function m(b,T){var _=b.Bucket,x=b.Region,A=b.Key,R=b.UploadId,N=b.Level||"task",E=b.AsyncLimit,U=this,F=new l;if(F.on("error",function(B){return T(B)}),F.on("get_abort_array",function(B){w.call(U,{Bucket:_,Region:x,Key:A,Headers:b.Headers,AsyncLimit:E,AbortArray:B},T)}),N==="bucket")v.call(U,{Bucket:_,Region:x,calledBySdk:"abortUploadTask"},function(B,X){if(B)return T(B);F.emit("get_abort_array",X.UploadList||[])});else if(N==="file"){if(!A)return T(u.error(new Error("abort_upload_task_no_key")));v.call(U,{Bucket:_,Region:x,Key:A,calledBySdk:"abortUploadTask"},function(B,X){if(B)return T(B);F.emit("get_abort_array",X.UploadList||[])})}else if(N==="task"){if(!R)return T(u.error(new Error("abort_upload_task_no_id")));if(!A)return T(u.error(new Error("abort_upload_task_no_key")));F.emit("get_abort_array",[{Key:A,UploadId:R}])}else return T(u.error(new Error("abort_unknown_level")))}function w(b,T){var _=b.Bucket,x=b.Region,A=b.Key,R=b.AbortArray,N=b.AsyncLimit||1,E=this,U=0,F=new Array(R.length);s.eachLimit(R,N,function(B,X){var Z=U;if(A&&A!==B.Key){F[Z]={error:{KeyNotMatch:!0}},X(null);return}var q=B.UploadId||B.UploadID;E.multipartAbort({Bucket:_,Region:x,Key:B.Key,Headers:b.Headers,UploadId:q},function(se){var ce={Bucket:_,Region:x,Key:B.Key,UploadId:q};F[Z]={error:se,task:ce},X(null)}),U++},function(B){if(B)return T(B);for(var X=[],Z=[],q=0,se=F.length;q<se;q++){var ce=F[q];ce.task&&(ce.error?Z.push(ce.task):X.push(ce.task))}return T(null,{successList:X,errorList:Z})})}function k(b,T){var _=this,x=b.SliceSize===void 0?_.options.SliceSize:b.SliceSize,A=[],R=b.Body,N=R.size||R.length||0,E={TaskId:""};if(_.options.EnableReporter){var U=_.options.UseAccelerate||typeof _.options.Domain=="string"&&_.options.Domain.includes("accelerate."),F=N>x?"sliceUploadFile":"putObject";b.tracker=new f({Beacon:_.options.BeaconReporter,clsReporter:_.options.ClsReporter,bucket:b.Bucket,region:b.Region,apiName:"uploadFile",realApi:F,fileKey:b.Key,fileSize:N,accelerate:U,deepTracker:_.options.DeepTracker,customId:_.options.CustomId,delay:_.options.TrackerDelay})}u.each(b,function(ce,Q){a(ce)!=="object"&&typeof ce!="function"&&(E[Q]=ce)});var B=b.onTaskReady,X=function(Q){E.TaskId=Q,B&&B(Q)};b.onTaskReady=X;var Z=N>x?"sliceUploadFile":"putObject",q=b.onFileFinish,se=function(Q,J){b.tracker&&b.tracker.report(Q,J),q&&q(Q,J,E),T&&T(Q,J)};A.push({api:Z,params:b,callback:se}),_._addTasks(A)}function P(b,T){var _=this,x=b.SliceSize===void 0?_.options.SliceSize:b.SliceSize,A=0,R=0,N=u.throttleOnProgress.call(_,R,b.onProgress),E=b.files.length,U=b.onFileFinish,F=Array(E),B=function(q,se,ce){N(null,!0),U&&U(q,se,ce),F[ce.Index]={options:ce,error:q,data:se},--E<=0&&T&&T(null,{files:F})},X=[];u.each(b.files,function(Z,q){(function(){var se=Z.Body,ce=se.size||se.length||0,Q={Index:q,TaskId:""};if(!_.options.UseRawKey&&Z.Key&&Z.Key.substr(0,1)==="/"&&(Z.Key=Z.Key.substr(1)),A+=ce,_.options.EnableReporter){var J=_.options.UseAccelerate||typeof _.options.Domain=="string"&&_.options.Domain.includes("accelerate."),ee=ce>x?"sliceUploadFile":"putObject";Z.tracker=new f({Beacon:_.options.BeaconReporter,clsReporter:_.options.ClsReporter,bucket:Z.Bucket,region:Z.Region,apiName:"uploadFiles",realApi:ee,fileKey:Z.Key,fileSize:ce,accelerate:J,deepTracker:_.options.DeepTracker,customId:_.options.CustomId,delay:_.options.TrackerDelay})}u.each(Z,function(we,Ie){a(we)!=="object"&&typeof we!="function"&&(Q[Ie]=we)});var ue=Z.onTaskReady,fe=function(Ie){Q.TaskId=Ie,ue&&ue(Ie)};Z.onTaskReady=fe;var he=0,te=Z.onProgress,ie=function(Ie){R=R-he+Ie.loaded,he=Ie.loaded,te&&te(Ie),N({loaded:R,total:A})};Z.onProgress=ie;var Ae=ce>x?"sliceUploadFile":"putObject",ne=Z.onFileFinish,le=function(Ie,rt){Z.tracker&&Z.tracker.report(Ie,rt),ne&&ne(Ie,rt),B&&B(Ie,rt,Q)};X.push({api:Ae,params:Z,callback:le})})()}),_._addTasks(X)}function C(b,T){var _=new l,x=this,A=b.Bucket,R=b.Region,N=b.Key,E=b.CopySource,U=u.getSourceParams.call(this,E);if(!U){T(u.error(new Error("CopySource format error")));return}var F=U.Bucket,B=U.Region,X=decodeURIComponent(U.Key),Z=b.CopySliceSize===void 0?x.options.CopySliceSize:b.CopySliceSize;Z=Math.max(0,Z);var q=b.CopyChunkSize||this.options.CopyChunkSize,se=this.options.CopyChunkParallelLimit,ce=this.options.ChunkRetryTimes+1,Q=0,J=0,ee,ue,fe={},he={},te={};_.on("copy_slice_complete",function(ie){u.each(b.Headers,function(ne,le){le.toLowerCase().indexOf("x-cos-meta-")});var Ae=u.map(ie.PartList,function(ne){return{PartNumber:ne.PartNumber,ETag:ne.ETag}});s.retry(ce,function(ne){x.multipartComplete({Bucket:A,Region:R,Key:N,UploadId:ie.UploadId,Parts:Ae,tracker:b.tracker,calledBySdk:"sliceCopyFile"},ne)},function(ne,le){if(o.removeUsing(ie.UploadId),ne)return ue(null,!0),T(ne);o.removeUploadId(ie.UploadId),ue({loaded:ee,total:ee},!0),T(null,le)})}),_.on("get_copy_data_finish",function(ie){var Ae=o.getCopyFileId(E,fe,q,A,N);Ae&&o.saveUploadId(Ae,ie.UploadId,x.options.UploadIdCacheLimit),o.setUsing(ie.UploadId);var ne=u.filter(ie.PartList,function(le){return le.Uploaded&&(J+=le.PartNumber>=Q&&ee%q||q),!le.Uploaded});s.eachLimit(ne,se,function(le,we){var Ie=le.PartNumber,rt=le.CopySourceRange,st=le.end-le.start;s.retry(ce,function(bt){I.call(x,{Bucket:A,Region:R,Key:N,CopySource:E,UploadId:ie.UploadId,PartNumber:Ie,CopySourceRange:rt,tracker:b.tracker,calledBySdk:"sliceCopyFile"},bt)},function(bt,Ee){if(bt)return we(bt);J+=st,ue({loaded:J,total:ee}),le.ETag=Ee.ETag,we(bt||null,Ee)})},function(le){if(le)return o.removeUsing(ie.UploadId),ue(null,!0),T(le);_.emit("copy_slice_complete",ie)})}),_.on("get_chunk_size_finish",function(){var ie=function(){x.multipartInit({Bucket:A,Region:R,Key:N,Headers:te,tracker:b.tracker,calledBySdk:"sliceCopyFile"},function(Ie,rt){if(Ie)return T(Ie);b.UploadId=rt.UploadId,_.emit("get_copy_data_finish",{UploadId:b.UploadId,PartList:b.PartList})})},Ae=o.getCopyFileId(E,fe,q,A,N),ne=o.getUploadIdList(Ae);if(!Ae||!ne)return ie();var le=function we(Ie){if(Ie>=ne.length)return ie();var rt=ne[Ie];if(o.using[rt])return we(Ie+1);d.call(x,{Bucket:A,Region:R,Key:N,UploadId:rt,tracker:b.tracker,calledBySdk:"sliceCopyFile"},function(st,bt){if(st)o.removeUploadId(rt),we(Ie+1);else{if(o.using[rt])return we(Ie+1);var Ee={},Br=0;u.each(bt.PartList,function(Et){var yn=parseInt(Et.Size),Oa=Br+yn-1;Ee[Et.PartNumber+"|"+Br+"|"+Oa]=Et.ETag,Br+=yn}),u.each(b.PartList,function(Et){var yn=Ee[Et.PartNumber+"|"+Et.start+"|"+Et.end];yn&&(Et.ETag=yn,Et.Uploaded=!0)}),_.emit("get_copy_data_finish",{UploadId:rt,PartList:b.PartList})}})};le(0)}),_.on("get_file_size_finish",function(){if(function(){for(var Ae=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],ne=1024*1024,le=0;le<Ae.length&&(ne=Ae[le]*1024*1024,!(ee/ne<=x.options.MaxPartNumber));le++);b.ChunkSize=q=Math.max(q,ne),Q=Math.ceil(ee/q);for(var we=[],Ie=1;Ie<=Q;Ie++){var rt=(Ie-1)*q,st=Ie*q<ee?Ie*q-1:ee-1,bt={PartNumber:Ie,start:rt,end:st,CopySourceRange:"bytes="+rt+"-"+st};we.push(bt)}b.PartList=we}(),b.Headers["x-cos-metadata-directive"]==="Replaced"?te=b.Headers:te=he,te["x-cos-storage-class"]=b.Headers["x-cos-storage-class"]||he["x-cos-storage-class"],te=u.clearKey(te),he["x-cos-storage-class"]==="ARCHIVE"||he["x-cos-storage-class"]==="DEEP_ARCHIVE"){var ie=he["x-cos-restore"];if(!ie||ie==='ongoing-request="true"'){T(u.error(new Error("Unrestored archive object is not allowed to be copied")));return}}delete te["x-cos-copy-source"],delete te["x-cos-metadata-directive"],delete te["x-cos-copy-source-If-Modified-Since"],delete te["x-cos-copy-source-If-Unmodified-Since"],delete te["x-cos-copy-source-If-Match"],delete te["x-cos-copy-source-If-None-Match"],_.emit("get_chunk_size_finish")}),x.headObject({Bucket:F,Region:B,Key:X,tracker:b.tracker,calledBySdk:"sliceCopyFile"},function(ie,Ae){if(ie){ie.statusCode&&ie.statusCode===404?T(u.error(ie,{ErrorStatus:X+" Not Exist"})):T(ie);return}if(ee=b.FileSize=Ae.headers["content-length"],ee===void 0||!ee){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(b.tracker&&b.tracker.setParams({httpSize:ee}),ue=u.throttleOnProgress.call(x,ee,b.onProgress),ee<=Z)b.Headers["x-cos-metadata-directive"]||(b.Headers["x-cos-metadata-directive"]="Copy"),x.putObjectCopy(Object.assign(b,{calledBySdk:"sliceCopyFile"}),function(le,we){if(le)return ue(null,!0),T(le);ue({loaded:ee,total:ee},!0),T(le,we)});else{var ne=Ae.headers;fe=ne,he={"Cache-Control":ne["cache-control"],"Content-Disposition":ne["content-disposition"],"Content-Encoding":ne["content-encoding"],"Content-Type":ne["content-type"],Expires:ne.expires,"x-cos-storage-class":ne["x-cos-storage-class"]},u.each(ne,function(le,we){var Ie="x-cos-meta-";we.indexOf(Ie)===0&&we.length>Ie.length&&(he[we]=le)}),_.emit("get_file_size_finish")}})}function I(b,T){var _=b.TaskId,x=b.Bucket,A=b.Region,R=b.Key,N=b.CopySource,E=b.UploadId,U=b.PartNumber*1,F=b.CopySourceRange,B=this.options.ChunkRetryTimes+1,X=this;s.retry(B,function(Z){X.uploadPartCopy({TaskId:_,Bucket:x,Region:A,Key:R,CopySource:N,UploadId:E,PartNumber:U,CopySourceRange:F,tracker:b.tracker,calledBySdk:b.calledBySdk},function(q,se){Z(q||null,se)})},function(Z,q){return T(Z,q)})}var M={sliceUploadFile:c,abortUploadTask:m,uploadFile:k,uploadFiles:P,sliceCopyFile:C};r.exports.init=function(b,T){T.transferToTaskMethod(M,"sliceUploadFile"),u.each(M,function(_,x){b.prototype[x]=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 h=0,v=0,d=0;(function p(){if(h>=l.length)return c();for(;d<u&&v<l.length;)v+=1,d+=1,f(l[v-1],function(g){g?(c(g),c=function(){}):(h+=1,d-=1,h>=l.length?c():p())})})()},a=function(l,u,f){var c=function h(v){u(function(d,p){d&&v<l?h(v+1):f(d,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(S,O){var L=this.options.Protocol||(s.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:"),D=this.options.ServiceDomain,z=S.AppId||this.options.appId,$=S.Region;D?(D=D.replace(/\{\{AppId\}\}/gi,z||"").replace(/\{\{Region\}\}/gi,$||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(D)||(D=L+"//"+D),D.slice(-1)==="/"&&(D=D.slice(0,-1))):$?D=L+"//cos."+$+".myqcloud.com":D=L+"//service.cos.myqcloud.com";var V="",W=$?"cos."+$+".myqcloud.com":"service.cos.myqcloud.com",oe=D.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");W===oe&&(V=W),Ce.call(this,{Action:"name/cos:GetService",url:D,method:"GET",headers:S.Headers,SignHost:V,tracker:S.tracker},function(Re,Me){if(Re)return O(Re);var Ke=Me&&Me.ListAllMyBucketsResult&&Me.ListAllMyBucketsResult.Buckets&&Me.ListAllMyBucketsResult.Buckets.Bucket||[];Ke=s.isArray(Ke)?Ke:[Ke];var me=Me&&Me.ListAllMyBucketsResult&&Me.ListAllMyBucketsResult.Owner||{};O(null,{Buckets:Ke,Owner:me,statusCode:Me.statusCode,headers:Me.headers})})}function u(S,O){var L=this,D="";if(S.BucketAZConfig){var z={BucketAZConfig:S.BucketAZConfig};D=s.json2xml({CreateBucketConfiguration:z})}Ce.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,body:D,tracker:S.tracker},function($,V){if($)return O($);var W=Sr({protocol:L.options.Protocol,domain:L.options.Domain,bucket:S.Bucket,region:S.Region,isLocation:!0});O(null,{Location:W,statusCode:V.statusCode,headers:V.headers})})}function f(S,O){Ce.call(this,{Action:"name/cos:HeadBucket",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,method:"HEAD",tracker:S.tracker},O)}function c(S,O){var L={};L.prefix=S.Prefix||"",L.delimiter=S.Delimiter,L.marker=S.Marker,L["max-keys"]=S.MaxKeys,L["encoding-type"]=S.EncodingType,Ce.call(this,{Action:"name/cos:GetBucket",ResourceKey:L.prefix,method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,qs:L,tracker:S.tracker},function(D,z){if(D)return O(D);var $=z.ListBucketResult||{},V=$.Contents||[],W=$.CommonPrefixes||[];V=s.isArray(V)?V:[V],W=s.isArray(W)?W:[W];var oe=s.clone($);s.extend(oe,{Contents:V,CommonPrefixes:W,statusCode:z.statusCode,headers:z.headers}),O(null,oe)})}function h(S,O){Ce.call(this,{Action:"name/cos:DeleteBucket",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,method:"DELETE",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function v(S,O){var L=S.Headers,D="";if(S.AccessControlPolicy){var z=s.clone(S.AccessControlPolicy||{}),$=z.Grants||z.Grant;$=s.isArray($)?$:[$],delete z.Grant,delete z.Grants,z.AccessControlList={Grant:$},D=s.json2xml({AccessControlPolicy:z}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(D))}s.each(L,function(V,W){W.indexOf("x-cos-grant-")===0&&(L[W]=Yr(L[W]))}),Ce.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:S.Bucket,Region:S.Region,headers:L,action:"acl",body:D,tracker:S.tracker},function(V,W){if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function d(S,O){Ce.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"acl",tracker:S.tracker},function(L,D){if(L)return O(L);var z=D.AccessControlPolicy||{},$=z.Owner||{},V=z.AccessControlList.Grant||[];V=s.isArray(V)?V:[V];var W=Qe(z);D.headers&&D.headers["x-cos-acl"]&&(W.ACL=D.headers["x-cos-acl"]),W=s.extend(W,{Owner:$,Grants:V,statusCode:D.statusCode,headers:D.headers}),O(null,W)})}function p(S,O){var L=S.CORSConfiguration||{},D=L.CORSRules||S.CORSRules||[];D=s.clone(s.isArray(D)?D:[D]),s.each(D,function(W){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(oe){var Re=oe+"s",Me=W[Re]||W[oe]||[];delete W[Re],W[oe]=s.isArray(Me)?Me:[Me]})});var z={CORSRule:D};S.ResponseVary&&(z.ResponseVary=S.ResponseVary);var $=s.json2xml({CORSConfiguration:z}),V=S.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5($)),Ce.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:$,action:"cors",headers:V,tracker:S.tracker},function(W,oe){if(W)return O(W);O(null,{statusCode:oe.statusCode,headers:oe.headers})})}function g(S,O){Ce.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"cors",tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchCORSConfiguration"){var z={CORSRules:[],statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}var $=D.CORSConfiguration||{},V=$.CORSRules||$.CORSRule||[];V=s.clone(s.isArray(V)?V:[V]);var W=$.ResponseVary;s.each(V,function(oe){s.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Re){var Me=Re+"s",Ke=oe[Me]||oe[Re]||[];delete oe[Re],oe[Me]=s.isArray(Ke)?Ke:[Ke]})}),O(null,{CORSRules:V,ResponseVary:W,statusCode:D.statusCode,headers:D.headers})})}function y(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"cors",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode||L.statusCode,headers:D.headers})})}function m(S,O){Ce.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"location",tracker:S.tracker},O)}function w(S,O){var L=S.Policy;try{typeof L=="string"&&(L=JSON.parse(L))}catch{}if(!L||typeof L=="string")return O(s.error(new Error("Policy format error")));var D=JSON.stringify(L);L.version||(L.version="2.0");var z=S.Headers;z["Content-Type"]="application/json",z["Content-MD5"]=s.b64(s.md5(D)),Ce.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:S.Bucket,Region:S.Region,action:"policy",body:D,headers:z,tracker:S.tracker},function($,V){if($&&$.statusCode===204)return O(null,{statusCode:$.statusCode});if($)return O($);O(null,{statusCode:V.statusCode,headers:V.headers})})}function k(S,O){Ce.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"policy",rawBody:!0,tracker:S.tracker},function(L,D){if(L)return L.statusCode&&L.statusCode===403?O(s.error(L,{ErrorStatus:"Access Denied"})):L.statusCode&&L.statusCode===405?O(s.error(L,{ErrorStatus:"Method Not Allowed"})):L.statusCode&&L.statusCode===404?O(s.error(L,{ErrorStatus:"Policy Not Found"})):O(L);var z={};try{z=JSON.parse(D.body)}catch{}O(null,{Policy:z,statusCode:D.statusCode,headers:D.headers})})}function P(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"policy",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode||L.statusCode,headers:D.headers})})}function C(S,O){var L=S.Tagging||{},D=L.TagSet||L.Tags||S.Tags||[];D=s.clone(s.isArray(D)?D:[D]);var z=s.json2xml({Tagging:{TagSet:{Tag:D}}}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:z,action:"tagging",headers:$,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function I(S,O){Ce.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"tagging",tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var z={Tags:[],statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}var $=[];try{$=D.Tagging.TagSet.Tag||[]}catch{}$=s.clone(s.isArray($)?$:[$]),O(null,{Tags:$,statusCode:D.statusCode,headers:D.headers})})}function M(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"tagging",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function b(S,O){var L=S.LifecycleConfiguration||{},D=L.Rules||S.Rules||[];D=s.clone(D);var z=s.json2xml({LifecycleConfiguration:{Rule:D}}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:z,action:"lifecycle",headers:$,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function T(S,O){Ce.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"lifecycle",tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.error&&L.error.Code==="NoSuchLifecycleConfiguration"){var z={Rules:[],statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}var $=[];try{$=D.LifecycleConfiguration.Rule||[]}catch{}$=s.clone(s.isArray($)?$:[$]),O(null,{Rules:$,statusCode:D.statusCode,headers:D.headers})})}function _(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"lifecycle",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function x(S,O){if(!S.VersioningConfiguration){O(s.error(new Error("missing param VersioningConfiguration")));return}var L=S.VersioningConfiguration||{},D=s.json2xml({VersioningConfiguration:L}),z=S.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(D)),Ce.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:D,action:"versioning",headers:z,tracker:S.tracker},function($,V){if($&&$.statusCode===204)return O(null,{statusCode:$.statusCode});if($)return O($);O(null,{statusCode:V.statusCode,headers:V.headers})})}function A(S,O){Ce.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"versioning",tracker:S.tracker},function(L,D){L||!D.VersioningConfiguration&&(D.VersioningConfiguration={}),O(L,D)})}function R(S,O){var L=s.clone(S.ReplicationConfiguration),D=s.json2xml({ReplicationConfiguration:L});D=D.replace(/<(\/?)Rules>/gi,"<$1Rule>"),D=D.replace(/<(\/?)Tags>/gi,"<$1Tag>");var z=S.Headers;z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(D)),Ce.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:D,action:"replication",headers:z,tracker:S.tracker},function($,V){if($&&$.statusCode===204)return O(null,{statusCode:$.statusCode});if($)return O($);O(null,{statusCode:V.statusCode,headers:V.headers})})}function N(S,O){Ce.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"replication",tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="ReplicationConfigurationnotFoundError")){var z={ReplicationConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}!D.ReplicationConfiguration&&(D.ReplicationConfiguration={}),D.ReplicationConfiguration.Rule&&(D.ReplicationConfiguration.Rules=s.makeArray(D.ReplicationConfiguration.Rule),delete D.ReplicationConfiguration.Rule),O(L,D)})}function E(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"replication",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function U(S,O){if(!S.WebsiteConfiguration){O(s.error(new Error("missing param WebsiteConfiguration")));return}var L=s.clone(S.WebsiteConfiguration||{}),D=L.RoutingRules||L.RoutingRule||[];D=s.isArray(D)?D:[D],delete L.RoutingRule,delete L.RoutingRules,D.length&&(L.RoutingRules={RoutingRule:D});var z=s.json2xml({WebsiteConfiguration:L}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:z,action:"website",headers:$,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function F(S,O){Ce.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,action:"website",tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchWebsiteConfiguration"){var z={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}var $=D.WebsiteConfiguration||{};if($.RoutingRules){var V=s.clone($.RoutingRules.RoutingRule||[]);V=s.makeArray(V),$.RoutingRules=V}O(null,{WebsiteConfiguration:$,statusCode:D.statusCode,headers:D.headers})})}function B(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"website",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function X(S,O){if(!S.RefererConfiguration){O(s.error(new Error("missing param RefererConfiguration")));return}var L=s.clone(S.RefererConfiguration||{}),D=L.DomainList||{},z=D.Domains||D.Domain||[];z=s.isArray(z)?z:[z],z.length&&(L.DomainList={Domain:z});var $=s.json2xml({RefererConfiguration:L}),V=S.Headers;V["Content-Type"]="application/xml",V["Content-MD5"]=s.b64(s.md5($)),Ce.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:$,action:"referer",headers:V,tracker:S.tracker},function(W,oe){if(W&&W.statusCode===204)return O(null,{statusCode:W.statusCode});if(W)return O(W);O(null,{statusCode:oe.statusCode,headers:oe.headers})})}function Z(S,O){Ce.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,action:"referer",tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.error.Code==="NoSuchRefererConfiguration"){var z={WebsiteConfiguration:{},statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}var $=D.RefererConfiguration||{};if($.DomainList){var V=s.makeArray($.DomainList.Domain||[]);$.DomainList={Domains:V}}O(null,{RefererConfiguration:$,statusCode:D.statusCode,headers:D.headers})})}function q(S,O){var L=S.DomainConfiguration||{},D=L.DomainRule||S.DomainRule||[];D=s.clone(D);var z=s.json2xml({DomainConfiguration:{DomainRule:D}}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:z,action:"domain",headers:$,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function se(S,O){Ce.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"domain",tracker:S.tracker},function(L,D){if(L)return O(L);var z=[];try{z=D.DomainConfiguration.DomainRule||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),O(null,{DomainRule:z,statusCode:D.statusCode,headers:D.headers})})}function ce(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"domain",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function Q(S,O){var L=S.OriginConfiguration||{},D=L.OriginRule||S.OriginRule||[];D=s.clone(D);var z=s.json2xml({OriginConfiguration:{OriginRule:D}}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:z,action:"origin",headers:$,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function J(S,O){Ce.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"origin",tracker:S.tracker},function(L,D){if(L)return O(L);var z=[];try{z=D.OriginConfiguration.OriginRule||[]}catch{}z=s.clone(s.isArray(z)?z:[z]),O(null,{OriginRule:z,statusCode:D.statusCode,headers:D.headers})})}function ee(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"origin",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function ue(S,O){var L=s.json2xml({BucketLoggingStatus:S.BucketLoggingStatus||""}),D=S.Headers;D["Content-Type"]="application/xml",D["Content-MD5"]=s.b64(s.md5(L)),Ce.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:L,action:"logging",headers:D,tracker:S.tracker},function(z,$){if(z&&z.statusCode===204)return O(null,{statusCode:z.statusCode});if(z)return O(z);O(null,{statusCode:$.statusCode,headers:$.headers})})}function fe(S,O){Ce.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"logging",tracker:S.tracker},function(L,D){if(L)return O(L);O(null,{BucketLoggingStatus:D.BucketLoggingStatus,statusCode:D.statusCode,headers:D.headers})})}function he(S,O,L){var D=s.clone(O.InventoryConfiguration);if(D.OptionalFields){var z=D.OptionalFields||[];D.OptionalFields={Field:z}}if(D.Destination&&D.Destination.COSBucketDestination&&D.Destination.COSBucketDestination.Encryption){var $=D.Destination.COSBucketDestination.Encryption;Object.keys($).indexOf("SSECOS")>-1&&($["SSE-COS"]=$.SSECOS,delete $.SSECOS)}var V=s.json2xml({InventoryConfiguration:D}),W=O.Headers;W["Content-Type"]="application/xml",W["Content-MD5"]=s.b64(s.md5(V));var oe=S==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Ce.call(this,{Action:oe,method:S,Bucket:O.Bucket,Region:O.Region,body:V,action:"inventory",qs:{id:O.Id},headers:W,tracker:O.tracker},function(Re,Me){if(Re&&Re.statusCode===204)return L(null,{statusCode:Re.statusCode});if(Re)return L(Re);L(null,{statusCode:Me.statusCode,headers:Me.headers})})}function te(S,O){return he.call(this,"PUT",S,O)}function ie(S,O){return he.call(this,"POST",S,O)}function Ae(S,O){Ce.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"inventory",qs:{id:S.Id},tracker:S.tracker},function(L,D){if(L)return O(L);var z=D.InventoryConfiguration;if(z&&z.OptionalFields&&z.OptionalFields.Field){var $=z.OptionalFields.Field;s.isArray($)||($=[$]),z.OptionalFields=$}if(z.Destination&&z.Destination.COSBucketDestination&&z.Destination.COSBucketDestination.Encryption){var V=z.Destination.COSBucketDestination.Encryption;Object.keys(V).indexOf("SSE-COS")>-1&&(V.SSECOS=V["SSE-COS"],delete V["SSE-COS"])}O(null,{InventoryConfiguration:z,statusCode:D.statusCode,headers:D.headers})})}function ne(S,O){Ce.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"inventory",qs:{"continuation-token":S.ContinuationToken},tracker:S.tracker},function(L,D){if(L)return O(L);var z=D.ListInventoryConfigurationResult,$=z.InventoryConfiguration||[];$=s.isArray($)?$:[$],delete z.InventoryConfiguration,s.each($,function(V){if(V&&V.OptionalFields&&V.OptionalFields.Field){var W=V.OptionalFields.Field;s.isArray(W)||(W=[W]),V.OptionalFields=W}if(V.Destination&&V.Destination.COSBucketDestination&&V.Destination.COSBucketDestination.Encryption){var oe=V.Destination.COSBucketDestination.Encryption;Object.keys(oe).indexOf("SSE-COS")>-1&&(oe.SSECOS=oe["SSE-COS"],delete oe["SSE-COS"])}}),z.InventoryConfigurations=$,s.extend(z,{statusCode:D.statusCode,headers:D.headers}),O(null,z)})}function le(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"inventory",qs:{id:S.Id},tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function we(S,O){if(!S.AccelerateConfiguration){O(s.error(new Error("missing param AccelerateConfiguration")));return}var L={AccelerateConfiguration:S.AccelerateConfiguration||{}},D=s.json2xml(L),z={};z["Content-Type"]="application/xml",z["Content-MD5"]=s.b64(s.md5(D)),Ce.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:D,action:"accelerate",headers:z,tracker:S.tracker},function($,V){if($)return O($);O(null,{statusCode:V.statusCode,headers:V.headers})})}function Ie(S,O){Ce.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:S.Bucket,Region:S.Region,action:"accelerate",tracker:S.tracker},function(L,D){L||!D.AccelerateConfiguration&&(D.AccelerateConfiguration={}),O(L,D)})}function rt(S,O){var L=S.ServerSideEncryptionConfiguration||{},D=L.Rule||L.Rules||[],z=s.json2xml({ServerSideEncryptionConfiguration:{Rule:D}}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:S.Bucket,Region:S.Region,body:z,action:"encryption",headers:$,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function st(S,O){Ce.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"encryption",tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.code==="NoSuchEncryptionConfiguration"){var z={EncryptionConfiguration:{Rules:[]},statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}var $=s.makeArray(D.EncryptionConfiguration&&D.EncryptionConfiguration.Rule||[]);D.EncryptionConfiguration={Rules:$},O(L,D)})}function bt(S,O){Ce.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"encryption",tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function Ee(S,O){Ce.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:S.Bucket,Region:S.Region,Key:S.Key,VersionId:S.VersionId,headers:S.Headers,tracker:S.tracker},function(L,D){if(L){var z=L.statusCode;return S.Headers["If-Modified-Since"]&&z&&z===304?O(null,{NotModified:!0,statusCode:z}):O(L)}D.ETag=s.attr(D.headers,"etag",""),O(null,D)})}function Br(S,O){var L={};L.prefix=S.Prefix||"",L.delimiter=S.Delimiter,L["key-marker"]=S.KeyMarker,L["version-id-marker"]=S.VersionIdMarker,L["max-keys"]=S.MaxKeys,L["encoding-type"]=S.EncodingType,Ce.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:L.prefix,method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,qs:L,action:"versions",tracker:S.tracker},function(D,z){if(D)return O(D);var $=z.ListVersionsResult||{},V=$.DeleteMarker||[];V=s.isArray(V)?V:[V];var W=$.Version||[];W=s.isArray(W)?W:[W];var oe=s.clone($);delete oe.DeleteMarker,delete oe.Version,s.extend(oe,{DeleteMarkers:V,Versions:W,statusCode:z.statusCode,headers:z.headers}),O(null,oe)})}function Et(S,O){if(this.options.ObjectKeySimplifyCheck){var L=s.simplifyPath(S.Key);if(L==="/"){O(s.error(new Error("The Getobject Key is illegal")));return}}var D=S.Query||{},z=S.QueryString||"",$=s.throttleOnProgress.call(this,0,S.onProgress),V=S.tracker;V&&V.setParams({signStartTime:new Date().getTime()}),D["response-content-type"]=S.ResponseContentType,D["response-content-language"]=S.ResponseContentLanguage,D["response-expires"]=S.ResponseExpires,D["response-cache-control"]=S.ResponseCacheControl,D["response-content-disposition"]=S.ResponseContentDisposition,D["response-content-encoding"]=S.ResponseContentEncoding,Ce.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:S.Bucket,Region:S.Region,Key:S.Key,VersionId:S.VersionId,DataType:S.DataType,headers:S.Headers,qs:D,qsStr:z,rawBody:!0,onDownloadProgress:$,tracker:V},function(W,oe){if($(null,!0),W){var Re=W.statusCode;return S.Headers["If-Modified-Since"]&&Re&&Re===304?O(null,{NotModified:!0}):O(W)}O(null,{Body:oe.body,ETag:s.attr(oe.headers,"etag",""),statusCode:oe.statusCode,headers:oe.headers})})}function yn(S,O){var L=this,D=S.ContentLength,z=s.throttleOnProgress.call(L,D,S.onProgress),$=S.Headers;!$["Cache-Control"]&&!$["cache-control"]&&($["Cache-Control"]=""),!$["Content-Type"]&&!$["content-type"]&&($["Content-Type"]=S.Body&&S.Body.type||"");var V=S.UploadAddMetaMd5||L.options.UploadAddMetaMd5||L.options.UploadCheckContentMd5,W=S.tracker;V&&W&&W.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(V,S.Body,function(oe){oe&&(W&&W.setParams({md5EndTime:new Date().getTime()}),L.options.UploadCheckContentMd5&&($["Content-MD5"]=s.b64(oe)),(S.UploadAddMetaMd5||L.options.UploadAddMetaMd5)&&($["x-cos-meta-md5"]=oe)),S.ContentLength!==void 0&&($["Content-Length"]=S.ContentLength),z(null,!0),Ce.call(L,{Action:"name/cos:PutObject",TaskId:S.TaskId,method:"PUT",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,qs:S.Query,body:S.Body,onProgress:z,tracker:W},function(Re,Me){if(Re)return z(null,!0),O(Re);z({loaded:D,total:D},!0);var Ke=Sr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:S.Bucket,region:L.options.UseAccelerate?"accelerate":S.Region,object:S.Key});Ke=Ke.substr(Ke.indexOf("://")+3),Me.Location=Ke,Me.ETag=s.attr(Me.headers,"etag",""),O(null,Me)})},S.onHashProgress)}function Oa(S,O){Ce.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,VersionId:S.VersionId,action:S.Recursive?"recursive":"",tracker:S.tracker},function(L,D){if(L){var z=L.statusCode;return z&&z===404?O(null,{BucketNotFound:!0,statusCode:z}):O(L)}O(null,{statusCode:D.statusCode,headers:D.headers})})}function Iu(S,O){var L={};S.VersionId&&(L.versionId=S.VersionId),Ce.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,qs:L,action:"acl",tracker:S.tracker},function(D,z){if(D)return O(D);var $=z.AccessControlPolicy||{},V=$.Owner||{},W=$.AccessControlList&&$.AccessControlList.Grant||[];W=s.isArray(W)?W:[W];var oe=Qe($);delete oe.GrantWrite,z.headers&&z.headers["x-cos-acl"]&&(oe.ACL=z.headers["x-cos-acl"]),oe=s.extend(oe,{Owner:V,Grants:W,statusCode:z.statusCode,headers:z.headers}),O(null,oe)})}function Au(S,O){var L=S.Headers,D="";if(S.AccessControlPolicy){var z=s.clone(S.AccessControlPolicy||{}),$=z.Grants||z.Grant;$=s.isArray($)?$:[$],delete z.Grant,delete z.Grants,z.AccessControlList={Grant:$},D=s.json2xml({AccessControlPolicy:z}),L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(D))}s.each(L,function(V,W){W.indexOf("x-cos-grant-")===0&&(L[W]=Yr(L[W]))}),Ce.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:S.Bucket,Region:S.Region,Key:S.Key,action:"acl",headers:L,body:D,tracker:S.tracker},function(V,W){if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function ku(S,O){var L=S.Headers;L.Origin=S.Origin,L["Access-Control-Request-Method"]=S.AccessControlRequestMethod,L["Access-Control-Request-Headers"]=S.AccessControlRequestHeaders,Ce.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:L,tracker:S.tracker},function(D,z){if(D)return D.statusCode&&D.statusCode===403?O(null,{OptionsForbidden:!0,statusCode:D.statusCode}):O(D);var $=z.headers||{};O(null,{AccessControlAllowOrigin:$["access-control-allow-origin"],AccessControlAllowMethods:$["access-control-allow-methods"],AccessControlAllowHeaders:$["access-control-allow-headers"],AccessControlExposeHeaders:$["access-control-expose-headers"],AccessControlMaxAge:$["access-control-max-age"],statusCode:z.statusCode,headers:z.headers})})}function Mu(S,O){var L=this,D=S.Headers;!D["Cache-Control"]&&!D["cache-control"]&&(D["Cache-Control"]="");var z=S.CopySource||"",$=s.getSourceParams.call(this,z);if(!$){O(s.error(new Error("CopySource format error")));return}var V=$.Bucket,W=$.Region,oe=decodeURIComponent($.Key);Ce.call(this,{Scope:[{action:"name/cos:GetObject",bucket:V,region:W,prefix:oe},{action:"name/cos:PutObject",bucket:S.Bucket,region:S.Region,prefix:S.Key}],method:"PUT",Bucket:S.Bucket,Region:S.Region,Key:S.Key,VersionId:S.VersionId,headers:S.Headers,tracker:S.tracker},function(Re,Me){if(Re)return O(Re);var Ke=s.clone(Me.CopyObjectResult||{}),me=Sr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:S.Bucket,region:S.Region,object:S.Key,isLocation:!0});s.extend(Ke,{Location:me,statusCode:Me.statusCode,headers:Me.headers}),O(null,Ke)})}function Yt(S,O){var L=S.CopySource||"",D=s.getSourceParams.call(this,L);if(!D){O(s.error(new Error("CopySource format error")));return}var z=D.Bucket,$=D.Region,V=decodeURIComponent(D.Key);Ce.call(this,{Scope:[{action:"name/cos:GetObject",bucket:z,region:$,prefix:V},{action:"name/cos:PutObject",bucket:S.Bucket,region:S.Region,prefix:S.Key}],method:"PUT",Bucket:S.Bucket,Region:S.Region,Key:S.Key,VersionId:S.VersionId,qs:{partNumber:S.PartNumber,uploadId:S.UploadId},headers:S.Headers,tracker:S.tracker},function(W,oe){if(W)return O(W);var Re=s.clone(oe.CopyPartResult||{});s.extend(Re,{statusCode:oe.statusCode,headers:oe.headers}),O(null,Re)})}function de(S,O){var L=S.Objects||[],D=S.Quiet;L=s.isArray(L)?L:[L];var z=s.json2xml({Delete:{Object:L,Quiet:D||!1}}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z));var V=s.map(L,function(W){return{action:"name/cos:DeleteObject",bucket:S.Bucket,region:S.Region,prefix:W.Key}});Ce.call(this,{Scope:V,method:"POST",Bucket:S.Bucket,Region:S.Region,body:z,action:"delete",headers:$,tracker:S.tracker},function(W,oe){if(W)return O(W);var Re=oe.DeleteResult||{},Me=Re.Deleted||[],Ke=Re.Error||[];Me=s.isArray(Me)?Me:[Me],Ke=s.isArray(Ke)?Ke:[Ke];var me=s.clone(Re);s.extend(me,{Error:Ke,Deleted:Me,statusCode:oe.statusCode,headers:oe.headers}),O(null,me)})}function H(S,O){var L=S.Headers;if(!S.RestoreRequest){O(s.error(new Error("missing param RestoreRequest")));return}var D=S.RestoreRequest||{},z=s.json2xml({RestoreRequest:D});L["Content-Type"]="application/xml",L["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:S.Bucket,Region:S.Region,Key:S.Key,VersionId:S.VersionId,body:z,action:"restore",headers:L,tracker:S.tracker},O)}function K(S,O){var L=S.Tagging||{},D=L.TagSet||L.Tags||S.Tags||[];D=s.clone(s.isArray(D)?D:[D]);var z=s.json2xml({Tagging:{TagSet:{Tag:D}}}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:S.Bucket,Key:S.Key,Region:S.Region,body:z,action:"tagging",headers:$,VersionId:S.VersionId,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);O(null,{statusCode:W.statusCode,headers:W.headers})})}function Y(S,O){Ce.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:S.Key,Bucket:S.Bucket,Region:S.Region,headers:S.Headers,action:"tagging",VersionId:S.VersionId,tracker:S.tracker},function(L,D){if(L){if(L.statusCode===404&&L.error&&(L.error==="Not Found"||L.error.Code==="NoSuchTagSet")){var z={Tags:[],statusCode:L.statusCode};L.headers&&(z.headers=L.headers),O(null,z)}else O(L);return}var $=[];try{$=D.Tagging.TagSet.Tag||[]}catch{}$=s.clone(s.isArray($)?$:[$]),O(null,{Tags:$,statusCode:D.statusCode,headers:D.headers})})}function ge(S,O){Ce.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,action:"tagging",VersionId:S.VersionId,tracker:S.tracker},function(L,D){if(L&&L.statusCode===204)return O(null,{statusCode:L.statusCode});if(L)return O(L);O(null,{statusCode:D.statusCode,headers:D.headers})})}function ye(S,O){var L=S.SelectType;if(!L)return O(s.error(new Error("missing param SelectType")));var D=S.SelectRequest||{},z=s.json2xml({SelectRequest:D}),$=S.Headers;$["Content-Type"]="application/xml",$["Content-MD5"]=s.b64(s.md5(z)),Ce.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,action:"select",qs:{"select-type":S.SelectType},VersionId:S.VersionId,body:z,DataType:"arraybuffer",rawBody:!0,tracker:S.tracker},function(V,W){if(V&&V.statusCode===204)return O(null,{statusCode:V.statusCode});if(V)return O(V);var oe=s.parseSelectPayload(W.body);O(null,{statusCode:W.statusCode,headers:W.headers,Body:oe.body,Payload:oe.payload})})}function ke(S,O){var L=this,D=S.Headers,z=S.tracker;!D["Cache-Control"]&&!D["cache-control"]&&(D["Cache-Control"]=""),!D["Content-Type"]&&!D["content-type"]&&(D["Content-Type"]=S.Body&&S.Body.type||"");var $=S.Body&&(S.UploadAddMetaMd5||L.options.UploadAddMetaMd5);$&&z&&z.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5($,S.Body,function(V){V&&(S.Headers["x-cos-meta-md5"]=V),$&&z&&z.setParams({md5EndTime:new Date().getTime()}),Ce.call(L,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:S.Bucket,Region:S.Region,Key:S.Key,action:"uploads",headers:S.Headers,qs:S.Query,tracker:z},function(W,oe){if(W)return z&&z.parent&&z.parent.setParams({errorNode:"multipartInit"}),O(W);if(oe=s.clone(oe||{}),oe&&oe.InitiateMultipartUploadResult)return O(null,s.extend(oe.InitiateMultipartUploadResult,{statusCode:oe.statusCode,headers:oe.headers}));O(null,oe)})},S.onHashProgress)}function Be(S,O){var L=this;s.getFileSize("multipartUpload",S,function(){var D=S.tracker,z=L.options.UploadCheckContentMd5;z&&D&&D.setParams({md5StartTime:new Date().getTime()}),s.getBodyMd5(z,S.Body,function($){$&&(S.Headers["Content-MD5"]=s.b64($)),z&&D&&D.setParams({md5EndTime:new Date().getTime()}),D&&D.setParams({partNumber:S.PartNumber}),Ce.call(L,{Action:"name/cos:UploadPart",TaskId:S.TaskId,method:"PUT",Bucket:S.Bucket,Region:S.Region,Key:S.Key,qs:{partNumber:S.PartNumber,uploadId:S.UploadId},headers:S.Headers,onProgress:S.onProgress,body:S.Body||null,tracker:D},function(V,W){if(V)return D&&D.parent&&D.parent.setParams({errorNode:"multipartUpload"}),O(V);O(null,{ETag:s.attr(W.headers,"etag",""),statusCode:W.statusCode,headers:W.headers})})})})}function ze(S,O){for(var L=this,D=S.UploadId,z=S.Parts,$=S.tracker,V=0,W=z.length;V<W;V++)z[V].ETag&&z[V].ETag.indexOf('"')===0||(z[V].ETag='"'+z[V].ETag+'"');var oe=s.json2xml({CompleteMultipartUpload:{Part:z}});oe=oe.replace(/\n\s*/g,"");var Re=S.Headers;Re["Content-Type"]="application/xml",Re["Content-MD5"]=s.b64(s.md5(oe)),Ce.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:S.Bucket,Region:S.Region,Key:S.Key,qs:{uploadId:D},body:oe,headers:Re,tracker:$},function(Me,Ke){if(Me)return $&&$.parent&&$.parent.setParams({errorNode:"multipartComplete"}),O(Me);var me=Sr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:S.Bucket,region:S.Region,object:S.Key,isLocation:!0}),je=Ke.CompleteMultipartUploadResult||{};if(je.ProcessResults&&(je.UploadResult={OriginalInfo:{Key:je.Key,Location:me,ETag:je.ETag,ImageInfo:je.ImageInfo},ProcessResults:je.ProcessResults},delete je.ImageInfo,delete je.ProcessResults),je.CallbackResult){var cr=je.CallbackResult;if(cr.Status==="200"&&cr.CallbackBody)try{je.CallbackBody=JSON.parse(s.decodeBase64(cr.CallbackBody))}catch{je.CallbackBody={}}else je.CallbackError=cr.Error||{};delete je.CallbackResult}if(je.ReturnBodyResult){var Dt=je.ReturnBodyResult;if(Dt.Status==="200"&&Dt.ReturnBody)try{je.ReturnBody=JSON.parse(s.decodeBase64(Dt.ReturnBody))}catch{je.ReturnBody={}}else je.ReturnError={Code:Dt.Code,Message:Dt.Message,Status:Dt.Status};delete je.ReturnBodyResult}var fr=s.extend(je,{Location:me,statusCode:Ke.statusCode,headers:Ke.headers});O(null,fr)})}function nt(S,O){var L={};L.delimiter=S.Delimiter,L["encoding-type"]=S.EncodingType,L.prefix=S.Prefix||"",L["max-uploads"]=S.MaxUploads,L["key-marker"]=S.KeyMarker,L["upload-id-marker"]=S.UploadIdMarker,L=s.clearKey(L);var D=S.tracker;D&&D.setParams({signStartTime:new Date().getTime()}),Ce.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:L.prefix,method:"GET",Bucket:S.Bucket,Region:S.Region,headers:S.Headers,qs:L,action:"uploads",tracker:D},function(z,$){if(z)return D&&D.parent&&D.parent.setParams({errorNode:"multipartList"}),O(z);if($&&$.ListMultipartUploadsResult){var V=$.ListMultipartUploadsResult.Upload||[];V=s.isArray(V)?V:[V],$.ListMultipartUploadsResult.Upload=V}var W=s.clone($.ListMultipartUploadsResult||{});s.extend(W,{statusCode:$.statusCode,headers:$.headers}),O(null,W)})}function pt(S,O){var L={},D=S.tracker;L.uploadId=S.UploadId,L["encoding-type"]=S.EncodingType,L["max-parts"]=S.MaxParts,L["part-number-marker"]=S.PartNumberMarker,Ce.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,qs:L,tracker:D},function(z,$){if(z)return D&&D.parent&&D.parent.setParams({errorNode:"multipartListPart"}),O(z);var V=$.ListPartsResult||{},W=V.Part||[];W=s.isArray(W)?W:[W],V.Part=W;var oe=s.clone(V);s.extend(oe,{statusCode:$.statusCode,headers:$.headers}),O(null,oe)})}function Ct(S,O){var L={};L.uploadId=S.UploadId,Ce.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:S.Bucket,Region:S.Region,Key:S.Key,headers:S.Headers,qs:L,tracker:S.tracker},function(D,z){if(D)return O(D);O(null,{statusCode:z.statusCode,headers:z.headers})})}function mt(S,O){Ce.call(this,{method:S.Method,Bucket:S.Bucket,Region:S.Region,Key:S.Key,action:S.Action,headers:S.Headers,qs:S.Query,body:S.Body,Url:S.Url,rawBody:S.RawBody,DataType:S.DataType,tracker:S.tracker},function(L,D){if(L)return O(L);D&&D.body&&(D.Body=D.body,delete D.body),O(L,D)})}function ur(S,O){var L=S.Headers;!L["Cache-Control"]&&!L["cache-control"]&&(L["Cache-Control"]=""),!L["Content-Type"]&&!L["content-type"]&&(L["Content-Type"]=S.Body&&S.Body.type||""),Ce.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:S.Bucket,Region:S.Region,action:"append",Key:S.Key,body:S.Body,qs:{position:S.Position},headers:S.Headers,tracker:S.tracker},function(D,z){if(D)return O(D);O(null,z)})}function si(S){var O=this;return s.getAuth({SecretId:S.SecretId||this.options.SecretId||"",SecretKey:S.SecretKey||this.options.SecretKey||"",Bucket:S.Bucket,Region:S.Region,Method:S.Method,Key:S.Key,Query:S.Query,Headers:S.Headers,Expires:S.Expires,UseRawKey:O.options.UseRawKey,SystemClockOffset:O.options.SystemClockOffset})}function Nr(S,O){var L=this,D=S.UseAccelerate===void 0?L.options.UseAccelerate:S.UseAccelerate,z=Sr({ForcePathStyle:L.options.ForcePathStyle,protocol:S.Protocol||L.options.Protocol,domain:S.Domain||L.options.Domain,bucket:S.Bucket,region:D?"accelerate":S.Region,object:S.Key}),$="";S.Query&&($+=s.obj2str(S.Query)),S.QueryString&&($+=($?"&":"")+S.QueryString);var V=z;if(S.Sign!==void 0&&!S.Sign)return $&&(V+="?"+$),O(null,{Url:V}),V;var W=ji.call(this,{Bucket:S.Bucket,Region:S.Region,UseAccelerate:S.UseAccelerate,Url:z}),oe=rs.call(this,{Action:(S.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:S.Bucket||"",Region:S.Region||"",Method:S.Method||"get",Key:S.Key,Expires:S.Expires,Headers:S.Headers,Query:S.Query,SignHost:W,ForceSignHost:S.ForceSignHost===!1?!1:L.options.ForceSignHost},function(Re,Me){if(O){if(Re){O(Re);return}var Ke=function(cr){var Dt=cr.match(/q-url-param-list.*?(?=&)/g)[0],fr="q-url-param-list="+encodeURIComponent(Dt.replace(/q-url-param-list=/,"")).toLowerCase(),br=new RegExp(Dt,"g"),Zr=cr.replace(br,fr);return Zr},me=z;me+="?"+(Me.Authorization.indexOf("q-signature")>-1?Ke(Me.Authorization):"sign="+encodeURIComponent(Me.Authorization)),Me.SecurityToken&&(me+="&x-cos-security-token="+Me.SecurityToken),Me.ClientIP&&(me+="&clientIP="+Me.ClientIP),Me.ClientUA&&(me+="&clientUA="+Me.ClientUA),Me.Token&&(me+="&token="+Me.Token),$&&(me+="&"+$),setTimeout(function(){O(null,{Url:me})})}});return oe?(V+="?"+oe.Authorization+(oe.SecurityToken?"&x-cos-security-token="+oe.SecurityToken:""),$&&(V+="&"+$)):$&&(V+="?"+$),V}function Qe(S){var O={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},L={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},D=S&&S.AccessControlList||{},z=D.Grant;z&&(z=s.isArray(z)?z:[z]);var $={READ:0,WRITE:0,FULL_CONTROL:0};return z&&z.length&&s.each(z,function(V){var W=V.Grantee.URI&&V.Grantee.URI.endsWith("/groups/global/AllUsers");V.Grantee.ID==="qcs::cam::anyone:anyone"||W?$[V.Permission]=1:V.Grantee.ID!==S.Owner.ID&&O[L[V.Permission]].push('id="'+V.Grantee.ID+'"')}),$.FULL_CONTROL||$.WRITE&&$.READ?O.ACL="public-read-write":$.READ?O.ACL="public-read":O.ACL="private",s.each(L,function(V){O[V]=Yr(O[V].join(","))}),O}function Yr(S){var O=S.split(","),L={},D,z;for(D=0;D<O.length;)z=O[D].trim(),L[z]?O.splice(D,1):(L[z]=!0,O[D]=z,D++);return O.join(",")}function Sr(S){var O=S.region||"",L=S.bucket||"",D=L.substr(0,L.lastIndexOf("-")),z=L.substr(L.lastIndexOf("-")+1),$=S.domain,V=S.object;typeof $=="function"&&($=$({Bucket:L,Region:O})),["http","https"].includes(S.protocol)&&(S.protocol=S.protocol+":");var W=S.protocol||(s.isBrowser&&(typeof location>"u"?"undefined":a(location))==="object"&&location.protocol==="http:"?"http:":"https:");$||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(O)>-1?$="{Region}.myqcloud.com":$="cos.{Region}.myqcloud.com",S.ForcePathStyle||($="{Bucket}."+$)),$=$.replace(/\{\{AppId\}\}/gi,z).replace(/\{\{Bucket\}\}/gi,D).replace(/\{\{Region\}\}/gi,O).replace(/\{\{.*?\}\}/gi,""),$=$.replace(/\{AppId\}/gi,z).replace(/\{BucketName\}/gi,D).replace(/\{Bucket\}/gi,L).replace(/\{Region\}/gi,O).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test($)||($=W+"//"+$),$.slice(-1)==="/"&&($=$.slice(0,-1));var oe=$;return S.ForcePathStyle&&(oe+="/"+L),oe+="/",V&&(oe+=s.camSafeUrlEncode(V).replace(/%2F/g,"/")),S.isLocation&&(oe=oe.replace(/^https?:\/\//,"")),oe}var ji=function(O){if(!O.Bucket||!O.Region)return"";var L=O.UseAccelerate===void 0?this.options.UseAccelerate:O.UseAccelerate,D=O.Url||Sr({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:O.Bucket,region:L?"accelerate":O.Region}),z=D.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return z};function rs(S,O){var L=s.clone(S.Headers),D="";s.each(L,function(at,Ge){(at===""||["content-type","cache-control","expires"].indexOf(Ge.toLowerCase())>-1)&&delete L[Ge],Ge.toLowerCase()==="host"&&(D=at)});var z=S.ForceSignHost!==!1;!D&&S.SignHost&&z&&(L.Host=S.SignHost);var $=!1,V=function(Ge,Ue){$||($=!0,Ue&&Ue.XCosSecurityToken&&!Ue.SecurityToken&&(Ue=s.clone(Ue),Ue.SecurityToken=Ue.XCosSecurityToken,delete Ue.XCosSecurityToken),O&&O(Ge,Ue))},W=this,oe=S.Bucket||"",Re=S.Region||"",Me=S.Key||"";W.options.ForcePathStyle&&oe&&(Me=oe+"/"+Me);var Ke="/"+Me,me={},je=S.Scope;if(!je){var cr=S.Action||"",Dt=S.ResourceKey||S.Key||"";je=S.Scope||[{action:cr,bucket:oe,region:Re,prefix:Dt}]}var fr=s.md5(JSON.stringify(je));W._StsCache=W._StsCache||[],function(){var at,Ge;for(at=W._StsCache.length-1;at>=0;at--){Ge=W._StsCache[at];var Ue=Math.round(s.getSkewTime(W.options.SystemClockOffset)/1e3)+30;if(Ge.StartTime&&Ue<Ge.StartTime||Ue>=Ge.ExpiredTime){W._StsCache.splice(at,1);continue}if(!Ge.ScopeLimit||Ge.ScopeLimit&&Ge.ScopeKey===fr){me=Ge;break}}}();var br=function(){var Ge="";me.StartTime&&S.Expires?Ge=me.StartTime+";"+(me.StartTime+S.Expires*1):me.StartTime&&me.ExpiredTime&&(Ge=me.StartTime+";"+me.ExpiredTime);var Ue=s.getAuth({SecretId:me.TmpSecretId,SecretKey:me.TmpSecretKey,Method:S.Method,Pathname:Ke,Query:S.Query,Headers:L,Expires:S.Expires,UseRawKey:W.options.UseRawKey,SystemClockOffset:W.options.SystemClockOffset,KeyTime:Ge,ForceSignHost:z}),ct={Authorization:Ue,SecurityToken:me.SecurityToken||me.XCosSecurityToken||"",Token:me.Token||"",ClientIP:me.ClientIP||"",ClientUA:me.ClientUA||"",SignFrom:"client"};V(null,ct)},Zr=function(Ge){if(Ge.Authorization){var Ue=!1,ct=Ge.Authorization;if(ct)if(ct.indexOf(" ")>-1)Ue=!1;else if(ct.indexOf("q-sign-algorithm=")>-1&&ct.indexOf("q-ak=")>-1&&ct.indexOf("q-sign-time=")>-1&&ct.indexOf("q-key-time=")>-1&&ct.indexOf("q-url-param-list=")>-1)Ue=!0;else try{ct=atob(ct),ct.indexOf("a=")>-1&&ct.indexOf("k=")>-1&&ct.indexOf("t=")>-1&&ct.indexOf("r=")>-1&&ct.indexOf("b=")>-1&&(Ue=!0)}catch{}if(!Ue)return s.error(new Error("getAuthorization callback params format error"))}else{if(!Ge.TmpSecretId)return s.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Ge.TmpSecretKey)return s.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Ge.SecurityToken&&!Ge.XCosSecurityToken)return s.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Ge.ExpiredTime)return s.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Ge.ExpiredTime&&Ge.ExpiredTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Ge.StartTime&&Ge.StartTime.toString().length!==10)return s.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(me.ExpiredTime&&me.ExpiredTime-s.getSkewTime(W.options.SystemClockOffset)/1e3>60)br();else if(W.options.getAuthorization)W.options.getAuthorization.call(W,{Bucket:oe,Region:Re,Method:S.Method,Key:Me,Pathname:Ke,Query:S.Query,Headers:L,Scope:je,SystemClockOffset:W.options.SystemClockOffset,ForceSignHost:z},function(at){typeof at=="string"&&(at={Authorization:at});var Ge=Zr(at);if(Ge)return V(Ge);at.Authorization?V(null,at):(me=at||{},me.Scope=je,me.ScopeKey=fr,W._StsCache.push(me),br())});else if(W.options.getSTS)W.options.getSTS.call(W,{Bucket:oe,Region:Re},function(at){me=at||{},me.Scope=je,me.ScopeKey=fr,me.TmpSecretId||(me.TmpSecretId=me.SecretId),me.TmpSecretKey||(me.TmpSecretKey=me.SecretKey);var Ge=Zr(me);if(Ge)return V(Ge);W._StsCache.push(me),br()});else return function(){var at="";if(W.options.StartTime&&S.Expires){if(W.options.StartTime.toString().length!==10)return V(s.error(new Error('params "StartTime" should be 10 digits')));at=W.options.StartTime+";"+(W.options.StartTime+S.Expires*1)}else if(W.options.StartTime&&W.options.ExpiredTime){if(W.options.StartTime.toString().length!==10)return V(s.error(new Error('params "StartTime" should be 10 digits')));if(W.options.ExpiredTime.toString().length!==10)return V(s.error(new Error('params "ExpiredTime" should be 10 digits')));at=W.options.StartTime+";"+W.options.ExpiredTime*1}var Ge=s.getAuth({SecretId:S.SecretId||W.options.SecretId,SecretKey:S.SecretKey||W.options.SecretKey,Method:S.Method,Pathname:Ke,Query:S.Query,Headers:L,Expires:S.Expires,KeyTime:at,UseRawKey:W.options.UseRawKey,SystemClockOffset:W.options.SystemClockOffset,ForceSignHost:z}),Ue={Authorization:Ge,SecurityToken:W.options.SecurityToken||W.options.XCosSecurityToken,SignFrom:"client"};return V(null,Ue),Ue}();return""}function Pu(S){var O=this,L=!1,D=!1,z=!1,$=S.headers&&(S.headers.date||S.headers.Date)||S.error&&S.error.ServerTime;try{var V=S.error.Code,W=S.error.Message;(V==="RequestTimeTooSkewed"||V==="AccessDenied"&&W==="Request has expired")&&(D=!0)}catch{}if(S)if(D&&$){var oe=Date.parse($);this.options.CorrectClockSkew&&Math.abs(s.getSkewTime(this.options.SystemClockOffset)-oe)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=oe-Date.now(),L=!0)}else Math.floor(S.statusCode/100)===5?L=!0:S.message==="CORS blocked or network error"&&(z=!0,L=O.options.AutoSwitchHost);return{canRetry:L,networkError:z}}function Ru(S){var O=S.requestUrl,L=S.clientCalcSign,D=S.networkError;if(!this.options.AutoSwitchHost||!O||!L||!D)return!1;var z=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,$=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,V=z.test(O)&&!$.test(O);return V}function Ce(S,O){var L=this;!S.headers&&(S.headers={}),!S.qs&&(S.qs={}),S.VersionId&&(S.qs.versionId=S.VersionId),S.qs=s.clearKey(S.qs),S.headers&&(S.headers=s.clearKey(S.headers)),S.qs&&(S.qs=s.clearKey(S.qs));var D=s.clone(S.qs);S.action&&(D[S.action]="");var z=S.url||S.Url,$=S.SignHost||ji.call(this,{Bucket:S.Bucket,Region:S.Region,Url:z}),V=S.tracker,W=function oe(Re){var Me=L.options.SystemClockOffset;V&&V.setParams({signStartTime:new Date().getTime(),httpRetryTimes:Re-1}),S.SwitchHost&&($=$.replace(/myqcloud.com/,"tencentcos.cn")),rs.call(L,{Bucket:S.Bucket||"",Region:S.Region||"",Method:S.method,Key:S.Key,Query:D,Headers:S.headers,SignHost:$,Action:S.Action,ResourceKey:S.ResourceKey,Scope:S.Scope,ForceSignHost:L.options.ForceSignHost,SwitchHost:S.SwitchHost},function(Ke,me){if(Ke){O(Ke);return}V&&V.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),S.AuthData=me,Lu.call(L,S,function(je,cr){V&&V.setParams({httpEndTime:new Date().getTime()});var Dt=!1,fr=!1;if(je){var br=Pu.call(L,je);Dt=br.canRetry||Me!==L.options.SystemClockOffset,fr=br.networkError}if(je&&Re<2&&Dt){S.headers&&(delete S.headers.Authorization,delete S.headers.token,delete S.headers.clientIP,delete S.headers.clientUA,S.headers["x-cos-security-token"]&&delete S.headers["x-cos-security-token"],S.headers["x-ci-security-token"]&&delete S.headers["x-ci-security-token"]);var Zr=Ru.call(L,{requestUrl:(je==null?void 0:je.url)||"",clientCalcSign:me.SignFrom==="client",networkError:fr});S.SwitchHost=Zr,S.retry=!0,oe(Re+1)}else O(je,cr)})})};W(1)}function Lu(S,O){var L=this,D=S.TaskId;if(!(D&&!L._isRunningTask(D))){var z=S.Bucket,$=S.Region,V=S.Key,W=S.method||"GET",oe=S.Url||S.url,Re=S.body,Me=S.rawBody;L.options.UseAccelerate&&($="accelerate"),oe=oe||Sr({ForcePathStyle:L.options.ForcePathStyle,protocol:L.options.Protocol,domain:L.options.Domain,bucket:z,region:$,object:V}),S.SwitchHost&&(oe=oe.replace(/myqcloud.com/,"tencentcos.cn"));var Ke=V?oe:"";S.action&&(oe=oe+"?"+(s.isIOS_QQ?"".concat(S.action,"="):S.action)),S.qsStr&&(oe.indexOf("?")>-1?oe=oe+"&"+S.qsStr:oe=oe+"?"+S.qsStr);var me={method:W,url:oe,headers:S.headers,qs:S.qs,body:Re},je="x-cos-security-token";if(s.isCIHost(oe)&&(je="x-ci-security-token"),me.headers.Authorization=S.AuthData.Authorization,S.AuthData.Token&&(me.headers.token=S.AuthData.Token),S.AuthData.ClientIP&&(me.headers.clientIP=S.AuthData.ClientIP),S.AuthData.ClientUA&&(me.headers.clientUA=S.AuthData.ClientUA),S.AuthData.SecurityToken&&(me.headers[je]=S.AuthData.SecurityToken),me.headers&&(me.headers=s.clearKey(me.headers)),S.retry&&(me.headers["x-cos-sdk-retry"]=!0),me=s.clearKey(me),S.onProgress&&typeof S.onProgress=="function"){var cr=Re&&(Re.size||Re.length)||0;me.onProgress=function(Ue){if(!(D&&!L._isRunningTask(D))){var ct=Ue?Ue.loaded:0;S.onProgress({loaded:ct,total:cr})}}}S.onDownloadProgress&&(me.onDownloadProgress=S.onDownloadProgress),S.DataType&&(me.dataType=S.DataType),this.options.Timeout&&(me.timeout=this.options.Timeout),L.options.ForcePathStyle&&(me.pathStyle=L.options.ForcePathStyle),L.emit("before-send",me);var Dt=me.url.includes("accelerate."),fr=me.qs?Object.keys(me.qs).map(function(Ue){return"".concat(Ue,"=").concat(me.qs[Ue])}).join("&"):"",br=fr?me.url+"?"+fr:me.url;if(S.tracker){var Zr;S.tracker.setParams({url:br,httpMethod:me.method,accelerate:Dt,httpSize:((Zr=me.body)===null||Zr===void 0?void 0:Zr.size)||0}),S.tracker.parent&&!S.tracker.parent.params.url&&S.tracker.parent.setParams({url:Ke,accelerate:Dt})}var at=(L.options.Request||o)(me,function(Ue){if(!(Ue&&Ue.error==="abort")){var ct={options:me,error:Ue&&Ue.error,statusCode:Ue&&Ue.statusCode||0,statusMessage:Ue&&Ue.statusMessage||"",headers:Ue&&Ue.headers||{},body:Ue&&Ue.body};L.emit("after-receive",ct);var Eu=ct.error,ns=ct.body,Mn={statusCode:ct.statusCode,statusMessage:ct.statusMessage,headers:ct.headers},Dv,li=function(ui,Tt){if(D&&L.off("inner-kill-task",Ge),!Dv){Dv=!0;var Xi={};if(Mn&&Mn.statusCode&&(Xi.statusCode=Mn.statusCode),Mn&&Mn.headers&&(Xi.headers=Mn.headers),ui)me.url&&(Xi.url=me.url),me.method&&(Xi.method=me.method),ui=s.extend(ui||{},Xi),O(ui,null);else{if(S.Action==="name/cos:PutObject"){var Ou={};for(var Nv in S.headers){var gS=Nv.toLowerCase();Ou[gS]=S.headers[Nv]}Ou["x-cos-callback"]?Tt.Error?(Tt.CallbackError=s.clone(Tt.Error),delete Tt.Error):Tt.CallbackBody=s.clone(Tt):Ou["x-cos-return-body"]&&(Tt.Error?(Tt.ReturnError=s.clone(Tt.Error),delete Tt.Error):Tt.ReturnBody=s.clone(Tt))}Tt=s.extend(Tt||{},Xi),O(null,Tt)}at=null}};if(Eu)return li(s.error(Eu));var is=Mn.statusCode,Ov=Math.floor(is/100)===2;if(Me){if(Ov)return li(null,{body:ns});if(ns instanceof Blob){s.readAsBinaryString(ns,function(Bv){var ui=s.parseResBody(Bv),Tt=ui.Error||ui;return li(s.error(new Error(Tt.Message||"response body error"),{code:Tt.Code,error:Tt}))});return}}var Du=s.parseResBody(ns),as=Du.Error||Du;Ov?li(null,Du):as?li(s.error(new Error(as.Message),{code:as.Code,error:as})):is?li(s.error(new Error(Mn.statusMessage),{code:""+is})):is&&li(s.error(new Error("statusCode error")))}}),Ge=function Ue(ct){ct.TaskId===D&&(at&&at.abort&&at.abort(),L.off("inner-kill-task",Ue))};D&&L.on("inner-kill-task",Ge)}}var Ev={getService:l,putBucket:u,headBucket:f,getBucket:c,deleteBucket:h,putBucketAcl:v,getBucketAcl:d,putBucketCors:p,getBucketCors:g,deleteBucketCors:y,getBucketLocation:m,getBucketPolicy:k,putBucketPolicy:w,deleteBucketPolicy:P,putBucketTagging:C,getBucketTagging:I,deleteBucketTagging:M,putBucketLifecycle:b,getBucketLifecycle:T,deleteBucketLifecycle:_,putBucketVersioning:x,getBucketVersioning:A,putBucketReplication:R,getBucketReplication:N,deleteBucketReplication:E,putBucketWebsite:U,getBucketWebsite:F,deleteBucketWebsite:B,putBucketReferer:X,getBucketReferer:Z,putBucketDomain:q,getBucketDomain:se,deleteBucketDomain:ce,putBucketOrigin:Q,getBucketOrigin:J,deleteBucketOrigin:ee,putBucketLogging:ue,getBucketLogging:fe,putBucketInventory:te,postBucketInventory:ie,getBucketInventory:Ae,listBucketInventory:ne,deleteBucketInventory:le,putBucketAccelerate:we,getBucketAccelerate:Ie,putBucketEncryption:rt,getBucketEncryption:st,deleteBucketEncryption:bt,getObject:Et,headObject:Ee,listObjectVersions:Br,putObject:yn,deleteObject:Oa,getObjectAcl:Iu,putObjectAcl:Au,optionsObject:ku,putObjectCopy:Mu,deleteMultipleObject:de,restoreObject:H,putObjectTagging:K,getObjectTagging:Y,deleteObjectTagging:ge,selectObjectContent:ye,appendObject:ur,uploadPartCopy:Yt,multipartInit:ke,multipartUpload:Be,multipartComplete:ze,multipartList:nt,multipartListPart:pt,multipartAbort:Ct,request:mt,getObjectUrl:Nr,getAuth:si};function pS(S,O,L){s.each(["Cors","Acl"],function(D){if(S.slice(-D.length)===D){var z=S.slice(0,-D.length)+D.toUpperCase(),$=s.apiWrapper(S,O),V=!1;L[z]=function(){!V&&console.warn("warning: cos."+z+" has been deprecated. Please Use cos."+S+" instead."),V=!0,$.apply(this,arguments)}}})}r.exports.init=function(S,O){O.transferToTaskMethod(Ev,"putObject"),s.each(Ev,function(L,D){S.prototype[D]=s.apiWrapper(D,L),pS(D,L,S.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},h=function(d){if(this.options=a.extend(a.clone(c),d||{}),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(h,s),u.init(h,s),h.util={md5:a.md5,xml2json:a.xml2json,json2xml:a.json2xml,encodeBase64:a.encodeBase64},h.getAuthorization=a.getAuth,h.version=f.version,r.exports=h},"./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 h=u(f),v=h.length-1;v>=0;v--)c===h[v]&&h.splice(v,1)},s.emit=function(f,c){for(var h=u(f).map(function(d){return d}),v=0;v<h.length;v++)h[v](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{}},h=function(){if(!l){f.call(this);for(var g=!1,y=Math.round(Date.now()/1e3),m=l.length-1;m>=0;m--){var w=l[m][2];(!w||w+s<y)&&(l.splice(m,1),g=!0)}g&&c()}},v=function(){u||(u=setTimeout(function(){c(),u=null},400))},d={using:{},setUsing:function(g){d.using[g]=!0},removeUsing:function(g){delete d.using[g]},getFileId:function(g,y,m,w){return g.name&&g.size&&g.lastModifiedDate&&y?a.md5([g.name,g.size,g.lastModifiedDate,y,m,w].join("::")):null},getCopyFileId:function(g,y,m,w,k){var P=y["content-length"],C=y.etag||"",I=y["last-modified"];return g&&m?a.md5([g,P,C,I,m,w,k].join("::")):null},getUploadIdList:function(g){if(!g)return null;h.call(this);for(var y=[],m=0;m<l.length;m++)l[m][0]===g&&y.push(l[m][1]);return y.length?y:null},saveUploadId:function(g,y,m){if(h.call(this),!!g){for(var w=l.length-1;w>=0;w--){var k=l[w];k[0]===g&&k[1]===y&&l.splice(w,1)}l.unshift([g,y,Math.round(Date.now()/1e3)]),l.length>m&&l.splice(m),v()}},removeUploadId:function(g){h.call(this),delete d.using[g];for(var y=l.length-1;y>=0;y--)l[y][1]===g&&l.splice(y,1);v()}};r.exports=d},"./src/task.js":function(r,n,i){var a=i("./src/session.js"),o=i("./src/util.js"),s={},l=function(c,h){s[h]=c[h],c[h]=function(v,d){v.SkipTask?s[h].call(this,v,d):this._addTask(h,v,d)}},u=function(c){var h=[],v={},d=0,p=0,g=function(I){var M={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&&(M.FilePath=I.FilePath),I._custom&&(M._custom=I._custom),M},y=function(){var C,I=function(){C=0,c.emit("task-list-update",{list:o.map(h,g)}),c.emit("list-update",{list:o.map(h,g)})};return function(){C||(C=setTimeout(I))}}(),m=function(){if(!(h.length<=c.options.UploadQueueSize)){for(var I=0;I<p&&I<h.length&&h.length>c.options.UploadQueueSize;){var M=h[I].state==="waiting"||h[I].state==="checking"||h[I].state==="uploading";!h[I]||!M?(v[h[I].id]&&delete v[h[I].id],h.splice(I,1),p--):I++}y()}},w=function C(){if(!(d>=c.options.FileParallelLimit)){for(;h[p]&&h[p].state!=="waiting";)p++;if(!(p>=h.length)){var I=h[p];p++,d++,I.state="checking",I.params.onTaskStart&&I.params.onTaskStart(g(I)),!I.params.UploadData&&(I.params.UploadData={});var M=o.formatParams(I.api,I.params);s[I.api].call(c,M,function(b,T){c._isRunningTask(I.id)&&((I.state==="checking"||I.state==="uploading")&&(I.state=b?"error":"success",b&&(I.error=b),d--,y(),C(),I.callback&&I.callback(b,T),I.state==="success"&&(I.params&&(delete I.params.UploadData,delete I.params.Body,delete I.params),delete I.callback)),m())}),y(),setTimeout(C)}}},k=function(I,M){var b=v[I];if(b){var T=b&&b.state==="waiting",_=b&&(b.state==="checking"||b.state==="uploading");if(M==="canceled"&&b.state!=="canceled"||M==="paused"&&T||M==="paused"&&_){b.state=M,c.emit("inner-kill-task",{TaskId:I,toState:M});try{var x=b&&b.params&&b.params.UploadData.UploadId}catch{}M==="canceled"&&x&&a.removeUsing(x),y(),_&&(d--,w()),M==="canceled"&&(b.params&&(delete b.params.UploadData,delete b.params.Body,delete b.params),delete b.callback)}m()}};c._addTasks=function(C){o.each(C,function(I){c._addTask(I.api,I.params,I.callback,!0)}),y()};var P=!0;c._addTask=function(C,I,M,b){I=o.formatParams(C,I);var T=o.uuid();I.TaskId=T,I.onTaskReady&&I.onTaskReady(T),I.TaskReady&&(I.TaskReady(T),P&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),P=!1);var _={params:I,callback:M,api:C,index:h.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},x=I.onHashProgress;I.onHashProgress=function(R){c._isRunningTask(_.id)&&(_.hashPercent=R.percent,x&&x(R),y())};var A=I.onProgress;return I.onProgress=function(R){c._isRunningTask(_.id)&&(_.state==="checking"&&(_.state="uploading"),_.loaded=R.loaded,_.speed=R.speed,_.percent=R.percent,A&&A(R),y())},o.getFileSize(C,I,function(R,N){if(R)return M(o.error(R));v[T]=_,h.push(_),_.size=N,!b&&y(),w(),m()}),T},c._isRunningTask=function(C){var I=v[C];return!!(I&&(I.state==="checking"||I.state==="uploading"))},c.getTaskList=function(){return o.map(h,g)},c.cancelTask=function(C){k(C,"canceled")},c.pauseTask=function(C){k(C,"paused")},c.restartTask=function(C){var I=v[C];I&&(I.state==="paused"||I.state==="error")&&(I.state="waiting",y(),p=Math.min(p,I.index),w())},c.isUploadRunning=function(){return d||p<h.length}};r.exports.transferToTaskMethod=l,r.exports.init=u},"./src/tracker.js":function(r,n,i){var a=i("./node_modules/@babel/runtime/helpers/classCallCheck.js"),o=i("./node_modules/@babel/runtime/helpers/createClass.js"),s=i("./node_modules/@babel/runtime/helpers/typeof.js"),l=i("./package.json"),u=null,f=function(M,b){if(!u){if(typeof M!="function")throw new Error("Beacon not found");u=new M({appkey:"0WEB05PY6MHRGK0U",versionCode:l.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:b,sessionDuration:60*1e3})}return u},c=function(M){return!M||M<0?0:(M/1e3).toFixed(3)},h={getUid:function(){var M=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return M()+M()+"-"+M()+"-"+M()+"-"+M()+"-"+M()+M()+M()},getNetType:function(){if((typeof navigator>"u"?"undefined":s(navigator))==="object"){var M=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(M==null?void 0:M.type)||(M==null?void 0:M.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":s(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown os";var M=navigator.userAgent.toLowerCase(),b=/macintosh|mac os x/i.test(navigator.userAgent);return M.indexOf("win32")>=0||M.indexOf("wow32")>=0?"win32":M.indexOf("win64")>=0||M.indexOf("wow64")>=0?"win64":b?"mac":"unknown os"},isMobile:function(){var M=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isAndroid:function(){var M=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isIOS:function(){var M=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":s(navigator))==="object"&&navigator.userAgent.match(M))},isOtherMobile:function(){return v&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":s(navigator))!=="object")return"unknown device";var M=navigator.userAgent;return M}},v=h.isMobile(),d=h.isAndroid()?"android":h.isIOS?"ios":"other_mobile",p=h.getOsType(),g=v?d:p,y=h.getUA(),m=h.getProtocol(),w=function(M){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(M)?"UploadTask":M==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(M)?"CopyTask":M};function k(I){return I.replace(/([A-Z])/g,"_$1").toLowerCase()}function P(I){var M={},b=["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(b,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),_=I.requestResult==="Success"?b:T;for(var x in I)if(_.includes(x)){var A=k(x);M[A]=I[x]}return M.request_name=I.realApi?w(I.realApi):I.requestName,M}var C=function(){function I(M){a(this,I);var b=M.parent,T=M.traceId,_=M.bucket,x=M.region,A=M.apiName,R=M.realApi,N=M.httpMethod,E=M.fileKey,U=M.fileSize,F=M.accelerate,B=M.customId,X=M.delay,Z=M.deepTracker,q=M.Beacon,se=M.clsReporter,ce=_&&_.substr(_.lastIndexOf("-")+1)||"";this.parent=b,this.deepTracker=Z,this.delay=X,se&&!this.clsReporter&&(this.clsReporter=se),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:l.version,osName:g,networkType:"",requestName:A||"",requestResult:"",realApi:R,bucket:_,region:x,accelerate:F,httpMethod:N,url:"",host:"",httpDomain:"",requestPath:E||"",userAgent:y,networkProtocol:m,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:U||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||h.getUid(),appid:ce,partNumber:0,httpRetryTimes:0,customId:B||"",partTime:0},q&&(this.beacon=f(q,X))}return o(I,[{key:"formatResult",value:function(b,T){var _,x,A,R,N,E,U=new Date().getTime(),F=h.getNetType(),B=b?(b==null?void 0:b.code)||(b==null||(_=b.error)===null||_===void 0?void 0:_.code)||(b==null||(x=b.error)===null||x===void 0?void 0:x.Code):"",X=b?(b==null?void 0:b.message)||(b==null||(A=b.error)===null||A===void 0?void 0:A.message)||(b==null||(R=b.error)===null||R===void 0?void 0:R.Message):"",Z=X,q=b?(b==null?void 0:b.resource)||(b==null||(N=b.error)===null||N===void 0?void 0:N.resource)||(b==null||(E=b.error)===null||E===void 0?void 0:E.Resource):"",se=b?b==null?void 0:b.statusCode:T.statusCode,ce=b?(b==null?void 0:b.headers)&&(b==null?void 0:b.headers["x-cos-request-id"]):(T==null?void 0:T.headers)&&(T==null?void 0:T.headers["x-cos-request-id"]),Q=b?ce?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=T?T.headers&&T.headers["content-length"]:0);var J=this.params.realApi==="sliceUploadFile",ee=this.params.realApi==="sliceCopyFile";if(J||ee){var ue=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:ue<0?0:ue.toFixed(3)})}else{var fe=U-this.params.startTime,he=this.params.httpEndTime-this.params.httpStartTime,te=this.params.httpSize/1024/(he/1e3),ie=this.params.md5EndTime-this.params.md5StartTime,Ae=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",c(he)),this.parent.addParamValue("httpFullTime",c(fe)),this.parent.addParamValue("httpMd5",c(ie)),this.parent.addParamValue("httpSign",c(Ae)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",c(he))),Object.assign(this.params,{httpFullTime:c(fe),httpMd5:c(ie),httpSign:c(Ae),httpTookTime:c(he),httpSpeed:te<0?0:te.toFixed(3)})}if(Object.assign(this.params,{networkType:F,requestResult:b?"Failure":"Success",errorType:Q,errorCode:B,errorHttpCode:se,errorName:Z,errorMessage:X,errorServiceName:q,errorRequestId:ce}),b&&(!B||!X)&&(this.params.fullError=b?JSON.stringify(b):""),this.params.url){try{var ne=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=ne[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(b,T){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(b,T);var _=P(this.params);this.beacon&&this.sendEventsToBeacon(_),this.clsReporter&&this.sendEventsToCLS(_)}}},{key:"setParams",value:function(b){Object.assign(this.params,b)}},{key:"addParamValue",value:function(b,T){this.params[b]=(+this.params[b]+ +T).toFixed(3)}},{key:"sendEventsToBeacon",value:function(b){var T=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(T&&!this.deepTracker)){var _="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(_,b):this.beacon&&this.beacon.onUserAction(_,b)}}},{key:"sendEventsToCLS",value:function(b){var T=this.delay===0;this.clsReporter.log(b,T)}},{key:"generateSubTracker",value:function(b){return Object.assign(b,{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(b)}}]),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(de,H){var K=typeof Symbol<"u"&&de[Symbol.iterator]||de["@@iterator"];if(!K){if(Array.isArray(de)||(K=l(de))||H){K&&(de=K);var Y=0,ge=function(){};return{s:ge,n:function(){return Y>=de.length?{done:!0}:{done:!1,value:de[Y++]}},e:function(nt){throw nt},f:ge}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  23. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye=!0,ke=!1,Be;return{s:function(){K=K.call(de)},n:function(){var nt=K.next();return ye=nt.done,nt},e:function(nt){ke=!0,Be=nt},f:function(){try{!ye&&K.return!=null&&K.return()}finally{if(ke)throw Be}}}}function l(de,H){if(de){if(typeof de=="string")return u(de,H);var K=Object.prototype.toString.call(de).slice(8,-1);if(K==="Object"&&de.constructor&&(K=de.constructor.name),K==="Map"||K==="Set")return Array.from(de);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return u(de,H)}}function u(de,H){(H==null||H>de.length)&&(H=de.length);for(var K=0,Y=new Array(H);K<H;K++)Y[K]=de[K];return Y}var f=i("./lib/md5.js"),c=i("./lib/crypto.js"),h=i("./node_modules/fast-xml-parser/src/fxp.js"),v=h.XMLParser,d=h.XMLBuilder,p=new v({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),g=new d,y=i("./lib/base64.js"),m=i("./src/tracker.js"),w=function(H){var K=p.parse(H);return K},k=function(H){var K=g.build(H);return K};function P(de){return encodeURIComponent(de).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function C(de,H){var K=[];for(var Y in de)de.hasOwnProperty(Y)&&K.push(H?P(Y).toLowerCase():Y);return K.sort(function(ge,ye){return ge=ge.toLowerCase(),ye=ye.toLowerCase(),ge===ye?0:ge>ye?1:-1})}var I=function(H,K){var Y,ge,ye,ke=[],Be=C(H);for(Y=0;Y<Be.length;Y++)ge=Be[Y],ye=H[ge]===void 0||H[ge]===null?"":""+H[ge],ge=K?P(ge).toLowerCase():P(ge),ye=P(ye)||"",ke.push(ge+"="+ye);return ke.join("&")},M=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],b=function(H){var K={};for(var Y in H){var ge=Y.toLowerCase();(ge.indexOf("x-cos-")>-1||M.indexOf(ge)>-1)&&(K[Y]=H[Y])}return K},T=function(H){H=H||{};var K=H.SecretId,Y=H.SecretKey,ge=H.KeyTime,ye=(H.method||H.Method||"get").toLowerCase(),ke=se(H.Query||H.params||{}),Be=b(se(H.Headers||H.headers||{})),ze=H.Key||"",nt;H.UseRawKey?nt=H.Pathname||H.pathname||"/"+ze:(nt=H.Pathname||H.pathname||ze,nt.indexOf("/")!==0&&(nt="/"+nt));var pt=H.ForceSignHost!==!1;if(!Be.Host&&!Be.host&&H.Bucket&&H.Region&&pt&&(Be.Host=H.Bucket+".cos."+H.Region+".myqcloud.com"),!K)throw new Error("missing param SecretId");if(!Y)throw new Error("missing param SecretKey");var Ct=Math.round(st(H.SystemClockOffset)/1e3)-1,mt=Ct,ur=H.Expires||H.expires;ur===void 0?mt+=900:mt+=ur*1||0;var si="sha1",Nr=K,Qe=ge||Ct+";"+mt,Yr=ge||Ct+";"+mt,Sr=C(Be,!0).join(";").toLowerCase(),ji=C(ke,!0).join(";").toLowerCase(),rs=c.HmacSHA1(Yr,Y).toString(),Pu=[ye,nt,Yt.obj2str(ke,!0),Yt.obj2str(Be,!0),""].join(`
  24. `),Ru=["sha1",Qe,c.SHA1(Pu).toString(),""].join(`
  25. `),Ce=c.HmacSHA1(Ru,rs).toString(),Lu=["q-sign-algorithm="+si,"q-ak="+Nr,"q-sign-time="+Qe,"q-key-time="+Yr,"q-header-list="+Sr,"q-url-param-list="+ji,"q-signature="+Ce].join("&");return Lu},_=function(H,K,Y){var ge=K/8,ye=H.slice(Y,Y+ge);return new Uint8Array(ye).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[K](ye)[0]},x=function(H,K,Y,ge){var ye=H.slice(K,Y),ke="";return new Uint8Array(ye).forEach(function(Be){ke+=String.fromCharCode(Be)}),ge&&(ke=decodeURIComponent(escape(ke))),ke},A=function(H){for(var K={},Y=x(H),ge={records:[]};H.byteLength;){var ye=_(H,32,0),ke=_(H,32,4),Be=ye-ke-16,ze=0,nt;for(H=H.slice(12);ze<ke;){var pt=_(H,8,ze),Ct=x(H,ze+1,ze+1+pt),mt=_(H,16,ze+pt+2),ur=x(H,ze+pt+4,ze+pt+4+mt);K[Ct]=ur,ze+=pt+4+mt}if(K[":event-type"]==="Records")nt=x(H,ze,ze+Be,!0),ge.records.push(nt);else if(K[":event-type"]==="Stats")nt=x(H,ze,ze+Be,!0),ge.stats=Yt.xml2json(nt).Stats;else if(K[":event-type"]==="error"){var si=K[":error-code"],Nr=K[":error-message"],Qe=new Error(Nr);Qe.message=Nr,Qe.name=Qe.code=si,ge.error=Qe}H=H.slice(ze+Be+4)}return{payload:ge.records.join(""),body:Y}},R=function(H){var K=this.options.CopySourceParser;if(K)return K(H);var Y=H.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return Y?{Bucket:Y[1],Region:Y[3],Key:Y[7]}:null},N=function(){},E=function(H){var K={};for(var Y in H)H.hasOwnProperty(Y)&&H[Y]!==void 0&&H[Y]!==null&&(K[Y]=H[Y]);return K},U=function(H,K){var Y,ge=new FileReader;FileReader.prototype.readAsBinaryString?(Y=FileReader.prototype.readAsBinaryString,ge.onload=function(){K(this.result)}):FileReader.prototype.readAsArrayBuffer?Y=function(ke){var Be="",ze=new FileReader;ze.onload=function(nt){for(var pt=new Uint8Array(ze.result),Ct=pt.byteLength,mt=0;mt<Ct;mt++)Be+=String.fromCharCode(pt[mt]);K(Be)},ze.readAsArrayBuffer(ke)}:console.error("FileReader not support readAsBinaryString"),Y.call(ge,H)},F=function(){var de=function(Y,ge){Y=Y.split("."),ge=ge.split(".");for(var ye=0;ye<ge.length;ye++)if(Y[ye]!==ge[ye])return parseInt(Y[ye])>parseInt(ge[ye])?1:-1;return 0},H=function(Y){if(!Y)return!1;var ge=(Y.match(/Chrome\/([.\d]+)/)||[])[1],ye=(Y.match(/QBCore\/([.\d]+)/)||[])[1],ke=(Y.match(/QQBrowser\/([.\d]+)/)||[])[1],Be=ge&&de(ge,"53.0.2785.116")<0&&ye&&de(ye,"3.53.991.400")<0&&ke&&de(ke,"9.0.2524.400")<=0||!1;return Be};return H(typeof navigator<"u"&&navigator.userAgent)}(),B=function(H,K,Y,ge,ye){var ke;if(H.slice?ke=H.slice(K,Y):H.mozSlice?ke=H.mozSlice(K,Y):H.webkitSlice&&(ke=H.webkitSlice(K,Y)),ge&&F){var Be=new FileReader;Be.onload=function(ze){ke=null,ye(new Blob([Be.result]))},Be.readAsArrayBuffer(ke)}else ye(ke)},X=function(H,K,Y,ge){Y=Y||N,H?typeof K=="string"?Y(Yt.md5(K,!0)):Blob&&K instanceof Blob?Yt.getFileMd5(K,function(ye,ke){Y(ke)},ge):Y():Y()},Z=1024*1024,q=function(H,K,Y){var ge=H.size,ye=0,ke=f.getCtx(),Be=function ze(nt){if(nt>=ge){var pt=ke.digest("hex");K(null,pt);return}var Ct=Math.min(ge,nt+Z);Yt.fileSlice(H,nt,Ct,!1,function(mt){U(mt,function(ur){mt=null,ke=ke.update(ur,!0),ye+=ur.length,ur=null,Y&&Y({loaded:ye,total:ge,percent:Math.round(ye/ge*1e4)/1e4}),ze(nt+Z)})})};Be(0)};function se(de){return he(de,function(H){return o(H)==="object"&&H!==null?se(H):H})}function ce(de,H,K){return de&&H in de?de[H]:K}function Q(de,H){return fe(H,function(K,Y){de[Y]=H[Y]}),de}function J(de){return de instanceof Array}function ee(de,H){for(var K=!1,Y=0;Y<de.length;Y++)if(H===de[Y]){K=!0;break}return K}function ue(de){return J(de)?de:[de]}function fe(de,H){for(var K in de)de.hasOwnProperty(K)&&H(de[K],K)}function he(de,H){var K=J(de)?[]:{};for(var Y in de)de.hasOwnProperty(Y)&&(K[Y]=H(de[Y],Y));return K}function te(de,H){var K=J(de),Y=K?[]:{};for(var ge in de)de.hasOwnProperty(ge)&&H(de[ge],ge)&&(K?Y.push(de[ge]):Y[ge]=de[ge]);return Y}var ie=function(H){var K,Y,ge,ye="";for(K=0,Y=H.length/2;K<Y;K++)ge=parseInt(H[K*2]+H[K*2+1],16),ye+=String.fromCharCode(ge);return btoa(ye)},Ae=function(){var H=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return H()+H()+"-"+H()+"-"+H()+"-"+H()+"-"+H()+H()+H()},ne=function(H,K){var Y=K.Bucket,ge=K.Region,ye=K.Key,ke=this.options.Domain,Be=!ke||typeof ke=="string"&&ke.indexOf("{Bucket}")>-1,ze=!ke||typeof ke=="string"&&ke.indexOf("{Region}")>-1;if(H.indexOf("Bucket")>-1||H==="deleteMultipleObject"||H==="multipartList"||H==="listObjectVersions"){if(Be&&!Y)return"Bucket";if(ze&&!ge)return"Region"}else if(H.indexOf("Object")>-1||H.indexOf("multipart")>-1||H==="sliceUploadFile"||H==="abortUploadTask"||H==="uploadFile"){if(Be&&!Y)return"Bucket";if(ze&&!ge)return"Region";if(!ye)return"Key"}return!1},le=function(H,K){if(K=Q({},K),H!=="getAuth"&&H!=="getV4Auth"&&H!=="getObjectUrl"){var Y=K.Headers||{};if(K&&o(K)==="object"){(function(){for(var ye in K)K.hasOwnProperty(ye)&&ye.indexOf("x-cos-")>-1&&(Y[ye]=K[ye])})();var ge={"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"};Yt.each(ge,function(ye,ke){K[ye]!==void 0&&(Y[ke]=K[ye])}),K.Headers=E(Y)}}return K},we=function(H,K){return function(Y,ge){var ye=this;typeof Y=="function"&&(ge=Y,Y={}),Y=le(H,Y);var ke;if(ye.options.EnableReporter)if(Y.calledBySdk==="sliceUploadFile"||Y.calledBySdk==="sliceCopyFile")ke=Y.tracker&&Y.tracker.generateSubTracker({apiName:H});else if(["uploadFile","uploadFiles"].includes(H))ke=null;else{var Be=0;Y.Body&&(Be=typeof Y.Body=="string"?Y.Body.length:Y.Body.size||Y.Body.byteLength||0);var ze=ye.options.UseAccelerate||typeof ye.options.Domain=="string"&&ye.options.Domain.includes("accelerate.");ke=new m({Beacon:ye.options.BeaconReporter,clsReporter:ye.options.ClsReporter,bucket:Y.Bucket,region:Y.Region,apiName:H,realApi:H,accelerate:ze,fileKey:Y.Key,fileSize:Be,deepTracker:ye.options.DeepTracker,customId:ye.options.CustomId,delay:ye.options.TrackerDelay})}Y.tracker=ke;var nt=function(Qe){return Qe&&Qe.headers&&(Qe.headers["x-cos-request-id"]&&(Qe.RequestId=Qe.headers["x-cos-request-id"]),Qe.headers["x-ci-request-id"]&&(Qe.RequestId=Qe.headers["x-ci-request-id"]),Qe.headers["x-cos-version-id"]&&(Qe.VersionId=Qe.headers["x-cos-version-id"]),Qe.headers["x-cos-delete-marker"]&&(Qe.DeleteMarker=Qe.headers["x-cos-delete-marker"])),Qe},pt=function(Qe,Yr){ke&&ke.report(Qe,Yr),ge&&ge(nt(Qe),nt(Yr))},Ct=function(){if(H!=="getService"&&H!=="abortUploadTask"){var Qe=ne.call(ye,H,Y);if(Qe)return"missing param "+Qe;if(Y.Region){if(ye.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(Y.Region))return"Region format error."}else{if(Y.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(Y.Region))return"Region format error."}!ye.options.CompatibilityMode&&Y.Region.indexOf("-")===-1&&Y.Region!=="yfb"&&Y.Region!=="default"&&Y.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(Y.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(Y.Bucket))if(Y.AppId)Y.Bucket=Y.Bucket+"-"+Y.AppId;else if(ye.options.AppId)Y.Bucket=Y.Bucket+"-"+ye.options.AppId;else return'Bucket should format as "test-1250000000".';Y.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete Y.AppId)}!ye.options.UseRawKey&&Y.Key&&Y.Key.substr(0,1)==="/"&&(Y.Key=Y.Key.substr(1))}},mt=Ct(),ur=["getAuth","getObjectUrl"].includes(H);if(typeof Promise=="function"&&!ur&&!ge)return new Promise(function(Nr,Qe){if(ge=function(Sr,ji){Sr?Qe(Sr):Nr(ji)},mt)return pt(Yt.error(new Error(mt)));K.call(ye,Y,pt)});if(mt)return pt(Yt.error(new Error(mt)));var si=K.call(ye,Y,pt);if(ur)return si}},Ie=function(H,K){var Y=this,ge=0,ye=0,ke=Date.now(),Be,ze;function nt(){if(ze=0,K&&typeof K=="function"){Be=Date.now();var pt=Math.max(0,Math.round((ye-ge)/((Be-ke)/1e3)*100)/100)||0,Ct;ye===0&&H===0?Ct=1:Ct=Math.floor(ye/H*100)/100||0,ke=Be,ge=ye;try{K({loaded:ye,total:H,speed:pt,percent:Ct})}catch{}}}return function(pt,Ct){if(pt&&(ye=pt.loaded,H=pt.total),Ct)clearTimeout(ze),nt();else{if(ze)return;ze=setTimeout(nt,Y.options.ProgressInterval)}}},rt=function(H,K,Y){var ge;if(typeof K.Body=="string"?K.Body=new Blob([K.Body],{type:"text/plain"}):K.Body instanceof ArrayBuffer&&(K.Body=new Blob([K.Body])),K.Body&&(K.Body instanceof Blob||K.Body.toString()==="[object File]"||K.Body.toString()==="[object Blob]"))ge=K.Body.size;else{Y(Yt.error(new Error("params body format error, Only allow File|Blob|String.")));return}K.ContentLength=ge,Y(null,ge)},st=function(H){return Date.now()+(H||0)},bt=function(H,K){var Y=H;return H.message=H.message||null,typeof K=="string"?(H.error=K,H.message=K):o(K)==="object"&&K!==null&&(Q(H,K),(K.code||K.name)&&(H.code=K.code||K.name),K.message&&(H.message=K.message),K.stack&&(H.stack=K.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(H,"name",{writable:!0,enumerable:!1}),Object.defineProperty(H,"message",{enumerable:!0})),H.name=K&&K.name||H.name||H.code||"Error",H.code||(H.code=H.name),H.error||(H.error=se(Y)),H},Ee=function(){return(typeof globalThis>"u"?"undefined":o(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Br=function(){return(typeof window>"u"?"undefined":o(window))!=="object"&&(typeof a>"u"?"undefined":o(a))==="object"&&!0&&!Ee()},Et=function(H){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(H)},yn=function(){if((typeof navigator>"u"?"undefined":o(navigator))!=="object")return!1;var de=navigator.userAgent,H=!!de.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return H}(),Oa=function(){return(typeof navigator>"u"?"undefined":o(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Iu=function(H,K){var Y=y.encode(H);return K&&(Y=Y.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),Y},Au=function(H){return H?y.decode(H):""},ku=function(H){var K=H.split("/"),Y=[],ge=s(K),ye;try{for(ge.s();!(ye=ge.n()).done;){var ke=ye.value;ke===".."?Y.length&&Y.pop():ke.length&&ke!=="."&&Y.push(ke)}}catch(Be){ge.e(Be)}finally{ge.f()}return"/"+Y.join("/")},Mu=function(H){var K;if(H&&typeof H=="string"){var Y=H.trim(),ge=Y.indexOf("<")===0,ye=Y.indexOf("{")===0;if(ge)K=Yt.xml2json(H)||{};else if(ye)try{var ke=H.replace(/\n/g," "),Be=JSON.parse(ke);Object.prototype.toString.call(Be)==="[object Object]"?K=Be:K=H}catch{K=H}else K=H}else K=H||{};return K},Yt={noop:N,formatParams:le,apiWrapper:we,xml2json:w,json2xml:k,md5:f,clearKey:E,fileSlice:B,getBodyMd5:X,getFileMd5:q,b64:ie,extend:Q,isArray:J,isInArray:ee,makeArray:ue,each:fe,map:he,filter:te,clone:se,attr:ce,uuid:Ae,camSafeUrlEncode:P,throttleOnProgress:Ie,getFileSize:rt,getSkewTime:st,error:bt,obj2str:I,getAuth:T,parseSelectPayload:A,getSourceParams:R,isBrowser:!0,isNode:Br,isCIHost:Et,isIOS_QQ:yn&&Oa,encodeBase64:Iu,decodeBase64:Au,simplifyPath:ku,readAsBinaryString:U,parseResBody:Mu};r.exports=Yt}).call(this,i("./node_modules/process/browser.js"))}})})})(By);var JS=By.exports;const eb=CS(JS),Ny="daya-online-1303457149",Vv="tencent";async function Hv(t,e,r,n=!0){Gr.loading(!0,"资源上传中"),n&&(t=nb(t));const i=await tb(t,r);if(i.code===200)try{const a=await rb(i.data.signature,{fileName:t,file:e,filePath:r});return Gr.loading(!1),a.statusCode===200?a.Location.includes("http")?a.Location:`https://${a.Location}`:Promise.reject("")}catch{return Gr.loading(!1),Promise.reject("")}else return Gr.loading(!1),Promise.reject("")}const tb=async(t,e)=>{const r=`pptList/${e||"errPath/"}`+t;return TS(xS,{postData:{key:r},pluginName:Vv,bucketName:Ny,filename:r},{pluginName:Vv})},rb=(t,e)=>new eb({Domain:"https://oss.dayaedu.com",Protocol:"https",getAuthorization:async(n,i)=>{i({Authorization:t})}}).uploadFile({Bucket:Ny,Region:"ap-nanjing",Key:`pptList/${e.filePath||"errPath/"}${e.fileName}`,Body:e.file,SliceSize:1024*1024*500,onProgress:function(n){}});function nb(t){const e=t.lastIndexOf("."),r=t.substring(0,e),n=t.substring(e);return`${r}_${Date.now()}${n}`}function ib(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 ab=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function Tn(t){const e=[];for(let r=0,n=t.length;r<n;r++)e.push(t[r]);return e}function vl(t,e){const n=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function ob(t){const e=vl(t,"border-left-width"),r=vl(t,"border-right-width");return t.clientWidth+e+r}function sb(t){const e=vl(t,"border-top-width"),r=vl(t,"border-bottom-width");return t.clientHeight+e+r}function Fy(t,e={}){const r=e.width||ob(t),n=e.height||sb(t);return{width:r,height:n}}function lb(){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 hr=16384;function ub(t){(t.width>hr||t.height>hr)&&(t.width>hr&&t.height>hr?t.width>t.height?(t.height*=hr/t.width,t.width=hr):(t.width*=hr/t.height,t.height=hr):t.width>hr?(t.height*=hr/t.width,t.width=hr):(t.width*=hr/t.height,t.height=hr))}function cb(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 dl(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 fb(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function hb(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),fb(i)}const tr=(t,e)=>{if(t instanceof e)return!0;const r=Object.getPrototypeOf(t);return r===null?!1:r.constructor.name===e.name||tr(r,e)};function vb(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function db(t){return Tn(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function pb(t,e,r){const n=`.${t}:${e}`,i=r.cssText?vb(r):db(r);return document.createTextNode(`${n}{${i}}`)}function Gv(t,e,r){const n=window.getComputedStyle(t,r),i=n.getPropertyValue("content");if(i===""||i==="none")return;const a=ab();try{e.className=`${e.className} ${a}`}catch{return}const o=document.createElement("style");o.appendChild(pb(a,r,n)),e.appendChild(o)}function gb(t,e){Gv(t,e,":before"),Gv(t,e,":after")}const Wv="application/font-woff",jv="image/jpeg",yb={woff:Wv,woff2:Wv,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:jv,jpeg:jv,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function mb(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function Sh(t){const e=mb(t).toLowerCase();return yb[e]||""}function _b(t){return t.split(/,/)[1]}function uf(t){return t.search(/^(data:)/)!==-1}function Sb(t,e){return`data:${e};base64,${t}`}async function $y(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 Bu={};function bb(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 bh(t,e,r){const n=bb(t,e,r.includeQueryParams);if(Bu[n]!=null)return Bu[n];r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{const a=await $y(t,r.fetchRequestInit,({res:o,result:s})=>(e||(e=o.headers.get("Content-Type")||""),_b(s)));i=Sb(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 Bu[n]=i,i}async function wb(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):dl(e)}async function Cb(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 dl(s)}const r=t.poster,n=Sh(r),i=await bh(r,n,e);return dl(i)}async function Tb(t){var e;try{if(!((e=t==null?void 0:t.contentDocument)===null||e===void 0)&&e.body)return await Hl(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)}async function xb(t,e){return tr(t,HTMLCanvasElement)?wb(t):tr(t,HTMLVideoElement)?Cb(t,e):tr(t,HTMLIFrameElement)?Tb(t):t.cloneNode(!1)}const Ib=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function Ab(t,e,r){var n,i;let a=[];return Ib(t)&&t.assignedNodes?a=Tn(t.assignedNodes()):tr(t,HTMLIFrameElement)&&(!((n=t.contentDocument)===null||n===void 0)&&n.body)?a=Tn(t.contentDocument.body.childNodes):a=Tn(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),a.length===0||tr(t,HTMLVideoElement)||await a.reduce((o,s)=>o.then(()=>Hl(s,r)).then(l=>{l&&e.appendChild(l)}),Promise.resolve()),e}function kb(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):Tn(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`),tr(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 Mb(t,e){tr(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),tr(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function Pb(t,e){if(tr(t,HTMLSelectElement)){const r=e,n=Array.from(r.children).find(i=>t.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function Rb(t,e){return tr(e,Element)&&(kb(t,e),gb(t,e),Mb(t,e),Pb(t,e)),e}async function Lb(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 Hl(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 Hl(t,e,r){return!r&&e.filter&&!e.filter(t)?null:Promise.resolve(t).then(n=>xb(n,e)).then(n=>Ab(t,n,e)).then(n=>Rb(t,n)).then(n=>Lb(n,e))}const zy=/url\((['"]?)([^'"]+?)\1\)/g,Eb=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Db=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Ob(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function Bb(t){const e=[];return t.replace(zy,(r,n,i)=>(e.push(i),r)),e.filter(r=>!uf(r))}async function Nb(t,e,r,n,i){try{const a=r?ib(e,r):e,o=Sh(e);let s;return i||(s=await bh(a,o,n)),t.replace(Ob(e),`$1${s}$3`)}catch{}return t}function Fb(t,{preferredFontFormat:e}){return e?t.replace(Db,r=>{for(;;){const[n,,i]=Eb.exec(r)||[];if(!i)return"";if(i===e)return`src: ${n};`}}):t}function Uy(t){return t.search(zy)!==-1}async function Vy(t,e,r){if(!Uy(t))return t;const n=Fb(t,r);return Bb(n).reduce((a,o)=>a.then(s=>Nb(s,o,e,r)),Promise.resolve(n))}async function ls(t,e,r){var n;const i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(t);if(i){const a=await Vy(i,null,r);return e.style.setProperty(t,a,e.style.getPropertyPriority(t)),!0}return!1}async function $b(t,e){await ls("background",t,e)||await ls("background-image",t,e),await ls("mask",t,e)||await ls("mask-image",t,e)}async function zb(t,e){const r=tr(t,HTMLImageElement);if(!(r&&!uf(t.src))&&!(tr(t,SVGImageElement)&&!uf(t.href.baseVal)))return;const n=r?t.src:t.href.baseVal,i=await bh(n,Sh(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 Ub(t,e){const n=Tn(t.childNodes).map(i=>Hy(i,e));await Promise.all(n).then(()=>t)}async function Hy(t,e){tr(t,Element)&&(await $b(t,e),await zb(t,e),await Ub(t,e))}function Vb(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 Xv={};async function qv(t){let e=Xv[t];if(e!=null)return e;const n=await(await fetch(t)).text();return e={url:t,cssText:n},Xv[t]=e,e}async function Kv(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),$y(s,e.fetchRequestInit,({result:l})=>(r=r.replace(o,`url(${l})`),[o,l]))});return Promise.all(a).then(()=>r)}function Yv(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 Hb(t,e){const r=[],n=[];return t.forEach(i=>{if("cssRules"in i)try{Tn(i.cssRules||[]).forEach((a,o)=>{if(a.type===CSSRule.IMPORT_RULE){let s=o+1;const l=a.href,u=qv(l).then(f=>Kv(f,e)).then(f=>Yv(f).forEach(c=>{try{i.insertRule(c,c.startsWith("@import")?s+=1:i.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:c,error:h})}})).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(qv(i.href).then(s=>Kv(s,e)).then(s=>Yv(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{Tn(i.cssRules||[]).forEach(a=>{r.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${i.href}`,a)}}),r))}function Gb(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Uy(e.style.getPropertyValue("src")))}async function Wb(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const r=Tn(t.ownerDocument.styleSheets),n=await Hb(r,e);return Gb(n)}async function jb(t,e){const r=await Wb(t,e);return(await Promise.all(r.map(i=>{const a=i.parentStyleSheet?i.parentStyleSheet.href:null;return Vy(i.cssText,a,e)}))).join(`
  26. `)}async function Xb(t,e){const r=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await jb(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 qb(t,e={}){const{width:r,height:n}=Fy(t,e),i=await Hl(t,e,!0);return await Xb(i,e),await Hy(i,e),Vb(i,e),await hb(i,r,n)}async function Kb(t,e={}){const{width:r,height:n}=Fy(t,e),i=await qb(t,e),a=await dl(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=e.pixelRatio||lb(),u=e.canvasWidth||r,f=e.canvasHeight||n;return o.width=u*l,o.height=f*l,e.skipAutoScale||ub(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 Yb(t,e={}){const r=await Kb(t,e);return await cb(r)}const Zb=IS("pptWork",{state:()=>({id:kS().query.id,coverImg:"",jsonUrl:"",isSave:!1}),actions:{async initPPTData(){if(this.id){Gr.loading(!0,"资源加载中,请稍等...");const t=await $v(qS,this.id);if(t.code===200){const{dataJson:e,chapterLessonCoursewareName:r}=t.data||{},{coverImg:n,jsonUrl:i}=JSON.parse(e);if(this.coverImg=n||"",kt().setTitle(r),i){const o=await YS(i);o.code===200&&ZS(o.data)}}Gr.loading(!1)}},async updatePPT(){await this.updateCoverImg();const{blob:t}=QS();Hv(`${this.id}ppt`,t,`${this.id}/`,!1).then(e=>{Gr.loading(!0,"课件保存中,请稍等..."),$v(KS,{id:this.id,dataJson:JSON.stringify({coverImg:this.coverImg,jsonUrl:e})}).then(r=>{r.code===200&&(this.isSave=!0,zv({showClose:!0,message:"保存成功!",type:"success"})),Gr.loading(!1)})}).catch(()=>{zv({showClose:!0,message:"保存失败!",type:"error"})})},async updateCoverImg(){Gr.loading(!0,"资源上传中");try{const t=document.querySelector("#thumbnailSlide_0");if(t){const e=await Yb(t);if(e){const r=await Hv(`${this.id}coverImg`,e,`${this.id}/`,!1);r&&(this.coverImg=r)}}Gr.loading(!1)}catch(t){Gr.loading(!1),console.log(t,"上传coverImg错误")}}}}),TB=()=>Zb(AS),wh=()=>{const t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},Gy=()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},cf=()=>!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement),Gl=()=>{const t=mh(),e=kt(),r=()=>{wh(),t.setScreening(!0)};return{enterScreening:r,enterScreeningFromStart:()=>{e.updateSlideIndex(0),r()},exitScreening:()=>{t.setScreening(!1),cf()&&Gy()}}},Qb=He({__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=ve(),a=ve(),o=ve(),s=ve(!1),l=Te(()=>r.contentStyle||{});return Rr(()=>r.value,()=>{i.value&&(r.value?i.value.show():i.value.hide())}),hn(()=>{i.value&&i.value.destroy()}),ir(()=>{i.value=MS(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)=>(re(),pe("div",{class:Je(["popover",{center:u.center}]),ref_key:"triggerRef",ref:a},[j("div",{class:"popover-content",style:Se(l.value),ref_key:"contentRef",ref:o},[s.value?fl(u.$slots,"content",{key:0},void 0,!0):Ve("",!0)],4),fl(u.$slots,"default",{},void 0,!0)],2))}}),Nu=Ye(Qb,[["__scopeId","data-v-e147331a"]]),Xo=Symbol(),Wl=Symbol(),xB=Symbol(),jl=t=>({shadowStyle:Te(()=>{if(t.value){const{h:r,v:n,blur:i,color:a}=t.value;return`${r}px ${n}px ${i}px ${a}`}return""})}),Wy=(t,e)=>({flipStyle:Te(()=>{let n="";return t.value&&e.value?n="rotateX(180deg) rotateY(180deg)":e.value?n="rotateX(180deg)":t.value&&(n="rotateY(180deg)"),n})});var jy=(t=>(t.RECT="rect",t.ELLIPSE="ellipse",t.POLYGON="polygon",t))(jy||{});const Zv={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`}},Xy=t=>{const e=Te(()=>{let n=Zv.rect;if(t.value.clip){const i=t.value.clip.shape||jy.RECT;n=Zv[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=Te(()=>{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}},Jb=t=>({filter:Te(()=>{if(!t.value)return"";let r="";const n=Object.keys(t.value);for(const i of n)r+=`${i}(${t.value[i]}) `;return r})}),qo=t=>{const e=Te(()=>{var a;return((a=t.value)==null?void 0:a.width)??0}),r=Te(()=>{var a;return((a=t.value)==null?void 0:a.style)||"solid"}),n=Te(()=>{var a;return((a=t.value)==null?void 0:a.color)||"#5b9bd5"}),i=Te(()=>{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}},ew=["width","height"],tw=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"],rw=He({__name:"ImageRectOutline",props:{width:{},height:{},outline:{},radius:{default:"0"}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=qo(Vl(e,"outline"));return(a,o)=>a.outline?(re(),pe("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:a.width,height:a.height},[j("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:ae(n),"stroke-width":ae(r),"stroke-dasharray":ae(i)},null,8,tw)],8,ew)):Ve("",!0)}}),nw=Ye(rw,[["__scopeId","data-v-801a8465"]]),iw=["width","height"],aw=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"],ow=He({__name:"ImageEllipseOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=qo(Vl(e,"outline"));return(a,o)=>a.outline?(re(),pe("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:a.width,height:a.height},[j("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:ae(n),"stroke-width":ae(r),"stroke-dasharray":ae(i)},null,8,aw)],8,iw)):Ve("",!0)}}),sw=Ye(ow,[["__scopeId","data-v-2528d7e2"]]),lw=["width","height"],uw=["d","stroke","stroke-width","stroke-dasharray"],cw=He({__name:"ImagePolygonOutline",props:{width:{},height:{},createPath:{type:Function},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=qo(Vl(e,"outline"));return(a,o)=>a.outline?(re(),pe("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:a.width,height:a.height},[j("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",d:a.createPath(a.width,a.height),stroke:ae(n),"stroke-width":ae(r),"stroke-dasharray":ae(i)},null,8,uw)],8,lw)):Ve("",!0)}}),fw=Ye(cw,[["__scopeId","data-v-04ee0d7b"]]),hw={class:"image-outline"},vw=He({__name:"index",props:{elementInfo:{}},setup(t){const e=t,r=Te(()=>e.elementInfo),{clipShape:n}=Xy(r);return(i,a)=>(re(),pe("div",hw,[ae(n).type==="rect"?(re(),$e(nw,{key:0,width:i.elementInfo.width,height:i.elementInfo.height,radius:ae(n).radius,outline:i.elementInfo.outline},null,8,["width","height","radius","outline"])):ae(n).type==="ellipse"?(re(),$e(sw,{key:1,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"])):ae(n).type==="polygon"?(re(),$e(fw,{key:2,width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline,createPath:ae(n).createPath},null,8,["width","height","outline","createPath"])):Ve("",!0)]))}}),dw=["width","height"],pw=["d","stroke","stroke-width","stroke-dasharray"],gw=He({__name:"ElementOutline",props:{width:{},height:{},outline:{}},setup(t){const e=t,{outlineWidth:r,outlineColor:n,strokeDashArray:i}=qo(Vl(e,"outline"));return(a,o)=>a.outline?(re(),pe("svg",{key:0,class:"element-outline",overflow:"visible",width:a.width,height:a.height},[j("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:ae(n),"stroke-width":ae(r),"stroke-dasharray":ae(i)},null,8,pw)],8,dw)):Ve("",!0)}}),qy=Ye(gw,[["__scopeId","data-v-813f8c74"]]),yw=["id","gradientTransform"],mw=["offset","stop-color"],_w=["id"],Sw=["offset","stop-color"],bw=He({__name:"GradientDefs",props:{id:{},type:{},colors:{},rotate:{default:0}},setup(t){return(e,r)=>e.type==="linear"?(re(),pe("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:`rotate(${e.rotate},0.5,0.5)`},[(re(!0),pe($t,null,Lr(e.colors,(n,i)=>(re(),pe("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,mw))),128))],8,yw)):(re(),pe("radialGradient",{key:1,id:e.id},[(re(!0),pe($t,null,Lr(e.colors,(n,i)=>(re(),pe("stop",{key:i,offset:`${n.pos}%`,"stop-color":n.color},null,8,Sw))),128))],8,_w))}}),ww=["id","markerWidth","markerHeight","refX","refY"],Cw=["d","fill","transform"],Qv=He({__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=Te(()=>r[e.type]),a=Te(()=>n[`${e.type}-${e.position}`]||0),o=Te(()=>e.baseSize<2?2:e.baseSize);return(s,l)=>(re(),pe("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},[j("path",{d:i.value,fill:s.color,transform:`scale(${o.value*.3}, ${o.value*.3}) rotate(${a.value}, 5, 5)`},null,8,Cw)],8,ww))}}),Tw=({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};/*! *****************************************************************************
  27. Copyright (c) Microsoft Corporation.
  28. Permission to use, copy, modify, and/or distribute this software for any
  29. purpose with or without fee is hereby granted.
  30. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  31. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  32. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  33. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  34. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  35. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  36. PERFORMANCE OF THIS SOFTWARE.
  37. ***************************************************************************** */var ff=function(t,e){return ff=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])},ff(t,e)};function be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ff(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var xw=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Iw=function(){function t(){this.browser=new xw,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}(),lt=new Iw;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(lt.wxa=!0,lt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?lt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(lt.node=!0,lt.svgSupported=!0):Aw(navigator.userAgent,lt);function Aw(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 Ch=12,Ky="sans-serif",Zn=Ch+"px "+Ky,kw=20,Mw=100,Pw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Rw(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)-kw)/Mw;e[n]=i}return e}var Lw=Rw(Pw),Ko={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=Ko.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Zn),t.measureText(r);r=r||"",n=n||Zn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Ch,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Lw[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}},Yy=Qn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Zy=Qn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Yo=Object.prototype.toString,Xl=Array.prototype,Ew=Xl.forEach,Dw=Xl.filter,Th=Xl.slice,Ow=Xl.map,Jv=(function(){}).constructor,us=Jv?Jv.prototype:null,xh="__proto__",Bw=2311;function Qy(){return Bw++}function Jy(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function et(t){if(t==null||typeof t!="object")return t;var e=t,r=Yo.call(t);if(r==="[object Array]"){if(!fo(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=et(t[n])}}else if(Zy[r]){if(!fo(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(!Yy[r]&&!fo(t)&&!hf(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==xh&&(e[o]=et(t[o]))}return e}function ut(t,e,r){if(!Oe(e)||!Oe(t))return r?et(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==xh){var i=t[n],a=e[n];Oe(a)&&Oe(i)&&!Pe(a)&&!Pe(i)&&!hf(a)&&!hf(i)&&!ed(a)&&!ed(i)&&!fo(a)&&!fo(i)?ut(i,a,r):(r||!(n in t))&&(t[n]=et(e[n]))}return t}function _e(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==xh&&(t[r]=e[r]);return t}function Ze(t,e,r){for(var n=tt(e),i=0;i<n.length;i++){var a=n[i];t[a]==null&&(t[a]=e[a])}return t}function gt(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 Nw(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 jr(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 Ze(t,e)}function ar(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function G(t,e,r){if(t&&e)if(t.forEach&&t.forEach===Ew)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 xe(t,e,r){if(!t)return[];if(!e)return Ah(t);if(t.map&&t.map===Ow)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 Qn(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 Gt(t,e,r){if(!t)return[];if(!e)return Ah(t);if(t.filter&&t.filter===Dw)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 Fw(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 tt(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 $w(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(Th.call(arguments)))}}var xt=us&&Xe(us.bind)?us.call.bind(us.bind):$w;function dr(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Th.call(arguments)))}}function Pe(t){return Array.isArray?Array.isArray(t):Yo.call(t)==="[object Array]"}function Xe(t){return typeof t=="function"}function Le(t){return typeof t=="string"}function zw(t){return Yo.call(t)==="[object String]"}function dt(t){return typeof t=="number"}function Oe(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function ed(t){return!!Yy[Yo.call(t)]}function or(t){return!!Zy[Yo.call(t)]}function hf(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Ih(t){return t.colorStops!=null}function pl(t){return t!==t}function Ao(){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 Ne(t,e){return t??e}function co(t,e,r){return t??e??r}function Ah(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Th.apply(t,e)}function em(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 vn(t,e){if(!t)throw new Error(e)}function Un(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tm="__ec_primitive__";function vf(t){t[tm]=!0}function fo(t){return t[tm]}var Uw=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 tt(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),rm=typeof Map=="function";function Vw(){return rm?new Map:new Uw}var Hw=function(){function t(e){var r=Pe(e);this.data=Vw();var n=this;e instanceof t?e.each(i):e&&G(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 rm?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function qe(t){return new Hw(t)}function Gw(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 ql(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&_e(r,e),r}function ko(t,e){return t.hasOwnProperty(e)}function pr(){}var Qs=180/Math.PI;function ka(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Ww(t){return[t[0],t[1]]}function td(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function jw(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Xw(t){return Math.sqrt(qw(t))}function qw(t){return t[0]*t[0]+t[1]*t[1]}function Fu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Kw(t,e){var r=Xw(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function df(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var pf=df;function Yw(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var pa=Yw;function $u(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 Er(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 fa(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function ha(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var qi=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),Zw=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 qi(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 qi(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 qi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new qi(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new qi(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new qi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),An=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}(),Qw=Math.log(2);function gf(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)/Qw);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*t[r][h]*gf(t,e-1,f,u,i|d,a),v++)}return a[o]=c,c}function Jw(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=gf(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)*gf(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 rd="___zrEVENTSAVED";function eC(t,e,r,n,i){if(e.getBoundingClientRect&&lt.domSupported&&!nm(e)){var a=e[rd]||(e[rd]={}),o=tC(e,a),s=rC(o,a);if(s)return s(t,r,n),!0}return!1}function tC(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 rC(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,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=Jw(o,s))}function nm(t){return t.nodeName.toUpperCase()==="CANVAS"}var nC=/([&<>"'])/g,iC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function aC(t){return t==null?"":(t+"").replace(nC,function(e,r){return iC[r]})}var oC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,zu=[],sC=lt.browser.firefox&&+lt.browser.version.split(".")[0]<39;function yf(t,e,r,n){return r=r||{},n?nd(t,e,r):sC&&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):nd(t,e,r),r}function nd(t,e,r){if(lt.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(nm(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(eC(zu,t,n,i)){r.zrX=zu[0],r.zrY=zu[1];return}}r.zrX=r.zrY=0}function kh(t){return t||window.event}function Ur(t,e,r){if(e=kh(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&&yf(t,o,e,r)}else{yf(t,e,e,r);var a=lC(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&oC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function lC(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 uC(t,e,r,n){t.addEventListener(e,r,n)}function cC(t,e,r,n){t.removeEventListener(e,r,n)}var fC=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},hC=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=yf(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 Uu)if(Uu.hasOwnProperty(r)){var n=Uu[r](this._track,e);if(n)return n}},t}();function id(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function vC(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Uu={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=id(n)/id(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=vC(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function ho(){return[1,0,0,1,0,0]}function Mh(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function dC(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 ga(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 ad(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 im(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 pC(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 Ph(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 Fe=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}(),cs=Math.min,fs=Math.max,ci=new Fe,fi=new Fe,hi=new Fe,vi=new Fe,Ba=new Fe,Na=new Fe,ht=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=cs(e.x,this.x),n=cs(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fs(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fs(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=ho();return ad(a,a,[-r.x,-r.y]),pC(a,a,[n,i]),ad(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,h=!(a<l||u<i||s<f||c<o);if(r){var v=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(c-o),w=Math.min(p,g),k=Math.min(y,m);a<l||u<i?w>d&&(d=w,p<g?Fe.set(Na,-p,0):Fe.set(Na,g,0)):w<v&&(v=w,p<g?Fe.set(Ba,p,0):Fe.set(Ba,-g,0)),s<f||c<o?k>d&&(d=k,y<m?Fe.set(Na,0,-y):Fe.set(Na,0,m)):w<v&&(v=w,y<m?Fe.set(Ba,0,y):Fe.set(Ba,0,-m))}return r&&Fe.copy(r,h?Ba:Na),h},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}ci.x=hi.x=r.x,ci.y=vi.y=r.y,fi.x=vi.x=r.x+r.width,fi.y=hi.y=r.y+r.height,ci.transform(n),vi.transform(n),fi.transform(n),hi.transform(n),e.x=cs(ci.x,fi.x,hi.x,vi.x),e.y=cs(ci.y,fi.y,hi.y,vi.y);var l=fs(ci.x,fi.x,hi.x,vi.x),u=fs(ci.y,fi.y,hi.y,vi.y);e.width=l-e.x,e.height=u-e.y},t}(),am="silent";function gC(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:yC}}function yC(){fC(this.event)}var mC=function(t){be(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}(An),Fa=function(){function t(e,r){this.x=e,this.y=r}return t}(),_C=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Vu=new ht(0,0,0,0),om=function(t){be(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Fa(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new mC,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Zw(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(G(_C,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=sm(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 Fa(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 Fa(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=gC(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 Fa(r,n);if(od(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Vu.copy(h.getBoundingRect()),h.transform&&Vu.applyTransform(h.transform),Vu.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=r+g*Math.cos(y),w=n+g*Math.sin(y);if(od(s,o,m,w,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new hC);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 Fa;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(An);G(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){om.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=sm(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||pf(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function SC(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?am:!0}return!1}function od(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=SC(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==am)){e.target=o;break}}}function sm(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var lm=32,$a=7;function bC(t){for(var e=0;t>=lm;)e|=t&1,t>>=1;return t+e}function sd(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++;wC(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function wC(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function ld(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 Hu(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 Gu(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 CC(t,e){var r=$a,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=i[v],g=n[v+1],y=i[v+1];i[v]=p+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=Gu(t[g],t,d,p,0,e);d+=m,p-=m,p!==0&&(y=Hu(t[d+p-1],t,g,y,y-1,e),y!==0&&(p<=y?c(d,p,g,y):h(d,p,g,y)))}function c(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=t[v+y];var m=0,w=p,k=v;if(t[k++]=t[w++],--g===0){for(y=0;y<d;y++)t[k+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)t[k+y]=t[w+y];t[k+g]=o[m];return}for(var P=r,C,I,M;;){C=0,I=0,M=!1;do if(e(t[w],o[m])<0){if(t[k++]=t[w++],I++,C=0,--g===0){M=!0;break}}else if(t[k++]=o[m++],C++,I=0,--d===1){M=!0;break}while((C|I)<P);if(M)break;do{if(C=Gu(t[w],o,m,d,0,e),C!==0){for(y=0;y<C;y++)t[k+y]=o[m+y];if(k+=C,m+=C,d-=C,d<=1){M=!0;break}}if(t[k++]=t[w++],--g===0){M=!0;break}if(I=Hu(o[m],t,w,g,0,e),I!==0){for(y=0;y<I;y++)t[k+y]=t[w+y];if(k+=I,w+=I,g-=I,g===0){M=!0;break}}if(t[k++]=o[m++],--d===1){M=!0;break}P--}while(C>=$a||I>=$a);if(M)break;P<0&&(P=0),P+=2}if(r=P,r<1&&(r=1),d===1){for(y=0;y<g;y++)t[k+y]=t[w+y];t[k+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)t[k+y]=o[m+y]}}function h(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=t[p+y];var m=v+d-1,w=g-1,k=p+g-1,P=0,C=0;if(t[k--]=t[m--],--d===0){for(P=k-(g-1),y=0;y<g;y++)t[P+y]=o[y];return}if(g===1){for(k-=d,m-=d,C=k+1,P=m+1,y=d-1;y>=0;y--)t[C+y]=t[P+y];t[k]=o[w];return}for(var I=r;;){var M=0,b=0,T=!1;do if(e(o[w],t[m])<0){if(t[k--]=t[m--],M++,b=0,--d===0){T=!0;break}}else if(t[k--]=o[w--],b++,M=0,--g===1){T=!0;break}while((M|b)<I);if(T)break;do{if(M=d-Gu(o[w],t,v,d,d-1,e),M!==0){for(k-=M,m-=M,d-=M,C=k+1,P=m+1,y=M-1;y>=0;y--)t[C+y]=t[P+y];if(d===0){T=!0;break}}if(t[k--]=o[w--],--g===1){T=!0;break}if(b=g-Hu(t[m],o,0,g,g-1,e),b!==0){for(k-=b,w-=b,g-=b,C=k+1,P=w+1,y=0;y<b;y++)t[C+y]=o[P+y];if(g<=1){T=!0;break}}if(t[k--]=t[m--],--d===0){T=!0;break}I--}while(M>=$a||b>=$a);if(T)break;I<0&&(I=0),I+=2}if(r=I,r<1&&(r=1),g===1){for(k-=d,m-=d,C=k+1,P=m+1,y=d-1;y>=0;y--)t[C+y]=t[P+y];t[k]=o[w]}else{if(g===0)throw new Error;for(P=k-(g-1),y=0;y<g;y++)t[P+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Js(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<lm){a=sd(t,r,n,e),ld(t,r,n,r+a,e);return}var o=CC(t,e),s=bC(i);do{if(a=sd(t,r,n,e),a<s){var l=i;l>s&&(l=s),ld(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 on=1,ro=2,la=4,ud=!1;function Wu(){ud||(ud=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function cd(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var TC=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=cd}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,Js(n,cd)},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|=on),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)&&(Wu(),f.z=0),isNaN(f.z2)&&(Wu(),f.z2=0),isNaN(f.zlevel)&&(Wu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,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=gt(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}(),mf;mf=lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var vo={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-vo.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?vo.bounceIn(t*2)*.5:vo.bounceOut(t*2-1)*.5+.5}},hs=Math.pow,Xn=Math.sqrt,gl=1e-8,um=1e-4,fd=Xn(3),vs=1/3,sn=ka(),Ar=ka(),ya=ka();function Vn(t){return t>-gl&&t<gl}function cm(t){return t>gl||t<-gl}function Ft(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 hd(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function yl(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,h=l*l-3*s*u,v=0;if(Vn(f)&&Vn(c))if(Vn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=c*c-4*f*h;if(Vn(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=Xn(p),w=f*s+1.5*o*(-c+m),k=f*s+1.5*o*(-c-m);w<0?w=-hs(-w,vs):w=hs(w,vs),k<0?k=-hs(-k,vs):k=hs(k,vs);var d=(-s-(w+k))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var P=(2*f*s-3*o*c)/(2*Xn(f*f*f)),C=Math.acos(P)/3,I=Xn(f),M=Math.cos(C),d=(-s-2*I*M)/(3*o),y=(-s+I*(M+fd*Math.sin(C)))/(3*o),b=(-s+I*(M-fd*Math.sin(C)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),b>=0&&b<=1&&(a[v++]=b)}}return v}function fm(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(Vn(o)){if(cm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Vn(f))i[0]=-a/(2*o);else if(f>0){var c=Xn(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function ml(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 xC(t,e,r,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;sn[0]=l,sn[1]=u;for(var m=0;m<1;m+=.05)Ar[0]=Ft(t,r,i,o,m),Ar[1]=Ft(e,n,a,s,m),g=pa(sn,Ar),g<v&&(c=m,v=g);v=1/0;for(var w=0;w<32&&!(h<um);w++)d=c-h,p=c+h,Ar[0]=Ft(t,r,i,o,d),Ar[1]=Ft(e,n,a,s,d),g=pa(Ar,sn),d>=0&&g<v?(c=d,v=g):(ya[0]=Ft(t,r,i,o,p),ya[1]=Ft(e,n,a,s,p),y=pa(ya,sn),p<=1&&y<v?(c=p,v=y):h*=.5);return Xn(v)}function IC(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=Ft(t,r,i,o,d),g=Ft(e,n,a,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function Jt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function vd(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function AC(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Vn(a)){if(cm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Vn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Xn(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function hm(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function _l(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 kC(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;sn[0]=o,sn[1]=s;for(var h=0;h<1;h+=.05){Ar[0]=Jt(t,r,i,h),Ar[1]=Jt(e,n,a,h);var v=pa(sn,Ar);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<um);d++){var p=u-f,g=u+f;Ar[0]=Jt(t,r,i,p),Ar[1]=Jt(e,n,a,p);var v=pa(Ar,sn);if(p>=0&&v<c)u=p,c=v;else{ya[0]=Jt(t,r,i,g),ya[1]=Jt(e,n,a,g);var y=pa(ya,sn);g<=1&&y<c?(u=g,c=y):f*=.5}}return Xn(c)}function MC(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=Jt(t,r,i,h),d=Jt(e,n,a,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var PC=/cubic-bezier\(([0-9,\.e ]+)\)/;function Rh(t){var e=t&&PC.exec(t);if(e){var r=e[1].split(","),n=+Un(r[0]),i=+Un(r[1]),a=+Un(r[2]),o=+Un(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:yl(0,n,a,1,l,s)&&Ft(0,i,o,1,s[0])}}}var RC=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||pr,this.ondestroy=e.ondestroy||pr,this.onrestart=e.onrestart||pr,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=Xe(e)?e:vo[e]||Rh(e)},t}(),vm=function(){function t(e){this.value=e}return t}(),LC=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new vm(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}(),Zo=function(){function t(e){this._list=new LC,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 vm(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}(),dd={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 qn(t){return t=Math.round(t),t<0?0:t>255?255:t}function _f(t){return t<0?0:t>1?1:t}function ju(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?qn(parseFloat(e)/100*255):qn(parseInt(e,10))}function po(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?_f(parseFloat(e)/100):_f(parseFloat(e))}function Xu(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 ds(t,e,r){return t+(e-t)*r}function Tr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Sf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var dm=new Zo(20),ps=null;function Ki(t,e){ps&&Sf(ps,e),ps=dm.put(t,ps||e.slice())}function cn(t,e){if(t){e=e||[];var r=dm.get(t);if(r)return Sf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in dd)return Sf(e,dd[n]),Ki(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)){Tr(e,0,0,0,1);return}return Tr(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),Ki(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Tr(e,0,0,0,1);return}return Tr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ki(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?Tr(e,+u[0],+u[1],+u[2],1):Tr(e,0,0,0,1);f=po(u.pop());case"rgb":if(u.length>=3)return Tr(e,ju(u[0]),ju(u[1]),ju(u[2]),u.length===3?f:po(u[3])),Ki(t,e),e;Tr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Tr(e,0,0,0,1);return}return u[3]=po(u[3]),pd(u,e),Ki(t,e),e;case"hsl":if(u.length!==3){Tr(e,0,0,0,1);return}return pd(u,e),Ki(t,e),e;default:return}}Tr(e,0,0,0,1)}}function pd(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=po(t[1]),i=po(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Tr(e,qn(Xu(o,a,r+1/3)*255),qn(Xu(o,a,r)*255),qn(Xu(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function gd(t,e){var r=cn(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 Kl(r,r.length===4?"rgba":"rgb")}}function EC(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=cn(e[i]),s=cn(e[a]),l=n-i,u=Kl([qn(ds(o[0],s[0],l)),qn(ds(o[1],s[1],l)),qn(ds(o[2],s[2],l)),_f(ds(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Kl(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 Sl(t,e){var r=cn(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var yd=new Zo(100);function bf(t){if(Le(t)){var e=yd.get(t);return e||(e=gd(t,-.1),yd.put(t,e)),e}else if(Ih(t)){var r=_e({},t);return r.colorStops=xe(t.colorStops,function(n){return{offset:n.offset,color:gd(n.color,-.1)}}),r}return t}var bl=Math.round;function Mo(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=cn(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var md=1e-4;function Hn(t){return t<md&&t>-md}function gs(t){return bl(t*1e3)/1e3}function wf(t){return bl(t*1e4)/1e4}function DC(t){return"matrix("+gs(t[0])+","+gs(t[1])+","+gs(t[2])+","+gs(t[3])+","+wf(t[4])+","+wf(t[5])+")"}var OC={left:"start",right:"end",center:"middle",middle:"middle"};function BC(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function NC(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function FC(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 pm(t){return t&&!!t.image}function $C(t){return t&&!!t.svgElement}function Lh(t){return pm(t)||$C(t)}function gm(t){return t.type==="linear"}function ym(t){return t.type==="radial"}function mm(t){return t&&(t.type==="linear"||t.type==="radial")}function Yl(t){return"url(#"+t+")"}function _m(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 Sm(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Qs,i=Ne(t.scaleX,1),a=Ne(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("+bl(o*Qs)+"deg, "+bl(s*Qs)+"deg)"),l.join(" ")}var zC=function(){return lt.hasGlobalWindow&&Xe(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}}(),Cf=Array.prototype.slice;function bn(t,e,r){return(e-t)*r+t}function qu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=bn(e[a],r[a],n);return t}function UC(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]=bn(e[o][s],r[o][s],n)}return t}function ys(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function _d(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 VC(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 HC(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]:Cf.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 el(t){if(ar(t)){var e=t.length;if(ar(t[0])){for(var r=[],n=0;n<e;n++)r.push(Cf.call(t[n]));return r}return Cf.call(t)}return t}function tl(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 GC(t){return ar(t&&t[0])?2:1}var ms=0,rl=1,bm=2,no=3,Tf=4,xf=5,Sd=6;function bd(t){return t===Tf||t===xf}function _s(t){return t===rl||t===bm}var za=[0,0,0,0],WC=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=Sd,l=r;if(ar(r)){var u=GC(r);s=u,(u===1&&!dt(r[0])||u===2&&!dt(r[0][0]))&&(o=!0)}else if(dt(r)&&!pl(r))s=ms;else if(Le(r))if(!isNaN(+r))s=ms;else{var f=cn(r);f&&(l=f,s=no)}else if(Ih(r)){var c=_e({},l);c.colorStops=xe(r.colorStops,function(v){return{offset:v.offset,color:cn(v.color)}}),gm(r)?s=Tf:ym(r)&&(s=xf),l=c}a===0?this.valType=s:(s!==this.valType||s===Sd)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Xe(n)?n:vo[n]||Rh(n)),i.push(h),h},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=_s(i),u=bd(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/e,s||(l&&f!==a-1?HC(h,v,i):u&&VC(h.colorStops,v.colorStops))}if(!s&&i!==xf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===ms?n[f].additiveValue=n[f].value-d:i===no?n[f].additiveValue=ys([],n[f].value,d,-1):_s(i)&&(n[f].additiveValue=i===rl?ys([],n[f].value,d,-1):_d([],n[f].value,d,-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===no,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-v.percent,y=g===0?1:h((r-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?za:e[l];if((_s(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?v.rawValue:d.rawValue;else if(_s(a))a===rl?qu(m,v[i],d[i],y):UC(m,v[i],d[i],y);else if(bd(a)){var w=v[i],k=d[i],P=a===Tf;e[l]={type:P?"linear":"radial",x:bn(w.x,k.x,y),y:bn(w.y,k.y,y),colorStops:xe(w.colorStops,function(I,M){var b=k.colorStops[M];return{offset:bn(I.offset,b.offset,y),color:tl(qu([],I.color,b.color,y))}}),global:k.global},P?(e[l].x2=bn(w.x2,k.x2,y),e[l].y2=bn(w.y2,k.y2,y)):e[l].r=bn(w.r,k.r,y)}else if(u)qu(m,v[i],d[i],y),n||(e[l]=tl(m));else{var C=bn(v[i],d[i],y);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===ms?e[n]=e[n]+i:r===no?(cn(e[n],za),ys(za,za,i,1),e[n]=tl(za)):r===rl?ys(e[n],e[n],i,1):r===bm&&_d(e[n],e[n],i,1)},t}(),Eh=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){Jy("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,tt(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 WC(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===no&&u&&(u=tl(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,el(u),i),this._trackKeys.push(s)}l.addKeyframe(e,el(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 h=new RC({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,v);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.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 xe(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]=el(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||tt(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 va(){return new Date().getTime()}var jC=function(t){be(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=va()-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&&(mf(n),!r._paused&&r.update())}mf(n)},e.prototype.start=function(){this._running||(this._time=va(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=va(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=va()-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 Eh(r,n.loop);return this.addAnimator(i),i},e}(An),XC=300,Ku=lt.domSupported,Yu=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=xe(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),wd={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Cd=!1;function If(t){var e=t.pointerType;return e==="pen"||e==="touch"}function qC(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 Zu(t){t&&(t.zrByTouch=!0)}function KC(t,e){return Ur(t.dom,new YC(t,e),!0)}function wm(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 YC=function(){function t(e,r){this.stopPropagation=pr,this.stopImmediatePropagation=pr,this.preventDefault=pr,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Vr={mousedown:function(t){t=Ur(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ur(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=Ur(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ur(this.dom,t);var e=t.toElement||t.relatedTarget;wm(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Cd=!0,t=Ur(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Cd||(t=Ur(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ur(this.dom,t),Zu(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Vr.mousemove.call(this,t),Vr.mousedown.call(this,t)},touchmove:function(t){t=Ur(this.dom,t),Zu(t),this.handler.processGesture(t,"change"),Vr.mousemove.call(this,t)},touchend:function(t){t=Ur(this.dom,t),Zu(t),this.handler.processGesture(t,"end"),Vr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<XC&&Vr.click.call(this,t)},pointerdown:function(t){Vr.mousedown.call(this,t)},pointermove:function(t){If(t)||Vr.mousemove.call(this,t)},pointerup:function(t){Vr.mouseup.call(this,t)},pointerout:function(t){If(t)||Vr.mouseout.call(this,t)}};G(["click","dblclick","contextmenu"],function(t){Vr[t]=function(e){e=Ur(this.dom,e),this.trigger(t,e)}});var Af={pointermove:function(t){If(t)||Af.mousemove.call(this,t)},pointerup:function(t){Af.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 ZC(t,e){var r=e.domHandlers;lt.pointerEventsSupported?G(Yu.pointer,function(n){nl(e,n,function(i){r[n].call(t,i)})}):(lt.touchEventsSupported&&G(Yu.touch,function(n){nl(e,n,function(i){r[n].call(t,i),qC(e)})}),G(Yu.mouse,function(n){nl(e,n,function(i){i=kh(i),e.touching||r[n].call(t,i)})}))}function QC(t,e){lt.pointerEventsSupported?G(wd.pointer,r):lt.touchEventsSupported||G(wd.mouse,r);function r(n){function i(a){a=kh(a),wm(t,a.target)||(a=KC(t,a),e.domHandlers[n].call(t,a))}nl(e,n,i,{capture:!0})}}function nl(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,uC(t.domTarget,e,r,n)}function Qu(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&cC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Td=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),JC=function(t){be(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 Td(r,Vr),Ku&&(i._globalHandlerScope=new Td(document,Af)),ZC(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Qu(this._localHandlerScope),Ku&&Qu(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,Ku&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?QC(this,n):Qu(n)}},e}(An),Cm=1;lt.hasGlobalWindow&&(Cm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xd=Cm,kf=.4,Mf="#333",Pf="#ccc",eT="#eee",Id=Mh,Ad=5e-5;function di(t){return t>Ad||t<-Ad}var pi=[],Yi=[],Ju=ho(),ec=Math.abs,Dh=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 di(this.rotation)||di(this.x)||di(this.y)||di(this.scaleX-1)||di(this.scaleY-1)||di(this.skewX)||di(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Id(n),this.invTransform=null);return}n=n||ho(),r?this.getLocalTransform(n):Id(n),e&&(r?ga(n,e,n):dC(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(pi);var n=pi[0]<0?-1:1,i=pi[1]<0?-1:1,a=((pi[0]-n)*r+n)/pi[0]||0,o=((pi[1]-i)*r+i)/pi[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ho(),Ph(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||ho(),ga(Yi,e.invTransform,r),r=Yi);var n=this.originX,i=this.originY;(n||i)&&(Ju[4]=n,Ju[5]=i,ga(Yi,r,Ju),Yi[4]-=n,Yi[5]-=i,r=Yi),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&&Er(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&Er(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&ec(e[0]-1)>1e-10&&ec(e[3]-1)>1e-10?Math.sqrt(ec(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Tm(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,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-h*p*o,r[5]=-p*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&im(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}(),Po=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Tm(t,e){for(var r=0;r<Po.length;r++){var n=Po[r];t[n]=e[n]}}var kd={};function gr(t,e){e=e||Zn;var r=kd[e];r||(r=kd[e]=new Zo(500));var n=r.get(t);return n==null&&(n=Ko.measureText(t,e).width,r.put(t,n)),n}function Md(t,e,r,n){var i=gr(t,e),a=Zl(e),o=io(0,i,r),s=ua(0,a,n),l=new ht(o,s,i,a);return l}function xm(t,e,r,n){var i=((t||"")+"").split(`
  38. `),a=i.length;if(a===1)return Md(i[0],e,r,n);for(var o=new ht(0,0,0,0),s=0;s<i.length;s++){var l=Md(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function io(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function ua(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function Zl(t){return gr("国",t)}function Jn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function wl(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+=Jn(n[0],r.width),u+=Jn(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 tc="__zr_normal__",rc=Po.concat(["ignore"]),tT=Qn(Po,function(t,e){return t[e]=!0,t},{ignore:!1}),Zi={},rT=new ht(0,0,0,0),Ql=function(){function t(e){this.id=Qy(),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=rT;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Zi,n,f):wl(Zi,n,f),a.x=Zi.x,a.y=Zi.y,o=Zi.align,s=Zi.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,v=void 0;c==="center"?(h=f.width*.5,v=f.height*.5):(h=Jn(c[0],f.width),v=Jn(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,w=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),w=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),w=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||w!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=w,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=on,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()?Pf:Mf},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&cn(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,Kl(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||{},_e(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(Oe(e))for(var n=e,i=tt(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!==tc)){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,rc)},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(tc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===tc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(gt(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){Jy("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,h=this._textGuide;return c&&c.useState(e,r,n,f),h&&h.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&=~on),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],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,r,h),g&&g.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~on)}},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=gt(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=gt(i,e),o=gt(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];_e(r,a),a.textConfig&&(n=n||{},_e(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=_e({},i?this.textConfig:n.textConfig),_e(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<rc.length;f++){var c=rc[f],h=a&&tT[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]: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 Dh,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),_e(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|=on;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 Eh(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=gt(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){nc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){nc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=nc(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=on;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}();jr(Ql,An);jr(Ql,Dh);function nc(t,e,r,n,i){r=r||{};var a=[];Im(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(d,p){r.during(p)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function ic(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function nT(t){return ar(t[0])}function iT(t,e,r){if(ar(e[r]))if(ar(t[r])||(t[r]=[]),or(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),ic(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(nT(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?ic(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else ic(a,i,o);a.length=i.length}else t[r]=e[r]}function aT(t,e){return t===e||ar(t)&&ar(e)&&oT(t,e)}function oT(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 Im(t,e,r,n,i,a,o,s){for(var l=tt(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!Oe(a),d=t.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&r[y]!=null&&(v||a[y]))if(Oe(m)&&!ar(m)&&!Ih(m)){if(e){s||(r[y]=m,t.updateDuringAnimation(e));continue}Im(t,y,r[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(r[y]=m,t.updateDuringAnimation(e),p.push(y))}var w=p.length;if(!c&&w)for(var k=0;k<d.length;k++){var P=d[k];if(P.targetName===e){var C=P.stopTracks(p);if(C){var I=gt(d,P);d.splice(I,1)}}}if(i.force||(p=Gt(p,function(_){return!aT(n[_],r[_])}),w=p.length),w>0||i.force&&!o.length){var M=void 0,b=void 0,T=void 0;if(s){b={},h&&(M={});for(var k=0;k<w;k++){var y=p[k];b[y]=r[y],h?M[y]=n[y]:r[y]=n[y]}}else if(h){T={};for(var k=0;k<w;k++){var y=p[k];T[y]=el(r[y]),iT(r,n,y)}}var P=new Eh(r,!1,!1,c?Gt(d,function(x){return x.targetName===e}):null);P.targetName=e,i.scope&&(P.scope=i.scope),h&&M&&P.whenWithKeys(0,M,p),T&&P.whenWithKeys(0,T,p),P.whenWithKeys(u??500,s?b:n,p).delay(f||0),t.addAnimator(P,e),o.push(P)}}var At=function(t){be(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=gt(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=gt(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 ht(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?(ht.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Ql);At.prototype.type="group";/*!
  39. * ZRender, a high performance 2d drawing library.
  40. *
  41. * Copyright (c) 2013, Baidu Inc.
  42. * All rights reserved.
  43. *
  44. * LICENSE
  45. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  46. */var il={},Am={};function sT(t){delete Am[t]}function lT(t){if(!t)return!1;if(typeof t=="string")return Sl(t,1)<kf;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Sl(e[i].color,1);return r/=n,r<kf}return!1}var uT=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 TC,o=n.renderer||"canvas";il[o]||(o=tt(il)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new il[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!lt.node&&!lt.worker&&!l?new JC(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?lt.touchEventsSupported:!!f,h=44,v;c&&(v=Ne(n.pointerSize,h)),this.handler=new om(a,s,u,s.root,v),this.animation=new jC({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=lT(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=va();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=va();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 At&&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,sT(this.id))},t}();function Pd(t,e){var r=new uT(Qy(),t,e);return Am[r.id]=r,r}function cT(t,e){il[t]=e}var Rf;function fT(t){if(typeof Rf=="function")return Rf(t)}function hT(t){Rf=t}var Rd=1e-4,km=20;function vT(t){return t.replace(/^\s+|\s+$/g,"")}function Lf(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 vt(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 Le(t)?vT(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function wt(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),km),t=(+t).toFixed(e),r?t:+t}function wn(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 dT(t)}function dT(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 pT(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 gT(t,e){var r=Qn(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=xe(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=xe(i,function(v){return Math.floor(v)}),s=Qn(o,function(v,d){return v+d},0),l=xe(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return xe(o,function(v){return v/n})}function yT(t,e){var r=Math.max(wn(t),wn(e)),n=t+e;return r>km?n:wt(n,r)}function Mm(t){var e=Math.PI*2;return(t%e+e)%e}function Cl(t){return t>-Rd&&t<Rd}var mT=/^(?:(\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 ei(t){if(t instanceof Date)return t;if(Le(t)){var e=mT.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 _T(t){return Math.pow(10,Oh(t))}function Oh(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 Pm(t,e){var r=Oh(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 ST(t){var e=parseFloat(t);return e==t&&(e!==0||!Le(t)||t.indexOf("x")<=0)?e:NaN}function bT(t){return!isNaN(ST(t))}function wT(){return Math.round(Math.random()*9)}function Rm(t,e){return e===0?t:Rm(e,t%e)}function Ld(t,e){return t==null?e:e==null?t:t*e/Rm(t,e)}function vr(t){throw new Error(t)}function Ed(t,e,r){return(e-t)*r+t}var Lm="series\0",CT="\0_ec_\0";function Kt(t){return t instanceof Array?t:t==null?[]:[t]}function Ef(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 Dd=["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 Qo(t){return Oe(t)&&!Pe(t)&&!(t instanceof Date)?t.value:t}function TT(t){return Oe(t)&&!(t instanceof Array)}function xT(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=qe();G(e,function(l,u){if(!Oe(l)){e[u]=null;return}});var s=IT(t,o,r);return(n||i)&&AT(s,t,o,e),n&&kT(s,e),n||i?MT(s,e,i):a&&PT(s,e),RT(s),s}function IT(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"||Ro(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function AT(t,e,r,n){G(n,function(i,a){if(!(!i||i.id==null)){var o=go(i.id),s=r.get(o);if(s!=null){var l=t[s];vn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function kT(t,e){G(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)&&!Ro(r)&&!Ro(a)&&Em("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function MT(t,e,r){G(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||Ro(i.existing)||i.existing&&n.id!=null&&!Em("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function PT(t,e){G(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function RT(t){var e=qe();G(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),G(t,function(r){var n=r.newOption;vn(!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={})}),G(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Oe(a)){if(o.name=a.name!=null?go(a.name):i?i.name:Lm+n,i)o.id=go(i.id);else if(a.id!=null)o.id=go(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 Em(t,e,r){var n=fn(e[t],null),i=fn(r[t],null);return n!=null&&i!=null&&n===i}function go(t){return fn(t,"")}function fn(t,e){return t==null?e:Le(t)?t:dt(t)||zw(t)?t+"":e}function Bh(t){var e=t.name;return!!(e&&e.indexOf(Lm))}function Ro(t){return t&&t.id!=null&&go(t.id).indexOf(CT)===0}function LT(t,e,r){G(t,function(n){var i=n.newOption;Oe(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=ET(e,i,n.existing,r))})}function ET(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function wa(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Pe(e.dataIndex)?xe(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Pe(e.name)?xe(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Lt(){var t="__ec_inner_"+DT++;return function(e){return e[t]||(e[t]={})}}var DT=wT();function ac(t,e,r){var n=Dm(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=Jl(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 Dm(t,e){var r;if(Le(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=qe(),a={},o=!1;return G(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&&gt(e.includeMainTypes,f)<0)){o=o||!!f;var h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Wr={useDefault:!0,enableAll:!1,enableNone:!1};function Jl(t,e,r,n){n=n||Wr;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?(vn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(vn(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 Om(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function OT(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function BT(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(dt(n)){var o=Ed(r||0,n,i);return wt(o,a?Math.max(wn(r||0),wn(n)):e)}else{if(Le(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 h=t.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Ed(v,d,i);s[c]=wt(o,a?Math.max(wn(v),wn(d)):e)}}return s}}var NT=".",gi="___EC__COMPONENT__CONTAINER___",Bm="___EC__EXTENDED_CLASS___";function un(t){var e={main:"",sub:""};if(t){var r=t.split(NT);e.main=r[0]||"",e.sub=r[1]||""}return e}function FT(t){vn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function $T(t){return!!(t&&t[Bm])}function Nh(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return zT(n)?i=function(a){be(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Nw(i,this)),_e(i.prototype,r),i[Bm]=!0,i.extend=this.extend,i.superCall=HT,i.superApply=GT,i.superClass=n,i}}function zT(t){return Xe(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Nm(t,e){t.extend=e.extend}var UT=Math.round(Math.random()*10);function VT(t){var e=["__\0is_clz",UT++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function HT(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 GT(t,e,r){return this.superClass.prototype[e].apply(t,r)}function eu(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){FT(i),n.prototype.type=i;var a=un(i);if(!a.sub)e[a.main]=n;else if(a.sub!==gi){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[gi]&&(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=un(n),a=[],o=e[i.main];return o&&o[gi]?G(o,function(s,l){l!==gi&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=un(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return G(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=un(n),a=e[i.main];return a&&a[gi]};function r(n){var i=e[n.main];return(!i||!i[gi])&&(i=e[n.main]={},i[gi]=!0),i}}function Lo(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&&gt(i,l)>=0||a&&gt(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var WT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jT=Lo(WT),XT=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return jT(this,e,r)},t}(),Df=new Zo(50);function qT(t){if(typeof t=="string"){var e=Df.get(t);return e&&e.image}else return t}function Fh(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=Df.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!tu(e)&&a.pending.push(o)):(e=Ko.loadImage(t,Od,Od),e.__zrImageSrc=t,Df.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Od(){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 tu(t){return t&&t.width&&t.height}var oc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function KT(t,e,r,n,i){if(!e)return"";var a=(t+"").split(`
  47. `);i=Fm(e,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=$m(a[o],i);return a.join(`
  48. `)}function Fm(t,e,r,n){n=n||{};var i=_e({},n);i.font=e,r=Ne(r,"..."),i.maxIterations=Ne(n.maxIterations,2);var a=i.minChar=Ne(n.minChar,0);i.cnCharWidth=gr("国",e);var o=i.ascCharWidth=gr("a",e);i.placeholder=Ne(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;var u=gr(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 $m(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=gr(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?YT(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=gr(t,n)}return t===""&&(t=e.placeholder),t}function YT(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 ZT(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,i=e.font,a=r==="truncate",o=Zl(i),s=Ne(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,c;f!=null&&(r==="break"||r==="breakAll")?c=t?zm(t,e.font,f,r==="breakAll",0).lines:[]:c=t?t.split(`
  49. `):[];var h=c.length*s,v=Ne(e.height,h);if(h>v&&u){var d=Math.floor(v/s);c=c.slice(0,d)}if(t&&a&&f!=null)for(var p=Fm(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<c.length;g++)c[g]=$m(c[g],p);for(var y=v,m=0,g=0;g<c.length;g++)m=Math.max(gr(c[g],i),m);f==null&&(f=m);var w=m;return n&&(y+=n[0]+n[2],w+=n[1]+n[3],f+=n[1]+n[3]),l&&(w=f),{lines:c,height:v,outerWidth:w,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:h,width:f}}var QT=function(){function t(){}return t}(),Bd=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),JT=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 ex(t,e){var r=new JT;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=oc.lastIndex=0,l;(l=oc.exec(t))!=null;){var u=l.index;u>s&&sc(r,t.substring(s,u),e,o),sc(r,l[2],e,o,l[1]),s=oc.lastIndex}s<t.length&&sc(r,t.substring(s,t.length),e,o);var f=[],c=0,h=0,v=e.padding,d=a==="truncate",p=e.lineOverflow==="truncate";function g(F,B,X){F.width=B,F.lineHeight=X,c+=X,h=Math.max(h,B)}e:for(var y=0;y<r.lines.length;y++){for(var m=r.lines[y],w=0,k=0,P=0;P<m.tokens.length;P++){var C=m.tokens[P],I=C.styleName&&e.rich[C.styleName]||{},M=C.textPadding=I.padding,b=M?M[1]+M[3]:0,T=C.font=I.font||e.font;C.contentHeight=Zl(T);var _=Ne(I.height,C.contentHeight);if(C.innerHeight=_,M&&(_+=M[0]+M[2]),C.height=_,C.lineHeight=co(I.lineHeight,e.lineHeight,_),C.align=I&&I.align||e.align,C.verticalAlign=I&&I.verticalAlign||"middle",p&&i!=null&&c+C.lineHeight>i){P>0?(m.tokens=m.tokens.slice(0,P),g(m,k,w),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var x=I.width,A=x==null||x==="auto";if(typeof x=="string"&&x.charAt(x.length-1)==="%")C.percentWidth=x,f.push(C),C.contentWidth=gr(C.text,T);else{if(A){var R=I.backgroundColor,N=R&&R.image;N&&(N=qT(N),tu(N)&&(C.width=Math.max(C.width,N.width*_/N.height)))}var E=d&&n!=null?n-k:null;E!=null&&E<C.width?!A||E<b?(C.text="",C.width=C.contentWidth=0):(C.text=KT(C.text,E-b,T,e.ellipsis,{minChar:e.truncateMinChar}),C.width=C.contentWidth=gr(C.text,T)):C.contentWidth=gr(C.text,T)}C.width+=b,k+=C.width,I&&(w=Math.max(w,C.lineHeight))}g(m,k,w)}r.outerWidth=r.width=Ne(n,h),r.outerHeight=r.height=Ne(i,c),r.contentHeight=c,r.contentWidth=h,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var C=f[y],U=C.percentWidth;C.width=parseInt(U,10)/100*r.width}return r}function sc(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 h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Jn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
  50. `),u=!0),n.accumWidth=d}else{var p=zm(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}else f=e.split(`
  51. `);for(var g=0;g<f.length;g++){var y=f[g],m=new QT;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:gr(y,l),!g&&!u){var w=(s[s.length-1]||(s[0]=new Bd)).tokens,k=w.length;k===1&&w[0].isLineHolder?w[0]=m:(y||!k||a)&&w.push(m)}else s.push(new Bd([m]))}}function tx(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var rx=Qn(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function nx(t){return tx(t)?!!rx[t]:!0}function zm(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<t.length;c++){var h=t.charAt(c);if(h===`
  52. `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=gr(h,e),d=n?!1:!nx(h);if(a.length?f+v>r:i+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}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 Of="__zr_style_"+Math.round(Math.random()*10),Fi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ru={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fi[Of]=!0;var Nd=["z","z2","invisible"],ix=["invisible"],ax=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=tt(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&&ox(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 ht(0,0,0,0)),n?ht.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 ht(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:_e(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ro,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ro)},e.prototype.styleUpdated=function(){this.__dirty&=~ro},e.prototype.createStyle=function(r){return ql(Fi,r)},e.prototype.useStyle=function(r){r[Of]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Of]},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,Nd)},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=tt(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=tt(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?ix:Nd,h=0;h<p.length;h++){var v=p[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},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 _e(r,n),r},e.prototype.getAnimationStyleProps=function(){return ru},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=on|ro}(),e}(Ql),lc=new ht(0,0,0,0),uc=new ht(0,0,0,0);function ox(t,e,r){return lc.copy(t.getBoundingRect()),t.transform&&lc.applyTransform(t.transform),uc.width=e,uc.height=r,!lc.intersect(uc)}const Jo=ax;var kr=Math.min,Mr=Math.max,cc=Math.sin,fc=Math.cos,yi=Math.PI*2,Ss=ka(),bs=ka(),ws=ka();function Fd(t,e,r,n,i,a){i[0]=kr(t,r),i[1]=kr(e,n),a[0]=Mr(t,r),a[1]=Mr(e,n)}var $d=[],zd=[];function sx(t,e,r,n,i,a,o,s,l,u){var f=fm,c=Ft,h=f(t,r,i,o,$d);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(t,r,i,o,$d[v]);l[0]=kr(d,l[0]),u[0]=Mr(d,u[0])}h=f(e,n,a,s,zd);for(var v=0;v<h;v++){var p=c(e,n,a,s,zd[v]);l[1]=kr(p,l[1]),u[1]=Mr(p,u[1])}l[0]=kr(t,l[0]),u[0]=Mr(t,u[0]),l[0]=kr(o,l[0]),u[0]=Mr(o,u[0]),l[1]=kr(e,l[1]),u[1]=Mr(e,u[1]),l[1]=kr(s,l[1]),u[1]=Mr(s,u[1])}function lx(t,e,r,n,i,a,o,s){var l=hm,u=Jt,f=Mr(kr(l(t,r,i),1),0),c=Mr(kr(l(e,n,a),1),0),h=u(t,r,i,f),v=u(e,n,a,c);o[0]=kr(t,i,h),o[1]=kr(e,a,v),s[0]=Mr(t,i,h),s[1]=Mr(e,a,v)}function ux(t,e,r,n,i,a,o,s,l){var u=fa,f=ha,c=Math.abs(i-a);if(c%yi<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Ss[0]=fc(i)*r+t,Ss[1]=cc(i)*n+e,bs[0]=fc(a)*r+t,bs[1]=cc(a)*n+e,u(s,Ss,bs),f(l,Ss,bs),i=i%yi,i<0&&(i=i+yi),a=a%yi,a<0&&(a=a+yi),i>a&&!o?a+=yi:i<a&&o&&(i+=yi),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(ws[0]=fc(v)*r+t,ws[1]=cc(v)*n+e,u(s,ws,s),f(l,ws,l))}var ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},mi=[],_i=[],Jr=[],Pn=[],en=[],tn=[],hc=Math.min,vc=Math.max,Si=Math.cos,bi=Math.sin,mn=Math.abs,Bf=Math.PI,$n=Bf*2,dc=typeof Float32Array<"u",Ua=[];function pc(t){var e=Math.round(t/Bf*1e8)/1e8;return e%2*Bf}function Um(t,e){var r=pc(t[0]);r<0&&(r+=$n);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=$n?i=r+$n:e&&r-i>=$n?i=r-$n:!e&&r>i?i=r+($n-pc(r-i)):e&&r<i&&(i=r-($n-pc(i-r))),t[0]=r,t[1]=i}var ti=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=mn(n/xd/e)||0,this._uy=mn(n/xd/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(ot.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=mn(e-this._xi),i=mn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ot.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(ot.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(ot.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(),Ua[0]=i,Ua[1]=a,Um(Ua,o),i=Ua[0],a=Ua[1];var s=a-i;return this.addData(ot.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Si(a)*n+e,this._yi=bi(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(ot.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ot.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)&&dc&&(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();dc&&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,dc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Jr[0]=Jr[1]=en[0]=en[1]=Number.MAX_VALUE,Pn[0]=Pn[1]=tn[0]=tn[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 ot.M:r=i=e[o++],n=a=e[o++],en[0]=i,en[1]=a,tn[0]=i,tn[1]=a;break;case ot.L:Fd(r,n,e[o],e[o+1],en,tn),r=e[o++],n=e[o++];break;case ot.C:sx(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],en,tn),r=e[o++],n=e[o++];break;case ot.Q:lx(r,n,e[o++],e[o++],e[o],e[o+1],en,tn),r=e[o++],n=e[o++];break;case ot.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var p=!e[o++];l&&(i=Si(v)*c+u,a=bi(v)*h+f),ux(u,f,c,h,v,d,p,en,tn),r=Si(d)*c+u,n=bi(d)*h+f;break;case ot.R:i=r=e[o++],a=n=e[o++];var g=e[o++],y=e[o++];Fd(i,a,i+g,a+y,en,tn);break;case ot.Z:r=i,n=a;break}fa(Jr,Jr,en),ha(Pn,Pn,tn)}return o===0&&(Jr[0]=Jr[1]=Pn[0]=Pn[1]=0),new ht(Jr[0],Jr[1],Pn[0]-Jr[0],Pn[1]-Jr[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,h=0;h<r;){var v=e[h++],d=h===1;d&&(a=e[h],o=e[h+1],s=a,l=o);var p=-1;switch(v){case ot.M:a=s=e[h++],o=l=e[h++];break;case ot.L:{var g=e[h++],y=e[h++],m=g-a,w=y-o;(mn(m)>n||mn(w)>i||h===r-1)&&(p=Math.sqrt(m*m+w*w),a=g,o=y);break}case ot.C:{var k=e[h++],P=e[h++],g=e[h++],y=e[h++],C=e[h++],I=e[h++];p=IC(a,o,k,P,g,y,C,I,10),a=C,o=I;break}case ot.Q:{var k=e[h++],P=e[h++],g=e[h++],y=e[h++];p=MC(a,o,k,P,g,y,10),a=g,o=y;break}case ot.A:var M=e[h++],b=e[h++],T=e[h++],_=e[h++],x=e[h++],A=e[h++],R=A+x;h+=1,d&&(s=Si(x)*T+M,l=bi(x)*_+b),p=vc(T,_)*hc($n,Math.abs(A)),a=Si(R)*T+M,o=bi(R)*_+b;break;case ot.R:{s=a=e[h++],l=o=e[h++];var N=e[h++],E=e[h++];p=N*2+E*2;break}case ot.Z:{var m=s-a,w=l-o;p=Math.sqrt(m*m+w*w),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,h,v=r<1,d,p,g=0,y=0,m,w=0,k,P;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m)))e:for(var C=0;C<o;){var I=n[C++],M=C===1;switch(M&&(u=n[C],f=n[C+1],s=u,l=f),I!==ot.L&&w>0&&(e.lineTo(k,P),w=0),I){case ot.M:s=u=n[C++],l=f=n[C++],e.moveTo(u,f);break;case ot.L:{c=n[C++],h=n[C++];var b=mn(c-u),T=mn(h-f);if(b>i||T>a){if(v){var _=d[y++];if(g+_>m){var x=(m-g)/_;e.lineTo(u*(1-x)+c*x,f*(1-x)+h*x);break e}g+=_}e.lineTo(c,h),u=c,f=h,w=0}else{var A=b*b+T*T;A>w&&(k=c,P=h,w=A)}break}case ot.C:{var R=n[C++],N=n[C++],E=n[C++],U=n[C++],F=n[C++],B=n[C++];if(v){var _=d[y++];if(g+_>m){var x=(m-g)/_;ml(u,R,E,F,x,mi),ml(f,N,U,B,x,_i),e.bezierCurveTo(mi[1],_i[1],mi[2],_i[2],mi[3],_i[3]);break e}g+=_}e.bezierCurveTo(R,N,E,U,F,B),u=F,f=B;break}case ot.Q:{var R=n[C++],N=n[C++],E=n[C++],U=n[C++];if(v){var _=d[y++];if(g+_>m){var x=(m-g)/_;_l(u,R,E,x,mi),_l(f,N,U,x,_i),e.quadraticCurveTo(mi[1],_i[1],mi[2],_i[2]);break e}g+=_}e.quadraticCurveTo(R,N,E,U),u=E,f=U;break}case ot.A:var X=n[C++],Z=n[C++],q=n[C++],se=n[C++],ce=n[C++],Q=n[C++],J=n[C++],ee=!n[C++],ue=q>se?q:se,fe=mn(q-se)>.001,he=ce+Q,te=!1;if(v){var _=d[y++];g+_>m&&(he=ce+Q*(m-g)/_,te=!0),g+=_}if(fe&&e.ellipse?e.ellipse(X,Z,q,se,J,ce,he,ee):e.arc(X,Z,ue,ce,he,ee),te)break e;M&&(s=Si(ce)*q+X,l=bi(ce)*se+Z),u=Si(he)*q+X,f=bi(he)*se+Z;break;case ot.R:s=u=n[C],l=f=n[C+1],c=n[C++],h=n[C++];var ie=n[C++],Ae=n[C++];if(v){var _=d[y++];if(g+_>m){var ne=m-g;e.moveTo(c,h),e.lineTo(c+hc(ne,ie),h),ne-=ie,ne>0&&e.lineTo(c+ie,h+hc(ne,Ae)),ne-=Ae,ne>0&&e.lineTo(c+vc(ie-ne,0),h+Ae),ne-=ie,ne>0&&e.lineTo(c,h+vc(Ae-ne,0));break e}g+=_}e.rect(c,h,ie,Ae);break;case ot.Z:if(v){var _=d[y++];if(g+_>m){var x=(m-g)/_;e.lineTo(u*(1-x)+s*x,f*(1-x)+l*x);break e}g+=_}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=ot,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Qi(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 cx(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 h=xC(t,e,r,n,i,a,o,s,u,f);return h<=c/2}function fx(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=kC(t,e,r,n,i,a,s,l);return f<=u/2}var Ud=Math.PI*2;function Cs(t){return t%=Ud,t<0&&(t+=Ud),t}var Va=Math.PI*2;function hx(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)%Va<1e-4)return!0;if(a){var c=n;n=Cs(i),i=Cs(c)}else n=Cs(n),i=Cs(i);n>i&&(i+=Va);var h=Math.atan2(l,s);return h<0&&(h+=Va),h>=n&&h<=i||h+Va>=n&&h+Va<=i}function wi(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 Rn=ti.CMD,Ci=Math.PI*2,vx=1e-4;function dx(t,e){return Math.abs(t-e)<vx}var Xt=[-1,-1,-1],Ir=[-1,-1];function px(){var t=Ir[0];Ir[0]=Ir[1],Ir[1]=t}function gx(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=yl(e,n,a,s,u,Xt);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=Xt[p],y=g===0||g===1?.5:1,m=Ft(t,r,i,o,g);m<l||(h<0&&(h=fm(e,n,a,s,Ir),Ir[1]<Ir[0]&&h>1&&px(),v=Ft(e,n,a,s,Ir[0]),h>1&&(d=Ft(e,n,a,s,Ir[1]))),h===2?g<Ir[0]?c+=v<e?y:-y:g<Ir[1]?c+=d<v?y:-y:c+=s<d?y:-y:g<Ir[0]?c+=v<e?y:-y:c+=s<v?y:-y)}return c}function yx(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=AC(e,n,a,s,Xt);if(l===0)return 0;var u=hm(e,n,a);if(u>=0&&u<=1){for(var f=0,c=Jt(e,n,a,u),h=0;h<l;h++){var v=Xt[h]===0||Xt[h]===1?.5:1,d=Jt(t,r,i,Xt[h]);d<o||(Xt[h]<u?f+=c<e?v:-v:f+=a<c?v:-v)}return f}else{var v=Xt[0]===0||Xt[0]===1?.5:1,d=Jt(t,r,i,Xt[0]);return d<o?0:a<e?v:-v}}function mx(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);Xt[0]=-l,Xt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ci-1e-4){n=0,i=Ci;var f=a?1:-1;return o>=Xt[0]+t&&o<=Xt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ci,i+=Ci);for(var h=0,v=0;v<2;v++){var d=Xt[v];if(d+t>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Ci+p),(p>=n&&p<=i||p+Ci>=n&&p+Ci<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function Vm(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Rn.M&&d>1&&(r||(s+=wi(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case Rn.M:f=a[d++],c=a[d++],l=f,u=c;break;case Rn.L:if(r){if(Qi(l,u,a[d],a[d+1],e,n,i))return!0}else s+=wi(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rn.C:if(r){if(cx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=gx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rn.Q:if(r){if(fx(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=yx(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Rn.A:var y=a[d++],m=a[d++],w=a[d++],k=a[d++],P=a[d++],C=a[d++];d+=1;var I=!!(1-a[d++]);h=Math.cos(P)*w+y,v=Math.sin(P)*k+m,g?(f=h,c=v):s+=wi(l,u,h,v,n,i);var M=(n-y)*k/w+y;if(r){if(hx(y,m,k,P,P+C,I,e,M,i))return!0}else s+=mx(y,m,k,P,P+C,I,M,i);l=Math.cos(P+C)*w+y,u=Math.sin(P+C)*k+m;break;case Rn.R:f=l=a[d++],c=u=a[d++];var b=a[d++],T=a[d++];if(h=f+b,v=c+T,r){if(Qi(f,c,h,c,e,n,i)||Qi(h,c,h,v,e,n,i)||Qi(h,v,f,v,e,n,i)||Qi(f,v,f,c,e,n,i))return!0}else s+=wi(h,c,h,v,n,i),s+=wi(f,v,f,c,n,i);break;case Rn.Z:if(r){if(Qi(l,u,f,c,e,n,i))return!0}else s+=wi(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!dx(u,c)&&(s+=wi(l,u,f,c,n,i)||0),s!==0}function _x(t,e,r){return Vm(t,0,!1,e,r)}function Sx(t,e,r,n){return Vm(t,e,!0,r,n)}var Tl=Ze({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Fi),bx={style:Ze({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ru.style)},gc=Po.concat(["invisible","culling","z","z2","zlevel","parent"]),it=function(t){be(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<gc.length;++s)i[gc[s]]=this[gc[s]];i.__dirty|=on}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=tt(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?_e(this.style,s):this.useStyle(s):o==="shape"?_e(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(Le(r)){var n=Sl(r,0);return n>.5?Mf:n>.2?eT:Pf}else if(r)return Pf}return Mf},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Le(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Sl(r,0)<kf;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~la},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 ti(!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&la)&&(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)),Sx(s,l/u,r,n)))return!0}if(this.hasFill())return _x(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=la,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:_e(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&la)},e.prototype.createStyle=function(r){return ql(Tl,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=_e({},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=_e({},i.shape),_e(u,n.shape)):(u=_e({},a?this.shape:i.shape),_e(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=_e({},this.shape);for(var f={},c=tt(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}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 bx},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){be(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 et(r.style)},o.prototype.getDefaultShape=function(){return et(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=on|ro|la}(),e}(Jo),Cx=Ze({strokeFirst:!0,font:Zn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Tl),Eo=function(t){be(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 ql(Cx,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=xm(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}(Jo);Eo.prototype.type="tspan";var Tx=Ze({x:0,y:0},Fi),xx={style:Ze({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ru.style)};function Ix(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Xr=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ql(Tx,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Ix(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 xx},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ht(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Jo);Xr.prototype.type="image";function Ax(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 da=Math.round;function Hm(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&&(da(n*2)===da(i*2)&&(t.x1=t.x2=Oi(n,s,!0)),da(a*2)===da(o*2)&&(t.y1=t.y2=Oi(a,s,!0))),t}}function Gm(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=Oi(n,s,!0),t.y=Oi(i,s,!0),t.width=Math.max(Oi(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Oi(i+o,s,!1)-t.y,o===0?0:1)),t}}function Oi(t,e,r){if(!e)return t;var n=da(t*2);return(n+da(e))%2===0?n/2:(n+(r?1:-1))/2}var kx=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Mx={},Pt=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new kx},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Gm(Mx,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?Ax(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(it);Pt.prototype.type="rect";var Vd={fill:"#000"},Hd=2,Px={style:Ze({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},ru.style)},mr=function(t){be(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Vd,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,Ex(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 ht(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||Vd},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return _e(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=tt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},_e(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return Px},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||Zn,i=r.padding,a=Yd(r),o=ZT(a,r),s=yc(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,v=o.lineHeight,d=this._defaultStyle,p=r.x||0,g=r.y||0,y=r.align||d.align||"left",m=r.verticalAlign||d.verticalAlign||"top",w=p,k=ua(g,o.contentHeight,m);if(s||i){var P=io(p,f,y),C=ua(g,u,m);s&&this._renderBackground(r,r,P,C,f,u)}k+=v/2,i&&(w=Kd(p,y,i),m==="top"?k+=i[0]:m==="bottom"&&(k-=i[2]));for(var I=0,M=!1,b=qd("fill"in r?r.fill:(M=!0,d.fill)),T=Xd("stroke"in r?r.stroke:!l&&(!d.autoStroke||M)?(I=Hd,d.stroke):null),_=r.textShadowBlur>0,x=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),A=o.calculatedLineHeight,R=0;R<h.length;R++){var N=this._getOrCreateChild(Eo),E=N.createStyle();N.useStyle(E),E.text=h[R],E.x=w,E.y=k,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,_&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=T,E.fill=b,T&&(E.lineWidth=r.lineWidth||I,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,Wd(E,r),k+=v,x&&N.setBoundingRect(new ht(io(E.x,r.width,E.textAlign),ua(E.y,A,E.textBaseline),c,A))}},e.prototype._updateRichTexts=function(){var r=this.style,n=Yd(r),i=ex(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,h=r.align||c.align,v=r.verticalAlign||c.verticalAlign,d=io(u,o,h),p=ua(f,s,v),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+a;yc(r)&&this._renderBackground(r,r,d,p,o,s);for(var w=!!r.backgroundColor,k=0;k<i.lines.length;k++){for(var P=i.lines[k],C=P.tokens,I=C.length,M=P.lineHeight,b=P.width,T=0,_=g,x=m,A=I-1,R=void 0;T<I&&(R=C[T],!R.align||R.align==="left");)this._placeToken(R,r,M,y,_,"left",w),b-=R.width,_+=R.width,T++;for(;A>=0&&(R=C[A],R.align==="right");)this._placeToken(R,r,M,y,x,"right",w),b-=R.width,x-=R.width,A--;for(_+=(a-(_-g)-(m-x)-b)/2;T<=A;)R=C[T],this._placeToken(R,r,M,y,_+R.width/2,"center",w),_+=R.width,T++;y+=M}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&yc(u);h&&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 v=!!u.backgroundColor,d=r.textPadding;d&&(o=Kd(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(Eo),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,w=0,k=qd("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),P=Xd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(w=Hd,y.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||Zn,g.opacity=co(u.opacity,n.opacity,1),Wd(g,u),P&&(g.lineWidth=co(u.lineWidth,n.lineWidth,w),g.lineDash=Ne(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=P),k&&(g.fill=k);var I=r.contentWidth,M=r.contentHeight;p.setBoundingRect(new ht(io(g.x,I,g.textAlign),ua(g.y,M,g.textBaseline),I,M))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,v=r.borderRadius,d=this,p,g;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(Pt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=Ne(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Xr),g.onload=function(){d.dirtyStyle()};var w=g.style;w.image=l.image,w.x=i,w.y=a,w.width=o,w.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Ne(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var k=(p||g).style;k.shadowBlur=r.shadowBlur||0,k.shadowColor=r.shadowColor||"transparent",k.shadowOffsetX=r.shadowOffsetX||0,k.shadowOffsetY=r.shadowOffsetY||0,k.opacity=co(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return jm(r)&&(n=[r.fontStyle,r.fontWeight,Wm(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Un(n)||r.textFont||r.font},e}(Jo),Rx={left:!0,right:1,center:1},Lx={top:1,bottom:1,middle:1},Gd=["fontStyle","fontWeight","fontSize","fontFamily"];function Wm(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Ch+"px":t+"px"}function Wd(t,e){for(var r=0;r<Gd.length;r++){var n=Gd[r],i=e[n];i!=null&&(t[n]=i)}}function jm(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function Ex(t){return jd(t),G(t.rich,jd),t}function jd(t){if(t){t.font=mr.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||Rx[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||Lx[r]?r:"top";var n=t.padding;n&&(t.padding=em(t.padding))}}function Xd(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function qd(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Kd(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Yd(t){var e=t.text;return e!=null&&(e+=""),e}function yc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var yt=Lt(),Dx=function(t,e,r,n){if(n){var i=yt(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=yt(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Zd=1,Qd={},Xm=Lt(),$h=Lt(),zh=0,nu=1,iu=2,Dr=["emphasis","blur","select"],xl=["normal","emphasis","blur","select"],Ox=10,Bx=9,$i="highlight",al="downplay",yo="select",ol="unselect",mo="toggleSelect";function Ji(t){return t!=null&&t!=="none"}function au(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function qm(t){au(t,"emphasis",iu)}function Km(t){t.hoverState===iu&&au(t,"normal",zh)}function Uh(t){au(t,"blur",nu)}function Ym(t){t.hoverState===nu&&au(t,"normal",zh)}function Nx(t){t.selected=!0}function Fx(t){t.selected=!1}function Jd(t,e,r){e(t,r)}function kn(t,e,r){Jd(t,e,r),t.isGroup&&t.traverse(function(n){Jd(n,e,r)})}function ep(t,e){switch(e){case"emphasis":t.hoverState=iu;break;case"normal":t.hoverState=zh;break;case"blur":t.hoverState=nu;break;case"select":t.selected=!0}}function $x(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 zx(t,e,r,n){var i=r&&gt(r,"select")>=0,a=!1;if(t instanceof it){var o=Xm(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ji(s)||Ji(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=_e({},n),u=_e({},u),u.fill=s):!Ji(u.fill)&&Ji(s)?(a=!0,n=_e({},n),u=_e({},u),u.fill=bf(s)):!Ji(u.stroke)&&Ji(l)&&(a||(n=_e({},n),u=_e({},u)),u.stroke=bf(l)),n.style=u}}if(n&&n.z2==null){a||(n=_e({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??Ox)}return n}function Ux(t,e,r){if(r&&r.z2==null){r=_e({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??Bx)}return r}function Vx(t,e,r){var n=gt(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:$x(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=_e({},r),o=_e({opacity:n?i:a.opacity*.1},o),r.style=o),r}function mc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return zx(this,t,e,r);if(t==="blur")return Vx(this,t,r);if(t==="select")return Ux(this,t,r)}return r}function Hx(t){t.stateProxy=mc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=mc),r&&(r.stateProxy=mc)}function tp(t,e){!e0(t,e)&&!t.__highByOuter&&kn(t,qm)}function rp(t,e){!e0(t,e)&&!t.__highByOuter&&kn(t,Km)}function Il(t,e){t.__highByOuter|=1<<(e||0),kn(t,qm)}function Al(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&kn(t,Km)}function Gx(t){kn(t,Uh)}function Zm(t){kn(t,Ym)}function Qm(t){kn(t,Nx)}function Jm(t){kn(t,Fx)}function e0(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function t0(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=$h(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Ym(u)}),s&&r.push(a)),o.isBlured=!1}),G(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Nf(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Zm(h)}}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 h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Uh(g)}),ar(e))a(u.getData(),e);else if(Oe(e))for(var d=tt(e),p=0;p<d.length;p++)a(u.getData(d[p]),e[d[p]]);l.push(u),$h(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 Ff(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){$h(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Uh(a)})}}}function Wx(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=wa(i,e);a=(Pe(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=yt(o);Nf(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Nf(n,f,c,r)}}}function Vh(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(yt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function jx(t,e,r){var n=yt(t),i=Vh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Ff(n.componentMainType,n.componentIndex,r),G(a,function(s){return tp(s,e)})):(Nf(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Ff(n.componentMainType,n.componentIndex,r),tp(t,e))}function Xx(t,e,r){t0(r);var n=yt(t),i=Vh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?G(i,function(a){return rp(a,e)}):rp(t,e)}function qx(t,e,r){if(Uf(e)){var n=e.dataType,i=t.getData(n),a=wa(i,e);Pe(a)||(a=[a]),t[e.type===mo?"toggleSelect":e.type===yo?"select":"unselect"](a,n)}}function np(t){var e=t.getAllData();G(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Qm(a):Jm(a)})})}function Kx(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();G(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 $f(t,e,r){r0(t,!0),kn(t,Hx),Zx(t,e,r)}function Yx(t){r0(t,!1)}function Ca(t,e,r,n){n?Yx(t):$f(t,e,r)}function Zx(t,e,r){var n=yt(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var ip=["emphasis","blur","select"],Qx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ta(t,e,r,n){r=r||"itemStyle";for(var i=0;i<ip.length;i++){var a=ip[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[Qx[r]]()}}function r0(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 zf(t){return!!(t&&t.__highDownDispatcher)}function Jx(t){var e=Qd[t];return e==null&&Zd<=32&&(e=Qd[t]=Zd++),e}function Uf(t){var e=t.type;return e===yo||e===ol||e===mo}function ap(t){var e=t.type;return e===$i||e===al}function eI(t){var e=Xm(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 ea=ti.CMD,tI=[[],[],[]],op=Math.sqrt,rI=Math.atan2;function nI(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=ea.M,c=ea.C,h=ea.L,v=ea.R,d=ea.A,p=ea.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case d:var g=e[4],y=e[5],m=op(e[0]*e[0]+e[1]*e[1]),w=op(e[2]*e[2]+e[3]*e[3]),k=rI(-e[1]/w,e[0]/m);r[o]*=m,r[o++]+=g,r[o]*=w,r[o++]+=y,r[o++]*=m,r[o++]*=w,r[o++]+=k,r[o++]+=k,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],Er(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Er(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var P=tI[l];P[0]=r[o++],P[1]=r[o++],Er(P,P,e),r[s++]=P[0],r[s++]=P[1]}}t.increaseVersion()}}var _c=Math.sqrt,Ts=Math.sin,xs=Math.cos,Ha=Math.PI;function sp(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Vf(t,e){return(t[0]*e[0]+t[1]*e[1])/(sp(t)*sp(e))}function lp(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Vf(t,e))}function up(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Ha/180),h=xs(c)*(t-r)/2+Ts(c)*(e-n)/2,v=-1*Ts(c)*(t-r)/2+xs(c)*(e-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=_c(d),s*=_c(d));var p=(i===a?-1:1)*_c((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,y=p*-s*h/o,m=(t+r)/2+xs(c)*g-Ts(c)*y,w=(e+n)/2+Ts(c)*g+xs(c)*y,k=lp([1,0],[(h-g)/o,(v-y)/s]),P=[(h-g)/o,(v-y)/s],C=[(-1*h-g)/o,(-1*v-y)/s],I=lp(P,C);if(Vf(P,C)<=-1&&(I=Ha),Vf(P,C)>=1&&(I=0),I<0){var M=Math.round(I/Ha*1e6)/1e6;I=Ha*2+M%2*Ha}f.addData(u,m,w,o,s,k,I,c,a)}var iI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,aI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function oI(t){var e=new ti;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=ti.CMD,l=t.match(iI);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(aI)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,w=void 0,k=void 0,P=void 0,C=void 0,I=void 0,M=r,b=n,T=void 0,_=void 0;switch(c){case"l":r+=v[g++],n+=v[g++],h=s.L,e.addData(h,r,n);break;case"L":r=v[g++],n=v[g++],h=s.L,e.addData(h,r,n);break;case"m":r+=v[g++],n+=v[g++],h=s.M,e.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=v[g++],n=v[g++],h=s.M,e.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=v[g++],h=s.L,e.addData(h,r,n);break;case"H":r=v[g++],h=s.L,e.addData(h,r,n);break;case"v":n+=v[g++],h=s.L,e.addData(h,r,n);break;case"V":n=v[g++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),r=v[g-2],n=v[g-1];break;case"c":h=s.C,e.addData(h,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n),r+=v[g-2],n+=v[g-1];break;case"S":y=r,m=n,T=e.len(),_=e.data,o===s.C&&(y+=r-_[T-4],m+=n-_[T-3]),h=s.C,M=v[g++],b=v[g++],r=v[g++],n=v[g++],e.addData(h,y,m,M,b,r,n);break;case"s":y=r,m=n,T=e.len(),_=e.data,o===s.C&&(y+=r-_[T-4],m+=n-_[T-3]),h=s.C,M=r+v[g++],b=n+v[g++],r+=v[g++],n+=v[g++],e.addData(h,y,m,M,b,r,n);break;case"Q":M=v[g++],b=v[g++],r=v[g++],n=v[g++],h=s.Q,e.addData(h,M,b,r,n);break;case"q":M=v[g++]+r,b=v[g++]+n,r+=v[g++],n+=v[g++],h=s.Q,e.addData(h,M,b,r,n);break;case"T":y=r,m=n,T=e.len(),_=e.data,o===s.Q&&(y+=r-_[T-4],m+=n-_[T-3]),r=v[g++],n=v[g++],h=s.Q,e.addData(h,y,m,r,n);break;case"t":y=r,m=n,T=e.len(),_=e.data,o===s.Q&&(y+=r-_[T-4],m+=n-_[T-3]),r+=v[g++],n+=v[g++],h=s.Q,e.addData(h,y,m,r,n);break;case"A":w=v[g++],k=v[g++],P=v[g++],C=v[g++],I=v[g++],M=r,b=n,r=v[g++],n=v[g++],h=s.A,up(M,b,r,n,C,I,w,k,P,h,e);break;case"a":w=v[g++],k=v[g++],P=v[g++],C=v[g++],I=v[g++],M=r,b=n,r+=v[g++],n+=v[g++],h=s.A,up(M,b,r,n,C,I,w,k,P,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var n0=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(it);function i0(t){return t.setData!=null}function a0(t,e){var r=oI(t),n=_e({},e);return n.buildPath=function(i){if(i0(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){nI(r,i),this.dirtyShape()},n}function sI(t,e){return new n0(a0(t,e))}function lI(t,e){var r=a0(t,e),n=function(i){be(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(n0);return n}function uI(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 it(e);return o.createPathProxy(),o.buildPath=function(s){if(i0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var cI=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),es=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new cI},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}(it);es.prototype.type="circle";var fI=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Hh=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new fI},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}(it);Hh.prototype.type="ellipse";var o0=Math.PI,Sc=o0*2,Ti=Math.sin,ta=Math.cos,hI=Math.acos,zt=Math.atan2,cp=Math.abs,_o=Math.sqrt,ao=Math.max,rn=Math.min,zr=1e-4;function vI(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<zr))return h=(f*(e-a)-c*(t-i))/h,[t+h*l,e+h*u]}function Is(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/_o(s*s+l*l),f=u*l,c=-u*s,h=t+f,v=e+c,d=r+f,p=n+c,g=(h+d)/2,y=(v+p)/2,m=d-h,w=p-v,k=m*m+w*w,P=i-a,C=h*p-d*v,I=(w<0?-1:1)*_o(ao(0,P*P*k-C*C)),M=(C*w-m*I)/k,b=(-C*m-w*I)/k,T=(C*w+m*I)/k,_=(-C*m+w*I)/k,x=M-g,A=b-y,R=T-g,N=_-y;return x*x+A*A>R*R+N*N&&(M=T,b=_),{cx:M,cy:b,x0:-f,y0:-c,x1:M*(i/P-1),y1:b*(i/P-1)}}function dI(t){var e;if(Pe(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 pI(t,e){var r,n=ao(e.r,0),i=ao(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,h=!!e.clockwise,v=cp(u-l),d=v>Sc&&v%Sc;if(d>zr&&(v=d),!(n>zr))t.moveTo(f,c);else if(v>Sc-zr)t.moveTo(f+n*ta(l),c+n*Ti(l)),t.arc(f,c,n,l,u,!h),i>zr&&(t.moveTo(f+i*ta(u),c+i*Ti(u)),t.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,k=void 0,P=void 0,C=void 0,I=void 0,M=void 0,b=void 0,T=void 0,_=void 0,x=void 0,A=void 0,R=void 0,N=n*ta(l),E=n*Ti(l),U=i*ta(u),F=i*Ti(u),B=v>zr;if(B){var X=e.cornerRadius;X&&(r=dI(X),p=r[0],g=r[1],y=r[2],m=r[3]);var Z=cp(n-i)/2;if(w=rn(Z,y),k=rn(Z,m),P=rn(Z,p),C=rn(Z,g),b=I=ao(w,k),T=M=ao(P,C),(I>zr||M>zr)&&(_=n*ta(u),x=n*Ti(u),A=i*ta(l),R=i*Ti(l),v<o0)){var q=vI(N,E,A,R,_,x,U,F);if(q){var se=N-q[0],ce=E-q[1],Q=_-q[0],J=x-q[1],ee=1/Ti(hI((se*Q+ce*J)/(_o(se*se+ce*ce)*_o(Q*Q+J*J)))/2),ue=_o(q[0]*q[0]+q[1]*q[1]);b=rn(I,(n-ue)/(ee+1)),T=rn(M,(i-ue)/(ee-1))}}}if(!B)t.moveTo(f+N,c+E);else if(b>zr){var fe=rn(y,b),he=rn(m,b),te=Is(A,R,N,E,n,fe,h),ie=Is(_,x,U,F,n,he,h);t.moveTo(f+te.cx+te.x0,c+te.cy+te.y0),b<I&&fe===he?t.arc(f+te.cx,c+te.cy,b,zt(te.y0,te.x0),zt(ie.y0,ie.x0),!h):(fe>0&&t.arc(f+te.cx,c+te.cy,fe,zt(te.y0,te.x0),zt(te.y1,te.x1),!h),t.arc(f,c,n,zt(te.cy+te.y1,te.cx+te.x1),zt(ie.cy+ie.y1,ie.cx+ie.x1),!h),he>0&&t.arc(f+ie.cx,c+ie.cy,he,zt(ie.y1,ie.x1),zt(ie.y0,ie.x0),!h))}else t.moveTo(f+N,c+E),t.arc(f,c,n,l,u,!h);if(!(i>zr)||!B)t.lineTo(f+U,c+F);else if(T>zr){var fe=rn(p,T),he=rn(g,T),te=Is(U,F,_,x,i,-he,h),ie=Is(N,E,A,R,i,-fe,h);t.lineTo(f+te.cx+te.x0,c+te.cy+te.y0),T<M&&fe===he?t.arc(f+te.cx,c+te.cy,T,zt(te.y0,te.x0),zt(ie.y0,ie.x0),!h):(he>0&&t.arc(f+te.cx,c+te.cy,he,zt(te.y0,te.x0),zt(te.y1,te.x1),!h),t.arc(f,c,i,zt(te.cy+te.y1,te.cx+te.x1),zt(ie.cy+ie.y1,ie.cx+ie.x1),h),fe>0&&t.arc(f+ie.cx,c+ie.cy,fe,zt(ie.y1,ie.x1),zt(ie.y0,ie.x0),!h))}else t.lineTo(f+U,c+F),t.arc(f,c,i,u,l,h)}t.closePath()}}}var gI=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}(),oi=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new gI},e.prototype.buildPath=function(r,n){pI(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(it);oi.prototype.type="sector";var yI=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),ou=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new yI},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}(it);ou.prototype.type="ring";function mI(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 h=0,v=t.length;h<v;h++)fa(f,f,t[h]),ha(c,c,t[h]);fa(f,f,n[0]),ha(c,c,n[1])}for(var h=0,v=t.length;h<v;h++){var d=t[h];if(r)l=t[h?h-1:v-1],u=t[(h+1)%v];else if(h===0||h===v-1){i.push(Ww(t[h]));continue}else l=t[h-1],u=t[h+1];jw(a,u,l),Fu(a,a,e);var p=df(d,l),g=df(d,u),y=p+g;y!==0&&(p/=y,g/=y),Fu(o,a,-p),Fu(s,a,g);var m=td([],d,o),w=td([],d,s);n&&(ha(m,m,f),fa(m,m,c),ha(w,w,f),fa(w,w,c)),i.push(m),i.push(w)}return r&&i.push(i.shift()),i}function s0(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=mI(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 _I=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),ts=function(t){be(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new _I},e.prototype.buildPath=function(r,n){s0(r,n,!0)},e}(it);ts.prototype.type="polygon";var SI=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Gi=function(t){be(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 SI},e.prototype.buildPath=function(r,n){s0(r,n,!1)},e}(it);Gi.prototype.type="polyline";var bI={},wI=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),ri=function(t){be(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 wI},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Hm(bI,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}(it);ri.prototype.type="line";var Zt=[],CI=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 fp(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?hd:Ft)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?hd:Ft)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?vd:Jt)(t.x1,t.cpx1,t.x2,e),(r?vd:Jt)(t.y1,t.cpy1,t.y2,e)]}var Gh=function(t){be(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 CI},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,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(_l(i,l,o,h,Zt),l=Zt[1],o=Zt[2],_l(a,u,s,h,Zt),u=Zt[1],s=Zt[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(ml(i,l,f,o,h,Zt),l=Zt[1],f=Zt[2],o=Zt[3],ml(a,u,c,s,h,Zt),u=Zt[1],c=Zt[2],s=Zt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return fp(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=fp(this.shape,r,!0);return Kw(n,n)},e}(it);Gh.prototype.type="bezier-curve";var TI=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}(),su=function(t){be(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 TI},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}(it);su.prototype.type="arc";var xI=function(t){be(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),it.prototype.getBoundingRect.call(this)},e}(it);const l0=xI;var u0=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),c0=function(t){be(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}(u0),II=function(t){be(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}(u0);const AI=II;var xi=[0,0],Ii=[0,0],As=new Fe,ks=new Fe,kI=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Fe;for(var n=0;n<2;n++)this._axes[n]=new Fe;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);Fe.sub(i[0],n[1],n[0]),Fe.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 As.set(1/0,1/0),ks.set(0,0),!this._intersectCheckOneSide(this,e,As,ks,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,As,ks,i,-1)&&(n=!1,i)||i||Fe.copy(r,n?As:ks),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,xi),this._getProjMinMaxOnAxis(l,r._corners,Ii),xi[1]<Ii[0]||xi[0]>Ii[1]){if(s=!1,a)return s;var f=Math.abs(Ii[0]-xi[1]),c=Math.abs(xi[0]-Ii[1]);Math.min(f,c)>i.len()&&(f<c?Fe.scale(i,u,-f*o):Fe.scale(i,u,c*o))}else if(n){var f=Math.abs(Ii[0]-xi[1]),c=Math.abs(xi[0]-Ii[1]);Math.min(f,c)<n.len()&&(f<c?Fe.scale(n,u,f*o):Fe.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 kl=kI;var MI=[],PI=function(t){be(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 ht(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(MI)),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}(Jo);const RI=PI;var LI=Lt();function EI(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=Ne(n.duration,200),f=Ne(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)),Xe(c)&&(c=c(r,i)),Xe(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Wh(t,e,r,n,i,a,o){var s=!1,l;Xe(i)?(o=a,a=i,i=null):Oe(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=EI(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Wt(t,e,r,n,i,a){Wh("update",t,e,r,n,i,a)}function rr(t,e,r,n,i,a){Wh("enter",t,e,r,n,i,a)}function So(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 Ml(t,e,r,n,i,a){So(t)||Wh("leave",t,e,r,n,i,a)}function hp(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Ml(t,{style:{opacity:0}},e,r,n)}function Pl(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||hp(i,e,r,n)}):hp(t,e,r,n)}function Do(t){LI(t).oldStyle=t.style}var Rl=Math.max,Ll=Math.min,Hf={};function DI(t){return it.extend(t)}var OI=lI;function BI(t,e){return OI(t,e)}function qr(t,e){Hf[t]=e}function NI(t){if(Hf.hasOwnProperty(t))return Hf[t]}function jh(t,e,r,n){var i=sI(t,e);return r&&(n==="center"&&(r=h0(r,i.getBoundingRect())),v0(i,r)),i}function f0(t,e,r){var n=new Xr({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(h0(e,a))}}});return n}function h0(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 Gf=uI;function v0(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Oo(t,e){return Hm(t,t,{lineWidth:e}),t}function FI(t){return Gm(t.shape,t.shape,t.style),t}var $I=Oi;function zI(t,e){for(var r=Mh([]);t&&t!==e;)ga(r,t.getLocalTransform(),r),t=t.parent;return r}function d0(t,e,r){return e&&!ar(e)&&(e=Dh.getLocalTransform(e)),r&&(e=Ph([],e)),Er([],t,e)}function UI(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=d0(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function vp(t){return!t.isGroup}function VI(t){return t.shape!=null}function p0(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){vp(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return VI(o)&&(s.shape=_e({},o.shape)),s}var a=n(t);e.traverse(function(o){if(vp(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Wt(o,l,r,yt(o).dataIndex)}}})}function HI(t,e){return xe(t,function(r){var n=r[0];n=Rl(n,e.x),n=Ll(n,e.x+e.width);var i=r[1];return i=Rl(i,e.y),i=Ll(i,e.y+e.height),[n,i]})}function GI(t,e){var r=Rl(t.x,e.x),n=Ll(t.x+t.width,e.x+e.width),i=Rl(t.y,e.y),a=Ll(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 g0(t,e,r){var n=_e({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),Ze(i,r),new Xr(n)):jh(t.replace("path://",""),n,r,"center")}function WI(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(y0(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function y0(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=bc(f,c,l,u);if(jI(h))return!1;var v=t-i,d=e-a,p=bc(v,d,l,u)/h;if(p<0||p>1)return!1;var g=bc(v,d,f,c)/h;return!(g<0||g>1)}function bc(t,e,r,n){return t*n-r*e}function jI(t){return t<=1e-6&&t>=-1e-6}function Xh(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Le(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&&G(tt(l),function(f){ko(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=yt(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ze({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function dp(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function lu(t,e){if(t)if(Pe(t))for(var r=0;r<t.length;r++)dp(t[r],e);else dp(t,e)}qr("circle",es);qr("ellipse",Hh);qr("sector",oi);qr("ring",ou);qr("polygon",ts);qr("polyline",Gi);qr("rect",Pt);qr("line",ri);qr("bezierCurve",Gh);qr("arc",su);const XI=Object.freeze(Object.defineProperty({__proto__:null,Arc:su,BezierCurve:Gh,BoundingRect:ht,Circle:es,CompoundPath:l0,Ellipse:Hh,Group:At,Image:Xr,IncrementalDisplayable:RI,Line:ri,LinearGradient:c0,OrientedBoundingRect:kl,Path:it,Point:Fe,Polygon:ts,Polyline:Gi,RadialGradient:AI,Rect:Pt,Ring:ou,Sector:oi,Text:mr,applyTransform:d0,clipPointsByRect:HI,clipRectByRect:GI,createIcon:g0,extendPath:BI,extendShape:DI,getShapeClass:NI,getTransform:zI,groupTransition:p0,initProps:rr,isElementRemoved:So,lineLineIntersect:y0,linePolygonIntersect:WI,makeImage:f0,makePath:jh,mergePath:Gf,registerShape:qr,removeElement:Ml,removeElementWithFadeOut:Pl,resizePath:v0,setTooltipConfig:Xh,subPixelOptimize:$I,subPixelOptimizeLine:Oo,subPixelOptimizeRect:FI,transformDirection:UI,traverseElements:lu,updateProps:Wt},Symbol.toStringTag,{value:"Module"}));var uu={};function qI(t,e){for(var r=0;r<Dr.length;r++){var n=Dr[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 pp(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=Xe(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<Dr.length;u++){var f=Dr[u],c=e[f];l[f]=Ne(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Ma(t,e,r,n){r=r||uu;for(var i=t instanceof mr,a=!1,o=0;o<xl.length;o++){var s=e[xl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new mr,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=pp(r,e),f=e.normal,c=!!f.getShallow("show"),h=Bo(f,n&&n.normal,r,!1,!i);h.text=u.normal,i||t.setTextConfig(gp(f,r,!1));for(var o=0;o<Dr.length;o++){var v=Dr[o],s=e[v];if(s){var d=l.ensureState(v),p=!!Ne(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Bo(s,n&&n[v],r,!0,!i),d.style.text=u[v],!i){var g=t.ensureState(v);g.textConfig=gp(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(cu(l).setLabelText=function(y){var m=pp(r,e,y);qI(l,m)})}else l&&(l.ignore=!0);t.dirty()}function Pa(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Dr.length;n++){var i=Dr[n];r[i]=t.getModel([i,e])}return r}function Bo(t,e,r,n,i){var a={};return KI(a,t,r,n,i),e&&_e(a,e),a}function gp(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Ne(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 KI(t,e,r,n,i){r=r||uu;var a=e.ecModel,o=a&&a.option.textStyle,s=YI(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);Sp(l[u]={},f,o,r,n,i,!1,!0)}}l&&(t.rich=l);var c=e.get("overflow");c&&(t.overflow=c);var h=e.get("minMargin");h!=null&&(t.margin=h),Sp(t,e,o,r,n,i,!0,!1)}function YI(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||uu).rich;if(r){e=e||{};for(var n=tt(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var yp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],mp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_p=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Sp(t,e,r,n,i,a,o,s){r=!i&&r||uu;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=Ne(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 h=Ne(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var v=Ne(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var d=Ne(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(t.lineDashOffset=d),!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<yp.length;p++){var g=yp[p],y=Ne(e.getShallow(g),r[g]);y!=null&&(t[g]=y)}for(var p=0;p<mp.length;p++){var g=mp[p],y=e.getShallow(g);y!=null&&(t[g]=y)}if(t.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(t.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<_p.length;p++){var g=_p[p],y=e.getShallow(g);y!=null&&(t[g]=y)}var w=e.getShallow("borderType");w!=null&&(t.borderDash=w),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function ZI(t,e){var r=e&&e.getModel("textStyle");return Un([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 cu=Lt();function QI(t,e,r,n){if(t){var i=cu(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 JI=["textStyle","color"],wc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Cc=new mr,eA=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(JI):null)},t.prototype.getFont=function(){return ZI({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<wc.length;n++)r[wc[n]]=this.getShallow(wc[n]);return Cc.useStyle(r),Cc.update(),Cc.getBoundingRect()},t}(),m0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],tA=Lo(m0),rA=function(){function t(){}return t.prototype.getLineStyle=function(e){return tA(this,e)},t}(),_0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],nA=Lo(_0),iA=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return nA(this,e,r)},t}(),Rt=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){ut(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(et(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(!lt.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}();Nh(Rt);VT(Rt);jr(Rt,rA);jr(Rt,iA);jr(Rt,XT);jr(Rt,eA);var aA=Math.round(Math.random()*10);function fu(t){return[t||"",aA++].join("_")}function oA(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=un(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=un(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function sA(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(G(a,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),G(d.successor,p?y:g)}G(h,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){h[m]=!0,g(m)}};function r(a){var o={},s=[];return G(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),G(c,function(h){gt(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);gt(v.successor,h)<0&&v.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 G(a,function(l){gt(o,l)>=0&&s.push(l)}),s}}function S0(t,e){return ut(ut({},t,!0),e,!0)}const lA={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:". "}}}},uA={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 El="ZH",qh="EN",ma=qh,sl={},Kh={},b0=lt.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ma).toUpperCase();return t.indexOf(El)>-1?El:ma}():ma;function w0(t,e){t=t.toUpperCase(),Kh[t]=new Rt(e),sl[t]=e}function cA(t){if(Le(t)){var e=sl[t.toUpperCase()]||{};return t===El||t===qh?et(e):ut(et(e),et(sl[ma]),!1)}else return ut(et(t),et(sl[ma]),!1)}function fA(t){return Kh[t]}function hA(){return Kh[ma]}w0(qh,lA);w0(El,uA);var Yh=1e3,Zh=Yh*60,bo=Zh*60,Pr=bo*24,bp=Pr*365,oo={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}"},Ms="{yyyy}-{MM}-{dd}",wp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ms,hour:Ms+" "+oo.hour,minute:Ms+" "+oo.minute,second:Ms+" "+oo.second,millisecond:oo.none},Tc=["year","month","day","hour","minute","second","millisecond"],C0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ln(t,e){return t+="","0000".substr(0,e-t.length)+t}function _a(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 vA(t){return t===_a(t)}function dA(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function T0(t,e,r,n){var i=ei(t),a=i[Qh(r)](),o=i[Sa(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[hu(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[No(r)](),c=(f-1)%12+1,h=i[vu(r)](),v=i[du(r)](),d=i[pu(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Rt?n:fA(n||b0)||hA(),m=y.getModel("time"),w=m.get("month"),k=m.get("monthAbbr"),P=m.get("dayOfWeek"),C=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ln(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,k[o-1]).replace(/{MM}/g,Ln(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ln(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,P[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ln(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ln(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ln(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ln(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ln(d,3)).replace(/{S}/g,d+"")}function pA(t,e,r,n,i){var a=null;if(Le(r))a=r;else if(Xe(r))a=r(t.value,e,{level:t.level});else{var o=_e({},oo);if(t.level>0)for(var s=0;s<Tc.length;++s)o[Tc[s]]="{primary|"+o[Tc[s]]+"}";var l=r?r.inherit===!1?r:Ze(r,o):o,u=x0(t.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=C0.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Pe(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 T0(new Date(t.value),a,i,n)}function x0(t,e){var r=ei(t),n=r[Sa(e)]()+1,i=r[hu(e)](),a=r[No(e)](),o=r[vu(e)](),s=r[du(e)](),l=r[pu(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Cp(t,e,r){var n=dt(t)?ei(t):t;switch(e=e||x0(t,r),e){case"year":return n[Qh(r)]();case"half-year":return n[Sa(r)]()>=6?1:0;case"quarter":return Math.floor((n[Sa(r)]()+1)/4);case"month":return n[Sa(r)]();case"day":return n[hu(r)]();case"half-day":return n[No(r)]()/24;case"hour":return n[No(r)]();case"minute":return n[vu(r)]();case"second":return n[du(r)]();case"millisecond":return n[pu(r)]()}}function Qh(t){return t?"getUTCFullYear":"getFullYear"}function Sa(t){return t?"getUTCMonth":"getMonth"}function hu(t){return t?"getUTCDate":"getDate"}function No(t){return t?"getUTCHours":"getHours"}function vu(t){return t?"getUTCMinutes":"getMinutes"}function du(t){return t?"getUTCSeconds":"getSeconds"}function pu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function gA(t){return t?"setUTCFullYear":"setFullYear"}function I0(t){return t?"setUTCMonth":"setMonth"}function A0(t){return t?"setUTCDate":"setDate"}function k0(t){return t?"setUTCHours":"setHours"}function M0(t){return t?"setUTCMinutes":"setMinutes"}function P0(t){return t?"setUTCSeconds":"setSeconds"}function R0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function yA(t){if(!bT(t))return Le(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}var L0=em,Tp=["a","b","c","d","e","f","g"],xc=function(t,e){return"{"+t+(e??"")+"}"};function mA(t,e,r){Pe(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Tp[a];t=t.replace(xc(o),xc(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(xc(Tp[l],s),u)}return t}function Wf(t,e){return e=e||"transparent",Le(t)?t:Oe(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var ll=G,_A=["left","right","top","bottom","width","height"],Ps=[["width","left","right"],["height","top","bottom"]];function Jh(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),h=c&&c.getBoundingRect(),v,d;if(t==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var wo=Jh;dr(Jh,"vertical");dr(Jh,"horizontal");function Dl(t,e,r){r=L0(r||0);var n=e.width,i=e.height,a=vt(t.left,n),o=vt(t.top,i),s=vt(t.right,n),l=vt(t.bottom,i),u=vt(t.width,n),f=vt(t.height,i),c=r[2]+r[0],h=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),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-h;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-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new ht(a+r[3],o+r[0],u,f);return d.margin=r,d}function Fo(t){var e=t.layoutMode||t.constructor.layoutMode;return Oe(e)?e:e?{type:e}:null}function xa(t,e,r){var n=r&&r.ignoreSize;!Pe(n)&&(n=[n,n]);var i=o(Ps[0],0),a=o(Ps[1],1);u(Ps[0],t,i),u(Ps[1],t,a);function o(f,c){var h={},v=0,d={},p=0,g=2;if(ll(f,function(w){d[w]=t[w]}),ll(f,function(w){s(e,w)&&(h[w]=d[w]=e[w]),l(h,w)&&v++,l(d,w)&&p++}),n[c])return l(e,f[1])?d[f[2]]=null:l(e,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var y=0;y<f.length;y++){var m=f[y];if(!s(h,m)&&s(t,m)){h[m]=t[m];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){ll(f,function(v){c[v]=h[v]})}}function gu(t){return SA({},t)}function SA(t,e){return e&&t&&ll(_A,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var bA=Lt(),ft=function(t){be(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=fu("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Fo(this),a=i?gu(r):{},o=n.getTheme();ut(r,o.get(this.mainType)),ut(r,this.getDefaultOption()),i&&xa(r,a,i)},e.prototype.mergeOption=function(r,n){ut(this.option,r,!0);var i=Fo(this);i&&xa(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!$T(r))return r.defaultOption;var n=bA(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=ut(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Jl(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}(Rt);Nm(ft,Rt);eu(ft);oA(ft);sA(ft,wA);function wA(t){var e=[];return G(ft.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=xe(e,function(r){return un(r).main}),t!=="dataset"&&gt(e,"dataset")<=0&&e.unshift("dataset"),e}var E0="";typeof navigator<"u"&&(E0=navigator.platform||"");var ra="rgba(0, 0, 0, 0.2)";const CA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ra,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ra,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ra,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ra,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ra,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ra,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:E0.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 D0=qe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Or="original",sr="arrayRows",Kr="objectRows",pn="keyedColumns",Kn="typedArray",O0="unknown",xn="column",Ra="row",Ot={Must:1,Might:2,Not:3},B0=Lt();function TA(t){B0(t).datasetMap=qe()}function xA(t,e,r){var n={},i=ev(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=B0(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),G(t,function(p,g){var y=Oe(p)?p:t[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});G(t,function(p,g){var y=p.name,m=d(p);if(f==null){var w=h.valueWayDim;v(n[y],w,m),v(o,w,m),h.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(a,0,m);else{var w=h.categoryWayDim;v(n[y],w,m),v(o,w,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function IA(t,e,r){var n={},i=ev(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Kr||a===pn)&&G(o,function(f,c){(Oe(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,d=Math.min(5,r);v<d;v++){var p=F0(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);h.push(p);var g=p===Ot.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===Ot.Not)&&(f.n=v),y(f)&&h[f.n]!==Ot.Not)return f;g||(p===Ot.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function ev(t){var e=t.get("data",!0);if(!e)return Jl(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Wr).models[0]}function AA(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Jl(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Wr).models}function N0(t,e){return F0(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function F0(t,e,r,n,i,a){var o,s=5;if(or(t))return Ot.Not;var l,u;if(n){var f=n[a];Oe(f)?(l=f.name,u=f.type):Le(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ot.Must:Ot.Not;if(e===sr){var c=t;if(r===Ra){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=k(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=k(d[a]))!=null)return o}}else if(e===Kr){var p=t;if(!l)return Ot.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=k(g[l]))!=null)return o}}else if(e===pn){var y=t;if(!l)return Ot.Not;var h=y[l];if(!h||or(h))return Ot.Not;for(var v=0;v<h.length&&v<s;v++)if((o=k(h[v]))!=null)return o}else if(e===Or)for(var m=t,v=0;v<m.length&&v<s;v++){var g=m[v],w=Qo(g);if(!Pe(w))return Ot.Not;if((o=k(w[a]))!=null)return o}function k(P){var C=Le(P);if(P!=null&&Number.isFinite(Number(P))&&P!=="")return C?Ot.Might:Ot.Not;if(C&&P!=="-")return Ot.Must}return Ot.Not}var kA=qe();function MA(t,e,r){var n=kA.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var xp=Lt();Lt();var tv=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=Kt(this.get("color",!0)),a=this.get("colorLayer",!0);return RA(this,xp,i,a,e,r,n)},t.prototype.clearColorPalette=function(){LA(this,xp)},t}();function PA(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 RA(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:PA(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 LA(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Rs,Ga,Ip,Ap="\0_ec_inner",EA=1,rv=function(t){be(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 Rt(a),this._locale=new Rt(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Pp(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Pp(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"?Ip(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&&G(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=qe(),u=n&&n.replaceMergeMainTypeMap;TA(this),G(r,function(c,h){c!=null&&(ft.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?et(c):ut(i[h],c,!0))}),u&&u.each(function(c,h){ft.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),f,this);function f(c){var h=MA(this,c,Kt(r[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=xT(v,h,d);LT(p,c,ft),i[c]=null,a.set(c,null),o.set(c,0);var g=[],y=[],m=0,w;G(p,function(k,P){var C=k.existing,I=k.newOption;if(!I)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var M=c==="series",b=ft.getClass(c,k.keyInfo.subType,!M);if(!b)return;if(c==="tooltip"){if(w)return;w=!0}if(C&&C.constructor===b)C.name=k.keyInfo.name,C.mergeOption(I,this),C.optionUpdated(I,!1);else{var T=_e({componentIndex:P},k.keyInfo);C=new b(I,this,this,T),_e(C,T),k.brandNew&&(C.__requireNewView=!0),C.init(I,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),y.push(C),m++):(g.push(void 0),y.push(void 0))},this),i[c]=g,a.set(c,y),o.set(c,m),c==="series"&&Rs(this)}this._seriesIndices||Rs(this)},e.prototype.getOption=function(){var r=et(this.option);return G(r,function(n,i){if(ft.hasClass(i)){for(var a=Kt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ro(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Ap],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=[],G(Kt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=kp("id",a,s):o!=null?l=kp("name",o,s):l=Gt(s,function(u){return!!u}),Mp(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Gt(this._componentsMap.get(i),function(u){return!!u});return l(Mp(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?Gt(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Xe(r)){var o=n,s=r;a.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=Le(r)?a.get(r):Oe(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=fn(r,null);return Gt(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 Gt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Gt(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Ga(this),G(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){G(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Ga(this),G(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 G(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Ga(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Ga(this);var i=[];G(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=qe(i)},e.prototype.restoreData=function(r){Rs(this);var n=this._componentsMap,i=[];n.each(function(a,o){ft.hasClass(o)&&i.push(o)}),ft.topologicalTravel(i,ft.getAllClassMainTypes(),function(a){G(n.get(a),function(o){o&&(a!=="series"||!DA(o,r))&&o.restoreData()})})},e.internalField=function(){Rs=function(r){var n=r._seriesIndices=[];G(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=qe(n)},Ga=function(r){},Ip=function(r,n){r.option={},r.option[Ap]=EA,r._componentsMap=qe({series:[]}),r._componentsCount=qe();var i=n.aria;Oe(i)&&i.enabled==null&&(i.enabled=!0),OA(n,r._theme.option),ut(n,CA,!1),r._mergeOption(n,null)}}(),e}(Rt);function DA(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 OA(t,e){var r=t.color&&!t.colorLayer;G(e,function(n,i){i==="colorLayer"&&r||ft.hasClass(i)||(typeof n=="object"?t[i]=t[i]?ut(t[i],n,!1):et(n):t[i]==null&&(t[i]=n))})}function kp(t,e,r){if(Pe(e)){var n=qe();return G(e,function(a){if(a!=null){var o=fn(a,null);o!=null&&n.set(a,!0)}}),Gt(r,function(a){return a&&n.get(a[t])})}else{var i=fn(e,null);return Gt(r,function(a){return a&&i!=null&&a[t]===i})}}function Mp(t,e){return e.hasOwnProperty("subType")?Gt(t,function(r){return r&&r.subType===e.subType}):t}function Pp(t){var e=qe();return t&&G(Kt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}jr(rv,tv);var BA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],$0=function(){function t(e){G(BA,function(r){this[r]=xt(e[r],e)},this)}return t}(),Ic={},nv=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];G(Ic,function(i,a){var o=i.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){G(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){Ic[e]=r},t.get=function(e){return Ic[e]},t}(),NA=/^(min|max)?(.+)$/,FA=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(G(Kt(e.series),function(o){o&&o.data&&or(o.data)&&vf(o.data)}),G(Kt(e.dataset),function(o){o&&o.source&&or(o.source)&&vf(o.source)})),e=et(e);var i=this._optionBackup,a=$A(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=[],et(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=et(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++)zA(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!VA(o,this._currentMediaIndices)&&(s=xe(o,function(f){return et(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();function $A(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&&Pe(u)&&G(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(a),G(l,function(v){return h(v)}),G(n,function(v){return h(v.option)});function h(v){G(e,function(d){d(v,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function zA(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return G(t,function(a,o){var s=o.match(NA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();UA(n[u],a,l)||(i=!1)}}),i}function UA(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function VA(t,e){return t.join(",")===e.join(",")}var Fr=G,$o=Oe,Rp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ac(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Rp.length;r<n;r++){var i=Rp[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?ut(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?ut(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Ht(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,Ze(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 so(t){Ht(t,"itemStyle"),Ht(t,"lineStyle"),Ht(t,"areaStyle"),Ht(t,"label"),Ht(t,"labelLine"),Ht(t,"upperLabel"),Ht(t,"edgeLabel")}function St(t,e){var r=$o(t)&&t[e],n=$o(r)&&r.textStyle;if(n)for(var i=0,a=Dd.length;i<a;i++){var o=Dd[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function xr(t){t&&(so(t),St(t,"label"),t.emphasis&&St(t.emphasis,"label"))}function HA(t){if($o(t)){Ac(t),so(t),St(t,"label"),St(t,"upperLabel"),St(t,"edgeLabel"),t.emphasis&&(St(t.emphasis,"label"),St(t.emphasis,"upperLabel"),St(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ac(e),xr(e));var r=t.markLine;r&&(Ac(r),xr(r));var n=t.markArea;n&&xr(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++)xr(a[o]);G(t.categories,function(u){so(u)})}if(i&&!or(i))for(var o=0;o<i.length;o++)xr(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)xr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Pe(l[o])?(xr(l[o][0]),xr(l[o][1])):xr(l[o]);t.type==="gauge"?(St(t,"axisLabel"),St(t,"title"),St(t,"detail")):t.type==="treemap"?(Ht(t.breadcrumb,"itemStyle"),G(t.levels,function(u){so(u)})):t.type==="tree"&&so(t.leaves)}}function _n(t){return Pe(t)?t:t?[t]:[]}function Lp(t){return(Pe(t)?t[0]:t)||{}}function GA(t,e){Fr(_n(t.series),function(n){$o(n)&&HA(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Fr(r,function(n){Fr(_n(t[n]),function(i){i&&(St(i,"axisLabel"),St(i.axisPointer,"label"))})}),Fr(_n(t.parallel),function(n){var i=n&&n.parallelAxisDefault;St(i,"axisLabel"),St(i&&i.axisPointer,"label")}),Fr(_n(t.calendar),function(n){Ht(n,"itemStyle"),St(n,"dayLabel"),St(n,"monthLabel"),St(n,"yearLabel")}),Fr(_n(t.radar),function(n){St(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)}),Fr(_n(t.geo),function(n){$o(n)&&(xr(n),Fr(_n(n.regions),function(i){xr(i)}))}),Fr(_n(t.timeline),function(n){xr(n),Ht(n,"label"),Ht(n,"itemStyle"),Ht(n,"controlStyle",!0);var i=n.data;Pe(i)&&G(i,function(a){Oe(a)&&(Ht(a,"label"),Ht(a,"itemStyle"))})}),Fr(_n(t.toolbox),function(n){Ht(n,"iconStyle"),Fr(n.feature,function(i){Ht(i,"iconStyle")})}),St(Lp(t.axisPointer),"label"),St(Lp(t.tooltip).axisPointer,"label")}function WA(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 jA(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 Ep(t){t&&G(XA,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var XA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],qA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],kc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Wa(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<kc.length;r++){var n=kc[r][1],i=kc[r][0];e[n]!=null&&(e[i]=e[n])}}function Dp(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Op(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function KA(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function z0(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&z0(t[r].children,e)}function U0(t,e){GA(t,e),t.series=Kt(t.series),G(t.series,function(r){if(Oe(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),Dp(r.label);var i=r.data;if(i&&!or(i))for(var a=0;a<i.length;a++)Dp(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=WA(r,"pointer.color");o!=null&&jA(r,"itemStyle.color",o)}else if(n==="bar"){Wa(r),Wa(r.backgroundStyle),Wa(r.emphasis);var i=r.data;if(i&&!or(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Wa(i[a]),Wa(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)),Op(r),z0(r.data,Op)}else n==="graph"||n==="sankey"?KA(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ze(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Ep(r)}}),t.dataRange&&(t.visualMap=t.dataRange),G(qA,function(r){var n=t[r];n&&(Pe(n)||(n=[n]),G(n,function(i){Ep(i)}))})}function YA(t){var e=qe();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(ZA)}function ZA(t){G(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 h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=yT(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var yu=function(){function t(e){this.data=e.data||(e.sourceFormat===pn?{}:[]),this.sourceFormat=e.sourceFormat||O0,this.seriesLayoutBy=e.seriesLayoutBy||xn,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&&N0(this,n)===Ot.Must&&(i.type="ordinal")}}return t}();function iv(t){return t instanceof yu}function jf(t,e,r){r=r||H0(t);var n=e.seriesLayoutBy,i=JA(t,r,n,e.sourceHeader,e.dimensions),a=new yu({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:et(e)});return a}function V0(t){return new yu({data:t,sourceFormat:or(t)?Kn:Or})}function QA(t){return new yu({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:et(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function H0(t){var e=O0;if(or(t))e=Kn;else if(Pe(t)){t.length===0&&(e=sr);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(Pe(i)||or(i)){e=sr;break}else if(Oe(i)){e=Kr;break}}}}else if(Oe(t)){for(var a in t)if(ko(t,a)&&ar(t[a])){e=pn;break}}return e}function JA(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Bp(i),startIndex:o,dimensionsDetectedCount:a};if(e===sr){var s=t;n==="auto"||n==null?Np(function(u){u!=null&&u!=="-"&&(Le(u)?o==null&&(o=1):o=0)},r,s,10):o=dt(n)?n:n?1:0,!i&&o===1&&(i=[],Np(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Ra?s.length:s[0]?s[0].length:null}else if(e===Kr)i||(i=e2(t));else if(e===pn)i||(i=[],G(t,function(u,f){i.push(f)}));else if(e===Or){var l=Qo(t[0]);a=Pe(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Bp(i),dimensionsDetectedCount:a}}function e2(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return tt(r)}function Bp(t){if(t){var e=qe();return xe(t,function(r,n){r=Oe(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 Np(t,e,r,n){if(e===Ra)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 G0(t){var e=t.sourceFormat;return e===Kr||e===pn}var Ai,ki,Mi,Fp,$p,W0=function(){function t(e,r){var n=iv(e)?e:V0(e);this._source=n;var i=this._data=n.data;n.sourceFormat===Kn&&(this._offset=0,this._dimSize=r,this._data=i),$p(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;$p=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Fp[av(u,f)];if(_e(o,v),u===Kn)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=j0(u,f);o.getItem=xt(d,null,s,c,h);var p=X0(u,f);o.count=xt(p,null,s,c,h)}};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,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[h],m=0;m<g;m++){var w=f[m*c+h];y[o+m]=w,w<d&&(d=w),w>p&&(p=w)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Fp=(e={},e[sr+"_"+xn]={pure:!0,appendData:a},e[sr+"_"+Ra]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Kr]={pure:!0,appendData:a},e[pn]={pure:!0,appendData:function(o){var s=this._data;G(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Or]={appendData:a},e[Kn]={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}(),zp=function(t,e,r,n){return t[n]},t2=(Ai={},Ai[sr+"_"+xn]=function(t,e,r,n){return t[n+e]},Ai[sr+"_"+Ra]=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},Ai[Kr]=zp,Ai[pn]=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},Ai[Or]=zp,Ai);function j0(t,e){var r=t2[av(t,e)];return r}var Up=function(t,e,r){return t.length},r2=(ki={},ki[sr+"_"+xn]=function(t,e,r){return Math.max(0,t.length-e)},ki[sr+"_"+Ra]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ki[Kr]=Up,ki[pn]=function(t,e,r){var n=r[0].name,i=t[n];return i?i.length:0},ki[Or]=Up,ki);function X0(t,e){var r=r2[av(t,e)];return r}var Mc=function(t,e,r){return t[e]},n2=(Mi={},Mi[sr]=Mc,Mi[Kr]=function(t,e,r){return t[r]},Mi[pn]=Mc,Mi[Or]=function(t,e,r){var n=Qo(t);return n instanceof Array?n[e]:n},Mi[Kn]=Mc,Mi);function q0(t){var e=n2[t];return e}function av(t,e){return t===sr?t+"_"+e:t}function Ia(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 q0(a)(n,o,s)}else{var l=n;return a===Or&&(l=Qo(n)),l}}}}var i2=/\{@(.+?)\}/g,a2=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,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.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&&Pe(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Xe(a))return l.status=r,l.dimensionIndex=i,a(l);if(Le(a)){var f=mA(a,l);return f.replace(i2,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Ia(s,e,d);if(o&&Pe(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return Ia(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function Co(t){return new o2(t)}var o2=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(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(Pe(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}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){Vp.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Vp.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),Pe(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}(),Vp=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 ul(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!dt(t)&&t!=null&&t!=="-"&&(t=+ei(t)),t==null||t===""?NaN:Number(t))}qe({number:function(t){return parseFloat(t)},time:function(t){return+ei(t)},trim:function(t){return Le(t)?Un(t):t}});var s2=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 ul(e,r)},t}();function l2(t,e){var r=new s2,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==xn&&vr(o);var s=[],l={},u=t.dimensionsDefine;if(u)G(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var w="";ko(l,y)&&vr(w),l[y]=m}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=j0(i,xn);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=xt(u2,null,t)),r.cloneRawData=xt(c2,null,t);var h=X0(i,xn);r.count=xt(h,null,n,a,s);var v=q0(i);r.retrieveValue=function(p,g){var y=c(n,a,s,p);return d(y,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return r.getDimensionInfo=xt(f2,null,s,l),r.cloneAllDimensionInfo=xt(h2,null,s),r}function u2(t){var e=t.sourceFormat;if(!ov(e)){var r="";vr(r)}return t.data}function c2(t){var e=t.sourceFormat,r=t.data;if(!ov(e)){var n="";vr(n)}if(e===sr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Kr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(_e({},r[a]));return i}}function f2(t,e,r){if(r!=null){if(dt(r)||!isNaN(r)&&!ko(e,r))return t[r];if(ko(e,r))return e[r]}}function h2(t){return et(t)}var K0=qe();function v2(t){t=et(t);var e=t.type,r="";e||vr(r);var n=e.split(":");n.length!==2&&vr(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,K0.set(e,t)}function d2(t,e,r){var n=Kt(t),i=n.length,a="";i||vr(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=p2(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function p2(t,e,r,n){var i="";e.length||vr(i),Oe(t)||vr(i);var a=t.type,o=K0.get(a);o||vr(i);var s=xe(e,function(u){return l2(u,o)}),l=Kt(o.transform({upstream:s[0],upstreamList:s,config:et(t.config)}));return xe(l,function(u,f){var c="";Oe(u)||vr(c),u.data||vr(c);var h=H0(u.data);ov(h)||vr(c);var v,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:xn,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:xn,sourceHeader:0,dimensions:u.dimensions};return jf(u.data,v,null)})}function ov(t){return t===sr||t===Kr}var mu="undefined",g2=typeof Uint32Array===mu?Array:Uint32Array,y2=typeof Uint16Array===mu?Array:Uint16Array,Y0=typeof Int32Array===mu?Array:Int32Array,Hp=typeof Float64Array===mu?Array:Float64Array,Z0={float:Hp,int:Y0,ordinal:Array,number:Array,time:Hp},Pc;function ja(t){return t>65535?g2:y2}function na(){return[1/0,-1/0]}function m2(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Gp(t,e,r,n,i){var a=Z0[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 Xf=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=qe()}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=Pc[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],G0(i),this._dimensions=xe(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 Z0[r||"float"](this._rawCount),this._rawExtent[a]=na(),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]=na());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];Gp(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],p=Pc.arrayRows.call(this,e[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];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=xe(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=na()),Gp(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var h=[],v=e;v<r;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[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 h=this.getRawIndex(f),v=r-a[h],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===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=ja(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=ja(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var p=c[f][d];v=r(p,h)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][d];s[g]=h,v=r.apply(null,s)}v&&(o[u++]=d)}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=tt(e),a=i.length;if(!a)return this;var o=r.count(),s=ja(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],h=e[f][1],v=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=v[i[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],w=v[i[1]],k=e[i[1]][0],P=e[i[1]][1],y=0;y<n;y++){var m=g[y],C=w[y];(m>=c&&m<=h||isNaN(m))&&(C>=k&&C<=P||isNaN(C))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var I=r.getRawIndex(y),m=v[i[0]][I];(m>=c&&m<=h||isNaN(m))&&(l[u++]=I)}else for(var y=0;y<o;y++){for(var M=!0,I=r.getRawIndex(y),b=0;b<a;b++){var T=i[b],m=v[T][I];(m<e[T][0]||m>e[T][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(y))}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]]=na();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=i[r[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],y=u[p],m=i[p];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[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,h,v=new(ja(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,w=p;w<g;w++){var k=this.getRawIndex(w),P=a[k];isNaN(P)||(m+=P)}m/=g-p;var C=d,I=Math.min(d+l,o),M=d-1,b=a[u];f=-1,h=C;for(var T=-1,_=0,w=C;w<I;w++){var k=this.getRawIndex(w),P=a[k];if(isNaN(P)){_++,T<0&&(T=k);continue}c=Math.abs((M-y)*(P-b)-(M-w)*(m-b)),c>f&&(f=c,h=k)}_>0&&_<I-C&&(v[s++]=Math.min(T,h),h=Math.max(T,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,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]=na(),h=new(ja(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[v++]=m}return a._count=v,a._indices=h,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=na();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&&Qn(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?m2(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=et(this._extent),e._rawExtent=et(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 ul(r[a],this._dimensions[a])}Pc={arrayRows:e,objectRows:function(r,n,i,a){return ul(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ul(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),_2=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(Ls(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)?Kn:Or,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=Ne(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Ne(c.sourceHeader,h.sourceHeader),p=Ne(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;i=g?[jf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var w=y.get("source",!0);i=[jf(w,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&&Wp(a)}var o,s=[],l=[];return G(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&Wp(c),s.push(f),l.push(u._getVersionSign())}),n?o=d2(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[QA(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];Ls(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Xf,s.initData(new W0(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ls(e)){var r=ev(e);return r?[r.getSourceManager()]:[]}else return xe(AA(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Ls(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 Ls(t){return t.mainType==="series"}function Wp(t){throw new Error(t)}function zo(t,e){return e.type=t,e}function Q0(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Wf(n)}function S2(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=Pe(s),u=Q0(e,r),f,c,h,v;if(o>1||l&&!o){var d=b2(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=Ia(i,r,a[0]),c=p.type}else v=f=l?s[0]:s;var g=Bh(e),y=g&&e.name||"",m=i.getName(r),w=n?y:m;return zo("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[zo("nameValue",{markerType:"item",markerColor:u,name:w,noName:!Un(w),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function b2(t,e,r,n,i){var a=e.getData(),o=Qn(t,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?G(n,function(c){f(Ia(a,r,c),c)}):G(t,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(zo("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var En=Lt();function Es(t,e){return t.getName(e)||t.getId(e)}var w2="__universalTransitionEnabled",_r=function(t){be(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=Co({count:T2,reset:x2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=En(this).sourceManager=new _2(this);a.prepareSource();var o=this.getInitialData(r,i);Xp(o,this),this.dataTask.context.data=o,En(this).dataBeforeProcessed=o,jp(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Fo(this),a=i?gu(r):{},o=this.subType;ft.hasClass(o)&&(o+="Series"),ut(r,n.getTheme().get(this.subType)),ut(r,this.getDefaultOption()),Ef(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&xa(r,a,i)},e.prototype.mergeOption=function(r,n){r=ut(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Fo(this);i&&xa(this.option,r,i);var a=En(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Xp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,En(this).dataBeforeProcessed=o,jp(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&&Ef(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=qf(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return En(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=qf(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}En(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return qe(r)},e.prototype.getSourceManager=function(){return En(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return En(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 S2({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(lt.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=tv.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=Es(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=tt(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[Es(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[w2])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"){Oe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=Es(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=Es(r,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(v),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 ft.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}(ft);jr(_r,a2);jr(_r,tv);Nm(_r,ft);function jp(t){var e=t.name;Bh(t)||(t.name=C2(t)||e)}function C2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return G(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function T2(t){return t.model.getRawData().count()}function x2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),I2}function I2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Xp(t,e){G(Gw(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,dr(A2,e))})}function A2(t,e){var r=qf(t);return r&&r.setOutputEnd((e||this).count()),e}function qf(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 In=function(){function t(){this.group=new At,this.uid=fu("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}();Nh(In);eu(In);function sv(){var t=Lt();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 J0=Lt(),k2=sv(),nr=function(){function t(){this.group=new At,this.uid=fu("viewChart"),this.renderTask=Co({plan:M2,reset:P2}),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&&Kp(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&Kp(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){lu(this.group,e)},t.markUpdateMethod=function(e,r){J0(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function qp(t,e,r){t&&zf(t)&&(e==="emphasis"?Il:Al)(t,r)}function Kp(t,e,r){var n=wa(t,e),i=e&&e.highlightKey!=null?Jx(e.highlightKey):null;n!=null?G(Kt(n),function(a){qp(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){qp(a,r,i)})}Nh(nr);eu(nr);function M2(t){return k2(t.model)}function P2(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&J0(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),R2[l]}var R2={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 e1(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 h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;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 h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}var Yp=Lt(),Zp={itemStyle:Lo(_0,!0),lineStyle:Lo(m0,!0)},L2={lineStyle:"stroke",itemStyle:"fill"};function t1(t,e){var r=t.visualStyleMapper||Zp[e];return r||(console.warn("Unknown style type '"+e+"'."),Zp.itemStyle)}function r1(t,e){var r=t.visualDrawType||L2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var E2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=t1(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=r1(t,n),u=o[l],f=Xe(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Xe(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Xe(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=t.getDataParams(d),g=_e({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Xa=new Rt,D2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t1(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Xa.option=l[n];var u=i(Xa),f=o.ensureUniqueItemVisual(s,"style");_e(f,u),Xa.option.decal&&(o.setItemVisual(s,"decal",Xa.option.decal),Xa.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},O2={performRawSeries:!0,overallReset:function(t){var e=qe();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)),Yp(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Yp(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=r1(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 h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},Ds=Math.PI;function B2(t,e){e=e||{},Ze(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 At,n=new Pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new mr({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 Pt({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 su({shape:{startAngle:-Ds/2,endAngle:-Ds/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:Ds*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ds*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 n1=function(){function t(e,r,n,i){this._stageTaskMap=qe(),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=qe();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;G(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";vn(!(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;G(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(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=qe(),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 h=c.uid,v=s.set(h,o&&o.get(h)||Co({plan:U2,reset:V2,count:G2}));v.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Co({reset:N2});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=qe(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,v="";vn(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(c=!1,G(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,Co({reset:F2,onDirty:z2})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,a._pipe(p,y)}h&&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 Xe(e)&&(e={overallReset:e,seriesType:W2(e)}),e.uid=fu("stageHandler"),r&&(e.visualType=r),e},t}();function N2(t){t.overallReset(t.ecModel,t.api,t.payload)}function F2(t){return t.overallProgress&&$2}function $2(){this.agent.dirty(),this.getDownstream().dirty()}function z2(){this.agent&&this.agent.dirty()}function U2(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function V2(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Kt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?xe(e,function(r,n){return i1(n)}):H2}var H2=i1(0);function i1(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 G2(t){return t.data.count()}function W2(t){Ol=null;try{t(Uo,a1)}catch{}return Ol}var Uo={},a1={},Ol;o1(Uo,rv);o1(a1,$0);Uo.eachSeriesByType=Uo.eachRawSeriesByType=function(t){Ol=t};Uo.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Ol=t.subType)};function o1(t,e){for(var r in e.prototype)t[r]=pr}var Qp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const j2={color:Qp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Qp]};var jt="#B9B8CE",Jp="#100C2A",Os=function(){return{axisLine:{lineStyle:{color:jt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},eg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],s1={darkMode:!0,color:eg,backgroundColor:Jp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:jt}},textStyle:{color:jt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:jt}},dataZoom:{borderColor:"#71708A",textStyle:{color:jt},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:jt}},timeline:{lineStyle:{color:jt},label:{color:jt},controlStyle:{color:jt,borderColor:jt}},calendar:{itemStyle:{color:Jp},dayLabel:{color:jt},monthLabel:{color:jt},yearLabel:{color:jt}},timeAxis:Os(),logAxis:Os(),valueAxis:Os(),categoryAxis:Os(),line:{symbol:"circle"},graph:{color:eg},gauge:{title:{color:jt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:jt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};s1.categoryAxis.splitLine.show=!1;var X2=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(Le(e)){var a=un(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};G(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.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,h,v,d){return c[v]==null||h[d||v]===c[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Kf=["symbol","symbolSize","symbolRotate","symbolOffset"],tg=Kf.concat(["symbolKeepAspect"]),q2={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<Kf.length;o++){var s=Kf[o],l=t.get(s);Xe(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(_e({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=tt(i);function f(c,h){for(var v=t.getRawValue(h),d=t.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,i[g](v,d))}}return{dataEach:a?f:null}}},K2={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<tg.length;s++){var l=tg[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Y2(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 Z2(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 Q2(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}G([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=_e({},i),o.dispatchAction(_e(i,{type:n[1],seriesIndex:r(a,i)}))})})}function ia(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(),h=wa(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:Pe(h)?c.getName(h[0]):c.getName(h),selected:Le(l)?l:_e({},l)})}})}function J2(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(ia("map","selectchanged",e,i,n),ia("pie","selectchanged",e,i,n)):n.fromAction==="select"?(ia("map","selected",e,i,n),ia("pie","selected",e,i,n)):n.fromAction==="unselect"&&(ia("map","unselected",e,i,n),ia("pie","unselected",e,i,n))})}function Bs(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var ek=Math.round(Math.random()*9),tk=typeof Object.defineProperty=="function",rk=function(){function t(){this._id="__ec_inner_"+ek++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return tk?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}(),nk=it.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()}}),ik=it.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()}}),ak=it.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),h=Math.cos(u),v=o*.6,d=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*v,l+s+h*v,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*v,l+s+h*v,r-f,l+s),t.closePath()}}),ok=it.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()}}),sk={line:ri,rect:Pt,roundRect:Pt,square:Pt,circle:es,diamond:ik,pin:ak,arrow:ok,triangle:nk},lk={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}},Yf={};G(sk,function(t,e){Yf[e]=new t});var uk=it.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=wl(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=Yf[n];i||(n="rect",i=Yf[n]),lk[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function ck(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 ni(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=f0(t.slice(8),new ht(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=jh(t.slice(7),{},new ht(e,r,n,i),o?"center":"cover"):l=new uk({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=ck,a&&l.setColor(a),l}function l1(t){return Pe(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function u1(t,e){if(t!=null)return Pe(t)||(t=[t,t]),[vt(t[0],e[0])||0,vt(Ne(t[1],t[0]),e[1])||0]}function Bi(t){return isFinite(t)}function fk(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=Bi(n)?n:0,i=Bi(i)?i:1,a=Bi(a)?a:0,o=Bi(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function hk(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=Bi(o)?o:.5,s=Bi(s)?s:.5,l=l>=0&&Bi(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function rg(t,e,r){for(var n=e.type==="radial"?hk(t,e,r):fk(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function vk(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 Ns(t){return parseInt(t,10)}function ng(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]||Ns(s[n])||Ns(t.style[n]))-(Ns(s[a])||0)-(Ns(s[o])||0)|0}function dk(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:dt(t)?[t]:Pe(t)?t:null}function lv(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&dk(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=xe(r,function(a){return a/i}),n/=i)}return[r,n]}var pk=new ti(!0);function Bl(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function ig(t){return typeof t=="string"&&t!=="none"}function Nl(t){var e=t.fill;return e!=null&&e!=="none"}function ag(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 og(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 sg(t,e,r){var n=Fh(e.image,e.__image,r);if(tu(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)*Qs),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function gk(t,e,r,n){var i,a=Bl(r),o=Nl(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||pk,c=e.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,p=a&&!!v.colorStops,g=o&&!!h.image,y=a&&!!v.image,m=void 0,w=void 0,k=void 0,P=void 0,C=void 0;(d||p)&&(C=e.getBoundingRect()),d&&(m=c?rg(t,h,C):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(w=c?rg(t,v,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),g&&(k=c||!e.__canvasFillPattern?sg(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=k),y&&(P=c||!e.__canvasStrokePattern?sg(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=k),d?t.fillStyle=m:g&&(k?t.fillStyle=k:o=!1),p?t.strokeStyle=w:y&&(P?t.strokeStyle=P:a=!1)}var I=e.getGlobalScale();f.setScale(I[0],I[1],e.segmentIgnoreThreshold);var M,b;t.setLineDash&&r.lineDash&&(i=lv(e),M=i[0],b=i[1]);var T=!0;(u||c&la)&&(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),M&&(t.setLineDash(M),t.lineDashOffset=b),n||(r.strokeFirst?(a&&og(t,r),o&&ag(t,r)):(o&&ag(t,r),a&&og(t,r))),M&&t.setLineDash([])}function yk(t,e,r){var n=e.__image=Fh(r.image,e.__image,e,e.onload);if(!(!n||!tu(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,h=s-f;t.drawImage(n,u,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function mk(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Zn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=lv(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Bl(r)&&t.strokeText(i,r.x,r.y),Nl(r)&&t.fillText(i,r.x,r.y)):(Nl(r)&&t.fillText(i,r.x,r.y),Bl(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var lg=["shadowBlur","shadowOffsetX","shadowOffsetY"],ug=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function c1(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)?Fi.opacity:o}(n||e.blend!==r.blend)&&(a||(er(t,i),a=!0),t.globalCompositeOperation=e.blend||Fi.blend);for(var s=0;s<lg.length;s++){var l=lg[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||Fi.shadowColor),a}function cg(t,e,r,n,i){var a=Vo(e,i.inHover),o=n?null:r&&Vo(r,i.inHover)||{};if(a===o)return!1;var s=c1(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(er(t,i),s=!0),ig(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(er(t,i),s=!0),ig(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<ug.length;f++){var c=ug[f],h=c[0];(n||a[h]!==o[h])&&(s||(er(t,i),s=!0),t[h]=a[h]||c[1])}return s}function _k(t,e,r,n,i){return c1(t,Vo(e,i.inHover),r&&Vo(r,i.inHover),n,i)}function f1(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 Sk(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),f1(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function bk(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 fg=1,hg=2,vg=3,dg=4;function wk(t){var e=Nl(t),r=Bl(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 Vo(t,e){return e&&t.__hoverStyle||t.style}function Ck(t,e){Zf(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zf(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~on,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||vk(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(),Sk(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 it&&e.autoBatch&&wk(e.style);s||bk(i,u.transform)?(er(t,r),f1(t,e)):f||er(t,r);var c=Vo(e,r.inHover);e instanceof it?(r.lastDrawType!==fg&&(l=!0,r.lastDrawType=fg),cg(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),gk(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof Eo?(r.lastDrawType!==vg&&(l=!0,r.lastDrawType=vg),cg(t,e,u,l,r),mk(t,e,c)):e instanceof Xr?(r.lastDrawType!==hg&&(l=!0,r.lastDrawType=hg),_k(t,e,u,l,r),yk(t,e,c)):e.getTemporalDisplayables&&(r.lastDrawType!==dg&&(l=!0,r.lastDrawType=dg),Tk(t,e,r)),f&&n&&er(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Tk(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(),Zf(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(),Zf(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Rc=new rk,pg=new Zo(100),gg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Qf(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Rc.delete(t);var a=Rc.get(t);if(a)return a;var o=Ze(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,Rc.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<gg.length;++h){var v=o[gg[h]];if(v!=null&&!Pe(v)&&!Le(v)&&!dt(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=pg.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=v1(o.dashArrayX),y=xk(o.dashArrayY),m=h1(o.symbol),w=Ik(g),k=d1(y),P=!i&&Ko.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},I=b(),M;P&&(P.width=I.width*r,P.height=I.height*r,M=P.getContext("2d")),T(),c&&pg.put(d,P||C),u.image=P,u.svgElement=C,u.svgWidth=I.width,u.svgHeight=I.height;function b(){for(var _=1,x=0,A=w.length;x<A;++x)_=Ld(_,w[x]);for(var R=1,x=0,A=m.length;x<A;++x)R=Ld(R,m[x].length);_*=R;var N=k*w.length*m.length;return{width:Math.max(1,Math.min(_,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function T(){M&&(M.clearRect(0,0,P.width,P.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,P.width,P.height)));for(var _=0,x=0;x<y.length;++x)_+=y[x];if(_<=0)return;for(var A=-k,R=0,N=0,E=0;A<I.height;){if(R%2===0){for(var U=N/2%m.length,F=0,B=0,X=0;F<I.width*2;){for(var Z=0,x=0;x<g[E].length;++x)Z+=g[E][x];if(Z<=0)break;if(B%2===0){var q=(1-o.symbolSize)*.5,se=F+g[E][B]*q,ce=A+y[R]*q,Q=g[E][B]*o.symbolSize,J=y[R]*o.symbolSize,ee=X/2%m[U].length;ue(se,ce,Q,J,m[U][ee])}F+=g[E][B],++X,++B,B===g[E].length&&(B=0)}++E,E===g.length&&(E=0)}A+=y[R],++N,++R,R===y.length&&(R=0)}function ue(fe,he,te,ie,Ae){var ne=i?1:r,le=ni(Ae,fe*ne,he*ne,te*ne,ie*ne,o.color,o.symbolKeepAspect);if(i){var we=n.painter.renderOneToVNode(le);we&&C.children.push(we)}else Ck(M,le)}}}}function h1(t){if(!t||t.length===0)return[["rect"]];if(Le(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Le(t[r])){e=!1;break}if(e)return h1([t]);for(var n=[],r=0;r<t.length;++r)Le(t[r])?n.push([t[r]]):n.push(t[r]);return n}function v1(t){if(!t||t.length===0)return[[0,0]];if(dt(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!dt(t[n])){r=!1;break}if(r)return v1([t]);for(var i=[],n=0;n<t.length;++n)if(dt(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=xe(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function xk(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(dt(t)){var e=Math.ceil(t);return[e,e]}var r=xe(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function Ik(t){return xe(t,function(e){return d1(e)})}function d1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function Ak(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=Qf(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Qf(i,e)}}})}var Hr=new An,p1={};function kk(t,e){p1[t]=e}function Mk(t){return p1[t]}var Pk=1,Rk=800,Lk=900,Ek=1e3,Dk=2e3,Ok=5e3,g1=1e3,Bk=1100,uv=2e3,y1=3e3,Nk=4e3,_u=4500,Fk=4600,$k=5e3,zk=6e3,m1=7e3,Uk={PROCESSOR:{FILTER:Ek,SERIES_FILTER:Rk,STATISTIC:Ok},VISUAL:{LAYOUT:g1,PROGRESSIVE_LAYOUT:Bk,GLOBAL:uv,CHART:y1,POST_CHART_LAYOUT:Fk,COMPONENT:Nk,BRUSH:$k,CHART_ITEM:_u,ARIA:zk,DECAL:m1}},Ut="__flagInMainProcess",Qt="__pendingUpdate",Lc="__needsUpdateStatus",yg=/^[a-zA-Z0-9_]+$/,Ec="__connectUpdateStatus",mg=0,Vk=1,Hk=2;function _1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return b1(this,t,e)}}function S1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return b1(this,t,e)}}function b1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),An.prototype[e].apply(t,r)}var w1=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(An),C1=w1.prototype;C1.on=S1("on");C1.off=S1("off");var aa,Dc,Fs,Dn,Oc,Bc,Nc,qa,Ka,_g,Sg,Fc,bg,$s,wg,T1,wr,Cg,x1=function(t){be(e,t);function e(r,n,i){var a=t.call(this,new X2)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Le(n)&&(n=I1[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&hT(function(h){var v=yt(h),d=v.dataIndex;if(d!=null){var p=qe();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=a._zr=Pd(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ne(i.useDirtyRect,l),useCoarsePointer:Ne(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=e1(xt(u.flush,u),17),n=et(n),n&&U0(n,!0),a._theme=n,a._locale=cA(i.locale||b0),a._coordSysMgr=new nv;var f=a._api=wg(a);function c(h,v){return h.__prio-v.__prio}return Js($l,c),Js(Jf,c),a._scheduler=new n1(a,f,Jf,$l),a._messageCenter=new w1,a._initEvents(),a.resize=xt(a.resize,a),u.animation.on("frame",a._onframe,a),_g(u,a),Sg(u,a),vf(a),a}return e.prototype._onframe=function(){if(!this._disposed){Cg(this);var r=this._scheduler;if(this[Qt]){var n=this[Qt].silent;this[Ut]=!0;try{aa(this),Dn.update.call(this,null,this[Qt].updateParams)}catch(l){throw this[Ut]=!1,this[Qt]=null,l}this._zr.flush(),this[Ut]=!1,this[Qt]=null,qa.call(this,n),Ka.call(this,n)}else if(r.unfinished){var i=Pk,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Bc(this,a),r.performVisualTasks(a),$s(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[Ut]){if(this._disposed){this.id;return}var a,o,s;if(Oe(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ut]=!0,!this._model||n){var l=new FA(this._api),u=this._theme,f=this._model=new rv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},eh);var c={seriesTransition:s,optionChanged:!0};if(i)this[Qt]={silent:a,updateParams:c},this[Ut]=!1,this.getZr().wakeUp();else{try{aa(this),Dn.update.call(this,null,c)}catch(h){throw this[Qt]=null,this[Ut]=!1,h}this._ssr||this._zr.flush(),this[Qt]=null,this[Ut]=!1,qa.call(this,a),Ka.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||lt.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(lt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return G(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;G(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 G(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(Tg[i]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();G(xo,function(w,k){if(w.group===i){var P=n?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(et(r)),C=w.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),f=o(C.right,f),c=o(C.bottom,c),h.push({dom:P,left:C.left,top:C.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=Ko.createCanvas(),y=Pd(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return G(h,function(w){var k=w.left-l,P=w.top-u;m+='<g transform="translate('+k+","+P+')">'+w.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Pt({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),G(h,function(w){var k=new Xr({style:{x:w.left*v-l,y:w.top*v-u,image:w.dom}});y.add(k)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return Oc(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return Oc(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=ac(i,r);return G(o,function(s,l){l.indexOf("Models")>=0&&G(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=ac(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?Y2(s,l,n):Z2(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;G(Gk,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Bs(s,function(d){var p=yt(d);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=_e({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),G(To,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),G(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),J2(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&&Om(this.getDom(),fv,"");var n=this,i=n._api,a=n._model;G(n._componentsViews,function(o){o.dispose(a,i)}),G(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 xo[n.id]},e.prototype.resize=function(r){if(!this[Ut]){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[Qt]&&(a==null&&(a=this[Qt].silent),i=!0,this[Qt]=null),this[Ut]=!0;try{i&&aa(this),Dn.update.call(this,{type:"resize",animation:_e({duration:0},r&&r.animation)})}catch(o){throw this[Ut]=!1,o}this[Ut]=!1,qa.call(this,a),Ka.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Oe(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!th[r]){var i=th[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=_e({},r);return n.type=To[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Oe(n)||(n={silent:!!n}),!!Fl[r.type]&&this._model){if(this[Ut]){this._pendingActions.push(r);return}var i=n.silent;Nc.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&lt.browser.weChat&&this._throttledZrFlush(),qa.call(this,i),Ka.call(this,i)}},e.prototype.updateLabelLayout=function(){Hr.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(){aa=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Dc(c,!0),Dc(c,!1),h.plan()},Dc=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,w=0;w<p.length;w++)p[w].__alive=!1;h?v.eachComponent(function(C,I){C!=="series"&&k(I)}):v.eachSeries(k);function k(C){var I=C.__requireNewView;C.__requireNewView=!1;var M="_ec_"+C.id+"_"+C.type,b=!I&&g[M];if(!b){var T=un(C.type),_=h?In.getClass(T.main,T.sub):nr.getClass(T.sub);b=new _,b.init(v,m),g[M]=b,p.push(b),y.add(b.group)}C.__viewId=b.__id=M,b.__alive=!0,b.__model=C,b.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!h&&d.prepareView(b,C,v,m)}for(var w=0;w<p.length;){var P=p[w];P.__alive?w++:(!h&&P.renderTask.dispose(),y.remove(P.group),P.dispose(v,m),p.splice(w,1),g[P.__id]===P&&delete g[P.__id],P.__id=P.group.__ecComponentInfo=null)}},Fs=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){G([].concat(c._componentsViews).concat(c._chartsViews),P);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var w=v.excludeSeriesId,k;w!=null&&(k=qe(),G(Kt(w),function(C){var I=fn(C,null);I!=null&&k.set(I,!0)})),g&&g.eachComponent(m,function(C){var I=k&&k.get(C.id)!=null;if(!I)if(ap(v))if(C instanceof _r)v.type===$i&&!v.notBlur&&!C.get(["emphasis","disabled"])&&Wx(C,v,c._api);else{var M=Vh(C.mainType,C.componentIndex,v.name,c._api),b=M.focusSelf,T=M.dispatchers;v.type===$i&&b&&!v.notBlur&&Ff(C.mainType,C.componentIndex,c._api),T&&G(T,function(_){v.type===$i?Il(_):Al(_)})}else Uf(v)&&C instanceof _r&&(qx(C,v,c._api),np(C),wr(c))},c),g&&g.eachComponent(m,function(C){var I=k&&k.get(C.id)!=null;I||P(c[d==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},c);function P(C){C&&C.__alive&&C[h]&&C[h](C.__model,g,c._api,v)}},Dn={prepareAndUpdate:function(c){aa(this),Dn.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(c),y.restoreData(v,c),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,c),Bc(this,v),g.update(v,d),r(v),y.performVisualTasks(v,c),Fc(this,v,d,c,h);var m=v.get("backgroundColor")||"transparent",w=v.get("darkMode");p.setBackgroundColor(m),w!=null&&w!=="auto"&&p.setDarkMode(w),Hr.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var w=h.getViewOfComponentModel(m);if(w&&w.__alive)if(w.updateTransform){var k=w.updateTransform(m,v,d,c);k&&k.update&&p.push(w)}else p.push(w)}});var g=qe();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var w=m.updateTransform(y,v,d,c);w&&w.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),$s(this,v,d,c,{},g),Hr.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),nr.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Fc(this,h,this._api,c,{}),Hr.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),nr.markUpdateMethod(c,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),Hr.trigger("afterupdate",v,this._api))},updateLayout:function(c){Dn.update.call(this,c)}},Oc=function(c,h,v,d){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,m=ac(p,v),w=0;w<g.length;w++){var k=g[w];if(k[h]&&(y=k[h](p,m,d))!=null)return y}},Bc=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Nc=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=Fl[p],m=y.actionInfo,w=(m.update||"update").split(":"),k=w.pop(),P=w[0]!=null&&un(w[0]);this[Ut]=!0;var C=[c],I=!1;c.batch&&(I=!0,C=xe(c.batch,function(R){return R=Ze(_e({},R),c),R.batch=null,R}));var M=[],b,T=Uf(c),_=ap(c);if(_&&t0(this._api),G(C,function(R){if(b=y.action(R,v._model,v._api),b=b||_e({},R),b.type=m.event||b.type,M.push(b),_){var N=Dm(c),E=N.queryOptionMap,U=N.mainTypeSpecified,F=U?E.keys()[0]:"series";Fs(v,k,R,F),wr(v)}else T?(Fs(v,k,R,"series"),wr(v)):P&&Fs(v,k,R,P.main,P.sub)}),k!=="none"&&!_&&!T&&!P)try{this[Qt]?(aa(this),Dn.update.call(this,c),this[Qt]=null):Dn[k].call(this,c)}catch(R){throw this[Ut]=!1,R}if(I?b={type:m.event||p,escapeConnect:g,batch:M}:b=M[0],this[Ut]=!1,!h){var x=this._messageCenter;if(x.trigger(b.type,b),T){var A={type:"selectchanged",escapeConnect:g,selected:Kx(d),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};x.trigger(A.type,A)}}},qa=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Nc.call(this,v,c)}},Ka=function(c){!c&&this.trigger("updated")},_g=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Qt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Sg=function(c,h){c.on("mouseover",function(v){var d=v.target,p=Bs(d,zf);p&&(jx(p,v,h._api),wr(h))}).on("mouseout",function(v){var d=v.target,p=Bs(d,zf);p&&(Xx(p,v,h._api),wr(h))}).on("click",function(v){var d=v.target,p=Bs(d,function(m){return yt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=yt(p);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,w){var k=w.get("zlevel")||0,P=w.get("z")||0,C=w.getZLevelKey();d=d||!!C,(m==="series"?v:h).push({zlevel:k,z:P,idx:w.componentIndex,type:m,key:C})}),d){var p=h.concat(v),g,y;Js(p,function(m,w){return m.zlevel===w.zlevel?m.z-w.z:m.zlevel-w.zlevel}),G(p,function(m){var w=c.getComponent(m.type,m.idx),k=m.zlevel,P=m.key;g!=null&&(k=Math.max(g,k)),P?(k===g&&P!==y&&k++,y=P):y&&(k===g&&k++,y=""),g=k,w.setZLevel(k)})}}Fc=function(c,h,v,d,p){n(h),bg(c,h,v,d,p),G(c._chartsViews,function(g){g.__alive=!1}),$s(c,h,v,d,p),G(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},bg=function(c,h,v,d,p,g){G(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,d),s(m,y),f(m,y)})},$s=function(c,h,v,d,p,g){var y=c._scheduler;p=_e(p||{},{updatedSeries:h.getSeries()}),Hr.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(w){var k=c._chartsMap[w.__viewId];k.__alive=!0;var P=k.renderTask;y.updatePayload(P,d),u(w,k),g&&g.get(w.uid)&&P.dirty(),P.perform(y.getPerformArgs(P))&&(m=!0),k.group.silent=!!w.get("silent"),o(w,k),np(w)}),y.unfinished=m||y.unfinished,Hr.trigger("series:layoutlabels",h,v,p),Hr.trigger("series:transition",h,v,p),h.eachSeries(function(w){var k=c._chartsMap[w.__viewId];s(w,k),f(w,k)}),a(c,h),Hr.trigger("series:afterupdate",h,v,p)},wr=function(c){c[Lc]=!0,c.getZr().wakeUp()},Cg=function(c){c[Lc]&&(c.getZr().storage.traverse(function(h){So(h)||i(h)}),c[Lc]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===iu&&c.states.emphasis?h.push("emphasis"):c.hoverState===nu&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!lt.node&&!lt.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(c,h){if(!c.preventAutoZ){var v=c.get("z")||0,d=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(c,h,v,d){var p=c.getTextContent(),g=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),w=0;w<m.length;w++)d=Math.max(l(m[w],h,v,d),d);else c.z=h,c.zlevel=v,d=Math.max(c.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var k=c.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(k&&k.showAbove?1:-1))}return d}function u(c,h){h.eachRendered(function(v){if(!So(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(So(y))return;if(y instanceof it&&eI(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var w=y.getTextContent(),k=y.getTextGuideLine();w&&(w.stateTransition=g),k&&(k.stateTransition=g)}y.__dirty&&i(y)}})}wg=function(c){return new(function(h){be(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Il(d,p),wr(c)},v.prototype.leaveEmphasis=function(d,p){Al(d,p),wr(c)},v.prototype.enterBlur=function(d){Gx(d),wr(c)},v.prototype.leaveBlur=function(d){Zm(d),wr(c)},v.prototype.enterSelect=function(d){Qm(d),wr(c)},v.prototype.leaveSelect=function(d){Jm(d),wr(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v}($0))(c)},T1=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Ec]=d}}G(To,function(v,d){c._messageCenter.on(d,function(p){if(Tg[c.group]&&c[Ec]!==mg){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];G(xo,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,mg),G(y,function(m){m[Ec]!==Vk&&m.dispatchAction(g)}),h(y,Hk)}})})}}(),e}(An),cv=x1.prototype;cv.on=_1("on");cv.off=_1("off");cv.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 Gk=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Fl={},To={},Jf=[],eh=[],$l=[],I1={},th={},xo={},Tg={},Wk=+new Date-0,fv="_echarts_instance_";function jk(t,e,r){var n=!(r&&r.ssr);if(n){var i=Xk(t);if(i)return i}var a=new x1(t,e,r);return a.id="ec_"+Wk++,xo[a.id]=a,n&&Om(t,fv,a.id),T1(a),Hr.trigger("afterinit",a),a}function Xk(t){return xo[OT(t,fv)]}function A1(t,e){I1[t]=e}function k1(t){gt(eh,t)<0&&eh.push(t)}function M1(t,e){vv(Jf,t,e,Dk)}function qk(t){hv("afterinit",t)}function Kk(t){hv("afterupdate",t)}function hv(t,e){Hr.on(t,e)}function La(t,e,r){Xe(e)&&(r=e,e="");var n=Oe(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!To[e]&&(vn(yg.test(n)&&yg.test(e)),Fl[n]||(Fl[n]={action:r,actionInfo:t}),To[e]=n)}function Yk(t,e){nv.register(t,e)}function Zk(t,e){vv($l,t,e,g1,"layout")}function Wi(t,e){vv($l,t,e,y1,"visual")}var xg=[];function vv(t,e,r,n,i){if((Xe(e)||Oe(e))&&(r=e,e=n),!(gt(xg,r)>=0)){xg.push(r);var a=n1.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function P1(t,e){th[t]=e}function Qk(t,e,r){var n=Mk("registerMap");n&&n(t,e,r)}var Jk=v2;Wi(uv,E2);Wi(_u,D2);Wi(_u,O2);Wi(uv,q2);Wi(_u,K2);Wi(m1,Ak);k1(U0);M1(Lk,YA);P1("default",B2);La({type:$i,event:$i,update:$i},pr);La({type:al,event:al,update:al},pr);La({type:yo,event:yo,update:yo},pr);La({type:ol,event:ol,update:ol},pr);La({type:mo,event:mo,update:mo},pr);A1("light",j2);A1("dark",s1);function Ya(t){return t==null?0:t.length||1}function Ig(t){return t}var eM=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Ig,this._newKeyGetter=i||Ig,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=Ya(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=Ya(u),h=Ya(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);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=Ya(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=Ya(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),tM=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 rM(t,e){var r={},n=r.encode={},i=qe(),a=[],o=[],s={};G(t.dimensions,function(h){var v=t.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;$c(n,d)[p]=h,v.isExtraCoord||(i.set(d,1),iM(v.type)&&(a[0]=h),$c(s,d)[p]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}D0.each(function(g,y){var m=$c(n,y),w=v.otherDims[y];w!=null&&w!==!1&&(m[w]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=xe(l,function(h){return t.getDimensionInfo(h).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 tM(s,e),r}function $c(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function nM(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function iM(t){return!(t==="ordinal"||t==="time")}var cl=function(){function t(e){this.otherDims={},e!=null&&_e(this,e)}return t}(),aM=Lt(),oM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},R1=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=D1(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Ne(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=G0(this.source),n=!O1(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 h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.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+=oM[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},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 L1(t){return t instanceof R1}function E1(t){for(var e=qe(),r=0;r<(t||[]).length;r++){var n=t[r],i=Oe(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function D1(t){var e=aM(t);return e.dimNameMap||(e.dimNameMap=E1(t.dimensionsDefine))}function O1(t){return t>30}var Za=Oe,On=xe,sM=typeof Int32Array>"u"?Array:Int32Array,lM="e\0\0",Ag=-1,uM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],cM=["_approximateExtent"],kg,zs,Qa,Ja,zc,Us,Uc,B1=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;L1(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],h=Le(c)?new cl({name:c}):c instanceof cl?c:new cl(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=qe();G(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(dt(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 Xf&&(a=e),!a){var o=this.dimensions,s=iv(e)||ar(e)?new W0(e,o.length):e;a=new Xf;var l=On(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=rM(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&&Uc(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!==Kn&&!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===Or;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&TT(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=fn(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=fn(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Uc(this,f);kg(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){Za(e)?_e(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=Qa(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 zs(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 Pe(e)?i.getValues(On(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)?Ag:i},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){Xe(e)&&(n=r,r=e,e=[]);var i=n||this,a=On(Ja(e),this._getStoreDimIndex,this);this._store.each(a,i?xt(r,i):r)},t.prototype.filterSelf=function(e,r,n){Xe(e)&&(n=r,r=e,e=[]);var i=n||this,a=On(Ja(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?xt(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=tt(e);return G(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){Xe(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=On(Ja(e),this._getStoreDimIndex,this),s=Us(this);return s._store=this._store.map(o,a?xt(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=On(Ja(e),this._getStoreDimIndex,this);this._store.modify(o,a?xt(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=Us(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.lttbDownSample=function(e,r){var n=Us(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 Rt(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new eM(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return zs(e,n)},function(n){return zs(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||{},Za(e)?_e(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),Pe(a)?a=a.slice():Za(a)&&(a=_e({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Za(r)?_e(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Za(e)?_e(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?_e(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;Dx(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){G(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:On(this.dimensions,this._getDimInfo,this),this.hostModel)),zc(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Xe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ah(arguments)))})},t.internalField=function(){kg=function(e){var r=e._invertedIndicesMap;G(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new sM(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Ag;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Qa=function(e,r,n){return fn(e._getCategory(r,n),null)},zs=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Qa(e,e._idDimIdx,r)),n==null&&(n=lM+r),n},Ja=function(e){return Pe(e)||(e=e!=null?[e]:[]),e},Us=function(e){var r=new t(e._schema?e._schema:On(e.dimensions,e._getDimInfo,e),e.hostModel);return zc(r,e),r},zc=function(e,r){G(uM.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,G(cM,function(n){e[n]=et(r[n])}),e._calculationInfo=_e({},r._calculationInfo)},Uc=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=Qa(e,a,r)),l==null&&o!=null&&(i[r]=l=Qa(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 N1(t,e){iv(t)||(t=V0(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=qe(),a=[],o=hM(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&O1(o),l=n===t.dimensionsDefine,u=l?D1(t):E1(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=qe(f),h=new Y0(o),v=0;v<h.length;v++)h[v]=-1;function d(b){var T=h[b];if(T<0){var _=n[b],x=Oe(_)?_:{name:_},A=new cl,R=x.name;R!=null&&u.get(R)!=null&&(A.name=A.displayName=R),x.type!=null&&(A.type=x.type),x.displayName!=null&&(A.displayName=x.displayName);var N=a.length;return h[b]=N,A.storeDimIndex=b,a.push(A),A}return a[T]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(b,T){var _=Kt(b).slice();if(_.length===1&&!Le(_[0])&&_[0]<0){c.set(T,!1);return}var x=c.set(T,[]);G(_,function(A,R){var N=Le(A)?u.get(A):A;N!=null&&N<o&&(x[R]=N,g(d(N),T,R))})});var p=0;G(r,function(b){var T,_,x,A;if(Le(b))T=b,A={};else{A=b,T=A.name;var R=A.ordinalMeta;A.ordinalMeta=null,A=_e({},A),A.ordinalMeta=R,_=A.dimsDef,x=A.otherDims,A.name=A.coordDim=A.coordDimIndex=A.dimsDef=A.otherDims=null}var N=c.get(T);if(N!==!1){if(N=Kt(N),!N.length)for(var E=0;E<(_&&_.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&N.push(p++)}G(N,function(U,F){var B=d(U);if(l&&A.type!=null&&(B.type=A.type),g(Ze(B,A),T,F),B.name==null&&_){var X=_[F];!Oe(X)&&(X={name:X}),B.name=B.displayName=X.name,B.defaultTooltip=X.defaultTooltip}x&&Ze(B.otherDims,x)})}});function g(b,T,_){D0.get(T)!=null?b.otherDims[T]=_:(b.coordDim=T,b.coordDimIndex=_,i.set(T,!0))}var y=e.generateCoord,m=e.generateCoordCount,w=m!=null;m=y?m||1:0;var k=y||"value";function P(b){b.name==null&&(b.name=b.coordDim)}if(s)G(a,function(b){P(b)}),a.sort(function(b,T){return b.storeDimIndex-T.storeDimIndex});else for(var C=0;C<o;C++){var I=d(C),M=I.coordDim;M==null&&(I.coordDim=vM(k,i,w),I.coordDimIndex=0,(!y||m<=0)&&(I.isExtraCoord=!0),m--),P(I),I.type==null&&(N0(t,C)===Ot.Must||I.isExtraCoord&&(I.otherDims.itemName!=null||I.otherDims.seriesName!=null))&&(I.type="ordinal")}return fM(a),new R1({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function fM(t){for(var e=qe(),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 hM(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return G(e,function(a){var o;Oe(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function vM(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 dM=function(){function t(e){this.coordSysDims=[],this.axisMap=qe(),this.categoryAxisMap=qe(),this.coordSysName=e}return t}();function pM(t){var e=t.get("coordinateSystem"),r=new dM(e),n=gM[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var gM={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Wr).models[0],a=t.getReferringComponents("yAxis",Wr).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),oa(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),oa(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Wr).models[0];e.coordSysDims=["single"],r.set("single",i),oa(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Wr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),oa(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),oa(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();G(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),oa(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function oa(t){return t.get("type")==="category"}function yM(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;mM(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,h;if(G(a,function(m,w){Le(m)&&(a[w]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;G(a,function(m){m.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function mM(t){return!L1(t.schema)}function Aa(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function _M(t,e){return Aa(t,e)?t.getCalculationInfo("stackResultDimension"):e}function SM(t,e){var r=t.get("coordinateSystem"),n=nv.get(r),i;return e&&e.coordSysDims&&(i=xe(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=nM(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function bM(t,e,r){var n,i;return r&&G(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 Su(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Or;var o=pM(e),s=SM(e,o),l=r.useEncodeDefaulter,u=Xe(l)?l:l?dr(xA,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=N1(i,f),h=bM(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=yM(e,{schema:c,store:v}),p=new B1(c,e);p.setCalculationInfo(d);var g=h!=null&&wM(i)?function(y,m,w,k){return k===h?w:this.defaultDimValueGetter(y,m,w,k)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function wM(t){if(t.sourceFormat===Or){var e=CM(t.data||[]);return!Pe(Qo(e))}}function CM(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var gn=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}();eu(gn);var TM=0,rh=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++TM}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&xe(n,xM);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(!Le(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=qe(this.categories))},t}();function xM(t){return Oe(t)&&t.value!=null?t.value:t+""}function nh(t){return t.type==="interval"||t.type==="log"}function IM(t,e,r,n){var i={},a=t[1]-t[0],o=i.interval=Pm(a/e);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=F1(o),l=i.niceTickExtent=[wt(Math.ceil(t[0]/o)*o,s),wt(Math.floor(t[1]/o)*o,s)];return AM(l,t),i}function Vc(t){var e=Math.pow(10,Oh(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,wt(r*e)}function F1(t){return wn(t)+2}function Mg(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function AM(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Mg(t,0,e),Mg(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function bu(t,e){return t>=e[0]&&t<=e[1]}function wu(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Cu(t,e){return t*(e[1]-e[0])+e[0]}var dv=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new rh({})),Pe(i)&&(i=new rh({categories:xe(i,function(a){return Oe(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:Le(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return r=this.parse(r),bu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},e.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),wu(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(Cu(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}(gn);gn.registerClass(dv);var Pi=wt,ii=function(t){be(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 bu(r,this._extent)},e.prototype.normalize=function(r){return wu(r,this._extent)},e.prototype.scale=function(r){return Cu(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=F1(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:Pi(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Pi(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:Pi(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,h=c/r;u<r-1;){var v=Pi(l.value+(u+1)*h);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=wn(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Pi(r.value,i,!0);return yA(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=IM(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]=Pi(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Pi(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e}(gn);gn.registerClass(ii);var $1=typeof Float32Array<"u",kM=$1?Float32Array:Array;function Cn(t){return Pe(t)?$1?new Float32Array(t):t:new kM(t)}var MM="__ec_stack_";function pv(t){return t.get("stack")||MM+t.seriesIndex}function gv(t){return t.dim+t.index}function z1(t,e){var r=[];return e.eachSeriesByType(t,function(n){V1(n)&&r.push(n)}),r}function PM(t){var e={};G(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);e[h]?e[h].push(y):e[h]=[y]}});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 U1(t){var e=PM(t),r=[];return G(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(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=vt(n.get("barWidth"),s),p=vt(n.get("barMaxWidth"),s),g=vt(n.get("barMinWidth")||(H1(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:gv(a),stackId:pv(n)})}),RM(r)}function RM(t){var e={};G(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 h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return G(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=tt(a).length;s=Math.max(35-l*4,15)+"%"}var u=vt(s,o),f=vt(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),G(a,function(y){var m=y.maxWidth,w=y.minWidth;if(y.width){var k=y.width;m&&(k=Math.min(k,m)),w&&(k=Math.max(k,w)),y.width=k,c-=k+f*k,h--}else{var k=v;m&&m<k&&(k=Math.min(m,c)),w&&w>k&&(k=w),k!==v&&(y.width=k,c-=k+f*k,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;G(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;G(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),r}function LM(t,e,r){if(t&&e){var n=t[gv(e)];return n!=null&&r!=null?n[pv(r)]:n}}function EM(t,e){var r=z1(t,e),n=U1(r);G(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=pv(i),u=n[gv(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function DM(t){return{seriesType:t,plan:sv(),reset:function(e){if(V1(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=Aa(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=OM(i,a),d=H1(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(w,k){for(var P=w.count,C=d&&Cn(P*3),I=d&&l&&Cn(P*3),M=d&&Cn(P),b=n.master.getRect(),T=h?b.width:b.height,_,x=k.getStore(),A=0;(_=w.next())!=null;){var R=x.get(c?g:o,_),N=x.get(s,_),E=v,U=void 0;c&&(U=+R-x.get(o,_));var F=void 0,B=void 0,X=void 0,Z=void 0;if(h){var q=n.dataToPoint([R,N]);if(c){var se=n.dataToPoint([U,N]);E=se[0]}F=E,B=q[1]+m,X=q[0]-E,Z=y,Math.abs(X)<p&&(X=(X<0?-1:1)*p)}else{var q=n.dataToPoint([N,R]);if(c){var se=n.dataToPoint([N,U]);E=se[1]}F=q[0]+m,B=E,X=y,Z=q[1]-E,Math.abs(Z)<p&&(Z=(Z<=0?-1:1)*p)}d?(C[A]=F,C[A+1]=B,C[A+2]=h?X:Z,I&&(I[A]=h?b.x:F,I[A+1]=h?B:b.y,I[A+2]=T),M[_]=_):k.setItemLayout(_,{x:F,y:B,width:X,height:Z}),A+=3}d&&k.setLayout({largePoints:C,largeDataIndices:M,largeBackgroundPoints:I,valueAxisHorizontal:h})}}}}}}function V1(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function H1(t){return t.pipelineContext&&t.pipelineContext.large}function OM(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 BM=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},G1=function(t){be(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 T0(r.value,wp[dA(_a(this._minLevelUnit))]||wp.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return pA(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=HM(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]-=Pr,n[1]+=Pr),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]-Pr}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=Vs.length,l=Math.min(BM(Vs,this._approxInterval,0,s),s-1);this._interval=Vs[l][1],this._minLevelUnit=Vs[Math.max(l-1,0)][0]},e.prototype.parse=function(r){return dt(r)?r:+ei(r)},e.prototype.contain=function(r){return bu(this.parse(r),this._extent)},e.prototype.normalize=function(r){return wu(this.parse(r),this._extent)},e.prototype.scale=function(r){return Cu(r,this._extent)},e.type="time",e}(ii),Vs=[["second",Yh],["minute",Zh],["hour",bo],["quarter-day",bo*6],["half-day",bo*12],["day",Pr*1.2],["half-week",Pr*3.5],["week",Pr*7],["month",Pr*31],["quarter",Pr*95],["half-year",bp/2],["year",bp]];function NM(t,e,r,n){var i=ei(e),a=ei(r),o=function(d){return Cp(i,d,n)===Cp(a,d,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")},h=function(){return c()&&o("second")},v=function(){return h()&&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 h();case"millisecond":return v()}}function FM(t,e){return t/=Pr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function $M(t){var e=30*Pr;return t/=e,t>6?6:t>3?3:t>2?2:1}function zM(t){return t/=bo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Pg(t,e){return t/=e?Zh:Yh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function UM(t){return Pm(t)}function VM(t,e,r){var n=new Date(t);switch(_a(e)){case"year":case"month":n[I0(r)](0);case"day":n[A0(r)](1);case"hour":n[k0(r)](0);case"minute":n[M0(r)](0);case"second":n[P0(r)](0),n[R0(r)](0)}return n.getTime()}function HM(t,e,r,n){var i=1e4,a=C0,o=0;function s(T,_,x,A,R,N,E){for(var U=new Date(_),F=_,B=U[A]();F<x&&F<=n[1];)E.push({value:F}),B+=T,U[R](B),F=U.getTime();E.push({value:F,notAdd:!0})}function l(T,_,x){var A=[],R=!_.length;if(!NM(_a(T),n[0],n[1],r)){R&&(_=[{value:VM(new Date(n[0]),T,r)},{value:n[1]}]);for(var N=0;N<_.length-1;N++){var E=_[N].value,U=_[N+1].value;if(E!==U){var F=void 0,B=void 0,X=void 0,Z=!1;switch(T){case"year":F=Math.max(1,Math.round(e/Pr/365)),B=Qh(r),X=gA(r);break;case"half-year":case"quarter":case"month":F=$M(e),B=Sa(r),X=I0(r);break;case"week":case"half-week":case"day":F=FM(e),B=hu(r),X=A0(r),Z=!0;break;case"half-day":case"quarter-day":case"hour":F=zM(e),B=No(r),X=k0(r);break;case"minute":F=Pg(e,!0),B=vu(r),X=M0(r);break;case"second":F=Pg(e,!1),B=du(r),X=P0(r);break;case"millisecond":F=UM(e),B=pu(r),X=R0(r);break}s(F,E,U,B,X,Z,A),T==="year"&&x.length>1&&N===0&&x.unshift({value:x[0].value-F})}}for(var N=0;N<A.length;N++)x.push(A[N]);return A}}for(var u=[],f=[],c=0,h=0,v=0;v<a.length&&o++<i;++v){var d=_a(a[v]);if(vA(a[v])){l(a[v],u[u.length-1]||[],f);var p=a[v+1]?_a(a[v+1]):null;if(d!==p){if(f.length){h=c,f.sort(function(T,_){return T.value-_.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&c++)}var w=(n[1]-n[0])/e;if(c>w*1.5&&h>w/1.5||(u.push(g),c>w||t===a[v]))break}f=[]}}}for(var k=Gt(xe(u,function(T){return Gt(T,function(_){return _.value>=n[0]&&_.value<=n[1]&&!_.notAdd})}),function(T){return T.length>0}),P=[],C=k.length-1,v=0;v<k.length;++v)for(var I=k[v],M=0;M<I.length;++M)P.push({value:I[M].value,level:C-v});P.sort(function(T,_){return T.value-_.value});for(var b=[],v=0;v<P.length;++v)(v===0||P[v].value!==P[v-1].value)&&b.push(P[v]);return b}gn.registerClass(G1);var Rg=gn.prototype,Io=ii.prototype,GM=wt,WM=Math.floor,jM=Math.ceil,Hs=Math.pow,$r=Math.log,yv=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new ii,r._interval=0,r}return e.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Io.getTicks.call(this,r);return xe(o,function(s){var l=s.value,u=wt(Hs(this.base,l));return u=l===i[0]&&this._fixMin?Gs(u,a[0]):u,u=l===i[1]&&this._fixMax?Gs(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(r,n){var i=$r(this.base);r=$r(Math.max(0,r))/i,n=$r(Math.max(0,n))/i,Io.setExtent.call(this,r,n)},e.prototype.getExtent=function(){var r=this.base,n=Rg.getExtent.call(this);n[0]=Hs(r,n[0]),n[1]=Hs(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Gs(n[0],a[0])),this._fixMax&&(n[1]=Gs(n[1],a[1])),n},e.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=$r(r[0])/$r(n),r[1]=$r(r[1])/$r(n),Rg.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=_T(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[wt(jM(n[0]/a)*a),wt(WM(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){Io.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=$r(r)/$r(this.base),bu(r,this._extent)},e.prototype.normalize=function(r){return r=$r(r)/$r(this.base),wu(r,this._extent)},e.prototype.scale=function(r){return r=Cu(r,this._extent),Hs(this.base,r)},e.type="log",e}(gn),W1=yv.prototype;W1.getMinorTicks=Io.getMinorTicks;W1.getLabel=Io.getLabel;function Gs(t,e){return GM(t,wn(e))}gn.registerClass(yv);var XM=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;Xe(o)?this._modelMinNum=Ws(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Ws(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(Xe(s)?this._modelMaxNum=Ws(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Ws(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=Pe(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Jn(u[0],1),Jn(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=pl(s)||pl(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},t.prototype.modifyDataMinMax=function(e,r){this[KM[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=qM[e];this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t}(),qM={min:"_determinedMin",max:"_determinedMax"},KM={min:"_dataMin",max:"_dataMax"};function YM(t,e,r){var n=t.rawExtentInfo;return n||(n=new XM(t,e,r),t.rawExtentInfo=n,n)}function Ws(t,e){return e==null?null:pl(e)?NaN:t.parse(e)}function j1(t,e){var r=t.type,n=YM(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=z1("bar",o),l=!1;if(G(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=U1(s),f=ZM(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function ZM(t,e,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=LM(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;G(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;G(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,c=1-(s+l)/a,h=f/c-f;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}function Lg(t,e){var r=e,n=j1(t,r),i=n.extent,a=r.get("splitNumber");t instanceof yv&&(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 QM(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new dv({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new G1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(gn.getClass(e)||ii)}}function JM(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function Ea(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):Le(e)?function(n){return function(i){var a=t.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(e):Xe(e)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(eP(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return t.scale.getLabel(n)}}function eP(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function tP(t){var e=t.model,r=t.scale;if(!(!e.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof dv?i=r.count():(n=r.getTicks(),i=n.length);var o=t.getLabelModel(),s=Ea(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},h=s(c,f),v=o.getTextRect(h),d=rP(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function rP(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 ht(t.x,t.y,a,o);return s}function mv(t){var e=t.get("interval");return e??"auto"}function X1(t){return t.type==="category"&&mv(t.getLabelModel())===0}function nP(t,e){var r={};return G(t.mapDimensionsAll(e),function(n){r[_M(t,n)]=!0}),tt(r)}var q1=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}(),Eg=[],iP={registerPreprocessor:k1,registerProcessor:M1,registerPostInit:qk,registerPostUpdate:Kk,registerUpdateLifecycle:hv,registerAction:La,registerCoordinateSystem:Yk,registerLayout:Zk,registerVisual:Wi,registerTransform:Jk,registerLoading:P1,registerMap:Qk,registerImpl:kk,PRIORITY:Uk,ComponentModel:ft,ComponentView:In,SeriesModel:_r,ChartView:nr,registerComponentModel:function(t){ft.registerClass(t)},registerComponentView:function(t){In.registerClass(t)},registerSeriesModel:function(t){_r.registerClass(t)},registerChartView:function(t){nr.registerClass(t)},registerSubTypeDefaulter:function(t,e){ft.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){cT(t,e)}};function Ui(t){if(Pe(t)){G(t,function(e){Ui(e)});return}gt(Eg,t)>=0||(Eg.push(t),Xe(t)&&(t={install:t}),t.install(iP))}var Ho=Lt();function K1(t,e){var r=xe(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 aP(t){var e=t.getLabelModel().get("customValues");if(e){var r=Ea(t);return{labels:K1(t,e).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:t.scale.getLabel(i),tickValue:n}})}}return t.type==="category"?sP(t):uP(t)}function oP(t,e){var r=t.getTickModel().get("customValues");return r?{ticks:K1(t,r)}:t.type==="category"?lP(t,e):{ticks:xe(t.scale.getTicks(),function(n){return n.value})}}function sP(t){var e=t.getLabelModel(),r=Y1(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Y1(t,e){var r=Z1(t,"labels"),n=mv(e),i=Q1(r,n);if(i)return i;var a,o;return Xe(n)?a=t_(t,n):(o=n==="auto"?cP(t):n,a=e_(t,o)),J1(r,n,{labels:a,labelCategoryInterval:o})}function lP(t,e){var r=Z1(t,"ticks"),n=mv(e),i=Q1(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),Xe(n))a=t_(t,n,!0);else if(n==="auto"){var s=Y1(t,t.getLabelModel());o=s.labelCategoryInterval,a=xe(s.labels,function(l){return l.tickValue})}else o=n,a=e_(t,o,!0);return J1(r,n,{ticks:a,tickCategoryInterval:o})}function uP(t){var e=t.scale.getTicks(),r=Ea(t);return{labels:xe(e,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value}})}}function Z1(t,e){return Ho(t)[e]||(Ho(t)[e]=[])}function Q1(t,e){for(var r=0;r<t.length;r++)if(t[r].key===e)return t[r].value}function J1(t,e,r){return t.push({key:e,value:r}),r}function cP(t){var e=Ho(t).autoInterval;return e??(Ho(t).autoInterval=t.calculateCategoryInterval())}function fP(t){var e=hP(t),r=Ea(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)),h=0,v=0;l<=a[1];l+=s){var d=0,p=0,g=xm(r({value:l}),e.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var y=h/f,m=v/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var w=Math.max(0,Math.floor(Math.min(y,m))),k=Ho(t.model),P=t.getExtent(),C=k.lastAutoInterval,I=k.lastTickCount;return C!=null&&I!=null&&Math.abs(C-w)<=1&&Math.abs(I-o)<=1&&C>w&&k.axisExtent0===P[0]&&k.axisExtent1===P[1]?w=C:(k.lastTickCount=o,k.lastAutoInterval=w,k.axisExtent0=P[0],k.axisExtent1=P[1]),w}function hP(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 e_(t,e,r){var n=Ea(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=X1(t),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function t_(t,e,r){var n=t.scale,i=Ea(t),a=[];return G(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 Dg=[0,1],r_=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 pT(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(),Og(n,i.count())),Lf(e,Dg,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Og(n,i.count()));var a=Lf(e,n,Dg,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=oP(this,r),i=n.ticks,a=xe(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return vP(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=xe(n,function(a){return xe(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(){return aP(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 fP(this)},t}();function Og(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function vP(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;G(e,function(v){v.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];h(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&h(a[0],e[0].coord)&&e.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&h(o.coord,a[1])&&e.push({coord:a[1]});function h(v,d){return v=wt(v),d=wt(d),c?v>d:v<d}}function n_(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;d*=h;var p=o[0]=t+d*f,g=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var Gn=new Fe,_t=new Fe,Bt=new Fe,Wn=new Fe,ln=new Fe,zl=[],qt=new Fe;function dP(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Gn.fromArray(t[0]),_t.fromArray(t[1]),Bt.fromArray(t[2]),Fe.sub(Wn,Gn,_t),Fe.sub(ln,Bt,_t);var r=Wn.len(),n=ln.len();if(!(r<.001||n<.001)){Wn.scale(1/r),ln.scale(1/n);var i=Wn.dot(ln),a=Math.cos(e);if(a<i){var o=n_(_t.x,_t.y,Bt.x,Bt.y,Gn.x,Gn.y,zl);qt.fromArray(zl),qt.scaleAndAdd(ln,o/Math.tan(Math.PI-e));var s=Bt.x!==_t.x?(qt.x-_t.x)/(Bt.x-_t.x):(qt.y-_t.y)/(Bt.y-_t.y);if(isNaN(s))return;s<0?Fe.copy(qt,_t):s>1&&Fe.copy(qt,Bt),qt.toArray(t[1])}}}}function pP(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Gn.fromArray(t[0]),_t.fromArray(t[1]),Bt.fromArray(t[2]),Fe.sub(Wn,_t,Gn),Fe.sub(ln,Bt,_t);var n=Wn.len(),i=ln.len();if(!(n<.001||i<.001)){Wn.scale(1/n),ln.scale(1/i);var a=Wn.dot(e),o=Math.cos(r);if(a<o){var s=n_(_t.x,_t.y,Bt.x,Bt.y,Gn.x,Gn.y,zl);qt.fromArray(zl);var l=Math.PI/2,u=Math.acos(ln.dot(e)),f=l+u-r;if(f>=l)Fe.copy(qt,Bt);else{qt.scaleAndAdd(ln,s/Math.tan(Math.PI/2-f));var c=Bt.x!==_t.x?(qt.x-_t.x)/(Bt.x-_t.x):(qt.y-_t.y)/(Bt.y-_t.y);if(isNaN(c))return;c<0?Fe.copy(qt,_t):c>1&&Fe.copy(qt,Bt)}qt.toArray(t[1])}}}}function Hc(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 gP(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=pf(n[0],n[1]),a=pf(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=$u([],n[1],n[0],o/i),l=$u([],n[1],n[2],o/a),u=$u([],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 yP(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<xl.length;l++){var u=xl[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:Ne(i.states[u]&&i.states[u].ignore,s);if(v||!Ne(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Hc(n,!0,u,f);continue}n||(n=new Gi,t.setTextGuideLine(n),!c&&(s||!o)&&Hc(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Hc(n,!1,u,f)}}if(n){Ze(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=gP}}function mP(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Dr.length;n++){var i=Dr[n];r[i]=t.getModel([i,e])}return r}function _P(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 kl(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 SP(t,e,r,n,i,a){var o=t.length;if(o<2)return;t.sort(function(M,b){return M.rect[e]-b.rect[e]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var h=t[c],v=h.rect;l=v[e]-s,l<0&&(v[e]-=l,h.label[e]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[e]+v[r]}f>0&&a&&P(-f/o,0,o);var p=t[0],g=t[o-1],y,m;w(),y<0&&C(-y,.8),m<0&&C(m,.8),w(),k(y,m,1),k(m,y,-1),w(),y<0&&I(-y),m<0&&I(m);function w(){y=p.rect[e]-n,m=i-g.rect[e]-g.rect[r]}function k(M,b,T){if(M<0){var _=Math.min(b,-M);if(_>0){P(_*T,0,o);var x=_+M;x<0&&C(-x*T,1)}else C(-M*T,1)}}function P(M,b,T){M!==0&&(u=!0);for(var _=b;_<T;_++){var x=t[_],A=x.rect;A[e]+=M,x.label[e]+=M}}function C(M,b){for(var T=[],_=0,x=1;x<o;x++){var A=t[x-1].rect,R=Math.max(t[x].rect[e]-A[e]-A[r],0);T.push(R),_+=R}if(_){var N=Math.min(Math.abs(M)/_,b);if(M>0)for(var x=0;x<o-1;x++){var E=T[x]*N;P(E,0,x+1)}else for(var x=o-1;x>0;x--){var E=T[x-1]*N;P(-E,x,o)}}}function I(M){var b=M<0?-1:1;M=Math.abs(M);for(var T=Math.ceil(M/(o-1)),_=0;_<o-1;_++)if(b>0?P(T,0,_+1):P(-T,o-_-1,o),M-=T,M<=0)return}return u}function bP(t,e,r,n){return SP(t,"y","height",e,r,n)}function wP(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new ht(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,h=!1,v=0;v<e.length;v++){var d=e[v];if(r.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new kl(d.localRect,d.transform)),c||(c=new kl(s,l)),c.intersect(d.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}var CP=function(t){be(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 Su(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new At,i=ni("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=ni(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}(_r);function _v(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Ia(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Ia(t,e,r[o]));return a.join(" ")}}function i_(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!Pe(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 Sv=function(t){be(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=ni(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=TP,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(){Il(this.childAt(0))},e.prototype.downplay=function(){Al(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 h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Wt(h,v,s,n),Do(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,rr(h,v,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,h,v,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),w=m.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=w.get("focus"),v=w.get("blurScope"),d=w.get("disabled"),p=Pa(m),g=w.getShallow("scale"),y=m.getShallow("cursor")}var k=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(k||0)*Math.PI/180||0);var P=u1(r.getItemVisual(n,"symbolOffset"),i);P&&(s.x=P[0],s.y=P[1]),y&&s.attr("cursor",y);var C=r.getItemVisual(n,"style"),I=C.fill;if(s instanceof Xr){var M=s.style;s.useStyle(_e({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},C))}else s.__isEmptyBrush?s.useStyle(_e({},C)):s.useStyle(C),s.style.decal=null,s.setColor(I,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var b=r.getItemVisual(n,"liftZ"),T=this._z2;b!=null?T==null&&(this._z2=s.z2,s.z2+=b):T!=null&&(s.z2=T,this._z2=null);var _=o&&o.useNameLabel;Ma(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:x,inheritColor:I,defaultOpacity:C.opacity});function x(N){return _?r.getName(N):_v(r,N)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var A=s.ensureState("emphasis");A.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;A.scaleX=this._sizeX*R,A.scaleY=this._sizeY*R,this.setSymbolScale(1),Ca(this,h,v,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=yt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ml(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ml(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return l1(r.getItemVisual(n,"symbolSize"))},e}(At);function TP(t,e){this.parent.drift(t,e)}function Gc(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 Bg(t){return t!=null&&!Oe(t)&&(t={isIgnore:t}),t||{}}function Ng(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:Pa(e),cursorStyle:e.get("cursor")}}var a_=function(){function t(e){this.group=new At,this._SymbolCtor=e||Sv}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Bg(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Ng(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);if(Gc(e,h,c,r)){var v=new o(e,c,l,u);v.setPosition(h),e.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!Gc(e,d,c,r)){n.remove(v);return}var p=e.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Wt(v,y,i)}n.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},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=Ng(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Bg(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(Gc(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){lu(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 o_(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=xP(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=xe(t.dimensions,function(d){return e.mapDimension(d)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Aa(e,c[0])&&(h=!0,c[0]=v),Aa(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function xP(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:dt(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function s_(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 IP(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 AP(t,e,r,n,i,a,o,s){for(var l=IP(t,e),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=o_(i,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],w=0;w<l.length;w++){var k=l[w],P=!0,C=void 0,I=void 0;switch(k.cmd){case"=":C=k.idx*2,I=k.idx1*2;var M=y[C],b=y[C+1],T=m[I],_=m[I+1];(isNaN(M)||isNaN(b))&&(M=T,b=_),u.push(M,b),f.push(T,_),c.push(r[C],r[C+1]),h.push(n[I],n[I+1]),p.push(e.getRawIndex(k.idx1));break;case"+":var x=k.idx,A=g.dataDimsForPoint,R=i.dataToPoint([e.get(A[0],x),e.get(A[1],x)]);I=x*2,u.push(R[0],R[1]),f.push(m[I],m[I+1]);var N=s_(g,i,e,x);c.push(N[0],N[1]),h.push(n[I],n[I+1]),p.push(e.getRawIndex(x));break;case"-":P=!1}P&&(v.push(k),d.push(d.length))}d.sort(function(Q,J){return p[Q]-p[J]});for(var E=u.length,U=Cn(E),F=Cn(E),B=Cn(E),X=Cn(E),Z=[],w=0;w<d.length;w++){var q=d[w],se=w*2,ce=q*2;U[se]=u[ce],U[se+1]=u[ce+1],F[se]=f[ce],F[se+1]=f[ce+1],B[se]=c[ce],B[se+1]=c[ce+1],X[se]=h[ce],X[se+1]=h[ce+1],Z[w]=v[q]}return{current:U,next:F,stackedOnCurrent:B,stackedOnNext:X,status:Z}}var Bn=Math.min,Nn=Math.max;function zi(t,e){return isNaN(t)||isNaN(e)}function ih(t,e,r,n,i,a,o,s,l){for(var u,f,c,h,v,d,p=r,g=0;g<n;g++){var y=e[p*2],m=e[p*2+1];if(p>=i||p<0)break;if(zi(y,m)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var w=y-u,k=m-f;if(w*w+k*k<.5){p+=a;continue}if(o>0){for(var P=p+a,C=e[P*2],I=e[P*2+1];C===y&&I===m&&g<n;)g++,P+=a,p+=a,C=e[P*2],I=e[P*2+1],y=e[p*2],m=e[p*2+1],w=y-u,k=m-f;var M=g+1;if(l)for(;zi(C,I)&&M<n;)M++,P+=a,C=e[P*2],I=e[P*2+1];var b=.5,T=0,_=0,x=void 0,A=void 0;if(M>=n||zi(C,I))v=y,d=m;else{T=C-u,_=I-f;var R=y-u,N=C-y,E=m-f,U=I-m,F=void 0,B=void 0;if(s==="x"){F=Math.abs(R),B=Math.abs(N);var X=T>0?1:-1;v=y-X*F*o,d=m,x=y+X*B*o,A=m}else if(s==="y"){F=Math.abs(E),B=Math.abs(U);var Z=_>0?1:-1;v=y,d=m-Z*F*o,x=y,A=m+Z*B*o}else F=Math.sqrt(R*R+E*E),B=Math.sqrt(N*N+U*U),b=B/(B+F),v=y-T*o*(1-b),d=m-_*o*(1-b),x=y+T*o*b,A=m+_*o*b,x=Bn(x,Nn(C,y)),A=Bn(A,Nn(I,m)),x=Nn(x,Bn(C,y)),A=Nn(A,Bn(I,m)),T=x-y,_=A-m,v=y-T*F/B,d=m-_*F/B,v=Bn(v,Nn(u,y)),d=Bn(d,Nn(f,m)),v=Nn(v,Bn(u,y)),d=Nn(d,Bn(f,m)),T=y-v,_=m-d,x=y+T*B/F,A=m+_*B/F}t.bezierCurveTo(c,h,v,d,y,m),c=x,h=A}else t.lineTo(y,m)}u=y,f=m,p+=a}return g}var l_=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),kP=function(t){be(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 l_},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&zi(i[o*2-2],i[o*2-1]);o--);for(;a<o&&zi(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=ih(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=ti.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var h=a[c++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(v=a[c++],d=a[c++],w=u?(r-s)/(v-s):(r-l)/(d-l),w<=1&&w>=0){var k=u?(d-l)*w+l:(v-s)*w+s;return u?[r,k]:[k,r]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],p=a[c++],g=a[c++],y=a[c++],m=a[c++];var P=u?yl(s,v,p,y,r,f):yl(l,d,g,m,r,f);if(P>0)for(var C=0;C<P;C++){var I=f[C];if(I<=1&&I>=0){var k=u?Ft(l,d,g,m,I):Ft(s,v,p,y,I);return u?[r,k]:[k,r]}}s=y,l=m;break}}},e}(it),MP=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(l_),PP=function(t){be(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 MP},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&&zi(i[s*2-2],i[s*2-1]);s--);for(;o<s&&zi(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=ih(r,i,o,s,s,1,n.smooth,l,n.connectNulls);ih(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e}(it);function u_(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 Pt({shape:{x:o,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=Xe(i)?function(g){i(g,c)}:null;rr(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function c_(t,e,r){var n=t.getArea(),i=wt(n.r0,1),a=wt(n.r,1),o=new oi({shape:{cx:wt(t.cx,1),cy:wt(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,rr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function RP(t,e,r,n,i){if(t){if(t.type==="polar")return c_(t,e,r);if(t.type==="cartesian2d")return u_(t,e,r,n,i)}else return null;return null}function bv(t,e){return t.type===e}function Fg(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function $g(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 zg(t,e){var r=$g(t),n=r[0],i=r[1],a=$g(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 Ug(t){return dt(t)?t:t?.5:0}function LP(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=Cn(n*2),a=0;a<n;a++){var o=s_(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Fn(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 h=(u[a]+f[a])/2,v=[];l[a]=v[a]=h,l[1-a]=u[1-a],v[1-a]=f[1-a],o.push(l[0],l[1]),o.push(v[0],v[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 EP(t,e){var r=[],n=t.length,i,a;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=EC(d,[f.color,c.color]);return{coord:h,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 DP(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=xe(a.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=EP(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";G(h,function(w){w.offset=(w.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new c0(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=g,m}}}function OP(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&BP(a,e))){var o=e.mapDimension(a.dim),s={};return G(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function BP(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(Sv.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function NP(t,e){return isNaN(t)||isNaN(e)}function FP(t){for(var e=t.length/2;e>0&&NP(t[e*2-2],t[e*2-1]);e--);return e-1}function Vg(t,e){return[t[e*2],t[e*2+1]]}function $P(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 f_(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Dr.length;e++)if(t.get([Dr[e],"endLabel","show"]))return!0;return!1}function Wc(t,e,r,n){if(bv(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=f_(n)?function(v,d){t._endLabelOnDuring(v,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=u_(e,r,n,function(){var v=t._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return c_(e,r,n)}function zP(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 UP=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new At,n=new a_;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")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&r.get("animation"),w=!f.isEmpty(),k=f.get("origin"),P=o_(o,l,k),C=w&&LP(o,l,P),I=r.get("showSymbol"),M=r.get("connectNulls"),b=I&&!h&&OP(r,l,o),T=this._data;T&&T.eachItemGraphicEl(function(J,ee){J.__temp&&(s.remove(J),T.setItemGraphicEl(ee,null))}),I||d.remove(),s.add(y);var _=h?!1:r.get("step"),x;o&&o.getArea&&r.get("clip",!0)&&(x=o.getArea(),x.width!=null?(x.x-=.1,x.y-=.1,x.width+=.2,x.height+=.2):x.r0&&(x.r0-=.5,x.r+=.5)),this._clipShapeForSymbol=x;var A=DP(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&_===this._step))I&&d.updateData(l,{isIgnore:b,clipShape:x,disableAnimation:!0,getSymbolPoint:function(J){return[c[J*2],c[J*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,x),_&&(c=Fn(c,o,_,M),C&&(C=Fn(C,o,_,M))),p=this._newPolyline(c),w?g=this._newPolygon(c,C):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,Wf(A)),y.setClipPath(Wc(this,o,!0,r));else{w&&!g?g=this._newPolygon(c,C):g&&!w&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,Wf(A));var R=y.getClipPath();if(R){var N=Wc(this,o,!1,r);rr(R,{shape:N.shape},r)}else y.setClipPath(Wc(this,o,!0,r));I&&d.updateData(l,{isIgnore:b,clipShape:x,disableAnimation:!0,getSymbolPoint:function(J){return[c[J*2],c[J*2+1]]}}),(!Fg(this._stackedOnPoints,C)||!Fg(this._points,c))&&(m?this._doUpdateAnimation(l,C,o,i,_,k,M):(_&&(c=Fn(c,o,_,M),C&&(C=Fn(C,o,_,M))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:C})))}var E=r.getModel("emphasis"),U=E.get("focus"),F=E.get("blurScope"),B=E.get("disabled");if(p.useStyle(Ze(u.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Ta(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var X=p.getState("emphasis").style;X.lineWidth=+p.style.lineWidth+1}yt(p).seriesIndex=r.seriesIndex,Ca(p,U,F,B);var Z=Ug(r.get("smooth")),q=r.get("smoothMonotone");if(p.setShape({smooth:Z,smoothMonotone:q,connectNulls:M}),g){var se=l.getCalculationInfo("stackedOnSeries"),ce=0;g.useStyle(Ze(f.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),se&&(ce=Ug(se.get("smooth"))),g.setShape({smooth:Z,stackedOnSmooth:ce,smoothMonotone:q,connectNulls:M}),Ta(g,r,"areaStyle"),yt(g).seriesIndex=r.seriesIndex,Ca(g,U,F,B)}var Q=function(J){a._changePolyState(J)};l.eachItemGraphicEl(function(J){J&&(J.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=c,this._step=_,this._valueOrigin=k,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},e.prototype.packEventData=function(r,n){yt(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=wa(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 h=r.get("zlevel")||0,v=r.get("z")||0;u=new Sv(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else nr.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=wa(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 nr.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;ep(this._polyline,r),n&&ep(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new kP({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 PP({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");Xe(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Xe(c)?c(null):c;r.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,w=void 0;if(i)if(o){var k=i,P=n.pointToCoord(g);a?(y=k.startAngle,m=k.endAngle,w=-P[1]/180*Math.PI):(y=k.r0,m=k.r,w=P[0])}else{var C=i;a?(y=C.x,m=C.x+C.width,w=v.x):(y=C.y+C.height,m=C.y,w=v.y)}var I=m===y?0:(w-y)/(m-y);l&&(I=1-I);var M=Xe(c)?c(d):f*I+h,b=p.getSymbolPath(),T=b.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:M}),b.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(f_(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 mr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=FP(l);f>=0&&(Ma(s,Pa(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?i_(o,v):_v(o,c)},enableTextSetter:!0},zP(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"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,w=n.shape,k=m?y?w.x:w.y+w.height:y?w.x+w.width:w.y,P=(y?p:0)*(m?-1:1),C=(y?0:-p)*(m?-1:1),I=y?"x":"y",M=$P(c,k,I),b=M.range,T=b[1]-b[0],_=void 0;if(T>=1){if(T>1&&!v){var x=Vg(c,b[0]);u.attr({x:x[0]+P,y:x[1]+C}),o&&(_=h.getRawValue(b[0]))}else{var x=f.getPointOn(k,I);x&&u.attr({x:x[0]+P,y:x[1]+C});var A=h.getRawValue(b[0]),R=h.getRawValue(b[1]);o&&(_=BT(i,d,A,R,M.t))}a.lastFrameIndex=b[0]}else{var N=r===1||a.lastFrameIndex>0?b[0]:0,x=Vg(c,N);o&&(_=h.getRawValue(N)),u.attr({x:x[0]+P,y:x[1]+C})}if(o){var E=cu(u);typeof E.setLabelText=="function"&&E.setLabelText(_)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,h=AP(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Fn(h.current,i,o,l),d=Fn(h.stackedOnCurrent,i,o,l),p=Fn(h.next,i,o,l),g=Fn(h.stackedOnNext,i,o,l)),zg(v,p)>3e3||f&&zg(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Wt(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Wt(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],w=h.status,k=0;k<w.length;k++){var P=w[k].cmd;if(P==="="){var C=r.getItemGraphicEl(w[k].idx1);C&&m.push({el:C,ptIdx:k})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var I=u.shape.__points,M=0;M<m.length;M++){var b=m[M].el,T=m[M].ptIdx*2;b.x=I[T],b.y=I[T+1],b.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}(nr);function wv(t,e){return{seriesType:t,plan:sv(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=xe(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Aa(n,s[0])&&(s[0]=u),Aa(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&Cn(p*l),y=[],m=[],w=v.start,k=0;w<v.end;w++){var P=void 0;if(l===1){var C=f.get(c,w);P=i.dataToPoint(C,null,m)}else y[0]=f.get(c,w),y[1]=f.get(h,w),P=i.dataToPoint(y,null,m);o?(g[k++]=P[0],g[k++]=P[1]):d.setItemLayout(w,P.slice())}o&&d.setLayout("points",g)}}}}}}var VP={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]}},HP=function(t){return Math.round(t.length/2)};function h_(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(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Le(a)?d=VP[a]:Xe(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,HP))}}}}}function GP(t){t.registerChartView(UP),t.registerSeriesModel(CP),t.registerLayout(wv("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,h_("line"))}var ah=function(t){be(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 Su(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)G(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,w=void 0,k=1,P=0;P<d.length;P++){var C=d[P].coord,I=P===d.length-1?d[P-1].tickValue+k:d[P].tickValue;if(I===g){w=C;break}else if(I<g)m=C;else if(m!=null&&I>g){w=(C+m)/2;break}P===1&&(k=I-d[0].tickValue)}w==null&&(m?m&&(w=d[d.length-1].coord):w=d[0].coord),s[v]=h.toGlobalCoord(w)}});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}(_r);_r.registerClass(ah);var WP=function(t){be(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 Su(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=S0(ah.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}(ah),jP=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}(),Hg=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new jP},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,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!h)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!h),r.arc(y*u+i,m*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(i,a,o,c,f,h)},e}(it);function XP(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return wl(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=r?Math.abs(h-v)/2:0,w=Math.cos,k=Math.sin,P=f+h*w(p),C=c+h*k(p),I="left",M="top";switch(s){case"startArc":P=f+(v-l)*w(y),C=c+(v-l)*k(y),I="center",M="top";break;case"insideStartArc":P=f+(v+l)*w(y),C=c+(v+l)*k(y),I="center",M="bottom";break;case"startAngle":P=f+d*w(p)+js(p,l+m,!1),C=c+d*k(p)+Xs(p,l+m,!1),I="right",M="middle";break;case"insideStartAngle":P=f+d*w(p)+js(p,-l+m,!1),C=c+d*k(p)+Xs(p,-l+m,!1),I="left",M="middle";break;case"middle":P=f+d*w(y),C=c+d*k(y),I="center",M="middle";break;case"endArc":P=f+(h+l)*w(y),C=c+(h+l)*k(y),I="center",M="bottom";break;case"insideEndArc":P=f+(h-l)*w(y),C=c+(h-l)*k(y),I="center",M="top";break;case"endAngle":P=f+d*w(g)+js(g,l+m,!0),C=c+d*k(g)+Xs(g,l+m,!0),I="left",M="middle";break;case"insideEndAngle":P=f+d*w(g)+js(g,-l+m,!0),C=c+d*k(g)+Xs(g,-l+m,!0),I="right",M="middle";break;default:return wl(n,i,a)}return n=n||{},n.x=P,n.y=C,n.align=I,n.verticalAlign=M,n}}function qP(t,e,r,n){if(dt(n)){t.setTextConfig({rotation:n});return}else if(Pe(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 js(t,e,r){return e*Math.sin(t)*(r?-1:1)}function Xs(t,e,r){return e*Math.cos(t)*(r?1:-1)}function lo(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Pe(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:xe(n,function(a){return Jn(a,i)})}}var jc=Math.max,Xc=Math.min;function KP(t,e){var r=t.getArea&&t.getArea();if(bv(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 YP=function(t){be(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){lu(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 h=r.isAnimationEnabled()?r:null,v=ZP(r,u);v&&this._enableRealtimeSort(v,s,i);var d=r.get("clip",!0)||v,p=KP(u,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),w=m.get("borderRadius")||0,k=[],P=this._backgroundEls,C=a&&a.isInitSort,I=a&&a.type==="changeAxisOrder";function M(_){var x=qs[u.type](s,_),A=iR(u,c,x);return A.useStyle(m.getItemStyle()),u.type==="cartesian2d"?A.setShape("r",w):A.setShape("cornerRadius",w),k[_]=A,A}s.diff(l).add(function(_){var x=s.getItemModel(_),A=qs[u.type](s,_,x);if(y&&M(_),!(!s.hasValue(_)||!qg[u.type](A))){var R=!1;d&&(R=Gg[u.type](p,A));var N=Wg[u.type](r,s,_,A,c,h,f.model,!1,g);v&&(N.forceLabelAnimation=!0),Kg(N,s,_,x,A,r,c,u.type==="polar"),C?N.attr({shape:A}):v?jg(v,h,N,A,_,c,!1,!1):rr(N,{shape:A},r,_),s.setItemGraphicEl(_,N),o.add(N),N.ignore=R}}).update(function(_,x){var A=s.getItemModel(_),R=qs[u.type](s,_,A);if(y){var N=void 0;P.length===0?N=M(x):(N=P[x],N.useStyle(m.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",w):N.setShape("cornerRadius",w),k[_]=N);var E=qs[u.type](s,_),U=d_(c,E,u);Wt(N,{shape:U},h,_)}var F=l.getItemGraphicEl(x);if(!s.hasValue(_)||!qg[u.type](R)){o.remove(F);return}var B=!1;if(d&&(B=Gg[u.type](p,R),B&&o.remove(F)),F?Do(F):F=Wg[u.type](r,s,_,R,c,h,f.model,!!F,g),v&&(F.forceLabelAnimation=!0),I){var X=F.getTextContent();if(X){var Z=cu(X);Z.prevValue!=null&&(Z.prevValue=Z.value)}}else Kg(F,s,_,A,R,r,c,u.type==="polar");C?F.attr({shape:R}):v?jg(v,h,F,R,_,c,!0,I):Wt(F,{shape:R},r,_,null),s.setItemGraphicEl(_,F),F.ignore=B,o.add(F)}).remove(function(_){var x=l.getItemGraphicEl(_);x&&Pl(x,r,_)}).execute();var b=this._backgroundGroup||(this._backgroundGroup=new At);b.removeAll();for(var T=0;T<k.length;++T)b.add(k[T]);o.add(b),this._backgroundEls=k,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),Zg(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Zg(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&RP(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:xe(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){Pl(a,r,yt(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}(nr),Gg={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=jc(e.x,t.x),s=Xc(e.x+e.width,i),l=jc(e.y,t.y),u=Xc(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=Xc(e.r,t.r),a=jc(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}},Wg={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Pt({shape:_e({},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?Hg:oi,f=new u({shape:n,z2:1});f.name="item";var c=v_(i);if(f.calculateTextPosition=XP(c,{isRoundCap:u===Hg}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Wt:rr)(f,{shape:d},a)}return f}};function ZP(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 jg(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?Wt:rr)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Wt:rr)(r,{shape:u},f,i)}function Xg(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var QP=["x","y","width","height"],JP=["cx","cy","r","startAngle","endAngle"],qg={cartesian2d:function(t){return!Xg(t,QP)},polar:function(t){return!Xg(t,JP)}},qs={cartesian2d:function(t,e,r){var n=t.getItemLayout(e),i=r?tR(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 eR(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function v_(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 Kg(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=lo(n.getModel("itemStyle"),f,!0);_e(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var h=n.getShallow("cursor");h&&t.attr("cursor",h);var v=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",d=Pa(n);Ma(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:_v(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,qP(t,g==="outside"?v:g,v_(o),n.get(["label","rotate"]))}QI(p,d,a.getRawValue(r),function(m){return i_(e,m)});var y=n.getModel(["emphasis"]);Ca(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ta(t,n),eR(i)&&(t.style.fill="none",t.style.stroke="none",G(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function tR(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 rR=function(){function t(){}return t}(),Yg=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new rR},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}(it);function Zg(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 Yg({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 Yg({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")),yt(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",Qg),c.on("mousemove",Qg)),r&&r.push(c)}var Qg=e1(function(t){var e=this,r=nR(e,t.offsetX,t.offsetY);yt(e).dataIndex=r>=0?r:null},30,!1);function nR(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 h=f*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+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 d_(t,e,r){if(bv(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 iR(t,e,r){var n=t.type==="polar"?oi:Pt;return new n({shape:d_(e,r,t),silent:!0,z2:0})}function aR(t){t.registerChartView(YP),t.registerSeriesModel(WP),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,dr(EM,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,DM("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,h_("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 Jg=Math.PI*2,Ks=Math.PI/180;function p_(t,e){return Dl(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function g_(t,e){var r=p_(t,e),n=t.get("center"),i=t.get("radius");Pe(i)||(i=[0,i]);var a=vt(r.width,e.getWidth()),o=vt(r.height,e.getHeight()),s=Math.min(a,o),l=vt(i[0],s/2),u=vt(i[1],s/2),f,c,h=t.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else Pe(n)||(n=[n,n]),f=vt(n[0],a)+r.x,c=vt(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function oR(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=p_(n,r),s=g_(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*Ks,v=n.get("endAngle"),d=n.get("padAngle")*Ks;v=v==="auto"?h-Jg:-v*Ks;var p=n.get("minAngle")*Ks,g=p+d,y=0;i.each(a,function(U){!isNaN(U)&&y++});var m=i.getSum(a),w=Math.PI/(m||y)*2,k=n.get("clockwise"),P=n.get("roseType"),C=n.get("stillShowZeroSum"),I=i.getDataExtent(a);I[0]=0;var M=k?1:-1,b=[h,v],T=M*d/2;Um(b,!k),h=b[0],v=b[1];var _=y_(n);_.startAngle=h,_.endAngle=v,_.clockwise=k;var x=Math.abs(v-h),A=x,R=0,N=h;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(U,F){var B;if(isNaN(U)){i.setItemLayout(F,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:k,cx:l,cy:u,r0:c,r:P?NaN:f});return}P!=="area"?B=m===0&&C?w:U*w:B=x/y,B<g?(B=g,A-=g):R+=U;var X=N+M*B,Z=0,q=0;d>B?(Z=N+M*B/2,q=Z):(Z=N+T,q=X-T),i.setItemLayout(F,{angle:B,startAngle:Z,endAngle:q,clockwise:k,cx:l,cy:u,r0:c,r:P?Lf(U,I,[c,f]):f}),N=X}),A<Jg&&y)if(A<=.001){var E=x/y;i.each(a,function(U,F){if(!isNaN(U)){var B=i.getItemLayout(F);B.angle=E;var X=0,Z=0;E<d?(X=h+M*(F+1/2)*E,Z=X):(X=h+M*F*E+T,Z=h+M*(F+1)*E-T),B.startAngle=X,B.endAngle=Z}})}else w=A/R,N=h,i.each(a,function(U,F){if(!isNaN(U)){var B=i.getItemLayout(F),X=B.angle===g?g:U*w,Z=0,q=0;X<d?(Z=N+M*X/2,q=Z):(Z=N+T,q=N+M*X-T),B.startAngle=Z,B.endAngle=q,N+=M*X}})})}var y_=Lt();function m_(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 sR=Math.PI/180;function ey(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var w=p.list[m],k=Math.abs(w.label.y-r),P=n+w.len,C=P*P,I=Math.sqrt((1-Math.abs(k*k/y))*C),M=e+(I+w.len2)*i,b=M-w.label.x,T=w.targetTextWidth-b*i;__(w,T,!0),w.label.x=M}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var w=p[m],k=w.label.y>r?y:g,P=Math.abs(w.label.y-r);if(P>=k.maxY){var C=w.label.x-e-w.len2*i,I=n+w.len,M=Math.abs(C)<I?Math.sqrt(P*P/(1-C*C/I/I)):I;k.rB=M,k.maxY=P}k.list.push(w)}f(g),f(y)}for(var h=t.length,v=0;v<h;v++)if(t[v].position==="outer"&&t[v].labelAlignTo==="labelLine"){var d=t[v].label.x-u;t[v].linePoints[1][0]+=d,t[v].label.x=u}bP(t,l,l+o)&&c(t)}function lR(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<t.length;h++){var v=t[h].label;qc(t[h])||(v.x<e?(f=Math.min(f,v.x),l.push(t[h])):(c=Math.max(c,v.x),u.push(t[h])))}for(var h=0;h<t.length;h++){var d=t[h];if(!qc(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:v.x<e?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,__(d,g)}}ey(u,e,r,n,1,i,a,o,s,c),ey(l,e,r,n,-1,i,a,o,s,f);for(var h=0;h<t.length;h++){var d=t[h];if(!qc(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,w=m?m[1]+m[3]:0,k=v.style.backgroundColor?0:w,P=d.rect.width+k,C=p[1][0]-p[2][0];y?v.x<e?p[2][0]=o+d.edgeDistance+P+d.labelDistance:p[2][0]=o+i-d.edgeDistance-P-d.labelDistance:(v.x<e?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+C),p[1][1]=p[2][1]=v.y}}}function __(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 h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,d=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",d)}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 qc(t){return t.position==="center"}function uR(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*sR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(C){C.ignore=!0}function d(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),M=I.shape,b=I.getTextContent(),T=I.getTextGuideLine(),_=e.getItemModel(C),x=_.getModel("label"),A=x.get("position")||_.get(["emphasis","label","position"]),R=x.get("distanceToLabelLine"),N=x.get("alignTo"),E=vt(x.get("edgeDistance"),u),U=x.get("bleedMargin"),F=_.getModel("labelLine"),B=F.get("length");B=vt(B,u);var X=F.get("length2");if(X=vt(X,u),Math.abs(M.endAngle-M.startAngle)<o){G(b.states,v),b.ignore=!0,T&&(G(T.states,v),T.ignore=!0);return}if(d(b)){var Z=(M.startAngle+M.endAngle)/2,q=Math.cos(Z),se=Math.sin(Z),ce,Q,J,ee;n=M.cx,i=M.cy;var ue=A==="inside"||A==="inner";if(A==="center")ce=M.cx,Q=M.cy,ee="center";else{var fe=(ue?(M.r+M.r0)/2*q:M.r*q)+n,he=(ue?(M.r+M.r0)/2*se:M.r*se)+i;if(ce=fe+q*3,Q=he+se*3,!ue){var te=fe+q*(B+l-M.r),ie=he+se*(B+l-M.r),Ae=te+(q<0?-1:1)*X,ne=ie;N==="edge"?ce=q<0?f+E:f+u-E:ce=Ae+(q<0?-R:R),Q=ne,J=[[fe,he],[te,ie],[Ae,ne]]}ee=ue?"center":N==="edge"?q>0?"right":"left":q>0?"left":"right"}var le=Math.PI,we=0,Ie=x.get("rotate");if(dt(Ie))we=Ie*(le/180);else if(A==="center")we=0;else if(Ie==="radial"||Ie===!0){var rt=q<0?-Z+le:-Z;we=rt}else if(Ie==="tangential"&&A!=="outside"&&A!=="outer"){var st=Math.atan2(q,se);st<0&&(st=le*2+st);var bt=se>0;bt&&(st=le+st),we=st-le}if(a=!!we,b.x=ce,b.y=Q,b.rotation=we,b.setStyle({verticalAlign:"middle"}),ue){b.setStyle({align:ee});var Et=b.states.select;Et&&(Et.x+=b.x,Et.y+=b.y)}else{var Ee=b.getBoundingRect().clone();Ee.applyTransform(b.getComputedTransform());var Br=(b.style.margin||0)+2.1;Ee.y-=Br/2,Ee.height+=Br,r.push({label:b,labelLine:T,position:A,len:B,len2:X,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Fe(q,se),linePoints:J,textAlign:ee,labelDistance:R,labelAlignTo:N,edgeDistance:E,bleedMargin:U,rect:Ee,unconstrainedWidth:Ee.width,labelStyleWidth:b.style.width})}I.setTextConfig({inside:ue})}}),!a&&t.get("avoidLabelOverlap")&&lR(r,n,i,l,u,h,f,c);for(var p=0;p<r.length;p++){var g=r[p],y=g.label,m=g.labelLine,w=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),w&&(G(y.states,v),y.ignore=!0);var k=y.states.select;k&&(k.x+=y.x,k.y+=y.y)}if(m){var P=g.linePoints;w||!P?(G(m.states,v),m.ignore=!0):(dP(P,g.minTurnAngle),pP(P,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:P}),y.__hostTarget.textGuideLineConfig={anchor:new Fe(P[0][0],P[0][1])})}}}var cR=function(t){be(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new mr;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=_e(lo(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(rr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,rr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),rr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Wt(o,{shape:{endAngle:f.endAngle}},s,n))}else Do(o),Wt(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),Ta(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=_e({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},lo(u.getModel("itemStyle"),f)),_e(o.ensureState("select"),{x:p,y:g,shape:lo(l.getModel(["select","itemStyle"]),f)}),_e(o.ensureState("blur"),{shape:lo(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),w=o.getTextContent();m&&_e(m.ensureState("select"),{x:p,y:g}),_e(w.ensureState("select"),{x:p,y:g}),Ca(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;Ma(a,Pa(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 h=r.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Gi,this.setTextGuideLine(v)),yP(this,mP(o),{stroke:u,opacity:co(s.get(["lineStyle","opacity"]),f,1)})}},e}(oi),fR=function(t){be(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 h=y_(r),v=new oi({shape:_e(g_(r,i),h)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new cR(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Pl(p,r,d)}).execute(),uR(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}(nr);function S_(t,e,r){e=Pe(e)&&{coordDimensions:e}||_e({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=N1(n,e).dimensions,a=new B1(i,t);return a.initData(n,r),a}var b_=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}(),hR=Lt(),vR=function(t){be(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 b_(xt(this.getData,this),xt(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return S_(this,{coordDimensions:["value"],encodeDefaulter:dr(IA,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=hR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=gT(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){Ef(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}(_r);function dR(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!(dt(o)&&!isNaN(o)&&o<0)})}}}function pR(t){t.registerChartView(fR),t.registerSeriesModel(vR),Q2("pie",t.registerAction),t.registerLayout(dr(oR,"pie")),t.registerProcessor(m_("pie")),t.registerProcessor(dR("pie"))}var gR=function(t){be(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 Su(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}(_r),w_=4,yR=function(){function t(){}return t}(),mR=function(t){be(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 yR},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]<w_,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var h=i[c++],v=i[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-a[0]/2,s.y=v-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,h=a[f+1]-l/2;if(r>=c&&n>=h&&r<=c+s&&n<=h+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,h=0;h<i.length;){var v=i[h++],d=i[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new ht(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e}(it),_R=function(){function t(){this.group=new At}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 mR({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=ni(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<w_;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=yt(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}(),SR=function(t){be(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=wv("").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 _R:new a_,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}(nr),bR=function(t){be(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}(ft),oh=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Wr).models[0]},e.type="cartesian2dAxis",e}(ft);jr(oh,q1);var C_={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)"]}}},wR=ut({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},C_),Cv=ut({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}}},C_),CR=ut({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Cv),TR=Ze({logBase:10},Cv);const T_={category:wR,value:Cv,time:CR,log:TR};var xR={value:1,category:1,time:1,log:1};function ty(t,e,r,n){G(xR,function(i,a){var o=ut(ut({},T_[a],!0),n,!0),s=function(l){be(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 h=Fo(this),v=h?gu(f):{},d=c.getTheme();ut(f,d.get(a+"Axis")),ut(f,this.getDefaultOption()),f.type=ry(f),h&&xa(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=rh.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",ry)}function ry(t){return t.type||(t.data?"category":"value")}var IR=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 xe(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Gt(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}(),sh=["x","y"];function ny(t){return t.type==="interval"||t.type==="time"}var AR=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=sh,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ny(r)||!ny(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,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Ph([],d)}}},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 ht(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 Er(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 Er(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 ht(a,o,s,l)},e}(IR),kR=function(t){be(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}(r_);function MR(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],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,d=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[h[l]]:c[0],u==="x"?d[h[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?d[h[s]]-d[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ao(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function iy(t){return t.get("coordinateSystem")==="cartesian2d"}function ay(t){var e={xAxisModel:null,yAxisModel:null};return G(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Wr).models[0];e[n]=a}),e}var Kc=Math.log;function x_(t,e,r){var n=ii.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=j1(t,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(t.type==="log"){var h=Kc(t.base);u=[Kc(u[0])/h,Kc(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(t);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var d=n.getInterval.call(t),p=u[0],g=u[1];if(f&&c)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Vc(d),g=u[0]+d*o;else if(c)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Vc(d),p=u[1]-d*o;else{var y=t.getTicks().length-1;y>o&&(d=Vc(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=wt(g-m),p<0&&u[0]>=0?(p=0,g=wt(m)):g>0&&u[1]<=0&&(g=0,p=-wt(m))}var w=(i[0].value-a[0].value)/s,k=(i[o].value-a[o].value)/s;n.setExtent.call(t,p+d*w,g+d*k),n.setInterval.call(t,d),(w||k)&&n.setNiceExtent.call(t,p+d,g-d)}var PR=function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sh,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=tt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;nh(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Lg(p,d),nh(p)&&(s=v))}f.length&&(s||(s=f.pop(),Lg(s.scale,s.model)),G(f,function(g){x_(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};G(n.x,function(o){oy(n,"y",o,a)}),G(n.y,function(o){oy(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=Dl(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(G(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=tP(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),G(this._coordsList,function(u){u.calcAffineTransform()});function l(){G(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),RR(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]}Oe(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",Wr).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Wr).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,gt(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,G(s.x,function(f,c){G(s.y,function(h,v){var d="x"+c+"y"+v,p=new AR(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(Yc(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new kR(f,QM(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=h,a._axesList.push(d),s[f][h]=d,l[f]++}}}},t.prototype._updateScale=function(e,r){G(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(iy(i)){var a=ay(i),o=a.xAxisModel,s=a.yAxisModel;if(!Yc(o,r)||!Yc(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){G(nP(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return G(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);gt(r,a)<0&&r.push(a),gt(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(iy(i)){var a=ay(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},t.dimensions=sh,t}();function Yc(t,e){return t.getCoordSysModel()===e}function oy(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)sy(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&sy(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function sy(t){return t&&t.type!=="category"&&t.type!=="time"&&JM(t)}function RR(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 jn=Math.PI,Yn=function(){function t(e,r){this.group=new At,this.opt=r,this.axisModel=e,Ze(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new At({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!ly[e]},t.prototype.add=function(e){ly[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var i=Mm(r-e),a,o;return Cl(i)?(o=n>0?"top":"bottom",a="center"):Cl(i-jn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<jn?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}(),ly={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&&(Er(s,s,o),Er(l,l,o));var f=_e({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ri({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Oo(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);Le(h)&&(h=[h,h]),(Le(v)||dt(v))&&(v=[v,v]);var d=u1(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];G([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var w=ni(h[m],-p/2,-g/2,p,g,f.stroke,!0),k=y.r+y.offset,P=u?l:s;w.attr({rotation:y.rotate,x:P[0]+k*Math.cos(t.rotation),y:P[1]-k*Math.sin(t.rotation),silent:!0,z2:11}),r.add(w)}})}}},axisTickLabel:function(t,e,r,n){var i=DR(r,n,e,t),a=BR(r,n,e,t);if(ER(e,a,i),OR(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=_P(xe(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));wP(o)}},axisName:function(t,e,r,n){var i=Ao(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,cy(a)?t.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*jn/180);var d;cy(a)?h=Yn.innerTextLayout(t.rotation,v??t.rotation,o):(h=LR(t.rotation,a,v||0,u),d=t.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Ao(t.nameTruncateMaxWidth,g.maxWidth,d),w=new mr({x:c[0],y:c[1],rotation:h.rotation,silent:Yn.isLabelSilent(e),style:Bo(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Xh({el:w,componentModel:e,itemName:i}),w.__fullText=i,w.anid="name",e.get("triggerEvent")){var k=Yn.makeAxisEventDataBase(e);k.targetType="axisName",k.name=i,yt(w).eventData=k}n.add(w),w.updateTransform(),r.add(w),w.decomposeTransform()}}};function LR(t,e,r,n){var i=Mm(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Cl(i-jn/2)?(o=l?"bottom":"top",a="center"):Cl(i-jn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<jn*1.5&&i>jn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function ER(t,e,r){if(!X1(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],h=r[r.length-2];n===!1?(Cr(a),Cr(u)):uy(a,o)&&(n?(Cr(o),Cr(f)):(Cr(a),Cr(u))),i===!1?(Cr(s),Cr(c)):uy(l,s)&&(i?(Cr(l),Cr(h)):(Cr(s),Cr(c)))}}function Cr(t){t&&(t.ignore=!0)}function uy(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=Mh([]);return im(i,i,-t.rotation),r.applyTransform(ga([],i,t.getLocalTransform())),n.applyTransform(ga([],i,e.getLocalTransform())),r.intersect(n)}}function cy(t){return t==="middle"||t==="center"}function I_(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&&(Er(o,o,e),Er(s,s,e));var f=new ri({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Oo(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f)}return a}function DR(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=I_(u,e.transform,l,Ze(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}}function OR(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=Ze(s.getLineStyle(),Ze(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=I_(o[f],e.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)t.add(c[h])}}function BR(t,e,r,n){var i=r.axis,a=Ao(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Ao(n.labelRotate,o.get("rotate"))||0)*jn/180,f=Yn.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],v=Yn.isLabelSilent(r),d=r.get("triggerEvent");return G(l,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,w=p.rawLabel,k=o;if(c&&c[y]){var P=c[y];Oe(P)&&P.textStyle&&(k=new Rt(P.textStyle,o,r.ecModel))}var C=k.getTextColor()||r.get(["axisLine","lineStyle","color"]),I=i.dataToCoord(y),M=k.getShallow("align",!0)||f.textAlign,b=Ne(k.getShallow("alignMinLabel",!0),M),T=Ne(k.getShallow("alignMaxLabel",!0),M),_=k.getShallow("verticalAlign",!0)||k.getShallow("baseline",!0)||f.textVerticalAlign,x=Ne(k.getShallow("verticalAlignMinLabel",!0),_),A=Ne(k.getShallow("verticalAlignMaxLabel",!0),_),R=new mr({x:I,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Bo(k,{text:m,align:g===0?b:g===l.length-1?T:M,verticalAlign:g===0?x:g===l.length-1?A:_,fill:Xe(C)?C(i.type==="category"?w:i.type==="value"?y+"":y,g):C})});if(R.anid="label_"+y,d){var N=Yn.makeAxisEventDataBase(r);N.targetType="axisLabel",N.value=w,N.tickIndex=g,i.type==="category"&&(N.dataIndex=y),yt(R).eventData=N}e.add(R),R.updateTransform(),h.push(R),t.add(R),R.decomposeTransform()}),h}}function NR(t){var e=A_(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=$R(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 A_(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[zR(t)]}function FR(t){var e=A_(t);return e&&e.axisPointerModel}function $R(t){return!!t.get(["handle","show"])}function zR(t){return t.type+"||"+t.id}var fy={},UR=function(t){be(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&&NR(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=FR(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){fy[r]=n},e.getAxisPointerClass=function(r){return r&&fy[r]},e.type="axis",e}(In),lh=Lt();function VR(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=lh(t).splitAreaColors,h=qe(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Pe(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),w=void 0,k=void 0,P=void 0,C=void 0;i.isHorizontal()?(w=g,k=l.y,P=m-w,C=l.height,g=w+P):(w=l.x,k=g,P=l.width,C=m-k,g=k+C);var I=u[d-1].tickValue;I!=null&&h.set(I,v),e.add(new Pt({anid:I!=null?"area_"+I:null,shape:{x:w,y:k,width:P,height:C},style:Ze({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}lh(t).splitAreaColors=h}}}function HR(t){lh(t).splitAreaColors=null}var GR=["axisLine","axisTickLabel","axisName"],WR=["splitArea","splitLine","minorSplitLine"],k_=function(t){be(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 At,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=MR(s,r),u=new Yn(r,_e({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(nh(h[v].getOtherAxis(r.axis).scale))return!0;return!1}},l));G(GR,u.add,u),this._axisGroup.add(u.getGroup()),G(WR,function(c){r.get([c,"show"])&&jR[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||p0(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){HR(this)},e.type="cartesianAxis",e}(UR),jR={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=Pe(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),h=[],v=[],d=o.getLineStyle(),p=0;p<c.length;p++){var g=i.toGlobalCoord(c[p].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=c[p].tickValue,w=new ri({anid:m!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:Ze({stroke:s[y]},d),silent:!0});Oo(w.shape,d.lineWidth),e.add(w)}}},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=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=i.toGlobalCoord(u[v][d].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 ri({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});Oo(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,n){VR(t,e,r,n)}},M_=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(k_),XR=function(t){be(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=M_.type,r}return e.type="yAxis",e}(k_),qR=function(t){be(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 Pt({shape:r.coordinateSystem.getRect(),style:Ze({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(In),hy={offset:0};function KR(t){t.registerComponentView(qR),t.registerComponentModel(bR),t.registerCoordinateSystem("cartesian2d",PR),ty(t,"x",oh,hy),ty(t,"y",oh,hy),t.registerComponentView(M_),t.registerComponentView(XR),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function YR(t){Ui(KR),t.registerSeriesModel(gR),t.registerChartView(SR),t.registerLayout(wv("scatter"))}function ZR(t){t.eachSeriesByType("radar",function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();G(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]=vy(f)?f:dy(i)})}),r.each(function(o){var s=Fw(n[o],function(l){return vy(l)})||dy(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function vy(t){return!isNaN(t[0])&&!isNaN(t[1])}function dy(t){return[t.cx,t.cy]}function QR(t){var e=t.polar;if(e){Pe(e)||(e=[e]);var r=[];G(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],Pe(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}G(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var JR=function(t){be(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(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=l1(h.getItemVisual(v,"symbolSize")),g=ni(d,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var w=u(p,g);w&&(w.__dimIdx=m,h[m]?(w.setPosition(h[m]),XI[y?"initProps":"updateProps"](w,{x:v[m][0],y:v[m][1]},r,g)):w.setPosition(v[m]),d.add(w))}}function c(h){return xe(h,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new ts,p=new Gi,g={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),rr(d,g,r,h),rr(p,g,r,h);var y=new At,m=new At;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,h,!1),Do(g),Do(p),Wt(p,m,r),Wt(g,m,r),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),w=m.fill;o.add(h),p.useStyle(Ze(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:w})),Ta(p,d,"lineStyle"),Ta(g,d,"areaStyle");var k=d.getModel("areaStyle"),P=k.isEmpty()&&k.parentModel.isEmpty();g.ignore=P,G(["emphasis","select","blur"],function(M){var b=d.getModel([M,"areaStyle"]),T=b.isEmpty()&&b.parentModel.isEmpty();g.ensureState(M).ignore=T&&P}),g.useStyle(Ze(k.getAreaStyle(),{fill:w,opacity:.7,decal:m.decal}));var C=d.getModel("emphasis"),I=C.getModel("itemStyle").getItemStyle();y.eachChild(function(M){if(M instanceof Xr){var b=M.style;M.useStyle(_e({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},m))}else M.useStyle(m),M.setColor(w),M.style.strokeNoScale=!0;var T=M.ensureState("emphasis");T.style=et(I);var _=s.getStore().get(s.getDimensionIndex(M.__dimIdx),v);(_==null||isNaN(_))&&(_=""),Ma(M,Pa(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:M.__dimIdx,defaultText:_,inheritColor:w,defaultOpacity:m.opacity})}),Ca(h,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}(nr),eL=function(t){be(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 b_(xt(this.getData,this),xt(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return S_(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=Q0(this,r);return zo("section",{header:u,sortBlocks:!0,blocks:xe(s,function(c){var h=a.get(a.mapDimension(c.dim),r);return zo("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(xe(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}(_r),eo=T_.value;function Ys(t,e){return Ze({show:e},t)}var tL=function(t){be(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"),h=this.get("triggerEvent"),v=xe(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Ze({color:d.color},l));var g=ut(et(d),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(Le(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else Xe(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return jr(m,q1.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},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:ut({lineStyle:{color:"#bbb"}},eo.axisLine),axisLabel:Ys(eo.axisLabel,!1),axisTick:Ys(eo.axisTick,!1),splitLine:Ys(eo.splitLine,!0),splitArea:Ys(eo.splitArea,!0),indicator:[]},e}(ft),rL=["axisLine","axisTickLabel","axisName"],nL=function(t){be(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=xe(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Yn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});G(a,function(o){G(rL,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"),h=l.get("color"),v=u.get("color"),d=Pe(h)?h:[h],p=Pe(v)?v:[v],g=[],y=[];function m(N,E,U){var F=U%E.length;return N[F]=N[F]||[],F}if(a==="circle")for(var w=i[0].getTicksCoords(),k=n.cx,P=n.cy,C=0;C<w.length;C++){if(f){var I=m(g,d,C);g[I].push(new es({shape:{cx:k,cy:P,r:w[C].coord}}))}if(c&&C<w.length-1){var I=m(y,p,C);y[I].push(new ou({shape:{cx:k,cy:P,r0:w[C].coord,r:w[C+1].coord}}))}}else for(var M,b=xe(i,function(N,E){var U=N.getTicksCoords();return M=M==null?U.length-1:Math.min(U.length-1,M),xe(U,function(F){return n.coordToPoint(F.coord,E)})}),T=[],C=0;C<=M;C++){for(var _=[],x=0;x<i.length;x++)_.push(b[x][C]);if(_[0]&&_.push(_[0].slice()),f){var I=m(g,d,C);g[I].push(new Gi({shape:{points:_}}))}if(c&&T){var I=m(y,p,C-1);y[I].push(new ts({shape:{points:_.concat(T)}}))}T=_.slice().reverse()}var A=l.getLineStyle(),R=u.getAreaStyle();G(y,function(N,E){this.group.add(Gf(N,{style:Ze({stroke:"none",fill:p[E%p.length]},R),silent:!0}))},this),G(g,function(N,E){this.group.add(Gf(N,{style:Ze({fill:"none",stroke:d[E%d.length]},A),silent:!0}))},this)},e.type="radar",e}(In),iL=function(t){be(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}(r_),aL=function(){function t(e,r,n){this.dimensions=[],this._model=e,this._indicatorAxes=xe(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new iL(o,new ii);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=vt(n[0],i),this.cy=vt(n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Le(s)||dt(s))&&(s=[0,s]),this.r0=vt(s[0],o),this.r=vt(s[1],o),G(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;G(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();G(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new ii;o.setExtent(0,a),o.setInterval(1),G(n,function(s,l){x_(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 oL(t){t.registerCoordinateSystem("radar",aL),t.registerComponentModel(tL),t.registerComponentView(nL),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 sL(t){Ui(oL),t.registerChartView(JR),t.registerSeriesModel(eL),t.registerLayout(ZR),t.registerProcessor(m_("radar")),t.registerPreprocessor(QR)}function lL(t,e){var r=L0(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Pt({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 uL=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"])}},uh=function(t){be(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"]),Pe(n)&&G(n,function(a,o){Le(a)&&(a={type:a}),n[o]=ut(a,uL(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,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Bh(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=qe(),s=xe(a,function(l){return(Le(l)||dt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Rt(l,this,this.ecModel))},this);this._data=Gt(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;G(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;G(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;G(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])&&gt(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}(ft),sa=dr,ch=G,Zs=At,P_=function(t){be(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 Zs),this.group.add(this._selectorGroup=new Zs),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()},h=r.get("padding"),v=Dl(f,c,h),d=this.layoutInner(r,o,v,a,l,u),p=Dl(Ze({width:d.width,height:d.height},f),c,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=lL(d,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=qe(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),ch(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
  53. `)){var g=new Zs;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),w=m.getVisual("legendLineStyle")||{},k=m.getVisual("legendIcon"),P=m.getVisual("style"),C=this._createItem(y,p,d,v,n,r,w,P,k,c,a);C.on("click",sa(py,p,null,a,h)).on("mouseover",sa(fh,y.name,null,a,h)).on("mouseout",sa(hh,y.name,null,a,h)),i.ssr&&C.eachChild(function(I){var M=yt(I);M.seriesIndex=y.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(I){if(!f.get(p)&&I.legendVisualProvider){var M=I.legendVisualProvider;if(!M.containName(p))return;var b=M.indexOfName(p),T=M.getItemVisual(b,"style"),_=M.getItemVisual(b,"legendIcon"),x=cn(T.fill);x&&x[3]===0&&(x[3]=.2,T=_e(_e({},T),{fill:Kl(x,"rgba")}));var A=this._createItem(I,p,d,v,n,r,{},T,_,c,a);A.on("click",sa(py,null,p,a,h)).on("mouseover",sa(fh,null,p,a,h)).on("mouseout",sa(hh,null,p,a,h)),i.ssr&&A.eachChild(function(R){var N=yt(R);N.seriesIndex=I.seriesIndex,N.dataIndex=d,N.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();ch(r,function(u){var f=u.type,c=new mr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Ma(c,{normal:h,emphasis:v},{defaultText:u.title}),$f(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var v=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),w=a.get("icon");f=w||f||"roundRect";var k=cL(f,a,l,u,v,g,h),P=new Zs,C=a.getModel("textStyle");if(Xe(r.getLegendIcon)&&(!w||w==="inherit"))P.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:m}));else{var I=w==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;P.add(fL({itemWidth:d,itemHeight:p,icon:f,iconRotate:I,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:m}))}var M=s==="left"?d+5:-5,b=s,T=o.get("formatter"),_=n;Le(T)&&T?_=T.replace("{name}",n??""):Xe(T)&&(_=T(n));var x=g?C.getTextColor():a.get("inactiveColor");P.add(new mr({style:Bo(C,{text:_,x:M,y:p/2,fill:x,align:b,verticalAlign:"middle"},{inheritColor:x})}));var A=new Pt({shape:P.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&Xh({el:A,componentModel:o,itemName:n,itemTooltipOption:R.option}),P.add(A),P.eachChild(function(N){N.silent=!0}),A.silent=!c,this.getContentGroup().add(P),$f(P),P.__legendDataIndex=i,P},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wo(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){wo("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var w={x:0,y:0};return w[g]=f[g]+d+h[g],w[y]=Math.max(f[y],h[y]),w[m]=Math.min(0,h[m]+v[1-p]),w}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}(In);function cL(t,e,r,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),ch(g,function(m,w){g[w]==="inherit"&&(g[w]=y[w])})}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:Qf(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 h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function fL(t){var e=t.icon||"roundRect",r=ni(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 py(t,e,r,n){hh(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),fh(t,e,r,n)}function R_(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 fh(t,e,r,n){R_(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function hh(t,e,r,n){R_(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function hL(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 to(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();G(s,function(l){var u=l.get("name");if(!(u===`
  54. `||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 vL(t){t.registerAction("legendToggleSelect","legendselectchanged",dr(to,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",dr(to,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",dr(to,"inverseSelect")),t.registerAction("legendSelect","legendselected",dr(to,"select")),t.registerAction("legendUnSelect","legendunselected",dr(to,"unSelect"))}function L_(t){t.registerComponentModel(uh),t.registerComponentView(P_),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,hL),t.registerSubTypeDefaulter("legend",function(){return"plain"}),vL(t)}var dL=function(t){be(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=gu(r);t.prototype.init.call(this,r,n,i),gy(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),gy(this,this.option,r)},e.type="legend.scroll",e.defaultOption=S0(uh.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}(uh);function gy(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,xa(e,r,{type:"box",ignoreSize:!!i})}var yy=At,Zc=["width","height"],Qc=["x","y"],pL=function(t){be(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 yy),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new yy)},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),h=Pe(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new mr({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=g0(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:xt(u._pageGo,u,y,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Zc[u],c=Qc[u],h=Zc[1-u],v=Qc[1-u];o&&wo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=et(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(r,a,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var w=p[f]+d;g[u]-=w,m[c]-=w}m[f]+=p[f]+d,g[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;wo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),wo("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],w=Ne(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var k=r.get("pageButtonPosition",!0);k==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+w}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var P={x:0,y:0};if(P[o]=p?i[o]:v[o],P[s]=Math.max(v[s],d[s]),P[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=i[o],p){var C={x:0,y:0};C[o]=Math.max(i[o]-d[o]-w,0),C[s]=P[s],c.setClipPath(new Pt({shape:C})),c.__rectSize=C[o]}else h.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var I=this._getPageInfo(r);return I.pageIndex!=null&&Wt(f,{x:I.contentPosition[0],y:I.contentPosition[1]},p?r:null),this._updatePageInfoView(r,I),P},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;G(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"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",Le(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=Zc[o],l=Qc[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=k(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,w=null;g<=h;++g)w=k(f[g]),(!w&&m.e>y.s+a||w&&!P(w,y.s))&&(m.i>y.i?y=m:y=w,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=w;for(var g=u-1,y=p,m=p,w=null;g>=-1;--g)w=k(f[g]),(!w||!P(m,w.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=w;return d;function k(C){if(C){var I=C.getBoundingRect(),M=I[l]+C[l];return{s:M,e:M+I[s],i:C.__legendDataIndex}}}function P(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}(P_);function gL(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 yL(t){Ui(L_),t.registerComponentModel(dL),t.registerComponentView(pL),gL(t)}function mL(t){Ui(L_),Ui(yL)}var Jc=Math.sin,ef=Math.cos,E_=Math.PI,Ri=Math.PI*2,_L=180/E_,D_=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),h=Hn(c-Ri)||(f?u>=Ri:-u>=Ri),v=u>0?u%Ri:u%Ri+Ri,d=!1;h?d=!0:Hn(c)?d=!1:d=v>=E_==!!f;var p=e+n*ef(o),g=r+i*Jc(o);this._start&&this._add("M",p,g);var y=Math.round(a*_L);if(h){var m=1/this._p,w=(f?1:-1)*(Ri-m);this._add("A",n,i,y,1,+f,e+n*ef(o+w),r+i*Jc(o+w)),m>.01&&this._add("A",n,i,y,0,+f,p,g)}else{var k=e+n*ef(s),P=r+i*Jc(s);this._add("A",n,i,y,+d,+f,k,P)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*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}(),Tv="none",SL=Math.round;function bL(t){var e=t.fill;return e!=null&&e!==Tv}function wL(t){var e=t.stroke;return e!=null&&e!==Tv}var vh=["lineCap","miterLimit","lineJoin"],CL=xe(vh,function(t){return"stroke-"+t.toLowerCase()});function TL(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof Xr){t("opacity",i);return}if(bL(e)){var a=Mo(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",Tv);if(wL(e)){var s=Mo(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 h=lv(r),v=h[0],d=h[1];v&&(d=SL(d||0),t("stroke-dasharray",v.join(",")),(d||n)&&t("stroke-dashoffset",d))}for(var p=0;p<vh.length;p++){var g=vh[p];if(e[g]!==Tl[g]){var y=e[g]||Tl[g];y&&t(CL[p],y)}}}}var O_="http://www.w3.org/2000/svg",B_="http://www.w3.org/1999/xlink",xL="http://www.w3.org/2000/xmlns/",IL="http://www.w3.org/XML/1998/namespace",my="ecmeta_";function N_(t){return document.createElementNS(O_,t)}function It(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function AL(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 kL(t){return"</"+t+">"}function xv(t,e){e=e||{};var r=e.newline?`
  55. `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return AL(o,s)+(o!=="style"?aC(l):l||"")+(a?""+r+xe(a,function(u){return n(u)}).join(r)+r:"")+kL(o)}return n(t)}function ML(t,e,r){r=r||{};var n=r.newline?`
  56. `:"",i=" {"+n,a=n+"}",o=xe(tt(t),function(l){return l+i+xe(tt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=xe(tt(e),function(l){return"@keyframes "+l+i+xe(tt(e[l]),function(u){return u+i+xe(tt(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 dh(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _y(t,e,r,n){return It("svg","root",{width:t,height:e,xmlns:O_,"xmlns:xlink":B_,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var PL=0;function F_(){return PL++}var Sy={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"},Ei="transform-origin";function RL(t,e,r){var n=_e({},t.shape);_e(n,e),t.buildPath(r,n);var i=new D_;return i.reset(_m(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function LL(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[Ei]=r+"px "+n+"px")}var EL={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function $_(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function DL(t,e,r){var n=t.shape.paths,i={},a,o;if(G(n,function(l){var u=dh(r.zrId);u.animation=!0,Tu(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=tt(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){e.d=!1;var s=$_(i,r);return a.replace(o,s)}}function by(t){return Le(t)?Sy[t]?"cubic-bezier("+Sy[t]+")":Rh(t)?t:"":""}function Tu(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof l0){var s=DL(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"],h=by(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var w=m[1],k=w.length,P={},C={},I={},M="animation-timing-function";function b(ue,fe,he){for(var te=ue.getTracks(),ie=ue.getMaxTime(),Ae=0;Ae<te.length;Ae++){var ne=te[Ae];if(ne.needsAnimate()){var le=ne.keyframes,we=ne.propName;if(he&&(we=he(we)),we)for(var Ie=0;Ie<le.length;Ie++){var rt=le[Ie],st=Math.round(rt.time/ie*100)+"%",bt=by(rt.easing),Ee=rt.rawValue;(Le(Ee)||dt(Ee))&&(fe[st]=fe[st]||{},fe[st][we]=rt.rawValue,bt&&(fe[st][M]=bt))}}}}for(var T=0;T<k;T++){var _=w[T],x=_.targetName;x?x==="shape"&&b(_,C):!n&&b(_,P)}for(var A in P){var R={};Tm(R,t),_e(R,P[A]);var N=Sm(R),E=P[A][M];I[A]=N?{transform:N}:{},LL(I[A],R),E&&(I[A][M]=E)}var U,F=!0;for(var A in C){I[A]=I[A]||{};var B=!U,E=C[A][M];B&&(U=new ti);var X=U.len();U.reset(),I[A].d=RL(t,C[A],U);var Z=U.len();if(!B&&X!==Z){F=!1;break}E&&(I[A][M]=E)}if(!F)for(var A in I)delete I[A].d;if(!n)for(var T=0;T<k;T++){var _=w[T],x=_.targetName;x==="style"&&b(_,I,function(te){return EL[te]})}for(var q=tt(I),se=!0,ce,T=1;T<q.length;T++){var Q=q[T-1],J=q[T];if(I[Q][Ei]!==I[J][Ei]){se=!1;break}ce=I[Q][Ei]}if(se&&ce){for(var A in I)I[A][Ei]&&delete I[A][Ei];e[Ei]=ce}if(Gt(q,function(ue){return tt(I[ue]).length>0}).length){var ee=$_(I,r);return ee+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+F_();r.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function OL(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};wy(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=bf(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),wy(n,e,r)}}function wy(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+F_(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var Go=Math.round;function z_(t){return t&&Le(t.src)}function U_(t){return t&&Xe(t.toDataURL)}function Iv(t,e,r,n){TL(function(i,a){var o=i==="fill"||i==="stroke";o&&mm(a)?H_(e,t,i,n):o&&Lh(a)?G_(r,t,i,n):o&&a==="none"?t[i]="transparent":t[i]=a},e,r,!1),VL(r,t,n)}function Av(t,e){var r=fT(e);r&&(r.each(function(n,i){n!=null&&(t[(my+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[my+"silent"]="true"))}function Cy(t){return Hn(t[0]-1)&&Hn(t[1])&&Hn(t[2])&&Hn(t[3]-1)}function BL(t){return Hn(t[4])&&Hn(t[5])}function kv(t,e,r){if(e&&!(BL(e)&&Cy(e))){var n=1e4;t.transform=Cy(e)?"translate("+Go(e[4]*n)/n+" "+Go(e[5]*n)/n+")":DC(e)}}function Ty(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Go(n[a][0]*r)/r),i.push(Go(n[a][1]*r)/r);e.points=i.join(" ")}function xy(t){return!t.smooth}function NL(t){var e=xe(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]]=Go(s*i)/i)}}}var FL={circle:[NL(["cx","cy","r"])],polyline:[Ty,xy],polygon:[Ty,xy]};function $L(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function V_(t,e){var r=t.style,n=t.shape,i=FL[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&_m(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&$L(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 h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var v=h.getVersion(),d=t,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new D_),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),a.d=p.getStr()}return kv(a,t.transform),Iv(a,r,t,e),Av(a,t),e.animation&&Tu(t,a,e),e.emphasis&&OL(t,a,e),It(s,t.id+"",a)}function zL(t,e){var r=t.style,n=r.image;if(n&&!Le(n)&&(z_(n)?n=n.src:U_(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),kv(l,t.transform),Iv(l,r,t,e),Av(l,t),e.animation&&Tu(t,l,e),It("image",t.id+"",l)}}function UL(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Zn,a=r.x||0,o=BC(r.y||0,Zl(i),r.textBaseline),s=OC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(jm(r)){var u="",f=r.fontStyle,c=Wm(r.fontSize);if(!parseFloat(c))return;var h=r.fontFamily||Ky,v=r.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),kv(l,t.transform),Iv(l,r,t,e),Av(l,t),e.animation&&Tu(t,l,e),It("text",t.id+"",l,void 0,n)}}function Iy(t,e){if(t instanceof it)return V_(t,e);if(t instanceof Xr)return zL(t,e);if(t instanceof Eo)return UL(t,e)}function VL(t,e,r){var n=t.style;if(NC(n)){var i=FC(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,h=n.shadowBlur,v=Mo(n.shadowColor),d=v.opacity,p=v.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=It("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[It("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),a[i]=o}e.filter=Yl(o)}}function H_(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(gm(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(ym(i))a="radialGradient",o.cx=Ne(i.x,.5),o.cy=Ne(i.y,.5),o.r=Ne(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=wf(s[u].offset)*100+"%",h=s[u].color,v=Mo(h),d=v.color,p=v.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(It("stop",u+"",g))}var y=It(a,"",o,l),m=xv(y),w=n.gradientCache,k=w[m];k||(k=n.zrId+"-g"+n.gradientIdx++,w[m]=k,o.id=k,n.defs[k]=It(a,k,o,l)),e[r]=Yl(k)}function G_(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(pm(i)){var h=i.imageWidth,v=i.imageHeight,d=void 0,p=i.image;if(Le(p)?d=p:z_(p)?d=p.src:U_(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";vn(h,g),vn(v,g)}else if(h==null||v==null){var y=function(T,_){if(T){var x=T.elm,A=h||_.width,R=v||_.height;T.tag==="pattern"&&(u?(R=1,A/=a.width):f&&(A=1,R/=a.height)),T.attrs.width=A,T.attrs.height=R,x&&(x.setAttribute("width",A),x.setAttribute("height",R))}},m=Fh(d,null,t,function(T){l||y(C,T),y(c,T)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=It("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(c=et(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var w,k;l?w=k=1:u?(k=1,w=o.width/a.width):f?(w=1,k=o.height/a.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),k!=null&&!isNaN(k)&&(o.height=k);var P=Sm(i);P&&(o.patternTransform=P);var C=It("pattern","",o,[c]),I=xv(C),M=n.patternCache,b=M[I];b||(b=n.zrId+"-p"+n.patternIdx++,M[I]=b,o.id=b,C=n.defs[b]=It("pattern",b,o,[c])),e[r]=Yl(b)}}function HL(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]=It("clipPath",a,o,[V_(t,r)])}e["clip-path"]=Yl(a)}function Ay(t){return document.createTextNode(t)}function Di(t,e,r){t.insertBefore(e,r)}function ky(t,e){t.removeChild(e)}function My(t,e){t.appendChild(e)}function W_(t){return t.parentNode}function j_(t){return t.nextSibling}function tf(t,e){t.textContent=e}var Py=58,GL=120,WL=It("","");function ph(t){return t===void 0}function an(t){return t!==void 0}function jL(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 uo(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Wo(t){var e,r=t.children,n=t.tag;if(an(n)){var i=t.elm=N_(n);if(Mv(WL,t),Pe(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&My(i,Wo(a))}else an(t.text)&&!Oe(t.text)&&My(i,Ay(t.text))}else t.elm=Ay(t.text);return t.elm}function X_(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Di(t,Wo(a),e)}}function Ul(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(an(i.tag)){var a=W_(i.elm);ky(a,i.elm)}else ky(t,i.elm)}}function Mv(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)!==GL?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(xL,r,o):r.charCodeAt(3)===Py?n.setAttributeNS(IL,r,o):r.charCodeAt(5)===Py?n.setAttributeNS(B_,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function XL(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,h,v,d;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:f==null?f=r[--l]:uo(o,u)?(ca(o,u),o=e[++n],u=r[++i]):uo(s,f)?(ca(s,f),s=e[--a],f=r[--l]):uo(o,f)?(ca(o,f),Di(t,o.elm,j_(s.elm)),o=e[++n],f=r[--l]):uo(s,u)?(ca(s,u),Di(t,s.elm,o.elm),s=e[--a],u=r[++i]):(ph(c)&&(c=jL(e,n,a)),h=c[u.key],ph(h)?Di(t,Wo(u),o.elm):(v=e[h],v.tag!==u.tag?Di(t,Wo(u),o.elm):(ca(v,u),e[h]=void 0,Di(t,v.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(d=r[l+1]==null?null:r[l+1].elm,X_(t,d,r,i,l)):Ul(t,e,n,a))}function ca(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(Mv(t,e),ph(e.text)?an(n)&&an(i)?n!==i&&XL(r,n,i):an(i)?(an(t.text)&&tf(r,""),X_(r,null,i,0,i.length-1)):an(n)?Ul(r,n,0,n.length-1):an(t.text)&&tf(r,""):t.text!==e.text&&(an(n)&&Ul(r,n,0,n.length-1),tf(r,e.text)))}function qL(t,e){if(uo(t,e))ca(t,e);else{var r=t.elm,n=W_(r);Wo(e),n!==null&&(Di(n,e.elm,j_(r)),Ul(n,[t],0,0))}return e}var KL=0,YL=function(){function t(e,r,n){if(this.type="svg",this.refreshHover=Ry(),this.configLayer=Ry(),this.storage=r,this._opts=n=_e({},n),this.root=e,this._id="zr"+KL++,this._oldVNode=_y(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=N_("svg");Mv(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",qL(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Iy(e,dh(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=dh(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis;var o=[],s=this._bgVNode=ZL(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=It("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=xe(tt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(It("defs","defs",{},u)),e.animation){var f=ML(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=It("style","stl",{},[],f);o.push(c)}}return _y(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},xv(this.renderToVNode({animation:Ne(e.cssAnimation,!0),emphasis:Ne(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ne(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 h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var y=p+1;y<v;y++){var m={};HL(h[y],m,r);var w=It("g","clip-g-"+u++,m,[]);(s?s.children:n).push(w),a[o++]=w,s=w}l=h;var k=Iy(c,r);k&&(s?s.children:n).push(k)}}},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=ng(i,0,n),r=ng(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(Lh(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=zC(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t}();function Ry(t){return function(){}}function ZL(t,e,r,n){var i;if(r&&r!=="none")if(i=It("rect","bg",{width:t,height:e,x:"0",y:"0"}),mm(r))H_({fill:r},i.attrs,"fill",n);else if(Lh(r))G_({style:{fill:r},dirty:pr,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=Mo(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function QL(t){t.registerPainter("svg",YL)}const JL=He({__name:"Chart",props:{width:{},height:{},type:{},data:{},themeColors:{},textColor:{},options:{}},setup(t){Ui([aR,GP,pR,YR,sL,mL,QL]);const e=t;let r=null;const n=ve(),i=Te(()=>{let o=[];if(e.themeColors.length>=10)o=e.themeColors;else if(e.themeColors.length===1)o=af(e.themeColors[0]).analogous(10).map(s=>s.toRgbString());else{const s=e.themeColors.length,l=af(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=Tw({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 ir(()=>{r=jk(n.value,null,{renderer:"svg"}),a();const o=()=>r.resize();new ResizeObserver(o).observe(n.value)}),Rr(()=>e.type,a),Rr(()=>e.data,a),Rr(()=>e.themeColors,a),Rr(()=>e.textColor,a),(o,s)=>(re(),pe("div",{class:"chart",ref_key:"chartRef",ref:n},null,512))}}),eE=Ye(JL,[["__scopeId","data-v-a77f2c9e"]]),tE=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"}},rE=t=>t.replace(/\n/g,"</br>").replace(/ /g,"&nbsp;"),nE=t=>({hideCells:Te(()=>{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})}),iE=t=>{const e=ve(["",""]);return Rr(()=>t.value,()=>{t.value&&(e.value=DS(t.value.color))},{immediate:!0}),{subThemeColor:e}},aE=(t,e)=>{ir(()=>{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()}}})},Pv=t=>(Vi("data-v-6dd1d953"),t=t(),Hi(),t),oE={key:0,class:"load-error"},sE=["src","autoplay","poster"],lE={class:"bezel"},uE=Pv(()=>j("div",{class:"controller-mask"},null,-1)),cE={class:"controller"},fE={class:"icons icons-left"},hE={class:"icon-content"},vE={class:"volume"},dE={class:"icon-content"},pE=Pv(()=>j("span",{class:"thumb"},null,-1)),gE=[pE],yE={class:"time"},mE={class:"ptime"},_E={class:"dtime"},SE={class:"icons icons-right"},bE={class:"speed"},wE={class:"icon speed-icon"},CE=["onClick"],TE={class:"icon-content"},xE={class:"bar"},IE=Pv(()=>j("span",{class:"thumb"},null,-1)),AE=[IE],kE=He({__name:"index",props:{width:{},height:{},src:{},poster:{default:""},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(t){const e=t,r=(ne=0)=>{if(ne===0||isNaN(ne))return"00:00";const le=st=>st<10?"0"+st:""+st,we=Math.floor(ne/3600),Ie=Math.floor((ne-we*3600)/60),rt=Math.floor(ne-we*3600-Ie*60);return(we>0?[we,Ie,rt]:[Ie,rt]).map(le).join(":")},n=ne=>ne.getBoundingClientRect().left,i=ve(),a=ve(),o=ve(),s=ve(.5),l=ve(!0),u=ve(0),f=ve(0),c=ve(0),h=ve(!1),v=ve(!1),d=ve(1),p=ve(!1),g=ve("00:00"),y=ve("0"),m=Te(()=>r(u.value)),w=Te(()=>r(f.value)),k=Te(()=>u.value/f.value*100+"%"),P=Te(()=>c.value/f.value*100+"%"),C=Te(()=>s.value*100+"%"),I=ve(!1),M=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],b=ne=>{i.value&&(ne=Math.max(ne,0),ne=Math.min(ne,f.value),i.value.currentTime=ne,u.value=ne)},T=()=>{i.value&&(l.value=!1,i.value.play(),v.value=!0)},_=()=>{i.value&&(l.value=!0,i.value.pause(),v.value=!0)},x=()=>{l.value?T():_()},A=ne=>{i.value&&(ne=Math.max(ne,0),ne=Math.min(ne,1),i.value.volume=ne,s.value=ne,i.value.muted&&ne!==0&&(i.value.muted=!1))},R=ne=>{i.value&&(i.value.playbackRate=ne),d.value=ne},N=()=>{var ne;f.value=((ne=i.value)==null?void 0:ne.duration)||0},E=()=>{var ne;u.value=((ne=i.value)==null?void 0:ne.currentTime)||0},U=()=>{h.value?(b(0),T()):_()},F=()=>{var ne;c.value=(ne=i.value)!=null&&ne.buffered.length?i.value.buffered.end(i.value.buffered.length-1):0},B=ve(!1),X=()=>B.value=!0,Z=ne=>{if(!i.value||!a.value)return;let we=(("clientX"in ne?ne.clientX:ne.changedTouches[0].clientX)-n(a.value))/a.value.clientWidth;we=Math.max(we,0),we=Math.min(we,1);const Ie=we*f.value;i.value.currentTime=Ie,u.value=Ie},q=ne=>{if(!i.value||!a.value)return;let we=(("clientX"in ne?ne.clientX:ne.changedTouches[0].clientX)-n(a.value))/a.value.clientWidth;we=Math.max(we,0),we=Math.min(we,1);const Ie=we*f.value;i.value.currentTime=Ie,u.value=Ie,document.removeEventListener("mousemove",Z),document.removeEventListener("touchmove",Z),document.removeEventListener("mouseup",q),document.removeEventListener("touchend",q)},se=()=>{document.addEventListener("mousemove",Z),document.addEventListener("touchmove",Z),document.addEventListener("mouseup",q),document.addEventListener("touchend",q)},ce=ne=>{if(!o.value)return;const we=(("clientX"in ne?ne.clientX:ne.changedTouches[0].clientX)-n(o.value))/45;A(we)},Q=()=>{document.removeEventListener("mousemove",ce),document.removeEventListener("touchmove",ce),document.removeEventListener("mouseup",Q),document.removeEventListener("touchend",Q)},J=()=>{document.addEventListener("mousemove",ce),document.addEventListener("touchmove",ce),document.addEventListener("mouseup",Q),document.addEventListener("touchend",Q)},ee=ne=>{if(!o.value)return;const le=(ne.clientX-n(o.value))/45;A(le)},ue=ne=>{if(f.value&&a.value){const le=a.value.getBoundingClientRect().left,we=ne.clientX-le;if(we<0||we>a.value.offsetWidth)return;const Ie=f.value*(we/a.value.offsetWidth);y.value=`${we-(Ie>=3600?25:20)}px`,g.value=r(Ie),p.value=!0}},fe=()=>{i.value&&(i.value.muted?(i.value.muted=!1,A(.5)):(i.value.muted=!0,A(0)))},he=()=>{h.value=!h.value},te=ve(-1),ie=ve(!1),Ae=()=>{ie.value=!1,clearTimeout(te.value),te.value=setTimeout(()=>{var ne;(ne=i.value)!=null&&ne.played.length&&(ie.value=!0)},3e3)};return aE(e.src,i),(ne,le)=>{const we=We("IconPause"),Ie=We("IconPlayOne"),rt=We("IconVolumeMute"),st=We("IconVolumeNotice"),bt=We("IconVolumeSmall");return re(),pe("div",{class:Je(["video-player",{"hide-controller":ie.value}]),style:Se({width:ne.width*ne.scale+"px",height:ne.height*ne.scale+"px",transform:`scale(${1/ne.scale})`}),onMousemove:le[22]||(le[22]=Ee=>Ae()),onClick:le[23]||(le[23]=Ee=>Ae())},[j("div",{class:"video-wrap",onClick:le[8]||(le[8]=Ee=>x())},[B.value?(re(),pe("div",oE,"视频加载失败")):Ve("",!0),j("video",{class:"video",ref_key:"videoRef",ref:i,src:ne.src,autoplay:ne.autoplay,poster:ne.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:le[0]||(le[0]=Ee=>N()),onTimeupdate:le[1]||(le[1]=Ee=>E()),onEnded:le[2]||(le[2]=Ee=>U()),onProgress:le[3]||(le[3]=Ee=>F()),onPlay:le[4]||(le[4]=Ee=>{Ae(),l.value=!1}),onPause:le[5]||(le[5]=Ee=>Ae()),onError:le[6]||(le[6]=Ee=>X())},null,40,sE),j("div",lE,[j("span",{class:Je(["bezel-icon",{"bezel-transition":v.value}]),onAnimationend:le[7]||(le[7]=Ee=>v.value=!1)},[l.value?(re(),$e(we,{key:0})):(re(),$e(Ie,{key:1}))],34)])]),uE,j("div",cE,[j("div",fE,[j("div",{class:"icon play-icon",onClick:le[9]||(le[9]=Ee=>x())},[j("span",hE,[l.value?(re(),$e(Ie,{key:0})):(re(),$e(we,{key:1}))])]),j("div",vE,[j("div",{class:"icon volume-icon",onClick:le[10]||(le[10]=Ee=>fe())},[j("span",dE,[s.value===0?(re(),$e(rt,{key:0})):s.value===1?(re(),$e(st,{key:1})):(re(),$e(bt,{key:2}))])]),j("div",{class:"volume-bar-wrap",onMousedown:le[11]||(le[11]=Ee=>J()),onTouchstart:le[12]||(le[12]=Ee=>J()),onClick:le[13]||(le[13]=Ee=>ee(Ee))},[j("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:o},[j("div",{class:"volume-bar-inner",style:Se({width:C.value})},gE,4)],512)],32)]),j("span",yE,[j("span",mE,Mt(m.value),1),Ly(" / "),j("span",_E,Mt(w.value),1)])]),j("div",SE,[j("div",bE,[j("div",wE,[j("span",{class:"icon-content",onClick:le[14]||(le[14]=Ee=>I.value=!I.value)},Mt(d.value===1?"倍速":d.value+"x"),1),I.value?(re(),pe("div",{key:0,class:"speed-menu",onMouseleave:le[15]||(le[15]=Ee=>I.value=!1)},[(re(),pe($t,null,Lr(M,Ee=>j("div",{class:Je(["speed-menu-item",{active:Ee.value===d.value}]),key:Ee.label,onClick:Br=>R(Ee.value)},Mt(Ee.label),11,CE)),64))],32)):Ve("",!0)])]),j("div",{class:"loop",onClick:le[16]||(le[16]=Ee=>he())},[j("div",{class:Je(["icon loop-icon",{active:h.value}])},[j("span",TE,"循环"+Mt(h.value?"开":"关"),1)],2)])]),j("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:a,onMousedown:le[17]||(le[17]=Ee=>se()),onTouchstart:le[18]||(le[18]=Ee=>se()),onMousemove:le[19]||(le[19]=Ee=>ue(Ee)),onMouseenter:le[20]||(le[20]=Ee=>p.value=!0),onMouseleave:le[21]||(le[21]=Ee=>p.value=!1)},[j("div",{class:Je(["bar-time",{hidden:!p.value}]),style:Se({left:y.value})},Mt(g.value),7),j("div",xE,[j("div",{class:"loaded",style:Se({width:P.value})},null,4),j("div",{class:"played",style:Se({width:k.value})},AE,4)])],544)])],38)}}}),ME=Ye(kE,[["__scopeId","data-v-6dd1d953"]]),q_=t=>(Vi("data-v-800d7e1a"),t=t(),Hi(),t),PE=["src","autoplay"],RE={class:"controller"},LE={class:"icons"},EE={class:"icon-content"},DE={class:"volume"},OE={class:"icon-content"},BE=q_(()=>j("span",{class:"thumb"},null,-1)),NE=[BE],FE={class:"time"},$E={class:"ptime"},zE={class:"dtime"},UE={class:"bar"},VE=q_(()=>j("span",{class:"thumb"},null,-1)),HE=[VE],GE=He({__name:"AudioPlayer",props:{src:{},loop:{type:Boolean},autoplay:{type:Boolean,default:!1},scale:{default:1}},setup(t,{expose:e}){const r=t,n=(Q=0)=>{if(Q===0||isNaN(Q))return"00:00";const J=he=>he<10?"0"+he:""+he,ee=Math.floor(Q/3600),ue=Math.floor((Q-ee*3600)/60),fe=Math.floor(Q-ee*3600-ue*60);return(ee>0?[ee,ue,fe]:[ue,fe]).map(J).join(":")},i=Q=>Q.getBoundingClientRect().left,a=ve(),o=ve(),s=ve(),l=ve(.5),u=ve(!0),f=ve(0),c=ve(0),h=ve(0),v=ve(!1),d=ve("00:00"),p=ve("0"),g=Te(()=>n(f.value)),y=Te(()=>n(c.value)),m=Te(()=>f.value/c.value*100+"%"),w=Te(()=>h.value/c.value*100+"%"),k=Te(()=>l.value*100+"%"),P=Q=>{a.value&&(Q=Math.max(Q,0),Q=Math.min(Q,c.value),a.value.currentTime=Q,f.value=Q)},C=()=>{a.value&&(u.value=!1,a.value.play())},I=()=>{a.value&&(u.value=!0,a.value.pause())},M=()=>{u.value?C():I()},b=Q=>{a.value&&(Q=Math.max(Q,0),Q=Math.min(Q,1),a.value.volume=Q,l.value=Q,a.value.muted&&Q!==0&&(a.value.muted=!1))},T=()=>{var Q;c.value=((Q=a.value)==null?void 0:Q.duration)||0},_=()=>{var Q;f.value=((Q=a.value)==null?void 0:Q.currentTime)||0},x=()=>{u.value=!1},A=()=>{r.loop?(P(0),C()):I()},R=()=>{var Q;h.value=(Q=a.value)!=null&&Q.buffered.length?a.value.buffered.end(a.value.buffered.length-1):0},N=()=>yr.error("视频加载失败"),E=Q=>{if(!a.value||!o.value)return;let ee=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;ee=Math.max(ee,0),ee=Math.min(ee,1);const ue=ee*c.value;a.value.currentTime=ue,f.value=ue},U=Q=>{if(!a.value||!o.value)return;let ee=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-i(o.value))/o.value.clientWidth;ee=Math.max(ee,0),ee=Math.min(ee,1);const ue=ee*c.value;a.value.currentTime=ue,f.value=ue,document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",E),document.removeEventListener("mouseup",U),document.removeEventListener("touchend",U)},F=()=>{document.addEventListener("mousemove",E),document.addEventListener("touchmove",E),document.addEventListener("mouseup",U),document.addEventListener("touchend",U)},B=Q=>{if(!s.value)return;const ee=(("clientX"in Q?Q.clientX:Q.changedTouches[0].clientX)-i(s.value))/45;b(ee)},X=()=>{document.removeEventListener("mousemove",B),document.removeEventListener("touchmove",B),document.removeEventListener("mouseup",X),document.removeEventListener("touchend",X)},Z=()=>{document.addEventListener("mousemove",B),document.addEventListener("touchmove",B),document.addEventListener("mouseup",X),document.addEventListener("touchend",X)},q=Q=>{if(!s.value)return;const J=(Q.clientX-i(s.value))/45;b(J)},se=Q=>{if(c.value&&o.value){const J=o.value.getBoundingClientRect().left,ee=Q.clientX-J;if(ee<0||ee>o.value.offsetWidth)return;const ue=c.value*(ee/o.value.offsetWidth);p.value=`${ee-(ue>=3600?25:20)}px`,d.value=n(ue),v.value=!0}},ce=()=>{a.value&&(a.value.muted?(a.value.muted=!1,b(.5)):(a.value.muted=!0,b(0)))};return e({toggle:M}),(Q,J)=>{const ee=We("IconPlayOne"),ue=We("IconPause"),fe=We("IconVolumeMute"),he=We("IconVolumeNotice"),te=We("IconVolumeSmall");return re(),pe("div",{class:"audio-player",style:Se({transform:`scale(${1/Q.scale})`})},[j("audio",{class:"audio",ref_key:"audioRef",ref:a,src:Q.src,autoplay:Q.autoplay,onDurationchange:J[0]||(J[0]=ie=>T()),onTimeupdate:J[1]||(J[1]=ie=>_()),onPlay:J[2]||(J[2]=ie=>x()),onEnded:J[3]||(J[3]=ie=>A()),onProgress:J[4]||(J[4]=ie=>R()),onError:J[5]||(J[5]=ie=>N())},null,40,PE),j("div",RE,[j("div",LE,[j("div",{class:"icon play-icon",onClick:J[6]||(J[6]=ie=>M())},[j("span",EE,[u.value?(re(),$e(ee,{key:0})):(re(),$e(ue,{key:1}))])]),j("div",DE,[j("div",{class:"icon volume-icon",onClick:J[7]||(J[7]=ie=>ce())},[j("span",OE,[l.value===0?(re(),$e(fe,{key:0})):l.value===1?(re(),$e(he,{key:1})):(re(),$e(te,{key:2}))])]),j("div",{class:"volume-bar-wrap",onMousedown:J[8]||(J[8]=ie=>Z()),onTouchstart:J[9]||(J[9]=ie=>Z()),onClick:J[10]||(J[10]=ie=>q(ie))},[j("div",{class:"volume-bar",ref_key:"volumeBarRef",ref:s},[j("div",{class:"volume-bar-inner",style:Se({width:k.value})},NE,4)],512)],32)])]),j("span",FE,[j("span",$E,Mt(g.value),1),Ly(" / "),j("span",zE,Mt(y.value),1)]),j("div",{class:"bar-wrap",ref_key:"playBarWrap",ref:o,onMousedown:J[11]||(J[11]=ie=>F()),onTouchstart:J[12]||(J[12]=ie=>F()),onMousemove:J[13]||(J[13]=ie=>se(ie)),onMouseenter:J[14]||(J[14]=ie=>v.value=!0),onMouseleave:J[15]||(J[15]=ie=>v.value=!1)},[j("div",{class:Je(["bar-time",{hidden:!v.value}]),style:Se({left:p.value})},Mt(d.value),7),j("div",UE,[j("div",{class:"loaded",style:Se({width:w.value})},null,4),j("div",{class:"played",style:Se({width:m.value})},HE,4)])],544)])],4)}}}),WE=Ye(GE,[["__scopeId","data-v-800d7e1a"]]),K_=t=>(Vi("data-v-eaee9143"),t=t(),Hi(),t),jE={key:0,class:"loading-overlay"},XE=K_(()=>j("div",{class:"spinner"},null,-1)),qE=K_(()=>j("div",{class:"text"},"云教练加载中...",-1)),KE=[XE,qE],YE=["src"],ZE=He({__name:"cloudCoachPlayer",props:{width:{},height:{},id:{},scale:{default:1}},setup(t){const e=t,r=Te(()=>`${PS}?v=${Date.now()}&showGuide=true&showWebGuide=false&platform=pc&imagePos=right&zoom=0.8&modelType=practise&instrumentId=&id=${e.id}&Authorization=${RS()}`),n=ve(!0);function i(){n.value=!1}return(a,o)=>(re(),pe("div",{class:"cloudCoachPlayer",style:Se({width:a.width*a.scale+"px",height:a.height*a.scale+"px",transform:`scale(${1/a.scale})`})},[n.value?(re(),pe("div",jE,KE)):Ve("",!0),j("iframe",{class:"musicIframe",frameborder:"0",src:r.value,onLoad:i},null,40,YE)],4))}}),QE=Ye(ZE,[["__scopeId","data-v-eaee9143"]]),Y_=t=>({backgroundStyle:Te(()=>{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"}})}),JE=He({__name:"Divider",props:{type:{default:"horizontal"},margin:{default:-1}},setup(t){return(e,r)=>(re(),pe("div",{class:Je(["divider",e.type]),style:Se({margin:e.type==="horizontal"?`${e.margin>=0?e.margin:24}px 0`:`0 ${e.margin>=0?e.margin:8}px`})},null,6))}}),eD=Ye(JE,[["__scopeId","data-v-def6106d"]]),tD=["src"],rD=He({__name:"BaseImageElement",props:{elementInfo:{}},setup(t){const e=t,r=Te(()=>e.elementInfo.shadow),{shadowStyle:n}=jl(r),i=Te(()=>e.elementInfo.flipH),a=Te(()=>e.elementInfo.flipV),{flipStyle:o}=Wy(i,a),s=Te(()=>e.elementInfo),{clipShape:l,imgPosition:u}=Xy(s),f=Te(()=>e.elementInfo.filters),{filter:c}=Jb(f);return(h,v)=>(re(),pe("div",{class:"base-element-image",style:Se({top:h.elementInfo.top+"px",left:h.elementInfo.left+"px",width:h.elementInfo.width+"px",height:h.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${h.elementInfo.rotate}deg)`})},[j("div",{class:"element-content",style:Se({filter:ae(n)?`drop-shadow(${ae(n)})`:"",transform:ae(o)})},[De(vw,{elementInfo:h.elementInfo},null,8,["elementInfo"]),j("div",{class:"image-content",style:Se({clipPath:ae(l).style})},[j("img",{src:h.elementInfo.src,draggable:!1,style:Se({top:ae(u).top,left:ae(u).left,width:ae(u).width,height:ae(u).height,filter:ae(c)}),alt:""},null,12,tD),h.elementInfo.colorMask?(re(),pe("div",{key:0,class:"color-mask",style:Se({backgroundColor:h.elementInfo.colorMask})},null,4)):Ve("",!0)],4)],4)],4)],4))}}),Z_=Ye(rD,[["__scopeId","data-v-f5bbdf36"]]),nD=["innerHTML"],iD=He({__name:"BaseTextElement",props:{elementInfo:{},target:{}},setup(t){const e=t,r=Te(()=>e.elementInfo.shadow),{shadowStyle:n}=jl(r);return(i,a)=>(re(),pe("div",{class:"base-element-text",style:Se({top:i.elementInfo.top+"px",left:i.elementInfo.left+"px",width:i.elementInfo.width+"px",height:i.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${i.elementInfo.rotate}deg)`})},[j("div",{class:"element-content",style:Se({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:ae(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"})},[De(qy,{width:i.elementInfo.width,height:i.elementInfo.height,outline:i.elementInfo.outline},null,8,["width","height","outline"]),j("div",{class:Je(["text ProseMirror-static",{thumbnail:i.target==="thumbnail"}]),style:Se({"--paragraphSpace":`${i.elementInfo.paragraphSpace===void 0?5:i.elementInfo.paragraphSpace}px`}),innerHTML:i.elementInfo.content},null,14,nD)],4)],4)],4))}}),Q_=Ye(iD,[["__scopeId","data-v-3eca1d55"]]),aD=["width","height"],oD={key:0},sD=["transform"],lD=["d","fill","stroke","stroke-width","stroke-dasharray"],uD=["innerHTML"],cD=He({__name:"BaseShapeElement",props:{elementInfo:{}},setup(t){const e=t,r=Te(()=>e.elementInfo.outline),{outlineWidth:n,outlineColor:i,strokeDashArray:a}=qo(r),o=Te(()=>e.elementInfo.shadow),{shadowStyle:s}=jl(o),l=Te(()=>e.elementInfo.flipH),u=Te(()=>e.elementInfo.flipV),{flipStyle:f}=Wy(l,u),c=Te(()=>{const h={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return e.elementInfo.text?e.elementInfo.text:h});return(h,v)=>(re(),pe("div",{class:"base-element-shape",style:Se({top:h.elementInfo.top+"px",left:h.elementInfo.left+"px",width:h.elementInfo.width+"px",height:h.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${h.elementInfo.rotate}deg)`})},[j("div",{class:"element-content",style:Se({opacity:h.elementInfo.opacity,filter:ae(s)?`drop-shadow(${ae(s)})`:"",transform:ae(f),color:c.value.defaultColor,fontFamily:c.value.defaultFontName})},[(re(),pe("svg",{overflow:"visible",width:h.elementInfo.width,height:h.elementInfo.height},[h.elementInfo.gradient?(re(),pe("defs",oD,[De(bw,{id:`base-gradient-${h.elementInfo.id}`,type:h.elementInfo.gradient.type,colors:h.elementInfo.gradient.colors,rotate:h.elementInfo.gradient.rotate},null,8,["id","type","colors","rotate"])])):Ve("",!0),j("g",{transform:`scale(${h.elementInfo.width/(h.elementInfo.viewBox[0]||h.elementInfo.viewBox)}, ${h.elementInfo.height/(h.elementInfo.viewBox[1]||h.elementInfo.viewBox)}) translate(0,0) matrix(1,0,0,1,0,0)`},[j("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",d:h.elementInfo.path,fill:h.elementInfo.gradient?`url(#base-gradient-${h.elementInfo.id})`:h.elementInfo.fill,stroke:ae(i),"stroke-width":ae(n),"stroke-dasharray":ae(a)},null,8,lD)],8,sD)],8,aD)),j("div",{class:Je(["shape-text",c.value.align])},[j("div",{class:"ProseMirror-static",innerHTML:c.value.content},null,8,uD)],2)],4)],4)],4))}}),J_=Ye(cD,[["__scopeId","data-v-b45bc689"]]),fD=["width","height"],hD=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],vD=He({__name:"BaseLineElement",props:{elementInfo:{}},setup(t){const e=t,r=Te(()=>e.elementInfo.shadow),{shadowStyle:n}=jl(r),i=Te(()=>{const l=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return l<24?24:l}),a=Te(()=>{const l=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return l<24?24:l}),o=Te(()=>{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=Te(()=>OS(e.elementInfo));return(l,u)=>(re(),pe("div",{class:"base-element-line",style:Se({top:l.elementInfo.top+"px",left:l.elementInfo.left+"px"})},[j("div",{class:"element-content",style:Se({filter:ae(n)?`drop-shadow(${ae(n)})`:""})},[(re(),pe("svg",{overflow:"visible",width:i.value,height:a.value},[j("defs",null,[l.elementInfo.points[0]?(re(),$e(Qv,{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"])):Ve("",!0),l.elementInfo.points[1]?(re(),$e(Qv,{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"])):Ve("",!0)]),j("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,hD)],8,fD))],4)],4))}}),eS=Ye(vD,[["__scopeId","data-v-f6565627"]]),dD=He({__name:"BaseChartElement",props:{elementInfo:{},target:{}},setup(t){return(e,r)=>(re(),pe("div",{class:Je(["base-element-chart",{"is-thumbnail":e.target==="thumbnail"}]),style:Se({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${e.elementInfo.rotate}deg)`})},[j("div",{class:"element-content",style:Se({backgroundColor:e.elementInfo.fill})},[De(qy,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),De(eE,{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))}}),tS=Ye(dD,[["__scopeId","data-v-5a1fd6e3"]]),pD=["width"],gD=["rowspan","colspan"],yD=["innerHTML"],mD=He({__name:"StaticTable",props:{data:{},width:{},cellMinHeight:{},colWidths:{},outline:{},theme:{},editable:{type:Boolean,default:!0}},setup(t){const e=t,r=ve([]),n=Te(()=>r.value.reduce((l,u)=>l+u));Rr([()=>e.colWidths,()=>e.width],()=>{r.value=e.colWidths.map(l=>l*e.width)},{immediate:!0});const i=Te(()=>e.data),{hideCells:a}=nE(i),o=Te(()=>e.theme),{subThemeColor:s}=iE(o);return(l,u)=>{var f,c,h,v,d;return re(),pe("div",{class:"static-table",style:Se({width:n.value+"px"})},[j("table",{class:Je({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":(h=o.value)==null?void 0:h.colHeader,"col-footer":(v=o.value)==null?void 0:v.colFooter}),style:Se(`--themeColor: ${(d=o.value)==null?void 0:d.color}; --subThemeColor1: ${ae(s)[0]}; --subThemeColor2: ${ae(s)[1]}`)},[j("colgroup",null,[(re(!0),pe($t,null,Lr(r.value,(p,g)=>(re(),pe("col",{span:"1",key:g,width:p},null,8,pD))),128))]),j("tbody",null,[(re(!0),pe($t,null,Lr(l.data,(p,g)=>(re(),pe("tr",{key:g,style:Se({height:l.cellMinHeight+"px"})},[(re(!0),pe($t,null,Lr(p,(y,m)=>Vt((re(),pe("td",{class:"cell",style:Se({borderStyle:l.outline.style,borderColor:l.outline.color,borderWidth:l.outline.width+"px",...ae(tE)(y.style)}),key:y.id,rowspan:y.rowspan,colspan:y.colspan},[j("div",{class:"cell-text",style:Se({minHeight:l.cellMinHeight-4+"px"}),innerHTML:ae(rE)(y.text)},null,12,yD)],12,gD)),[[LS,!ae(a).includes(`${g}_${m}`)]])),128))],4))),128))])],6)],4)}}}),_D=Ye(mD,[["__scopeId","data-v-909691d5"]]),SD={class:"element-content"},bD=He({__name:"BaseTableElement",props:{elementInfo:{}},setup(t){return(e,r)=>(re(),pe("div",{class:"base-element-table",style:Se({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${e.elementInfo.rotate}deg)`})},[j("div",SD,[De(_D,{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))}}),rS=Ye(bD,[["__scopeId","data-v-a0ffa95b"]]),wD={class:"element-content"},CD=["width","height","stroke","stroke-width"],TD=["transform"],xD=["d"],ID=He({__name:"BaseLatexElement",props:{elementInfo:{}},setup(t){return(e,r)=>(re(),pe("div",{class:"base-element-latex",style:Se({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${e.elementInfo.rotate}deg)`})},[j("div",wD,[(re(),pe("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"},[j("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)`},[j("path",{d:e.elementInfo.path},null,8,xD)],8,TD)],8,CD))])],4)],4))}}),nS=Ye(ID,[["__scopeId","data-v-4904f8d7"]]),AD=He({__name:"BaseVideoElement",props:{elementInfo:{}},setup(t){return(e,r)=>{const n=We("IconPlayOne");return re(),pe("div",{class:"base-element-video",style:Se({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${e.elementInfo.rotate}deg)`})},[j("div",{class:"element-content",style:Se({backgroundImage:e.elementInfo.poster?`url(${e.elementInfo.poster})`:""})},[De(n,{class:"icon"})],4)],4)],4)}}}),kD=Ye(AD,[["__scopeId","data-v-72eec24c"]]),MD={class:"element-content"},PD=He({__name:"BaseAudioElement",props:{elementInfo:{}},setup(t){const e=t,r=Te(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px");return(n,i)=>{const a=We("IconVolumeNotice");return re(),pe("div",{class:"base-element-audio",style:Se({top:n.elementInfo.top+"px",left:n.elementInfo.left+"px",width:n.elementInfo.width+"px",height:n.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${n.elementInfo.rotate}deg)`})},[j("div",MD,[De(a,{class:"audio-icon",style:Se({fontSize:r.value,color:n.elementInfo.color})},null,8,["style"])])],4)],4)}}}),RD=Ye(PD,[["__scopeId","data-v-35ae44f0"]]),LD=t=>(Vi("data-v-6e99a5ac"),t=t(),Hi(),t),ED=LD(()=>j("div",{class:"element-content"},null,-1)),DD=[ED],OD=He({__name:"BaseCloudCoachElement",props:{elementInfo:{}},setup(t){return(e,r)=>(re(),pe("div",{class:"base-element-cloudCoach",style:Se({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${e.elementInfo.rotate}deg)`})},DD,4)],4))}}),BD=Ye(OD,[["__scopeId","data-v-6e99a5ac"]]),ND=He({__name:"ThumbnailElement",props:{elementInfo:{},elementIndex:{}},setup(t){const e=t,r=Te(()=>{const n={[Nt.IMAGE]:Z_,[Nt.TEXT]:Q_,[Nt.SHAPE]:J_,[Nt.LINE]:eS,[Nt.CHART]:tS,[Nt.TABLE]:rS,[Nt.LATEX]:nS,[Nt.ELF]:null},i={[Ni.AUDIO]:RD,[Ni.VIDEO]:kD,[Ni.SING_PLAY]:BD};return n[e.elementInfo.type]||i[e.elementInfo.subtype]||null});return(n,i)=>(re(),pe("div",{class:Je(["base-element",`base-element-${n.elementInfo.id}`]),style:Se({zIndex:n.elementIndex})},[(re(),$e(Ey(r.value),{elementInfo:n.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6))}}),FD={key:1,class:"placeholder"},$D=He({__name:"index",props:{slide:{},size:{},visible:{type:Boolean,default:!0}},setup(t){const e=t,{viewportRatio:r,viewportSize:n}=lr(kt()),i=Te(()=>e.slide.background),{backgroundStyle:a}=Y_(i),o=Te(()=>e.size/n.value);return _h(Xo,o),(s,l)=>(re(),pe("div",{class:"thumbnail-slide",style:Se({width:s.size+"px",height:s.size*ae(r)+"px"})},[s.visible?(re(),pe("div",{key:0,class:"elements",style:Se({width:ae(n)+"px",height:ae(n)*ae(r)+"px",transform:`scale(${o.value})`})},[j("div",{class:"background",style:Se(ae(a))},null,4),(re(!0),pe($t,null,Lr(s.slide.elements,(u,f)=>(re(),$e(ND,{key:u.id,elementInfo:u,elementIndex:f+1},null,8,["elementInfo","elementIndex"]))),128))],4)):(re(),pe("div",FD,"加载中 ..."))],4))}}),iS=Ye($D,[["__scopeId","data-v-0345aefe"]]),aS=()=>{const{slides:t}=lr(kt()),e=ve(null),r=ve(50),n=()=>{t.value.length>r.value?e.value=setTimeout(()=>{r.value=r.value+20,n()},600):r.value=9999};return ir(n),hn(()=>{e.value&&clearTimeout(e.value)}),{slidesLoadLimit:r}};function Rv(t,e){return e===void 0&&(e=15),+parseFloat(Number(t).toPrecision(e))}function dn(t){var e=t.toString().split(/[eE]/),r=(e[0].split(".")[1]||"").length-+(e[1]||0);return r>0?r:0}function jo(t){if(t.toString().indexOf("e")===-1)return Number(t.toString().replace(".",""));var e=dn(t);return e>0?Rv(Number(t)*Math.pow(10,e)):Number(t)}function gh(t){sS&&(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 xu(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 ai=xu(function(t,e){var r=jo(t),n=jo(e),i=dn(t)+dn(e),a=r*n;return gh(a),a/Math.pow(10,i)}),zD=xu(function(t,e){var r=Math.pow(10,Math.max(dn(t),dn(e)));return(ai(t,r)+ai(e,r))/r}),UD=xu(function(t,e){var r=Math.pow(10,Math.max(dn(t),dn(e)));return(ai(t,r)-ai(e,r))/r}),oS=xu(function(t,e){var r=jo(t),n=jo(e);return gh(r),gh(n),ai(r/n,Rv(Math.pow(10,dn(e)-dn(t))))});function VD(t,e){var r=Math.pow(10,e),n=oS(Math.round(Math.abs(ai(t,r))),r);return t<0&&n!==0&&(n=ai(n,-1)),n}var sS=!0;function HD(t){t===void 0&&(t=!0),sS=t}var GD={strip:Rv,plus:zD,minus:UD,times:ai,divide:oS,round:VD,digitLength:dn,float2Fixed:jo,enableBoundaryChecking:HD};const WD={class:"bar"},jD=["data-tooltip"],XD=["data-tooltip"],qD=["data-tooltip"],KD=He({__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=k=>k.getBoundingClientRect().left,n=t,i=e,a=ve(),o=ve(0),s=ve(0),l=ve(0),u=ve("end"),f=k=>{let P=k/100*(n.max-n.min);if(n.step>=1)P=Math.fround(P);else{const C=n.step.toString(),I=C.match(/^[0.]*([1-9])/);if(I){const M=I[1],b=C.indexOf(M)-1;if(b>0){const T=Math.pow(10,b);P=Math.fround(P*T)/T}}}return GD.plus(P,n.min)},c=Te(()=>f(o.value)),h=Te(()=>f(s.value)),v=Te(()=>f(l.value));Rr(()=>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 d=k=>{if(!a.value)return 0;let C=(("clientX"in k?k.clientX:k.changedTouches[0].clientX)-r(a.value))/a.value.clientWidth;C=Math.max(C,0),C=Math.min(C,1);let I=C*100;const M=n.step/(n.max-n.min)*100,b=I%M;return b>0&&(b<=M/2?I=I-b:I=I-b+M),I},p=k=>{const P=d(k);u.value==="start"?s.value=P:l.value=P},g=k=>{y(k);const P=f(o.value),C=n.value,I=u.value==="start"?[P,C[1]]:[C[0],P];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)},y=k=>{o.value=d(k)},m=k=>{y(k);const P=f(o.value);i("update:value",P),document.removeEventListener("mousemove",y),document.removeEventListener("touchmove",y),document.removeEventListener("mouseup",m),document.removeEventListener("touchend",m)},w=k=>{if(!n.disabled)if(n.range){const P=d(k);Math.abs(P-s.value)<Math.abs(P-l.value)?u.value="start":u.value="end",document.addEventListener("mousemove",p),document.addEventListener("touchmove",p),document.addEventListener("mouseup",g),document.addEventListener("touchend",g)}else document.addEventListener("mousemove",y),document.addEventListener("touchmove",y),document.addEventListener("mouseup",m),document.addEventListener("touchend",m)};return(k,P)=>(re(),pe("div",{class:Je(["slider",{disabled:k.disabled}]),ref_key:"sliderRef",ref:a,onMousedown:P[0]||(P[0]=C=>w(C))},[j("div",WD,[k.range?(re(),pe($t,{key:1},[j("div",{class:"track",style:Se({width:`${l.value-s.value}%`,left:`${s.value}%`})},null,4),j("div",{class:"thumb",style:Se({left:`${s.value}%`}),"data-tooltip":h.value},null,12,XD),j("div",{class:"thumb",style:Se({left:`${l.value}%`}),"data-tooltip":v.value},null,12,qD)],64)):(re(),pe($t,{key:0},[j("div",{class:"track",style:Se({width:`${o.value}%`})},null,4),j("div",{class:"thumb",style:Se({left:`${o.value}%`}),"data-tooltip":c.value},null,12,jD)],64))])],34))}}),rf=Ye(KD,[["__scopeId","data-v-78364373"]]),IB=1e3,AB="click",Li="animate__",kB=[{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"}]}],MB=[{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"}]}],PB=[{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"}]}],YD=[{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"}],ZD={class:"title"},QD={class:"content"},JD=He({__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=ve(0),a=ve(0),o=ve(0),s=ve(0),l=ve(),u=Te(()=>{var h;return s.value?s.value:((h=l.value)==null?void 0:h.clientHeight)||0});ir(()=>{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=h=>{if(!r.moveable)return;let v=!0;const d=document.body.clientWidth,p=document.body.clientHeight,g=h.pageX,y=h.pageY,m=i.value,w=a.value;document.onmousemove=k=>{if(!v)return;const P=k.pageX-g,C=k.pageY-y;let I=m+P,M=w+C;I<0&&(I=0),M<0&&(M=0),I+o.value>d&&(I=d-o.value),M+u.value>p&&(M=p-u.value),i.value=I,a.value=M},document.onmouseup=()=>{v=!1,document.onmousemove=null,document.onmouseup=null}},c=h=>{if(!r.resizeable)return;let v=!0;const d=h.pageX,p=h.pageY,g=o.value,y=s.value;document.onmousemove=m=>{if(!v)return;const w=m.pageX-d,k=m.pageY-p;let P=g+w,C=y+k;P<r.minWidth&&(P=r.minWidth),C<r.minHeight&&(C=r.minHeight),P>r.maxWidth&&(P=r.maxWidth),C>r.maxHeight&&(C=r.maxHeight),o.value=P,s.value=C},document.onmouseup=()=>{v=!1,document.onmousemove=null,document.onmouseup=null}};return(h,v)=>{const d=We("IconClose");return re(),pe("div",{class:"moveable-panel",ref_key:"moveablePanelRef",ref:l,style:Se({width:o.value+"px",height:s.value?s.value+"px":"auto",left:i.value+"px",top:a.value+"px"})},[h.title?(re(),pe($t,{key:0},[j("div",{class:"header",onMousedown:v[1]||(v[1]=p=>f(p))},[j("div",ZD,Mt(h.title),1),j("div",{class:"close-btn",onClick:v[0]||(v[0]=p=>n("close"))},[De(d)])],32),j("div",QD,[fl(h.$slots,"default",{},void 0,!0)])],64)):(re(),pe("div",{key:1,class:"content",onMousedown:v[2]||(v[2]=p=>f(p))},[fl(h.$slots,"default",{},void 0,!0)],32)),h.resizeable?(re(),pe("div",{key:2,class:"resizer",onMousedown:v[3]||(v[3]=p=>c(p))},null,32)):Ve("",!0)],4)}}}),lS=Ye(JD,[["__scopeId","data-v-4a8c1601"]]),uS=()=>{const t=kt(),{slides:e,slideIndex:r,formatedAnimations:n}=lr(t),i=ve(0),a=ve(!1),o=ve(r.value),s=()=>{if(a.value)return;const{animations:x,autoNext:A}=n.value[i.value];i.value+=1,a.value=!0;let R=0;for(const N of x){const E=document.querySelector(`#screen-element-${N.elId} [class^=base-element-]`);if(!E){R+=1;continue}const U=`${Li}${N.effect}`;E.style.removeProperty("--animate-duration");for(const B of E.classList)B.indexOf(Li)!==-1&&E.classList.remove(B,`${Li}animated`);E.style.setProperty("--animate-duration",`${N.duration}ms`),E.classList.add(U,`${Li}animated`);const F=()=>{N.type!=="out"&&(E.style.removeProperty("--animate-duration"),E.classList.remove(U,`${Li}animated`)),R+=1,R===x.length&&(a.value=!1,A&&s())};E.addEventListener("animationend",F,{once:!0})}};ir(()=>{const x=n.value[0];x&&x.animations.length&&x.animations.every(R=>R.trigger==="auto"||R.trigger==="meantime")&&s()});const l=()=>{i.value-=1;const{animations:x}=n.value[i.value];for(const A of x){const R=document.querySelector(`#screen-element-${A.elId} [class^=base-element-]`);if(R){R.style.removeProperty("--animate-duration");for(const N of R.classList)N.indexOf(Li)!==-1&&R.classList.remove(N,`${Li}animated`)}}x.every(A=>A.type==="attention")&&d()},u=ve(0),f=()=>{u.value&&(clearInterval(u.value),u.value=0)};hn(f);const c=ve(!1),h=x=>{c.value=x},v=of.throttle(function(x){yr.success(x)},1e3,{leading:!0,trailing:!1}),d=()=>{n.value.length&&i.value>0?l():r.value>0?(t.updateSlideIndex(r.value-1),r.value<o.value?(i.value=0,o.value=r.value):i.value=n.value.length):c.value?T(e.value.length-1):v("已经是第一页了"),a.value=!1},p=()=>{n.value.length&&i.value<n.value.length?s():r.value<e.value.length-1?(t.updateSlideIndex(r.value+1),i.value=0,a.value=!1):(c.value?T(0):(v("已经是最后一页了"),f()),a.value=!1)},g=ve(2500),y=()=>{f(),yr.success("开始自动放映"),u.value=setInterval(p,g.value)},m=x=>{f(),g.value=x,y()},w=of.throttle(function(x){x.deltaY<0?d():x.deltaY>0&&p()},500,{leading:!0,trailing:!1}),k=ve(null),P=x=>{k.value={x:x.changedTouches[0].pageX,y:x.changedTouches[0].pageY}},C=x=>{if(!k.value)return;const A=Math.abs(k.value.x-x.changedTouches[0].pageX),R=x.changedTouches[0].pageY-k.value.y;Math.abs(R)>A&&Math.abs(R)>50&&(k.value=null,R>0?d():p())},I=x=>{const A=x.key.toUpperCase();A===nn.UP||A===nn.LEFT||A===nn.PAGEUP?d():(A===nn.DOWN||A===nn.RIGHT||A===nn.SPACE||A===nn.ENTER||A===nn.PAGEDOWN)&&p()};ir(()=>document.addEventListener("keydown",I)),hn(()=>document.removeEventListener("keydown",I));const M=()=>{t.updateSlideIndex(r.value-1),i.value=0},b=()=>{t.updateSlideIndex(r.value+1),i.value=0},T=x=>{t.updateSlideIndex(x),i.value=0};return{autoPlayTimer:u,autoPlayInterval:g,setAutoPlayInterval:m,autoPlay:y,closeAutoPlay:f,loopPlay:c,setLoopPlay:h,mousewheelListener:w,touchStartListener:P,touchEndListener:C,turnPrevSlide:M,turnNextSlide:b,turnSlideToIndex:T,turnSlideToId:x=>{const A=e.value.findIndex(R=>R.id===x);A!==-1&&(t.updateSlideIndex(A),i.value=0)},execPrev:d,execNext:p,animationIndex:i}},cS=t=>{const e=kt(),{viewportRatio:r}=lr(e),n=ve(0),i=ve(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 ir(()=>{a(),window.addEventListener("resize",a)}),hn(()=>{window.removeEventListener("resize",a)}),{slideWidth:n,slideHeight:i}},fS=()=>{const t=ve(!0),e=ve(!0),{exitScreening:r}=Gl(),n=()=>{t.value=cf(),!t.value&&e.value&&r(),e.value=!0};return ir(()=>{t.value=cf(),document.addEventListener("fullscreenchange",n),document.addEventListener("webkitfullscreenchange",n)}),hn(()=>{document.removeEventListener("fullscreenchange",n),document.removeEventListener("webkitfullscreenchange",n)}),{fullscreenState:t,manualExitFullscreen:()=>{t.value&&(e.value=!1,Gy())}}},eO={class:"element-content"},tO=He({__name:"ScreenVideoElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=lr(kt()),r=ba(Xo)||ve(1),n=ba(Wl)||ve(""),i=Te(()=>e.value.id===n.value);return(a,o)=>(re(),pe("div",{class:"base-element-video screen-element-video",style:Se({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${a.elementInfo.rotate}deg)`})},[j("div",eO,[i.value?(re(),$e(ME,{key:0,width:a.elementInfo.width,height:a.elementInfo.height,src:a.elementInfo.src,poster:a.elementInfo.poster,autoplay:a.elementInfo.autoplay,scale:ae(r)},null,8,["width","height","src","poster","autoplay","scale"])):Ve("",!0)])],4)],4))}}),rO=Ye(tO,[["__scopeId","data-v-bef75a85"]]),nO={class:"element-content"},iO=He({__name:"ScreenAudioElement",props:{elementInfo:{}},setup(t){const e=t,{viewportRatio:r,currentSlide:n,viewportSize:i}=lr(kt()),a=ba(Xo)||ve(1),o=ba(Wl)||ve(""),s=Te(()=>n.value.id===o.value),l=Te(()=>Math.min(e.elementInfo.width,e.elementInfo.height)+"px"),u=Te(()=>{const h=i.value,v=i.value*r.value,d=280/a.value,p=50/a.value,g=e.elementInfo.width,y=e.elementInfo.height,m=e.elementInfo.left,w=e.elementInfo.top;let k=0,P=y;return m+d>=h&&(k=g-d),w+y+p>=v&&(P=-p),{left:k+"px",top:P+"px"}}),f=ve(),c=()=>{f.value&&f.value.toggle()};return(h,v)=>{const d=We("IconVolumeNotice");return re(),pe("div",{class:"base-element-audio screen-element-audio",style:Se({top:h.elementInfo.top+"px",left:h.elementInfo.left+"px",width:h.elementInfo.width+"px",height:h.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${h.elementInfo.rotate}deg)`})},[j("div",nO,[De(d,{class:"audio-icon",style:Se({fontSize:l.value,color:h.elementInfo.color}),onClick:v[0]||(v[0]=p=>c())},null,8,["style"]),s.value?(re(),$e(WE,{key:0,class:"audio-player",ref_key:"audioPlayerRef",ref:f,style:Se({...u.value}),src:h.elementInfo.src,loop:h.elementInfo.loop,autoplay:h.elementInfo.autoplay,scale:ae(a)},null,8,["style","src","loop","autoplay","scale"])):Ve("",!0)])],4)],4)}}}),aO=Ye(iO,[["__scopeId","data-v-58280950"]]),oO={class:"element-content"},sO=He({__name:"ScreenCloudCoachElement",props:{elementInfo:{}},setup(t){const{currentSlide:e}=lr(kt()),r=ba(Xo)||ve(1),n=ba(Wl)||ve(""),i=Te(()=>e.value.id===n.value);return(a,o)=>(re(),pe("div",{class:"base-element-cloudCoach screen-element-cloudCoach",style:Se({top:a.elementInfo.top+"px",left:a.elementInfo.left+"px",width:a.elementInfo.width+"px",height:a.elementInfo.height+"px"})},[j("div",{class:"rotate-wrapper",style:Se({transform:`rotate(${a.elementInfo.rotate}deg)`})},[j("div",oO,[i.value?(re(),$e(ae(QE),{key:0,id:a.elementInfo.sid,width:a.elementInfo.width,height:a.elementInfo.height,scale:ae(r)},null,8,["id","width","height","scale"])):Ve("",!0)])],4)],4))}}),lO=Ye(sO,[["__scopeId","data-v-f31e8dd8"]]),uO=["id","title"],cO=He({__name:"ScreenElement",props:{elementInfo:{},elementIndex:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,r=Te(()=>{const s={[Nt.IMAGE]:Z_,[Nt.TEXT]:Q_,[Nt.SHAPE]:J_,[Nt.LINE]:eS,[Nt.CHART]:tS,[Nt.TABLE]:rS,[Nt.LATEX]:nS,[Nt.ELF]:null},l={[Ni.AUDIO]:aO,[Ni.VIDEO]:rO,[Ni.SING_PLAY]:lO};return s[e.elementInfo.type]||l[e.elementInfo.subtype]||null}),{formatedAnimations:n,theme:i}=lr(kt()),a=Te(()=>{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 re(),pe("div",{class:Je(["screen-element",{link:s.elementInfo.link}]),id:`screen-element-${s.elementInfo.id}`,style:Se({zIndex:s.elementIndex,color:ae(i).fontColor,fontFamily:ae(i).fontName,fontSize:ae(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))},[(re(),$e(Ey(r.value),{elementInfo:s.elementInfo},null,8,["elementInfo"]))],14,uO)}}}),fO=Ye(cO,[["__scopeId","data-v-22fea0a4"]]),hO=He({__name:"ScreenSlide",props:{slide:{},scale:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{viewportRatio:r,viewportSize:n}=lr(kt()),i=Te(()=>e.slide.background),{backgroundStyle:a}=Y_(i),o=Te(()=>e.slide.id);return _h(Wl,o),(s,l)=>(re(),pe("div",{class:"screen-slide",style:Se({width:ae(n)+"px",height:ae(n)*ae(r)+"px",transform:`scale(${s.scale})`})},[j("div",{class:"background",style:Se({...ae(a)})},null,4),(re(!0),pe($t,null,Lr(s.slide.elements,(u,f)=>(re(),$e(fO,{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))}}),vO=Ye(hO,[["__scopeId","data-v-17d2a617"]]),dO={class:"screen-slide-list"},pO=He({__name:"ScreenSlideList",props:{slideWidth:{},slideHeight:{},animationIndex:{},turnSlideToId:{type:Function},manualExitFullscreen:{type:Function}},setup(t){const e=t,{slides:r,slideIndex:n,viewportSize:i}=lr(kt()),a=Te(()=>r.value.map(s=>{let l=s.turningMode;if(l||(l="slideY"),l==="random"){const u=YD.filter(f=>!["random","no"].includes(f.value)).map(f=>f.value);l=u[Math.floor(Math.random()*u.length)]}return{...s,turningMode:l}})),o=Te(()=>e.slideWidth/i.value);return _h(Xo,o),(s,l)=>(re(),pe("div",dO,[(re(!0),pe($t,null,Lr(a.value,(u,f)=>{var c;return re(),pe("div",{class:Je(["slide-item",`turning-mode-${u.turningMode}`,{current:f===ae(n),before:f<ae(n),after:f>ae(n),hide:(f===ae(n)-1||f===ae(n)+1)&&u.turningMode!==a.value[ae(n)].turningMode}]),key:u.id},[Math.abs(ae(n)-f)<2||(c=u.animations)!=null&&c.length?(re(),pe("div",{key:0,class:"slide-content",style:Se({width:s.slideWidth+"px",height:s.slideHeight+"px"})},[De(vO,{slide:u,scale:o.value,animationIndex:s.animationIndex,turnSlideToId:s.turnSlideToId,manualExitFullscreen:s.manualExitFullscreen},null,8,["slide","scale","animationIndex","turnSlideToId","manualExitFullscreen"])],4)):Ve("",!0)],2)}),128))]))}}),hS=Ye(pO,[["__scopeId","data-v-9f9072dd"]]),gO={class:"slide-thumbnails"},yO={class:"return-button"},mO={class:"slide-thumbnails-content"},_O=["onClick"],SO=He({__name:"SlideThumbnails",props:{turnSlideToIndex:{type:Function}},emits:["close"],setup(t,{emit:e}){const r=t,n=e,{slides:i,slideIndex:a}=lr(kt()),{slidesLoadLimit:o}=aS(),s=l=>{r.turnSlideToIndex(l),n("close")};return(l,u)=>{const f=We("IconArrowCircleLeft");return re(),pe("div",gO,[j("div",yO,[De(f,{class:"icon",onClick:u[0]||(u[0]=c=>n("close"))})]),j("div",mO,[(re(!0),pe($t,null,Lr(ae(i),(c,h)=>(re(),pe("div",{class:Je(["thumbnail",{active:h===ae(a)}]),key:c.id,onClick:v=>s(h)},[De(iS,{slide:c,size:150,visible:h<ae(o)},null,8,["slide","visible"])],10,_O))),128))])])}}}),bO=Ye(SO,[["__scopeId","data-v-f836aa07"]]),wO={key:0,class:"blackboard"},CO=He({__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=ve(),s=ve();let l={x:0,y:0},u=!1,f=0,c=-1;const h=ve({x:0,y:0}),v=ve(!1),d=ve(0),p=ve(0),g=Te(()=>s.value?d.value/s.value.width:1),y=Te(()=>s.value?p.value/s.value.height:1),m=()=>{o.value&&(d.value=o.value.clientWidth,p.value=o.value.clientHeight)},w=new ResizeObserver(m);ir(()=>{o.value&&w.observe(o.value)}),hn(()=>{o.value&&w.unobserve(o.value)}),ir(()=>{!s.value||!o.value||(a=s.value.getContext("2d"),a&&(s.value.width=o.value.clientWidth,s.value.height=o.value.clientHeight,a.lineCap="round",a.lineJoin="round"))});const P=()=>{a&&(n.model==="mark"?(a.globalCompositeOperation="xor",a.globalAlpha=.5):n.model==="pen"&&(a.globalCompositeOperation="source-over",a.globalAlpha=1))};Rr(()=>n.model,P);const C=(F,B,X)=>{if(!a)return;const Z=l.x,q=l.y;a.lineWidth=X,a.strokeStyle=n.color,a.beginPath(),a.moveTo(Z,q),a.lineTo(F,B),a.stroke(),a.closePath()},I=(F,B)=>{if(!a||!s.value)return;const X=l.x,Z=l.y,q=n.rubberSize/2,se=q*Math.sin(Math.atan((B-Z)/(F-X))),ce=q*Math.cos(Math.atan((B-Z)/(F-X))),Q=[X+se,Z-ce],J=[X-se,Z+ce],ee=[F+se,B-ce],ue=[F-se,B+ce];a.save(),a.beginPath(),a.arc(F,B,q,0,Math.PI*2),a.clip(),a.clearRect(0,0,s.value.width,s.value.height),a.restore(),a.save(),a.beginPath(),a.moveTo(...Q),a.lineTo(...ee),a.lineTo(...ue),a.lineTo(...J),a.closePath(),a.clip(),a.clearRect(0,0,s.value.width,s.value.height),a.restore()},M=(F,B)=>{const X=l.x,Z=l.y;return Math.sqrt((F-X)*(F-X)+(B-Z)*(B-Z))},b=(F,B)=>{const q=n.penSize,se=3,ce=F/B;let Q;return ce<=.1?Q=q:ce>=10?Q=se:Q=q-ce/10*q,c===-1?Q:Q*1/3+c*2/3},T=(F,B)=>{const X=new Date().getTime();if(n.model==="pen"){const Z=M(F,B),q=X-f,se=b(Z,q);C(F,B,se),c=se}else n.model==="mark"?C(F,B,n.markSize):I(F,B);l={x:F,y:B},f=new Date().getTime()},_=F=>{if(!s.value)return[0,0];const B=F instanceof MouseEvent?F:F.changedTouches[0],X=s.value.getBoundingClientRect(),Z=B.pageX-X.x,q=B.pageY-X.y;return[Z,q]},x=F=>{const[B,X]=_(F),Z=B/g.value,q=X/y.value;u=!0,l={x:Z,y:q},f=new Date().getTime(),F instanceof MouseEvent||(h.value={x:B,y:X},v.value=!0)},A=F=>{const[B,X]=_(F),Z=B/g.value,q=X/y.value;h.value={x:B,y:X},u&&T(Z,q)},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 F;return(F=s.value)==null?void 0:F.toDataURL()},setImageDataURL:F=>{if(!(!a||!s.value)&&(a.clearRect(0,0,s.value.width,s.value.height),F)){a.globalCompositeOperation="source-over",a.globalAlpha=1;const B=new Image;B.src=F,B.onload=()=>{a.drawImage(B,0,0),P()}}}}),(F,B)=>{const X=We("IconWrite"),Z=We("IconHighLight");return re(),pe("div",{class:"writing-board",ref_key:"writingBoardRef",ref:o},[F.blackboard?(re(),pe("div",wO)):Ve("",!0),j("canvas",{class:"canvas",ref_key:"canvasRef",ref:s,style:Se({width:d.value+"px",height:p.value+"px"}),onMousedown:B[0]||(B[0]=q=>x(q)),onMousemove:B[1]||(B[1]=q=>A(q)),onMouseup:B[2]||(B[2]=q=>R()),onTouchstart:B[3]||(B[3]=q=>x(q)),onTouchmove:B[4]||(B[4]=q=>A(q)),onTouchend:B[5]||(B[5]=q=>{R(),v.value=!1}),onMouseleave:B[6]||(B[6]=q=>{R(),v.value=!1}),onMouseenter:B[7]||(B[7]=q=>v.value=!0)},null,36),v.value?(re(),pe($t,{key:1},[F.model==="eraser"?(re(),pe("div",{key:0,class:"eraser",style:Se({left:h.value.x-F.rubberSize/2+"px",top:h.value.y-F.rubberSize/2+"px",width:F.rubberSize+"px",height:F.rubberSize+"px"})},null,4)):Ve("",!0),F.model==="pen"?(re(),pe("div",{key:1,class:"pen",style:Se({left:h.value.x-F.penSize/2+"px",top:h.value.y-F.penSize*6+F.penSize/2+"px",color:F.color})},[F.model==="pen"?(re(),$e(X,{key:0,class:"icon",size:F.penSize*6},null,8,["size"])):Ve("",!0)],4)):Ve("",!0),F.model==="mark"?(re(),pe("div",{key:2,class:"pen",style:Se({left:h.value.x-F.markSize/2+"px",top:h.value.y+"px",color:F.color})},[F.model==="mark"?(re(),$e(Z,{key:0,class:"icon",size:F.markSize*1.5},null,8,["size"])):Ve("",!0)],4)):Ve("",!0)],64)):Ve("",!0)],512)}}}),TO=Ye(CO,[["__scopeId","data-v-2e998f6c"]]),Lv=t=>(Vi("data-v-05ee2be6"),t=t(),Hi(),t),xO={class:"writing-board-tool"},IO={class:"tool-content"},AO={class:"size"},kO=Lv(()=>j("div",{class:"label"},"墨迹粗细:",-1)),MO={class:"size"},PO=Lv(()=>j("div",{class:"label"},"墨迹粗细:",-1)),RO={class:"size"},LO=Lv(()=>j("div",{class:"label"},"橡皮大小:",-1)),EO={class:"colors"},DO=["onClick"],OO=He({__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}=lr(kt()),a=ve(),o=ve("#e2534d"),s=ve("pen"),l=ve(!1),u=ve(""),f=ve(6),c=ve(24),h=ve(80),v=m=>{s.value===m?u.value=u.value===m?"":m:(u.value&&(u.value=""),s.value=m)},d=()=>{a.value.clearCanvas()},p=m=>{s.value==="eraser"&&(s.value="pen"),o.value=m},g=()=>{n("close")};Rr(i,()=>{os.writingBoardImgs.where("id").equals(i.value.id).toArray().then(m=>{const w=m[0];a.value.setImageDataURL((w==null?void 0:w.dataURL)||"")})},{immediate:!0});const y=()=>{const m=a.value.getImageDataURL();m&&os.writingBoardImgs.where("id").equals(i.value.id).toArray().then(w=>{const k=w[0];k?os.writingBoardImgs.update(k,{dataURL:m}):os.writingBoardImgs.add({id:i.value.id,dataURL:m})})};return(m,w)=>{const k=We("IconWrite"),P=We("IconHighLight"),C=We("IconErase"),I=We("IconClear"),M=We("IconFill"),b=We("IconClose"),T=hl("tooltip");return re(),pe("div",xO,[j("div",{class:"writing-board-wrap",style:Se({width:m.slideWidth+"px",height:m.slideHeight+"px"})},[De(TO,{ref_key:"writingBoardRef",ref:a,color:o.value,blackboard:l.value,model:s.value,penSize:f.value,markSize:c.value,rubberSize:h.value,onEnd:w[0]||(w[0]=_=>y())},null,8,["color","blackboard","model","penSize","markSize","rubberSize"])],4),De(lS,{class:"tools-panel",width:520,height:50,left:m.left,top:m.top,moveable:u.value===""},{default:Sn(()=>[j("div",{class:"tools",onMousedown:w[10]||(w[10]=zn(()=>{},["stop"]))},[j("div",IO,[De(Nu,{trigger:"manual",value:u.value==="pen"},{content:Sn(()=>[j("div",AO,[kO,De(rf,{class:"size-slider",min:4,max:10,step:2,value:f.value,"onUpdate:value":w[1]||(w[1]=_=>f.value=_)},null,8,["value"])])]),default:Sn(()=>[Vt((re(),pe("div",{class:Je(["btn",{active:s.value==="pen"}]),onClick:w[2]||(w[2]=_=>v("pen"))},[De(k,{class:"icon"})],2)),[[T,"画笔"]])]),_:1},8,["value"]),De(Nu,{trigger:"manual",value:u.value==="mark"},{content:Sn(()=>[j("div",MO,[PO,De(rf,{class:"size-slider",min:16,max:40,step:4,value:c.value,"onUpdate:value":w[3]||(w[3]=_=>c.value=_)},null,8,["value"])])]),default:Sn(()=>[Vt((re(),pe("div",{class:Je(["btn",{active:s.value==="mark"}]),onClick:w[4]||(w[4]=_=>v("mark"))},[De(P,{class:"icon"})],2)),[[T,"荧光笔"]])]),_:1},8,["value"]),De(Nu,{trigger:"manual",value:u.value==="eraser"},{content:Sn(()=>[j("div",RO,[LO,De(rf,{class:"size-slider",min:20,max:200,step:20,value:h.value,"onUpdate:value":w[5]||(w[5]=_=>h.value=_)},null,8,["value"])])]),default:Sn(()=>[Vt((re(),pe("div",{class:Je(["btn",{active:s.value==="eraser"}]),onClick:w[6]||(w[6]=_=>v("eraser"))},[De(C,{class:"icon"})],2)),[[T,"橡皮擦"]])]),_:1},8,["value"]),Vt((re(),pe("div",{class:"btn",onClick:w[7]||(w[7]=_=>d())},[De(I,{class:"icon"})])),[[T,"清除墨迹"]]),Vt((re(),pe("div",{class:Je(["btn",{active:l.value}]),onClick:w[8]||(w[8]=_=>l.value=!l.value)},[De(M,{class:"icon"})],2)),[[T,"黑板"]]),j("div",EO,[(re(),pe($t,null,Lr(r,_=>j("div",{class:Je(["color",{active:_===o.value}]),key:_,style:Se({backgroundColor:_}),onClick:x=>p(_)},null,14,DO)),64))])]),Vt((re(),pe("div",{class:"btn",onClick:w[9]||(w[9]=_=>g())},[De(b,{class:"icon"})])),[[T,"关闭画笔"]])],32)]),_:1},8,["left","top","moveable"])])}}}),vS=Ye(OO,[["__scopeId","data-v-05ee2be6"]]),BO=t=>(Vi("data-v-52a17a32"),t=t(),Hi(),t),NO={class:"header"},FO={class:"content"},$O={class:"timer"},zO=["value","disabled"],UO=BO(()=>j("div",{class:"colon"},":",-1)),VO={class:"timer"},HO=["value","disabled"],GO=He({__name:"CountdownTimer",props:{left:{default:5},top:{default:5}},emits:["close"],setup(t,{emit:e}){const r=e,n=ve(null),i=ve(!1),a=ve(!1),o=ve(0),s=Te(()=>Math.floor(o.value/60)),l=Te(()=>o.value%60),u=Te(()=>!a.value||i.value),f=()=>{n.value&&clearInterval(n.value)};hn(f);const c=()=>{f(),i.value=!1},h=()=>{f(),i.value=!1,a.value?o.value=600:o.value=0},v=()=>{f(),a.value?n.value=setInterval(()=>{o.value=o.value-1,o.value<=0&&h()},1e3):n.value=setInterval(()=>{o.value=o.value+1,o.value>36e3&&c()},1e3),i.value=!0},d=()=>{i.value?c():v()},p=()=>{a.value=!a.value,h()},g=(y,m)=>{const w=y.target;let k=w.value;/^(\d)+$/.test(k)?(m==="second"&&+k>=60&&(k="59"),o.value=m==="minute"?+k*60+l.value:+k+s.value*60):w.value=ss(m==="minute"?s.value:l.value,2)};return(y,m)=>{const w=We("IconClose");return re(),$e(lS,{class:"countdown-timer",width:180,height:110,left:y.left,top:y.top},{default:Sn(()=>[j("div",NO,[j("span",{class:"text-btn",onClick:m[0]||(m[0]=k=>d())},Mt(i.value?"暂停":"开始"),1),j("span",{class:"text-btn",onClick:m[1]||(m[1]=k=>h())},"重置"),j("span",{class:Je(["text-btn",{active:a.value}]),onClick:m[2]||(m[2]=k=>p())},"倒计时",2)]),j("div",FO,[j("div",$O,[j("input",{type:"text",value:ae(ss)(s.value,2),maxlength:3,disabled:u.value,onMousedown:m[3]||(m[3]=zn(()=>{},["stop"])),onBlur:m[4]||(m[4]=k=>g(k,"minute")),onKeydown:[m[5]||(m[5]=zn(()=>{},["stop"])),m[6]||(m[6]=Uv(zn(k=>g(k,"minute"),["stop"]),["enter"]))]},null,40,zO)]),UO,j("div",VO,[j("input",{type:"text",value:ae(ss)(l.value,2),maxlength:3,disabled:u.value,onMousedown:m[7]||(m[7]=zn(()=>{},["stop"])),onBlur:m[8]||(m[8]=k=>g(k,"second")),onKeydown:[m[9]||(m[9]=zn(()=>{},["stop"])),m[10]||(m[10]=Uv(zn(k=>g(k,"second"),["stop"]),["enter"]))]},null,40,HO)])]),j("div",{class:"close-btn",onClick:m[11]||(m[11]=k=>r("close"))},[De(w,{class:"icon"})])]),_:1},8,["left","top"])}}}),dS=Ye(GO,[["__scopeId","data-v-52a17a32"]]),WO={class:"tools-left"},jO={class:"content"},XO=He({__name:"BaseView",props:{changeViewMode:{type:Function}},setup(t,{expose:e}){const r=t,{slides:n,slideIndex:i}=lr(kt()),a=mh(),{autoPlayTimer:o,autoPlay:s,closeAutoPlay:l,autoPlayInterval:u,setAutoPlayInterval:f,loopPlay:c,setLoopPlay:h,mousewheelListener:v,touchStartListener:d,touchEndListener:p,turnPrevSlide:g,turnNextSlide:y,turnSlideToIndex:m,turnSlideToId:w,execPrev:k,execNext:P,animationIndex:C}=uS(),{slideWidth:I,slideHeight:M}=cS(),{exitScreening:b}=Gl(),{fullscreenState:T,manualExitFullscreen:_}=fS(),x=ve(!1),A=ve(!1),R=ve(!1),N=ve(!1),E=ve(!1),U=()=>{const F=[{text:"上一页",subText:"↑ ←",disable:i.value<=0,handler:()=>g()},{text:"下一页",subText:"↓ →",disable:i.value>=n.value.length-1,handler:()=>y()},{text:"第一页",disable:i.value===0,handler:()=>m(0)},{text:"最后一页",disable:i.value===n.value.length-1,handler:()=>m(n.value.length-1)},{divider:!0},{text:o.value?"取消自动放映":"自动放映",handler:o.value?l:s,children:[{text:"2.5秒",subText:u.value===2500?"√":"",handler:()=>f(2500)},{text:"5秒",subText:u.value===5e3?"√":"",handler:()=>f(5e3)},{text:"7.5秒",subText:u.value===7500?"√":"",handler:()=>f(7500)},{text:"10秒",subText:u.value===1e4?"√":"",handler:()=>f(1e4)}]},{text:"循环放映",subText:c.value?"√":"",handler:()=>h(!c.value)},{divider:!0},{text:"显示工具栏",handler:()=>x.value=!0},{text:"查看所有幻灯片",handler:()=>N.value=!0},{text:"画笔工具",handler:()=>A.value=!0},{text:"演讲者视图",handler:()=>r.changeViewMode("presenter")},{divider:!0}];return a.mode==="pptEditor"&&F.push({text:"结束放映",subText:"ESC",handler:b}),F};return e({execPrev:k,execNext:P}),(F,B)=>{const X=We("IconLeftTwo"),Z=We("IconRightTwo"),q=We("IconWrite"),se=We("IconMagic"),ce=We("IconStopwatchStart"),Q=We("IconListView"),J=We("IconOffScreenOne"),ee=We("IconFullScreenOne"),ue=We("IconPower"),fe=hl("contextmenu"),he=hl("tooltip");return re(),pe("div",{class:Je(["base-view",{"laser-pen":E.value}])},[Vt(De(hS,{slideWidth:ae(I),slideHeight:ae(M),animationIndex:ae(C),turnSlideToId:ae(w),manualExitFullscreen:ae(_),onWheel:B[0]||(B[0]=te=>ae(v)(te)),onTouchstart:B[1]||(B[1]=te=>ae(d)(te)),onTouchend:B[2]||(B[2]=te=>ae(p)(te))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[fe,U]]),N.value?(re(),$e(bO,{key:0,turnSlideToIndex:ae(m),onClose:B[3]||(B[3]=te=>N.value=!1)},null,8,["turnSlideToIndex"])):Ve("",!0),A.value?(re(),$e(vS,{key:1,slideWidth:ae(I),slideHeight:ae(M),onClose:B[4]||(B[4]=te=>A.value=!1)},null,8,["slideWidth","slideHeight"])):Ve("",!0),R.value?(re(),$e(dS,{key:2,onClose:B[5]||(B[5]=te=>R.value=!1)})):Ve("",!0),j("div",WO,[De(X,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:B[6]||(B[6]=te=>ae(k)())}),De(Z,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:B[7]||(B[7]=te=>ae(P)())})]),j("div",{class:Je(["tools-right",{visible:x.value}]),onMouseleave:B[16]||(B[16]=te=>x.value=!1),onMouseenter:B[17]||(B[17]=te=>x.value=!0)},[j("div",jO,[j("div",{class:"tool-btn page-number",onClick:B[8]||(B[8]=te=>N.value=!0)},"幻灯片 "+Mt(ae(i)+1)+" / "+Mt(ae(n).length),1),Vt(De(q,{class:"tool-btn",onClick:B[9]||(B[9]=te=>A.value=!0)},null,512),[[he,"画笔工具"]]),Vt(De(se,{class:Je(["tool-btn",{active:E.value}]),onClick:B[10]||(B[10]=te=>E.value=!E.value)},null,8,["class"]),[[he,"激光笔"]]),Vt(De(ce,{class:Je(["tool-btn",{active:R.value}]),onClick:B[11]||(B[11]=te=>R.value=!R.value)},null,8,["class"]),[[he,"计时器"]]),Vt(De(Q,{class:"tool-btn",onClick:B[12]||(B[12]=te=>F.changeViewMode("presenter"))},null,512),[[he,"演讲者视图"]]),ae(Dy).hideFullScreen?Ve("",!0):(re(),pe($t,{key:0},[ae(T)?Vt((re(),$e(J,{key:0,class:"tool-btn",onClick:B[13]||(B[13]=te=>ae(_)())},null,512)),[[he,"退出全屏"]]):Vt((re(),$e(ee,{key:1,class:"tool-btn",onClick:B[14]||(B[14]=te=>ae(wh)())},null,512)),[[he,"进入全屏"]])],64)),ae(a).mode==="pptEditor"?Vt((re(),$e(ue,{key:1,class:"tool-btn",onClick:B[15]||(B[15]=te=>ae(b)())},null,512)),[[he,"结束放映"]]):Ve("",!0)])],34)],2)}}}),qO=Ye(XO,[["__scopeId","data-v-a11ff73a"]]),Da=t=>(Vi("data-v-ab2881f9"),t=t(),Hi(),t),KO={class:"presenter-view"},YO={class:"toolbar"},ZO=Da(()=>j("span",null,"普通视图",-1)),QO=Da(()=>j("span",null,"画笔",-1)),JO=Da(()=>j("span",null,"激光笔",-1)),eB=Da(()=>j("span",null,"计时器",-1)),tB=Da(()=>j("span",null,"结束放映",-1)),rB={class:"content"},nB=["onClick"],iB={class:"remark"},aB={class:"header"},oB=Da(()=>j("span",null,"演讲者备注",-1)),sB=["innerHTML"],lB={class:"remark-scale"},uB=He({__name:"PresenterView",props:{changeViewMode:{type:Function}},setup(t,{expose:e}){const r=t,{slides:n,slideIndex:i,viewportRatio:a,currentSlide:o}=lr(kt()),s=ve(),l=ve(),u=ve(!1),f=ve(!1),c=ve(!1),h=mh(),{mousewheelListener:v,touchStartListener:d,touchEndListener:p,turnPrevSlide:g,turnNextSlide:y,turnSlideToIndex:m,turnSlideToId:w,animationIndex:k,execPrev:P,execNext:C}=uS(),{slideWidth:I,slideHeight:M}=cS(s),{exitScreening:b}=Gl(),{slidesLoadLimit:T}=aS(),{fullscreenState:_,manualExitFullscreen:x}=fS(),A=ve(16),R=Te(()=>jS(o.value.remark||"无备注")),N=F=>{l.value&&l.value.scrollBy(F.deltaY,0)},E=F=>{F<12||F>40||(A.value=F)};Rr(i,()=>{ES(()=>{if(!l.value)return;const F=l.value.querySelector(".thumbnail.active");if(!F)return;const B=l.value.offsetWidth,X=F.offsetLeft;l.value.scrollTo({left:X-B/2,behavior:"smooth"})})});const U=()=>{const F=[{text:"上一页",subText:"↑ ←",disable:i.value<=0,handler:()=>g()},{text:"下一页",subText:"↓ →",disable:i.value>=n.value.length-1,handler:()=>y()},{text:"第一页",disable:i.value===0,handler:()=>m(0)},{text:"最后一页",disable:i.value===n.value.length-1,handler:()=>m(n.value.length-1)},{divider:!0},{text:"画笔工具",handler:()=>u.value=!0},{text:"普通视图",handler:()=>r.changeViewMode("base")},{divider:!0}];return h.mode==="pptEditor"&&F.push({text:"结束放映",subText:"ESC",handler:b}),F};return e({execPrev:P,execNext:C}),(F,B)=>{const X=We("IconListView"),Z=We("IconWrite"),q=We("IconMagic"),se=We("IconStopwatchStart"),ce=We("IconOffScreenOne"),Q=We("IconPower"),J=We("IconMinus"),ee=We("IconPlus"),ue=hl("contextmenu");return re(),pe("div",KO,[j("div",YO,[j("div",{class:"tool-btn",onClick:B[0]||(B[0]=fe=>F.changeViewMode("base"))},[De(X,{class:"tool-icon"}),ZO]),j("div",{class:Je(["tool-btn",{active:u.value}]),onClick:B[1]||(B[1]=fe=>u.value=!u.value)},[De(Z,{class:"tool-icon"}),QO],2),j("div",{class:Je(["tool-btn",{active:c.value}]),onClick:B[2]||(B[2]=fe=>c.value=!c.value)},[De(q,{class:"tool-icon"}),JO],2),j("div",{class:Je(["tool-btn",{active:f.value}]),onClick:B[3]||(B[3]=fe=>f.value=!f.value)},[De(se,{class:"tool-icon"}),eB],2),ae(Dy).hideFullScreen?Ve("",!0):(re(),pe("div",{key:0,class:"tool-btn",onClick:B[4]||(B[4]=()=>ae(_)?ae(x)():ae(wh)())},[ae(_)?(re(),$e(ce,{key:0,class:"tool-icon"})):(re(),$e(ce,{key:1,class:"tool-icon"})),j("span",null,Mt(ae(_)?"退出全屏":"全屏"),1)])),De(eD,{class:"divider"}),ae(h).mode==="pptEditor"?(re(),pe("div",{key:1,class:"tool-btn",onClick:B[5]||(B[5]=fe=>ae(b)())},[De(Q,{class:"tool-icon"}),tB])):Ve("",!0)]),j("div",rB,[j("div",{class:Je(["slide-list-wrap",{"laser-pen":c.value}]),ref_key:"slideListWrapRef",ref:s},[Vt(De(hS,{slideWidth:ae(I),slideHeight:ae(M),animationIndex:ae(k),turnSlideToId:ae(w),manualExitFullscreen:ae(x),onWheel:B[6]||(B[6]=fe=>ae(v)(fe)),onTouchstart:B[7]||(B[7]=fe=>ae(d)(fe)),onTouchend:B[8]||(B[8]=fe=>ae(p)(fe))},null,8,["slideWidth","slideHeight","animationIndex","turnSlideToId","manualExitFullscreen"]),[[ue,U]]),u.value?(re(),$e(vS,{key:0,slideWidth:ae(I),slideHeight:ae(M),left:-365,top:-155,onClose:B[9]||(B[9]=fe=>u.value=!1)},null,8,["slideWidth","slideHeight"])):Ve("",!0),f.value?(re(),$e(dS,{key:1,left:75,onClose:B[10]||(B[10]=fe=>f.value=!1)})):Ve("",!0)],2),j("div",{class:"thumbnails",ref_key:"thumbnailsRef",ref:l,onWheel:B[11]||(B[11]=zn(fe=>N(fe),["prevent"]))},[(re(!0),pe($t,null,Lr(ae(n),(fe,he)=>(re(),pe("div",{class:Je(["thumbnail",{active:he===ae(i)}]),key:fe.id,onClick:te=>ae(m)(he)},[De(iS,{slide:fe,size:120/ae(a),visible:he<ae(T)},null,8,["slide","size","visible"])],10,nB))),128))],544)]),j("div",iB,[j("div",aB,[oB,j("span",null,"P "+Mt(ae(i)+1)+" / "+Mt(ae(n).length),1)]),j("div",{class:"remark-content ProseMirror-static",style:Se({fontSize:A.value+"px"}),innerHTML:R.value},null,12,sB),j("div",lB,[j("div",{class:Je(["scale-btn",{disable:A.value===12}]),onClick:B[12]||(B[12]=fe=>E(A.value-2))},[De(J)],2),j("div",{class:Je(["scale-btn",{disable:A.value===40}]),onClick:B[13]||(B[13]=fe=>E(A.value+2))},[De(ee)],2)])])])}}}),cB=Ye(uB,[["__scopeId","data-v-ab2881f9"]]),fB=t=>{const e=kt();function r(){window.parent.postMessage({type:"initPPT",content:{slidesLen:e.slides.length}},"*")}function n(i){const{type:a,content:o}=i.data||{};a==="changePageSlide"&&t(o)}r(),Rr(()=>e.slideIndex,()=>{window.parent.postMessage({type:"changeSlideIndex",content:{slideIndex:e.slideIndex}},"*")}),ir(()=>{window.addEventListener("message",n)}),hn(()=>{window.removeEventListener("message",n)})},hB={class:"pptist-screen"},vB=He({__name:"index",setup(t){const e=ve("base"),r=o=>{e.value=o},{exitScreening:n}=Gl(),i=ve();fB(o=>{o==="prev"?i.value.execPrev():o==="next"&&i.value.execNext()});const a=o=>{o.key.toUpperCase()===nn.ESC&&n()};return ir(()=>document.addEventListener("keydown",a)),hn(()=>document.removeEventListener("keydown",a)),(o,s)=>(re(),pe("div",hB,[e.value==="base"?(re(),$e(qO,{key:0,ref_key:"screenViewDom",ref:i,changeViewMode:r},null,512)):e.value==="presenter"?(re(),$e(cB,{key:1,ref_key:"screenViewDom",ref:i,changeViewMode:r},null,512)):Ve("",!0)]))}}),RB=Ye(vB,[["__scopeId","data-v-0fbd03c8"]]);export{PB as $,WE as A,QE as B,eE as C,Nt as D,qy as E,Ni as F,Y_ as G,pB as H,eD as I,Xo as J,nn as K,CB as L,Hv as M,aS as N,ss as O,Nu as P,bB as Q,rf as R,XS as S,iS as T,Kb as U,ME as V,xB as W,Zv as X,kB as Y,MB as Z,vw as _,_B as a,Li as a0,IB as a1,AB as a2,YD as a3,gB as a4,lS as a5,RB as a6,Gl as b,SB as c,YS as d,QS as e,mB as f,Oy as g,sf as h,wB as i,ZS as j,yB as k,jl as l,yr as m,Wy as n,Xy as o,jS as p,Jb as q,qo as r,bw as s,OS as t,TB as u,Qv as v,iE as w,nE as x,tE as y,rE as z};