chatlab-cli 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/{chunk-OQVKZTVD.mjs → chunk-3UBWLWXB.mjs} +2 -2
- package/dist/{chunk-AIR7EAF4.mjs → chunk-4U45E7TO.mjs} +2 -2
- package/dist/{chunk-OZWXLRJL.mjs → chunk-6GLMVWGA.mjs} +24 -15
- package/dist/chunk-6GLMVWGA.mjs.map +1 -0
- package/dist/{chunk-2AIOU3PW.mjs → chunk-6NB475AA.mjs} +12 -3
- package/dist/chunk-6NB475AA.mjs.map +1 -0
- package/dist/{chunk-LI4X52E7.mjs → chunk-AMMSVJG4.mjs} +325 -94
- package/dist/chunk-AMMSVJG4.mjs.map +1 -0
- package/dist/{chunk-4GI2UPCS.mjs → chunk-D2XJ4Z7G.mjs} +2 -2
- package/dist/{chunk-7HQWGLX6.mjs → chunk-QJQJIUUS.mjs} +102 -96
- package/dist/chunk-QJQJIUUS.mjs.map +1 -0
- package/dist/chunk-VSOWNKPA.mjs +49 -0
- package/dist/cli.mjs +4 -3
- package/dist/{http-DHQI4G5J.mjs → http-R5UECMPJ.mjs} +8 -7
- package/dist/{import-CQWGIMZQ.mjs → import-3LOWRXWA.mjs} +5 -4
- package/dist/index.mjs +8 -7
- package/dist/{mcp-7Q3FEI3Z.mjs → mcp-WBHNLED2.mjs} +8 -7
- package/dist/mcp-WBHNLED2.mjs.map +1 -0
- package/dist/{src-QBT5SYW5.mjs → src-UHM2UDRD.mjs} +3 -2
- package/dist/{stream-import-VG7RP6KJ.mjs → stream-import-V6Z7DXSW.mjs} +4 -3
- package/dist/stream-import-V6Z7DXSW.mjs.map +1 -0
- package/dist/update-checker-MQMQ6A4B.mjs +191 -0
- package/dist/update-checker-MQMQ6A4B.mjs.map +1 -0
- package/dist-web/assets/{DebugToolsPanel-CoBtqb--.css → DebugToolsPanel-DkbsB6lr.css} +1 -1
- package/dist-web/assets/{DebugToolsPanel.vue_vue_type_script_setup_true_lang-CpFGhsl5.js → DebugToolsPanel.vue_vue_type_script_setup_true_lang-CxYyne-Q.js} +5 -5
- package/dist-web/assets/{EChartWordcloud-BYLFxPAX.js → EChartWordcloud-Ubal_aYg.js} +1 -1
- package/dist-web/assets/{MessageExportModal-DTgxz1eQ.js → MessageExportModal-De5_tX6a.js} +1 -1
- package/dist-web/assets/{electron-CTK4NJag.js → electron-CRSL7qPM.js} +1 -1
- package/dist-web/assets/{fetch-C2vUkdnA.js → fetch-Q-PqsiMb.js} +1 -1
- package/dist-web/assets/{fetch-CTZXLLcn.js → fetch-cFjLAPG2.js} +1 -1
- package/dist-web/assets/{index-DeG0EHOT.js → index-BJUGnYn5.js} +1 -1
- package/dist-web/assets/{index-DuhN8jAf.js → index-B_31fXeB.js} +2 -2
- package/dist-web/assets/index-CbOwHYzO.css +1 -0
- package/dist-web/assets/index-DKMUn8F5.js +173 -0
- package/dist-web/assets/{index-C4B0hv6C.js → index-D_ksezTw.js} +4 -4
- package/dist-web/assets/index-Dhg3SDb6.js +7 -0
- package/dist-web/assets/logo-DXIuG_WE.svg +17 -0
- package/dist-web/assets/{vendor-echarts-C13vDgZW.js → vendor-echarts-C5u62NnM.js} +1 -1
- package/dist-web/assets/{vendor-echarts-wordcloud-uVdwYsYa.js → vendor-echarts-wordcloud-CZ9gsX8l.js} +1 -1
- package/dist-web/assets/{vendor-nuxt-ui-CYMNNdeD.js → vendor-nuxt-ui-7OAuiz_i.js} +1 -1
- package/dist-web/assets/{vendor-zrender-5DcYjSZk.js → vendor-zrender-DFl4U2Oe.js} +1 -1
- package/dist-web/assets/{web-DImo6Kjz.js → web-CZe0Ismu.js} +1 -1
- package/dist-web/index.html +3 -3
- package/package.json +4 -3
- package/dist/chunk-2AIOU3PW.mjs.map +0 -1
- package/dist/chunk-7HQWGLX6.mjs.map +0 -1
- package/dist/chunk-LI4X52E7.mjs.map +0 -1
- package/dist/chunk-OZWXLRJL.mjs.map +0 -1
- package/dist/mcp-7Q3FEI3Z.mjs.map +0 -1
- package/dist-web/assets/index-B8867dX7.css +0 -1
- package/dist-web/assets/index-DUXf21MT.js +0 -173
- package/dist-web/assets/index-DZiH2cC1.js +0 -7
- /package/dist/{chunk-OQVKZTVD.mjs.map → chunk-3UBWLWXB.mjs.map} +0 -0
- /package/dist/{chunk-AIR7EAF4.mjs.map → chunk-4U45E7TO.mjs.map} +0 -0
- /package/dist/{chunk-4GI2UPCS.mjs.map → chunk-D2XJ4Z7G.mjs.map} +0 -0
- /package/dist/{http-DHQI4G5J.mjs.map → chunk-VSOWNKPA.mjs.map} +0 -0
- /package/dist/{import-CQWGIMZQ.mjs.map → http-R5UECMPJ.mjs.map} +0 -0
- /package/dist/{src-QBT5SYW5.mjs.map → import-3LOWRXWA.mjs.map} +0 -0
- /package/dist/{stream-import-VG7RP6KJ.mjs.map → src-UHM2UDRD.mjs.map} +0 -0
|
@@ -5,4 +5,4 @@ var Bo=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.new
|
|
|
5
5
|
`):[];var y=d.length*v;if(p==null&&(p=y),y>p&&c){var m=Math.floor(p/v);_=_||d.length>m,d=d.slice(0,m),y=d.length*v}if(n&&u&&g!=null)for(var w=wo(g,f,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},T=0;T<d.length;T++)To(b,d[T],w),d[T]=b.textLine,_=_||b.isTruncated;for(var S=p,C=0,L=Mt(f),T=0;T<d.length;T++)C=Math.max(xt(L,d[T]),C);g==null&&(g=C);var P=g;return S+=h,P+=s,{lines:d,height:p,outerWidth:P,outerHeight:S,lineHeight:v,calculatedLineHeight:l,contentWidth:C,contentHeight:y,width:g,isTruncated:_}}var Dh=(function(){function r(){}return r})(),aa=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),Ah=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function Eh(r,t,e,i,n){var a=new Ah,o=Ln(r);if(!o)return a;var s=t.padding,h=s?s[1]+s[3]:0,f=s?s[0]+s[2]:0,u=t.width;u==null&&e!=null&&(u=e-h);var l=t.height;l==null&&i!=null&&(l=i-f);for(var v=t.overflow,c=(v==="break"||v==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:v==="breakAll"}:null,_=Ai.lastIndex=0,g;(g=Ai.exec(o))!=null;){var p=g.index;p>_&&Ei(a,o.substring(_,p),t,c),Ei(a,g[2],t,c,g[1]),_=Ai.lastIndex}_<o.length&&Ei(a,o.substring(_,o.length),t,c);var d=[],y=0,m=0,w=v==="truncate",b=t.lineOverflow==="truncate",T={};function S(Ot,Ft,Gt){Ot.width=Ft,Ot.lineHeight=Gt,y+=Gt,m=Math.max(m,Ft)}t:for(var C=0;C<a.lines.length;C++){for(var L=a.lines[C],P=0,M=0,D=0;D<L.tokens.length;D++){var R=L.tokens[D],x=R.styleName&&t.rich[R.styleName]||{},B=R.textPadding=x.padding,k=B?B[1]+B[3]:0,Y=R.font=x.font||t.font;R.contentHeight=ni(Y);var V=vt(x.height,R.contentHeight);if(R.innerHeight=V,B&&(V+=B[0]+B[2]),R.height=V,R.lineHeight=He(x.lineHeight,t.lineHeight,V),R.align=x&&x.align||n,R.verticalAlign=x&&x.verticalAlign||"middle",b&&l!=null&&y+R.lineHeight>l){var Dt=a.lines.length;D>0?(L.tokens=L.tokens.slice(0,D),S(L,M,P),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<Dt;break t}var j=x.width,ht=j==null||j==="auto";if(typeof j=="string"&&j.charAt(j.length-1)==="%")R.percentWidth=j,d.push(R),R.contentWidth=xt(Mt(Y),R.text);else{if(ht){var N=x.backgroundColor,G=N&&N.image;G&&(G=Ph(G),oi(G)&&(R.width=Math.max(R.width,G.width*V/G.height)))}var Q=w&&u!=null?u-M:null;Q!=null&&Q<R.width?!ht||Q<k?(R.text="",R.width=R.contentWidth=0):(Mh(T,R.text,Q-k,Y,t.ellipsis,{minChar:t.truncateMinChar}),R.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,R.width=R.contentWidth=xt(Mt(Y),R.text)):R.contentWidth=xt(Mt(Y),R.text)}R.width+=k,M+=R.width,x&&(P=Math.max(P,R.lineHeight))}S(L,M,P)}a.outerWidth=a.width=vt(u,m),a.outerHeight=a.height=vt(l,y),a.contentHeight=y,a.contentWidth=m,a.outerWidth+=h,a.outerHeight+=f;for(var C=0;C<d.length;C++){var R=d[C],It=R.percentWidth;R.width=parseInt(It,10)/100*a.width}return a}function Ei(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,h=o.font||e.font,f=!1,u,l;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var _=fe(o.width,i.width)+c;s.length>0&&_+i.accumWidth>i.width&&(u=t.split(`
|
|
6
6
|
`),f=!0),i.accumWidth=_}else{var g=bo(t,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+c,l=g.linesWidths,u=g.lines}}u||(u=t.split(`
|
|
7
7
|
`));for(var p=Mt(h),d=0;d<u.length;d++){var y=u[d],m=new Dh;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=l?l[d]:xt(p,y),!d&&!f){var w=(s[s.length-1]||(s[0]=new aa)).tokens,b=w.length;b===1&&w[0].isLineHolder?w[0]=m:(y||!b||a)&&w.push(m)}else s.push(new aa([m]))}}function Ih(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Oh=ri(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Fh(r){return Ih(r)?!!Oh[r]:!0}function bo(r,t,e,i,n){for(var a=[],o=[],s="",h="",f=0,u=0,l=Mt(t),v=0;v<r.length;v++){var c=r.charAt(v);if(c===`
|
|
8
|
-
`){h&&(s+=h,u+=f),a.push(s),o.push(u),s="",h="",f=0,u=0;continue}var _=po(l,c.charCodeAt(0)),g=i?!1:!Fh(c);if(a.length?u+_>e:n+u+_>e){u?(s||h)&&(g?(s||(s=h,h="",f=0,u=f),a.push(s),o.push(u-f),h+=c,f+=_,s="",u=f):(h&&(s+=h,h="",f=0),a.push(s),o.push(u),s=c,u=_)):g?(a.push(h),o.push(f),h=c,f=_):(a.push(c),o.push(_));continue}u+=_,g?(h+=c,f+=_):(h&&(s+=h,h="",f=0),s+=c)}return h&&(s+=h),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function oa(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;O.set(sa,Br(e,o,n),cr(i,s,a),o,s),O.intersect(t,sa,null,ha);var h=ha.outIntersectRect;r.outerWidth=h.width,r.outerHeight=h.height,r.baseX=Br(h.x,h.width,n,!0),r.baseY=cr(h.y,h.height,a,!0)}}var sa=new O(0,0,0,0),ha={outIntersectRect:{},clamp:!0};function Ln(r){return r!=null?r+="":r=""}function Bh(r){var t=Ln(r.text),e=r.font,i=xt(Mt(e),t),n=ni(e);return cn(r,i,n,null)}function cn(r,t,e,i){var n=new O(Br(r.x||0,t,r.textAlign),cr(r.y||0,e,r.textBaseline),t,e),a=i??(Co(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Co(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var dn="__zr_style_"+Math.round(Math.random()*10),dr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},si={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};dr[dn]=!0;var fa=["z","z2","invisible"],Hh=["invisible"],ce=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=st(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zh(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var h=this.parent;h;){if(h.ignore)return!1;h=h.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,h=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new O(0,0,0,0)),i?O.applyTransform(e,n,i):e.copy(n),(o||s||h)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(h),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+h-o));var f=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-f),e.y=Math.floor(e.y-f),e.width=Math.ceil(e.width+1+f*2),e.height=Math.ceil(e.height+1+f*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new O(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:H(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Qr,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Qr)},t.prototype.styleUpdated=function(){this.__dirty&=~Qr},t.prototype.createStyle=function(e){return ii(dr,e)},t.prototype.useStyle=function(e){e[dn]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[dn]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,fa)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):h&&(f=n.style),f)if(o){var u=this.style;if(this.style=this.createStyle(h?{}:u),h)for(var l=st(u),v=0;v<l.length;v++){var c=l[v];c in f&&(f[c]=f[c],this.style[c]=u[c])}for(var _=st(f),v=0;v<_.length;v++){var c=_[v];this.style[c]=this.style[c]}this._transitionState(e,{style:f},s,this.getAnimationStyleProps())}else this.useStyle(f);for(var g=this.__inHover?Hh:fa,v=0;v<g.length;v++){var c=g[v];i&&i[c]!=null?this[c]=i[c]:h&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return H(e,i),e},t.prototype.getAnimationStyleProps=function(){return si},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ot|Qr})(),t})(ai),Ii=new O(0,0,0,0),Oi=new O(0,0,0,0);function zh(r,t,e){return Ii.copy(r.getBoundingRect()),r.transform&&Ii.applyTransform(r.transform),Oi.width=t,Oi.height=e,!Ii.intersect(Oi)}var rt=Math.min,et=Math.max,Fi=Math.sin,Bi=Math.cos,Kt=Math.PI*2,Ce=zr(),Se=zr(),Le=zr();function Yu(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],h=1;h<r.length;h++)i=r[h],n=rt(n,i[0]),a=et(a,i[0]),o=rt(o,i[1]),s=et(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function ua(r,t,e,i,n,a){n[0]=rt(r,e),n[1]=rt(t,i),a[0]=et(r,e),a[1]=et(t,i)}var la=[],va=[];function kh(r,t,e,i,n,a,o,s,h,f){var u=ao,l=q,v=u(r,e,n,o,la);h[0]=1/0,h[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var c=0;c<v;c++){var _=l(r,e,n,o,la[c]);h[0]=rt(_,h[0]),f[0]=et(_,f[0])}v=u(t,i,a,s,va);for(var c=0;c<v;c++){var g=l(t,i,a,s,va[c]);h[1]=rt(g,h[1]),f[1]=et(g,f[1])}h[0]=rt(r,h[0]),f[0]=et(r,f[0]),h[0]=rt(o,h[0]),f[0]=et(o,f[0]),h[1]=rt(t,h[1]),f[1]=et(t,f[1]),h[1]=rt(s,h[1]),f[1]=et(s,f[1])}function Wh(r,t,e,i,n,a,o,s){var h=oo,f=U,u=et(rt(h(r,e,n),1),0),l=et(rt(h(t,i,a),1),0),v=f(r,e,n,u),c=f(t,i,a,l);o[0]=rt(r,n,v),o[1]=rt(t,a,c),s[0]=et(r,n,v),s[1]=et(t,a,c)}function Nh(r,t,e,i,n,a,o,s,h){var f=Lr,u=Pr,l=Math.abs(n-a);if(l%Kt<1e-4&&l>1e-4){s[0]=r-e,s[1]=t-i,h[0]=r+e,h[1]=t+i;return}if(Ce[0]=Bi(n)*e+r,Ce[1]=Fi(n)*i+t,Se[0]=Bi(a)*e+r,Se[1]=Fi(a)*i+t,f(s,Ce,Se),u(h,Ce,Se),n=n%Kt,n<0&&(n=n+Kt),a=a%Kt,a<0&&(a=a+Kt),n>a&&!o?a+=Kt:n<a&&o&&(n+=Kt),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(Le[0]=Bi(c)*e+r,Le[1]=Fi(c)*i+t,f(s,Le,s),u(h,Le,h))}var I={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Jt=[],jt=[],mt=[],Bt=[],wt=[],Tt=[],Hi=Math.min,zi=Math.max,tr=Math.cos,rr=Math.sin,At=Math.abs,pn=Math.PI,zt=pn*2,ki=typeof Float32Array<"u",Gr=[];function Wi(r){var t=Math.round(r/pn*1e8)/1e8;return t%2*pn}function Yh(r,t){var e=Wi(r[0]);e<0&&(e+=zt);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=zt?n=e+zt:t&&e-n>=zt?n=e-zt:!t&&e>n?n=e+(zt-Wi(e-n)):t&&e<n&&(n=e-(zt-Wi(n-e))),r[0]=e,r[1]=n}var Hr=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=At(i/Qe/t)||0,this._uy=At(i/Qe/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(I.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=At(t-this._xi),n=At(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(I.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(I.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(I.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Gr[0]=n,Gr[1]=a,Yh(Gr,o),n=Gr[0],a=Gr[1];var s=a-n;return this.addData(I.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=tr(a)*i+t,this._yi=rr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(I.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(I.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&ki&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(ki&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var h=t[a].data,s=0;s<h.length;s++)this.data[n++]=h[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,h,f){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var l=0;l<arguments.length;l++)u[this._len++]=arguments[l]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ki&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,Bt[0]=Bt[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],h=o===1;switch(h&&(e=t[o],i=t[o+1],n=e,a=i),s){case I.M:e=n=t[o++],i=a=t[o++],wt[0]=n,wt[1]=a,Tt[0]=n,Tt[1]=a;break;case I.L:ua(e,i,t[o],t[o+1],wt,Tt),e=t[o++],i=t[o++];break;case I.C:kh(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],wt,Tt),e=t[o++],i=t[o++];break;case I.Q:Wh(e,i,t[o++],t[o++],t[o],t[o+1],wt,Tt),e=t[o++],i=t[o++];break;case I.A:var f=t[o++],u=t[o++],l=t[o++],v=t[o++],c=t[o++],_=t[o++]+c;o+=1;var g=!t[o++];h&&(n=tr(c)*l+f,a=rr(c)*v+u),Nh(f,u,l,v,c,_,g,wt,Tt),e=tr(_)*l+f,i=rr(_)*v+u;break;case I.R:n=e=t[o++],a=i=t[o++];var p=t[o++],d=t[o++];ua(n,a,n+p,a+d,wt,Tt);break;case I.Z:e=n,i=a;break}Lr(mt,mt,wt),Pr(Bt,Bt,Tt)}return o===0&&(mt[0]=mt[1]=Bt[0]=Bt[1]=0),new O(mt[0],mt[1],Bt[0]-mt[0],Bt[1]-mt[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,h=0;this._pathSegLen||(this._pathSegLen=[]);for(var f=this._pathSegLen,u=0,l=0,v=0;v<e;){var c=t[v++],_=v===1;_&&(a=t[v],o=t[v+1],s=a,h=o);var g=-1;switch(c){case I.M:a=s=t[v++],o=h=t[v++];break;case I.L:{var p=t[v++],d=t[v++],y=p-a,m=d-o;(At(y)>i||At(m)>n||v===e-1)&&(g=Math.sqrt(y*y+m*m),a=p,o=d);break}case I.C:{var w=t[v++],b=t[v++],p=t[v++],d=t[v++],T=t[v++],S=t[v++];g=Xs(a,o,w,b,p,d,T,S,10),a=T,o=S;break}case I.Q:{var w=t[v++],b=t[v++],p=t[v++],d=t[v++];g=$s(a,o,w,b,p,d,10),a=p,o=d;break}case I.A:var C=t[v++],L=t[v++],P=t[v++],M=t[v++],D=t[v++],R=t[v++],x=R+D;v+=1,_&&(s=tr(D)*P+C,h=rr(D)*M+L),g=zi(P,M)*Hi(zt,Math.abs(R)),a=tr(x)*P+C,o=rr(x)*M+L;break;case I.R:{s=a=t[v++],h=o=t[v++];var B=t[v++],k=t[v++];g=B*2+k*2;break}case I.Z:{var y=s-a,m=h-o;g=Math.sqrt(y*y+m*m),a=s,o=h;break}}g>=0&&(f[l++]=g,u+=g)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,h,f,u,l,v,c=e<1,_,g,p=0,d=0,y,m=0,w,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var T=0;T<o;){var S=i[T++],C=T===1;switch(C&&(f=i[T],u=i[T+1],s=f,h=u),S!==I.L&&m>0&&(t.lineTo(w,b),m=0),S){case I.M:s=f=i[T++],h=u=i[T++],t.moveTo(f,u);break;case I.L:{l=i[T++],v=i[T++];var L=At(l-f),P=At(v-u);if(L>n||P>a){if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;t.lineTo(f*(1-D)+l*D,u*(1-D)+v*D);break t}p+=M}t.lineTo(l,v),f=l,u=v,m=0}else{var R=L*L+P*P;R>m&&(w=l,b=v,m=R)}break}case I.C:{var x=i[T++],B=i[T++],k=i[T++],Y=i[T++],V=i[T++],Dt=i[T++];if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;Ue(f,x,k,V,D,Jt),Ue(u,B,Y,Dt,D,jt),t.bezierCurveTo(Jt[1],jt[1],Jt[2],jt[2],Jt[3],jt[3]);break t}p+=M}t.bezierCurveTo(x,B,k,Y,V,Dt),f=V,u=Dt;break}case I.Q:{var x=i[T++],B=i[T++],k=i[T++],Y=i[T++];if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;Ze(f,x,k,D,Jt),Ze(u,B,Y,D,jt),t.quadraticCurveTo(Jt[1],jt[1],Jt[2],jt[2]);break t}p+=M}t.quadraticCurveTo(x,B,k,Y),f=k,u=Y;break}case I.A:var j=i[T++],ht=i[T++],N=i[T++],G=i[T++],Q=i[T++],It=i[T++],Ot=i[T++],Ft=!i[T++],Gt=N>G?N:G,ct=At(N-G)>.001,K=Q+It,A=!1;if(c){var M=_[d++];p+M>y&&(K=Q+It*(y-p)/M,A=!0),p+=M}if(ct&&t.ellipse?t.ellipse(j,ht,N,G,Ot,Q,K,Ft):t.arc(j,ht,Gt,Q,K,Ft),A)break t;C&&(s=tr(Q)*N+j,h=rr(Q)*G+ht),f=tr(K)*N+j,u=rr(K)*G+ht;break;case I.R:s=f=i[T],h=u=i[T+1],l=i[T++],v=i[T++];var E=i[T++],Wr=i[T++];if(c){var M=_[d++];if(p+M>y){var yt=y-p;t.moveTo(l,v),t.lineTo(l+Hi(yt,E),v),yt-=E,yt>0&&t.lineTo(l+E,v+Hi(yt,Wr)),yt-=Wr,yt>0&&t.lineTo(l+zi(E-yt,0),v+Wr),yt-=E,yt>0&&t.lineTo(l,v+zi(Wr-yt,0));break t}p+=M}t.rect(l,v,E,Wr);break;case I.Z:if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;t.lineTo(f*(1-D)+s*D,u*(1-D)+h*D);break t}p+=M}t.closePath(),f=s,u=h}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=I,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Tr(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,h=0,f=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)h=(t-i)/(r-e),f=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var u=h*a-o+f,l=u*u/(h*h+1);return l<=s/2*s/2}function Xh(r,t,e,i,n,a,o,s,h,f,u){if(h===0)return!1;var l=h;if(u>t+l&&u>i+l&&u>a+l&&u>s+l||u<t-l&&u<i-l&&u<a-l&&u<s-l||f>r+l&&f>e+l&&f>n+l&&f>o+l||f<r-l&&f<e-l&&f<n-l&&f<o-l)return!1;var v=Ys(r,t,e,i,n,a,o,s,f,u,null);return v<=l/2}function Gh(r,t,e,i,n,a,o,s,h){if(o===0)return!1;var f=o;if(h>t+f&&h>i+f&&h>a+f||h<t-f&&h<i-f&&h<a-f||s>r+f&&s>e+f&&s>n+f||s<r-f&&s<e-f&&s<n-f)return!1;var u=qs(r,t,e,i,n,a,s,h,null);return u<=f/2}var ca=Math.PI*2;function Pe(r){return r%=ca,r<0&&(r+=ca),r}var qr=Math.PI*2;function qh(r,t,e,i,n,a,o,s,h){if(o===0)return!1;var f=o;s-=r,h-=t;var u=Math.sqrt(s*s+h*h);if(u-f>e||u+f<e)return!1;if(Math.abs(i-n)%qr<1e-4)return!0;if(a){var l=i;i=Pe(n),n=Pe(l)}else i=Pe(i),n=Pe(n);i>n&&(n+=qr);var v=Math.atan2(h,s);return v<0&&(v+=qr),v>=i&&v<=n||v+qr>=i&&v+qr<=n}function er(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var h=o*(e-r)+r;return h===n?1/0:h>n?s:0}var Ht=Hr.CMD,ir=Math.PI*2,$h=1e-4;function Uh(r,t){return Math.abs(r-t)<$h}var J=[-1,-1,-1],ut=[-1,-1];function Zh(){var r=ut[0];ut[0]=ut[1],ut[1]=r}function Vh(r,t,e,i,n,a,o,s,h,f){if(f>t&&f>i&&f>a&&f>s||f<t&&f<i&&f<a&&f<s)return 0;var u=no(t,i,a,s,f,J);if(u===0)return 0;for(var l=0,v=-1,c=void 0,_=void 0,g=0;g<u;g++){var p=J[g],d=p===0||p===1?.5:1,y=q(r,e,n,o,p);y<h||(v<0&&(v=ao(t,i,a,s,ut),ut[1]<ut[0]&&v>1&&Zh(),c=q(t,i,a,s,ut[0]),v>1&&(_=q(t,i,a,s,ut[1]))),v===2?p<ut[0]?l+=c<t?d:-d:p<ut[1]?l+=_<c?d:-d:l+=s<_?d:-d:p<ut[0]?l+=c<t?d:-d:l+=s<c?d:-d)}return l}function Qh(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var h=Gs(t,i,a,s,J);if(h===0)return 0;var f=oo(t,i,a);if(f>=0&&f<=1){for(var u=0,l=U(t,i,a,f),v=0;v<h;v++){var c=J[v]===0||J[v]===1?.5:1,_=U(r,e,n,J[v]);_<o||(J[v]<f?u+=l<t?c:-c:u+=a<l?c:-c)}return u}else{var c=J[0]===0||J[0]===1?.5:1,_=U(r,e,n,J[0]);return _<o?0:a<t?c:-c}}function Kh(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var h=Math.sqrt(e*e-s*s);J[0]=-h,J[1]=h;var f=Math.abs(i-n);if(f<1e-4)return 0;if(f>=ir-1e-4){i=0,n=ir;var u=a?1:-1;return o>=J[0]+r&&o<=J[1]+r?u:0}if(i>n){var l=i;i=n,n=l}i<0&&(i+=ir,n+=ir);for(var v=0,c=0;c<2;c++){var _=J[c];if(_+r>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=ir+g),(g>=i&&g<=n||g+ir>=i&&g+ir<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(u=-u),v+=u)}}return v}function So(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,h=0,f=0,u=0,l=0,v,c,_=0;_<o;){var g=a[_++],p=_===1;switch(g===Ht.M&&_>1&&(e||(s+=er(h,f,u,l,i,n))),p&&(h=a[_],f=a[_+1],u=h,l=f),g){case Ht.M:u=a[_++],l=a[_++],h=u,f=l;break;case Ht.L:if(e){if(Tr(h,f,a[_],a[_+1],t,i,n))return!0}else s+=er(h,f,a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Ht.C:if(e){if(Xh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Vh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Ht.Q:if(e){if(Gh(h,f,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Qh(h,f,a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Ht.A:var d=a[_++],y=a[_++],m=a[_++],w=a[_++],b=a[_++],T=a[_++];_+=1;var S=!!(1-a[_++]);v=Math.cos(b)*m+d,c=Math.sin(b)*w+y,p?(u=v,l=c):s+=er(h,f,v,c,i,n);var C=(i-d)*w/m+d;if(e){if(qh(d,y,w,b,b+T,S,t,C,n))return!0}else s+=Kh(d,y,w,b,b+T,S,C,n);h=Math.cos(b+T)*m+d,f=Math.sin(b+T)*w+y;break;case Ht.R:u=h=a[_++],l=f=a[_++];var L=a[_++],P=a[_++];if(v=u+L,c=l+P,e){if(Tr(u,l,v,l,t,i,n)||Tr(v,l,v,c,t,i,n)||Tr(v,c,u,c,t,i,n)||Tr(u,c,u,l,t,i,n))return!0}else s+=er(v,l,v,c,i,n),s+=er(u,c,u,l,i,n);break;case Ht.Z:if(e){if(Tr(h,f,u,l,t,i,n))return!0}else s+=er(h,f,u,l,i,n);h=u,f=l;break}}return!e&&!Uh(f,l)&&(s+=er(h,f,u,l,i,n)||0),s!==0}function Jh(r,t,e){return So(r,0,!1,t,e)}function jh(r,t,e,i){return So(r,t,!0,e,i)}var Lo=_r({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},dr),tf={style:_r({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},si.style)},Ni=he.concat(["invisible","culling","z","z2","zlevel","parent"]),Z=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(h){e.buildPath(h,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Ni.length;++s)n[Ni[s]]=this[Ni[s]];n.__dirty|=ot}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=st(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Xe(e)){var i=Ve(e,0);return i>.5?un:i>.2?ch:ln}else if(e)return ln}return un},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(Xe(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Ve(e,0)<fn;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Sr},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Hr(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Sr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var h=i.strokeNoScale?this.getLineScale():1,f=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;f=Math.max(f,u??4)}h>1e-10&&(s.width+=f/h,s.height+=f/h,s.x-=f/h/2,s.y-=f/h/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var h=o.lineWidth,f=o.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),jh(s,h/f,e,i)))return!0}if(this.hasFill())return Jh(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Sr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:H(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Sr)},t.prototype.createStyle=function(e){return ii(Lo,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=H({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.shape?o?a?f=i.shape:(f=H({},n.shape),H(f,i.shape)):(f=H({},a?this.shape:n.shape),H(f,i.shape)):h&&(f=n.shape),f)if(o){this.shape=H({},this.shape);for(var u={},l=st(f),v=0;v<l.length;v++){var c=l[v];typeof f[c]=="object"?this.shape[c]=f[c]:u[c]=f[c]}this._transitionState(e,{shape:u},s)}else this.shape=f,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return tf},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){F(o,a);function o(s){var h=a.call(this,s)||this;return e.init&&e.init.call(h,s),h}return o.prototype.getDefaultStyle=function(){return Or(e.style)},o.prototype.getDefaultShape=function(){return Or(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ot|Qr|Sr})(),t})(ce),rf=_r({strokeFirst:!0,font:Xt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Lo),Ke=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Co(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return ii(rf,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Bh(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(ce);Ke.prototype.type="tspan";var ef=_r({x:0,y:0},dr),nf={style:_r({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},si.style)};function af(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Pn=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ii(ef,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=af(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return nf},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new O(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(ce);Pn.prototype.type="image";function of(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,h,f,u;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=h=f=u=o:o instanceof Array?o.length===1?s=h=f=u=o[0]:o.length===2?(s=f=o[0],h=u=o[1]):o.length===3?(s=o[0],h=u=o[1],f=o[2]):(s=o[0],h=o[1],f=o[2],u=o[3]):s=h=f=u=0;var l;s+h>n&&(l=s+h,s*=n/l,h*=n/l),f+u>n&&(l=f+u,f*=n/l,u*=n/l),h+f>a&&(l=h+f,h*=a/l,f*=a/l),s+u>a&&(l=s+u,s*=a/l,u*=a/l),r.moveTo(e+s,i),r.lineTo(e+n-h,i),h!==0&&r.arc(e+n-h,i+h,h,-Math.PI/2,0),r.lineTo(e+n,i+a-f),f!==0&&r.arc(e+n-f,i+a-f,f,0,Math.PI/2),r.lineTo(e+u,i+a),u!==0&&r.arc(e+u,i+a-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Rr=Math.round;function sf(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Rr(i*2)===Rr(n*2)&&(r.x1=r.x2=Dr(i,s,!0)),Rr(a*2)===Rr(o*2)&&(r.y1=r.y2=Dr(a,s,!0))),r}}function hf(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Dr(i,s,!0),r.y=Dr(n,s,!0),r.width=Math.max(Dr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Dr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Dr(r,t,e){if(!t)return r;var i=Rr(r*2);return(i+Rr(t))%2===0?i/2:(i+(e?1:-1))/2}var ff=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),uf={},Po=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ff},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var h=hf(uf,i,this.style);n=h.x,a=h.y,o=h.width,s=h.height,h.r=i.r,i=h}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?of(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Z);Po.prototype.type="rect";var da={fill:"#000"},pa=2,bt={},lf={style:_r({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},si.style)},vf=(function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=da,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,gf(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new O(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],h=s.getBoundingRect(),f=s.getLocalTransform(n);f?(e.copy(h),e.applyTransform(f),a=a||e.clone(),a.union(e)):(a=a||h.clone(),a.union(h))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||da},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return H(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=st(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},H(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return lf},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Xt,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,h=e.align||a.align||"left",f=e.verticalAlign||a.verticalAlign||"top";oa(bt,a.overflowRect,o,s,h,f),o=bt.baseX,s=bt.baseY;var u=ba(e),l=Rh(u,e,bt.outerWidth,bt.outerHeight),v=Yi(e),c=!!e.backgroundColor,_=l.outerHeight,g=l.outerWidth,p=l.lines,d=l.lineHeight;this.isTruncated=!!l.isTruncated;var y=o,m=cr(s,l.contentHeight,f);if(v||n){var w=Br(o,g,h),b=cr(s,_,f);v&&this._renderBackground(e,e,w,b,g,_)}m+=d/2,n&&(y=Ta(o,h,n),f==="top"?m+=n[0]:f==="bottom"&&(m-=n[2]));for(var T=0,S=!1,C=!1,L=wa("fill"in e?e.fill:(C=!0,a.fill)),P=ma("stroke"in e?e.stroke:!c&&(!a.autoStroke||C)?(T=pa,S=!0,a.stroke):null),M=e.textShadowBlur>0,D=0;D<p.length;D++){var R=this._getOrCreateChild(Ke),x=R.createStyle();R.useStyle(x),x.text=p[D],x.x=y,x.y=m,x.textAlign=h,x.textBaseline="middle",x.opacity=e.opacity,x.strokeFirst=!0,M&&(x.shadowBlur=e.textShadowBlur||0,x.shadowColor=e.textShadowColor||"transparent",x.shadowOffsetX=e.textShadowOffsetX||0,x.shadowOffsetY=e.textShadowOffsetY||0),x.stroke=P,x.fill=L,P&&(x.lineWidth=e.lineWidth||T,x.lineDash=e.lineDash,x.lineDashOffset=e.lineDashOffset||0),x.font=i,ga(x,e),m+=d,R.setBoundingRect(cn(x,l.contentWidth,l.calculatedLineHeight,S?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;oa(bt,i.overflowRect,o,s,n,a),o=bt.baseX,s=bt.baseY;var h=ba(e),f=Eh(h,e,bt.outerWidth,bt.outerHeight,n),u=f.width,l=f.outerWidth,v=f.outerHeight,c=e.padding;this.isTruncated=!!f.isTruncated;var _=Br(o,l,n),g=cr(s,v,a),p=_,d=g;c&&(p+=c[3],d+=c[0]);var y=p+u;Yi(e)&&this._renderBackground(e,e,_,g,l,v);for(var m=!!e.backgroundColor,w=0;w<f.lines.length;w++){for(var b=f.lines[w],T=b.tokens,S=T.length,C=b.lineHeight,L=b.width,P=0,M=p,D=y,R=S-1,x=void 0;P<S&&(x=T[P],!x.align||x.align==="left");)this._placeToken(x,e,C,d,M,"left",m),L-=x.width,M+=x.width,P++;for(;R>=0&&(x=T[R],x.align==="right");)this._placeToken(x,e,C,d,D,"right",m),L-=x.width,D-=x.width,R--;for(M+=(u-(M-p)-(y-D)-L)/2;P<=R;)x=T[P],this._placeToken(x,e,C,d,M+x.width/2,"center",m),M+=x.width,P++;d+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,h){var f=i.rich[e.styleName]||{};f.text=e.text;var u=e.verticalAlign,l=a+n/2;u==="top"?l=a+e.height/2:u==="bottom"&&(l=a+n-e.height/2);var v=!e.isLineHolder&&Yi(f);v&&this._renderBackground(f,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,l-e.height/2,e.width,e.height);var c=!!f.backgroundColor,_=e.textPadding;_&&(o=Ta(o,s,_),l-=e.height/2-_[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ke),p=g.createStyle();g.useStyle(p);var d=this._defaultStyle,y=!1,m=0,w=!1,b=wa("fill"in f?f.fill:"fill"in i?i.fill:(y=!0,d.fill)),T=ma("stroke"in f?f.stroke:"stroke"in i?i.stroke:!c&&!h&&(!d.autoStroke||y)?(m=pa,w=!0,d.stroke):null),S=f.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=l,S&&(p.shadowBlur=f.textShadowBlur||i.textShadowBlur||0,p.shadowColor=f.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=f.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=f.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Xt,p.opacity=He(f.opacity,i.opacity,1),ga(p,f),T&&(p.lineWidth=He(f.lineWidth,i.lineWidth,m),p.lineDash=vt(f.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=T),b&&(p.fill=b),g.setBoundingRect(cn(p,e.contentWidth,e.contentHeight,w?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var h=e.backgroundColor,f=e.borderWidth,u=e.borderColor,l=h&&h.image,v=h&&!l,c=e.borderRadius,_=this,g,p;if(v||e.lineHeight||f&&u){g=this._getOrCreateChild(Po),g.useStyle(g.createStyle()),g.style.fill=null;var d=g.shape;d.x=n,d.y=a,d.width=o,d.height=s,d.r=c,g.dirtyShape()}if(v){var y=g.style;y.fill=h||null,y.fillOpacity=vt(e.fillOpacity,1)}else if(l){p=this._getOrCreateChild(Pn),p.onload=function(){_.dirtyStyle()};var m=p.style;m.image=h.image,m.x=n,m.y=a,m.width=o,m.height=s}if(f&&u){var y=g.style;y.lineWidth=f,y.stroke=u,y.strokeOpacity=vt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(g||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=He(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return _f(e)&&(i=[e.fontStyle,e.fontWeight,pf(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Zr(i)||e.textFont||e.font},t})(ce),cf={left:!0,right:1,center:1},df={top:1,bottom:1,middle:1},_a=["fontStyle","fontWeight","fontSize","fontFamily"];function pf(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?mn+"px":r+"px"}function ga(r,t){for(var e=0;e<_a.length;e++){var i=_a[e],n=t[i];n!=null&&(r[i]=n)}}function _f(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function gf(r){return ya(r),nt(r.rich,ya),r}function ya(r){if(r){r.font=vf.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||cf[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||df[e]?e:"top";var i=r.padding;i&&(r.padding=jo(r.padding))}}function ma(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function wa(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Ta(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ba(r){var t=r.text;return t!=null&&(t+=""),t}function Yi(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var br=Hr.CMD,yf=[[],[],[]],Ca=Math.sqrt,mf=Math.atan2;function wf(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,h,f,u=br.M,l=br.C,v=br.L,c=br.R,_=br.A,g=br.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case u:a=1;break;case v:a=1;break;case l:a=3;break;case g:a=2;break;case _:var p=t[4],d=t[5],y=Ca(t[0]*t[0]+t[1]*t[1]),m=Ca(t[2]*t[2]+t[3]*t[3]),w=mf(-t[1]/m,t[0]/y);e[o]*=y,e[o++]+=p,e[o]*=m,e[o++]+=d,e[o++]*=y,e[o++]*=m,e[o++]+=w,e[o++]+=w,o+=2,s=o;break;case c:f[0]=e[o++],f[1]=e[o++],te(f,f,t),e[s++]=f[0],e[s++]=f[1],f[0]+=e[o++],f[1]+=e[o++],te(f,f,t),e[s++]=f[0],e[s++]=f[1]}for(h=0;h<a;h++){var b=yf[h];b[0]=e[o++],b[1]=e[o++],te(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Xi=Math.sqrt,Me=Math.sin,xe=Math.cos,$r=Math.PI;function Sa(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function _n(r,t){return(r[0]*t[0]+r[1]*t[1])/(Sa(r)*Sa(t))}function La(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(_n(r,t))}function Pa(r,t,e,i,n,a,o,s,h,f,u){var l=h*($r/180),v=xe(l)*(r-e)/2+Me(l)*(t-i)/2,c=-1*Me(l)*(r-e)/2+xe(l)*(t-i)/2,_=v*v/(o*o)+c*c/(s*s);_>1&&(o*=Xi(_),s*=Xi(_));var g=(n===a?-1:1)*Xi((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=g*o*c/s,d=g*-s*v/o,y=(r+e)/2+xe(l)*p-Me(l)*d,m=(t+i)/2+Me(l)*p+xe(l)*d,w=La([1,0],[(v-p)/o,(c-d)/s]),b=[(v-p)/o,(c-d)/s],T=[(-1*v-p)/o,(-1*c-d)/s],S=La(b,T);if(_n(b,T)<=-1&&(S=$r),_n(b,T)>=1&&(S=0),S<0){var C=Math.round(S/$r*1e6)/1e6;S=$r*2+C%2*$r}u.addData(f,y,m,o,s,w,S,l,a)}var Tf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cf(r){var t=new Hr;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=Hr.CMD,h=r.match(Tf);if(!h)return t;for(var f=0;f<h.length;f++){for(var u=h[f],l=u.charAt(0),v=void 0,c=u.match(bf)||[],_=c.length,g=0;g<_;g++)c[g]=parseFloat(c[g]);for(var p=0;p<_;){var d=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,S=void 0,C=e,L=i,P=void 0,M=void 0;switch(l){case"l":e+=c[p++],i+=c[p++],v=s.L,t.addData(v,e,i);break;case"L":e=c[p++],i=c[p++],v=s.L,t.addData(v,e,i);break;case"m":e+=c[p++],i+=c[p++],v=s.M,t.addData(v,e,i),n=e,a=i,l="l";break;case"M":e=c[p++],i=c[p++],v=s.M,t.addData(v,e,i),n=e,a=i,l="L";break;case"h":e+=c[p++],v=s.L,t.addData(v,e,i);break;case"H":e=c[p++],v=s.L,t.addData(v,e,i);break;case"v":i+=c[p++],v=s.L,t.addData(v,e,i);break;case"V":i=c[p++],v=s.L,t.addData(v,e,i);break;case"C":v=s.C,t.addData(v,c[p++],c[p++],c[p++],c[p++],c[p++],c[p++]),e=c[p-2],i=c[p-1];break;case"c":v=s.C,t.addData(v,c[p++]+e,c[p++]+i,c[p++]+e,c[p++]+i,c[p++]+e,c[p++]+i),e+=c[p-2],i+=c[p-1];break;case"S":d=e,y=i,P=t.len(),M=t.data,o===s.C&&(d+=e-M[P-4],y+=i-M[P-3]),v=s.C,C=c[p++],L=c[p++],e=c[p++],i=c[p++],t.addData(v,d,y,C,L,e,i);break;case"s":d=e,y=i,P=t.len(),M=t.data,o===s.C&&(d+=e-M[P-4],y+=i-M[P-3]),v=s.C,C=e+c[p++],L=i+c[p++],e+=c[p++],i+=c[p++],t.addData(v,d,y,C,L,e,i);break;case"Q":C=c[p++],L=c[p++],e=c[p++],i=c[p++],v=s.Q,t.addData(v,C,L,e,i);break;case"q":C=c[p++]+e,L=c[p++]+i,e+=c[p++],i+=c[p++],v=s.Q,t.addData(v,C,L,e,i);break;case"T":d=e,y=i,P=t.len(),M=t.data,o===s.Q&&(d+=e-M[P-4],y+=i-M[P-3]),e=c[p++],i=c[p++],v=s.Q,t.addData(v,d,y,e,i);break;case"t":d=e,y=i,P=t.len(),M=t.data,o===s.Q&&(d+=e-M[P-4],y+=i-M[P-3]),e+=c[p++],i+=c[p++],v=s.Q,t.addData(v,d,y,e,i);break;case"A":m=c[p++],w=c[p++],b=c[p++],T=c[p++],S=c[p++],C=e,L=i,e=c[p++],i=c[p++],v=s.A,Pa(C,L,e,i,T,S,m,w,b,v,t);break;case"a":m=c[p++],w=c[p++],b=c[p++],T=c[p++],S=c[p++],C=e,L=i,e+=c[p++],i+=c[p++],v=s.A,Pa(C,L,e,i,T,S,m,w,b,v,t);break}}(l==="z"||l==="Z")&&(v=s.Z,t.addData(v),e=n,i=a),o=v}return t.toStatic(),t}var Mo=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(Z);function xo(r){return r.setData!=null}function Ro(r,t){var e=Cf(r),i=H({},t);return i.buildPath=function(n){var a=xo(n);if(a&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&e.rebuildPath(o,1)}},i.applyTransform=function(n){wf(e,n),this.dirtyShape()},i}function Xu(r,t){return new Mo(Ro(r,t))}function Gu(r,t){var e=Ro(r,t),i=(function(n){F(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(Mo);return i}function qu(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new Z(t);return o.createPathProxy(),o.buildPath=function(s){if(xo(s)){s.appendPath(e);var h=s.getContext();h&&s.rebuildPath(h,1)}},o}var Sf=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Lf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Sf},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(Z);Lf.prototype.type="circle";var Pf=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Mf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Pf},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,h=i.ry,f=s*n,u=h*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-u,a-f,o-h,a,o-h),e.bezierCurveTo(a+f,o-h,a+s,o-u,a+s,o),e.bezierCurveTo(a+s,o+u,a+f,o+h,a,o+h),e.bezierCurveTo(a-f,o+h,a-s,o+u,a-s,o),e.closePath()},t})(Z);Mf.prototype.type="ellipse";var Do=Math.PI,Gi=Do*2,nr=Math.sin,Cr=Math.cos,xf=Math.acos,$=Math.atan2,Ma=Math.abs,ne=Math.sqrt,Jr=Math.max,Ct=Math.min,dt=1e-4;function Rf(r,t,e,i,n,a,o,s){var h=e-r,f=i-t,u=o-n,l=s-a,v=l*h-u*f;if(!(v*v<dt))return v=(u*(t-a)-l*(r-n))/v,[r+v*h,t+v*f]}function Re(r,t,e,i,n,a,o){var s=r-e,h=t-i,f=(o?a:-a)/ne(s*s+h*h),u=f*h,l=-f*s,v=r+u,c=t+l,_=e+u,g=i+l,p=(v+_)/2,d=(c+g)/2,y=_-v,m=g-c,w=y*y+m*m,b=n-a,T=v*g-_*c,S=(m<0?-1:1)*ne(Jr(0,b*b*w-T*T)),C=(T*m-y*S)/w,L=(-T*y-m*S)/w,P=(T*m+y*S)/w,M=(-T*y+m*S)/w,D=C-p,R=L-d,x=P-p,B=M-d;return D*D+R*R>x*x+B*B&&(C=P,L=M),{cx:C,cy:L,x0:-u,y0:-l,x1:C*(n/b-1),y1:L*(n/b-1)}}function Df(r){var t;if(ae(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Af(r,t){var e,i=Jr(t.r,0),n=Jr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var h=t.startAngle,f=t.endAngle;if(!(isNaN(h)||isNaN(f))){var u=t.cx,l=t.cy,v=!!t.clockwise,c=Ma(f-h),_=c>Gi&&c%Gi;if(_>dt&&(c=_),!(i>dt))r.moveTo(u,l);else if(c>Gi-dt)r.moveTo(u+i*Cr(h),l+i*nr(h)),r.arc(u,l,i,h,f,!v),n>dt&&(r.moveTo(u+n*Cr(f),l+n*nr(f)),r.arc(u,l,n,f,h,v));else{var g=void 0,p=void 0,d=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,S=void 0,C=void 0,L=void 0,P=void 0,M=void 0,D=void 0,R=void 0,x=void 0,B=i*Cr(h),k=i*nr(h),Y=n*Cr(f),V=n*nr(f),Dt=c>dt;if(Dt){var j=t.cornerRadius;j&&(e=Df(j),g=e[0],p=e[1],d=e[2],y=e[3]);var ht=Ma(i-n)/2;if(m=Ct(ht,d),w=Ct(ht,y),b=Ct(ht,g),T=Ct(ht,p),L=S=Jr(m,w),P=C=Jr(b,T),(S>dt||C>dt)&&(M=i*Cr(f),D=i*nr(f),R=n*Cr(h),x=n*nr(h),c<Do)){var N=Rf(B,k,R,x,M,D,Y,V);if(N){var G=B-N[0],Q=k-N[1],It=M-N[0],Ot=D-N[1],Ft=1/nr(xf((G*It+Q*Ot)/(ne(G*G+Q*Q)*ne(It*It+Ot*Ot)))/2),Gt=ne(N[0]*N[0]+N[1]*N[1]);L=Ct(S,(i-Gt)/(Ft+1)),P=Ct(C,(n-Gt)/(Ft-1))}}}if(!Dt)r.moveTo(u+B,l+k);else if(L>dt){var ct=Ct(d,L),K=Ct(y,L),A=Re(R,x,B,k,i,ct,v),E=Re(M,D,Y,V,i,K,v);r.moveTo(u+A.cx+A.x0,l+A.cy+A.y0),L<S&&ct===K?r.arc(u+A.cx,l+A.cy,L,$(A.y0,A.x0),$(E.y0,E.x0),!v):(ct>0&&r.arc(u+A.cx,l+A.cy,ct,$(A.y0,A.x0),$(A.y1,A.x1),!v),r.arc(u,l,i,$(A.cy+A.y1,A.cx+A.x1),$(E.cy+E.y1,E.cx+E.x1),!v),K>0&&r.arc(u+E.cx,l+E.cy,K,$(E.y1,E.x1),$(E.y0,E.x0),!v))}else r.moveTo(u+B,l+k),r.arc(u,l,i,h,f,!v);if(!(n>dt)||!Dt)r.lineTo(u+Y,l+V);else if(P>dt){var ct=Ct(g,P),K=Ct(p,P),A=Re(Y,V,M,D,n,-K,v),E=Re(B,k,R,x,n,-ct,v);r.lineTo(u+A.cx+A.x0,l+A.cy+A.y0),P<C&&ct===K?r.arc(u+A.cx,l+A.cy,P,$(A.y0,A.x0),$(E.y0,E.x0),!v):(K>0&&r.arc(u+A.cx,l+A.cy,K,$(A.y0,A.x0),$(A.y1,A.x1),!v),r.arc(u,l,n,$(A.cy+A.y1,A.cx+A.x1),$(E.cy+E.y1,E.cx+E.x1),v),ct>0&&r.arc(u+E.cx,l+E.cy,ct,$(E.y1,E.x1),$(E.y0,E.x0),!v))}else r.lineTo(u+Y,l+V),r.arc(u,l,n,f,h,v)}r.closePath()}}}var Ef=(function(){function r(){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 r})(),If=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ef},t.prototype.buildPath=function(e,i){Af(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Z);If.prototype.type="sector";var Of=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Ff=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Of},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(Z);Ff.prototype.type="ring";function Bf(r,t,e,i){var n=[],a=[],o=[],s=[],h,f,u,l;if(i){u=[1/0,1/0],l=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Lr(u,u,r[v]),Pr(l,l,r[v]);Lr(u,u,i[0]),Pr(l,l,i[1])}for(var v=0,c=r.length;v<c;v++){var _=r[v];if(e)h=r[v?v-1:c-1],f=r[(v+1)%c];else if(v===0||v===c-1){n.push(ns(r[v]));continue}else h=r[v-1],f=r[v+1];as(a,f,h),hi(a,a,t);var g=Vi(_,h),p=Vi(_,f),d=g+p;d!==0&&(g/=d,p/=d),hi(o,a,-g),hi(s,a,p);var y=Dn([],_,o),m=Dn([],_,s);i&&(Pr(y,y,u),Lr(y,y,l),Pr(m,m,u),Lr(m,m,l)),n.push(y),n.push(m)}return e&&n.push(n.shift()),n}function Ao(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=Bf(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var h=a[s*2],f=a[s*2+1],u=n[(s+1)%o];r.bezierCurveTo(h[0],h[1],f[0],f[1],u[0],u[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,l=n.length;s<l;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Hf=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),zf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Hf},t.prototype.buildPath=function(e,i){Ao(e,i,!0)},t})(Z);zf.prototype.type="polygon";var kf=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Wf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kf},t.prototype.buildPath=function(e,i){Ao(e,i,!1)},t})(Z);Wf.prototype.type="polyline";var Nf={},Yf=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Xf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yf},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var h=sf(Nf,i,this.style);n=h.x1,a=h.y1,o=h.x2,s=h.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var f=i.percent;f!==0&&(e.moveTo(n,a),f<1&&(o=n*(1-f)+o*f,s=a*(1-f)+s*f),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(Z);Xf.prototype.type="line";var tt=[],Gf=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function xa(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?Xn:q)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Xn:q)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Gn:U)(r.x1,r.cpx1,r.x2,t),(e?Gn:U)(r.y1,r.cpy1,r.y2,t)]}var qf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Gf},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,h=i.cpx1,f=i.cpy1,u=i.cpx2,l=i.cpy2,v=i.percent;v!==0&&(e.moveTo(n,a),u==null||l==null?(v<1&&(Ze(n,h,o,v,tt),h=tt[1],o=tt[2],Ze(a,f,s,v,tt),f=tt[1],s=tt[2]),e.quadraticCurveTo(h,f,o,s)):(v<1&&(Ue(n,h,u,o,v,tt),h=tt[1],u=tt[2],o=tt[3],Ue(a,f,l,s,v,tt),f=tt[1],l=tt[2],s=tt[3]),e.bezierCurveTo(h,f,u,l,o,s)))},t.prototype.pointAt=function(e){return xa(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=xa(this.shape,e,!0);return hs(i,i)},t})(Z);qf.prototype.type="bezier-curve";var $f=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Uf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $f},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,h=i.endAngle,f=i.clockwise,u=Math.cos(s),l=Math.sin(s);e.moveTo(u*o+n,l*o+a),e.arc(n,a,o,s,h,!f)},t})(Z);Uf.prototype.type="arc";var $u=(function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Z.prototype.getBoundingRect.call(this)},t})(Z),Eo=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),Uu=(function(r){F(t,r);function t(e,i,n,a,o,s){var h=r.call(this,o)||this;return h.x=e??0,h.y=i??0,h.x2=n??1,h.y2=a??0,h.type="linear",h.global=s||!1,h}return t})(Eo),Zu=(function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(Eo),qi=Math.min,Zf=Math.max,De=Math.abs,ar=[0,0],or=[0,0],X=Ka(),Ae=X.minTv,Ee=X.maxTv,Vu=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new W;for(var i=0;i<2;i++)this._axes[i]=new W;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,h=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,h),i[3].set(a,h),e)for(var f=0;f<4;f++)i[f].transform(e);W.sub(n[0],i[1],i[0]),W.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var f=0;f<2;f++)this._origin[f]=n[f].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&W.set(e,0,0),X.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!X.negativeSize&&W.copy(e,n?X.useDir?X.dirMinTv:Ae:Ee),n},r.prototype._intersectCheckOneSide=function(t,e,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ar),t._getProjMinMaxOnAxis(o,e._corners,or),X.negativeSize||ar[1]<or[0]||ar[0]>or[1]){if(a=!1,X.negativeSize||i)return a;var h=De(or[0]-ar[1]),f=De(ar[0]-or[1]);qi(h,f)>Ee.len()&&(h<f?W.scale(Ee,s,-h*n):W.scale(Ee,s,f*n))}else if(!i){var h=De(or[0]-ar[1]),f=De(ar[0]-or[1]);(X.useDir||qi(h,f)<Ae.len())&&((h<f||!X.bidirectional)&&(W.scale(Ae,s,h*n),X.useDir&&X.calcDirMTV()),(h>=f||!X.bidirectional)&&(W.scale(Ae,s,-f*n),X.useDir&&X.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,h=o,f=1;f<e.length;f++){var u=e[f].dot(n)+a[t];s=qi(u,s),h=Zf(u,h)}i[0]=s+X.touchThreshold,i[1]=h-X.touchThreshold,X.negativeSize=i[1]<i[0]},r})(),Vf=[],Qu=(function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new O(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(Vf)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(ce),Qf=Math.round(Math.random()*9),Kf=typeof Object.defineProperty=="function",Ku=(function(){function r(){this._id="__ec_inner_"+Qf++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return Kf?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})();function fr(r){return isFinite(r)}function Jf(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=fr(i)?i:0,n=fr(n)?n:1,a=fr(a)?a:0,o=fr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function jf(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,h=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,h=h*a),o=fr(o)?o:.5,s=fr(s)?s:.5,h=h>=0&&fr(h)?h:.5;var f=r.createRadialGradient(o,s,0,o,s,h);return f}function gn(r,t,e){for(var i=t.type==="radial"?jf(r,t,e):Jf(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function tu(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Ie(r){return parseInt(r,10)}function Oe(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Ie(s[i])||Ie(r.style[i]))-(Ie(s[a])||0)-(Ie(s[o])||0)|0}function ru(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Be(r)?[r]:ae(r)?r:null}function Io(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&ru(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Fr(e,function(a){return a/n}),i/=n)}return[e,i]}var eu=new Hr(!0);function Je(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Ra(r){return typeof r=="string"&&r!=="none"}function je(r){var t=r.fill;return t!=null&&t!=="none"}function Da(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Aa(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function yn(r,t,e){var i=mo(t.image,t.__image,e);if(oi(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*is),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function iu(r,t,e,i){var n,a=Je(e),o=je(e),s=e.strokePercent,h=s<1,f=!t.path;(!t.silent||h)&&f&&t.createPathProxy();var u=t.path||eu,l=t.__dirty;if(!i){var v=e.fill,c=e.stroke,_=o&&!!v.colorStops,g=a&&!!c.colorStops,p=o&&!!v.image,d=a&&!!c.image,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0;(_||g)&&(T=t.getBoundingRect()),_&&(y=l?gn(r,v,T):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=l?gn(r,c,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=l||!t.__canvasFillPattern?yn(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=w),d&&(b=l||!t.__canvasStrokePattern?yn(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),_?r.fillStyle=y:p&&(w?r.fillStyle=w:o=!1),g?r.strokeStyle=m:d&&(b?r.strokeStyle=b:a=!1)}var S=t.getGlobalScale();u.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,L;r.setLineDash&&e.lineDash&&(n=Io(t),C=n[0],L=n[1]);var P=!0;(f||l&Sr)&&(u.setDPR(r.dpr),h?u.setContext(null):(u.setContext(r),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(r,h?s:1),C&&(r.setLineDash(C),r.lineDashOffset=L),i||(e.strokeFirst?(a&&Aa(r,e),o&&Da(r,e)):(o&&Da(r,e),a&&Aa(r,e))),C&&r.setLineDash([])}function nu(r,t,e){var i=t.__image=mo(e.image,t.__image,t,t.onload);if(!(!i||!oi(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),h=i.width/i.height;if(o==null&&s!=null?o=s*h:s==null&&o!=null?s=o/h:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var f=e.sx||0,u=e.sy||0;r.drawImage(i,f,u,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var f=e.sx,u=e.sy,l=o-f,v=s-u;r.drawImage(i,f,u,l,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function au(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Xt,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=Io(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Je(e)&&r.strokeText(n,e.x,e.y),je(e)&&r.fillText(n,e.x,e.y)):(je(e)&&r.fillText(n,e.x,e.y),Je(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Ea=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ia=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Oo(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){it(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?dr.opacity:o}(i||t.blend!==e.blend)&&(a||(it(r,n),a=!0),r.globalCompositeOperation=t.blend||dr.blend);for(var s=0;s<Ea.length;s++){var h=Ea[s];(i||t[h]!==e[h])&&(a||(it(r,n),a=!0),r[h]=r.dpr*(t[h]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(it(r,n),a=!0),r.shadowColor=t.shadowColor||dr.shadowColor),a}function Oa(r,t,e,i,n){var a=ue(t,n.inHover),o=i?null:e&&ue(e,n.inHover)||{};if(a===o)return!1;var s=Oo(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(it(r,n),s=!0),Ra(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(it(r,n),s=!0),Ra(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(it(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var h=a.lineWidth,f=h/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==f&&(s||(it(r,n),s=!0),r.lineWidth=f)}for(var u=0;u<Ia.length;u++){var l=Ia[u],v=l[0];(i||a[v]!==o[v])&&(s||(it(r,n),s=!0),r[v]=a[v]||l[1])}return s}function ou(r,t,e,i,n){return Oo(r,ue(t,n.inHover),e&&ue(e,n.inHover),i,n)}function Fo(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function su(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),Fo(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function hu(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Fa=1,Ba=2,Ha=3,za=4;function fu(r){var t=je(r),e=Je(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function it(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ue(r,t){return t&&r.__hoverStyle||r.style}function uu(r,t){ur(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ur(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ot,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,h=!1;if((!o||tu(a,o))&&(o&&o.length&&(it(r,e),r.restore(),h=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(it(r,e),r.save(),su(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var f=e.prevEl;f||(h=s=!0);var u=t instanceof Z&&t.autoBatch&&fu(t.style);s||hu(n,f.transform)?(it(r,e),Fo(r,t)):u||it(r,e);var l=ue(t,e.inHover);t instanceof Z?(e.lastDrawType!==Fa&&(h=!0,e.lastDrawType=Fa),Oa(r,t,f,h,e),(!u||!e.batchFill&&!e.batchStroke)&&r.beginPath(),iu(r,t,l,u),u&&(e.batchFill=l.fill||"",e.batchStroke=l.stroke||"")):t instanceof Ke?(e.lastDrawType!==Ha&&(h=!0,e.lastDrawType=Ha),Oa(r,t,f,h,e),au(r,t,l)):t instanceof Pn?(e.lastDrawType!==Ba&&(h=!0,e.lastDrawType=Ba),ou(r,t,f,h,e),nu(r,t,l)):t.getTemporalDisplayables&&(e.lastDrawType!==za&&(h=!0,e.lastDrawType=za),lu(r,t,e)),u&&i&&it(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function lu(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var h=i[o];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),ur(r,h,a,o===s-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}for(var f=0,u=n.length;f<u;f++){var h=n[f];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),ur(r,h,a,f===u-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}function ka(r,t,e){var i=pr.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var $i=(function(r){F(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Qe,typeof e=="string"?o=ka(e,i,n):kt(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Za(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=ka("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,h=!1,f=new O(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var m=new O(0,0,0,0);m.copy(y),o.push(m)}else{for(var w=!1,b=1/0,T=0,S=0;S<o.length;++S){var C=o[S];if(C.intersect(y)){var L=new O(0,0,0,0);L.copy(C),L.union(y),o[S]=L,w=!0;break}else if(h){f.copy(y),f.union(C);var P=y.width*y.height,M=C.width*C.height,D=f.width*f.height,R=D-P-M;R<b&&(b=R,T=S)}}if(h&&(o[T].union(y),w=!0),!w){var m=new O(0,0,0,0);m.copy(y),o.push(m)}h||(h=o.length>=s)}}for(var l=this.__startIndex;l<this.__endIndex;++l){var v=e[l];if(v){var c=v.shouldBePainted(n,a,!0,!0),_=v.__isRendered&&(v.__dirty&ot||!c)?v.getPrevPaintRect():null;_&&u(_);var g=c&&(v.__dirty&ot||!v.__isRendered)?v.getPaintRect():null;g&&u(g)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var v=i[l],c=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var _=v.getPrevPaintRect();_&&u(_)}}var p;do{p=!1;for(var l=0;l<o.length;){if(o[l].isZero()){o.splice(l,1);continue}for(var d=l+1;d<o.length;)o[l].intersect(o[d])?(p=!0,o[l].union(o[d]),o.splice(d,1)):d++;l++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,h=a.height;i=i||this.clearColor;var f=this.motionBlur&&!e,u=this.lastFrameAlpha,l=this.dpr,v=this;f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/l,h/l));var c=this.domBack;function _(g,p,d,y){if(o.clearRect(g,p,d,y),i&&i!=="transparent"){var m=void 0;if(ei(i)){var w=i.global||i.__width===d&&i.__height===y;m=w&&i.__canvasGradient||gn(o,i,{x:0,y:0,width:d,height:y}),i.__canvasGradient=m,i.__width=d,i.__height=y}else Ko(i)&&(i.scaleX=i.scaleX||l,i.scaleY=i.scaleY||l,m=yn(o,i,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=m||i,o.fillRect(g,p,d,y),o.restore()}f&&(o.save(),o.globalAlpha=u,o.drawImage(c,g,p,d,y),o.restore())}!n||f?_(0,0,s,h):n.length&&nt(n,function(g){_(g.x*l,g.y*l,g.width*l,g.height*l)})},t})(kr),Wa=1e5,sr=314159,Fe=.01,vu=.001;function cu(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function du(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var Ju=(function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=H({},i||{}),this.dpr=i.devicePixelRatio||Qe,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Za(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var h=this._layers;if(a){var u=t,l=u.width,v=u.height;i.width!=null&&(l=i.width),i.height!=null&&(v=i.height),this.dpr=i.devicePixelRatio||1,u.width=l*this.dpr,u.height=v*this.dpr,this._width=l,this._height=v;var c=new $i(u,this,this.dpr);c.__builtin__=!0,c.initContext(),h[sr]=c,c.zlevel=sr,s.push(sr),this._domRoot=t}else{this._width=Oe(t,0,i),this._height=Oe(t,1,i);var f=this._domRoot=du(this._width,this._height);t.appendChild(f)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var h=a===0?this._backgroundColor:null;s.refresh(h)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Wa)),a||(a=i.ctx,a.save()),ur(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Wa)},r.prototype.paintOne=function(t,e){uu(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(f){f.afterBrush&&f.afterBrush()});else{var h=this;qe(function(){h._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(sr).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var h=this._zlevelList[s],f=this._layers[h];f.__builtin__&&f!==this._hoverlayer&&(f.__dirty||i)&&a.push(f)}for(var u=!0,l=!1,v=function(g){var p=a[g],d=p.ctx,y=o&&p.createRepaintRects(t,e,c._width,c._height),m=i?p.__startIndex:p.__drawIndex,w=!i&&p.incremental&&Date.now,b=w&&Date.now(),T=p.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,T,y);else if(m===p.__startIndex){var S=t[m];(!S.incremental||!S.notClear||i)&&p.clear(!1,T,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var C,L=function(R){var x={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=m;C<p.__endIndex;C++){var B=t[C];if(B.__inHover&&(l=!0),n._doPaintEl(B,p,o,R,x,C===p.__endIndex-1),w){var k=Date.now()-b;if(k>15)break}}x.prevElClipPaths&&d.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var P=c.dpr,M=0;M<y.length;++M){var D=y[M];d.save(),d.beginPath(),d.rect(D.x*P,D.y*P,D.width*P,D.height*P),d.clip(),L(D),d.restore()}else d.save(),L(),d.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(u=!1)},c=this,_=0;_<a.length;_++)v(_);return z.wxa&&nt(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:u,needsRefreshHover:l}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var h=t.getPaintRect();(!n||h&&h.intersect(n))&&(ur(s,t,a,o),t.setPrevPaintRect(h))}else ur(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=sr);var i=this._layers[t];return i||(i=new $i("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?Ur(i,this._layerConfig[t],!0):this._layerConfig[t-Fe]&&Ur(i,this._layerConfig[t-Fe],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,h=-1;if(!i[t]&&cu(e)){if(a>0&&t>n[0]){for(h=0;h<a-1&&!(n[h]<t&&n[h+1]>t);h++);s=i[n[h]]}if(n.splice(h+1,0,t),i[t]=e,!e.virtual)if(s){var f=s.dom;f.nextSibling?o.insertBefore(e.dom,f.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(l,v){l.__dirty=l.__used=!1});function e(l){a&&(a.__endIndex!==l&&(a.__dirty=!0),a.__endIndex=l)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,h;for(h=0;h<t.length;h++){var n=t[h],f=n.zlevel,u=void 0;s!==f&&(s=f,o=0),n.incremental?(u=this.getLayer(f+vu,this._needsManuallyCompositing),u.incremental=!0,o=1):u=this.getLayer(f+(o>0?Fe:0),this._needsManuallyCompositing),u.__builtin__||bn("ZLevel "+f+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==h&&(u.__dirty=!0),u.__startIndex=h,u.incremental?u.__drawIndex=-1:u.__drawIndex=h,e(h),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=h))}e(h),this.eachBuiltinLayer(function(l,v){!l.__used&&l.getElementCount()>0&&(l.__dirty=!0,l.__startIndex=l.__endIndex=l.__drawIndex=0),l.__dirty&&l.__drawIndex<0&&(l.__drawIndex=l.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,nt(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?Ur(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Fe){var o=this._layers[a];Ur(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(St(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Oe(a,0,n),e=Oe(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(sr).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[sr].dom;var e=new $i("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(l){l.__builtin__?i.drawImage(l.dom,0,0,n,a):l.renderToCanvas&&(i.save(),l.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),h=0,f=s.length;h<f;h++){var u=s[h];ur(i,u,o,h===f-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();export{W as $,Ls as A,vi as B,O as C,Ps as D,sf as E,hf as F,Gu as G,Or as H,re as I,Lf as J,Mf as K,zf as L,Wf as M,Po as N,Xf as O,Z as P,qf as Q,Ff as R,If as S,co as T,Uf as U,$u as V,go as W,Qu as X,Uu as Y,Pn as Z,Vu as _,ae as a,he as a$,Zu as a0,vf as a1,jo as a2,He as a3,Zr as a4,Ur as a5,Ga as a6,Eu as a7,yu as a8,Bu as a9,no as aA,q as aB,Fu as aC,Yh as aD,Ms as aE,wu as aF,dh as aG,_u as aH,Iu as aI,bs as aJ,Pu as aK,ve as aL,Ou as aM,Pt as aN,Hu as aO,ns as aP,hs as aQ,hi as aR,zr as aS,as as aT,os as aU,Mu as aV,xu as aW,Yu as aX,Ze as aY,U as aZ,Er as a_,Qo as aa,xn as ab,gu as ac,bu as ad,Su as ae,Ar as af,_h as ag,Ku as ah,oe as ai,pr as aj,uu as ak,kr as al,Wu as am,Ws as an,qa as ao,fe as ap,Jo as aq,Nu as ar,ku as as,fs as at,Ru as au,Hr as av,qs as aw,Ys as ax,Pe as ay,Ju as az,Be as b,ze as b0,ce as b1,On as b2,Ui as b3,pt as b4,Du as b5,Au as b6,kt as c,Cu as d,z as e,nt as f,mu as g,Tu as h,Xe as i,St as j,pu as k,H as l,Fr as m,lr as n,zu as o,Rt as p,st as q,ri as r,vt as s,qu as t,Dr as u,Xu as v,Lu as w,_r as x,Qa as y,te as z};
|
|
8
|
+
`){h&&(s+=h,u+=f),a.push(s),o.push(u),s="",h="",f=0,u=0;continue}var _=po(l,c.charCodeAt(0)),g=i?!1:!Fh(c);if(a.length?u+_>e:n+u+_>e){u?(s||h)&&(g?(s||(s=h,h="",f=0,u=f),a.push(s),o.push(u-f),h+=c,f+=_,s="",u=f):(h&&(s+=h,h="",f=0),a.push(s),o.push(u),s=c,u=_)):g?(a.push(h),o.push(f),h=c,f=_):(a.push(c),o.push(_));continue}u+=_,g?(h+=c,f+=_):(h&&(s+=h,h="",f=0),s+=c)}return h&&(s+=h),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function oa(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;O.set(sa,Br(e,o,n),cr(i,s,a),o,s),O.intersect(t,sa,null,ha);var h=ha.outIntersectRect;r.outerWidth=h.width,r.outerHeight=h.height,r.baseX=Br(h.x,h.width,n,!0),r.baseY=cr(h.y,h.height,a,!0)}}var sa=new O(0,0,0,0),ha={outIntersectRect:{},clamp:!0};function Ln(r){return r!=null?r+="":r=""}function Bh(r){var t=Ln(r.text),e=r.font,i=xt(Mt(e),t),n=ni(e);return cn(r,i,n,null)}function cn(r,t,e,i){var n=new O(Br(r.x||0,t,r.textAlign),cr(r.y||0,e,r.textBaseline),t,e),a=i??(Co(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Co(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var dn="__zr_style_"+Math.round(Math.random()*10),dr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},si={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};dr[dn]=!0;var fa=["z","z2","invisible"],Hh=["invisible"],ce=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=st(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zh(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var h=this.parent;h;){if(h.ignore)return!1;h=h.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,h=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new O(0,0,0,0)),i?O.applyTransform(e,n,i):e.copy(n),(o||s||h)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(h),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+h-o));var f=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-f),e.y=Math.floor(e.y-f),e.width=Math.ceil(e.width+1+f*2),e.height=Math.ceil(e.height+1+f*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new O(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:H(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Qr,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Qr)},t.prototype.styleUpdated=function(){this.__dirty&=~Qr},t.prototype.createStyle=function(e){return ii(dr,e)},t.prototype.useStyle=function(e){e[dn]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[dn]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,fa)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):h&&(f=n.style),f)if(o){var u=this.style;if(this.style=this.createStyle(h?{}:u),h)for(var l=st(u),v=0;v<l.length;v++){var c=l[v];c in f&&(f[c]=f[c],this.style[c]=u[c])}for(var _=st(f),v=0;v<_.length;v++){var c=_[v];this.style[c]=this.style[c]}this._transitionState(e,{style:f},s,this.getAnimationStyleProps())}else this.useStyle(f);for(var g=this.__inHover?Hh:fa,v=0;v<g.length;v++){var c=g[v];i&&i[c]!=null?this[c]=i[c]:h&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return H(e,i),e},t.prototype.getAnimationStyleProps=function(){return si},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ot|Qr})(),t})(ai),Ii=new O(0,0,0,0),Oi=new O(0,0,0,0);function zh(r,t,e){return Ii.copy(r.getBoundingRect()),r.transform&&Ii.applyTransform(r.transform),Oi.width=t,Oi.height=e,!Ii.intersect(Oi)}var rt=Math.min,et=Math.max,Fi=Math.sin,Bi=Math.cos,Kt=Math.PI*2,Ce=zr(),Se=zr(),Le=zr();function Yu(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],h=1;h<r.length;h++)i=r[h],n=rt(n,i[0]),a=et(a,i[0]),o=rt(o,i[1]),s=et(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function ua(r,t,e,i,n,a){n[0]=rt(r,e),n[1]=rt(t,i),a[0]=et(r,e),a[1]=et(t,i)}var la=[],va=[];function kh(r,t,e,i,n,a,o,s,h,f){var u=ao,l=q,v=u(r,e,n,o,la);h[0]=1/0,h[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var c=0;c<v;c++){var _=l(r,e,n,o,la[c]);h[0]=rt(_,h[0]),f[0]=et(_,f[0])}v=u(t,i,a,s,va);for(var c=0;c<v;c++){var g=l(t,i,a,s,va[c]);h[1]=rt(g,h[1]),f[1]=et(g,f[1])}h[0]=rt(r,h[0]),f[0]=et(r,f[0]),h[0]=rt(o,h[0]),f[0]=et(o,f[0]),h[1]=rt(t,h[1]),f[1]=et(t,f[1]),h[1]=rt(s,h[1]),f[1]=et(s,f[1])}function Wh(r,t,e,i,n,a,o,s){var h=oo,f=U,u=et(rt(h(r,e,n),1),0),l=et(rt(h(t,i,a),1),0),v=f(r,e,n,u),c=f(t,i,a,l);o[0]=rt(r,n,v),o[1]=rt(t,a,c),s[0]=et(r,n,v),s[1]=et(t,a,c)}function Nh(r,t,e,i,n,a,o,s,h){var f=Lr,u=Pr,l=Math.abs(n-a);if(l%Kt<1e-4&&l>1e-4){s[0]=r-e,s[1]=t-i,h[0]=r+e,h[1]=t+i;return}if(Ce[0]=Bi(n)*e+r,Ce[1]=Fi(n)*i+t,Se[0]=Bi(a)*e+r,Se[1]=Fi(a)*i+t,f(s,Ce,Se),u(h,Ce,Se),n=n%Kt,n<0&&(n=n+Kt),a=a%Kt,a<0&&(a=a+Kt),n>a&&!o?a+=Kt:n<a&&o&&(n+=Kt),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(Le[0]=Bi(c)*e+r,Le[1]=Fi(c)*i+t,f(s,Le,s),u(h,Le,h))}var I={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Jt=[],jt=[],mt=[],Bt=[],wt=[],Tt=[],Hi=Math.min,zi=Math.max,tr=Math.cos,rr=Math.sin,At=Math.abs,pn=Math.PI,zt=pn*2,ki=typeof Float32Array<"u",Gr=[];function Wi(r){var t=Math.round(r/pn*1e8)/1e8;return t%2*pn}function Yh(r,t){var e=Wi(r[0]);e<0&&(e+=zt);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=zt?n=e+zt:t&&e-n>=zt?n=e-zt:!t&&e>n?n=e+(zt-Wi(e-n)):t&&e<n&&(n=e-(zt-Wi(n-e))),r[0]=e,r[1]=n}var Hr=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=At(i/Qe/t)||0,this._uy=At(i/Qe/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(I.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=At(t-this._xi),n=At(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(I.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(I.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(I.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Gr[0]=n,Gr[1]=a,Yh(Gr,o),n=Gr[0],a=Gr[1];var s=a-n;return this.addData(I.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=tr(a)*i+t,this._yi=rr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(I.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(I.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&ki&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(ki&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var h=t[a].data,s=0;s<h.length;s++)this.data[n++]=h[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,h,f){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var l=0;l<arguments.length;l++)u[this._len++]=arguments[l]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ki&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){mt[0]=mt[1]=wt[0]=wt[1]=Number.MAX_VALUE,Bt[0]=Bt[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],h=o===1;switch(h&&(e=t[o],i=t[o+1],n=e,a=i),s){case I.M:e=n=t[o++],i=a=t[o++],wt[0]=n,wt[1]=a,Tt[0]=n,Tt[1]=a;break;case I.L:ua(e,i,t[o],t[o+1],wt,Tt),e=t[o++],i=t[o++];break;case I.C:kh(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],wt,Tt),e=t[o++],i=t[o++];break;case I.Q:Wh(e,i,t[o++],t[o++],t[o],t[o+1],wt,Tt),e=t[o++],i=t[o++];break;case I.A:var f=t[o++],u=t[o++],l=t[o++],v=t[o++],c=t[o++],_=t[o++]+c;o+=1;var g=!t[o++];h&&(n=tr(c)*l+f,a=rr(c)*v+u),Nh(f,u,l,v,c,_,g,wt,Tt),e=tr(_)*l+f,i=rr(_)*v+u;break;case I.R:n=e=t[o++],a=i=t[o++];var p=t[o++],d=t[o++];ua(n,a,n+p,a+d,wt,Tt);break;case I.Z:e=n,i=a;break}Lr(mt,mt,wt),Pr(Bt,Bt,Tt)}return o===0&&(mt[0]=mt[1]=Bt[0]=Bt[1]=0),new O(mt[0],mt[1],Bt[0]-mt[0],Bt[1]-mt[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,h=0;this._pathSegLen||(this._pathSegLen=[]);for(var f=this._pathSegLen,u=0,l=0,v=0;v<e;){var c=t[v++],_=v===1;_&&(a=t[v],o=t[v+1],s=a,h=o);var g=-1;switch(c){case I.M:a=s=t[v++],o=h=t[v++];break;case I.L:{var p=t[v++],d=t[v++],y=p-a,m=d-o;(At(y)>i||At(m)>n||v===e-1)&&(g=Math.sqrt(y*y+m*m),a=p,o=d);break}case I.C:{var w=t[v++],b=t[v++],p=t[v++],d=t[v++],T=t[v++],S=t[v++];g=Xs(a,o,w,b,p,d,T,S,10),a=T,o=S;break}case I.Q:{var w=t[v++],b=t[v++],p=t[v++],d=t[v++];g=$s(a,o,w,b,p,d,10),a=p,o=d;break}case I.A:var C=t[v++],L=t[v++],P=t[v++],M=t[v++],D=t[v++],R=t[v++],x=R+D;v+=1,_&&(s=tr(D)*P+C,h=rr(D)*M+L),g=zi(P,M)*Hi(zt,Math.abs(R)),a=tr(x)*P+C,o=rr(x)*M+L;break;case I.R:{s=a=t[v++],h=o=t[v++];var B=t[v++],k=t[v++];g=B*2+k*2;break}case I.Z:{var y=s-a,m=h-o;g=Math.sqrt(y*y+m*m),a=s,o=h;break}}g>=0&&(f[l++]=g,u+=g)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,h,f,u,l,v,c=e<1,_,g,p=0,d=0,y,m=0,w,b;if(!(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var T=0;T<o;){var S=i[T++],C=T===1;switch(C&&(f=i[T],u=i[T+1],s=f,h=u),S!==I.L&&m>0&&(t.lineTo(w,b),m=0),S){case I.M:s=f=i[T++],h=u=i[T++],t.moveTo(f,u);break;case I.L:{l=i[T++],v=i[T++];var L=At(l-f),P=At(v-u);if(L>n||P>a){if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;t.lineTo(f*(1-D)+l*D,u*(1-D)+v*D);break t}p+=M}t.lineTo(l,v),f=l,u=v,m=0}else{var R=L*L+P*P;R>m&&(w=l,b=v,m=R)}break}case I.C:{var x=i[T++],B=i[T++],k=i[T++],Y=i[T++],V=i[T++],Dt=i[T++];if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;Ue(f,x,k,V,D,Jt),Ue(u,B,Y,Dt,D,jt),t.bezierCurveTo(Jt[1],jt[1],Jt[2],jt[2],Jt[3],jt[3]);break t}p+=M}t.bezierCurveTo(x,B,k,Y,V,Dt),f=V,u=Dt;break}case I.Q:{var x=i[T++],B=i[T++],k=i[T++],Y=i[T++];if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;Ze(f,x,k,D,Jt),Ze(u,B,Y,D,jt),t.quadraticCurveTo(Jt[1],jt[1],Jt[2],jt[2]);break t}p+=M}t.quadraticCurveTo(x,B,k,Y),f=k,u=Y;break}case I.A:var j=i[T++],ht=i[T++],N=i[T++],G=i[T++],Q=i[T++],It=i[T++],Ot=i[T++],Ft=!i[T++],Gt=N>G?N:G,ct=At(N-G)>.001,K=Q+It,A=!1;if(c){var M=_[d++];p+M>y&&(K=Q+It*(y-p)/M,A=!0),p+=M}if(ct&&t.ellipse?t.ellipse(j,ht,N,G,Ot,Q,K,Ft):t.arc(j,ht,Gt,Q,K,Ft),A)break t;C&&(s=tr(Q)*N+j,h=rr(Q)*G+ht),f=tr(K)*N+j,u=rr(K)*G+ht;break;case I.R:s=f=i[T],h=u=i[T+1],l=i[T++],v=i[T++];var E=i[T++],Wr=i[T++];if(c){var M=_[d++];if(p+M>y){var yt=y-p;t.moveTo(l,v),t.lineTo(l+Hi(yt,E),v),yt-=E,yt>0&&t.lineTo(l+E,v+Hi(yt,Wr)),yt-=Wr,yt>0&&t.lineTo(l+zi(E-yt,0),v+Wr),yt-=E,yt>0&&t.lineTo(l,v+zi(Wr-yt,0));break t}p+=M}t.rect(l,v,E,Wr);break;case I.Z:if(c){var M=_[d++];if(p+M>y){var D=(y-p)/M;t.lineTo(f*(1-D)+s*D,u*(1-D)+h*D);break t}p+=M}t.closePath(),f=s,u=h}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=I,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Tr(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,h=0,f=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)h=(t-i)/(r-e),f=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var u=h*a-o+f,l=u*u/(h*h+1);return l<=s/2*s/2}function Xh(r,t,e,i,n,a,o,s,h,f,u){if(h===0)return!1;var l=h;if(u>t+l&&u>i+l&&u>a+l&&u>s+l||u<t-l&&u<i-l&&u<a-l&&u<s-l||f>r+l&&f>e+l&&f>n+l&&f>o+l||f<r-l&&f<e-l&&f<n-l&&f<o-l)return!1;var v=Ys(r,t,e,i,n,a,o,s,f,u,null);return v<=l/2}function Gh(r,t,e,i,n,a,o,s,h){if(o===0)return!1;var f=o;if(h>t+f&&h>i+f&&h>a+f||h<t-f&&h<i-f&&h<a-f||s>r+f&&s>e+f&&s>n+f||s<r-f&&s<e-f&&s<n-f)return!1;var u=qs(r,t,e,i,n,a,s,h,null);return u<=f/2}var ca=Math.PI*2;function Pe(r){return r%=ca,r<0&&(r+=ca),r}var qr=Math.PI*2;function qh(r,t,e,i,n,a,o,s,h){if(o===0)return!1;var f=o;s-=r,h-=t;var u=Math.sqrt(s*s+h*h);if(u-f>e||u+f<e)return!1;if(Math.abs(i-n)%qr<1e-4)return!0;if(a){var l=i;i=Pe(n),n=Pe(l)}else i=Pe(i),n=Pe(n);i>n&&(n+=qr);var v=Math.atan2(h,s);return v<0&&(v+=qr),v>=i&&v<=n||v+qr>=i&&v+qr<=n}function er(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var h=o*(e-r)+r;return h===n?1/0:h>n?s:0}var Ht=Hr.CMD,ir=Math.PI*2,$h=1e-4;function Uh(r,t){return Math.abs(r-t)<$h}var J=[-1,-1,-1],ut=[-1,-1];function Zh(){var r=ut[0];ut[0]=ut[1],ut[1]=r}function Vh(r,t,e,i,n,a,o,s,h,f){if(f>t&&f>i&&f>a&&f>s||f<t&&f<i&&f<a&&f<s)return 0;var u=no(t,i,a,s,f,J);if(u===0)return 0;for(var l=0,v=-1,c=void 0,_=void 0,g=0;g<u;g++){var p=J[g],d=p===0||p===1?.5:1,y=q(r,e,n,o,p);y<h||(v<0&&(v=ao(t,i,a,s,ut),ut[1]<ut[0]&&v>1&&Zh(),c=q(t,i,a,s,ut[0]),v>1&&(_=q(t,i,a,s,ut[1]))),v===2?p<ut[0]?l+=c<t?d:-d:p<ut[1]?l+=_<c?d:-d:l+=s<_?d:-d:p<ut[0]?l+=c<t?d:-d:l+=s<c?d:-d)}return l}function Qh(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var h=Gs(t,i,a,s,J);if(h===0)return 0;var f=oo(t,i,a);if(f>=0&&f<=1){for(var u=0,l=U(t,i,a,f),v=0;v<h;v++){var c=J[v]===0||J[v]===1?.5:1,_=U(r,e,n,J[v]);_<o||(J[v]<f?u+=l<t?c:-c:u+=a<l?c:-c)}return u}else{var c=J[0]===0||J[0]===1?.5:1,_=U(r,e,n,J[0]);return _<o?0:a<t?c:-c}}function Kh(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var h=Math.sqrt(e*e-s*s);J[0]=-h,J[1]=h;var f=Math.abs(i-n);if(f<1e-4)return 0;if(f>=ir-1e-4){i=0,n=ir;var u=a?1:-1;return o>=J[0]+r&&o<=J[1]+r?u:0}if(i>n){var l=i;i=n,n=l}i<0&&(i+=ir,n+=ir);for(var v=0,c=0;c<2;c++){var _=J[c];if(_+r>o){var g=Math.atan2(s,_),u=a?1:-1;g<0&&(g=ir+g),(g>=i&&g<=n||g+ir>=i&&g+ir<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(u=-u),v+=u)}}return v}function So(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,h=0,f=0,u=0,l=0,v,c,_=0;_<o;){var g=a[_++],p=_===1;switch(g===Ht.M&&_>1&&(e||(s+=er(h,f,u,l,i,n))),p&&(h=a[_],f=a[_+1],u=h,l=f),g){case Ht.M:u=a[_++],l=a[_++],h=u,f=l;break;case Ht.L:if(e){if(Tr(h,f,a[_],a[_+1],t,i,n))return!0}else s+=er(h,f,a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Ht.C:if(e){if(Xh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Vh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Ht.Q:if(e){if(Gh(h,f,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Qh(h,f,a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Ht.A:var d=a[_++],y=a[_++],m=a[_++],w=a[_++],b=a[_++],T=a[_++];_+=1;var S=!!(1-a[_++]);v=Math.cos(b)*m+d,c=Math.sin(b)*w+y,p?(u=v,l=c):s+=er(h,f,v,c,i,n);var C=(i-d)*w/m+d;if(e){if(qh(d,y,w,b,b+T,S,t,C,n))return!0}else s+=Kh(d,y,w,b,b+T,S,C,n);h=Math.cos(b+T)*m+d,f=Math.sin(b+T)*w+y;break;case Ht.R:u=h=a[_++],l=f=a[_++];var L=a[_++],P=a[_++];if(v=u+L,c=l+P,e){if(Tr(u,l,v,l,t,i,n)||Tr(v,l,v,c,t,i,n)||Tr(v,c,u,c,t,i,n)||Tr(u,c,u,l,t,i,n))return!0}else s+=er(v,l,v,c,i,n),s+=er(u,c,u,l,i,n);break;case Ht.Z:if(e){if(Tr(h,f,u,l,t,i,n))return!0}else s+=er(h,f,u,l,i,n);h=u,f=l;break}}return!e&&!Uh(f,l)&&(s+=er(h,f,u,l,i,n)||0),s!==0}function Jh(r,t,e){return So(r,0,!1,t,e)}function jh(r,t,e,i){return So(r,t,!0,e,i)}var Lo=_r({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},dr),tf={style:_r({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},si.style)},Ni=he.concat(["invisible","culling","z","z2","zlevel","parent"]),Z=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(h){e.buildPath(h,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Ni.length;++s)n[Ni[s]]=this[Ni[s]];n.__dirty|=ot}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=st(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Xe(e)){var i=Ve(e,0);return i>.5?un:i>.2?ch:ln}else if(e)return ln}return un},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(Xe(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Ve(e,0)<fn;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Sr},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Hr(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Sr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var h=i.strokeNoScale?this.getLineScale():1,f=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;f=Math.max(f,u??4)}h>1e-10&&(s.width+=f/h,s.height+=f/h,s.x-=f/h/2,s.y-=f/h/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var h=o.lineWidth,f=o.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),jh(s,h/f,e,i)))return!0}if(this.hasFill())return Jh(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Sr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:H(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Sr)},t.prototype.createStyle=function(e){return ii(Lo,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=H({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.shape?o?a?f=i.shape:(f=H({},n.shape),H(f,i.shape)):(f=H({},a?this.shape:n.shape),H(f,i.shape)):h&&(f=n.shape),f)if(o){this.shape=H({},this.shape);for(var u={},l=st(f),v=0;v<l.length;v++){var c=l[v];typeof f[c]=="object"?this.shape[c]=f[c]:u[c]=f[c]}this._transitionState(e,{shape:u},s)}else this.shape=f,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return tf},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){F(o,a);function o(s){var h=a.call(this,s)||this;return e.init&&e.init.call(h,s),h}return o.prototype.getDefaultStyle=function(){return Or(e.style)},o.prototype.getDefaultShape=function(){return Or(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ot|Qr|Sr})(),t})(ce),rf=_r({strokeFirst:!0,font:Xt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Lo),Ke=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Co(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return ii(rf,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Bh(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(ce);Ke.prototype.type="tspan";var ef=_r({x:0,y:0},dr),nf={style:_r({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},si.style)};function af(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Pn=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ii(ef,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=af(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return nf},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new O(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(ce);Pn.prototype.type="image";function of(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,h,f,u;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=h=f=u=o:o instanceof Array?o.length===1?s=h=f=u=o[0]:o.length===2?(s=f=o[0],h=u=o[1]):o.length===3?(s=o[0],h=u=o[1],f=o[2]):(s=o[0],h=o[1],f=o[2],u=o[3]):s=h=f=u=0;var l;s+h>n&&(l=s+h,s*=n/l,h*=n/l),f+u>n&&(l=f+u,f*=n/l,u*=n/l),h+f>a&&(l=h+f,h*=a/l,f*=a/l),s+u>a&&(l=s+u,s*=a/l,u*=a/l),r.moveTo(e+s,i),r.lineTo(e+n-h,i),h!==0&&r.arc(e+n-h,i+h,h,-Math.PI/2,0),r.lineTo(e+n,i+a-f),f!==0&&r.arc(e+n-f,i+a-f,f,0,Math.PI/2),r.lineTo(e+u,i+a),u!==0&&r.arc(e+u,i+a-u,u,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Rr=Math.round;function sf(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Rr(i*2)===Rr(n*2)&&(r.x1=r.x2=Dr(i,s,!0)),Rr(a*2)===Rr(o*2)&&(r.y1=r.y2=Dr(a,s,!0))),r}}function hf(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Dr(i,s,!0),r.y=Dr(n,s,!0),r.width=Math.max(Dr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Dr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Dr(r,t,e){if(!t)return r;var i=Rr(r*2);return(i+Rr(t))%2===0?i/2:(i+(e?1:-1))/2}var ff=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),uf={},Po=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ff},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var h=hf(uf,i,this.style);n=h.x,a=h.y,o=h.width,s=h.height,h.r=i.r,i=h}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?of(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Z);Po.prototype.type="rect";var da={fill:"#000"},pa=2,bt={},lf={style:_r({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},si.style)},vf=(function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=da,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,gf(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new O(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],h=s.getBoundingRect(),f=s.getLocalTransform(n);f?(e.copy(h),e.applyTransform(f),a=a||e.clone(),a.union(e)):(a=a||h.clone(),a.union(h))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||da},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return H(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=st(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},H(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return lf},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Xt,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,h=e.align||a.align||"left",f=e.verticalAlign||a.verticalAlign||"top";oa(bt,a.overflowRect,o,s,h,f),o=bt.baseX,s=bt.baseY;var u=ba(e),l=Rh(u,e,bt.outerWidth,bt.outerHeight),v=Yi(e),c=!!e.backgroundColor,_=l.outerHeight,g=l.outerWidth,p=l.lines,d=l.lineHeight;this.isTruncated=!!l.isTruncated;var y=o,m=cr(s,l.contentHeight,f);if(v||n){var w=Br(o,g,h),b=cr(s,_,f);v&&this._renderBackground(e,e,w,b,g,_)}m+=d/2,n&&(y=Ta(o,h,n),f==="top"?m+=n[0]:f==="bottom"&&(m-=n[2]));for(var T=0,S=!1,C=!1,L=wa("fill"in e?e.fill:(C=!0,a.fill)),P=ma("stroke"in e?e.stroke:!c&&(!a.autoStroke||C)?(T=pa,S=!0,a.stroke):null),M=e.textShadowBlur>0,D=0;D<p.length;D++){var R=this._getOrCreateChild(Ke),x=R.createStyle();R.useStyle(x),x.text=p[D],x.x=y,x.y=m,x.textAlign=h,x.textBaseline="middle",x.opacity=e.opacity,x.strokeFirst=!0,M&&(x.shadowBlur=e.textShadowBlur||0,x.shadowColor=e.textShadowColor||"transparent",x.shadowOffsetX=e.textShadowOffsetX||0,x.shadowOffsetY=e.textShadowOffsetY||0),x.stroke=P,x.fill=L,P&&(x.lineWidth=e.lineWidth||T,x.lineDash=e.lineDash,x.lineDashOffset=e.lineDashOffset||0),x.font=i,ga(x,e),m+=d,R.setBoundingRect(cn(x,l.contentWidth,l.calculatedLineHeight,S?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;oa(bt,i.overflowRect,o,s,n,a),o=bt.baseX,s=bt.baseY;var h=ba(e),f=Eh(h,e,bt.outerWidth,bt.outerHeight,n),u=f.width,l=f.outerWidth,v=f.outerHeight,c=e.padding;this.isTruncated=!!f.isTruncated;var _=Br(o,l,n),g=cr(s,v,a),p=_,d=g;c&&(p+=c[3],d+=c[0]);var y=p+u;Yi(e)&&this._renderBackground(e,e,_,g,l,v);for(var m=!!e.backgroundColor,w=0;w<f.lines.length;w++){for(var b=f.lines[w],T=b.tokens,S=T.length,C=b.lineHeight,L=b.width,P=0,M=p,D=y,R=S-1,x=void 0;P<S&&(x=T[P],!x.align||x.align==="left");)this._placeToken(x,e,C,d,M,"left",m),L-=x.width,M+=x.width,P++;for(;R>=0&&(x=T[R],x.align==="right");)this._placeToken(x,e,C,d,D,"right",m),L-=x.width,D-=x.width,R--;for(M+=(u-(M-p)-(y-D)-L)/2;P<=R;)x=T[P],this._placeToken(x,e,C,d,M+x.width/2,"center",m),M+=x.width,P++;d+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,h){var f=i.rich[e.styleName]||{};f.text=e.text;var u=e.verticalAlign,l=a+n/2;u==="top"?l=a+e.height/2:u==="bottom"&&(l=a+n-e.height/2);var v=!e.isLineHolder&&Yi(f);v&&this._renderBackground(f,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,l-e.height/2,e.width,e.height);var c=!!f.backgroundColor,_=e.textPadding;_&&(o=Ta(o,s,_),l-=e.height/2-_[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ke),p=g.createStyle();g.useStyle(p);var d=this._defaultStyle,y=!1,m=0,w=!1,b=wa("fill"in f?f.fill:"fill"in i?i.fill:(y=!0,d.fill)),T=ma("stroke"in f?f.stroke:"stroke"in i?i.stroke:!c&&!h&&(!d.autoStroke||y)?(m=pa,w=!0,d.stroke):null),S=f.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=l,S&&(p.shadowBlur=f.textShadowBlur||i.textShadowBlur||0,p.shadowColor=f.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=f.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=f.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Xt,p.opacity=He(f.opacity,i.opacity,1),ga(p,f),T&&(p.lineWidth=He(f.lineWidth,i.lineWidth,m),p.lineDash=vt(f.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=T),b&&(p.fill=b),g.setBoundingRect(cn(p,e.contentWidth,e.contentHeight,w?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var h=e.backgroundColor,f=e.borderWidth,u=e.borderColor,l=h&&h.image,v=h&&!l,c=e.borderRadius,_=this,g,p;if(v||e.lineHeight||f&&u){g=this._getOrCreateChild(Po),g.useStyle(g.createStyle()),g.style.fill=null;var d=g.shape;d.x=n,d.y=a,d.width=o,d.height=s,d.r=c,g.dirtyShape()}if(v){var y=g.style;y.fill=h||null,y.fillOpacity=vt(e.fillOpacity,1)}else if(l){p=this._getOrCreateChild(Pn),p.onload=function(){_.dirtyStyle()};var m=p.style;m.image=h.image,m.x=n,m.y=a,m.width=o,m.height=s}if(f&&u){var y=g.style;y.lineWidth=f,y.stroke=u,y.strokeOpacity=vt(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(g||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=He(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return _f(e)&&(i=[e.fontStyle,e.fontWeight,pf(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Zr(i)||e.textFont||e.font},t})(ce),cf={left:!0,right:1,center:1},df={top:1,bottom:1,middle:1},_a=["fontStyle","fontWeight","fontSize","fontFamily"];function pf(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?mn+"px":r+"px"}function ga(r,t){for(var e=0;e<_a.length;e++){var i=_a[e],n=t[i];n!=null&&(r[i]=n)}}function _f(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function gf(r){return ya(r),nt(r.rich,ya),r}function ya(r){if(r){r.font=vf.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||cf[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||df[e]?e:"top";var i=r.padding;i&&(r.padding=jo(r.padding))}}function ma(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function wa(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Ta(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ba(r){var t=r.text;return t!=null&&(t+=""),t}function Yi(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var br=Hr.CMD,yf=[[],[],[]],Ca=Math.sqrt,mf=Math.atan2;function wf(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,h,f,u=br.M,l=br.C,v=br.L,c=br.R,_=br.A,g=br.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case u:a=1;break;case v:a=1;break;case l:a=3;break;case g:a=2;break;case _:var p=t[4],d=t[5],y=Ca(t[0]*t[0]+t[1]*t[1]),m=Ca(t[2]*t[2]+t[3]*t[3]),w=mf(-t[1]/m,t[0]/y);e[o]*=y,e[o++]+=p,e[o]*=m,e[o++]+=d,e[o++]*=y,e[o++]*=m,e[o++]+=w,e[o++]+=w,o+=2,s=o;break;case c:f[0]=e[o++],f[1]=e[o++],te(f,f,t),e[s++]=f[0],e[s++]=f[1],f[0]+=e[o++],f[1]+=e[o++],te(f,f,t),e[s++]=f[0],e[s++]=f[1]}for(h=0;h<a;h++){var b=yf[h];b[0]=e[o++],b[1]=e[o++],te(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Xi=Math.sqrt,Me=Math.sin,xe=Math.cos,$r=Math.PI;function Sa(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function _n(r,t){return(r[0]*t[0]+r[1]*t[1])/(Sa(r)*Sa(t))}function La(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(_n(r,t))}function Pa(r,t,e,i,n,a,o,s,h,f,u){var l=h*($r/180),v=xe(l)*(r-e)/2+Me(l)*(t-i)/2,c=-1*Me(l)*(r-e)/2+xe(l)*(t-i)/2,_=v*v/(o*o)+c*c/(s*s);_>1&&(o*=Xi(_),s*=Xi(_));var g=(n===a?-1:1)*Xi((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=g*o*c/s,d=g*-s*v/o,y=(r+e)/2+xe(l)*p-Me(l)*d,m=(t+i)/2+Me(l)*p+xe(l)*d,w=La([1,0],[(v-p)/o,(c-d)/s]),b=[(v-p)/o,(c-d)/s],T=[(-1*v-p)/o,(-1*c-d)/s],S=La(b,T);if(_n(b,T)<=-1&&(S=$r),_n(b,T)>=1&&(S=0),S<0){var C=Math.round(S/$r*1e6)/1e6;S=$r*2+C%2*$r}u.addData(f,y,m,o,s,w,S,l,a)}var Tf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cf(r){var t=new Hr;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=Hr.CMD,h=r.match(Tf);if(!h)return t;for(var f=0;f<h.length;f++){for(var u=h[f],l=u.charAt(0),v=void 0,c=u.match(bf)||[],_=c.length,g=0;g<_;g++)c[g]=parseFloat(c[g]);for(var p=0;p<_;){var d=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,S=void 0,C=e,L=i,P=void 0,M=void 0;switch(l){case"l":e+=c[p++],i+=c[p++],v=s.L,t.addData(v,e,i);break;case"L":e=c[p++],i=c[p++],v=s.L,t.addData(v,e,i);break;case"m":e+=c[p++],i+=c[p++],v=s.M,t.addData(v,e,i),n=e,a=i,l="l";break;case"M":e=c[p++],i=c[p++],v=s.M,t.addData(v,e,i),n=e,a=i,l="L";break;case"h":e+=c[p++],v=s.L,t.addData(v,e,i);break;case"H":e=c[p++],v=s.L,t.addData(v,e,i);break;case"v":i+=c[p++],v=s.L,t.addData(v,e,i);break;case"V":i=c[p++],v=s.L,t.addData(v,e,i);break;case"C":v=s.C,t.addData(v,c[p++],c[p++],c[p++],c[p++],c[p++],c[p++]),e=c[p-2],i=c[p-1];break;case"c":v=s.C,t.addData(v,c[p++]+e,c[p++]+i,c[p++]+e,c[p++]+i,c[p++]+e,c[p++]+i),e+=c[p-2],i+=c[p-1];break;case"S":d=e,y=i,P=t.len(),M=t.data,o===s.C&&(d+=e-M[P-4],y+=i-M[P-3]),v=s.C,C=c[p++],L=c[p++],e=c[p++],i=c[p++],t.addData(v,d,y,C,L,e,i);break;case"s":d=e,y=i,P=t.len(),M=t.data,o===s.C&&(d+=e-M[P-4],y+=i-M[P-3]),v=s.C,C=e+c[p++],L=i+c[p++],e+=c[p++],i+=c[p++],t.addData(v,d,y,C,L,e,i);break;case"Q":C=c[p++],L=c[p++],e=c[p++],i=c[p++],v=s.Q,t.addData(v,C,L,e,i);break;case"q":C=c[p++]+e,L=c[p++]+i,e+=c[p++],i+=c[p++],v=s.Q,t.addData(v,C,L,e,i);break;case"T":d=e,y=i,P=t.len(),M=t.data,o===s.Q&&(d+=e-M[P-4],y+=i-M[P-3]),e=c[p++],i=c[p++],v=s.Q,t.addData(v,d,y,e,i);break;case"t":d=e,y=i,P=t.len(),M=t.data,o===s.Q&&(d+=e-M[P-4],y+=i-M[P-3]),e+=c[p++],i+=c[p++],v=s.Q,t.addData(v,d,y,e,i);break;case"A":m=c[p++],w=c[p++],b=c[p++],T=c[p++],S=c[p++],C=e,L=i,e=c[p++],i=c[p++],v=s.A,Pa(C,L,e,i,T,S,m,w,b,v,t);break;case"a":m=c[p++],w=c[p++],b=c[p++],T=c[p++],S=c[p++],C=e,L=i,e+=c[p++],i+=c[p++],v=s.A,Pa(C,L,e,i,T,S,m,w,b,v,t);break}}(l==="z"||l==="Z")&&(v=s.Z,t.addData(v),e=n,i=a),o=v}return t.toStatic(),t}var Mo=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(Z);function xo(r){return r.setData!=null}function Ro(r,t){var e=Cf(r),i=H({},t);return i.buildPath=function(n){var a=xo(n);if(a&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&e.rebuildPath(o,1)}},i.applyTransform=function(n){wf(e,n),this.dirtyShape()},i}function Xu(r,t){return new Mo(Ro(r,t))}function Gu(r,t){var e=Ro(r,t),i=(function(n){F(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(Mo);return i}function qu(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new Z(t);return o.createPathProxy(),o.buildPath=function(s){if(xo(s)){s.appendPath(e);var h=s.getContext();h&&s.rebuildPath(h,1)}},o}var Sf=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Lf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Sf},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(Z);Lf.prototype.type="circle";var Pf=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Mf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Pf},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,h=i.ry,f=s*n,u=h*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-u,a-f,o-h,a,o-h),e.bezierCurveTo(a+f,o-h,a+s,o-u,a+s,o),e.bezierCurveTo(a+s,o+u,a+f,o+h,a,o+h),e.bezierCurveTo(a-f,o+h,a-s,o+u,a-s,o),e.closePath()},t})(Z);Mf.prototype.type="ellipse";var Do=Math.PI,Gi=Do*2,nr=Math.sin,Cr=Math.cos,xf=Math.acos,$=Math.atan2,Ma=Math.abs,ne=Math.sqrt,Jr=Math.max,Ct=Math.min,dt=1e-4;function Rf(r,t,e,i,n,a,o,s){var h=e-r,f=i-t,u=o-n,l=s-a,v=l*h-u*f;if(!(v*v<dt))return v=(u*(t-a)-l*(r-n))/v,[r+v*h,t+v*f]}function Re(r,t,e,i,n,a,o){var s=r-e,h=t-i,f=(o?a:-a)/ne(s*s+h*h),u=f*h,l=-f*s,v=r+u,c=t+l,_=e+u,g=i+l,p=(v+_)/2,d=(c+g)/2,y=_-v,m=g-c,w=y*y+m*m,b=n-a,T=v*g-_*c,S=(m<0?-1:1)*ne(Jr(0,b*b*w-T*T)),C=(T*m-y*S)/w,L=(-T*y-m*S)/w,P=(T*m+y*S)/w,M=(-T*y+m*S)/w,D=C-p,R=L-d,x=P-p,B=M-d;return D*D+R*R>x*x+B*B&&(C=P,L=M),{cx:C,cy:L,x0:-u,y0:-l,x1:C*(n/b-1),y1:L*(n/b-1)}}function Df(r){var t;if(ae(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Af(r,t){var e,i=Jr(t.r,0),n=Jr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var h=t.startAngle,f=t.endAngle;if(!(isNaN(h)||isNaN(f))){var u=t.cx,l=t.cy,v=!!t.clockwise,c=Ma(f-h),_=c>Gi&&c%Gi;if(_>dt&&(c=_),!(i>dt))r.moveTo(u,l);else if(c>Gi-dt)r.moveTo(u+i*Cr(h),l+i*nr(h)),r.arc(u,l,i,h,f,!v),n>dt&&(r.moveTo(u+n*Cr(f),l+n*nr(f)),r.arc(u,l,n,f,h,v));else{var g=void 0,p=void 0,d=void 0,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0,S=void 0,C=void 0,L=void 0,P=void 0,M=void 0,D=void 0,R=void 0,x=void 0,B=i*Cr(h),k=i*nr(h),Y=n*Cr(f),V=n*nr(f),Dt=c>dt;if(Dt){var j=t.cornerRadius;j&&(e=Df(j),g=e[0],p=e[1],d=e[2],y=e[3]);var ht=Ma(i-n)/2;if(m=Ct(ht,d),w=Ct(ht,y),b=Ct(ht,g),T=Ct(ht,p),L=S=Jr(m,w),P=C=Jr(b,T),(S>dt||C>dt)&&(M=i*Cr(f),D=i*nr(f),R=n*Cr(h),x=n*nr(h),c<Do)){var N=Rf(B,k,R,x,M,D,Y,V);if(N){var G=B-N[0],Q=k-N[1],It=M-N[0],Ot=D-N[1],Ft=1/nr(xf((G*It+Q*Ot)/(ne(G*G+Q*Q)*ne(It*It+Ot*Ot)))/2),Gt=ne(N[0]*N[0]+N[1]*N[1]);L=Ct(S,(i-Gt)/(Ft+1)),P=Ct(C,(n-Gt)/(Ft-1))}}}if(!Dt)r.moveTo(u+B,l+k);else if(L>dt){var ct=Ct(d,L),K=Ct(y,L),A=Re(R,x,B,k,i,ct,v),E=Re(M,D,Y,V,i,K,v);r.moveTo(u+A.cx+A.x0,l+A.cy+A.y0),L<S&&ct===K?r.arc(u+A.cx,l+A.cy,L,$(A.y0,A.x0),$(E.y0,E.x0),!v):(ct>0&&r.arc(u+A.cx,l+A.cy,ct,$(A.y0,A.x0),$(A.y1,A.x1),!v),r.arc(u,l,i,$(A.cy+A.y1,A.cx+A.x1),$(E.cy+E.y1,E.cx+E.x1),!v),K>0&&r.arc(u+E.cx,l+E.cy,K,$(E.y1,E.x1),$(E.y0,E.x0),!v))}else r.moveTo(u+B,l+k),r.arc(u,l,i,h,f,!v);if(!(n>dt)||!Dt)r.lineTo(u+Y,l+V);else if(P>dt){var ct=Ct(g,P),K=Ct(p,P),A=Re(Y,V,M,D,n,-K,v),E=Re(B,k,R,x,n,-ct,v);r.lineTo(u+A.cx+A.x0,l+A.cy+A.y0),P<C&&ct===K?r.arc(u+A.cx,l+A.cy,P,$(A.y0,A.x0),$(E.y0,E.x0),!v):(K>0&&r.arc(u+A.cx,l+A.cy,K,$(A.y0,A.x0),$(A.y1,A.x1),!v),r.arc(u,l,n,$(A.cy+A.y1,A.cx+A.x1),$(E.cy+E.y1,E.cx+E.x1),v),ct>0&&r.arc(u+E.cx,l+E.cy,ct,$(E.y1,E.x1),$(E.y0,E.x0),!v))}else r.lineTo(u+Y,l+V),r.arc(u,l,n,f,h,v)}r.closePath()}}}var Ef=(function(){function r(){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 r})(),If=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ef},t.prototype.buildPath=function(e,i){Af(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Z);If.prototype.type="sector";var Of=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Ff=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Of},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(Z);Ff.prototype.type="ring";function Bf(r,t,e,i){var n=[],a=[],o=[],s=[],h,f,u,l;if(i){u=[1/0,1/0],l=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Lr(u,u,r[v]),Pr(l,l,r[v]);Lr(u,u,i[0]),Pr(l,l,i[1])}for(var v=0,c=r.length;v<c;v++){var _=r[v];if(e)h=r[v?v-1:c-1],f=r[(v+1)%c];else if(v===0||v===c-1){n.push(ns(r[v]));continue}else h=r[v-1],f=r[v+1];as(a,f,h),hi(a,a,t);var g=Vi(_,h),p=Vi(_,f),d=g+p;d!==0&&(g/=d,p/=d),hi(o,a,-g),hi(s,a,p);var y=Dn([],_,o),m=Dn([],_,s);i&&(Pr(y,y,u),Lr(y,y,l),Pr(m,m,u),Lr(m,m,l)),n.push(y),n.push(m)}return e&&n.push(n.shift()),n}function Ao(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=Bf(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var h=a[s*2],f=a[s*2+1],u=n[(s+1)%o];r.bezierCurveTo(h[0],h[1],f[0],f[1],u[0],u[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,l=n.length;s<l;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Hf=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),zf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Hf},t.prototype.buildPath=function(e,i){Ao(e,i,!0)},t})(Z);zf.prototype.type="polygon";var kf=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Wf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kf},t.prototype.buildPath=function(e,i){Ao(e,i,!1)},t})(Z);Wf.prototype.type="polyline";var Nf={},Yf=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Xf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yf},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var h=sf(Nf,i,this.style);n=h.x1,a=h.y1,o=h.x2,s=h.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var f=i.percent;f!==0&&(e.moveTo(n,a),f<1&&(o=n*(1-f)+o*f,s=a*(1-f)+s*f),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(Z);Xf.prototype.type="line";var tt=[],Gf=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function xa(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?Xn:q)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Xn:q)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Gn:U)(r.x1,r.cpx1,r.x2,t),(e?Gn:U)(r.y1,r.cpy1,r.y2,t)]}var qf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Gf},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,h=i.cpx1,f=i.cpy1,u=i.cpx2,l=i.cpy2,v=i.percent;v!==0&&(e.moveTo(n,a),u==null||l==null?(v<1&&(Ze(n,h,o,v,tt),h=tt[1],o=tt[2],Ze(a,f,s,v,tt),f=tt[1],s=tt[2]),e.quadraticCurveTo(h,f,o,s)):(v<1&&(Ue(n,h,u,o,v,tt),h=tt[1],u=tt[2],o=tt[3],Ue(a,f,l,s,v,tt),f=tt[1],l=tt[2],s=tt[3]),e.bezierCurveTo(h,f,u,l,o,s)))},t.prototype.pointAt=function(e){return xa(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=xa(this.shape,e,!0);return hs(i,i)},t})(Z);qf.prototype.type="bezier-curve";var $f=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Uf=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $f},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,h=i.endAngle,f=i.clockwise,u=Math.cos(s),l=Math.sin(s);e.moveTo(u*o+n,l*o+a),e.arc(n,a,o,s,h,!f)},t})(Z);Uf.prototype.type="arc";var $u=(function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Z.prototype.getBoundingRect.call(this)},t})(Z),Eo=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),Uu=(function(r){F(t,r);function t(e,i,n,a,o,s){var h=r.call(this,o)||this;return h.x=e??0,h.y=i??0,h.x2=n??1,h.y2=a??0,h.type="linear",h.global=s||!1,h}return t})(Eo),Zu=(function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(Eo),qi=Math.min,Zf=Math.max,De=Math.abs,ar=[0,0],or=[0,0],X=Ka(),Ae=X.minTv,Ee=X.maxTv,Vu=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new W;for(var i=0;i<2;i++)this._axes[i]=new W;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,h=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,h),i[3].set(a,h),e)for(var f=0;f<4;f++)i[f].transform(e);W.sub(n[0],i[1],i[0]),W.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var f=0;f<2;f++)this._origin[f]=n[f].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&W.set(e,0,0),X.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!X.negativeSize&&W.copy(e,n?X.useDir?X.dirMinTv:Ae:Ee),n},r.prototype._intersectCheckOneSide=function(t,e,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ar),t._getProjMinMaxOnAxis(o,e._corners,or),X.negativeSize||ar[1]<or[0]||ar[0]>or[1]){if(a=!1,X.negativeSize||i)return a;var h=De(or[0]-ar[1]),f=De(ar[0]-or[1]);qi(h,f)>Ee.len()&&(h<f?W.scale(Ee,s,-h*n):W.scale(Ee,s,f*n))}else if(!i){var h=De(or[0]-ar[1]),f=De(ar[0]-or[1]);(X.useDir||qi(h,f)<Ae.len())&&((h<f||!X.bidirectional)&&(W.scale(Ae,s,h*n),X.useDir&&X.calcDirMTV()),(h>=f||!X.bidirectional)&&(W.scale(Ae,s,-f*n),X.useDir&&X.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,h=o,f=1;f<e.length;f++){var u=e[f].dot(n)+a[t];s=qi(u,s),h=Zf(u,h)}i[0]=s+X.touchThreshold,i[1]=h-X.touchThreshold,X.negativeSize=i[1]<i[0]},r})(),Vf=[],Qu=(function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new O(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(Vf)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(ce),Qf=Math.round(Math.random()*9),Kf=typeof Object.defineProperty=="function",Ku=(function(){function r(){this._id="__ec_inner_"+Qf++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return Kf?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})();function fr(r){return isFinite(r)}function Jf(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=fr(i)?i:0,n=fr(n)?n:1,a=fr(a)?a:0,o=fr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function jf(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,h=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,h=h*a),o=fr(o)?o:.5,s=fr(s)?s:.5,h=h>=0&&fr(h)?h:.5;var f=r.createRadialGradient(o,s,0,o,s,h);return f}function gn(r,t,e){for(var i=t.type==="radial"?jf(r,t,e):Jf(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function tu(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Ie(r){return parseInt(r,10)}function Oe(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Ie(s[i])||Ie(r.style[i]))-(Ie(s[a])||0)-(Ie(s[o])||0)|0}function ru(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Be(r)?[r]:ae(r)?r:null}function Io(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&ru(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Fr(e,function(a){return a/n}),i/=n)}return[e,i]}var eu=new Hr(!0);function Je(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Ra(r){return typeof r=="string"&&r!=="none"}function je(r){var t=r.fill;return t!=null&&t!=="none"}function Da(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Aa(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function yn(r,t,e){var i=mo(t.image,t.__image,e);if(oi(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*is),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function iu(r,t,e,i){var n,a=Je(e),o=je(e),s=e.strokePercent,h=s<1,f=!t.path;(!t.silent||h)&&f&&t.createPathProxy();var u=t.path||eu,l=t.__dirty;if(!i){var v=e.fill,c=e.stroke,_=o&&!!v.colorStops,g=a&&!!c.colorStops,p=o&&!!v.image,d=a&&!!c.image,y=void 0,m=void 0,w=void 0,b=void 0,T=void 0;(_||g)&&(T=t.getBoundingRect()),_&&(y=l?gn(r,v,T):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(m=l?gn(r,c,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=l||!t.__canvasFillPattern?yn(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=w),d&&(b=l||!t.__canvasStrokePattern?yn(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),_?r.fillStyle=y:p&&(w?r.fillStyle=w:o=!1),g?r.strokeStyle=m:d&&(b?r.strokeStyle=b:a=!1)}var S=t.getGlobalScale();u.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,L;r.setLineDash&&e.lineDash&&(n=Io(t),C=n[0],L=n[1]);var P=!0;(f||l&Sr)&&(u.setDPR(r.dpr),h?u.setContext(null):(u.setContext(r),P=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),P&&u.rebuildPath(r,h?s:1),C&&(r.setLineDash(C),r.lineDashOffset=L),i||(e.strokeFirst?(a&&Aa(r,e),o&&Da(r,e)):(o&&Da(r,e),a&&Aa(r,e))),C&&r.setLineDash([])}function nu(r,t,e){var i=t.__image=mo(e.image,t.__image,t,t.onload);if(!(!i||!oi(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),h=i.width/i.height;if(o==null&&s!=null?o=s*h:s==null&&o!=null?s=o/h:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var f=e.sx||0,u=e.sy||0;r.drawImage(i,f,u,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var f=e.sx,u=e.sy,l=o-f,v=s-u;r.drawImage(i,f,u,l,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function au(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Xt,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=Io(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Je(e)&&r.strokeText(n,e.x,e.y),je(e)&&r.fillText(n,e.x,e.y)):(je(e)&&r.fillText(n,e.x,e.y),Je(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Ea=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ia=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Oo(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){it(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?dr.opacity:o}(i||t.blend!==e.blend)&&(a||(it(r,n),a=!0),r.globalCompositeOperation=t.blend||dr.blend);for(var s=0;s<Ea.length;s++){var h=Ea[s];(i||t[h]!==e[h])&&(a||(it(r,n),a=!0),r[h]=r.dpr*(t[h]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(it(r,n),a=!0),r.shadowColor=t.shadowColor||dr.shadowColor),a}function Oa(r,t,e,i,n){var a=ue(t,n.inHover),o=i?null:e&&ue(e,n.inHover)||{};if(a===o)return!1;var s=Oo(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(it(r,n),s=!0),Ra(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(it(r,n),s=!0),Ra(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(it(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var h=a.lineWidth,f=h/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==f&&(s||(it(r,n),s=!0),r.lineWidth=f)}for(var u=0;u<Ia.length;u++){var l=Ia[u],v=l[0];(i||a[v]!==o[v])&&(s||(it(r,n),s=!0),r[v]=a[v]||l[1])}return s}function ou(r,t,e,i,n){return Oo(r,ue(t,n.inHover),e&&ue(e,n.inHover),i,n)}function Fo(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function su(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),Fo(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function hu(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Fa=1,Ba=2,Ha=3,za=4;function fu(r){var t=je(r),e=Je(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function it(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ue(r,t){return t&&r.__hoverStyle||r.style}function uu(r,t){ur(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ur(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ot,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,h=!1;if((!o||tu(a,o))&&(o&&o.length&&(it(r,e),r.restore(),h=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(it(r,e),r.save(),su(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var f=e.prevEl;f||(h=s=!0);var u=t instanceof Z&&t.autoBatch&&fu(t.style);s||hu(n,f.transform)?(it(r,e),Fo(r,t)):u||it(r,e);var l=ue(t,e.inHover);t instanceof Z?(e.lastDrawType!==Fa&&(h=!0,e.lastDrawType=Fa),Oa(r,t,f,h,e),(!u||!e.batchFill&&!e.batchStroke)&&r.beginPath(),iu(r,t,l,u),u&&(e.batchFill=l.fill||"",e.batchStroke=l.stroke||"")):t instanceof Ke?(e.lastDrawType!==Ha&&(h=!0,e.lastDrawType=Ha),Oa(r,t,f,h,e),au(r,t,l)):t instanceof Pn?(e.lastDrawType!==Ba&&(h=!0,e.lastDrawType=Ba),ou(r,t,f,h,e),nu(r,t,l)):t.getTemporalDisplayables&&(e.lastDrawType!==za&&(h=!0,e.lastDrawType=za),lu(r,t,e)),u&&i&&it(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function lu(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var h=i[o];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),ur(r,h,a,o===s-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}for(var f=0,u=n.length;f<u;f++){var h=n[f];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),ur(r,h,a,f===u-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}function ka(r,t,e){var i=pr.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var $i=(function(r){F(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Qe,typeof e=="string"?o=ka(e,i,n):kt(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Za(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=ka("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,h=!1,f=new O(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var m=new O(0,0,0,0);m.copy(y),o.push(m)}else{for(var w=!1,b=1/0,T=0,S=0;S<o.length;++S){var C=o[S];if(C.intersect(y)){var L=new O(0,0,0,0);L.copy(C),L.union(y),o[S]=L,w=!0;break}else if(h){f.copy(y),f.union(C);var P=y.width*y.height,M=C.width*C.height,D=f.width*f.height,R=D-P-M;R<b&&(b=R,T=S)}}if(h&&(o[T].union(y),w=!0),!w){var m=new O(0,0,0,0);m.copy(y),o.push(m)}h||(h=o.length>=s)}}for(var l=this.__startIndex;l<this.__endIndex;++l){var v=e[l];if(v){var c=v.shouldBePainted(n,a,!0,!0),_=v.__isRendered&&(v.__dirty&ot||!c)?v.getPrevPaintRect():null;_&&u(_);var g=c&&(v.__dirty&ot||!v.__isRendered)?v.getPaintRect():null;g&&u(g)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var v=i[l],c=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var _=v.getPrevPaintRect();_&&u(_)}}var p;do{p=!1;for(var l=0;l<o.length;){if(o[l].isZero()){o.splice(l,1);continue}for(var d=l+1;d<o.length;)o[l].intersect(o[d])?(p=!0,o[l].union(o[d]),o.splice(d,1)):d++;l++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,h=a.height;i=i||this.clearColor;var f=this.motionBlur&&!e,u=this.lastFrameAlpha,l=this.dpr,v=this;f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/l,h/l));var c=this.domBack;function _(g,p,d,y){if(o.clearRect(g,p,d,y),i&&i!=="transparent"){var m=void 0;if(ei(i)){var w=i.global||i.__width===d&&i.__height===y;m=w&&i.__canvasGradient||gn(o,i,{x:0,y:0,width:d,height:y}),i.__canvasGradient=m,i.__width=d,i.__height=y}else Ko(i)&&(i.scaleX=i.scaleX||l,i.scaleY=i.scaleY||l,m=yn(o,i,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=m||i,o.fillRect(g,p,d,y),o.restore()}f&&(o.save(),o.globalAlpha=u,o.drawImage(c,g,p,d,y),o.restore())}!n||f?_(0,0,s,h):n.length&&nt(n,function(g){_(g.x*l,g.y*l,g.width*l,g.height*l)})},t})(kr),Wa=1e5,sr=314159,Fe=.01,vu=.001;function cu(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function du(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var Ju=(function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=H({},i||{}),this.dpr=i.devicePixelRatio||Qe,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Za(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var h=this._layers;if(a){var u=t,l=u.width,v=u.height;i.width!=null&&(l=i.width),i.height!=null&&(v=i.height),this.dpr=i.devicePixelRatio||1,u.width=l*this.dpr,u.height=v*this.dpr,this._width=l,this._height=v;var c=new $i(u,this,this.dpr);c.__builtin__=!0,c.initContext(),h[sr]=c,c.zlevel=sr,s.push(sr),this._domRoot=t}else{this._width=Oe(t,0,i),this._height=Oe(t,1,i);var f=this._domRoot=du(this._width,this._height);t.appendChild(f)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var h=a===0?this._backgroundColor:null;s.refresh(h)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Wa)),a||(a=i.ctx,a.save()),ur(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Wa)},r.prototype.paintOne=function(t,e){uu(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(f){f.afterBrush&&f.afterBrush()});else{var h=this;qe(function(){h._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(sr).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var h=this._zlevelList[s],f=this._layers[h];f.__builtin__&&f!==this._hoverlayer&&(f.__dirty||i)&&a.push(f)}for(var u=!0,l=!1,v=function(g){var p=a[g],d=p.ctx,y=o&&p.createRepaintRects(t,e,c._width,c._height),m=i?p.__startIndex:p.__drawIndex,w=!i&&p.incremental&&Date.now,b=w&&Date.now(),T=p.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,T,y);else if(m===p.__startIndex){var S=t[m];(!S.incremental||!S.notClear||i)&&p.clear(!1,T,y)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var C,L=function(R){var x={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=m;C<p.__endIndex;C++){var B=t[C];if(B.__inHover&&(l=!0),n._doPaintEl(B,p,o,R,x,C===p.__endIndex-1),w){var k=Date.now()-b;if(k>15)break}}x.prevElClipPaths&&d.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var P=c.dpr,M=0;M<y.length;++M){var D=y[M];d.save(),d.beginPath(),d.rect(D.x*P,D.y*P,D.width*P,D.height*P),d.clip(),L(D),d.restore()}else d.save(),L(),d.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(u=!1)},c=this,_=0;_<a.length;_++)v(_);return z.wxa&&nt(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:u,needsRefreshHover:l}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var h=t.getPaintRect();(!n||h&&h.intersect(n))&&(ur(s,t,a,o),t.setPrevPaintRect(h))}else ur(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=sr);var i=this._layers[t];return i||(i=new $i("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?Ur(i,this._layerConfig[t],!0):this._layerConfig[t-Fe]&&Ur(i,this._layerConfig[t-Fe],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,h=-1;if(!i[t]&&cu(e)){if(a>0&&t>n[0]){for(h=0;h<a-1&&!(n[h]<t&&n[h+1]>t);h++);s=i[n[h]]}if(n.splice(h+1,0,t),i[t]=e,!e.virtual)if(s){var f=s.dom;f.nextSibling?o.insertBefore(e.dom,f.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(l,v){l.__dirty=l.__used=!1});function e(l){a&&(a.__endIndex!==l&&(a.__dirty=!0),a.__endIndex=l)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,h;for(h=0;h<t.length;h++){var n=t[h],f=n.zlevel,u=void 0;s!==f&&(s=f,o=0),n.incremental?(u=this.getLayer(f+vu,this._needsManuallyCompositing),u.incremental=!0,o=1):u=this.getLayer(f+(o>0?Fe:0),this._needsManuallyCompositing),u.__builtin__||bn("ZLevel "+f+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==h&&(u.__dirty=!0),u.__startIndex=h,u.incremental?u.__drawIndex=-1:u.__drawIndex=h,e(h),a=u),n.__dirty&ot&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=h))}e(h),this.eachBuiltinLayer(function(l,v){!l.__used&&l.getElementCount()>0&&(l.__dirty=!0,l.__startIndex=l.__endIndex=l.__drawIndex=0),l.__dirty&&l.__drawIndex<0&&(l.__drawIndex=l.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,nt(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?Ur(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Fe){var o=this._layers[a];Ur(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(St(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Oe(a,0,n),e=Oe(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(sr).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[sr].dom;var e=new $i("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(l){l.__builtin__?i.drawImage(l.dom,0,0,n,a):l.renderToCanvas&&(i.save(),l.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),h=0,f=s.length;h<f;h++){var u=s[h];ur(i,u,o,h===f-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();export{W as $,Ls as A,vi as B,O as C,Ps as D,re as E,sf as F,hf as G,Gu as H,Or as I,Lf as J,Mf as K,zf as L,Wf as M,Po as N,Xf as O,Z as P,qf as Q,Ff as R,If as S,co as T,Uf as U,$u as V,go as W,Qu as X,Uu as Y,Pn as Z,Vu as _,ae as a,he as a$,Zu as a0,vf as a1,jo as a2,He as a3,Zr as a4,Ur as a5,Ga as a6,Eu as a7,yu as a8,Bu as a9,no as aA,q as aB,Fu as aC,Yh as aD,Ms as aE,wu as aF,dh as aG,_u as aH,Iu as aI,bs as aJ,Pu as aK,ve as aL,Ou as aM,Pt as aN,Hu as aO,ns as aP,hs as aQ,hi as aR,zr as aS,as as aT,os as aU,Mu as aV,xu as aW,Yu as aX,Ze as aY,U as aZ,Er as a_,Qo as aa,xn as ab,gu as ac,bu as ad,Su as ae,Ar as af,_h as ag,Ku as ah,oe as ai,pr as aj,uu as ak,kr as al,Wu as am,Ws as an,qa as ao,fe as ap,Jo as aq,Nu as ar,ku as as,fs as at,Ru as au,Hr as av,qs as aw,Ys as ax,Pe as ay,Ju as az,Be as b,ze as b0,ce as b1,On as b2,Ui as b3,pt as b4,Du as b5,Au as b6,mu as c,kt as d,z as e,Cu as f,nt as g,Tu as h,Xe as i,St as j,pu as k,H as l,Fr as m,lr as n,zu as o,Rt as p,st as q,ri as r,vt as s,qu as t,Dr as u,Xu as v,Lu as w,_r as x,Qa as y,te as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class
|
|
1
|
+
class t{async getVersion(){return"0.22.0"}async fetchRemoteConfig(e){try{const a=await fetch(e);return a.ok?{success:!0,data:await a.json()}:{success:!1,error:`HTTP ${a.status}`}}catch(a){return{success:!1,error:String(a)}}}setThemeSource(e){}async getOpenAtLogin(){return!1}async setOpenAtLogin(e){return{success:!1,error:"Not available in web mode"}}async getAnalyticsEnabled(){return!1}async setAnalyticsEnabled(e){return{success:!1}}async showOpenDialog(e){return{canceled:!0,filePaths:[]}}async copyImageToClipboard(e){return{success:!1,error:"Not available in web mode"}}async checkUpdate(){try{return await(await fetch("/_web/system/check-update")).json()}catch(e){return{hasUpdate:!1,currentVersion:"unknown",error:e instanceof Error?e.message:String(e)}}}async performUpdate(){return{success:!1,error:"Web update is unavailable. Run npm install -g chatlab-cli@latest in your terminal."}}async relaunch(){window.location.reload()}}export{t as WebPlatformAdapter};
|
package/dist-web/index.html
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
<title>ChatLab</title>
|
|
6
6
|
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
|
|
7
7
|
<link rel="icon" href="/assets/imgs/favicon.ico" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Dhg3SDb6.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/vendor-reka-ui-CW2cIgMu.js">
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-nuxt-ui-
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-nuxt-ui-7OAuiz_i.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/vendor-snapdom-XnBoh1gd.js">
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CbOwHYzO.css">
|
|
13
13
|
</head>
|
|
14
14
|
|
|
15
15
|
<body>
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chatlab-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "ChatLab CLI & Service - Chat history analysis tool",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"bin": {
|
|
6
7
|
"chatlab": "bin/chatlab.mjs"
|
|
7
8
|
},
|
|
@@ -46,8 +47,8 @@
|
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"@fastify/multipart": "^10.0.0",
|
|
48
49
|
"@fastify/static": "^9.1.3",
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
50
|
+
"@earendil-works/pi-agent-core": "0.74.2",
|
|
51
|
+
"@earendil-works/pi-ai": "0.74.2",
|
|
51
52
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
52
53
|
"better-sqlite3": "^12.4.6",
|
|
53
54
|
"commander": "^13.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["import { readFileSync } from 'fs'\nimport { resolve } from 'path'\n\nlet cached: string | undefined\n\n/**\n * Read version from apps/cli/package.json at runtime.\n * Works for both tsx dev (src/) and bundled (dist/).\n */\nexport function getVersion(): string {\n if (cached) return cached\n try {\n const pkgPath = resolve(__dirname, '../package.json')\n cached = JSON.parse(readFileSync(pkgPath, 'utf-8')).version\n } catch {\n cached = '0.0.0-dev'\n }\n return cached!\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,oBAAoB;AAC7B,SAAS,eAAe;AAExB,IAAI;AAMG,SAAS,aAAqB;AACnC,MAAI,OAAQ,QAAO;AACnB,MAAI;AACF,UAAM,UAAU,QAAQ,WAAW,iBAAiB;AACpD,aAAS,KAAK,MAAM,aAAa,SAAS,OAAO,CAAC,EAAE;AAAA,EACtD,QAAQ;AACN,aAAS;AAAA,EACX;AACA,SAAO;AACT;","names":[]}
|