V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
public_html
/
pos
/
public
/
js
/
bundle
/
Viewing: dashboard.js
(self.webpackChunk=self.webpackChunk||[]).push([[9966],{55442:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var n=i(23645),r=i.n(n)()((function(t){return t[1]}));r.push([t.id,".echarts{height:400px;width:600px}",""]);const a=r},95899:(t,e,i)=>{var n=i(33051),r={};function a(){this._coordinateSystems=[]}a.prototype={constructor:a,create:function(t,e){var i=[];n.each(r,(function(n,r){var a=n.create(t,e);i=i.concat(a||[])})),this._coordinateSystems=i},update:function(t,e){n.each(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},a.register=function(t,e){r[t]=e},a.get=function(t){return r[t]};var o=a;t.exports=o},59935:(t,e,i)=>{var n=i(33051),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var a=function(t){n.each(r,(function(e){this[e]=n.bind(t[e],t)}),this)};t.exports=a},75324:(t,e,i)=>{var n=i(70492),r=i(33051);t.exports=function(t,e){r.each(e,(function(e){e.update="updateView",n.registerAction(e,(function(i,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:i},(function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each((function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1}))})),{name:i.name,selected:r,seriesId:i.seriesId}}))}))}},40451:(t,e,i)=>{var n=i(70492),r=i(33051),a=i(79093),o=a.layout,s=a.largeLayout;i(77532),i(90791),i(33207),i(84617),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,r.curry(o,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),n.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},90791:(t,e,i)=>{var n=i(489).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});t.exports=n},33207:(t,e,i)=>{i(38175).__DEV__;var n=i(70492),r=i(33051),a=i(51177),o=i(7905).setLabel,s=i(4272),l=i(98378),h=i(10712),u=i(8524),c=i(270).throttle,d=i(22963).createClipPath,f=i(39529),p=["itemStyle","barBorderWidth"],g=[0,0];r.extend(s.prototype,l);var v=n.extendChartView({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,r=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,h=l.getBaseAxis();"cartesian2d"===l.type?n=h.isHorizontal():"polar"===l.type&&(n="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,d=t.get("clip",!0),f=function(t,e){var i=t.getArea&&t.getArea();if("cartesian2d"===t.type){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var r=e.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}(l,o);r.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),m=v.get("barBorderRadius")||0,y=[],M=this._backgroundEls||[],T=function(t){var e=S[l.type](o,t),i=function(t,e,i){return new("polar"===t.type?a.Sector:a.Rect)({shape:D(e,i,t),silent:!0,z2:0})}(l,n,e);return i.useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&i.setShape("r",m),y[t]=i,i};o.diff(s).add((function(e){var i=o.getItemModel(e),a=S[l.type](o,e,i);if(g&&T(e),o.hasValue(e)){if(d)if(_[l.type](f,a))return void r.remove(s);var s=x[l.type](e,a,n,c,!1,p);o.setItemGraphicEl(e,s),r.add(s),C(s,o,e,i,a,t,n,"polar"===l.type)}})).update((function(e,i){var h=o.getItemModel(e),u=S[l.type](o,e,h);if(g){var b;0===M.length?b=T(i):((b=M[i]).useStyle(v.getBarItemStyle()),"cartesian2d"===l.type&&b.setShape("r",m),y[e]=b);var w=S[l.type](o,e),A=D(n,w,l);a.updateProps(b,{shape:A},c,e)}var I=s.getItemGraphicEl(i);if(o.hasValue(e)){if(d)if(_[l.type](f,u))return void r.remove(I);I?a.updateProps(I,{shape:u},c,e):I=x[l.type](e,u,n,c,!0,p),o.setItemGraphicEl(e,I),r.add(I),C(I,o,e,h,u,t,n,"polar"===l.type)}else r.remove(I)})).remove((function(t){var e=s.getItemGraphicEl(t);"cartesian2d"===l.type?e&&b(t,c,e):e&&w(t,c,e)})).execute();var A=this._backgroundGroup||(this._backgroundGroup=new u);A.removeAll();for(var I=0;I<y.length;++I)A.add(y[I]);r.add(A),this._backgroundEls=y,this._data=o},_renderLarge:function(t,e,i){this._clear(),A(t,this.group);var n=t.get("clip",!0)?d(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),A(e,this.group,!0)},dispose:r.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl((function(e){"sector"===e.type?w(e.dataIndex,t,e):b(e.dataIndex,t,e)}))):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),m=Math.max,y=Math.min,_={cartesian2d:function(t,e){var i=e.width<0?-1:1,n=e.height<0?-1:1;i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var r=m(e.x,t.x),a=y(e.x+e.width,t.x+t.width),o=m(e.y,t.y),s=y(e.y+e.height,t.y+t.height);e.x=r,e.y=o,e.width=a-r,e.height=s-o;var l=e.width<0||e.height<0;return i<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),l},polar:function(t,e){var i=e.r0<=e.r?1:-1;if(i<0){var n=e.r;e.r=e.r0,e.r0=n}n=y(e.r,t.r);var r=m(e.r0,t.r0);e.r=n,e.r0=r;var a=n-r<0;if(i<0){n=e.r;e.r=e.r0,e.r0=n}return a}},x={cartesian2d:function(t,e,i,n,o){var s=new a.Rect({shape:r.extend({},e),z2:1});if(s.name="item",n){var l=i?"height":"width",h={};s.shape[l]=0,h[l]=e[l],a[o?"updateProps":"initProps"](s,{shape:h},n,t)}return s},polar:function(t,e,i,n,o,s){var l=e.startAngle<e.endAngle,h=new(!i&&s?f:a.Sector)({shape:r.defaults({clockwise:l},e),z2:1});if(h.name="item",n){var u=i?"r":"endAngle",c={};h.shape[u]=i?0:e.startAngle,c[u]=e[u],a[o?"updateProps":"initProps"](h,{shape:c},n,t)}return h}};function b(t,e,i){i.style.text=null,a.updateProps(i,{shape:{width:0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}function w(t,e,i){i.style.text=null,a.updateProps(i,{shape:{r:i.shape.r0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}var S={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),r=i?function(t,e){var i=t.get(p)||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,r)}(i,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*r/2,y:n.y+o*r/2,width:n.width-a*r,height:n.height-o*r}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function M(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function C(t,e,i,n,s,l,h,u){var c=e.getItemVisual(i,"color"),d=e.getItemVisual(i,"opacity"),f=e.getVisual("borderColor"),p=n.getModel("itemStyle"),g=n.getModel("emphasis.itemStyle").getBarItemStyle();u||t.setShape("r",p.get("barBorderRadius")||0),t.useStyle(r.defaults({stroke:M(s)?"none":f,fill:M(s)?"none":c,opacity:d},p.getBarItemStyle()));var v=n.getShallow("cursor");v&&t.attr("cursor",v);var m=h?s.height>0?"bottom":"top":s.width>0?"left":"right";u||o(t.style,g,n,c,l,i,m),M(s)&&(g.fill=g.stroke="none"),a.setHoverStyle(t,g)}var T=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,r=this.__baseDimIdx,a=0;a<i.length;a+=2)n[r]=i[a+r],t.moveTo(n[0],n[1]),t.lineTo(i[a],i[a+1])}});function A(t,e,i){var n=t.getData(),r=[],a=n.getLayout("valueAxisHorizontal")?1:0;r[1-a]=n.getLayout("valueAxisStart");var o=n.getLayout("largeDataIndices"),s=n.getLayout("barWidth"),l=t.getModel("backgroundStyle");if(t.get("showBackground",!0)){var h=n.getLayout("largeBackgroundPoints"),u=[];u[1-a]=n.getLayout("backgroundStart");var c=new T({shape:{points:h},incremental:!!i,__startPoint:u,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s,silent:!0,z2:0});!function(t,e,i){var n=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}(c,l,n),e.add(c)}var d=new T({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:r,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s});e.add(d),function(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}(d,t,n),d.seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",I),d.on("mousemove",I))}var I=c((function(t){var e=function(t,e,i){var n=t.__baseDimIdx,r=1-n,a=t.shape.points,o=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];g[0]=e,g[1]=i;for(var h=g[n],u=g[1-n],c=h-s,d=h+s,f=0,p=a.length/2;f<p;f++){var v=2*f,m=a[v+n],y=a[v+r];if(m>=c&&m<=d&&(l<=y?u>=l&&u<=y:u>=y&&u<=l))return o[f]}return-1}(this,t.offsetX,t.offsetY);this.dataIndex=e>=0?e:null}),30,!1);function D(t,e,i){var n,r="polar"===i.type;return n=r?i.getArea():i.grid.getRect(),r?{cx:n.cx,cy:n.cy,r0:t?n.r0:e.r0,r:t?n.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:n.x,y:t?n.y:e.y,width:t?e.width:n.width,height:t?n.height:e.height}}t.exports=v},489:(t,e,i)=>{var n=i(93321),r=i(40488),a=n.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),r=n.getLayout("offset"),a=n.getLayout("size");return i[e.getBaseAxis().isHorizontal()?0:1]+=r+a/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});t.exports=a},98378:(t,e,i)=>{var n=i(59066)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getBarItemStyle:function(t){var e=n(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}};t.exports=r},7905:(t,e,i)=>{var n=i(51177),r=i(33140).getDefaultLabel;function a(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=function(t,e,i,o,s,l,h){var u=i.getModel("label"),c=i.getModel("emphasis.label");n.setLabelStyle(t,e,u,c,{labelFetcher:s,labelDataIndex:l,defaultText:r(s.getData(),l),isRectText:!0,autoColor:o}),a(t),a(e)}},66351:(t,e,i)=>{var n=i(33051),r=i(41525).createSymbol,a=i(51177),o=i(85669).parsePercent,s=i(33140).getDefaultLabel;function l(t,e,i){a.Group.call(this),this.updateData(t,e,i)}var h=l.prototype,u=l.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};function c(t){return[t[0]/2,t[1]/2]}function d(t,e){this.parent.drift(t,e)}h._createSymbol=function(t,e,i,n,a){this.removeAll();var o=e.getItemVisual(i,"color"),s=r(t,-1,-1,2,2,o,a);s.attr({z2:100,culling:!0,scale:c(n)}),s.drift=d,this._symbolType=t,this.add(s)},h.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},h.getSymbolPath=function(){return this.childAt(0)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger("normal")},h.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},h.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},h.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,o=u(t,e),s=n!==this._symbolType;if(s){var l=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,o,l)}else{(h=this.childAt(0)).silent=!1,a.updateProps(h,{scale:c(o)},r,e)}if(this._updateCommon(t,e,o,i),s){var h=this.childAt(0),d=i&&i.fadeIn,f={scale:h.scale.slice()};d&&(f.style={opacity:h.style.opacity}),h.scale=[0,0],d&&(h.style.opacity=0),a.initProps(h,f,r,e)}this._seriesModel=r};var f=["itemStyle"],p=["emphasis","itemStyle"],g=["label"],v=["emphasis","label"];function m(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var i=this.__symbolOriginalScale,n=i[1]/i[0],r={scale:[Math.max(1.1*i[0],i[0]+3),Math.max(1.1*i[1],i[1]+3*n)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}h._updateCommon=function(t,e,i,r){var l=this.childAt(0),h=t.hostModel,u=t.getItemVisual(e,"color");"image"!==l.type?l.useStyle({strokeNoScale:!0}):l.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var d=r&&r.itemStyle,y=r&&r.hoverItemStyle,_=r&&r.symbolOffset,x=r&&r.labelModel,b=r&&r.hoverLabelModel,w=r&&r.hoverAnimation,S=r&&r.cursorStyle;if(!r||t.hasItemOption){var M=r&&r.itemModel?r.itemModel:t.getItemModel(e);d=M.getModel(f).getItemStyle(["color"]),y=M.getModel(p).getItemStyle(),_=M.getShallow("symbolOffset"),x=M.getModel(g),b=M.getModel(v),w=M.getShallow("hoverAnimation"),S=M.getShallow("cursor")}else y=n.extend({},y);var C=l.style,T=t.getItemVisual(e,"symbolRotate");l.attr("rotation",(T||0)*Math.PI/180||0),_&&l.attr("position",[o(_[0],i[0]),o(_[1],i[1])]),S&&l.attr("cursor",S),l.setColor(u,r&&r.symbolInnerColor),l.setStyle(d);var A=t.getItemVisual(e,"opacity");null!=A&&(C.opacity=A);var I=t.getItemVisual(e,"liftZ"),D=l.__z2Origin;null!=I?null==D&&(l.__z2Origin=l.z2,l.z2+=I):null!=D&&(l.z2=D,l.__z2Origin=null);var k=r&&r.useNameLabel;a.setLabelStyle(C,y,x,b,{labelFetcher:h,labelDataIndex:e,defaultText:function(e,i){return k?t.getName(e):s(t,e)},isRectText:!0,autoColor:u}),l.__symbolOriginalScale=c(i),l.hoverStyle=y,l.highDownOnUpdate=w&&h.isAnimationEnabled()?m:null,a.setHoverStyle(l)},h.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,(!e||!e.keepLabel)&&(i.style.text=null),a.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},n.inherits(l,a.Group);var y=l;t.exports=y},68162:(t,e,i)=>{var n=i(51177),r=i(66351),a=i(33051).isObject;function o(t){this.group=new n.Group,this._symbolCtor=t||r}var s=o.prototype;function l(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function h(t){return null==t||a(t)||(t={isIgnore:t}),t||{}}function u(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}s.updateData=function(t,e){e=h(e);var i=this.group,r=t.hostModel,a=this._data,o=this._symbolCtor,s=u(t);a||i.removeAll(),t.diff(a).add((function(n){var r=t.getItemLayout(n);if(l(t,r,n,e)){var a=new o(t,n,s);a.attr("position",r),t.setItemGraphicEl(n,a),i.add(a)}})).update((function(h,u){var c=a.getItemGraphicEl(u),d=t.getItemLayout(h);l(t,d,h,e)?(c?(c.updateData(t,h,s),n.updateProps(c,{position:d},r)):(c=new o(t,h)).attr("position",d),i.add(c),t.setItemGraphicEl(h,c)):i.remove(c)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}))})).execute(),this._data=t},s.isPersistent=function(){return!0},s.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,i){var n=t.getItemLayout(i);e.attr("position",n)}))},s.incrementalPrepareUpdate=function(t){this._seriesScope=u(t),this._data=null,this.group.removeAll()},s.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}i=h(i);for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(l(e,a,r,i)){var o=new this._symbolCtor(e,r,this._seriesScope);o.traverse(n),o.attr("position",a),this.group.add(o),e.setItemGraphicEl(r,o)}}},s.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var c=o;t.exports=c},22963:(t,e,i)=>{var n=i(51177),r=i(85669).round;function a(t,e,i){var r=t.getArea(),a=t.getBaseAxis().isHorizontal(),o=r.x,s=r.y,l=r.width,h=r.height,u=i.get("lineStyle.width")||2;o-=u/2,s-=u/2,l+=u,h+=u,o=Math.floor(o),l=Math.round(l);var c=new n.Rect({shape:{x:o,y:s,width:l,height:h}});return e&&(c.shape[a?"width":"height"]=0,n.initProps(c,{shape:{width:l,height:h}},i)),c}function o(t,e,i){var a=t.getArea(),o=new n.Sector({shape:{cx:r(t.cx,1),cy:r(t.cy,1),r0:r(a.r0,1),r:r(a.r,1),startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});return e&&(o.shape.endAngle=a.startAngle,n.initProps(o,{shape:{endAngle:a.endAngle}},i)),o}e.createGridClipPath=a,e.createPolarClipPath=o,e.createClipPath=function(t,e,i){return t?"polar"===t.type?o(t,e,i):"cartesian2d"===t.type?a(t,e,i):null:null}},40488:(t,e,i)=>{var n=i(33051),r=i(87587),a=i(55623),o=i(93819).SOURCE_FORMAT_ORIGINAL,s=i(10381).getDimensionTypeByAxis,l=i(32234).getDataItemValue,h=i(95899),u=i(32702).getCoordSysInfoBySeries,c=i(99574),d=i(99936).enableDataStack,f=i(61772).makeSeriesEncodeForAxisCoordSys;var p=function(t,e,i){i=i||{},c.isInstance(t)||(t=c.seriesDataToSource(t));var p,g=e.get("coordinateSystem"),v=h.get(g),m=u(e);m&&(p=n.map(m.coordSysDims,(function(t){var e={name:t},i=m.axisMap.get(t);if(i){var n=i.get("type");e.type=s(n)}return e}))),p||(p=v&&(v.getDimensionsInfo?v.getDimensionsInfo():v.dimensions.slice())||["x","y"]);var y,_,x=a(t,{coordDimensions:p,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?n.curry(f,p,e):null});m&&n.each(x,(function(t,e){var i=t.coordDim,n=m.categoryAxisMap.get(i);n&&(null==y&&(y=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(_=!0)})),_||null==y||(x[y].otherDims.itemName=0);var b=d(e,x),w=new r(x,e);w.setCalculationInfo(b);var S=null!=y&&function(t){if(t.sourceFormat===o){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return null!=e&&!n.isArray(l(e))}}(t)?function(t,e,i,n){return n===y?i:this.defaultDimValueGetter(t,e,i,n)}:null;return w.hasItemOption=!1,w.initData(t,null,S),w};t.exports=p},23263:(t,e,i)=>{var n=i(55623),r=i(87587),a=i(33051),o=a.extend,s=a.isArray;t.exports=function(t,e,i){e=s(e)&&{coordDimensions:e}||o({},e);var a=t.getSource(),l=n(a,e),h=new r(l,t);return h.initData(a,i),h}},95682:(t,e,i)=>{var n=i(32234).makeInner;t.exports=function(){var t=n();return function(e){var i=t(e),n=e.pipelineContext,r=i.large,a=i.progressiveRender,o=i.large=n&&n.large,s=i.progressiveRender=n&&n.progressiveRender;return!!(r^o||a^s)&&"reset"}}},33140:(t,e,i)=>{var n=i(68540).retrieveRawValue;e.getDefaultLabel=function(t,e){var i=t.mapDimension("defaultedLabel",!0),r=i.length;if(1===r)return n(t,e,i[0]);if(r){for(var a=[],o=0;o<i.length;o++){var s=n(t,e,i[o]);a.push(s)}return a.join(" ")}}},46295:(t,e,i)=>{var n=i(70492);i(39790),i(81950);var r=i(34586),a=i(21149),o=i(64088);i(84617),n.registerVisual(r("line","circle","line")),n.registerLayout(a("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o("line"))},39790:(t,e,i)=>{i(38175).__DEV__;var n=i(40488),r=i(93321).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return n(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=r},81950:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=i(3726).fromPoints,a=i(68162),o=i(66351),s=i(21068),l=i(51177),h=i(32234),u=i(30633),c=u.Polyline,d=u.Polygon,f=i(75797),p=i(89385),g=p.prepareDataCoordInfo,v=p.getStackedOnPoint,m=i(22963),y=m.createGridClipPath,_=m.createPolarClipPath;function x(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function b(t,e){var i=[],n=[],a=[],o=[];return r(t,i,n),r(e,a,o),Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]))}function w(t){return"number"==typeof t?t:t?.5:0}function S(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,a=[],o=0;o<t.length-1;o++){var s=t[o+1],l=t[o];a.push(l);var h=[];switch(i){case"end":h[r]=s[r],h[1-r]=l[1-r],a.push(h);break;case"middle":var u=(l[r]+s[r])/2,c=[];h[r]=c[r]=u,h[1-r]=l[1-r],c[1-r]=s[1-r],a.push(h),a.push(c);break;default:h[r]=l[r],h[1-r]=s[1-r],a.push(h)}}return t[o]&&a.push(t[o]),a}function M(t,e,i){var r=t.get("showAllSymbol"),a="auto"===r;if(!r||a){var s=i.getAxesByScale("ordinal")[0];if(s&&(!a||!function(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),s=0;s<r;s+=a)if(1.5*o.getSymbolSize(e,s)[t.isHorizontal()?1:0]>n)return!1;return!0}(s,e))){var l=e.mapDimension(s.dim),h={};return n.each(s.getViewLabels(),(function(t){h[t.tickValue]=1})),function(t){return!h.hasOwnProperty(e.get(l,t))}}}}function C(t,e,i){if("cartesian2d"===t.type){var n=t.getBaseAxis().isHorizontal(),r=y(t,e,i);if(!i.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);n?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return _(t,e,i)}var T=f.extend({type:"line",init:function(){var t=new l.Group,e=new a;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var r=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),h=t.getModel("areaStyle"),u=o.mapArray(o.getItemLayout),c="polar"===r.type,d=this._coordSys,f=this._symbolDraw,p=this._polyline,m=this._polygon,y=this._lineGroup,_=t.get("animation"),b=!h.isEmpty(),T=h.get("origin"),A=function(t,e,i){if(!i.valueDim)return[];for(var n=[],r=0,a=e.count();r<a;r++)n.push(v(i,t,e,r));return n}(r,o,g(r,o,T)),I=t.get("showSymbol"),D=I&&!c&&M(t,o,r),k=this._data;k&&k.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),k.setItemGraphicEl(e,null))})),I||f.remove(),a.add(y);var P,O=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(P=r.getArea()).width?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r1+=.5)),this._clipShapeForSymbol=P,p&&d.type===r.type&&O===this._step?(b&&!m?m=this._newPolygon(u,A,r,_):m&&!b&&(y.remove(m),m=this._polygon=null),y.setClipPath(C(r,!1,t)),I&&f.updateData(o,{isIgnore:D,clipShape:P}),o.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),x(this._stackedOnPoints,A)&&x(this._points,u)||(_?this._updateAnimation(o,A,r,i,O,T):(O&&(u=S(u,r,O),A=S(A,r,O)),p.setShape({points:u}),m&&m.setShape({points:u,stackedOnPoints:A})))):(I&&f.updateData(o,{isIgnore:D,clipShape:P}),O&&(u=S(u,r,O),A=S(A,r,O)),p=this._newPolyline(u,r,_),b&&(m=this._newPolygon(u,A,r,_)),y.setClipPath(C(r,!0,t)));var L=function(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,a,o=i.length-1;o>=0;o--){var s=i[o].dimension,h=t.dimensions[s],u=t.getDimensionInfo(h);if("x"===(r=u&&u.coordDim)||"y"===r){a=i[o];break}}if(a){var c=e.getAxis(r),d=n.map(a.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),f=d.length,p=a.outerColors.slice();f&&d[0].coord>d[f-1].coord&&(d.reverse(),p.reverse());var g=d[0].coord-10,v=d[f-1].coord+10,m=v-g;if(m<.001)return"transparent";n.each(d,(function(t){t.offset=(t.coord-g)/m})),d.push({offset:f?d[f-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:p[0]||"transparent"});var y=new l.LinearGradient(0,0,0,0,d,!0);return y[r]=g,y[r+"2"]=v,y}}}(o,r)||o.getVisual("color");p.useStyle(n.defaults(s.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var E=t.get("smooth");if(E=w(t.get("smooth")),p.setShape({smooth:E,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),m){var R=o.getCalculationInfo("stackedOnSeries"),z=0;m.useStyle(n.defaults(h.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),R&&(z=w(R.get("smooth"))),m.setShape({smooth:E,stackedOnSmooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=r,this._stackedOnPoints=A,this._points=u,this._step=O,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,i,n){var r=t.getData(),a=h.queryDataIndex(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var l=r.getItemLayout(a);if(!l)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l[0],l[1]))return;(s=new o(r,a)).position=l,s.setZ(t.get("zlevel"),t.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else f.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t.getData(),a=h.queryDataIndex(r,n);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else f.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new c({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new d({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,r,a){var o=this._polyline,h=this._polygon,u=t.hostModel,c=s(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,a),d=c.current,f=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(r&&(d=S(c.current,i,r),f=S(c.stackedOnCurrent,i,r),p=S(c.next,i,r),g=S(c.stackedOnNext,i,r)),b(d,p)>3e3||h&&b(f,g)>3e3)return o.setShape({points:p}),void(h&&h.setShape({points:p,stackedOnPoints:g}));o.shape.__points=c.current,o.shape.points=d,l.updateProps(o,{shape:{points:p}},u),h&&(h.setShape({points:d,stackedOnPoints:f}),l.updateProps(h,{shape:{points:p,stackedOnPoints:g}},u));for(var v=[],m=c.status,y=0;y<m.length;y++){if("="===m[y].cmd){var _=t.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}}o.animators&&o.animators.length&&o.animators[0].during((function(){for(var t=0;t<v.length;t++){v[t].el.attr("position",o.shape.__points[v[t].ptIdx])}}))},remove:function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl((function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=T},89385:(t,e,i)=>{var n=i(99936).isDimensionStacked,r=i(33051).map;e.prepareDataCoordInfo=function(t,e,i){var a,o=t.getBaseAxis(),s=t.getOtherAxis(o),l=function(t,e){var i=0,n=t.scale.getExtent();"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]);return i}(s,i),h=o.dim,u=s.dim,c=e.mapDimension(u),d=e.mapDimension(h),f="x"===u||"radius"===u?1:0,p=r(t.dimensions,(function(t){return e.mapDimension(t)})),g=e.getCalculationInfo("stackResultDimension");return(a|=n(e,p[0]))&&(p[0]=g),(a|=n(e,p[1]))&&(p[1]=g),{dataDimsForPoint:p,valueStart:l,valueAxisDim:u,baseAxisDim:h,stacked:!!a,valueDim:c,baseDim:d,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},e.getStackedOnPoint=function(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=i.get(t.baseDim,n),o[1-a]=r,e.dataToPoint(o)}},21068:(t,e,i)=>{var n=i(89385),r=n.prepareDataCoordInfo,a=n.getStackedOnPoint;t.exports=function(t,e,i,n,o,s,l,h){for(var u=function(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}(t,e),c=[],d=[],f=[],p=[],g=[],v=[],m=[],y=r(o,e,l),_=r(s,t,h),x=0;x<u.length;x++){var b=u[x],w=!0;switch(b.cmd){case"=":var S=t.getItemLayout(b.idx),M=e.getItemLayout(b.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=M.slice()),c.push(S),d.push(M),f.push(i[b.idx]),p.push(n[b.idx1]),m.push(e.getRawIndex(b.idx1));break;case"+":var C=b.idx;c.push(o.dataToPoint([e.get(y.dataDimsForPoint[0],C),e.get(y.dataDimsForPoint[1],C)])),d.push(e.getItemLayout(C).slice()),f.push(a(y,o,e,C)),p.push(n[C]),m.push(e.getRawIndex(C));break;case"-":C=b.idx;var T=t.getRawIndex(C);T!==C?(c.push(t.getItemLayout(C)),d.push(s.dataToPoint([t.get(_.dataDimsForPoint[0],C),t.get(_.dataDimsForPoint[1],C)])),f.push(i[C]),p.push(a(_,s,t,C)),m.push(T)):w=!1}w&&(g.push(b),v.push(v.length))}v.sort((function(t,e){return m[t]-m[e]}));var A=[],I=[],D=[],k=[],P=[];for(x=0;x<v.length;x++){C=v[x];A[x]=c[C],I[x]=d[C],D[x]=f[C],k[x]=p[C],P[x]=g[C]}return{current:A,next:I,stackedOnCurrent:D,stackedOnNext:k,status:P}}},30633:(t,e,i)=>{var n=i(10712),r=i(45280),a=i(60873),o=r.min,s=r.max,l=r.scaleAndAdd,h=r.copy,u=[],c=[],d=[];function f(t){return isNaN(t[0])||isNaN(t[1])}function p(t,e,i,n,r,a,o,s,l,h,u){return"none"!==h&&h?g.apply(this,arguments):v.apply(this,arguments)}function g(t,e,i,n,r,a,o,s,l,u,p){for(var g=0,v=i,m=0;m<n;m++){var y=e[v];if(v>=r||v<0)break;if(f(y)){if(p){v+=a;continue}break}if(v===i)t[a>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var _=e[g],x="y"===u?1:0,b=(y[x]-_[x])*l;h(c,_),c[x]=_[x]+b,h(d,y),d[x]=y[x]-b,t.bezierCurveTo(c[0],c[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=v,v+=a}return m}function v(t,e,i,n,a,p,g,v,m,y,_){for(var x=0,b=i,w=0;w<n;w++){var S=e[b];if(b>=a||b<0)break;if(f(S)){if(_){b+=p;continue}break}if(b===i)t[p>0?"moveTo":"lineTo"](S[0],S[1]),h(c,S);else if(m>0){var M=b+p,C=e[M];if(_)for(;C&&f(e[M]);)C=e[M+=p];var T=.5,A=e[x];if(!(C=e[M])||f(C))h(d,S);else{var I,D;if(f(C)&&!_&&(C=S),r.sub(u,C,A),"x"===y||"y"===y){var k="x"===y?0:1;I=Math.abs(S[k]-A[k]),D=Math.abs(S[k]-C[k])}else I=r.dist(S,A),D=r.dist(S,C);l(d,S,u,-m*(1-(T=D/(D+I))))}o(c,c,v),s(c,c,g),o(d,d,v),s(d,d,g),t.bezierCurveTo(c[0],c[1],d[0],d[1],S[0],S[1]),l(c,S,u,m*T)}else t.lineTo(S[0],S[1]);x=b,b+=p}return w}function m(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var y=n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:a(n.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,r=i.length,a=m(i,e.smoothConstraint);if(e.connectNulls){for(;r>0&&f(i[r-1]);r--);for(;n<r&&f(i[n]);n++);}for(;n<r;)n+=p(t,i,n,r,r,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),_=n.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:a(n.prototype.brush),buildPath:function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,a=i.length,o=e.smoothMonotone,s=m(i,e.smoothConstraint),l=m(n,e.smoothConstraint);if(e.connectNulls){for(;a>0&&f(i[a-1]);a--);for(;r<a&&f(i[r]);r++);}for(;r<a;){var h=p(t,i,r,a,a,1,s.min,s.max,e.smooth,o,e.connectNulls);p(t,n,r+h-1,h,a,-1,l.min,l.max,e.stackedOnSmooth,o,e.connectNulls),r+=h+1,t.closePath()}}});e.Polyline=y,e.Polygon=_},94859:(t,e,i)=>{var n=i(70492),r=i(33051);i(52702),i(42471);var a=i(75324),o=i(69274),s=i(63798),l=i(22528);a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(o("pie")),n.registerLayout(r.curry(s,"pie")),n.registerProcessor(l("pie"))},52702:(t,e,i)=>{var n=i(70492),r=i(23263),a=i(33051),o=i(32234),s=i(85669).getPercentWithPrecision,l=i(1501),h=i(68540).retrieveRawAttr,u=i(61772).makeSeriesEncodeForNameBased,c=i(72019),d=n.extendSeriesModel({type:"series.pie",init:function(t){d.superApply(this,"init",arguments),this.legendVisualProvider=new c(a.bind(this.getData,this),a.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){d.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(u,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();n<r;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:h(t,n,"selected")});return i},getDataParams:function(t){var e=this.getData(),i=d.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),(function(t){n.push(t)})),i.percent=s(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){o.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});a.mixin(d,l);var f=d;t.exports=f},42471:(t,e,i)=>{var n=i(33051),r=i(51177),a=i(75797);function o(t,e,i,n){var r=e.getData(),a=this.dataIndex,o=r.getName(a),l=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),r.each((function(t){s(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),l,i)}))}function s(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=i?n:0,s=[Math.cos(a)*o,Math.sin(a)*o];r?t.animate().when(200,{position:s}).start("bounceOut"):t.attr("position",s)}function l(t,e){r.Group.call(this);var i=new r.Sector({z2:2}),n=new r.Polyline,a=new r.Text;this.add(i),this.add(n),this.add(a),this.updateData(t,e,!0)}var h=l.prototype;h.updateData=function(t,e,i){var a=this.childAt(0),o=this.childAt(1),l=this.childAt(2),h=t.hostModel,u=t.getItemModel(e),c=t.getItemLayout(e),d=n.extend({},c);d.label=null;var f=h.getShallow("animationTypeUpdate");i?(a.setShape(d),"scale"===h.getShallow("animationType")?(a.shape.r=c.r0,r.initProps(a,{shape:{r:c.r}},h,e)):(a.shape.endAngle=c.startAngle,r.updateProps(a,{shape:{endAngle:c.endAngle}},h,e))):"expansion"===f?a.setShape(d):r.updateProps(a,{shape:d},h,e);var p=t.getItemVisual(e,"color");a.useStyle(n.defaults({lineJoin:"bevel",fill:p},u.getModel("itemStyle").getItemStyle())),a.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&a.attr("cursor",g),s(this,t.getItemLayout(e),h.isSelected(t.getName(e)),h.get("selectedOffset"),h.get("animation"));var v=!i&&"transition"===f;this._updateLabel(t,e,v),this.highDownOnUpdate=h.get("silent")?null:function(t,e){var i=h.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===e?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,i&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r+h.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,i&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r}},300,"elasticOut")))},r.setHoverStyle(this)},h._updateLabel=function(t,e,i){var n=this.childAt(1),a=this.childAt(2),o=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e).label,h=t.getItemVisual(e,"color");if(!l||isNaN(l.x)||isNaN(l.y))a.ignore=a.normalIgnore=a.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0;else{var u={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},c={x:l.x,y:l.y};i?(r.updateProps(n,{shape:u},o,e),r.updateProps(a,{style:c},o,e)):(n.attr({shape:u}),a.attr({style:c})),a.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var d=s.getModel("label"),f=s.getModel("emphasis.label"),p=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");h=t.getItemVisual(e,"color");r.setLabelStyle(a.style,a.hoverStyle={},d,f,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:l.text,autoColor:h,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),a.ignore=a.normalIgnore=!d.get("show"),a.hoverIgnore=!f.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!g.get("show"),n.setStyle({stroke:h,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(p.getModel("lineStyle").getLineStyle()),n.hoverStyle=g.getModel("lineStyle").getLineStyle();var v=p.get("smooth");v&&!0===v&&(v=.4),n.setShape({smooth:v})}},n.inherits(l,r.Group);var u=a.extend({type:"pie",init:function(){var t=new r.Group;this._sectorGroup=t},render:function(t,e,i,r){if(!r||r.from!==this.uid){var a=t.getData(),s=this._data,h=this.group,u=e.get("animation"),c=!s,d=t.get("animationType"),f=t.get("animationTypeUpdate"),p=n.curry(o,this.uid,t,u,i),g=t.get("selectedMode");if(a.diff(s).add((function(t){var e=new l(a,t);c&&"scale"!==d&&e.eachChild((function(t){t.stopAnimation(!0)})),g&&e.on("click",p),a.setItemGraphicEl(t,e),h.add(e)})).update((function(t,e){var i=s.getItemGraphicEl(e);c||"transition"===f||i.eachChild((function(t){t.stopAnimation(!0)})),i.updateData(a,t),i.off("click"),g&&i.on("click",p),h.add(i),a.setItemGraphicEl(t,i)})).remove((function(t){var e=s.getItemGraphicEl(t);h.remove(e)})).execute(),u&&a.count()>0&&(c?"scale"!==d:"transition"!==f)){for(var v=a.getItemLayout(0),m=1;isNaN(v.startAngle)&&m<a.count();++m)v=a.getItemLayout(m);var y=Math.max(i.getWidth(),i.getHeight())/2,_=n.bind(h.removeClipPath,h);h.setClipPath(this._createClipPath(v.cx,v.cy,y,v.startAngle,v.clockwise,_,t,c))}else h.removeClipPath();this._data=a}},dispose:function(){},_createClipPath:function(t,e,i,n,a,o,s,l){var h=new r.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}});return(l?r.initProps:r.updateProps)(h,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},s,o),h},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,r=t[1]-i.cy,a=Math.sqrt(n*n+r*r);return a<=i.r&&a>=i.r0}}});t.exports=u},17659:(t,e,i)=>{var n=i(80423),r=i(85669).parsePercent,a=Math.PI/180;function o(t,e,i,n,r,a,o,s,l,h){function u(e,i,n,r){for(var a=e;a<i&&!(t[a].y+n>l+o);a++)if(t[a].y+=n,a>e&&a+1<i&&t[a+1].y>t[a].y+t[a].height)return void c(a,n/2);c(i-1,n/2)}function c(e,i){for(var n=e;n>=0&&!(t[n].y-i<l)&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function d(t,e,i,n,r,a){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("none"===t[s].labelAlignTo){var h=Math.abs(t[s].y-n),u=t[s].len,c=t[s].len2,d=h<r+u?Math.sqrt((r+u+c)*(r+u+c)-h*h):Math.abs(t[s].x-i);e&&d>=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var f,p=0,g=t.length,v=[],m=[],y=0;y<g;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var _=t[y].x-h;t[y].linePoints[1][0]+=_,t[y].x=h}(f=t[y].y-p)<0&&u(y,g,-f),p=t[y].y+t[y].height}o-p<0&&c(g-1,p-o);for(y=0;y<g;y++)t[y].y>=i?m.push(t[y]):v.push(t[y]);d(v,!1,e,i,n,r),d(m,!0,e,i,n,r)}function s(t){return"center"===t.position}t.exports=function(t,e,i,l,h,u){var c,d,f=t.getData(),p=[],g=!1,v=(t.get("minShowLabelAngle")||0)*a;f.each((function(a){var o=f.getItemLayout(a),s=f.getItemModel(a),l=s.getModel("label"),u=l.get("position")||s.get("emphasis.label.position"),m=l.get("distanceToLabelLine"),y=l.get("alignTo"),_=r(l.get("margin"),i),x=l.get("bleedMargin"),b=l.getFont(),w=s.getModel("labelLine"),S=w.get("length");S=r(S,i);var M=w.get("length2");if(M=r(M,i),!(o.angle<v)){var C,T,A,I,D=(o.startAngle+o.endAngle)/2,k=Math.cos(D),P=Math.sin(D);c=o.cx,d=o.cy;var O,L=t.getFormattedLabel(a,"normal")||f.getName(a),E=n.getBoundingRect(L,b,I,"top"),R="inside"===u||"inner"===u;if("center"===u)C=o.cx,T=o.cy,I="center";else{var z=(R?(o.r+o.r0)/2*k:o.r*k)+c,B=(R?(o.r+o.r0)/2*P:o.r*P)+d;if(C=z+3*k,T=B+3*P,!R){var N=z+k*(S+e-o.r),F=B+P*(S+e-o.r),V=N+(k<0?-1:1)*M;C="edge"===y?k<0?h+_:h+i-_:V+(k<0?-m:m),T=F,A=[[z,B],[N,F],[V,F]]}I=R?"center":"edge"===y?k>0?"right":"left":k>0?"left":"right"}var H=l.get("rotate");O="number"==typeof H?H*(Math.PI/180):H?k<0?-D+Math.PI:-D:0,g=!!O,o.label={x:C,y:T,position:u,height:E.height,len:S,len2:M,linePoints:A,textAlign:I,verticalAlign:"middle",rotation:O,inside:R,labelDistance:m,labelAlignTo:y,labelMargin:_,bleedMargin:x,textRect:E,text:L,font:b},R||p.push(o.label)}})),!g&&t.get("avoidLabelOverlap")&&function(t,e,i,r,a,l,h,u){for(var c=[],d=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<t.length;g++)s(t[g])||(t[g].x<e?(f=Math.min(f,t[g].x),c.push(t[g])):(p=Math.max(p,t[g].x),d.push(t[g])));for(o(d,e,i,r,1,0,l,0,u,p),o(c,e,i,r,-1,0,l,0,u,f),g=0;g<t.length;g++){var v=t[g];if(!s(v)){var m=v.linePoints;if(m){var y,_="edge"===v.labelAlignTo,x=v.textRect.width;(y=_?v.x<e?m[2][0]-v.labelDistance-h-v.labelMargin:h+a-v.labelMargin-m[2][0]-v.labelDistance:v.x<e?v.x-h-v.bleedMargin:h+a-v.x-v.bleedMargin)<v.textRect.width&&(v.text=n.truncateText(v.text,y,v.font),"edge"===v.labelAlignTo&&(x=n.getWidth(v.text,v.font)));var b=m[1][0]-m[2][0];_?v.x<e?m[2][0]=h+v.labelMargin+x+v.labelDistance:m[2][0]=h+a-v.labelMargin-x-v.labelDistance:(v.x<e?m[2][0]=v.x+v.labelDistance:m[2][0]=v.x-v.labelDistance,m[1][0]=m[2][0]+b),m[1][1]=m[2][1]=v.y}}}}(p,c,d,e,i,l,h,u)}},63798:(t,e,i)=>{var n=i(85669),r=n.parsePercent,a=n.linearMap,o=i(76172),s=i(17659),l=i(33051),h=2*Math.PI,u=Math.PI/180;t.exports=function(t,e,i,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),c=function(t,e){return o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,i),d=t.get("center"),f=t.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(d)||(d=[d,d]);var p=r(c.width,i.getWidth()),g=r(c.height,i.getHeight()),v=Math.min(p,g),m=r(d[0],p)+c.x,y=r(d[1],g)+c.y,_=r(f[0],v/2),x=r(f[1],v/2),b=-t.get("startAngle")*u,w=t.get("minAngle")*u,S=0;e.each(n,(function(t){!isNaN(t)&&S++}));var M=e.getSum(n),C=Math.PI/(M||S)*2,T=t.get("clockwise"),A=t.get("roseType"),I=t.get("stillShowZeroSum"),D=e.getDataExtent(n);D[0]=0;var k=h,P=0,O=b,L=T?1:-1;if(e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:m,cy:y,r0:_,r:A?NaN:x,viewRect:c});else{(n="area"!==A?0===M&&I?C:t*C:h/S)<w?(n=w,k-=w):P+=t;var r=O+L*n;e.setItemLayout(i,{angle:n,startAngle:O,endAngle:r,clockwise:T,cx:m,cy:y,r0:_,r:A?a(t,D,[_,x]):x,viewRect:c}),O=r}})),k<h&&S)if(k<=.001){var E=h/S;e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=E,n.startAngle=b+L*i*E,n.endAngle=b+L*(i+1)*E}}))}else C=k/P,O=b,e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===w?w:t*C;n.startAngle=O,n.endAngle=O+L*r,O+=L*r}}));s(t,x,c.width,c.height,c.x,c.y)}))}},88791:(t,e,i)=>{i(54805),i(42567)},52528:(t,e,i)=>{var n=i(70492),r=i(33051),a=i(18490),o=i(96472);i(16572),i(48253),i(97326),n.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!r.isArray(e)&&(t.axisPointer.link=[e])}})),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=a.collect(t,e)})),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},16572:(t,e,i)=>{var n=i(70492).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});t.exports=n},48253:(t,e,i)=>{var n=i(70492),r=i(56996),a=n.extendComponentView({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),a=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";r.register("axisPointer",i,(function(t,e,i){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},47329:(t,e,i)=>{var n=i(33051),r=i(34251),a=i(51177),o=i(18490),s=i(61158),l=i(270),h=(0,i(32234).makeInner)(),u=n.clone,c=n.bind;function d(){}function f(t,e,i,n){p(h(i).lastProp,n)||(h(i).lastProp=n,e?a.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function p(t,e){if(n.isObject(t)&&n.isObject(e)){var i=!0;return n.each(e,(function(e,n){i=i&&p(t[n],e)})),!!i}return t===e}function g(t,e){t[e.get("label.show")?"show":"hide"]()}function v(t){return{position:t.position.slice(),rotation:t.rotation||0}}function m(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)}))}d.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,r){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,h=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(h&&h.hide());l&&l.show(),h&&h.show();var u={};this.makeElOption(u,o,t,e,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var p=n.curry(f,e,d);this.updatePointerEl(l,u,p,e),this.updateLabelEl(l,u,p,e)}else l=this._group=new a.Group,this.createPointerEl(l,u,t,e),this.createLabelEl(l,u,t,e),i.getZr().add(l);m(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(r&&n.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(t).seriesDataCount,h=n.getExtent();return Math.abs(h[0]-h[1])/l>s}return!1}return!0===i},makeElOption:function(t,e,i,n,r){},createPointerEl:function(t,e,i,n){var r=e.pointer;if(r){var o=h(t).pointerEl=new a[r.type](u(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var r=h(t).labelEl=new a.Rect(u(e.label));t.add(r),g(r,n)}},updatePointerEl:function(t,e,i){var n=h(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var r=h(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{shape:e.label.shape,position:e.label.position}),g(r,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,r=this._api.getZr(),o=this._handle,h=i.getModel("handle"),u=i.get("status");if(!h.get("show")||!u||"hide"===u)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(h.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:c(this._onHandleDragMove,this,0,0),drift:c(this._onHandleDragMove,this),ondragend:c(this._onHandleDragEnd,this)}),r.add(o)),m(o,i,!1);o.setStyle(h.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var d=h.get("size");n.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",h.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){f(this._axisPointerModel,!e&&this._moveAnimation,this._handle,v(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(v(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(v(n)),h(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}}},d.prototype.constructor=d,r.enableClassExtend(d);var y=d;t.exports=y},97326:(t,e,i)=>{var n=i(47329),r=i(75539),a=i(49069),o=i(11726),s=n.extend({makeElOption:function(t,e,i,n,o){var s=i.axis,u=s.grid,c=n.get("type"),d=l(u,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(e,!0));if(c&&"none"!==c){var p=r.buildElStyle(n),g=h[c](s,f,d);g.style=p,t.graphicKey=g.type,t.pointer=g}var v=a.layout(u.model,i);r.buildCartesianSingleLabelElOption(e,t,v,i,n,o)},getHandleTransform:function(t,e,i){var n=a.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var r=i.axis,a=r.grid,o=r.getGlobalExtent(!0),s=l(a,r).getOtherAxis(r).getGlobalExtent(),h="x"===r.dim?0:1,u=t.position;u[h]+=e[h],u[h]=Math.min(o[1],u[h]),u[h]=Math.max(o[0],u[h]);var c=(s[1]+s[0])/2,d=[c,c];d[h]=u[h];return{position:u,rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][h]}}});function l(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var h={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:r.makeLineShape([e,i[0]],[e,i[1]],u(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),a=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([e-n/2,i[0]],[n,a],u(t))}}};function u(t){return"x"===t.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var c=s;t.exports=c},96472:(t,e,i)=>{var n=i(33051),r=i(32234).makeInner,a=i(18490),o=i(92448),s=n.each,l=n.curry,h=r();function u(t,e,i,r,a){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var l=function(t,e){var i=e.axis,n=i.dim,r=t,a=[],o=Number.MAX_VALUE,l=-1;return s(e.seriesModels,(function(e,h){var u,c,d=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(d,t,i);c=f.dataIndices,u=f.nestestValue}else{if(!(c=e.getData().indicesOfNearest(d[0],t,"category"===i.type?.5:null)).length)return;u=e.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,g=Math.abs(p);g<=o&&((g<o||p>=0&&l<0)&&(o=g,l=p,r=u,a.length=0),s(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}(e,t),h=l.payloadBatch,u=l.snapToValue;h[0]&&null==a.seriesIndex&&n.extend(a,h[0]),!r&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,h,a),i.showTooltip(t,l,u)}else i.showPointer(t,e)}function c(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function d(t,e,i,n){var r=i.payloadBatch,o=e.axis,s=o.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var h=e.coordSys.model,u=a.makeKey(h),c=t.map[u];c||(c=t.map[u]={coordSysId:h.id,coordSysIndex:h.componentIndex,coordSysType:h.type,coordSysMainType:h.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function f(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function p(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=function(t,e,i){var r=t.currTrigger,a=[t.x,t.y],g=t,v=t.dispatchAction||n.bind(i.dispatchAction,i),m=e.getComponent("axisPointer").coordSysAxesInfo;if(m){p(a)&&(a=o({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var y=p(a),_=g.axesInfo,x=m.axesInfo,b="leave"===r||p(a),w={},S={},M={list:[],map:{}},C={showPointer:l(c,S),showTooltip:l(d,M)};s(m.coordSysMap,(function(t,e){var i=y||t.containPoint(a);s(m.coordSysAxesInfo[e],(function(t,e){var n=t.axis,r=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(_,t);if(!b&&i&&(!_||r)){var o=r&&r.value;null!=o||y||(o=n.pointToData(a)),null!=o&&u(t,o,C,!1,w)}}))}));var T={};return s(x,(function(t,e){var i=t.linkGroup;i&&!S[e]&&s(i.axesInfo,(function(e,n){var r=S[n];if(e!==t&&r){var a=r.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,f(e),f(t)))),T[t.key]=a}}))})),s(T,(function(t,e){u(x[e],t,C,!0,w)})),function(t,e,i){var n=i.axesInfo=[];s(e,(function(e,i){var r=e.axisPointerModel.option,a=t[i];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(S,x,w),function(t,e,i,n){if(p(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(M,a,t,v),function(t,e,i){var r=i.getZr(),a="axisPointerLastHighlights",o=h(r)[a]||{},l=h(r)[a]={};s(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&s(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;l[e]=t}))}));var u=[],c=[];n.each(o,(function(t,e){!l[e]&&c.push(t)})),n.each(l,(function(t,e){!o[e]&&u.push(t)})),c.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:c}),u.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:u})}(x,0,i),w}}},92448:(t,e,i)=>{var n=i(33051),r=i(32234);t.exports=function(t,e){var i,a=[],o=t.seriesIndex;if(null==o||!(i=e.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=r.queryDataIndex(s,t);if(null==l||l<0||n.isArray(l))return{point:[]};var h=s.getItemGraphicEl(l),u=i.coordinateSystem;if(i.getTooltipPosition)a=i.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)a=u.dataToPoint(s.getValues(n.map(u.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(h){var c=h.getBoundingRect().clone();c.applyTransform(h.transform),a=[c.x+c.width/2,c.y+c.height/2]}return{point:a,el:h}}},56996:(t,e,i)=>{var n=i(33051),r=i(66387),a=(0,i(32234).makeInner)(),o=n.each;function s(t,e,i){t.handler("leave",null,i)}function l(t,e,i,n){e.handler(t,i,n)}e.register=function(t,e,i){if(!r.node){var h=e.getZr();a(h).records||(a(h).records={}),function(t,e){if(a(t).initialized)return;function i(i,n){t.on(i,(function(i){var r=function(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}(e);o(a(t).records,(function(t){t&&n(t,i,r.dispatchAction)})),function(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]);i&&(i.dispatchAction=null,e.dispatchAction(i))}(r.pendings,e)}))}a(t).initialized=!0,i("click",n.curry(l,"click")),i("mousemove",n.curry(l,"mousemove")),i("globalout",s)}(h,e),(a(h).records[t]||(a(h).records[t]={})).handler=i}},e.unregister=function(t,e){if(!r.node){var i=e.getZr();(a(i).records||{})[t]&&(a(i).records[t]=null)}}},18490:(t,e,i)=>{var n=i(33051),r=i(4272),a=n.each,o=n.curry;function s(t,e){return"all"===t||n.isArray(t)&&n.indexOf(t,e)>=0||t===e}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[u(t)]}function h(t){return!!t.get("handle.show")}function u(t){return t.type+"||"+t.id}e.collect=function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var l=e.getComponent("tooltip"),c=e.getComponent("axisPointer"),d=c.get("link",!0)||[],f=[];a(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var p=u(i.model),g=t.coordSysAxesInfo[p]={};t.coordSysMap[p]=i;var v=i.model.getModel("tooltip",l);if(a(i.getAxes(),o(x,!1,null)),i.getTooltipAxes&&l&&v.get("show")){var m="axis"===v.get("trigger"),y="cross"===v.get("axisPointer.type"),_=i.getTooltipAxes(v.get("axisPointer.axis"));(m||y)&&a(_.baseAxes,o(x,!y||"cross",m)),y&&a(_.otherAxes,o(x,"cross",!1))}}function x(o,l,p){var m=p.model.getModel("axisPointer",c),y=m.get("show");if(y&&("auto"!==y||o||h(m))){null==l&&(l=m.get("triggerTooltip")),m=o?function(t,e,i,o,s,l){var h=e.getModel("axisPointer"),u={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){u[t]=n.clone(h.get(t))})),u.snap="category"!==t.type&&!!l,"cross"===h.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===s){var d=h.get("label.show");if(c.show=null==d||d,!l){var f=u.lineStyle=h.get("crossStyle");f&&n.defaults(c,f.textStyle)}}return t.model.getModel("axisPointer",new r(u,i,o))}(p,v,c,e,o,l):m;var _=m.get("snap"),x=u(p.model),b=l||_||"category"===p.type,w=t.axesInfo[x]={key:x,axis:p,coordSys:i,axisPointerModel:m,triggerTooltip:l,involveSeries:b,snap:_,useHandle:h(m),seriesModels:[]};g[x]=w,t.seriesInvolved|=b;var S=function(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(s(a[n+"AxisId"],i.id)||s(a[n+"AxisIndex"],i.componentIndex)||s(a[n+"AxisName"],i.name))return r}}(d,p);if(null!=S){var M=f[S]||(f[S]={axesInfo:{}});M.axesInfo[x]=w,M.mapper=d[S].mapper,w.linkGroup=M}}}}))}(i,t,e),i.seriesInvolved&&function(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&a(t.coordSysAxesInfo[u(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}(i,t),i},e.fixValue=function(t){var e=l(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,a=i.get("status"),o=i.get("value");null!=o&&(o=n.parse(o));var s=h(i);null==a&&(r.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==o||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}},e.getAxisInfo=l,e.getAxisPointerModel=function(t){var e=l(t);return e&&e.axisPointerModel},e.makeKey=u},75539:(t,e,i)=>{var n=i(33051),r=i(51177),a=i(80423),o=i(78988),s=i(32892),l=i(97980),h=i(58608);function u(t,e,i,n,r){var s=c(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),l=i.getModel("label"),h=o.normalizeCssArray(l.get("padding")||0),u=l.getFont(),d=a.getBoundingRect(s,u),f=r.position,p=d.width+h[1]+h[3],g=d.height+h[0]+h[2],v=r.align;"right"===v&&(f[0]-=p),"center"===v&&(f[0]-=p/2);var m=r.verticalAlign;"bottom"===m&&(f[1]-=g),"middle"===m&&(f[1]-=g/2),function(t,e,i,n){var r=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,a)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(f,p,g,n);var y=l.get("backgroundColor");y&&"auto"!==y||(y=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:p,height:g,r:l.get("borderRadius")},position:f.slice(),style:{text:s,textFont:u,textFill:l.getTextColor(),textPosition:"inside",textPadding:h,fill:y,stroke:l.get("borderColor")||"transparent",lineWidth:l.get("borderWidth")||0,shadowBlur:l.get("shadowBlur"),shadowColor:l.get("shadowColor"),shadowOffsetX:l.get("shadowOffsetX"),shadowOffsetY:l.get("shadowOffsetY")},z2:10}}function c(t,e,i,r,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),s=a.formatter;if(s){var h={value:l.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};n.each(r,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&h.seriesData.push(r)})),n.isString(s)?o=s.replace("{value}",o):n.isFunction(s)&&(o=s(h))}return o}function d(t,e,i){var n=s.create();return s.rotate(n,n,i.rotation),s.translate(n,n,i.position),r.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}e.buildElStyle=function(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e},e.buildLabelElOption=u,e.getValueLabel=c,e.getTransformedPosition=d,e.buildCartesianSingleLabelElOption=function(t,e,i,n,r,a){var o=h.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get("label.margin"),u(e,n,r,a,{position:d(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})},e.makeLineShape=function(t,e,i){return{x1:t[i=i||0],y1:t[1-i],x2:e[i],y2:e[1-i]}},e.makeRectShape=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},e.makeSectorShape=function(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}},58608:(t,e,i)=>{var n=i(33051),r=n.retrieve,a=n.defaults,o=n.extend,s=n.each,l=i(78988),h=i(51177),u=i(4272),c=i(85669),d=c.isRadianAroundZero,f=c.remRadian,p=i(41525).createSymbol,g=i(32892),v=i(45280).applyTransform,m=i(97980).shouldShowAllLabels,y=Math.PI,_=function(t,e){this.opt=e,this.axisModel=t,a(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group;var i=new h.Group({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};_.prototype={constructor:_,hasBuilder:function(t){return!!x[t]},add:function(t){x[t].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(v(r,r,n),v(a,a,n));var l=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new h.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var u=e.get("axisLine.symbol"),c=e.get("axisLine.symbolSize"),d=e.get("axisLine.symbolOffset")||0;if("number"==typeof d&&(d=[d,d]),null!=u){"string"==typeof u&&(u=[u,u]),"string"!=typeof c&&"number"!=typeof c||(c=[c,c]);var f=c[0],g=c[1];s([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],(function(e,i){if("none"!==u[i]&&null!=u[i]){var n=p(u[i],-f/2,-g/2,f,g,l.stroke,!0),a=e.r+e.offset,o=[r[0]+a*Math.cos(t.rotation),r[1]-a*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=function(t,e,i){var n=e.axis,r=e.getModel("axisTick");if(!r.get("show")||n.scale.isBlank())return;for(var o=r.getModel("lineStyle"),s=i.tickDirection*r.get("length"),l=A(n.getTicksCoords(),t._transform,s,a(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),h=0;h<l.length;h++)t.group.add(l[h]);return l}(this,t,e),n=function(t,e,i){var n=e.axis;if(!r(i.axisLabelShow,e.get("axisLabel.show"))||n.scale.isBlank())return;var a=e.getModel("axisLabel"),o=a.get("margin"),l=n.getViewLabels(),c=(r(i.labelRotate,a.get("rotate"))||0)*y/180,d=w(i.rotation,c,i.labelDirection),f=e.getCategories&&e.getCategories(!0),p=[],g=S(e),v=e.get("triggerEvent");return s(l,(function(r,s){var l=r.tickValue,c=r.formattedLabel,m=r.rawLabel,y=a;f&&f[l]&&f[l].textStyle&&(y=new u(f[l].textStyle,a,e.ecModel));var _=y.getTextColor()||e.get("axisLine.lineStyle.color"),x=[n.dataToCoord(l),i.labelOffset+i.labelDirection*o],w=new h.Text({anid:"label_"+l,position:x,rotation:d.rotation,silent:g,z2:10});h.setTextStyle(w.style,y,{text:c,textAlign:y.getShallow("align",!0)||d.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||d.textVerticalAlign,textFill:"function"==typeof _?_("category"===n.type?m:"value"===n.type?l+"":l,s):_}),v&&(w.eventData=b(e),w.eventData.targetType="axisLabel",w.eventData.value=m),t._dumbGroup.add(w),w.updateTransform(),p.push(w),t.group.add(w),w.decomposeTransform()})),p}(this,t,e);!function(t,e,i){if(m(t.axis))return;var n=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");i=i||[];var a=(e=e||[])[0],o=e[1],s=e[e.length-1],l=e[e.length-2],h=i[0],u=i[1],c=i[i.length-1],d=i[i.length-2];!1===n?(M(a),M(h)):C(a,o)&&(n?(M(o),M(u)):(M(a),M(h)));!1===r?(M(s),M(c)):C(l,s)&&(r?(M(l),M(d)):(M(s),M(c)))}(t,n,i),function(t,e,i){var n=e.axis,r=e.getModel("minorTick");if(!r.get("show")||n.scale.isBlank())return;var o=n.getMinorTicksCoords();if(!o.length)return;for(var s=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),h=a(s.getLineStyle(),a(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),u=0;u<o.length;u++)for(var c=A(o[u],t._transform,l,h,"minorticks_"+u),d=0;d<c.length;d++)t.group.add(c[d])}(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,i=r(t.axisName,e.get("name"));if(i){var n,a,s=e.get("nameLocation"),u=t.nameDirection,c=e.getModel("nameTextStyle"),p=e.get("nameGap")||0,g=this.axisModel.axis.getExtent(),v=g[0]>g[1]?-1:1,m=["start"===s?g[0]-v*p:"end"===s?g[1]+v*p:(g[0]+g[1])/2,T(s)?t.labelOffset+u*p:0],_=e.get("nameRotate");null!=_&&(_=_*y/180),T(s)?n=w(t.rotation,null!=_?_:t.rotation,u):(n=function(t,e,i,n){var r,a,o=f(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;d(o-y/2)?(a=l?"bottom":"top",r="center"):d(o-1.5*y)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*y&&o>y/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:r,textVerticalAlign:a}}(t,s,_||0,g),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(n.rotation)),!isFinite(a)&&(a=null)));var x=c.getFont(),M=e.get("nameTruncate",!0)||{},C=M.ellipsis,A=r(t.nameTruncateMaxWidth,M.maxWidth,a),I=null!=C&&null!=A?l.truncateText(i,A,x,C,{minChar:2,placeholder:M.placeholder}):i,D=e.get("tooltip",!0),k=e.mainType,P={componentType:k,name:i,$vars:["name"]};P[k+"Index"]=e.componentIndex;var O=new h.Text({anid:"name",__fullText:i,__truncatedText:I,position:m,rotation:n.rotation,silent:S(e),z2:1,tooltip:D&&D.show?o({content:i,formatter:function(){return i},formatterParams:P},D):null});h.setTextStyle(O.style,c,{text:I,textFont:x,textFill:c.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:c.get("align")||n.textAlign,textVerticalAlign:c.get("verticalAlign")||n.textVerticalAlign}),e.get("triggerEvent")&&(O.eventData=b(e),O.eventData.targetType="axisName",O.eventData.name=i),this._dumbGroup.add(O),O.updateTransform(),this.group.add(O),O.decomposeTransform()}}},b=_.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},w=_.innerTextLayout=function(t,e,i){var n,r,a=f(e-t);return d(a)?(r=i>0?"top":"bottom",n="center"):d(a-y)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=a>0&&a<y?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:r}};var S=_.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function M(t){t&&(t.ignore=!0)}function C(t,e,i){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var a=g.identity([]);return g.rotate(a,a,-t.rotation),n.applyTransform(g.mul([],a,t.getLocalTransform())),r.applyTransform(g.mul([],a,e.getLocalTransform())),n.intersect(r)}}function T(t){return"middle"===t||"center"===t}function A(t,e,i,n,r){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=i,e&&(v(o,o,e),v(s,s,e));var c=new h.Line({anid:r+"_"+t[l].tickValue,subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,silent:!0});a.push(c)}return a}var I=_;t.exports=I},11726:(t,e,i)=>{i(38175).__DEV__;var n=i(70492),r=i(18490),a=n.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&r.fixValue(t),a.superApply(this,"render",arguments),o(this,t,e,i,n,!0)},updateAxisPointer:function(t,e,i,n,r){o(this,t,e,i,n,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),a.superApply(this,"remove",arguments)},dispose:function(t,e){s(this,e),a.superApply(this,"dispose",arguments)}});function o(t,e,i,n,o,l){var h=a.getAxisPointerClass(t.axisPointerClass);if(h){var u=r.getAxisPointerModel(e);u?(t._axisPointer||(t._axisPointer=new h)).render(e,u,n,l):s(t,n)}}function s(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}var l=[];a.registerAxisPointerClass=function(t,e){l[t]=e},a.getAxisPointerClass=function(t){return t&&l[t]};var h=a;t.exports=h},42567:(t,e,i)=>{var n=i(33051),r=i(51177),a=i(58608),o=i(11726),s=i(49069),l=i(77956),h=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,c=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine","minorSplitLine"],f=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),t.get("show")){var h=t.getCoordSysModel(),u=s.layout(h,t),p=new a(t,u);n.each(c,p.add,p),this._axisGroup.add(p.getGroup()),n.each(d,(function(e){t.get(e+".show")&&this["_"+e](t,h)}),this),r.groupTransition(l,this._axisGroup,t),f.superCall(this,"render",t,e,i,o)}},remove:function(){u(this)},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=n.isArray(s)?s:[s];for(var l=e.coordinateSystem.getRect(),h=i.isHorizontal(),u=0,c=i.getTicksCoords({tickModel:a}),d=[],f=[],p=o.getLineStyle(),g=0;g<c.length;g++){var v=i.toGlobalCoord(c[g].coord);h?(d[0]=v,d[1]=l.y,f[0]=v,f[1]=l.y+l.height):(d[0]=l.x,d[1]=v,f[0]=l.x+l.width,f[1]=v);var m=u++%s.length,y=c[g].tickValue;this._axisGroup.add(new r.Line({anid:null!=y?"line_"+c[g].tickValue:null,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:n.defaults({stroke:s[m]},p),silent:!0}))}}},_minorSplitLine:function(t,e){var i=t.axis,n=t.getModel("minorSplitLine").getModel("lineStyle"),a=e.coordinateSystem.getRect(),o=i.isHorizontal(),s=i.getMinorTicksCoords();if(s.length)for(var l=[],h=[],u=n.getLineStyle(),c=0;c<s.length;c++)for(var d=0;d<s[c].length;d++){var f=i.toGlobalCoord(s[c][d].coord);o?(l[0]=f,l[1]=a.y,h[0]=f,h[1]=a.y+a.height):(l[0]=a.x,l[1]=f,h[0]=a.x+a.width,h[1]=f),this._axisGroup.add(new r.Line({anid:"minor_line_"+s[c][d].tickValue,subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:u,silent:!0}))}},_splitArea:function(t,e){h(this,this._axisGroup,t,e)}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},77956:(t,e,i)=>{var n=i(33051),r=i(51177);e.rectCoordAxisBuildSplitArea=function(t,e,i,a){var o=i.axis;if(!o.scale.isBlank()){var s=i.getModel("splitArea"),l=s.getModel("areaStyle"),h=l.get("color"),u=a.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:s,clamp:!0});if(c.length){var d=h.length,f=t.__splitAreaColors,p=n.createHashMap(),g=0;if(f)for(var v=0;v<c.length;v++){var m=f.get(c[v].tickValue);if(null!=m){g=(m+(d-1)*v)%d;break}}var y=o.toGlobalCoord(c[0].coord),_=l.getAreaStyle();h=n.isArray(h)?h:[h];for(v=1;v<c.length;v++){var x,b,w,S,M=o.toGlobalCoord(c[v].coord);o.isHorizontal()?(x=y,b=u.y,w=M-x,S=u.height,y=x+w):(x=u.x,b=y,w=u.width,y=b+(S=M-b));var C=c[v-1].tickValue;null!=C&&p.set(C,g),e.add(new r.Rect({anid:null!=C?"area_"+C:null,shape:{x,y:b,width:w,height:S},style:n.defaults({fill:h[g]},_),silent:!0})),g=(g+1)%d}t.__splitAreaColors=p}}},e.rectCoordAxisHandleRemove=function(t){t.__splitAreaColors=null}},81768:(t,e,i)=>{var n=i(98071),r=i(33166),a=i(61772).detectSourceFormat,o=i(93819).SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:o,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),r.extend({type:"dataset"})},84617:(t,e,i)=>{var n=i(70492),r=i(33051),a=i(51177);i(77532),i(88791),n.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},99337:(t,e,i)=>{var n=i(76172),r=n.getLayoutRect,a=n.box,o=n.positionElement,s=i(78988),l=i(51177);e.layout=function(t,e,i){var n=e.getBoxLayoutParams(),s=e.get("padding"),l={width:i.getWidth(),height:i.getHeight()},h=r(n,l,s);a(e.get("orient"),t,e.get("itemGap"),h.width,h.height),o(t,n,l,s)},e.makeBackground=function(t,e){var i=s.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new l.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}},1501:(t,e,i)=>{var n=i(33051),r={updateSelectedMap:function(t){this._targetList=n.isArray(t)?t.slice():[],this._selectTargetMap=n.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),n.createHashMap())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}};t.exports=r},78511:(t,e,i)=>{var n=i(70492);i(73650),i(13174),i(13134);var r=i(3391),a=i(98071);n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,r),a.registerSubTypeDefaulter("legend",(function(){return"plain"}))},73650:(t,e,i)=>{var n=i(70492),r=i(33051),a=i(4272),o=i(32234).isNameSpecified,s=i(40292).legend.selector,l={all:{type:"all",title:r.clone(s.all)},inverse:{type:"inverse",title:r.clone(s.inverse)}},h=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){h.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;!0===e&&(e=t.selector=["all","inverse"]),r.isArray(e)&&r.each(e,(function(t,i){r.isString(t)&&(t={type:t}),e[i]=r.merge(t,l[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],i=[];t.eachRawSeries((function(n){var r,a=n.name;if(i.push(a),n.legendVisualProvider){var s=n.legendVisualProvider.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&o(n)&&e.push(n.name)})),this._availableNames=i;var n=this.get("data")||e,s=r.map(n,(function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new a(t,this,this.ecModel)}),this);this._data=s},getData:function(){return this._data},select:function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var i=this._data;r.each(i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){e[t.get("name",!0)]=!0}))},inverseSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]}))},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&r.indexOf(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),u=h;t.exports=u},13134:(t,e,i)=>{i(38175).__DEV__;var n=i(70492),r=i(33051),a=i(41525).createSymbol,o=i(51177),s=i(99337).makeBackground,l=i(76172),h=r.curry,u=r.each,c=o.Group,d=n.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new c),this._backgroundEl,this.group.add(this._selectorGroup=new c),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var a=t.get("align"),o=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===o?"right":"left");var h=t.get("selector",!0),u=t.get("selectorPosition",!0);!h||u&&"auto"!==u||(u="horizontal"===o?"end":"start"),this.renderInner(a,t,e,i,h,o,u);var c=t.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},f=t.get("padding"),p=l.getLayoutRect(c,d,f),g=this.layoutInner(t,a,p,n,h,u),v=l.getLayoutRect(r.defaults({width:g.width,height:g.height},c),d,f);this.group.attr("position",[v.x-g.x,v.y-g.y]),this.group.add(this._backgroundEl=s(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,i,n,a,o,s){var l=this.getContentGroup(),d=r.createHashMap(),f=e.get("selectedMode"),m=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&m.push(t.id)})),u(e.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=i.getSeriesByName(o)[0];if(!d.get(o))if(s){var u=s.getData(),y=u.getVisual("color"),_=u.getVisual("borderColor");"function"==typeof y&&(y=y(s.getDataParams(0))),"function"==typeof _&&(_=_(s.getDataParams(0)));var x=u.getVisual("legendSymbol")||"roundRect",b=u.getVisual("symbol");this._createItem(o,a,r,e,x,b,t,y,_,f).on("click",h(p,o,null,n,m)).on("mouseover",h(g,s.name,null,n,m)).on("mouseout",h(v,s.name,null,n,m)),d.set(o,!0)}else i.eachRawSeries((function(i){if(!d.get(o)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),u=s.getItemVisual(l,"color"),c=s.getItemVisual(l,"borderColor");this._createItem(o,a,r,e,"roundRect",null,t,u,c,f).on("click",h(p,null,o,n,m)).on("mouseover",h(g,null,o,n,m)).on("mouseout",h(v,null,o,n,m)),d.set(o,!0)}}),this)}else l.add(new c({newline:!0}))}),this),a&&this._createSelector(a,e,n,o,s)},_createSelector:function(t,e,i,n,r){var a=this.getSelectorGroup();u(t,(function(t){!function(t){var n=t.type,r=new o.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var s=e.getModel("selectorLabel"),l=e.getModel("emphasis.selectorLabel");o.setLabelStyle(r.style,r.hoverStyle={},s,l,{defaultText:t.title,isRectText:!1}),o.setHoverStyle(r)}(t)}))},_createItem:function(t,e,i,n,s,l,h,u,d,p){var g=n.get("itemWidth"),v=n.get("itemHeight"),m=n.get("inactiveColor"),y=n.get("inactiveBorderColor"),_=n.get("symbolKeepAspect"),x=n.getModel("itemStyle"),b=n.isSelected(t),w=new c,S=i.getModel("textStyle"),M=i.get("icon"),C=i.getModel("tooltip"),T=C.parentModel,A=a(s=M||s,0,0,g,v,b?u:m,null==_||_);if(w.add(f(A,s,x,d,y,b)),!M&&l&&(l!==s||"none"===l)){var I=.8*v;"none"===l&&(l="circle");var D=a(l,(g-I)/2,(v-I)/2,I,I,b?u:m,null==_||_);w.add(f(D,l,x,d,y,b))}var k="left"===h?g+5:-5,P=h,O=n.get("formatter"),L=t;"string"==typeof O&&O?L=O.replace("{name}",null!=t?t:""):"function"==typeof O&&(L=O(t)),w.add(new o.Text({style:o.setTextStyle({},S,{text:L,x:k,y:v/2,textFill:b?S.getTextColor():m,textAlign:P,textVerticalAlign:"middle"})}));var E=new o.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:C.get("show")?r.extend({content:t,formatter:T.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},C.option):null});return w.add(E),w.eachChild((function(t){t.silent=!0})),E.silent=!p,this.getContentGroup().add(w),o.setHoverStyle(w),w.__legendDataIndex=e,w},layoutInner:function(t,e,i,n,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();l.box(t.get("orient"),o,t.get("itemGap"),i.width,i.height);var h=o.getBoundingRect(),u=[-h.x,-h.y];if(r){l.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===a?d[p]+=h[g]+f:u[p]+=c[g]+f,d[1-p]+=h[v]/2-c[v]/2,s.attr("position",d),o.attr("position",u);var y={x:0,y:0};return y[g]=h[g]+f+c[g],y[v]=Math.max(h[v],c[v]),y[m]=Math.min(0,c[m]+d[1-p]),y}return o.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function f(t,e,i,n,r,a){var o;return"line"!==e&&e.indexOf("empty")<0?(o=i.getItemStyle(),t.style.stroke=n,a||(o.stroke=r)):o=i.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function p(t,e,i,n){v(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),g(t,e,i,n)}function g(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function v(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}t.exports=d},13174:(t,e,i)=>{var n=i(70492),r=i(33051);function a(t,e,i){var n,a={},o="toggleSelected"===t;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var s=i.getData();r.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&n:a[e]=n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:a}:{name:e.name,selected:a}}n.registerAction("legendToggleSelect","legendselectchanged",r.curry(a,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",r.curry(a,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",r.curry(a,"inverseSelect")),n.registerAction("legendSelect","legendselected",r.curry(a,"select")),n.registerAction("legendUnSelect","legendunselected",r.curry(a,"unSelect"))},3391:t=>{t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0}))}},83062:(t,e,i)=>{var n=i(70492);i(52528),i(16470),i(88085),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},36333:(t,e,i)=>{var n=i(33051),r=i(21092),a=i(61158),o=i(18553),s=i(66387),l=i(78988),h=n.each,u=l.toCamelCase,c=["","-webkit-","-moz-","-o-"];function d(t){var e,i,a,o=[],d=t.get("transitionDuration"),f=t.get("backgroundColor"),p=t.getModel("textStyle"),g=t.get("padding");return d&&o.push((a="left "+(e=d)+"s "+(i="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+e+"s "+i,n.map(c,(function(t){return t+"transition:"+a})).join(";"))),f&&(s.canvasSupported?o.push("background-Color:"+f):(o.push("background-Color:#"+r.toHex(f)),o.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],(function(e){var i="border-"+e,n=u(i),r=t.get(n);null!=r&&o.push(i+":"+r+("color"===e?"":"px"))})),o.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*i/2)),i&&e.push("line-height:"+r+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),h(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}(p)),null!=g&&o.push("padding:"+l.normalizeCssArray(g).join("px ")+"px"),o.join(";")+";"}function f(t,e,i,n,r){var a=e&&e.painter;if(i){var s=a&&a.getViewportRoot();s&&o.transformLocalCoord(t,s,document.body,n,r)}else{t[0]=n,t[1]=r;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function p(t,e,i){if(s.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],f(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=r.handler,i=r.painter.getViewportRoot();a.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}p.prototype={constructor:p,_enterable:!0,update:function(t){var e=this._container,i=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,i=this._styleCoord;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+d(t)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i=this._styleCoord;f(i,this._zr,this._appendToBody,t,e);var n=this.el.style;n.left=i[0]+"px",n.top=i[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}};var g=p;t.exports=g},16470:(t,e,i)=>{var n=i(70492).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=n},97634:(t,e,i)=>{var n=i(33051),r=i(96498),a=i(51177);function o(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function s(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],o(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);for(var n={},o=t,s="{marker",l=o.indexOf(s);l>=0;){var h=o.indexOf("|}"),u=o.substr(l+s.length,h-l-s.length);u.indexOf("sub")>-1?n["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:n["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},l=(o=o.substr(h+1)).indexOf("{marker")}var c=i.getModel("textStyle"),d=c.get("fontSize"),f=i.get("textLineHeight");null==f&&(f=Math.round(3*d/2)),this.el=new r({style:a.setTextStyle({},c,{rich:n,text:t,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding"),textLineHeight:f}),z:i.get("z")}),this._zr.add(this.el);var p=this;this.el.on("mouseover",(function(){p._enterable&&(clearTimeout(p._hideTimeout),p._show=!0),p._inContent=!0})),this.el.on("mouseout",(function(){p._enterable&&p._show&&p.hideLater(p._hideDelay),p._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var i=this._styleCoord;o(i,this._zr,t,e),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var l=s;t.exports=l},88085:(t,e,i)=>{var n=i(70492),r=i(33051),a=i(66387),o=i(36333),s=i(97634),l=i(78988),h=i(85669),u=i(51177),c=i(92448),d=i(76172),f=i(4272),p=i(56996),g=i(97980),v=i(75539),m=i(32234).getTooltipRenderMode,y=r.bind,_=r.each,x=h.parsePercent,b=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),w=n.extendComponentView({type:"tooltip",init:function(t,e){if(!a.node){var i,n=t.getComponent("tooltip"),r=n.get("renderMode");this._renderMode=m(r),"html"===this._renderMode?(i=new o(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)}),this._newLine="<br/>"):(i=new s(e),this._newLine="\n"),this._tooltipContent=i}},render:function(t,e,i){if(!a.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");p.register("itemTooltip",this._api,y((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!a.node){var r=M(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=b;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=c(n,e),h=l.point[0],u=l.point[1];null!=h&&null!=u&&this._tryShow({offsetX:h,offsetY:u,position:n.position,target:l.el},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},manuallyHideTip:function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(M(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var r=n.seriesIndex,a=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s)if("axis"===(t=S([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=r.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],h=S([e.tooltipOption,n]),u=this._renderMode,c=this._newLine,d={};_(t,(function(t){_(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var h=v.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(o){var l=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,f=l&&l.getDataParams(c);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=g.getAxisRawValue(e.axis,n),f.axisValueLabel=h,f){s.push(f);var p,v=l.formatTooltip(c,!0,null,u);if(r.isObject(v)){p=v.html;var m=v.markers;r.merge(d,m)}else p=v;a.push(p)}}));var f=h;"html"!==u?o.push(a.join(c)):o.push((f?l.encodeHTML(f)+c:"")+a.join(c))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(h,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(h,f,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(h,o,s,Math.random(),a[0],a[1],f,void 0,d)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,o=n.getSeriesByIndex(a),s=e.dataModel||o,l=e.dataIndex,h=e.dataType,u=s.getData(h),c=S([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var f,p,g=s.getDataParams(l,h),v=s.formatTooltip(l,!1,h,this._renderMode);r.isObject(v)?(f=v.html,p=v.markers):(f=v,p=null);var m="item_"+s.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,f,g,m,t.offsetX,t.offsetY,t.position,t.target,p)})),i({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){n={content:n,formatter:n}}var r=new f(n,this._tooltipModel,this._ecModel),a=r.get("content"),o=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},o,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,r,a,o,s,h){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");o=o||t.get("position");var d=e;if(c&&"string"==typeof c)d=l.formatTpl(c,i,!0);else if("function"==typeof c){var f=y((function(e,n){e===this._ticket&&(u.setContent(n,h,t),this._updatePosition(t,o,r,a,u,i,s))}),this);this._ticket=n,d=c(i,n,f)}u.setContent(d,h,t),u.show(t),this._updatePosition(t,o,r,a,u,i,s)}},_updatePosition:function(t,e,i,n,a,o,s){var l=this._api.getWidth(),h=this._api.getHeight();e=e||t.get("position");var u=a.getSize(),c=t.get("align"),f=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"==typeof e&&(e=e([i,n],o,a.el,p,{viewSize:[l,h],contentSize:u.slice()})),r.isArray(e))i=x(e[0],l),n=x(e[1],h);else if(r.isObject(e)){e.width=u[0],e.height=u[1];var g=d.getLayoutRect(e,{width:l,height:h});i=g.x,n=g.y,c=null,f=null}else if("string"==typeof e&&s){var v=function(t,e,i){var n=i[0],r=i[1],a=5,o=0,s=0,l=e.width,h=e.height;switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+h/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-n/2,s=e.y+h+a;break;case"left":o=e.x-n-a,s=e.y+h/2-r/2;break;case"right":o=e.x+l+a,s=e.y+h/2-r/2}return[o,s]}(e,p,u);i=v[0],n=v[1]}else{v=function(t,e,i,n,r,a,o){var s=i.getOuterSize(),l=s.width,h=s.height;null!=a&&(t+l+a>n?t-=l+a:t+=a);null!=o&&(e+h+o>r?e-=h+o:e+=o);return[t,e]}(i,n,a,l,h,c?null:20,f?null:20);i=v[0],n=v[1]}if(c&&(i-=C(c)?u[0]/2:"right"===c?u[0]:0),f&&(n-=C(f)?u[1]/2:"bottom"===f?u[1]:0),t.get("confine")){v=function(t,e,i,n,r){var a=i.getOuterSize(),o=a.width,s=a.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,a,l,h);i=v[0],n=v[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&_(e,(function(e,n){var r=e.dataByAxis||{},a=(t[n]||{}).dataByAxis||[];(i&=r.length===a.length)&&_(r,(function(t,e){var n=a[e]||{},r=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===o.length)&&_(r,(function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){a.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",e))}});function S(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(f.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new f(i,e,e.ecModel))}return e}function M(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function C(t){return"center"===t||"middle"===t}t.exports=w},38175:(t,e,i)=>{var n;"undefined"!=typeof window?n=window.__DEV__:void 0!==i.g&&(n=i.g.__DEV__),void 0===n&&(n=!0);var r=n;e.__DEV__=r},3245:(t,e,i)=>{var n=i(33051),r=n.each,a=n.map,o=i(85669),s=o.linearMap,l=o.getPixelPrecision,h=o.round,u=i(58958),c=u.createAxisTicks,d=u.createAxisLabels,f=u.calculateCategoryInterval,p=[0,1],g=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};function v(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}g.prototype={constructor:g,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&v(i=i.slice(),n.count()),s(t,p,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&v(i=i.slice(),n.count());var r=s(t,i,p,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=c(this,e).ticks,n=a(i,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,e,i,n){var a=e.length;if(!t.onBand||i||!a)return;var o,s,l=t.getExtent();if(1===a)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var u=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/u;r(e,(function(t){t.coord-=c/2})),s=1+t.scale.getExtent()[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*s},e.push(o)}var d=l[0]>l[1];f(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift());n&&f(l[0],e[0].coord)&&e.unshift({coord:l[0]});f(l[1],o.coord)&&(n?o.coord=l[1]:e.pop());n&&f(o.coord,l[1])&&e.push({coord:l[1]});function f(t,e){return t=h(t),e=h(e),d?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return a(e,(function(t){return a(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var m=g;t.exports=m},66484:(t,e,i)=>{var n=i(33051),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},a={};a.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),a.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},a.valueAxis),a.logAxis=n.defaults({scale:!0,logBase:10},a.valueAxis);var o=a;t.exports=o},97980:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=i(85043),a=i(70103),o=i(60379),s=i(85669),l=i(79093),h=l.prepareLayoutBarSeries,u=l.makeColumnLayout,c=l.retrieveColumnLayout,d=i(60479);function f(t,e){var i,r,a,o=t.type,l=e.getMin(),d=e.getMax(),f=t.getExtent();"ordinal"===o?i=e.getCategories().length:(r=e.get("boundaryGap"),n.isArray(r)||(r=[r||0,r||0]),"boolean"==typeof r[0]&&(r=[0,0]),r[0]=s.parsePercent(r[0],1),r[1]=s.parsePercent(r[1],1),a=f[1]-f[0]||Math.abs(f[0])),"dataMin"===l?l=f[0]:"function"==typeof l&&(l=l({min:f[0],max:f[1]})),"dataMax"===d?d=f[1]:"function"==typeof d&&(d=d({min:f[0],max:f[1]}));var p=null!=l,g=null!=d;null==l&&(l="ordinal"===o?i?0:NaN:f[0]-r[0]*a),null==d&&(d="ordinal"===o?i?i-1:NaN:f[1]+r[1]*a),(null==l||!isFinite(l))&&(l=NaN),(null==d||!isFinite(d))&&(d=NaN),t.setBlank(n.eqNaN(l)||n.eqNaN(d)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(l>0&&d>0&&!p&&(l=0),l<0&&d<0&&!g&&(d=0));var v=e.ecModel;if(v&&"time"===o){var m,y=h("bar",v);if(n.each(y,(function(t){m|=t.getBaseAxis()===e.axis})),m){var _=u(y),x=function(t,e,i,r){var a=i.axis.getExtent(),o=a[1]-a[0],s=c(r,i.axis);if(void 0===s)return{min:t,max:e};var l=1/0;n.each(s,(function(t){l=Math.min(t.offset,l)}));var h=-1/0;n.each(s,(function(t){h=Math.max(t.offset+t.width,h)})),l=Math.abs(l),h=Math.abs(h);var u=l+h,d=e-t,f=d/(1-(l+h)/o)-d;return{min:t-=f*(l/u),max:e+=f*(h/u)}}(l,d,e,_);l=x.min,d=x.max}}return{extent:[l,d],fixMin:p,fixMax:g}}function p(t){var e,i=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof i?(e=i,i=function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}):"function"==typeof i?function(e,r){return null!=n&&(r=e-n),i(g(t,e),r)}:function(e){return t.scale.getLabel(e)}}function g(t,e){return"category"===t.type?t.scale.getLabel(e):e}function v(t){var e=t.get("interval");return null==e?"auto":e}i(61618),i(76304),e.getScaleExtent=f,e.niceScaleExtent=function(t,e){var i=f(t,e),n=i.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(o.getClass(e)||a).create(t)}},e.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},e.makeLabelFormatter=p,e.getAxisRawValue=g,e.estimateLabelUnionRect=function(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,r,a="category"===t.type,o=i.getExtent();r=a?i.count():(n=i.getTicks()).length;var s,l,h,u,c,f,g,v,m,y=t.getLabelModel(),_=p(t),x=1;r>40&&(x=Math.ceil(r/40));for(var b=0;b<r;b+=x){var w=_(n?n[b]:o[0]+b),S=y.getTextRect(w),M=(l=S,h=y.get("rotate")||0,u=void 0,c=void 0,f=void 0,g=void 0,v=void 0,m=void 0,void 0,u=h*Math.PI/180,c=l.plain(),f=c.width,g=c.height,v=f*Math.abs(Math.cos(u))+Math.abs(g*Math.sin(u)),m=f*Math.abs(Math.sin(u))+Math.abs(g*Math.cos(u)),new d(c.x,c.y,v,m));s?s.union(M):s=M}return s}},e.getOptionCategoryInterval=v,e.shouldShowAllLabels=function(t){return"category"===t.type&&0===v(t.getLabelModel())}},16650:(t,e,i)=>{var n=i(33051),r={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:n.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};t.exports=r},21293:(t,e,i)=>{var n=i(33051),r=i(66484),a=i(98071),o=i(76172),s=o.getLayoutParams,l=o.mergeLayoutParam,h=i(51401),u=["value","category","time","log"];t.exports=function(t,e,i,o){n.each(u,(function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,h=o?s(e):{},u=r.getTheme();n.merge(e,u.get(a+"Axis")),n.merge(e,this.getDefaultOption()),e.type=i(t,e),o&&l(e,h,o)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=h.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},r[a+"Axis"],o],!0)})})),a.registerSubTypeDefaulter(t+"Axis",n.curry(i,t))}},58958:(t,e,i)=>{var n=i(33051),r=i(80423),a=i(32234).makeInner,o=i(97980),s=o.makeLabelFormatter,l=o.getOptionCategoryInterval,h=o.shouldShowAllLabels,u=a();function c(t,e){var i,r,a=d(t,"labels"),o=l(e),s=f(a,o);return s||(n.isFunction(o)?i=v(t,o):(r="auto"===o?function(t){var e=u(t).autoInterval;return null!=e?e:u(t).autoInterval=t.calculateCategoryInterval()}(t):o,i=g(t,r)),p(a,o,{labels:i,labelCategoryInterval:r}))}function d(t,e){return u(t)[e]||(u(t)[e]=[])}function f(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function p(t,e,i){return t.push({key:e,value:i}),i}function g(t,e,i){var n=s(t),r=t.scale,a=r.getExtent(),o=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],d=r.count();0!==c&&u>1&&d/u>2&&(c=Math.round(Math.ceil(c/u)*u));var f=h(t),p=o.get("showMinLabel")||f,g=o.get("showMaxLabel")||f;p&&c!==a[0]&&m(a[0]);for(var v=c;v<=a[1];v+=u)m(v);function m(t){l.push(i?t:{formattedLabel:n(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&v-u!==a[1]&&m(a[1]),l}function v(t,e,i){var r=t.scale,a=s(t),o=[];return n.each(r.getTicks(),(function(t){var n=r.getLabel(t);e(t,n)&&o.push(i?t:{formattedLabel:a(t),rawLabel:n,tickValue:t})})),o}e.createAxisLabels=function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),i=c(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(t):function(t){var e=t.scale.getTicks(),i=s(t);return{labels:n.map(e,(function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}(t)},e.createAxisTicks=function(t,e){return"category"===t.type?function(t,e){var i,r,a=d(t,"ticks"),o=l(e),s=f(a,o);if(s)return s;e.get("show")&&!t.scale.isBlank()||(i=[]);if(n.isFunction(o))i=v(t,o,!0);else if("auto"===o){var h=c(t,t.getLabelModel());r=h.labelCategoryInterval,i=n.map(h.labels,(function(t){return t.tickValue}))}else i=g(t,r=o,!0);return p(a,o,{ticks:i,tickCategoryInterval:r})}(t,e):{ticks:t.scale.getTicks()}},e.calculateCategoryInterval=function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=s(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),l=a.count();if(o[1]-o[0]<1)return 0;var h=1;l>40&&(h=Math.max(1,Math.floor(l/40)));for(var c=o[0],d=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(d*Math.cos(n)),p=Math.abs(d*Math.sin(n)),g=0,v=0;c<=o[1];c+=h){var m,y,_=r.getBoundingRect(i(c),e.font,"center","top");m=1.3*_.width,y=1.3*_.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var x=g/f,b=v/p;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),S=u(t.model),M=t.getExtent(),C=S.lastAutoInterval,T=S.lastTickCount;return null!=C&&null!=T&&Math.abs(C-w)<=1&&Math.abs(T-l)<=1&&C>w&&S.axisExtend0===M[0]&&S.axisExtend1===M[1]?w=C:(S.lastTickCount=l,S.lastAutoInterval=w,S.axisExtend0=M[0],S.axisExtend1=M[1]),w}},57760:(t,e,i)=>{var n=i(33051),r=i(3245),a=function(t,e,i,n,a){r.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},n.inherits(a,r);var o=a;t.exports=o},54805:(t,e,i)=>{var n=i(33051),r=i(98071),a=i(21293),o=i(16650),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,o);var h={offset:0};a("x",s,l,h),a("y",s,l,h);var u=s;t.exports=u},53907:(t,e,i)=>{var n=i(33051);function r(t){return this._axes[t]}var a=function(t){this._axes={},this._dimList=[],this.name=t||""};a.prototype={constructor:a,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return n.map(this._dimList,r,this)},getAxesByScale:function(t){return t=t.toLowerCase(),n.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i.length;r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}};var o=a;t.exports=o},81096:(t,e,i)=>{var n=i(33051),r=i(60479),a=i(53907);function o(t){a.call(this,t)}o.prototype={constructor:o,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,i){var n=this.getAxis("x"),r=this.getAxis("y");return(i=i||[])[0]=n.toGlobalCoord(n.dataToCoord(t[0])),i[1]=r.toGlobalCoord(r.dataToCoord(t[1])),i},clampData:function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),a=n.getExtent(),o=i.parse(t[0]),s=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return(e=e||[])[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),a=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new r(i,n,a,o)}},n.inherits(o,a);var s=o;t.exports=s},77532:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=n.isObject,a=n.each,o=n.map,s=n.indexOf,l=(n.retrieve,i(76172).getLayoutRect),h=i(97980),u=h.createScaleByModel,c=h.ifAxisCrossZero,d=h.niceScaleExtent,f=h.estimateLabelUnionRect,p=i(81096),g=i(57760),v=i(95899),m=i(99936).getStackedDimension;function y(t,e,i){return t.getCoordSysModel()===e}function _(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}i(33927);var x=_.prototype;function b(t,e,i,n){i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=i.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)w(a[l])&&(r=a[l]);else for(var h in a)if(a.hasOwnProperty(h)&&w(a[h])&&!n[u(a[h])]){r=a[h];break}r&&(n[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function w(t){return t&&"category"!==t.type&&"time"!==t.type&&c(t)}x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),a(i.x,(function(t){d(t.scale,t.model)})),a(i.y,(function(t){d(t.scale,t.model)}));var n={};a(i.x,(function(t){b(i,"y",t,n)})),a(i.y,(function(t){b(i,"x",t,n)})),this.resize(this.model,e)},x.resize=function(t,e,i){var n=l(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=n;var r=this._axesList;function o(){a(r,(function(t){var e=t.isHorizontal(),i=e?[0,n.width]:[0,n.height],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),function(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}(t,e?n.x:n.y)}))}o(),!i&&t.get("containLabel")&&(a(r,(function(t){if(!t.model.get("axisLabel.inside")){var e=f(t);if(e){var i=t.isHorizontal()?"height":"width",r=t.model.get("axisLabel.margin");n[i]-=e[i]+r,"top"===t.position?n.y+=e.height+r:"left"===t.position&&(n.x+=e.width+r)}}})),o())},x.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}r(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},x.getCartesians=function(){return this._coordsList.slice()},x.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},x.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},x._findConvertTarget=function(t,e){var i,n,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],l=e.gridModel,h=this._coordsList;if(r)i=r.coordinateSystem,s(h,i)<0&&(i=null);else if(a&&o)i=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)n=this.getAxis("x",a.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(l){l.coordinateSystem===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},x.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},x._initCartesian=function(t,e,i){var n={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},o={x:0,y:0};if(e.eachComponent("xAxis",s("x"),this),e.eachComponent("yAxis",s("y"),this),!o.x||!o.y)return this._axesMap={},void(this._axesList=[]);function s(e){return function(i,a){if(y(i,t)){var s=i.get("position");"x"===e?"top"!==s&&"bottom"!==s&&(s=n.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=n.left?"right":"left"),n[s]=!0;var l=new g(e,u(i),[0,0],i.get("type"),s),h="category"===l.type;l.onBand=h&&i.get("boundaryGap"),l.inverse=i.get("inverse"),i.axis=l,l.model=i,l.grid=this,l.index=a,this._axesList.push(l),r[e][a]=l,o[e]++}}}this._axesMap=r,a(r.x,(function(e,i){a(r.y,(function(n,r){var a="x"+i+"y"+r,o=new p(a);o.grid=this,o.model=t,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(e),o.addAxis(n)}),this)}),this)},x._updateScale=function(t,e){function i(t,e,i){a(t.mapDimension(e.dim,!0),(function(i){e.scale.unionExtentFromData(t,m(t,i))}))}a(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(n){if(C(n)){var r=M(n,t),a=r[0],o=r[1];if(!y(a,e)||!y(o,e))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=n.getData(),h=s.getAxis("x"),u=s.getAxis("y");"list"===l.type&&(i(l,h,n),i(l,u,n))}}),this)},x.getTooltipAxes=function(t){var e=[],i=[];return a(this.getCartesians(),(function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),a=n.getOtherAxis(r);s(e,r)<0&&e.push(r),s(i,a)<0&&i.push(a)})),{baseAxes:e,otherAxes:i}};var S=["xAxis","yAxis"];function M(t,e){return o(S,(function(e){return t.getReferringComponents(e)[0]}))}function C(t){return"cartesian2d"===t.get("coordinateSystem")}_.create=function(t,e){var i=[];return t.eachComponent("grid",(function(n,r){var a=new _(n,t,e);a.name="grid_"+r,a.resize(n,e,!0),n.coordinateSystem=a,i.push(a)})),t.eachSeries((function(t){if(C(t)){var e=M(t),i=e[0],n=e[1],r=i.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(i.componentIndex,n.componentIndex)}})),i},_.dimensions=_.prototype.dimensions=p.prototype.dimensions,v.register("cartesian2d",_);var T=_;t.exports=T},33927:(t,e,i)=>{i(54805);var n=i(98071).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=n},49069:(t,e,i)=>{var n=i(33051);e.layout=function(t,e,i){i=i||{};var r=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,h=s?"onZero":l,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=["y"===u?g[f[h]]:d[0],"x"===u?g[f[h]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],o.labelOffset=s?g[f[l]]-g[f.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),n.retrieve(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var m=e.get("axisLabel.rotate");return o.labelRotate="top"===h?-m:m,o.z2=1,o}},64215:(t,e,i)=>{var n=i(60479),r=i(3726),a=i(45280),o=i(40765);function s(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],o=[-e,-e],s=[],l=[],h=this.geometries,u=0;u<h.length;u++)if("polygon"===h[u].type){var c=h[u].exterior;r.fromPoints(c,s,l),a.min(i,i,s),a.max(o,o,l)}return 0===u&&(i[0]=i[1]=o[0]=o[1]=0),this._rect=new n(i[0],i[1],o[0]-i[0],o[1]-i[1])},contain:function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;n<r;n++)if("polygon"===i[n].type){var a=i[n].exterior,s=i[n].interiors;if(o.contain(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(o.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,i,r){var o=this.getBoundingRect(),s=o.width/o.height;i?r||(r=i/s):i=s*r;for(var l=new n(t,e,i,r),h=o.calculateTransform(l),u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){for(var d=u[c].exterior,f=u[c].interiors,p=0;p<d.length;p++)a.applyTransform(d[p],d[p],h);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)a.applyTransform(f[g][p],f[g][p],h)}(o=this._rect).copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new s(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var l=s;t.exports=l},26418:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=n.createHashMap,a=n.isString,o=n.isArray,s=n.each,l=(n.assert,i(10003).parseXML),h=r(),u={registerMap:function(t,e,i){var n;return o(e)?n=e:e.svg?n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),n=[{type:"geoJSON",source:e,specialAreas:i}]),s(n,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,c[e])(t)})),h.set(t,n)},retrieveMap:function(t){return h.get(t)}},c={geoJSON:function(t){var e=t.source;t.geoJSON=a(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=l(t.source)}};t.exports=u},76672:(t,e,i)=>{var n=i(33051),r=i(64215);function a(t,e,i){for(var n=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,a=l+=a,n.push([s/i,l/i])}return n}t.exports=function(t,e){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n<i.length;n++)for(var r=i[n].geometry,o=r.coordinates,s=r.encodeOffsets,l=0;l<o.length;l++){var h=o[l];if("Polygon"===r.type)o[l]=a(h,s[l],e);else if("MultiPolygon"===r.type)for(var u=0;u<h.length;u++){var c=h[u];h[u]=a(c,s[l][u],e)}}t.UTF8Encoding=!1}(t),n.map(n.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var i=t.properties,a=t.geometry,o=a.coordinates,s=[];"Polygon"===a.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===a.type&&n.each(o,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new r(i[e||"name"],s,i.cp);return l.properties=i,l}))}},4130:t=>{function e(t){return t}function i(t,i,n,r,a){this._old=t,this._new=i,this._oldKeyGetter=n||e,this._newKeyGetter=r||e,this.context=a}function n(t,e,i,n,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[n](t[a],a),s=e[o];null==s?(i.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}i.prototype={constructor:i,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},r=[],a=[];for(n(t,{},r,"_oldKeyGetter",this),n(e,i,a,"_newKeyGetter",this),o=0;o<t.length;o++){if(null!=(l=i[s=r[o]]))(u=l.length)?(1===u&&(i[s]=null),l=l.shift()):i[s]=null,this._update&&this._update(l,o);else this._remove&&this._remove(o)}for(var o=0;o<a.length;o++){var s=a[o];if(i.hasOwnProperty(s)){var l;if(null==(l=i[s]))continue;if(l.length)for(var h=0,u=l.length;h<u;h++)this._add&&this._add(l[h]);else this._add&&this._add(l)}}}};var r=i;t.exports=r},80690:(t,e,i)=>{var n=i(33051);var r=function(t){null!=t&&n.extend(this,t),this.otherDims={}};t.exports=r},87587:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=i(4272),a=i(4130),o=i(99574),s=i(68540),l=s.defaultDimValueGetters,h=s.DefaultDataProvider,u=i(10381).summarizeDimensions,c=i(80690),d=n.isObject,f="undefined",p={float:typeof Float64Array===f?Array:Float64Array,int:typeof Int32Array===f?Array:Int32Array,ordinal:Array,number:Array,time:Array},g=typeof Uint32Array===f?Array:Uint32Array,v=typeof Int32Array===f?Array:Int32Array,m=typeof Uint16Array===f?Array:Uint16Array;function y(t){return t._rawCount>65535?g:m}var _=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function b(t,e){n.each(_.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,n.each(x,(function(i){t[i]=n.clone(e[i])})),t._calculationInfo=n.extend(e._calculationInfo)}var w=function(t,e){t=t||["x","y"];for(var i={},r=[],a={},o=0;o<t.length;o++){var s=t[o];n.isString(s)?s=new c({name:s}):s instanceof c||(s=new c(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},r.push(l),i[l]=s,s.index=o,s.createInvertedIndices&&(a[l]=[])}this.dimensions=r,this._dimensionInfos=i,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=u(this),this._invertedIndicesMap=a,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},S=w.prototype;function M(t,e,i,n,r){var a=p[e.type],o=n-1,s=e.name,l=t[s][o];if(l&&l.length<i){for(var h=new a(Math.min(r-o*i,i)),u=0;u<l.length;u++)h[u]=l[u];t[s][o]=h}for(var c=n*i;c<r;c+=i)t[s].push(new a(Math.min(r-c,i)))}function C(t){var e=t._invertedIndicesMap;n.each(e,(function(i,n){var r=t._dimensionInfos[n].ordinalMeta;if(r){i=e[n]=new v(r.categories.length);for(var a=0;a<i.length;a++)i[a]=-1;for(a=0;a<t._count;a++)i[t.get(n,a)]=a}}))}function T(t,e,i){var n;if(null!=e){var r=t._chunkSize,a=Math.floor(i/r),o=i%r,s=t.dimensions[e],l=t._storage[s][a];if(l){n=l[o];var h=t._dimensionInfos[s].ordinalMeta;h&&h.categories.length&&(n=h.categories[n])}}return n}function A(t){return t}function I(t){return t<this._count&&t>=0?this._indices[t]:-1}function D(t,e){var i=t._idList[e];return null==i&&(i=T(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i}function k(t){return n.isArray(t)||(t=[t]),t}function P(t,e){var i=t.dimensions,r=new w(n.map(i,t.getDimensionInfo,t),t.hostModel);b(r,t);for(var a=r._storage={},o=t._storage,s=0;s<i.length;s++){var l=i[s];o[l]&&(n.indexOf(e,l)>=0?(a[l]=O(o[l]),r._rawExtent[l]=L(),r._extent[l]=null):a[l]=o[l])}return r}function O(t){for(var e,i,n=new Array(t.length),r=0;r<t.length;r++)n[r]=(e=t[r],i=void 0,(i=e.constructor)===Array?e.slice():new i(e));return n}function L(){return[1/0,-1/0]}S.type="list",S.hasItemOption=!0,S.getDimension=function(t){return"number"!=typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},S.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},S.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},S.mapDimension=function(t,e){var i=this._dimensionsSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return!0===e?(n||[]).slice():n&&n[e]},S.initData=function(t,e,i){(o.isInstance(t)||n.isArrayLike(t))&&(t=new h(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=l[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._dimValueGetterArrayRows=l.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},S.getProvider=function(){return this._rawData},S.appendData=function(t){var e=this._rawData,i=this.count();e.appendData(t);var n=e.count();e.persistent||(n+=i),this._initDataFromProvider(i,n)},S.appendValues=function(t,e){for(var i=this._chunkSize,n=this._storage,r=this.dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),h=this._chunkCount,u=0;u<a;u++){o[m=r[u]]||(o[m]=L()),n[m]||(n[m]=[]),M(n,this._dimensionInfos[m],i,h,l),this._chunkCount=n[m].length}for(var c=new Array(a),d=s;d<l;d++){for(var f=d-s,p=Math.floor(d/i),g=d%i,v=0;v<a;v++){var m=r[v],y=this._dimValueGetterArrayRows(t[f]||c,m,f,v);n[m][p][g]=y;var _=o[m];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}e&&(this._nameList[d]=e[f])}this._rawCount=this._count=l,this._extent={},C(this)},S._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,h=this._nameList,u=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;p<s;p++){c[b=o[p]]||(c[b]=L());var g=l[b];0===g.otherDims.itemName&&(i=this._nameDimIdx=p),0===g.otherDims.itemId&&(this._idDimIdx=p),a[b]||(a[b]=[]),M(a,g,n,f,e),this._chunkCount=a[b].length}for(var v=new Array(s),m=t;m<e;m++){v=r.getItem(m,v);for(var y=Math.floor(m/n),_=m%n,x=0;x<s;x++){var b,w=a[b=o[x]][y],S=this._dimValueGetter(v,b,m,x);w[_]=S;var T=c[b];S<T[0]&&(T[0]=S),S>T[1]&&(T[1]=S)}if(!r.pure){var A=h[m];if(v&&null==A)if(null!=v.name)h[m]=A=v.name;else if(null!=i){var I=o[i],D=a[I][y];if(D){A=D[_];var k=l[I].ordinalMeta;k&&k.categories.length&&(A=k.categories[A])}}var P=null==v?null:v.id;null==P&&null!=A&&(d[A]=d[A]||0,P=A,d[A]>0&&(P+="__ec__"+d[A]),d[A]++),null!=P&&(u[m]=P)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},C(this)}},S.count=function(){return this._count},S.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array){r=new e(i);for(var n=0;n<i;n++)r[n]=t[n]}else r=new e(t.buffer,0,i)}else{var r=new(e=y(this))(this.count());for(n=0;n<r.length;n++)r[n]=n}return r},S.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._storage;if(!i[t])return NaN;e=this.getRawIndex(e);var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return i[t][n][r]},S.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._storage[t];if(!i)return NaN;var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return i[n][r]},S._getFast=function(t,e){var i=Math.floor(e/this._chunkSize),n=e%this._chunkSize;return this._storage[t][i][n]},S.getValues=function(t,e){var i=[];n.isArray(t)||(e=t,t=this.dimensions);for(var r=0,a=t.length;r<a;r++)i.push(this.get(t[r],e));return i},S.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this.get(e[i],t)))return!1;return!0},S.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],i=L();if(!e)return i;var n,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();for(var a=(n=i)[0],o=n[1],s=0;s<r;s++){var l=this._getFast(t,this.getRawIndex(s));l<a&&(a=l),l>o&&(o=l)}return n=[a,o],this._extent[t]=n,n},S.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},S.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},S.getCalculationInfo=function(t){return this._calculationInfo[t]},S.setCalculationInfo=function(t,e){d(t)?n.extend(this._calculationInfo,t):this._calculationInfo[t]=e},S.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i<n;i++){var r=this.get(t,i);isNaN(r)||(e+=r)}return e},S.getMedian=function(t){var e=[];this.each(t,(function(t,i){isNaN(t)||e.push(t)}));var i=[].concat(e).sort((function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},S.rawIndexOf=function(t,e){var i=(t&&this._invertedIndicesMap[t])[e];return null==i||isNaN(i)?-1:i},S.indexOfName=function(t){for(var e=0,i=this.count();e<i;e++)if(this.getName(e)===t)return e;return-1},S.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;n<=r;){var a=(n+r)/2|0;if(e[a]<t)n=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},S.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var r=1/0,a=-1,o=0,s=0,l=this.count();s<l;s++){var h=e-this.get(t,s),u=Math.abs(h);u<=i&&((u<r||u===r&&h>=0&&a<0)&&(r=u,a=h,o=0),h===a&&(n[o++]=s))}return n.length=o,n},S.getRawIndex=A,S.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},S.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||T(this,this._nameDimIdx,e)||""},S.getId=function(t){return D(this,this.getRawIndex(t))},S.each=function(t,e,i,r){"use strict";if(this._count){"function"==typeof t&&(r=i,i=e,e=t,t=[]),i=i||r||this;for(var a=(t=n.map(k(t),this.getDimension,this)).length,o=0;o<this.count();o++)switch(a){case 0:e.call(i,o);break;case 1:e.call(i,this.get(t[0],o),o);break;case 2:e.call(i,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var s=0,l=[];s<a;s++)l[s]=this.get(t[s],o);l[s]=o,e.apply(i,l)}}},S.filterSelf=function(t,e,i,r){"use strict";if(this._count){"function"==typeof t&&(r=i,i=e,e=t,t=[]),i=i||r||this,t=n.map(k(t),this.getDimension,this);for(var a=this.count(),o=new(y(this))(a),s=[],l=t.length,h=0,u=t[0],c=0;c<a;c++){var d,f=this.getRawIndex(c);if(0===l)d=e.call(i,c);else if(1===l){var p=this._getFast(u,f);d=e.call(i,p,c)}else{for(var g=0;g<l;g++)s[g]=this._getFast(u,f);s[g]=c,d=e.apply(i,s)}d&&(o[h++]=f)}return h<a&&(this._indices=o),this._count=h,this._extent={},this.getRawIndex=this._indices?I:A,this}},S.selectRange=function(t){"use strict";if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var n=e.length;if(n){var r=this.count(),a=new(y(this))(r),o=0,s=e[0],l=t[s][0],h=t[s][1],u=!1;if(!this._indices){var c=0;if(1===n){for(var d=this._storage[e[0]],f=0;f<this._chunkCount;f++)for(var p=d[f],g=Math.min(this._count-f*this._chunkSize,this._chunkSize),v=0;v<g;v++){((w=p[v])>=l&&w<=h||isNaN(w))&&(a[o++]=c),c++}u=!0}else if(2===n){d=this._storage[s];var m=this._storage[e[1]],_=t[e[1]][0],x=t[e[1]][1];for(f=0;f<this._chunkCount;f++){p=d[f];var b=m[f];for(g=Math.min(this._count-f*this._chunkSize,this._chunkSize),v=0;v<g;v++){var w=p[v],S=b[v];(w>=l&&w<=h||isNaN(w))&&(S>=_&&S<=x||isNaN(S))&&(a[o++]=c),c++}}u=!0}}if(!u)if(1===n)for(v=0;v<r;v++){var M=this.getRawIndex(v);((w=this._getFast(s,M))>=l&&w<=h||isNaN(w))&&(a[o++]=M)}else for(v=0;v<r;v++){var C=!0;for(M=this.getRawIndex(v),f=0;f<n;f++){var T=e[f];((w=this._getFast(i,M))<t[T][0]||w>t[T][1])&&(C=!1)}C&&(a[o++]=this.getRawIndex(v))}return o<r&&(this._indices=a),this._count=o,this._extent={},this.getRawIndex=this._indices?I:A,this}}},S.mapArray=function(t,e,i,n){"use strict";"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),i),r},S.map=function(t,e,i,r){"use strict";i=i||r||this;var a=P(this,t=n.map(k(t),this.getDimension,this));a._indices=this._indices,a.getRawIndex=a._indices?I:A;for(var o=a._storage,s=[],l=this._chunkSize,h=t.length,u=this.count(),c=[],d=a._rawExtent,f=0;f<u;f++){for(var p=0;p<h;p++)c[p]=this.get(t[p],f);c[h]=f;var g=e&&e.apply(i,c);if(null!=g){"object"!=typeof g&&(s[0]=g,g=s);for(var v=this.getRawIndex(f),m=Math.floor(v/l),y=v%l,_=0;_<g.length;_++){var x=t[_],b=g[_],w=d[x],S=o[x];S&&(S[m][y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return a},S.downSample=function(t,e,i,n){for(var r=P(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],h=this.count(),u=this._chunkSize,c=r._rawExtent[t],d=new(y(this))(h),f=0,p=0;p<h;p+=s){s>h-p&&(s=h-p,o.length=s);for(var g=0;g<s;g++){var v=this.getRawIndex(p+g),m=Math.floor(v/u),_=v%u;o[g]=l[m][_]}var x=i(o),b=this.getRawIndex(Math.min(p+n(o,x)||0,h-1)),w=b%u;l[Math.floor(b/u)][w]=x,x<c[0]&&(c[0]=x),x>c[1]&&(c[1]=x),d[f++]=b}return r._count=f,r._indices=d,r.getRawIndex=I,r},S.getItemModel=function(t){var e=this.hostModel;return new r(this.getRawDataItem(t),e,e&&e.ecModel)},S.diff=function(t){var e=this;return new a(t?t.getIndices():[],this.getIndices(),(function(e){return D(t,e)}),(function(t){return D(e,t)}))},S.getVisual=function(t){var e=this._visual;return e&&e[t]},S.setVisual=function(t,e){if(d(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},S.setLayout=function(t,e){if(d(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},S.getLayout=function(t){return this._layout[t]},S.getItemLayout=function(t){return this._itemLayouts[t]},S.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?n.extend(this._itemLayouts[t]||{},e):e},S.clearItemLayouts=function(){this._itemLayouts.length=0},S.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},S.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,d(e))for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a],r[a]=!0);else n[e]=i,r[e]=!0},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var E=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};S.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(E,e)),this._graphicEls[t]=e},S.getItemGraphicEl=function(t){return this._graphicEls[t]},S.eachItemGraphicEl=function(t,e){n.each(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},S.cloneShallow=function(t){if(!t){var e=n.map(this.dimensions,this.getDimensionInfo,this);t=new w(e,this.hostModel)}if(t._storage=this._storage,b(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?I:A,t},S.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(n.slice(arguments)))})},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf","selectRange"];var R=w;t.exports=R},51401:(t,e,i)=>{var n=i(33051),r=n.createHashMap,a=n.isObject,o=n.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&o(i,u);return new s({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var l=s.prototype;function h(t){return t._map||(t._map=r(t.categories))}function u(t){return a(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return h(this).get(t)},l.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=h(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var c=s;t.exports=c},99574:(t,e,i)=>{var n=i(33051),r=n.createHashMap,a=n.isTypedArray,o=i(34251).enableClassCheck,s=i(93819),l=s.SOURCE_FORMAT_ORIGINAL,h=s.SERIES_LAYOUT_BY_COLUMN,u=s.SOURCE_FORMAT_UNKNOWN,c=s.SOURCE_FORMAT_TYPED_ARRAY,d=s.SOURCE_FORMAT_KEYED_COLUMNS;function f(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===d?{}:[]),this.sourceFormat=t.sourceFormat||u,this.seriesLayoutBy=t.seriesLayoutBy||h,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&r(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}f.seriesDataToSource=function(t){return new f({data:t,sourceFormat:a(t)?c:l,fromDataset:!1})},o(f);var p=f;t.exports=p},34380:(t,e,i)=>{var n=i(33051),r=n.createHashMap,a=n.each,o=n.isString,s=n.defaults,l=n.extend,h=n.isObject,u=n.clone,c=i(32234).normalizeToArray,d=i(61772),f=d.guessOrdinal,p=d.BE_ORDINAL,g=i(99574),v=i(10381).OTHER_DIMENSIONS,m=i(80690);function y(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}var _=function(t,e,i){g.isInstance(e)||(e=g.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var n=(i.dimsDef||[]).slice(),d=r(),_=r(),x=[],b=function(t,e,i,n){var r=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return a(e,(function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))})),r}(e,t,n,i.dimCount),w=0;w<b;w++){var S=n[w]=l({},h(n[w])?n[w]:{name:n[w]}),M=S.name,C=x[w]=new m;null!=M&&null==d.get(M)&&(C.name=C.displayName=M,d.set(M,w)),null!=S.type&&(C.type=S.type),null!=S.displayName&&(C.displayName=S.displayName)}var T=i.encodeDef;!T&&i.encodeDefaulter&&(T=i.encodeDefaulter(e,b)),(T=r(T)).each((function(t,e){if(1===(t=c(t).slice()).length&&!o(t[0])&&t[0]<0)T.set(e,!1);else{var i=T.set(e,[]);a(t,(function(t,n){o(t)&&(t=d.get(t)),null!=t&&t<b&&(i[n]=t,I(x[t],e,n))}))}}));var A=0;function I(t,e,i){null!=v.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,_.set(e,!0))}a(t,(function(t,e){var i,n,r;if(o(t))i=t,t={};else{i=t.name;var l=t.ordinalMeta;t.ordinalMeta=null,(t=u(t)).ordinalMeta=l,n=t.dimsDef,r=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}if(!1!==(d=T.get(i))){var d;if(!(d=c(d)).length)for(var f=0;f<(n&&n.length||1);f++){for(;A<x.length&&null!=x[A].coordDim;)A++;A<x.length&&d.push(A++)}a(d,(function(e,a){var o=x[e];if(I(s(o,t),i,a),null==o.name&&n){var l=n[a];!h(l)&&(l={name:l}),o.name=o.displayName=l.name,o.defaultTooltip=l.defaultTooltip}r&&s(o.otherDims,r)}))}}));var D=i.generateCoord,k=i.generateCoordCount,P=null!=k;k=D?k||1:0;for(var O=D||"value",L=0;L<b;L++){null==(C=x[L]=x[L]||new m).coordDim&&(C.coordDim=y(O,_,P),C.coordDimIndex=0,(!D||k<=0)&&(C.isExtraCoord=!0),k--),null==C.name&&(C.name=y(C.coordDim,d)),null!=C.type||f(e,L,C.name)!==p.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type="ordinal")}return x};t.exports=_},55623:(t,e,i)=>{var n=i(34380);t.exports=function(t,e){return n((e=e||{}).coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}},68540:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=(n.isTypedArray,n.extend),a=(n.assert,n.each),o=n.isObject,s=i(32234),l=s.getDataItemValue,h=s.isDataItemOption,u=i(85669).parseDate,c=i(99574),d=i(93819),f=d.SOURCE_FORMAT_TYPED_ARRAY,p=d.SOURCE_FORMAT_ARRAY_ROWS,g=d.SOURCE_FORMAT_ORIGINAL,v=d.SOURCE_FORMAT_OBJECT_ROWS;function m(t,e){c.isInstance(t)||(t=c.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===f&&(this._offset=0,this._dimSize=e,this._data=i);var a=_[n===p?n+"_"+t.seriesLayoutBy:n];r(this,a)}var y=m.prototype;y.pure=!1,y.persistent=!0,y.getSource=function(){return this._source};var _={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:w},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n<i.length;n++){var r=i[n];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:x,getItem:b,appendData:w},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var r=this._data[i[n].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;a(t,(function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])}))}},original:{count:x,getItem:b,appendData:w},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var i=this._dimSize*t,n=0;n<this._dimSize;n++)e[n]=this._data[i+n];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}};function x(){return this._data.length}function b(t){return this._data[t]}function w(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var S={arrayRows:M,objectRows:function(t,e,i,n){return null!=i?t[n]:t},keyedColumns:M,original:function(t,e,i,n){var r=l(t);return null!=i&&r instanceof Array?r[i]:r},typedArray:M};function M(t,e,i,n){return null!=i?t[i]:t}var C={arrayRows:T,objectRows:function(t,e,i,n){return A(t[e],this._dimensionInfos[e])},keyedColumns:T,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&h(t)&&(this.hasItemOption=!0),A(r instanceof Array?r[n]:r,this._dimensionInfos[e])},typedArray:function(t,e,i,n){return t[n]}};function T(t,e,i,n){return A(t[n],this._dimensionInfos[e])}function A(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+u(t)),null==t||""===t?NaN:+t}e.DefaultDataProvider=m,e.defaultDimValueGetters=C,e.retrieveRawValue=function(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r,a,o=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(r=s.name,a=s.index),S[o](n,e,a,r)}}},e.retrieveRawAttr=function(t,e,i){if(t){var n=t.getProvider().getSource().sourceFormat;if(n===g||n===v){var r=t.getRawDataItem(e);return n!==g||o(r)||(r=null),r?r[i]:void 0}}}},99936:(t,e,i)=>{var n=i(33051),r=n.each,a=n.isString;function o(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}e.enableDataStack=function(t,e,i){var n,o,s,l,h=(i=i||{}).byIndex,u=i.stackedCoordDimension,c=!(!t||!t.get("stack"));if(r(e,(function(t,i){a(t)&&(e[i]=t={name:t}),c&&!t.isExtraCoord&&(h||n||!t.ordinalMeta||(n=t),o||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(o=t))})),!o||h||n||(h=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var d=o.coordDim,f=o.type,p=0;r(e,(function(t){t.coordDim===d&&p++})),e.push({name:s,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:n&&n.name,isStackedByIndex:h,stackedOverDimension:l,stackResultDimension:s}},e.isDimensionStacked=o,e.getStackedDimension=function(t,e){return o(t,e)?t.getCalculationInfo("stackResultDimension"):e}},10381:(t,e,i)=>{var n=i(33051),r=n.each,a=n.createHashMap,o=(n.assert,i(38175).__DEV__,a(["tooltip","label","itemName","itemId","seriesName"]));function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}e.OTHER_DIMENSIONS=o,e.summarizeDimensions=function(t){var e={},i=e.encode={},n=a(),l=[],h=[],u=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};r(t.dimensions,(function(e){var r,a=t.getDimensionInfo(e),c=a.coordDim;if(c){var d=a.coordDimIndex;s(i,c)[d]=e,a.isExtraCoord||(n.set(c,1),"ordinal"!==(r=a.type)&&"time"!==r&&(l[0]=e),s(u.encode,c)[d]=a.index),a.defaultTooltip&&h.push(e)}o.each((function(t,e){var n=s(i,e),r=a.otherDims[e];null!=r&&!1!==r&&(n[r]=a.name)}))}));var c=[],d={};n.each((function(t,e){var n=i[e];d[e]=n[0],c=c.concat(n)})),e.dataDimsOnCoord=c,e.encodeFirstDimNotExtra=d;var f=i.label;f&&f.length&&(l=f.slice());var p=i.tooltip;return p&&p.length?h=p.slice():h.length||(h=l.slice()),i.defaultedLabel=l,i.defaultedTooltip=h,e},e.getDimensionTypeByAxis=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},61772:(t,e,i)=>{i(38175).__DEV__;var n=i(32234),r=n.makeInner,a=n.getDataItemValue,o=i(33051),s=o.createHashMap,l=o.each,h=o.map,u=o.isArray,c=o.isString,d=o.isObject,f=o.isTypedArray,p=o.isArrayLike,g=o.extend,v=(o.assert,i(99574)),m=i(93819),y=m.SOURCE_FORMAT_ORIGINAL,_=m.SOURCE_FORMAT_ARRAY_ROWS,x=m.SOURCE_FORMAT_OBJECT_ROWS,b=m.SOURCE_FORMAT_KEYED_COLUMNS,w=m.SOURCE_FORMAT_UNKNOWN,S=m.SOURCE_FORMAT_TYPED_ARRAY,M=m.SERIES_LAYOUT_BY_ROW,C={Must:1,Might:2,Not:3},T=r();function A(t){if(t){var e=s();return h(t,(function(t,i){if(null==(t=g({},d(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t}))}}function I(t,e,i,n){if(null==n&&(n=1/0),e===M)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else{var a=i[0]||[];for(r=0;r<a.length&&r<n;r++)t(a[r],r)}}function D(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function k(t,e,i,n,r,o){var s,l,h;if(f(t))return C.Not;if(n){var p=n[o];d(p)?(l=p.name,h=p.type):c(p)&&(l=p)}if(null!=h)return"ordinal"===h?C.Must:C.Not;if(e===_)if(i===M){for(var g=t[o],v=0;v<(g||[]).length&&v<5;v++)if(null!=(s=T(g[r+v])))return s}else for(v=0;v<t.length&&v<5;v++){var m=t[r+v];if(m&&null!=(s=T(m[o])))return s}else if(e===x){if(!l)return C.Not;for(v=0;v<t.length&&v<5;v++){if((w=t[v])&&null!=(s=T(w[l])))return s}}else if(e===b){if(!l)return C.Not;if(!(g=t[l])||f(g))return C.Not;for(v=0;v<g.length&&v<5;v++)if(null!=(s=T(g[v])))return s}else if(e===y)for(v=0;v<t.length&&v<5;v++){var w=t[v],S=a(w);if(!u(S))return C.Not;if(null!=(s=T(S[o])))return s}function T(t){var e=c(t);return null!=t&&isFinite(t)&&""!==t?e?C.Might:C.Not:e&&"-"!==t?C.Must:void 0}return C.Not}e.BE_ORDINAL=C,e.detectSourceFormat=function(t){var e=t.option.source,i=w;if(f(e))i=S;else if(u(e)){0===e.length&&(i=_);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(null!=a){if(u(a)){i=_;break}if(d(a)){i=x;break}}}}else if(d(e)){for(var o in e)if(e.hasOwnProperty(o)&&p(e[o])){i=b;break}}else if(null!=e)throw new Error("Invalid data");T(t).sourceFormat=i},e.getSource=function(t){return T(t).source},e.resetSourceDefaulter=function(t){T(t).datasetMap=s()},e.prepareSource=function(t){var e=t.option,i=e.data,n=f(i)?S:y,r=!1,o=e.seriesLayoutBy,s=e.sourceHeader,h=e.dimensions,d=D(t);if(d){var p=d.option;i=p.source,n=T(d).sourceFormat,r=!0,o=o||p.seriesLayoutBy,null==s&&(s=p.sourceHeader),h=h||p.dimensions}var g=function(t,e,i,n,r){if(!t)return{dimensionsDefine:A(r)};var o,s;if(e===_)"auto"===n||null==n?I((function(t){null!=t&&"-"!==t&&(c(t)?null==s&&(s=1):s=0)}),i,t,10):s=n?1:0,r||1!==s||(r=[],I((function(t,e){r[e]=null!=t?t:""}),i,t)),o=r?r.length:i===M?t.length:t[0]?t[0].length:null;else if(e===x)r||(r=function(t){var e,i=0;for(;i<t.length&&!(e=t[i++]););if(e){var n=[];return l(e,(function(t,e){n.push(e)})),n}}(t));else if(e===b)r||(r=[],l(t,(function(t,e){r.push(e)})));else if(e===y){var h=a(t[0]);o=u(h)&&h.length||1}return{startIndex:s,dimensionsDefine:A(r),dimensionsDetectCount:o}}(i,n,o,s,h);T(t).source=new v({data:i,fromDataset:r,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:g.dimensionsDefine,startIndex:g.startIndex,dimensionsDetectCount:g.dimensionsDetectCount,encodeDefine:e.encode})},e.makeSeriesEncodeForAxisCoordSys=function(t,e,i){var n={},r=D(e);if(!r||!t)return n;var a,o,s=[],h=[],u=e.ecModel,c=T(u).datasetMap,f=r.uid+"_"+i.seriesLayoutBy;t=t.slice(),l(t,(function(e,i){!d(e)&&(t[i]={name:e}),"ordinal"===e.type&&null==a&&(a=i,o=v(t[i])),n[e.name]=[]}));var p=c.get(f)||c.set(f,{categoryWayDim:o,valueWayDim:0});function g(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function v(t){var e=t.dimsDef;return e?e.length:1}return l(t,(function(t,e){var i=t.name,r=v(t);if(null==a){var o=p.valueWayDim;g(n[i],o,r),g(h,o,r),p.valueWayDim+=r}else if(a===e)g(n[i],0,r),g(s,0,r);else{o=p.categoryWayDim;g(n[i],o,r),g(h,o,r),p.categoryWayDim+=r}})),s.length&&(n.itemName=s),h.length&&(n.seriesName=h),n},e.makeSeriesEncodeForNameBased=function(t,e,i){var n={};if(!D(t))return n;var r,a=e.sourceFormat,o=e.dimensionsDefine;a!==x&&a!==b||l(o,(function(t,e){"name"===(d(t)?t.name:t)&&(r=e)}));var s=function(){for(var t={},n={},s=[],l=0,h=Math.min(5,i);l<h;l++){var u=k(e.data,a,e.seriesLayoutBy,o,e.startIndex,l);s.push(u);var c=u===C.Not;if(c&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!c&&s[t.n]===C.Not)&&(t.n=l),d(t)&&s[t.n]!==C.Not)return t;c||(u===C.Might&&null==n.v&&l!==r&&(n.v=l),null!=n.n&&n.n!==n.v||(n.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(n)?n:null}();if(s){n.value=s.v;var h=null!=r?r:s.n;n.itemName=[h],n.seriesName=[h]}return n},e.guessOrdinal=function(t,e){return k(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}},93819:(t,e)=>{e.SOURCE_FORMAT_ORIGINAL="original",e.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",e.SOURCE_FORMAT_OBJECT_ROWS="objectRows",e.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",e.SOURCE_FORMAT_UNKNOWN="unknown",e.SOURCE_FORMAT_TYPED_ARRAY="typedArray",e.SERIES_LAYOUT_BY_COLUMN="column",e.SERIES_LAYOUT_BY_ROW="row"},70492:(t,e,i)=>{i(38175).__DEV__;var n=i(31931),r=i(33051),a=i(21092),o=i(66387),s=i(19455),l=i(41502),h=i(17260),u=i(59935),c=i(95899),d=i(43534),f=i(70141),p=i(33809),g=i(98071),v=i(93321),m=i(33166),y=i(75797),_=i(51177),x=i(32234),b=i(270).throttle,w=i(7141),S=i(13825),M=i(23430),C=i(15532),T=i(29594),A=i(73450);i(81768);var I=i(26418),D=r.assert,k=r.each,P=r.isFunction,O=r.isObject,L=g.parseClassType,E={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},R="__flagInMainProcess",z=/^[a-zA-Z0-9_]+$/;function B(t,e){return function(i,n,r){e||!this._disposed?(i=i&&i.toLowerCase(),l.prototype[t].call(this,i,n,r)):this.id}}function N(){l.call(this)}function F(t,e,i){i=i||{},"string"==typeof e&&(e=ht[e]),this.id,this.group,this._dom=t;var a=this._zr=n.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=b(r.bind(a.flush,a),17),(e=r.clone(e))&&f(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new c;var o,h,d=this._api=(h=(o=this)._coordSysMgr,r.extend(new u(o),{getCoordinateSystems:r.bind(h.getCoordinateSystems,h),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return o._model.getComponent(e.mainType,e.index);t=t.parent}}}));function p(t,e){return t.__prio-e.__prio}s(lt,p),s(at,p),this._scheduler=new C(this,d,at,lt),l.call(this,this._ecEventProcessor=new it),this._messageCenter=new N,this._initEvents(),this.resize=r.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e.__optionUpdated||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}(a,this),r.setAsPrimitive(this)}N.prototype.on=B("on",!0),N.prototype.off=B("off",!0),N.prototype.one=B("one",!0),r.mixin(N,l);var V=F.prototype;function H(t,e,i){if(this._disposed)this.id;else{var n,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=x.parseFinder(r,e);for(var o=0;o<a.length;o++){var s=a[o];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}}V._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this.__optionUpdated){var e=this.__optionUpdated.silent;this[R]=!0,G(this),W.update.call(this),this[R]=!1,this.__optionUpdated=!1,X.call(this,e),q.call(this,e)}else if(t.unfinished){var i=1,n=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),Y(this,n),t.performVisualTasks(n),Q(this,this._model,r,"remain"),i-=+new Date-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},V.getDom=function(){return this._dom},V.getZr=function(){return this._zr},V.setOption=function(t,e,i){if(this._disposed)this.id;else{var n;if(O(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[R]=!0,!this._model||e){var r=new d(this._api),a=this._theme,o=this._model=new h;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,ot),i?(this.__optionUpdated={silent:n},this[R]=!1):(G(this),W.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this[R]=!1,X.call(this,n),q.call(this,n))}},V.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},V.getModel=function(){return this._model},V.getOption=function(){return this._model&&this._model.getOption()},V.getWidth=function(){return this._zr.getWidth()},V.getHeight=function(){return this._zr.getHeight()},V.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},V.getRenderedCanvas=function(t){if(o.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},V.getSvgDataURL=function(){if(o.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return r.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},V.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,i=this._model,n=[],r=this;k(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(n,(function(t){t.group.ignore=!1})),a}this.id},V.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(o.canvasSupported){var e="svg"===t.type,i=this.group,a=Math.min,s=Math.max,l=1/0;if(dt[i]){var h=l,u=l,c=-1/0,d=-1/0,f=[],p=t&&t.pixelRatio||1;r.each(ct,(function(n,o){if(n.group===i){var l=e?n.getZr().painter.getSvgDom().innerHTML:n.getRenderedCanvas(r.clone(t)),p=n.getDom().getBoundingClientRect();h=a(p.left,h),u=a(p.top,u),c=s(p.right,c),d=s(p.bottom,d),f.push({dom:l,left:p.left,top:p.top})}}));var g=(c*=p)-(h*=p),v=(d*=p)-(u*=p),m=r.createCanvas(),y=n.init(m,{renderer:e?"svg":"canvas"});if(y.resize({width:g,height:v}),e){var x="";return k(f,(function(t){var e=t.left-h,i=t.top-u;x+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=x,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new _.Rect({shape:{x:0,y:0,width:g,height:v},style:{fill:t.connectedBackgroundColor}})),k(f,(function(t){var e=new _.Image({style:{x:t.left*p-h,y:t.top*p-u,image:t.dom}});y.add(e)})),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},V.convertToPixel=r.curry(H,"convertToPixel"),V.convertFromPixel=r.curry(H,"convertFromPixel"),V.containPixel=function(t,e){if(!this._disposed){var i,n=this._model;return t=x.parseFinder(n,t),r.each(t,(function(t,n){n.indexOf("Models")>=0&&r.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}}),this)}),this),!!i}this.id},V.getVisual=function(t,e){var i=this._model,n=(t=x.parseFinder(i,t,{defaultMainType:"series"})).seriesModel.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=r?n.getItemVisual(r,e):n.getVisual(e)},V.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},V.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var W={prepareAndUpdate:function(t){G(this),W.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,s=this._scheduler;if(e){s.restoreData(e,t),s.performSeriesTasks(e),r.create(e,i),s.performDataProcessorTasks(e,t),Y(this,e),r.update(e,i),Z(e),s.performVisualTasks(e,t),K(this,e,i,t);var l=e.get("backgroundColor")||"transparent";if(o.canvasSupported)n.setBackgroundColor(l);else{var h=a.parse(l);l=a.stringify(h,"rgb"),0===h[3]&&(l="transparent")}J(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var a=[];e.eachComponent((function(r,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&a.push(s)}else a.push(s)}));var o=r.createHashMap();e.eachSeries((function(r){var a=i._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),Z(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),Q(i,e,n,t,o),J(e,this._api)}},updateView:function(t){var e=this._model;e&&(y.markUpdateMethod(t,"updateView"),Z(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),K(this,this._model,this._api,t),J(e,this._api))},updateVisual:function(t){W.update.call(this,t)},updateLayout:function(t){W.update.call(this,t)}};function G(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),$(t,"component",e,i),$(t,"chart",e,i),i.plan()}function U(t,e,i,n,a){var o=t._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};a&&(l.subType=a);var h=i.excludeSeriesId;null!=h&&(h=r.createHashMap(x.normalizeToArray(h))),o&&o.eachComponent(l,(function(e){h&&null!=h.get(e.id)||u(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else k(t._componentsViews.concat(t._chartsViews),u);function u(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}}function Y(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))}function j(t,e){var i=t.type,n=t.escapeConnect,a=nt[i],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&L(s[0]),this[R]=!0;var h=[t],u=!1;t.batch&&(u=!0,h=r.map(t.batch,(function(e){return(e=r.defaults(r.extend({},e),t)).batch=null,e})));var c,d=[],f="highlight"===i||"downplay"===i;k(h,(function(t){(c=(c=a.action(t,this._model,this._api))||r.extend({},t)).type=o.event||c.type,d.push(c),f?U(this,l,t,"series"):s&&U(this,l,t,s.main,s.sub)}),this),"none"===l||f||s||(this.__optionUpdated?(G(this),W.update.call(this,t),this.__optionUpdated=!1):W[l].call(this,t)),c=u?{type:o.event||i,escapeConnect:n,batch:d}:d[0],this[R]=!1,!e&&this._messageCenter.trigger(c.type,c)}function X(t){for(var e=this._pendingActions;e.length;){var i=e.shift();j.call(this,i,t)}}function q(t){!t&&this.trigger("updated")}function $(t,e,i,n){for(var r="component"===e,a=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,h=0;h<a.length;h++)a[h].__alive=!1;function u(t){var e="_ec_"+t.id+"_"+t.type,h=o[e];if(!h){var u=L(t.type);(h=new(r?m.getClass(u.main,u.sub):y.getClass(u.sub))).init(i,l),o[e]=h,a.push(h),s.add(h.group)}t.__viewId=h.__id=e,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!r&&n.prepareView(h,t,i,l)}r?i.eachComponent((function(t,e){"series"!==t&&u(e)})):i.eachSeries(u);for(h=0;h<a.length;){var c=a[h];c.__alive?h++:(!r&&c.renderTask.dispose(),s.remove(c.group),c.dispose(i,l),a.splice(h,1),delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function Z(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function K(t,e,i,n){!function(t,e,i,n,r){k(r||t._componentsViews,(function(t){var r=t.__model;t.render(r,e,i,n),et(r,t)}))}(t,e,i,n),k(t._chartsViews,(function(t){t.__alive=!1})),Q(t,e,i,n),k(t._chartsViews,(function(t){t.__alive||t.remove(e,i)}))}function Q(t,e,i,n,r){var a,s=t._scheduler;e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var o=i.renderTask;s.updatePayload(o,n),r&&r.get(e.uid)&&o.dirty(),a|=o.perform(s.getPerformArgs(o)),i.group.silent=!!e.get("silent"),et(e,i),function(t,e){var i=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",i)}))}))}(e,i)})),s.unfinished|=a,function(t,e){var i=t._zr.storage,n=0;i.traverse((function(t){n++})),n>e.get("hoverLayerThreshold")&&!o.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),S(t._zr.dom,e)}function J(t,e){k(st,(function(i){i(t,e)}))}V.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[R]=!0,i&&G(this),W.update.call(this),this[R]=!1,X.call(this,n),q.call(this,n)}}},V.showLoading=function(t,e){if(this._disposed)this.id;else if(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ut[t]){var i=ut[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},V.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},V.makeActionFromEvent=function(t){var e=r.extend({},t);return e.type=rt[t.type],e},V.dispatchAction=function(t,e){this._disposed?this.id:(O(e)||(e={silent:!!e}),nt[t.type]&&this._model&&(this[R]?this._pendingActions.push(t):(j.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&o.browser.weChat&&this._throttledZrFlush(),X.call(this,e.silent),q.call(this,e.silent))))},V.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},V.on=B("on",!1),V.off=B("off",!1),V.one=B("one",!1);var tt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function et(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))}))}function it(){this.eventInfo}V._initEvents=function(){k(tt,(function(t){var e=function(e){var i,n=this.getModel(),a=e.target;if("globalout"===t)i={};else if(a&&null!=a.dataIndex){var o=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=o&&o.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(i=r.extend({},a.eventData));if(i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var h=s&&null!=l&&n.getComponent(s,l),u=h&&this["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:i,model:h,view:u},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),k(rt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},V.isDisposed=function(){return this._disposed},V.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},V.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,x.setAttribute(this.getDom(),gt,"");var t=this._api,e=this._model;k(this._componentsViews,(function(i){i.dispose(e,t)})),k(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete ct[this.id]}},r.mixin(F,l),it.prototype={constructor:it,normalizeQuery:function(t){var e={},i={},n={};if(r.isString(t)){var a=L(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var a=!1,l=0;l<o.length;l++){var h=o[l],u=r.lastIndexOf(h);if(u>0&&u===r.length-h.length){var c=r.slice(0,u);"data"!==c&&(e.mainType=c,e[h.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(i[r]=t,a=!0),a||(n[r]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,h=e.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(h,a,"name")&&u(h,a,"dataIndex")&&u(h,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a));function u(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},afterTrigger:function(){this.eventInfo=null}};var nt={},rt={},at=[],ot=[],st=[],lt=[],ht={},ut={},ct={},dt={},ft=new Date-0,pt=new Date-0,gt="_echarts_instance_";function vt(t){dt[t]=!1}var mt=vt;function yt(t){return ct[x.getAttribute(t,gt)]}function _t(t,e){ht[t]=e}function xt(t){ot.push(t)}function bt(t,e){Mt(at,t,e,1e3)}function wt(t,e,i){"function"==typeof e&&(i=e,e="");var n=O(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,D(z.test(n)&&z.test(e)),nt[n]||(nt[n]={action:i,actionInfo:t}),rt[e]=n}function St(t,e){Mt(lt,t,e,3e3,"visual")}function Mt(t,e,i,n,r){(P(e)||O(e))&&(i=e,e=n);var a=C.wrapStageHandler(i,r);return a.__prio=e,a.__raw=i,t.push(a),a}function Ct(t,e){ut[t]=e}St(2e3,w),xt(f),bt(900,p),Ct("default",M),wt({type:"highlight",event:"highlight",update:"highlight"},r.noop),wt({type:"downplay",event:"downplay",update:"downplay"},r.noop),_t("light",T),_t("dark",A);e.version="4.9.0",e.dependencies={zrender:"4.3.2"},e.PRIORITY=E,e.init=function(t,e,i){var n=yt(t);if(n)return n;var r=new F(t,e,i);return r.id="ec_"+ft++,ct[r.id]=r,x.setAttribute(t,gt,r.id),function(t){var e="__connectUpdateStatus";function i(t,i){for(var n=0;n<t.length;n++)t[n][e]=i}k(rt,(function(n,r){t._messageCenter.on(r,(function(n){if(dt[t.group]&&0!==t[e]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),a=[];k(ct,(function(e){e!==t&&e.group===t.group&&a.push(e)})),i(a,0),k(a,(function(t){1!==t[e]&&t.dispatchAction(r)})),i(a,2)}}))}))}(r),r},e.connect=function(t){if(r.isArray(t)){var e=t;t=null,k(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+pt++,k(e,(function(e){e.group=t}))}return dt[t]=!0,t},e.disConnect=vt,e.disconnect=mt,e.dispose=function(t){"string"==typeof t?t=ct[t]:t instanceof F||(t=yt(t)),t instanceof F&&!t.isDisposed()&&t.dispose()},e.getInstanceByDom=yt,e.getInstanceById=function(t){return ct[t]},e.registerTheme=_t,e.registerPreprocessor=xt,e.registerProcessor=bt,e.registerPostUpdate=function(t){st.push(t)},e.registerAction=wt,e.registerCoordinateSystem=function(t,e){c.register(t,e)},e.getCoordinateSystemDimensions=function(t){var e=c.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},e.registerLayout=function(t,e){Mt(lt,t,e,1e3,"layout")},e.registerVisual=St,e.registerLoading=Ct,e.extendComponentModel=function(t){return g.extend(t)},e.extendComponentView=function(t){return m.extend(t)},e.extendSeriesModel=function(t){return v.extend(t)},e.extendChartView=function(t){return y.extend(t)},e.setCanvasCreator=function(t){r.$override("createCanvas",t)},e.registerMap=function(t,e,i){I.registerMap(t,e,i)},e.getMap=function(t){var e=I.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},e.dataTool={};var Tt=i(34151);!function(){for(var t in Tt)Tt.hasOwnProperty(t)&&(e[t]=Tt[t])}()},34151:(t,e,i)=>{var n=i(31931);e.zrender=n;var r=i(32892);e.matrix=r;var a=i(45280);e.vector=a;var o=i(33051),s=i(21092);e.color=s;var l=i(51177),h=i(85669);e.number=h;var u=i(78988);e.format=u;var c=i(270);c.throttle;e.throttle=c.throttle;var d=i(28482);e.helper=d;var f=i(76672);e.parseGeoJSON=f;var p=i(87587);e.List=p;var g=i(4272);e.Model=g;var v=i(3245);e.Axis=v;var m=i(66387);e.env=m;var y=f,_={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){_[t]=o[t]}));var x={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){x[t]=l[t]})),e.parseGeoJson=y,e.util=_,e.graphic=x},28482:(t,e,i)=>{var n=i(33051),r=i(40488),a=i(97980),o=i(16650),s=i(4272),l=i(76172);l.getLayoutRect;e.getLayoutRect=l.getLayoutRect;var h=i(99936),u=h.enableDataStack,c=h.isDimensionStacked,d=h.getStackedDimension,f=i(34380);e.completeDimensions=f;var p=i(55623);e.createDimensions=p;var g=i(41525);e.createSymbol=g.createSymbol;var v={isDimensionStacked:c,enableDataStack:u,getStackedDimension:d};e.createList=function(t){return r(t.getSource(),t)},e.dataStack=v,e.createScale=function(t,e){var i=e;s.isInstance(e)||(i=new s(e),n.mixin(i,o));var r=a.createScaleByModel(i);return r.setExtent(t[0],t[1]),a.niceScaleExtent(r,i),r},e.mixinAxisModelCommonMethods=function(t){n.mixin(t,o)}},40292:t=>{t.exports={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}}},79093:(t,e,i)=>{var n=i(33051),r=i(85669).parsePercent,a=i(99936).isDimensionStacked,o=i(95682),s="__ec_stack_",l="undefined"!=typeof Float32Array?Float32Array:Array;function h(t){return t.get("stack")||s+t.seriesIndex}function u(t){return t.dim+t.index}function c(t,e){var i=[];return e.eachSeriesByType(t,(function(t){v(t)&&!m(t)&&i.push(t)})),i}function d(t){var e=function(t){var e={};n.each(t,(function(t){var i=t.coordinateSystem.getBaseAxis();if("time"===i.type||"value"===i.type)for(var n=t.getData(),r=i.dim+"_"+i.index,a=n.mapDimension(i.dim),o=0,s=n.count();o<s;++o){var l=n.get(a,o);e[r]?e[r].push(l):e[r]=[l]}}));var i=[];for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort((function(t,e){return t-e}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}i[r]=o}}return i}(t),i=[];return n.each(t,(function(t){var n,a=t.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)n=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],c=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),f=Math.abs(d[1]-d[0]);n=l?c/f*l:c}else{var p=t.getData();n=Math.abs(o[1]-o[0])/p.count()}var g=r(t.get("barWidth"),n),v=r(t.get("barMaxWidth"),n),m=r(t.get("barMinWidth")||1,n),y=t.get("barGap"),_=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:y,barCategoryGap:_,axisKey:u(a),stackId:h(t)})})),f(i)}function f(t){var e={};n.each(t,(function(t,i){var n=t.axisKey,r=t.bandWidth,a=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[n]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var h=t.barMaxWidth;h&&(o[s].maxWidth=h);var u=t.barMinWidth;u&&(o[s].minWidth=u);var c=t.barGap;null!=c&&(a.gap=c);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var i={};return n.each(e,(function(t,e){i[e]={};var a=t.stacks,o=t.bandWidth,s=r(t.categoryGap,o),l=r(t.gap,1),h=t.remainedWidth,u=t.autoWidthCount,c=(h-s)/(u+(u-1)*l);c=Math.max(c,0),n.each(a,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,h-=n+l*n,u--}else{var n=c;e&&e<n&&(n=Math.min(e,h)),i&&i>n&&(n=i),n!==c&&(t.width=n,h-=n+l*n,u--)}})),c=(h-s)/(u+(u-1)*l),c=Math.max(c,0);var d,f=0;n.each(a,(function(t,e){t.width||(t.width=c),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(a,(function(t,n){i[e][n]=i[e][n]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+l)}))})),i}function p(t,e,i){if(t&&e){var n=t[u(e)];return null!=n&&null!=i&&(n=n[h(i)]),n}}var g={seriesType:"bar",plan:o(),reset:function(t){if(v(t)&&m(t)){var e=t.getData(),i=t.coordinateSystem,n=i.grid.getRect(),r=i.getBaseAxis(),a=i.getOtherAxis(r),o=e.mapDimension(a.dim),s=e.mapDimension(r.dim),h=a.isHorizontal(),u=h?0:1,c=p(d([t]),r,t).width;return c>.5||(c=.5),{progress:function(t,e){var d,f=t.count,p=new l(2*f),g=new l(2*f),v=new l(f),m=[],_=[],x=0,b=0;for(;null!=(d=t.next());)_[u]=e.get(o,d),_[1-u]=e.get(s,d),m=i.dataToPoint(_,null,m),g[x]=h?n.x+n.width:m[0],p[x++]=m[0],g[x]=h?m[1]:n.y+n.height,p[x++]=m[1],v[b++]=d;e.setLayout({largePoints:p,largeDataIndices:v,largeBackgroundPoints:g,barWidth:c,valueAxisStart:y(r,a,!1),backgroundStart:h?n.x:n.y,valueAxisHorizontal:h})}}}}};function v(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function m(t){return t.pipelineContext&&t.pipelineContext.large}function y(t,e,i){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=function(t){var e=[],i=t.axis,r="axis0";if("category"===i.type){for(var a=i.getBandWidth(),o=0;o<t.count;o++)e.push(n.defaults({bandWidth:a,axisKey:r,stackId:s+o},t));var l=f(e),h=[];for(o=0;o<t.count;o++){var u=l.axis0[s+o];u.offsetCenter=u.offset+u.width/2,h.push(u)}return h}},e.prepareLayoutBarSeries=c,e.makeColumnLayout=d,e.retrieveColumnLayout=p,e.layout=function(t,e){var i=c(t,e),r=d(i),o={},s={};n.each(i,(function(t){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),l=h(t),c=r[u(n)][l],d=c.offset,f=c.width,p=i.getOtherAxis(n),g=t.get("barMinHeight")||0;o[l]=o[l]||[],s[l]=s[l]||[],e.setLayout({bandWidth:c.bandWidth,offset:d,size:f});for(var v=e.mapDimension(p.dim),m=e.mapDimension(n.dim),_=a(e,v),x=p.isHorizontal(),b=y(n,p,_),w=0,S=e.count();w<S;w++){var M,C,T,A,I,D=e.get(v,w),k=e.get(m,w),P=D>=0?"p":"n",O=b;if(_&&(o[l][k]||(o[l][k]={p:b,n:b}),O=o[l][k][P]),x)M=O,C=(I=i.dataToPoint([D,k]))[1]+d,T=I[0]-b,A=f,Math.abs(T)<g&&(T=(T<0?-1:1)*g),isNaN(T)||_&&(o[l][k][P]+=T);else M=(I=i.dataToPoint([k,D]))[0]+d,C=O,T=f,A=I[1]-b,Math.abs(A)<g&&(A=(A<=0?-1:1)*g),isNaN(A)||_&&(o[l][k][P]+=A);e.setItemLayout(w,{x:M,y:C,width:T,height:A})}}),this)},e.largeLayout=g},21149:(t,e,i)=>{var n=i(33051).map,r=i(95682),a=i(99936).isDimensionStacked;t.exports=function(t){return{seriesType:t,plan:r(),reset:function(t){var e=t.getData(),i=t.coordinateSystem,r=t.pipelineContext.large;if(i){var o=n(i.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),s=o.length,l=e.getCalculationInfo("stackResultDimension");return a(e,o[0])&&(o[0]=l),a(e,o[1])&&(o[1]=l),s&&{progress:function(t,e){for(var n=t.end-t.start,a=r&&new Float32Array(n*s),l=t.start,h=0,u=[],c=[];l<t.end;l++){var d;if(1===s){var f=e.get(o[0],l);d=!isNaN(f)&&i.dataToPoint(f,null,c)}else{f=u[0]=e.get(o[0],l);var p=u[1]=e.get(o[1],l);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(u,null,c)}r?(a[h++]=d?d[0]:NaN,a[h++]=d?d[1]:NaN):e.setItemLayout(l,d&&d.slice()||[NaN,NaN])}r&&e.setLayout("symbolPoints",a)}}}}}}},23430:(t,e,i)=>{var n=i(33051),r=i(51177),a=i(80423),o=Math.PI;t.exports=function(t,e){e=e||{},n.defaults(e,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new r.Group,s=new r.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(s);var l=e.fontSize+" sans-serif",h=new r.Rect({style:{fill:"none",text:e.text,font:l,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(i.add(h),e.showSpinner){var u=new r.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});u.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),i.add(u)}return i.resize=function(){var i=a.getWidth(e.text,l),n=e.showSpinner?e.spinnerRadius:0,r=(t.getWidth()-2*n-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner?0:i/2),o=t.getHeight()/2;e.showSpinner&&u.setShape({cx:r,cy:o}),h.setShape({x:r-n,y:o-n,width:2*n,height:2*n}),s.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}},98071:(t,e,i)=>{var n=i(33051),r=i(4272),a=i(42151),o=i(34251),s=o.enableClassManagement,l=o.parseClassType,h=i(32234).makeInner,u=i(76172),c=i(83047),d=h(),f=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){r.call(this,t,e,i,n),this.uid=a.getUID("ec_cpt_model")},init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?u.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&u.mergeLayoutParam(t,r,i)},mergeOption:function(t,e){n.merge(this.option,t,!0);var i=this.layoutMode;i&&u.mergeLayoutParam(this.option,t,i)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=d(this);if(!t.defaultOption){for(var e=[],i=this.constructor;i;){var r=i.prototype.defaultOption;r&&e.push(r),i=i.superClass}for(var a={},o=e.length-1;o>=0;o--)a=n.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});s(f,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(f),a.enableTopologicalTravel(f,(function(t){var e=[];n.each(f.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=n.map(e,(function(t){return l(t).main})),"dataset"!==t&&n.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),n.mixin(f,c);var p=f;t.exports=p},17260:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=n.each,a=n.filter,o=n.map,s=n.isArray,l=n.indexOf,h=n.isObject,u=n.isString,c=n.createHashMap,d=n.assert,f=n.clone,p=n.merge,g=n.extend,v=n.mixin,m=i(32234),y=i(4272),_=i(98071),x=i(22577),b=i(23895),w=i(61772).resetSourceDefaulter,S="\0_ec_inner",M=y.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new y(i),this._optionManager=n},setOption:function(t,e){d(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):C.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&r(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,n=[];w(this),r(t,(function(t,i){null!=t&&(_.hasClass(i)?i&&n.push(i):e[i]=null==e[i]?f(t):p(e[i],t,!0))})),_.topologicalTravel(n,_.getAllClassMainTypes(),(function(n,a){var o=m.normalizeToArray(t[n]),l=m.mappingToExists(i.get(n),o);m.makeIdAndName(l),r(l,(function(t,e){var i=t.option;h(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=function(t,e,i){return e.type?e.type:i?i.subType:_.determineSubType(t,e)}(n,i,t.exist))}));var u=function(t,e){s(e)||(e=e?[e]:[]);var i={};return r(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}(i,a);e[n]=[],i.set(n,[]),r(l,(function(t,r){var a=t.exist,o=t.option;if(d(h(o)||a,"Empty component definition"),o){var s=_.getClass(n,t.keyInfo.subType,!0);if(a&&a.constructor===s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var l=g({dependentModels:u,componentIndex:r},t.keyInfo);a=new s(o,this,this,l),g(a,l),a.init(o,this,this,l),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);i.get(n)[r]=a,e[n][r]=a.option}),this),"series"===n&&T(this,i.get("series"))}),this),this._seriesIndicesMap=c(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=f(this.option);return r(t,(function(e,i){if(_.hasClass(i)){for(var n=(e=m.normalizeToArray(e)).length-1;n>=0;n--)m.isIdInner(e[n])&&e.splice(n,1);t[i]=e}})),delete t["\0_ec_inner"],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,r=t.id,h=t.name,u=this._componentsMap.get(e);if(!u||!u.length)return[];if(null!=n)s(n)||(n=[n]),i=a(o(n,(function(t){return u[t]})),(function(t){return!!t}));else if(null!=r){var c=s(r);i=a(u,(function(t){return c&&l(r,t.id)>=0||!c&&t.id===r}))}else if(null!=h){var d=s(h);i=a(u,(function(t){return d&&l(h,t.name)>=0||!d&&t.name===h}))}else i=u.slice();return A(i,t)},findComponents:function(t){var e,i,n,r,o,s=t.query,l=t.mainType,h=(i=l+"Index",n=l+"Id",r=l+"Name",!(e=s)||null==e[i]&&null==e[n]&&null==e[r]?null:{mainType:l,index:e[i],id:e[n],name:e[r]}),u=h?this.queryComponents(h):this._componentsMap.get(l);return o=A(u,t),t.filter?a(o,t.filter):o},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each((function(t,n){r(t,(function(t,r){e.call(i,n,t,r)}))}));else if(u(t))r(n.get(t),e,i);else if(h(t)){var a=this.findComponents(t);r(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){r(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){r(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){r(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)}),this)},eachRawSeriesByType:function(t,e,i){return r(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){T(this,a(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;T(this,e.get("series"));var i=[];e.each((function(t,e){i.push(e)})),_.topologicalTravel(i,_.getAllClassMainTypes(),(function(i,n){r(e.get(i),(function(e){("series"!==i||!function(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}(e,t))&&e.restoreData()}))}))}});function C(t){var e,i,n;t=t,this.option={},this.option["\0_ec_inner"]=1,this._componentsMap=c({series:[]}),this._seriesIndices,this._seriesIndicesMap,e=t,i=this._theme.option,n=e.color&&!e.colorLayer,r(i,(function(t,i){"colorLayer"===i&&n||_.hasClass(i)||("object"==typeof t?e[i]=e[i]?p(e[i],t,!1):f(t):null==e[i]&&(e[i]=t))})),p(t,x,!1),this.mergeOption(t)}function T(t,e){t._seriesIndicesMap=c(t._seriesIndices=o(e,(function(t){return t.componentIndex}))||[])}function A(t,e){return e.hasOwnProperty("subType")?a(t,(function(t){return t.subType===e.subType})):t}v(M,b);var I=M;t.exports=I},4272:(t,e,i)=>{var n=i(33051),r=i(66387),a=i(32234).makeInner,o=i(34251),s=o.enableClassExtend,l=o.enableClassCheck,h=i(77515),u=i(7308),c=i(7501),d=i(89887),f=n.mixin,p=a();function g(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function v(t,e,i){for(var n=0;n<e.length&&(!e[n]||null!=(t=t&&"object"==typeof t?t[e[n]]:null));n++);return null==t&&i&&(t=i.get(e)),t}function m(t,e){var i=p(t).getParent;return i?i.call(t,e):t.parentModel}g.prototype={constructor:g,init:null,mergeOption:function(t){n.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:v(this.option,this.parsePath(t),!e&&m(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],r=!e&&m(this,t);return null==n&&r&&(n=r.getShallow(t)),n},getModel:function(t,e){var i;return new g(null==t?this.option:v(this.option,t=this.parsePath(t)),e=e||(i=m(this,t))&&i.getModel(t),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(n.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){p(this).getParent=t},isAnimationEnabled:function(){if(!r.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s(g),l(g),f(g,h),f(g,u),f(g,c),f(g,d);var y=g;t.exports=y},43534:(t,e,i)=>{var n=i(33051),r=i(32234),a=i(98071),o=n.each,s=n.clone,l=n.map,h=n.merge,u=/^(min|max)?(.+)$/;function c(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function d(t,e,i){var r,a,s=[],l=[],h=t.timeline;if(t.baseOption&&(a=t.baseOption),(h||t.options)&&(a=a||{},s=(t.options||[]).slice()),t.media){a=a||{};var u=t.media;o(u,(function(t){t&&t.option&&(t.query?l.push(t):r||(r=t))}))}return a||(a=t),a.timeline||(a.timeline=h),o([a].concat(s).concat(n.map(l,(function(t){return t.option}))),(function(t){o(e,(function(e){e(t,i)}))})),{baseOption:a,timelineOptions:s,mediaDefault:r,mediaList:l}}function f(t,e,i){var r={width:e,height:i,aspectratio:e/i},a=!0;return n.each(t,(function(t,e){var i=e.match(u);if(i&&i[1]&&i[2]){var n=i[1],o=i[2].toLowerCase();(function(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e})(r[o],t,n)||(a=!1)}})),a}c.prototype={constructor:c,setOption:function(t,e){t&&n.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&n.isTypedArray(t.data)&&n.setAsPrimitive(t.data)})),t=s(t);var i,u,c=this._optionBackup,f=d.call(this,t,e,!c);this._newBaseOption=f.baseOption,c?(i=c.baseOption,u=f.baseOption,o(u=u||{},(function(t,e){if(null!=t){var n=i[e];if(a.hasClass(e)){t=r.normalizeToArray(t),n=r.normalizeToArray(n);var o=r.mappingToExists(n,t);i[e]=l(o,(function(t){return t.option&&t.exist?h(t.exist,t.option,!0):t.exist||t.option}))}else i[e]=h(n,t,!0)}})),f.timelineOptions.length&&(c.timelineOptions=f.timelineOptions),f.mediaList.length&&(c.mediaList=f.mediaList),f.mediaDefault&&(c.mediaDefault=f.mediaDefault)):this._optionBackup=f},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=s(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,i,n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,h=[],u=[];if(!a.length&&!o)return u;for(var c=0,d=a.length;c<d;c++)f(a[c].query,n,r)&&h.push(c);return!h.length&&o&&(h=[-1]),h.length&&(e=h,i=this._currentMediaIndices,e.join(",")!==i.join(","))&&(u=l(h,(function(t){return s(-1===t?o.option:a[t].option)}))),this._currentMediaIndices=h,u}};var p=c;t.exports=p},93321:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=i(66387),a=i(78988),o=a.formatTime,s=a.encodeHTML,l=a.addCommas,h=a.getTooltipMarker,u=i(32234),c=i(98071),d=i(23895),f=i(61219),p=i(76172),g=p.getLayoutParams,v=p.mergeLayoutParam,m=i(29449).createTask,y=i(61772),_=y.prepareSource,x=y.getSource,b=i(68540).retrieveRawValue,w=u.makeInner(),S=c.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=m({count:C,reset:T}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),_(this);var r=this.getInitialData(t,i);I(r,this),this.dataTask.context.data=r,w(this).dataBeforeProcessed=r,M(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?g(t):{},a=this.subType;c.hasClass(a)&&(a+="Series"),n.merge(t,e.getTheme().get(this.subType)),n.merge(t,this.getDefaultOption()),u.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&v(t,r,i)},mergeOption:function(t,e){t=n.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&v(this.option,t,i),_(this);var r=this.getInitialData(t,e);I(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,w(this).dataBeforeProcessed=r,M(this)},fillDataTextStyle:function(t){if(t&&!n.isTypedArray(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&u.defaultEmphasis(t[i],"label",e)},getInitialData:function(){},appendData:function(t){this.getRawData().appendData(t.data)},getData:function(t){var e=k(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return w(this).data},setData:function(t){var e=k(this);if(e){var i=e.context;i.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),i.outputData=t,e!==this.dataTask&&(i.data=t)}w(this).data=t},getSource:function(){return x(this)},getRawData:function(){return w(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,i,r){var a=this,c="html"===(r=r||"html")?"<br/>":"\n",d="richText"===r,f={},p=0;function g(t){return{renderMode:r,content:s(l(t)),style:f}}var v=this.getData(),m=v.mapDimension("defaultedTooltip",!0),y=m.length,_=this.getRawValue(t),x=n.isArray(_),w=v.getItemVisual(t,"color");n.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=y>1||x&&!y?function(i){var u=n.reduce(i,(function(t,e,i){var n=v.getDimensionInfo(i);return t|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),c=[];function g(t,i){var n=v.getDimensionInfo(i);if(n&&!1!==n.otherDims.tooltip){var g=n.type,m="sub"+a.seriesIndex+"at"+p,y=h({color:w,type:"subItem",renderMode:r,markerId:m}),_="string"==typeof y?y:y.content,x=(u?_+s(n.displayName||"-")+": ":"")+s("ordinal"===g?t+"":"time"===g?e?"":o("yyyy/MM/dd hh:mm:ss",t):l(t));x&&c.push(x),d&&(f[m]=w,++p)}}m.length?n.each(m,(function(e){g(b(v,t,e),e)})):n.each(i,g);var y=u?d?"\n":"<br/>":"",_=y+c.join(y||", ");return{renderMode:r,content:_,style:f}}(_):g(y?b(v,t,m[0]):x?_[0]:_),M=S.content,C=a.seriesIndex+"at"+p,T=h({color:w,type:"item",renderMode:r,markerId:C});f[C]=w,++p;var A=v.getName(t),I=this.name;u.isNameSpecified(this)||(I=""),I=I?s(I)+(e?": ":c):"";var D="string"==typeof T?T:T.content;return{html:e?D+I+M:I+D+(A?s(A)+": "+M:M),markers:f}},isAnimationEnabled:function(){if(r.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,r=d.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function M(t){var e=t.name;u.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),r=[];return n.each(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&r.push(i.displayName)})),r.join(" ")}(t)||e)}function C(t){return t.model.getRawData().count()}function T(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),A}function A(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function I(t,e){n.each(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,n.curry(D,e))}))}function D(t){var e=k(t);e&&e.setOutputEnd(this.count())}function k(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}n.mixin(S,f),n.mixin(S,d);var P=S;t.exports=P},22577:t=>{var e="";"undefined"!=typeof navigator&&(e=navigator.platform||"");var i={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:e.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=i},7308:(t,e,i)=>{var n=i(59066)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r={getAreaStyle:function(t,e){return n(this,t,e)}};t.exports=r},83047:t=>{t.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},23895:(t,e,i)=>{var n=i(32234),r=n.makeInner,a=n.normalizeToArray,o=r();var s={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,i){var n=o(e=e||this),r=n.colorIdx||0,s=n.colorNameMap=n.colorNameMap||{};if(s.hasOwnProperty(t))return s[t];var l=a(this.get("color",!0)),h=this.get("colorLayer",!0),u=null!=i&&h?function(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}(h,i):l;if((u=u||l)&&u.length){var c=u[r];return t&&(s[t]=c),n.colorIdx=(r+1)%u.length,c}}};t.exports=s},61219:(t,e,i)=>{var n=i(68540).retrieveRawValue,r=i(78988),a=r.getTooltipMarker,o=r.formatTpl,s=i(32234).getTooltipRenderMode,l=/\{@(.+?)\}/g,h={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),l=i.getRawDataItem(t),h=i.getItemVisual(t,"color"),u=i.getItemVisual(t,"borderColor"),c=this.ecModel.getComponent("tooltip"),d=c&&c.get("renderMode"),f=s(d),p=this.mainType,g="series"===p,v=i.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:r,data:l,dataType:e,value:n,color:h,borderColor:u,dimensionNames:v?v.dimensionNames:null,encode:v?v.encode:null,marker:a({color:h,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,r,a){e=e||"normal";var s=this.getData(i),h=s.getItemModel(t),u=this.getDataParams(t,i);null!=r&&u.value instanceof Array&&(u.value=u.value[r]);var c=h.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);return"function"==typeof c?(u.status=e,u.dimensionIndex=r,c(u)):"string"==typeof c?o(c,u).replace(l,(function(e,i){var r=i.length;return"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1)),n(s,t,i)})):void 0},getRawValue:function(t,e){return n(this.getData(e),t)},formatTooltip:function(){}};t.exports=h},89887:(t,e,i)=>{var n=i(59066)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),r={getItemStyle:function(t,e){var i=n(this,t,e),r=this.getBorderLineDash();return r&&(i.lineDash=r),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=r},77515:(t,e,i)=>{var n=i(59066)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getLineStyle:function(t){var e=n(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[n,n]:[i,i])}};t.exports=r},59066:(t,e,i)=>{var n=i(33051);t.exports=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,i,r){for(var a={},o=0;o<t.length;o++){var s=t[o][1];if(!(i&&n.indexOf(i,s)>=0||r&&n.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}},7501:(t,e,i)=>{var n=i(80423),r=i(51177),a=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return n.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},32702:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r=n.createHashMap,a=(n.retrieve,n.each);function o(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=r(),this.categoryAxisMap=r(),this.firstCategoryDimIndex=null}var s={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",a),l(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),l(a)&&(n.set("y",a),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",r),l(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",a),i.set("angle",o),l(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),l(o)&&(n.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();a(o.parallelAxisIndex,(function(t,a){var o=r.getComponent("parallelAxis",t),h=s[a];i.set(h,o),l(o)&&null==e.firstCategoryDimIndex&&(n.set(h,o),e.firstCategoryDimIndex=a)}))}};function l(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=function(t){var e=t.get("coordinateSystem"),i=new o(e),n=s[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}},70141:(t,e,i)=>{var n=i(33051),r=n.each,a=n.isArray,o=n.isObject,s=i(4583),l=i(32234).normalizeToArray;function h(t){r(u,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var u=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],c=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=function(t,e){s(t,e),t.series=l(t.series),r(t.series,(function(t){if(o(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var i=function(t,e){e=e.split(",");for(var i=t,n=0;n<e.length&&null!=(i=i&&i[e[n]]);n++);return i}(t,"pointer.color");null!=i&&function(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e.length-1;o++)null==a[r=e[o]]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}(t,"itemStyle.color",i)}h(t)}})),t.dataRange&&(t.visualMap=t.dataRange),r(c,(function(e){var i=t[e];i&&(a(i)||(i=[i]),r(i,(function(t){h(t)})))}))}},4583:(t,e,i)=>{var n=i(33051),r=i(32234),a=n.each,o=n.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(t){var e=t&&t.itemStyle;if(e)for(var i=0,r=s.length;i<r;i++){var a=s[i],o=e.normal,l=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?n.merge(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),l&&l[a]&&(t[a]=t[a]||{},t[a].emphasis?n.merge(t[a].emphasis,l[a]):t[a].emphasis=l[a],l[a]=null)}}function h(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(i?(t[e].normal=t[e].emphasis=null,n.defaults(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a)}}function u(t){h(t,"itemStyle"),h(t,"lineStyle"),h(t,"areaStyle"),h(t,"label"),h(t,"labelLine"),h(t,"upperLabel"),h(t,"edgeLabel")}function c(t,e){var i=o(t)&&t[e],n=o(i)&&i.textStyle;if(n)for(var a=0,s=r.TEXT_STYLE_OPTIONS.length;a<s;a++){e=r.TEXT_STYLE_OPTIONS[a];n.hasOwnProperty(e)&&(i[e]=n[e])}}function d(t){t&&(u(t),c(t,"label"),t.emphasis&&c(t.emphasis,"label"))}function f(t){return n.isArray(t)?t:t?[t]:[]}function p(t){return(n.isArray(t)?t[0]:t)||{}}t.exports=function(t,e){a(f(t.series),(function(t){o(t)&&function(t){if(o(t)){l(t),u(t),c(t,"label"),c(t,"upperLabel"),c(t,"edgeLabel"),t.emphasis&&(c(t.emphasis,"label"),c(t.emphasis,"upperLabel"),c(t.emphasis,"edgeLabel")),(i=t.markPoint)&&(l(i),d(i)),(r=t.markLine)&&(l(r),d(r));var e=t.markArea;e&&d(e);var i,r,a=t.data;if("graph"===t.type){a=a||t.nodes;var s=t.links||t.edges;if(s&&!n.isTypedArray(s))for(var f=0;f<s.length;f++)d(s[f]);n.each(t.categories,(function(t){u(t)}))}if(a&&!n.isTypedArray(a))for(f=0;f<a.length;f++)d(a[f]);if((i=t.markPoint)&&i.data){var p=i.data;for(f=0;f<p.length;f++)d(p[f])}if((r=t.markLine)&&r.data){var g=r.data;for(f=0;f<g.length;f++)n.isArray(g[f])?(d(g[f][0]),d(g[f][1])):d(g[f])}"gauge"===t.type?(c(t,"axisLabel"),c(t,"title"),c(t,"detail")):"treemap"===t.type?(h(t.breadcrumb,"itemStyle"),n.each(t.levels,(function(t){u(t)}))):"tree"===t.type&&u(t.leaves)}}(t)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),a(i,(function(e){a(f(t[e]),(function(t){t&&(c(t,"axisLabel"),c(t.axisPointer,"label"))}))})),a(f(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;c(e,"axisLabel"),c(e&&e.axisPointer,"label")})),a(f(t.calendar),(function(t){h(t,"itemStyle"),c(t,"dayLabel"),c(t,"monthLabel"),c(t,"yearLabel")})),a(f(t.radar),(function(t){c(t,"name")})),a(f(t.geo),(function(t){o(t)&&(d(t),a(f(t.regions),(function(t){d(t)})))})),a(f(t.timeline),(function(t){d(t),h(t,"label"),h(t,"itemStyle"),h(t,"controlStyle",!0);var e=t.data;n.isArray(e)&&n.each(e,(function(t){n.isObject(t)&&(h(t,"label"),h(t,"itemStyle"))}))})),a(f(t.toolbox),(function(t){h(t,"iconStyle"),a(t.feature,(function(t){h(t,"iconStyle")}))})),c(p(t.axisPointer),"label"),c(p(t.tooltip).axisPointer,"label")}},22528:t=>{t.exports=function(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf((function(t){for(var e=n.getName(t),r=0;r<i.length;r++)if(!i[r].isSelected(e))return!1;return!0}))}}}}},64088:t=>{var e={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},i=function(t,e){return Math.round(t.length/2)};t.exports=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,n,r){var a=t.getData(),o=t.get("sampling"),s=t.coordinateSystem;if("cartesian2d"===s.type&&o){var l,h=s.getBaseAxis(),u=s.getOtherAxis(h),c=h.getExtent(),d=Math.abs(c[1]-c[0]),f=Math.round(a.count()/d);if(f>1)"string"==typeof o?l=e[o]:"function"==typeof o&&(l=o),l&&t.setData(a.downSample(a.mapDimension(u.dim),1/f,l,i))}}}}},33809:(t,e,i)=>{var n=i(33051),r=n.createHashMap,a=n.each;function o(t){a(t,(function(e,i){var n=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(a,(function(a,l,h){var u,c,d=o.get(e.stackedDimension,h);if(isNaN(d))return r;s?c=o.getRawIndex(h):u=o.get(e.stackedByDimension,h);for(var f=NaN,p=i-1;p>=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,u)),c>=0){var v=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&v>0||d<=0&&v<0){d+=v,f=v;break}}}return n[0]=d,n[1]=f,n}));o.hostModel.setData(l),e.data=l}))}t.exports=function(t){var e=r();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}})),e.each(o)}},70103:(t,e,i)=>{var n=i(85669),r=i(78988),a=i(60379),o=i(65021),s=n.round,l=a.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;i[0]<n[0]&&(t?a.push(s(n[0]-e,r)):a.push(i[0]));for(var o=n[0];o<=n[1]&&(a.push(o),(o=s(o+e,r))!==a[a.length-1]);)if(a.length>1e4)return[];var l=a.length?a[a.length-1]:n[1];return i[1]>l&&(t?a.push(s(l+e,r)):a.push(i[1])),a},getMinorTicks:function(t){for(var e=this.getTicks(!0),i=[],r=this.getExtent(),a=1;a<e.length;a++){for(var o=e[a],s=e[a-1],l=0,h=[],u=(o-s)/t;l<t-1;){var c=n.round(s+(l+1)*u);c>r[0]&&c<r[1]&&h.push(c),l++}i.push(h)}return i},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=n.getPrecisionSafe(t)||0:"auto"===i&&(i=this._intervalPrecision),t=s(t,i,!0),r.addCommas(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){r<0&&(r=-r,n.reverse());var a=o.intervalScaleNiceTicks(n,t,e,i);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax||(e[1]+=i/2),e[0]-=i/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l};var h=l;t.exports=h},76304:(t,e,i)=>{var n=i(33051),r=i(60379),a=i(85669),o=i(70103),s=r.prototype,l=o.prototype,h=a.getPrecisionSafe,u=a.round,c=Math.floor,d=Math.ceil,f=Math.pow,p=Math.log,g=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new o},getTicks:function(t){var e=this._originalScale,i=this._extent,r=e.getExtent();return n.map(l.getTicks.call(this,t),(function(t){var n=a.round(f(this.base,t));return n=t===i[0]&&e.__fixMin?v(n,r[0]):n,n=t===i[1]&&e.__fixMax?v(n,r[1]):n}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var i=this.base;t=p(t)/p(i),e=p(e)/p(i),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=v(e[0],n[0])),i.__fixMax&&(e[1]=v(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=p(t[0])/p(e),t[1]=p(t[1])/p(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=a.quantity(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var r=[a.round(d(e[0]/n)*n),a.round(c(e[1]/n)*n)];this._interval=n,this._niceExtent=r}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function v(t,e){return u(t,h(e))}n.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var m=g;t.exports=m},85043:(t,e,i)=>{var n=i(33051),r=i(60379),a=i(51401),o=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!n.isArray(t)||(t=new a({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});s.create=function(){return new s};var l=s;t.exports=l},60379:(t,e,i)=>{var n=i(34251);function r(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(t){return t},r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0});var a=r;t.exports=a},61618:(t,e,i)=>{var n=i(33051),r=i(85669),a=i(78988),o=i(65021),s=i(70103),l=s.prototype,h=Math.ceil,u=Math.floor,c=1e3,d=6e4,f=36e5,p=864e5,g=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return a.formatTime(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=p,e[1]+=p),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-p}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=r.round(u(e[0]/n)*n)),t.fixMax||(e[1]=r.round(h(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,a=n[1]-n[0],s=a/t;null!=e&&s<e&&(s=e),null!=i&&s>i&&(s=i);var l=v.length,c=function(t,e,i,n){for(;i<n;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i}(v,s,0,l),d=v[Math.min(c,l-1)],f=d[1];if("year"===d[0]){var p=a/f;f*=r.nice(p/t,!0)}var g=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,m=[Math.round(h((n[0]-g)/f)*f+g),Math.round(u((n[1]-g)/f)*f+g)];o.fixExtent(m,n),this._stepLvl=d,this._interval=f,this._niceExtent=m},parse:function(t){return+r.parseDate(t)}});n.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return l[t].call(this,this.parse(e))}}));var v=[["hh:mm:ss",c],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",p],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];g.create=function(t){return new g({useUTC:t.ecModel.get("useUTC")})};var m=g;t.exports=m},65021:(t,e,i)=>{var n=i(85669),r=n.round;function a(t){return n.getPrecisionSafe(t)+2}function o(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function s(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),o(t,0,e),o(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,i,o){var l={},h=t[1]-t[0],u=l.interval=n.nice(h/e,!0);null!=i&&u<i&&(u=l.interval=i),null!=o&&u>o&&(u=l.interval=o);var c=l.intervalPrecision=a(u);return s(l.niceTickExtent=[r(Math.ceil(t[0]/u)*u,c),r(Math.floor(t[1]/u)*u,c)],t),l},e.getIntervalPrecision=a,e.fixExtent=s},15532:(t,e,i)=>{var n=i(33051),r=n.each,a=n.map,o=n.isFunction,s=n.createHashMap,l=n.noop,h=i(29449).createTask,u=i(42151).getUID,c=i(17260),d=i(59935),f=i(32234).normalizeToArray;function p(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=s()}var g=p.prototype;function v(t,e,i,n,a){var o;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{},r(e,(function(e,r){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),h=l.seriesTaskMap,u=l.overallTask;if(u){var c,d=u.agentStubMap;d.each((function(t){s(a,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),m(u,n);var f=t.getPerformArgs(u,a.block);d.each((function(t){t.perform(f)})),o|=u.perform(f)}else h&&h.each((function(r,l){s(a,r)&&r.dirty();var h=t.getPerformArgs(r,a.block);h.skip=!e.performRawSeries&&i.isSeriesFiltered(r.context.model),m(r,n),o|=r.perform(h)}))}})),t.unfinished|=o}g.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},g.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,a=n&&n.modDataCount;return{step:r,modBy:null!=a?Math.ceil(a/r):null,modDataCount:a}}},g.getPipeline=function(t){return this._pipelineMap.get(t)},g.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),r=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,a=t.get("large")&&n>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:r,modDataCount:o,large:a}},g.restorePipelines=function(t){var e=this,i=e._pipelineMap=s();t.eachSeries((function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),A(e,t,t.dataTask)}))},g.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;r(this._allHandlers,(function(n){var a=t.get(n.uid)||t.set(n.uid,[]);n.reset&&function(t,e,i,n,r){var a=i.seriesTaskMap||(i.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(u):o?n.eachRawSeriesByType(o,u):l&&l(n,r).each(u);function u(i){var o=i.uid,s=a.get(o)||a.set(o,h({plan:w,reset:S,count:T}));s.context={model:i,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},A(t,i,s)}var c=t._pipelineMap;a.each((function(t,e){c.get(e)||(t.dispose(),a.removeKey(e))}))}(this,n,a,e,i),n.overallReset&&function(t,e,i,n,a){var o=i.overallTask=i.overallTask||h({reset:y});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=e.modifyOutputEnd;u?n.eachRawSeriesByType(u,p):c?c(n,a).each(p):(d=!1,r(n.getSeries(),p));function p(e){var i=e.uid,n=l.get(i);n||(n=l.set(i,h({reset:_,onDirty:b})),o.dirty()),n.context={model:e,overallProgress:d,modifyOutputEnd:f},n.agent=o,n.__block=d,A(t,e,n)}var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}(this,n,a,e,i)}),this)},g.prepareView=function(t,e,i,n){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=i,a.api=n,r.__block=!t.incrementalPrepareRender,A(this,e,r)},g.performDataProcessorTasks=function(t,e){v(this,this._dataProcessorHandlers,t,e,{block:!0})},g.performVisualTasks=function(t,e,i){v(this,this._visualHandlers,t,e,i)},g.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},g.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var m=g.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function y(t){t.overallReset(t.ecModel,t.api,t.payload)}function _(t,e){return t.overallProgress&&x}function x(){this.agent.dirty(),this.getDownstream().dirty()}function b(){this.agent&&this.agent.dirty()}function w(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function S(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=f(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?a(e,(function(t,e){return C(e)})):M}var M=C(0);function C(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(n,a);else r&&r.progress&&r.progress(e,n)}}function T(t){return t.data.count()}function A(t,e,i){var n=e.uid,r=t._pipelineMap.get(n);!r.head&&(r.head=i),r.tail&&r.tail.pipe(i),r.tail=i,i.__idxInPipeline=r.count++,i.__pipeline=r}function I(t){D=null;try{t(k,P)}catch(t){}return D}p.wrapStageHandler=function(t,e){return o(t)&&(t={overallReset:t,seriesType:I(t)}),t.uid=u("stageHandler"),e&&(t.visualType=e),t};var D,k={},P={};function O(t,e){for(var i in e.prototype)t[i]=l}O(k,c),O(P,d),k.eachSeriesByType=k.eachRawSeriesByType=function(t){D=t},k.eachComponent=function(t){"series"===t.mainType&&t.subType&&(D=t.subType)};var L=p;t.exports=L},29449:(t,e,i)=>{var n=i(33051),r=(n.assert,n.isArray);i(38175).__DEV__;function a(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var o=a.prototype;o.perform=function(t){var e,i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var a=this.context;a.data=a.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var o,s=d(this._modBy),h=this._modDataCount||0,u=d(t&&t.modBy),c=t&&t.modDataCount||0;function d(t){return!(t>=1)&&(t=1),t}s===u&&h===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=function(t,e){var i,n;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((i=t._reset(t.context))&&i.progress&&(n=i.forceFirstProgress,i=i.progress),r(i)&&!i.length&&(i=null));t._progress=i,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),n}(this,n)),this._modBy=u,this._modDataCount=c;var f=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,g=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(o||p<g)){var v=this._progress;if(r(v))for(var m=0;m<v.length;m++)l(this,v[m],p,g,u,c);else l(this,v,p,g,u,c)}this._dueIndex=g;var y=null!=this._settedOutputEnd?this._settedOutputEnd:g;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var s=function(){var t,e,i,n,r,a={reset:function(l,h,u,c){e=l,t=h,i=u,n=c,r=Math.ceil(n/i),a.next=i>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%r*i+Math.ceil(e/r),o=e>=t?null:a<n?a:e;return e++,o}}();function l(t,e,i,n,r,a){s.reset(i,n,r,a),t._callingProgress=e,t._callingProgress({start:i,end:n,count:n-i,next:s.next},t.context)}o.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},o.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},o.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},o.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},o.getUpstream=function(){return this._upstream},o.getDownstream=function(){return this._downstream},o.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=function(t){return new a(t)}},73450:t=>{var e="#eee",i=function(){return{axisLine:{lineStyle:{color:e}},axisTick:{lineStyle:{color:e}},axisLabel:{textStyle:{color:e}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:e}}}},n=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:n,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:e},crossStyle:{color:e},label:{color:"#000"}}},legend:{textStyle:{color:e}},textStyle:{color:e},title:{textStyle:{color:e}},toolbox:{iconStyle:{normal:{borderColor:e}}},dataZoom:{textStyle:{color:e}},visualMap:{textStyle:{color:e}},timeline:{lineStyle:{color:e},itemStyle:{normal:{color:n[1]}},label:{normal:{textStyle:{color:e}}},controlStyle:{normal:{color:e,borderColor:e}}},timeAxis:i(),logAxis:i(),valueAxis:i(),categoryAxis:i(),line:{symbol:"circle"},graph:{color:n},gauge:{title:{textStyle:{color:e}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var a=r;t.exports=a},29594:t=>{var e=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],i={color:e,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],e]};t.exports=i},34251:(t,e,i)=>{i(38175).__DEV__;var n=i(33051),r="___EC__COMPONENT__CONTAINER___";function a(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}var o=0;function s(t,e){var i=n.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function l(t,e,i){return this.superClass.prototype[e].apply(t,i)}e.parseClassType=a,e.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return n.extend(i.prototype,t),i.extend=this.extend,i.superCall=s,i.superApply=l,n.inherits(i,this),i.superClass=e,i}},e.enableClassCheck=function(t){var e=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}},e.enableClassManagement=function(t,e){e=e||{};var i={};if(t.registerClass=function(t,e){if(e)if(function(t){n.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=a(e)).sub){if(e.sub!==r){var o=function(t){var e=i[t.main];e&&e[r]||((e=i[t.main]={})[r]=!0);return e}(e);o[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var a=i[t];if(a&&a[r]&&(a=e?a[e]:null),n&&!a)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return a},t.getClassesByMainType=function(t){t=a(t);var e=[],o=i[t.main];return o&&o[r]?n.each(o,(function(t,i){i!==r&&e.push(t)})):e.push(o),e},t.hasClass=function(t){return t=a(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(i,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){t=a(t);var e=i[t.main];return e&&e[r]},t.parseClassType=a,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var i=o.call(this,e);return t.registerClass(i,e.type)})}return t},e.setReadOnly=function(t,e){}},42151:(t,e,i)=>{var n=i(33051),r=i(34251).parseClassType,a=0;e.getUID=function(t){return[t||"",a++,Math.random().toFixed(5)].join("_")},e.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=r(t),e[t.main]=i},t.determineSubType=function(i,n){var a=n.type;if(!a){var o=r(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](n))}return a},t},e.enableTopologicalTravel=function(t,e){function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,a,o){if(t.length){var s=function(t){var r={},a=[];return n.each(t,(function(o){var s=i(r,o),l=function(t,e){var i=[];return n.each(t,(function(t){n.indexOf(e,t)>=0&&i.push(t)})),i}(s.originalDeps=e(o),t);s.entryCount=l.length,0===s.entryCount&&a.push(o),n.each(l,(function(t){n.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(r,t);n.indexOf(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:a}}(r),l=s.graph,h=s.noEntryList,u={};for(n.each(t,(function(t){u[t]=!0}));h.length;){var c=h.pop(),d=l[c],f=!!u[c];f&&(a.call(o,c,d.originalDeps.slice()),delete u[c]),n.each(d.successor,f?g:p)}n.each(u,(function(){throw new Error("Circle dependency may exists")}))}function p(t){l[t].entryCount--,0===l[t].entryCount&&h.push(t)}function g(t){u[t]=!0,p(t)}}}},78988:(t,e,i)=>{var n=i(33051),r=i(80423),a=i(85669);var o=n.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(s,(function(t,e){return l[e]}))}var u=["a","b","c","d","e","f","g"],c=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e){return"0000".substr(0,e-(t+="").length)+t}var f=r.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=o,e.encodeHTML=h,e.formatTpl=function(t,e,i){n.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var s=u[o];t=t.replace(c(s),c(s,0))}for(var l=0;l<r;l++)for(var d=0;d<a.length;d++){var f=e[l][a[d]];t=t.replace(c(u[d],l),i?h(f):f)}return t},e.formatTplSimple=function(t,e,i){return n.each(e,(function(e,n){t=t.replace("{"+n+"}",i?h(e):e)})),t},e.getTooltipMarker=function(t,e){var i=(t=n.isString(t)?{color:t,extraCssText:e}:t||{}).color,r=t.type,a=(e=t.extraCssText,t.renderMode||"html"),o=t.markerId||"X";return i?"html"===a?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(i)+";"+(e||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|} ",style:{color:i}}:""},e.formatTime=function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=a.parseDate(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),s=n["get"+r+"Month"]()+1,l=n["get"+r+"Date"](),h=n["get"+r+"Hours"](),u=n["get"+r+"Minutes"](),c=n["get"+r+"Seconds"](),f=n["get"+r+"Milliseconds"]();return t=t.replace("MM",d(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",d(l,2)).replace("d",l).replace("hh",d(h,2)).replace("h",h).replace("mm",d(u,2)).replace("m",u).replace("ss",d(c,2)).replace("s",c).replace("SSS",d(f,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=f,e.getTextBoundingRect=function(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(t,e,i,n,a,o,s,l){return r.getBoundingRect(t,e,i,n,a,l,o,s)},e.windowOpen=function(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}},51177:(t,e,i)=>{var n=i(33051),r=i(75991),a=i(21092),o=i(32892),s=i(45280),l=i(10712),h=i(58023),u=i(44535);e.Image=u;var c=i(8524);e.Group=c;var d=i(96498);e.Text=d;var f=i(69538);e.Circle=f;var p=i(74520);e.Sector=p;var g=i(85795);e.Ring=g;var v=i(95094);e.Polygon=v;var m=i(62514);e.Polyline=m;var y=i(27304);e.Rect=y;var _=i(22095);e.Line=_;var x=i(54174);e.BezierCurve=x;var b=i(14826);e.Arc=b;var w=i(52776);e.CompoundPath=w;var S=i(74438);e.LinearGradient=S;var M=i(36369);e.RadialGradient=M;var C=i(60479);e.BoundingRect=C;var T=i(91754);e.IncrementalDisplayable=T;var A=i(24111),I=Math.max,D=Math.min,k={},P="emphasis",O="normal",L=1,E={},R={};function z(t,e){R[t]=e}function B(t,e,i,n){var a=r.createFromString(t,e);return i&&("center"===n&&(i=N(i,a.getBoundingRect())),V(a,i)),a}function N(t,e){var i,n=e.width/e.height,r=t.height*n;return i=r<=t.width?t.height:(r=t.width)/n,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}var F=r.mergePath;function V(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}var H=A.subPixelOptimize;function W(t){return null!=t&&"none"!==t}var G=n.createHashMap(),U=0;function Y(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.__zr,n=t.useHoverLayer&&i&&"canvas"===i.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!i&&t.useHoverLayer)){var r=t,a=t.style;n&&(a=(r=i.addHover(t)).style),st(a),n||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var r in e)null!=e[r]&&(i[r]=n[r]);i.fill=n.fill,i.stroke=n.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(r),a.extendFrom(e),j(a,e,"fill"),j(a,e,"stroke"),ot(a),n||(t.dirty(!1),t.z2+=1)}}}function j(t,e,i){!W(e[i])&&W(t[i])&&(t[i]=function(t){if("string"!=typeof t)return t;var e=G.get(t);return e||(e=a.lift(t,-.1),U<1e4&&(G.set(t,e),U++)),e}(t[i]))}function X(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var i=t.style,n=t.__cachedNormalStl;n&&(st(i),t.setStyle(n),ot(i));var r=t.__cachedNormalZ2;null!=r&&t.z2-r==1&&(t.z2=r)}}function q(t,e,i){var n,r=O,a=O;t.__highlighted&&(r=P,n=!0),e(t,i),t.__highlighted&&(a=P,n=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,i)})),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,a)}function $(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,X(t),Y(t))}function Z(t){!tt(this,t)&&!this.__highByOuter&&q(this,Y)}function K(t){!tt(this,t)&&!this.__highByOuter&&q(this,X)}function Q(t){this.__highByOuter|=1<<(t||0),q(this,Y)}function J(t){!(this.__highByOuter&=~(1<<(t||0)))&&q(this,X)}function tt(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function et(t,e){var i=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!i||t.__highDownDispatcher){var n=i?"off":"on";t[n]("mouseover",Z)[n]("mouseout",K),t[n]("emphasis",Q)[n]("normal",J),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i}}function it(t,e,i,r,a){return nt(t,e,r,a),i&&n.extend(t,i),t}function nt(t,e,i,r){if((i=i||k).isRectText){var a;i.getTextPosition?a=i.getTextPosition(e,r):"outside"===(a=e.getShallow("position")||(r?null:"inside"))&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=n.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,h=l&&l.option.textStyle,u=function(t){var e;for(;t&&t!==t.ecModel;){var i=(t.option||k).rich;if(i)for(var n in e=e||{},i)i.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}(e);if(u)for(var c in s={},u)if(u.hasOwnProperty(c)){var d=e.getModel(["rich",c]);rt(s[c]={},d,h,i,r)}return t.rich=s,rt(t,e,h,i,r,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function rt(t,e,i,r,a,o){i=!a&&i||k,t.textFill=at(e.getShallow("color"),r)||i.color,t.textStroke=at(e.getShallow("textBorderColor"),r)||i.textBorderColor,t.textStrokeWidth=n.retrieve2(e.getShallow("textBorderWidth"),i.textBorderWidth),a||(o&&(t.insideRollbackOpt=r,ot(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&r.disableBox||(t.textBackgroundColor=at(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=at(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function at(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function ot(t){var e,i=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var r=n.autoColor,a=n.isRectText,o=n.useInsideStyle,s=!1!==o&&(!0===o||a&&i&&"string"==typeof i&&i.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function st(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function lt(t,e,i,n,r,a){if("function"==typeof r&&(a=r,r=null),n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),h=n.getShallow("animationDelay"+o);"function"==typeof h&&(h=h(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(i,s,h||0,l,a,!!a):(e.stopAnimation(),e.attr(i),a&&a())}else e.stopAnimation(),e.attr(i),a&&a()}function ht(t,e,i,n,r){lt(!0,t,e,i,n,r)}function ut(t,e,i){return e&&!n.isArrayLike(e)&&(e=h.getLocalTransform(e)),i&&(e=o.invert([],e)),s.applyTransform([],t,e)}function ct(t,e,i,n,r,a,o,s){var l,h=i-t,u=n-e,c=o-r,d=s-a,f=dt(c,d,h,u);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=t-r,g=e-a,v=dt(p,g,h,u)/f;if(v<0||v>1)return!1;var m=dt(p,g,c,d)/f;return!(m<0||m>1)}function dt(t,e,i,n){return t*n-i*e}z("circle",f),z("sector",p),z("ring",g),z("polygon",v),z("polyline",m),z("rect",y),z("line",_),z("bezierCurve",x),z("arc",b),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return r.extendFromString(t,e)},e.registerShape=z,e.getShapeClass=function(t){if(R.hasOwnProperty(t))return R[t]},e.makePath=B,e.makeImage=function(t,e,i){var n=new u({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(N(e,r))}}});return n},e.mergePath=F,e.resizePath=V,e.subPixelOptimizeLine=function(t){return A.subPixelOptimizeLine(t.shape,t.shape,t.style),t},e.subPixelOptimizeRect=function(t){return A.subPixelOptimizeRect(t.shape,t.shape,t.style),t},e.subPixelOptimize=H,e.setElementHoverStyle=$,e.setHoverStyle=function(t,e){et(t,!0),q(t,$,e)},e.setAsHighDownDispatcher=et,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=E[t];return null==e&&L<=32&&(e=E[t]=L++),e},e.setLabelStyle=function(t,e,i,r,a,o,s){var l,h=(a=a||k).labelFetcher,u=a.labelDataIndex,c=a.labelDimIndex,d=a.labelProp,f=i.getShallow("show"),p=r.getShallow("show");(f||p)&&(h&&(l=h.getFormattedLabel(u,"normal",null,c,d)),null==l&&(l=n.isFunction(a.defaultText)?a.defaultText(u,a):a.defaultText));var g=f?l:null,v=p?n.retrieve2(h?h.getFormattedLabel(u,"emphasis",null,c,d):null,l):null;null==g&&null==v||(it(t,i,o,a),it(e,r,s,a,!0)),t.text=g,e.text=v},e.modifyLabelStyle=function(t,e,i){var r=t.style;e&&(st(r),t.setStyle(e),ot(r)),r=t.__hoverStl,i&&r&&(st(r),n.extend(r,i),ot(r))},e.setTextStyle=it,e.setText=function(t,e,i){var n,r={isRectText:!0};!1===i?n=!0:r.autoColor=i,nt(t,e,r,n)},e.getFont=function(t,e){var i=e&&e.getModel("textStyle");return n.trim([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=ht,e.initProps=function(t,e,i,n,r){lt(!1,t,e,i,n,r)},e.getTransform=function(t,e){for(var i=o.identity([]);t&&t!==e;)o.mul(i,t.getLocalTransform(),i),t=t.parent;return i},e.applyTransform=ut,e.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return a=ut(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},e.groupTransition=function(t,e,i,r){if(t&&e){var a,o=(a={},t.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=l(t);t.attr(l(e)),ht(t,n,i,t.dataIndex)}}}))}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return n.map(t,(function(t){var i=t[0];i=I(i,e.x),i=D(i,e.x+e.width);var n=t[1];return n=I(n,e.y),[i,n=D(n,e.y+e.height)]}))},e.clipRectByRect=function(t,e){var i=I(t.x,e.x),n=D(t.x+t.width,e.x+e.width),r=I(t.y,e.y),a=D(t.y+t.height,e.y+e.height);if(n>=i&&a>=r)return{x:i,y:r,width:n-i,height:a-r}},e.createIcon=function(t,e,i){var r=(e=n.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),n.defaults(r,i),new u(e)):B(t.replace("path://",""),e,i,"center")},e.linePolygonIntersect=function(t,e,i,n,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(ct(t,e,i,n,s[0],s[1],o[0],o[1]))return!0;o=s}},e.lineLineIntersect=ct},76172:(t,e,i)=>{var n=i(33051),r=i(60479),a=i(85669).parsePercent,o=i(78988),s=n.each,l=["left","right","top","bottom","width","height"],h=[["width","left","right"],["height","top","bottom"]];function u(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,h){var u,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(h+1),g=p&&p.getBoundingRect();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);(u=a+v)>n||l.newline?(a=0,u=v,o+=s+i,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);(c=o+m)>r||l.newline?(a+=s+i,o=0,c=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=u+i:o=c+i)}))}var c=u,d=n.curry(u,"vertical"),f=n.curry(u,"horizontal");function p(t,e,i){i=o.normalizeCssArray(i||0);var n=e.width,s=e.height,l=a(t.left,n),h=a(t.top,s),u=a(t.right,n),c=a(t.bottom,s),d=a(t.width,n),f=a(t.height,s),p=i[2]+i[0],g=i[1]+i[3],v=t.aspect;switch(isNaN(d)&&(d=n-u-g-l),isNaN(f)&&(f=s-c-p-h),null!=v&&(isNaN(d)&&isNaN(f)&&(v>n/s?d=.8*n:f=.8*s),isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=n-u-d-g),isNaN(h)&&(h=s-c-f-p),t.left||t.right){case"center":l=n/2-d/2-i[3];break;case"right":l=n-d-g}switch(t.top||t.bottom){case"middle":case"center":h=s/2-f/2-i[0];break;case"bottom":h=s-f-p}l=l||0,h=h||0,isNaN(d)&&(d=n-g-l-(u||0)),isNaN(f)&&(f=s-p-h-(c||0));var m=new r(l+i[3],h+i[0],d,f);return m.margin=i,m}function g(t,e){return e&&t&&s(l,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}e.LOCATION_PARAMS=l,e.HV_NAMES=h,e.box=c,e.vbox=d,e.hbox=f,e.getAvailableSize=function(t,e,i){var n=e.width,r=e.height,s=a(t.x,n),l=a(t.y,r),h=a(t.x2,n),u=a(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(h)||isNaN(parseFloat(t.x2)))&&(h=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(t.y2)))&&(u=r),i=o.normalizeCssArray(i||0),{width:Math.max(h-s-i[1]-i[3],0),height:Math.max(u-l-i[0]-i[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,i,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],h=o&&o.boundingMode||"all";if(s||l){var u;if("raw"===h)u="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(u=u.clone()).applyTransform(c)}e=p(n.defaults({width:u.width,height:u.height},e),i,a);var d=t.position,f=s?e.x-u.x:0,g=l?e.y-u.y:0;t.attr("position","raw"===h?[f,g]:[d[0]+f,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[h[e][0]]||null!=t[h[e][1]]&&null!=t[h[e][2]]},e.mergeLayoutParam=function(t,e,i){!n.isObject(i)&&(i={});var r=i.ignoreSize;!n.isArray(r)&&(r=[r,r]);var a=l(h[0],0),o=l(h[1],1);function l(i,n){var a={},o=0,l={},h=0;if(s(i,(function(e){l[e]=t[e]})),s(i,(function(t){u(e,t)&&(a[t]=l[t]=e[t]),c(a,t)&&o++,c(l,t)&&h++})),r[n])return c(e,i[1])?l[i[2]]=null:c(e,i[2])&&(l[i[1]]=null),l;if(2!==h&&o){if(o>=2)return a;for(var d=0;d<i.length;d++){var f=i[d];if(!u(a,f)&&u(t,f)){a[f]=t[f];break}}return a}return l}function u(t,e){return t.hasOwnProperty(e)}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,i){s(t,(function(t){e[t]=i[t]}))}d(h[0],t,a),d(h[1],t,o)},e.getLayoutParams=function(t){return g({},t)},e.copyLayoutParams=g},32234:(t,e,i)=>{var n=i(33051),r=i(66387),a=n.each,o=n.isObject,s=n.isArray,l="series\0";function h(t){return t instanceof Array?t:null==t?[]:[t]}function u(t){return o(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}var c=0;function d(t,e){return t&&t.hasOwnProperty(e)}e.normalizeToArray=h,e.defaultEmphasis=function(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var a=i[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}},e.TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],e.getDataItemValue=function(t){return!o(t)||s(t)||t instanceof Date?t:t.value},e.isDataItemOption=function(t){return o(t)&&!(t instanceof Array)},e.mappingToExists=function(t,e){e=(e||[]).slice();var i=n.map(t||[],(function(t,e){return{exist:t}}));return a(e,(function(t,n){if(o(t)){for(var r=0;r<i.length;r++)if(!i[r].option&&null!=t.id&&i[r].exist.id===t.id+"")return i[r].option=t,void(e[n]=null);for(r=0;r<i.length;r++){var a=i[r].exist;if(!(i[r].option||null!=a.id&&null!=t.id||null==t.name||u(t)||u(a)||a.name!==t.name+""))return i[r].option=t,void(e[n]=null)}}})),a(e,(function(t,e){if(o(t)){for(var n=0;n<i.length;n++){var r=i[n].exist;if(!i[n].option&&!u(r)&&null==t.id){i[n].option=t;break}}n>=i.length&&i.push({option:t})}})),i},e.makeIdAndName=function(t){var e=n.createHashMap();a(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),a(t,(function(t,i){var r=t.option;n.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),a(t,(function(t,i){var n=t.exist,r=t.option,a=t.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":n?n.name:l+i,n)a.id=n.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf(l))},e.isIdInner=u,e.compressBatches=function(t,e){var i={},n={};return r(t||[],i),r(e||[],n,i),[a(i),a(n)];function r(t,e,i){for(var n=0,r=t.length;n<r;n++)for(var a=t[n].seriesId,o=h(t[n].dataIndex),s=i&&i[a],l=0,u=o.length;l<u;l++){var c=o[l];s&&s[c]?s[c]=null:(e[a]||(e[a]={}))[c]=1}}function a(t,e){var i=[];for(var n in t)if(t.hasOwnProperty(n)&&null!=t[n])if(e)i.push(+n);else{var r=a(t[n],!0);r.length&&i.push({seriesId:n,dataIndex:r})}return i}},e.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?n.isArray(e.dataIndex)?n.map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?n.isArray(e.name)?n.map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0},e.makeInner=function(){var t="__\0ec_inner_"+c+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}},e.parseFinder=function(t,e,i){if(n.isString(e)){var r={};r[e+"Index"]=0,e=r}var o=i&&i.defaultMainType;!o||d(e,o+"Index")||d(e,o+"Id")||d(e,o+"Name")||(e[o+"Index"]=0);var s={};return a(e,(function(r,a){r=e[a];if("dataIndex"!==a&&"dataIndexInside"!==a){var o=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],h=(o[2]||"").toLowerCase();if(!(!l||!h||null==r||"index"===h&&"none"===r||i&&i.includeMainTypes&&n.indexOf(i.includeMainTypes,l)<0)){var u={mainType:l};"index"===h&&"all"===r||(u[h]=r);var c=t.queryComponents(u);s[l+"Models"]=c,s[l+"Model"]=c[0]}}else s[a]=r})),s},e.setAttribute=function(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i},e.getAttribute=function(t,e){return t.getAttribute?t.getAttribute(e):t[e]},e.getTooltipRenderMode=function(t){return"auto"===t?r.domSupported?"html":"richText":t||"html"},e.groupData=function(t,e){var i=n.createHashMap(),r=[];return n.each(t,(function(t){var n=e(t);(i.get(n)||(r.push(n),i.set(n,[]))).push(t)})),{keys:r,buckets:i}}},85669:(t,e,i)=>{var n=i(33051),r=1e-4;var a=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var i},e.round=function(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t},e.asc=function(t){return t.sort((function(t,e){return t-e})),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPrecisionSafe=function(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var r=e.indexOf(".");return r<0?0:e.length-1-r},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,i){if(!t[e])return 0;var r=n.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var a=Math.pow(10,i),o=n.map(t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=n.map(o,(function(t){return Math.floor(t)})),h=n.reduce(l,(function(t,e){return t+e}),0),u=n.map(o,(function(t,e){return t-l[e]}));h<s;){for(var c=Number.NEGATIVE_INFINITY,d=null,f=0,p=u.length;f<p;++f)u[f]>c&&(c=u[f],d=f);++l[d],u[d]=0,++h}return l[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t<r},e.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=a.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,o(t))},e.quantityExponent=o,e.nice=function(t,e){var i=o(t),n=Math.pow(10,i),r=t/n;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*n,i>=-20?+t.toFixed(i<0?-i:0):t},e.quantile=function(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],a=i-n;return a?r+a*(t[n]-r):r},e.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n<t.length;){for(var r=t[n].interval,a=t[n].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-i),e=r[o],i=a[o];r[0]===r[1]&&a[0]*a[1]!=1?t.splice(n,1):n++}return t;function s(t,e,i){return t.interval[i]<e.interval[i]||t.interval[i]===e.interval[i]&&(t.close[i]-e.close[i]==(i?-1:1)||!i&&s(t,e,1))}},e.isNumeric=function(t){return t-parseFloat(t)>=0}},39529:(t,e,i)=>{var n=(0,i(51177).extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,h=e.endAngle,u=e.clockwise,c=Math.cos(l),d=Math.sin(l),f=Math.cos(h),p=Math.sin(h);(u?h-l<2*Math.PI:l-h<2*Math.PI)&&(t.moveTo(c*r+i,d*r+n),t.arc(c*s+i,d*s+n,o,-Math.PI+l,l,!u)),t.arc(i,n,a,l,h,!u),t.moveTo(f*a+i,p*a+n),t.arc(f*s+i,p*s+n,o,h-2*Math.PI,h-Math.PI,!u),0!==r&&(t.arc(i,n,r,h,l,u),t.moveTo(c*r+i,p*r+n)),t.closePath()}});t.exports=n},41525:(t,e,i)=>{var n=i(33051),r=i(51177),a=i(60479),o=i(80423).calculateTextPosition,s=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),l=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),h=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=n-a+o+s,h=Math.asin(s/o),u=Math.cos(h)*o,c=Math.sin(h),d=Math.cos(h),f=.6*o,p=.7*o;t.moveTo(i-u,l+s),t.arc(i,l,o,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(i+u-c*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-u+c*f,l+s+d*f,i-u,l+s),t.closePath()}}),u=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),c={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:l,pin:h,arrow:u,triangle:s},d={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},f={};n.each(c,(function(t,e){f[e]=new t}));var p=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=o(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=f[n];r||(r=f[n="rect"]),d[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}});function g(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,i,n,o,s,l){var h,u=0===t.indexOf("empty");return u&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(h=0===t.indexOf("image://")?r.makeImage(t.slice(8),new a(e,i,n,o),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new a(e,i,n,o),l?"center":"cover"):new p({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=u,h.setColor=g,h.setColor(s),h}},270:(t,e)=>{var i="\0__throttleOriginMethod",n="\0__throttleRate",r="\0__throttleType";function a(t,e,i){var n,r,a,o,s,l=0,h=0,u=null;function c(){h=(new Date).getTime(),u=null,t.apply(a,o||[])}e=e||0;var d=function(){n=(new Date).getTime(),a=this,o=arguments;var t=s||e,d=s||i;s=null,r=n-(d?l:h)-t,clearTimeout(u),d?u=setTimeout(c,t):r>=0?c():u=setTimeout(c,-r),l=n};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(t){s=t},d}e.throttle=a,e.createOrUpdate=function(t,e,o,s){var l=t[e];if(l){var h=l[i]||l,u=l[r];if(l[n]!==o||u!==s){if(null==o||!s)return t[e]=h;(l=t[e]=a(h,o,"debounce"===s))[i]=h,l[r]=s,l[n]=o}return l}},e.clear=function(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])}},75797:(t,e,i)=>{var n=i(33051).each,r=i(8524),a=i(42151),o=i(34251),s=i(32234),l=i(51177),h=i(29449).createTask,u=i(95682),c=s.makeInner(),d=u();function f(){this.group=new r,this.uid=a.getUID("viewChart"),this.renderTask=h({plan:m,reset:y}),this.renderTask.context={view:this}}f.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){v(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){v(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var p=f.prototype;function g(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!l.isHighDownDispatcher(t)))for(var n=0,r=t.childCount();n<r;n++)g(t.childAt(n),e,i)}function v(t,e,i){var r=s.queryDataIndex(t,e),a=e&&null!=e.highlightKey?l.getHighlightDigit(e.highlightKey):null;null!=r?n(s.normalizeToArray(r),(function(e){g(t.getItemGraphicEl(e),i,a)})):t.eachItemGraphicEl((function(t){g(t,i,a)}))}function m(t){return d(t.model)}function y(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&c(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,i,n,r),_[l]}p.updateView=p.updateLayout=p.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(f,["dispose"]),o.enableClassManagement(f,{registerWhenExtend:!0}),f.markUpdateMethod=function(t,e){c(t).updateMethod=e};var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},x=f;t.exports=x},33166:(t,e,i)=>{var n=i(8524),r=i(42151),a=i(34251),o=function(){this.group=new n,this.uid=r.getUID("viewComponent")},s=o.prototype={constructor:o,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},72019:t=>{var e=function(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){return e().indexOfName(t)>=0},this.indexOfName=function(e){return t().indexOfName(e)},this.getItemVisual=function(e,i){return t().getItemVisual(e,i)}};t.exports=e},13825:(t,e,i)=>{var n=i(33051),r=i(40292),a=i(68540).retrieveRawValue;t.exports=function(t,e){var i=e.getModel("aria");if(i.get("show"))if(i.get("description"))t.setAttribute("aria-label",i.get("description"));else{var o=0;e.eachSeries((function(t,e){++o}),this);var s,l=i.get("data.maxCount")||10,h=i.get("series.maxCount")||10,u=Math.min(o,h);if(!(o<1)){var c=function(){var t=e.getModel("title").option;t&&t.length&&(t=t[0]);return t&&t.text}();s=c?f(p("general.withTitle"),{title:c}):p("general.withoutTitle");var d=[];s+=f(p(o>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:o}),e.eachSeries((function(t,e){if(e<u){var i,n=t.get("name"),s="series."+(o>1?"multiple":"single")+".";i=f(i=p(n?s+"withName":s+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(y=t.subType,r.series.typeNames[y]||"自定义图")});var h=t.getData();window.data=h,h.count()>l?i+=f(p("data.partialData"),{displayCnt:l}):i+=p("data.allData");for(var c=[],g=0;g<h.count();g++)if(g<l){var v=h.getName(g),m=a(h,g);c.push(f(p(v?"data.withName":"data.withoutName"),{name:v,value:m}))}i+=c.join(p("data.separator.middle"))+p("data.separator.end"),d.push(i)}var y})),s+=d.join(p("series.multiple.separator.middle"))+p("series.multiple.separator.end"),t.setAttribute("aria-label",s)}}function f(t,e){if("string"!=typeof t)return t;var i=t;return n.each(e,(function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),i}function p(t){var e=i.get(t);if(null==e){for(var n=t.split("."),a=r.aria,o=0;o<n.length;++o)a=a[n[o]];return a}return e}}},69274:(t,e,i)=>{var n=i(33051).createHashMap;t.exports=function(t){return{getTargetSeries:function(e){var i={},r=n();return e.eachSeriesByType(t,(function(t){t.__paletteScope=i,r.set(t.uid,t)})),r},reset:function(t,e){var i=t.getRawData(),n={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),i.each((function(e){var a,o=n[e],s=null!=o&&r.getItemVisual(o,"color",!0),l=null!=o&&r.getItemVisual(o,"borderColor",!0);if(s&&l||(a=i.getItemModel(e)),!s){var h=a.get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());null!=o&&r.setItemVisual(o,"color",h)}if(!l){var u=a.get("itemStyle.borderColor");null!=o&&r.setItemVisual(o,"borderColor",u)}}))}}}},7141:(t,e,i)=>{var n=i(31797),r=i(33051).isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),a=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(a),s=!r(o)||o instanceof n?null:o;o&&!s||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount())),i.setVisual("color",o);var l=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),h=t.get(l);if(i.setVisual("borderColor",h),!e.isSeriesFiltered(t)){s&&i.each((function(e){i.setItemVisual(e,"color",s(t.getDataParams(e)))}));return{dataEach:i.hasItemOption?function(t,e){var i=t.getItemModel(e),n=i.get(a,!0),r=i.get(l,!0);null!=n&&t.setItemVisual(e,"color",n),null!=r&&t.setItemVisual(e,"borderColor",r)}:null}}}};t.exports=a},34586:(t,e,i)=>{var n=i(33051).isFunction;t.exports=function(t,e,i){return{seriesType:t,performRawSeries:!0,reset:function(t,r,a){var o=t.getData(),s=t.get("symbol"),l=t.get("symbolSize"),h=t.get("symbolKeepAspect"),u=t.get("symbolRotate"),c=n(s),d=n(l),f=n(u),p=c||d||f,g=!c&&s?s:e,v=d?null:l;if(o.setVisual({legendSymbol:i||g,symbol:g,symbolSize:v,symbolKeepAspect:h,symbolRotate:u}),!r.isSeriesFiltered(t))return{dataEach:o.hasItemOption||p?function(e,i){if(p){var n=t.getRawValue(i),r=t.getDataParams(i);c&&e.setItemVisual(i,"symbol",s(n,r)),d&&e.setItemVisual(i,"symbolSize",l(n,r)),f&&e.setItemVisual(i,"symbolRotate",u(n,r))}if(e.hasItemOption){var a=e.getItemModel(i),o=a.getShallow("symbol",!0),h=a.getShallow("symbolSize",!0),g=a.getShallow("symbolRotate",!0),v=a.getShallow("symbolKeepAspect",!0);null!=o&&e.setItemVisual(i,"symbol",o),null!=h&&e.setItemVisual(i,"symbolSize",h),null!=g&&e.setItemVisual(i,"symbolRotate",g),null!=v&&e.setItemVisual(i,"symbolKeepAspect",v)}}:null}}}}},62705:(t,e,i)=>{var n=i(55639).Symbol;t.exports=n},44239:(t,e,i)=>{var n=i(62705),r=i(89607),a=i(2333),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?r(t):a(t)}},27561:(t,e,i)=>{var n=i(67990),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},31957:(t,e,i)=>{var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;t.exports=n},89607:(t,e,i)=>{var n=i(62705),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),i=t[s];try{t[s]=void 0;var n=!0}catch(t){}var r=o.call(t);return n&&(e?t[s]=i:delete t[s]),r}},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:(t,e,i)=>{var n=i(31957),r="object"==typeof self&&self&&self.Object===Object&&self,a=n||r||Function("return this")();t.exports=a},67990:t=>{var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},23279:(t,e,i)=>{var n=i(13218),r=i(7771),a=i(14841),o=Math.max,s=Math.min;t.exports=function(t,e,i){var l,h,u,c,d,f,p=0,g=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var i=l,n=h;return l=h=void 0,p=e,c=t.apply(n,i)}function _(t){return p=t,d=setTimeout(b,e),g?y(t):c}function x(t){var i=t-f;return void 0===f||i>=e||i<0||v&&t-p>=u}function b(){var t=r();if(x(t))return w(t);d=setTimeout(b,function(t){var i=e-(t-f);return v?s(i,u-(t-p)):i}(t))}function w(t){return d=void 0,m&&l?y(t):(l=h=void 0,c)}function S(){var t=r(),i=x(t);if(l=arguments,h=this,f=t,i){if(void 0===d)return _(f);if(v)return clearTimeout(d),d=setTimeout(b,e),y(f)}return void 0===d&&(d=setTimeout(b,e)),c}return e=a(e)||0,n(i)&&(g=!!i.leading,u=(v="maxWait"in i)?o(a(i.maxWait)||0,e):u,m="trailing"in i?!!i.trailing:m),S.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=h=d=void 0},S.flush=function(){return void 0===d?c:w(r())},S}},13218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},33448:(t,e,i)=>{var n=i(44239),r=i(37005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==n(t)}},7771:(t,e,i)=>{var n=i(55639);t.exports=function(){return n.Date.now()}},14841:(t,e,i)=>{var n=i(27561),r=i(13218),a=i(33448),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,h=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var i=s.test(t);return i||l.test(t)?h(t.slice(2),i?2:8):o.test(t)?NaN:+t}},55283:(t,e,i)=>{"use strict";i.d(e,{Z:()=>A});var n=i(70492),r=i.n(n),a=i(23279),o=i.n(a);let s=null;let l=null;function h(t,e={}){let i=document.createElement(t);return Object.keys(e).forEach((t=>{i[t]=e[t]})),i}function u(t,e,i){return(window.getComputedStyle(t,i||null)||{display:"none"})[e]}function c(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};let e=t;for(;e!==document;){if("none"===u(e,"display"))return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}let d=0,f=null;function p(t,e){if(t.__resize_mutation_handler__||(t.__resize_mutation_handler__=g.bind(t)),!t.__resize_listeners__)if(t.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:e,offsetHeight:i}=t,n=new ResizeObserver((()=>{(t.__resize_observer_triggered__||(t.__resize_observer_triggered__=!0,t.offsetWidth!==e||t.offsetHeight!==i))&&m(t)})),{detached:r,rendered:a}=c(t);t.__resize_observer_triggered__=!1===r&&!1===a,t.__resize_observer__=n,n.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){m(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(d||(f=function(t){var e=document.createElement("style");return e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(e),e}('.resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(t){let e=u(t,"position");e&&"static"!==e||(t.style.position="relative");t.__resize_old_position__=e,t.__resize_last__={};let i=h("div",{className:"resize-triggers"}),n=h("div",{className:"resize-expand-trigger"}),r=h("div"),a=h("div",{className:"resize-contract-trigger"});n.appendChild(r),i.appendChild(n),i.appendChild(a),t.appendChild(i),t.__resize_triggers__={triggers:i,expand:n,expandChild:r,contract:a},y(t),t.addEventListener("scroll",v,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}(t),t.__resize_rendered__=c(t).rendered,window.MutationObserver){let e=new MutationObserver(t.__resize_mutation_handler__);e.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=e}t.__resize_listeners__.push(e),d++}function g(){let{rendered:t,detached:e}=c(this);t!==this.__resize_rendered__&&(!e&&this.__resize_triggers__&&(y(this),this.addEventListener("scroll",v,!0)),this.__resize_rendered__=t,m(this))}function v(){var t,e;y(this),this.__resize_raf__&&(t=this.__resize_raf__,l||(l=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),l(t)),this.__resize_raf__=(e=()=>{let t=function(t){let{width:e,height:i}=t.__resize_last__,{offsetWidth:n,offsetHeight:r}=t;return n!==e||r!==i?{width:n,height:r}:null}(this);t&&(this.__resize_last__=t,m(this))},s||(s=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),s(e))}function m(t){t&&t.__resize_listeners__&&t.__resize_listeners__.forEach((e=>{e.call(t)}))}function y(t){let{expand:e,expandChild:i,contract:n}=t.__resize_triggers__,{scrollWidth:r,scrollHeight:a}=n,{offsetWidth:o,offsetHeight:s,scrollWidth:l,scrollHeight:h}=e;n.scrollLeft=r,n.scrollTop=a,i.style.width=o+1+"px",i.style.height=s+1+"px",e.scrollLeft=l,e.scrollTop=h}const _=["theme","initOptions","autoresize"],x=["manualUpdate","watchShallow"],b={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoresize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:()=>({lastArea:0}),watch:{group(t){this.chart.group=t}},methods:{mergeOptions(t,e,i){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,e,i):this.init(t)},appendData(t){this.delegateMethod("appendData",t)},resize(t){this.delegateMethod("resize",t)},dispatchAction(t){this.delegateMethod("dispatchAction",t)},convertToPixel(t,e){return this.delegateMethod("convertToPixel",t,e)},convertFromPixel(t,e){return this.delegateMethod("convertFromPixel",t,e)},containPixel(t,e){return this.delegateMethod("containPixel",t,e)},showLoading(t,e){this.delegateMethod("showLoading",t,e)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL(t){return this.delegateMethod("getConnectedDataURL",t)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(t,...e){return this.chart||this.init(),this.chart[t](...e)},delegateGet(t){return this.chart||this.init(),this.chart[t]()},getArea(){return this.$el.offsetWidth*this.$el.offsetHeight},init(t){if(this.chart)return;const e=r().init(this.$el,this.theme,this.initOptions);this.group&&(e.group=this.group),e.setOption(t||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach((t=>{const i=this.$listeners[t];0===t.indexOf("zr:")?e.getZr().on(t.slice(3),i):e.on(t,i)})),this.autoresize&&(this.lastArea=this.getArea(),this.__resizeHandler=o()((()=>{0===this.lastArea?(this.mergeOptions({},!0),this.resize(),this.mergeOptions(this.options||this.manualOptions||{},!0)):this.resize(),this.lastArea=this.getArea()}),100,{leading:!0}),p(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:()=>this.delegateGet("getWidth")},height:{configurable:!0,get:()=>this.delegateGet("getHeight")},isDisposed:{configurable:!0,get:()=>!!this.delegateGet("isDisposed")},computedOptions:{configurable:!0,get:()=>this.delegateGet("getOption")}}),this.chart=e},initOptionsWatcher(){this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",((t,e)=>{!this.chart&&t?this.init():this.chart.setOption(t,t!==e)}),{deep:!this.watchShallow}))},destroy(){this.autoresize&&function(t,e){if(t.detachEvent&&t.removeEventListener)return t.detachEvent("onresize",t.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);let i=t.__resize_listeners__;i&&(i.splice(i.indexOf(e),1),i.length||(t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",v),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null),!--d&&f&&f.parentNode.removeChild(f))}(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh(){this.chart&&(this.destroy(),this.init())}},created(){this.initOptionsWatcher(),_.forEach((t=>{this.$watch(t,(()=>{this.refresh()}),{deep:!0})})),x.forEach((t=>{this.$watch(t,(()=>{this.initOptionsWatcher(),this.refresh()}))}))},mounted(){this.options&&this.init()},activated(){this.autoresize&&this.chart&&this.chart.resize()},destroyed(){this.chart&&this.destroy()},connect(t){"string"!=typeof t&&(t=t.map((t=>t.chart))),r().connect(t)},disconnect(t){r().disConnect(t)},registerMap(t,e,i){r().registerMap(t,e,i)},registerTheme(t,e){r().registerTheme(t,e)},graphic:r().graphic},w=b;var S=i(93379),M=i.n(S),C=i(55442),T={insert:"head",singleton:!1};M()(C.Z,T);C.Z.locals;const A=(0,i(51900).Z)(w,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"echarts"})}),[],!1,null,null,null).exports},44361:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>d});var n=i(87757),r=i.n(n),a=i(20629),o=i(55283);i(94859),i(40451),i(46295),i(83062),i(78511);function s(t,e,i,n,r,a,o){try{var s=t[a](o),l=s.value}catch(t){return void i(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){u(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function u(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const c={components:{"v-chart":o.Z},metaInfo:{title:"Dashboard"},data:function(){return{sales:[],stock_alerts:[],report_today:{revenue:0,today_purchases:0,today_sales:0,return_sales:0,return_purchases:0},products:[],CurrentMonth:"",loading:!0,echartSales:{},echartProduct:{},echartCustomer:{},echartPayment:{}}},computed:h(h({},(0,a.Se)(["currentUser"])),{},{columns_sales:function(){return[{label:this.$t("Reference"),field:"Ref",tdClass:"gull-border-none text-left",thClass:"text-left",sortable:!1},{label:this.$t("Customer"),field:"client_name",tdClass:"gull-border-none text-left",thClass:"text-left",sortable:!1},{label:this.$t("Status"),field:"statut",html:!0,tdClass:"gull-border-none text-left",thClass:"text-left",sortable:!1},{label:this.$t("Total"),field:"GrandTotal",type:"decimal",tdClass:"gull-border-none text-left",thClass:"text-left",sortable:!1},{label:this.$t("Paid"),field:"paid_amount",type:"decimal",tdClass:"gull-border-none text-left",thClass:"text-left",sortable:!1},{label:this.$t("Due"),field:"due",type:"decimal",tdClass:"gull-border-none text-left",thClass:"text-left",sortable:!1},{label:this.$t("PaymentStatus"),field:"payment_status",html:!0,sortable:!1,tdClass:"text-left gull-border-none",thClass:"text-left"}]},columns_stock:function(){return[{label:this.$t("ProductCode"),field:"code",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("ProductName"),field:"name",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("warehouse"),field:"warehouse",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Quantity"),field:"quantity",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("AlertQuantity"),field:"stock_alert",tdClass:"text-left",thClass:"text-left",sortable:!1}]},columns_products:function(){return[{label:this.$t("ProductName"),field:"name",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Quantity"),field:"quantity",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Total"),field:"total",tdClass:"text-left",thClass:"text-left",sortable:!1}]}}),methods:{report_with_echart:function(){var t=this;axios.get("chart/report_with_echart").then((function(e){var i=e.data;t.report_today=e.data.report_dashboard.original.report,t.stock_alerts=e.data.report_dashboard.original.stock_alert,t.products=e.data.report_dashboard.original.products,t.sales=e.data.report_dashboard.original.last_sales;var n="#c2c6dc";t.echartCustomer={color:["#6D28D9","#8B5CF6","#A78BFA","#C4B5FD","#7C3AED"],tooltip:{show:!0,backgroundColor:"rgba(0, 0, 0, .8)"},formatter:function(t){return"".concat(t.name,": (").concat(t.data.value," sales) (").concat(t.percent,"%)")},series:[{name:"Top Customers",type:"pie",radius:"50%",center:"50%",data:i.customers.original,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t.echartPayment={tooltip:{trigger:"axis"},legend:{data:["Payment sent","Payment received"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:i.payments.original.days},yAxis:{type:"value"},series:[{name:"Payment sent",type:"line",data:i.payments.original.payment_sent},{name:"Payment received",type:"line",data:i.payments.original.payment_received}]},t.echartProduct={color:["#6D28D9","#8B5CF6","#A78BFA","#C4B5FD","#7C3AED"],tooltip:{show:!0,backgroundColor:"rgba(0, 0, 0, .8)"},formatter:function(t){return"".concat(t.name,": (").concat(t.percent,"%)")},series:[{name:"Top Selling Products",type:"pie",radius:"50%",center:"50%",data:i.product_report.original,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t.echartSales={legend:{borderRadius:0,orient:"horizontal",x:"right",data:["Sales","Purchases"]},grid:{left:"8px",right:"8px",bottom:"0",containLabel:!0},tooltip:{show:!0,backgroundColor:"rgba(0, 0, 0, .8)"},xAxis:[{type:"category",data:i.sales.original.days,axisTick:{alignWithLabel:!0},splitLine:{show:!1},axisLabel:{color:n,interval:0,rotate:30},axisLine:{show:!0,color:n,lineStyle:{color:n}}}],yAxis:[{type:"value",axisLabel:{color:n},axisLine:{show:!1,color:n,lineStyle:{color:n}},min:0,splitLine:{show:!0,interval:"auto"}}],series:[{name:"Sales",data:i.sales.original.data,label:{show:!1,color:"#8B5CF6"},type:"bar",color:"#A78BFA",smooth:!0,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowOffsetY:-2,shadowColor:"rgba(0, 0, 0, 0.3)"}}},{name:"Purchases",data:i.purchases.original.data,label:{show:!1,color:"#0168c1"},type:"bar",barGap:0,color:"#DDD6FE",smooth:!0,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowOffsetY:-2,shadowColor:"rgba(0, 0, 0, 0.3)"}}}]},t.loading=!1})).catch((function(t){}))},GetMonth:function(){var t=new Date;this.CurrentMonth=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()]},formatNumber:function(t,e){var i=("string"==typeof t?t:t.toString()).split(".");if(e<=0)return i[0];var n=i[1]||"";if(n.length>e)return"".concat(i[0],".").concat(n.substr(0,e));for(;n.length<e;)n+="0";return"".concat(i[0],".").concat(n)}},mounted:function(){var t,e=this;return(t=r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.report_with_echart();case 2:e.GetMonth();case 3:case"end":return t.stop()}}),t)})),function(){var e=this,i=arguments;return new Promise((function(n,r){var a=t.apply(e,i);function o(t){s(a,n,r,o,l,"next",t)}function l(t){s(a,n,r,o,l,"throw",t)}o(void 0)}))})()}};const d=(0,i(51900).Z)(c,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"main-content"},[i("b-row",[i("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[i("router-link",{attrs:{tag:"a",to:"/app/sales/list"}},[i("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[i("i",{staticClass:"i-Full-Cart"}),t._v(" "),i("div",{staticClass:"content"},[i("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("Sales")))]),t._v(" "),i("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.currentUser.currency)+" "+t._s(t.report_today.today_sales?t.report_today.today_sales:0))])])])],1)],1),t._v(" "),i("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[i("router-link",{attrs:{tag:"a",to:"/app/purchases/list"}},[i("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[i("i",{staticClass:"i-Add-Cart"}),t._v(" "),i("div",{staticClass:"content"},[i("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("Purchases")))]),t._v(" "),i("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.currentUser.currency)+" "+t._s(t.report_today.today_purchases?t.report_today.today_purchases:0))])])])],1)],1),t._v(" "),i("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[i("router-link",{attrs:{tag:"a",to:"/app/sale_return/list"}},[i("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[i("i",{staticClass:"i-Right-4"}),t._v(" "),i("div",{staticClass:"content"},[i("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("SalesReturn")))]),t._v(" "),i("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.currentUser.currency)+" "+t._s(t.report_today.return_sales?t.report_today.return_sales:0))])])])],1)],1),t._v(" "),i("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[i("router-link",{attrs:{tag:"a",to:"/app/purchase_return/list"}},[i("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[i("i",{staticClass:"i-Left-4"}),t._v(" "),i("div",{staticClass:"content"},[i("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("PurchasesReturn")))]),t._v(" "),i("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.currentUser.currency)+" "+t._s(t.report_today.return_purchases?t.report_today.return_purchases:0))])])])],1)],1)],1),t._v(" "),i("b-row",[i("b-col",{attrs:{lg:"8",md:"12",sm:"12"}},[i("b-card",{staticClass:"mb-30"},[i("h4",{staticClass:"card-title m-0"},[t._v(t._s(t.$t("This_Week_Sales_Purchases")))]),t._v(" "),i("div",{staticClass:"chart-wrapper"},[t.loading?t._m(0):t._e(),t._v(" "),t.loading?t._e():i("v-chart",{attrs:{options:t.echartSales,autoresize:!0}})],1)])],1),t._v(" "),i("b-col",{attrs:{col:"",lg:"4",md:"12",sm:"12"}},[i("b-card",{staticClass:"mb-30"},[i("h4",{staticClass:"card-title m-0"},[t._v(t._s(t.$t("Top_Selling_Products"))+" ("+t._s((new Date).getFullYear())+")")]),t._v(" "),i("div",{staticClass:"chart-wrapper"},[t.loading?t._m(1):t._e(),t._v(" "),t.loading?t._e():i("v-chart",{attrs:{options:t.echartProduct,autoresize:!0}})],1)])],1)],1),t._v(" "),i("b-row",[i("div",{staticClass:"col-md-8"},[i("div",{staticClass:"card mb-30"},[i("div",{staticClass:"card-body p-2"},[i("h5",{staticClass:"card-title border-bottom p-3 mb-2"},[t._v(t._s(t.$t("StockAlert")))]),t._v(" "),i("vue-good-table",{attrs:{columns:t.columns_stock,styleClass:"order-table vgt-table mb-3","row-style-class":"text-left",rows:t.stock_alerts},scopedSlots:t._u([{key:"table-row",fn:function(e){return["stock_alert"==e.column.field?i("div",[i("span",{staticClass:"badge badge-outline-danger"},[t._v(t._s(e.row.stock_alert))])]):t._e()]}}])})],1)])]),t._v(" "),i("div",{staticClass:"col-md-4"},[i("div",{staticClass:"card mb-30"},[i("div",{staticClass:"card-body p-3"},[i("h5",{staticClass:"card-title border-bottom p-3 mb-2"},[t._v(t._s(t.$t("Top_Selling_Products"))+" ("+t._s(t.CurrentMonth)+")")]),t._v(" "),i("vue-good-table",{attrs:{columns:t.columns_products,styleClass:"order-table vgt-table","row-style-class":"text-left",rows:t.products},scopedSlots:t._u([{key:"table-row",fn:function(e){return["quantity"==e.column.field?i("div",[i("span",[t._v(t._s(t.formatNumber(e.row.quantity,2))+" "+t._s(e.row.unit_product))])]):"total"==e.column.field?i("div",[i("span",[t._v(t._s(t.currentUser.currency)+" "+t._s(t.formatNumber(e.row.total,2)))])]):t._e()]}}])})],1)])])]),t._v(" "),i("b-row",[i("b-col",{attrs:{lg:"8",md:"12",sm:"12"}},[i("b-card",{staticClass:"mb-30"},[i("h4",{staticClass:"card-title m-0"},[t._v(t._s(t.$t("Payment_Sent_Received")))]),t._v(" "),i("div",{staticClass:"chart-wrapper"},[i("v-chart",{attrs:{options:t.echartPayment,autoresize:!0}})],1)])],1),t._v(" "),i("b-col",{attrs:{col:"",lg:"4",md:"12",sm:"12"}},[i("b-card",{staticClass:"mb-30"},[i("h4",{staticClass:"card-title m-0"},[t._v(t._s(t.$t("TopCustomers"))+" ("+t._s(t.CurrentMonth)+")")]),t._v(" "),i("div",{staticClass:"chart-wrapper"},[i("v-chart",{attrs:{options:t.echartCustomer,autoresize:!0}})],1)])],1)],1),t._v(" "),i("b-row",[i("div",{staticClass:"col-md-12"},[i("div",{staticClass:"card mb-30"},[i("div",{staticClass:"card-body p-0"},[i("h5",{staticClass:"card-title border-bottom p-3 mb-2"},[t._v(t._s(t.$t("Recent_Sales")))]),t._v(" "),t.loading?t._e():i("vue-good-table",{attrs:{columns:t.columns_sales,styleClass:"order-table vgt-table","row-style-class":"text-left",rows:t.sales},scopedSlots:t._u([{key:"table-row",fn:function(e){return["statut"==e.column.field?i("div",["completed"==e.row.statut?i("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("complete")))]):"pending"==e.row.statut?i("span",{staticClass:"badge badge-outline-info"},[t._v(t._s(t.$t("Pending")))]):i("span",{staticClass:"badge badge-outline-warning"},[t._v(t._s(t.$t("Ordered")))])]):"payment_status"==e.column.field?i("div",["paid"==e.row.payment_status?i("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("Paid")))]):"partial"==e.row.payment_status?i("span",{staticClass:"badge badge-outline-primary"},[t._v(t._s(t.$t("partial")))]):i("span",{staticClass:"badge badge-outline-warning"},[t._v(t._s(t.$t("Unpaid")))])]):t._e()]}}],null,!1,2617766521)})],1)])])])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"typo__p text-right"},[e("div",{staticClass:"spinner sm spinner-primary mt-3"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"typo__p text-right"},[e("div",{staticClass:"spinner sm spinner-primary mt-3"})])}],!1,null,null,null).exports},85823:(t,e,i)=>{var n=i(78038),r=i(41502),a=i(58023),o=i(7131),s=i(33051),l=function(t){a.call(this,t),r.call(this,t),o.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,o),s.mixin(l,a),s.mixin(l,r);var h=l;t.exports=h},48173:(t,e,i)=>{var n=i(33051),r=i(45280),a=i(17780),o=i(41502),s=i(61158),l=i(49399),h="silent";function u(){s.stop(this.event)}function c(){}c.prototype.dispose=function(){};var d=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],f=function(t,e,i,n){o.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new c,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,a.call(this),this.setHandlerProxy(i)};function p(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,i))return!1;r.silent&&(n=!0),r=r.parent}return!n||h}return!1}function g(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}f.prototype={constructor:f,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(n.each(d,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=g(this,e,i),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=n?{x:e,y:i}:this.findHover(e,i),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,i=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!i&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var r="on"+e,a=function(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:u}}(e,t,i);n&&(n[r]&&(a.cancelBubble=n[r].call(n,a)),n.trigger(e,a),n=n.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r={x:t,y:e},a=n.length-1;a>=0;a--){var o;if(n[a]!==i&&!n[a].ignore&&(o=p(n[a],t,e))&&(!r.topTarget&&(r.topTarget=n[a]),o!==h)){r.target=n[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r,this.dispatchToElement({target:n.target},r,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){f.prototype[t]=function(e){var i,n,a=e.zrX,o=e.zrY,s=g(this,a,o);if("mouseup"===t&&s||(n=(i=this.findHover(a,o)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),n.mixin(f,o),n.mixin(f,a);var v=f;t.exports=v},39559:(t,e,i)=>{var n=i(33051),r=i(4990).devicePixelRatio,a=i(40342),o=i(31870);function s(){return!1}function l(t,e,i){var r=n.createCanvas(),a=e.getWidth(),o=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*i,r.height=o*i,r}var h=function(t,e,i){var a;i=i||r,"string"==typeof t?a=l(t,e,i):n.isObject(t)&&(t=(a=t).id),this.id=t,this.dom=a;var o=a.style;o&&(a.onselectstart=s,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o.padding=0,o.margin=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};h.prototype={constructor:h,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=l("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,a&&(a.width=t*i,a.height=e*i,1!==i&&this.ctxBack.scale(i,i))},clear:function(t,e){var i,n=this.dom,r=this.ctx,s=n.width,l=n.height,h=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,c=this.dpr;(h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/c,l/c)),r.clearRect(0,0,s,l),e&&"transparent"!==e)&&(e.colorStops?(i=e.__canvasGradient||a.getGradient(r,e,{x:0,y:0,width:s,height:l}),e.__canvasGradient=i):e.image&&(i=o.prototype.getCanvasPattern.call(e,r)),r.save(),r.fillStyle=i||e,r.fillRect(0,0,s,l),r.restore());if(h){var d=this.domBack;r.save(),r.globalAlpha=u,r.drawImage(d,0,0,s,l),r.restore()}}};var u=h;t.exports=u},19847:(t,e,i)=>{var n=i(4990).devicePixelRatio,r=i(33051),a=i(48612),o=i(60479),s=i(19455),l=i(39559),h=i(22795),u=i(44535),c=i(66387),d=1e5,f=314159,p=.01;function g(t){return parseInt(t,10)}var v=new o(0,0,0,0),m=new o(0,0,0,0);var y=function(t,e,i){this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=r.extend({},i||{}),this.dpr=i.devicePixelRatio||n,this._singleCanvas=a,this.root=t;var o=t.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var s=this._zlevelList=[],h=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,a){var u=t.width,c=t.height;null!=i.width&&(u=i.width),null!=i.height&&(c=i.height),this.dpr=i.devicePixelRatio||1,t.width=u*this.dpr,t.height=c*this.dpr,this._width=u,this._height=c;var d=new l(t,this,this.dpr);d.__builtin__=!0,d.initContext(),h[314159]=d,d.zlevel=f,s.push(f),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=function(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}(this._width,this._height);t.appendChild(p)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;n<i.length;n++){var r=i[n],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===n?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return i.__from=t,t.__hoverMir=i,e&&i.setStyle(e),this._hoverElements.push(i),i}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=r.indexOf(i,e);n>=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i<e.length;i++){var n=e[i].__from;n&&(n.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){s(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(d));var n={};i.ctx.save();for(var r=0;r<e;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t.splice(r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(d)},_paintList:function(t,e,i){if(this._redrawId===i){e=e||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var r=this;h((function(){r._paintList(t,e,i)}))}}},_compositeManually:function(){var t=this.getLayer(f).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)}))},_doPaintList:function(t,e){for(var i=[],n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];(l=this._layers[a]).__builtin__&&l!==this._hoverlayer&&(l.__dirty||e)&&i.push(l)}for(var o=!0,s=0;s<i.length;s++){var l,h=(l=i[s]).ctx,u={};h.save();var d=e?l.__startIndex:l.__drawIndex,f=!e&&l.incremental&&Date.now,p=f&&Date.now(),g=l.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,g);else if(d===l.__startIndex){var v=t[d];v.incremental&&v.notClear&&!e||l.clear(!1,g)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=l.__startIndex);for(var m=d;m<l.__endIndex;m++){var y=t[m];if(this._doPaintEl(y,l,e,u),y.__dirty=y.__dirtyText=!1,f)if(Date.now()-p>15)break}l.__drawIndex=m,l.__drawIndex<l.__endIndex&&(o=!1),u.prevElClipPaths&&h.restore(),h.restore()}return c.wxa&&r.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),o},_doPaintEl:function(t,e,i,n){var r=e.ctx,a=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!a||a[0]||a[3])&&(!t.culling||!function(t,e,i){return v.copy(t.getBoundingRect()),t.transform&&v.applyTransform(t.transform),m.width=e,m.height=i,!v.intersect(m)}(t,this._width,this._height))){var o=t.__clipPaths,s=n.prevElClipPaths;s&&!function(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}(o,s)||(s&&(r.restore(),n.prevElClipPaths=null,n.prevEl=null),o&&(r.save(),function(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}(o,r),n.prevElClipPaths=o)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=f);var i=this._layers[t];return i||((i=new l("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?r.merge(i,this._layerConfig[t],!0):this._layerConfig[t-p]&&r.merge(i,this._layerConfig[t-p],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=null,s=-1,l=this._domRoot;if(i[t])a("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>n[0]){for(s=0;s<r-1&&!(n[s]<t&&n[s+1]>t);s++);o=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(o){var h=o.dom;h.nextSibling?l.insertBefore(e.dom,h.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else a("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r.length;n++)i=r[n],t.call(e,this._layers[i],i)},eachBuiltinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a.length;r++)n=a[r],(i=this._layers[n]).__builtin__&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a.length;r++)n=a[r],(i=this._layers[n]).__builtin__||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){if((s=t[i]).zlevel!==t[i-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var n,r=null,o=0;for(i=0;i<t.length;i++){var s,l,h=(s=t[i]).zlevel;n!==h&&(n=h,o=0),s.incremental?((l=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,o=1):l=this.getLayer(h+(o>0?p:0),this._needsManuallyCompositing),l.__builtin__||a("ZLevel "+h+" has been used by unkown layer "+l.id),l!==r&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,e(i),r=l),s.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?r.merge(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+p){var o=this._layers[a];r.merge(o,i[t],!0)}}}},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(r.indexOf(i,t),1))},resize:function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||e!==this._height){for(var a in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);r.each(this._progressiveLayers,(function(i){i.resize(t,e)})),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(f).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new l("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height,r=e.ctx;this.eachLayer((function(t){t.__builtin__?r.drawImage(t.dom,0,0,i,n):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var h=o[s];this._doPaintEl(h,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||g(s[i])||g(o.style[i]))-(g(s[r])||0)-(g(s[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),a=t.style,o=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,h=a.hasStroke()?a.lineWidth:0,c=Math.max(h/2,-s+o),d=Math.max(h/2,s+o),f=Math.max(h/2,-l+o),p=Math.max(h/2,l+o),g=r.width+c+d,v=r.height+f+p;i.width=g*e,i.height=v*e,n.scale(e,e),n.clearRect(0,0,g,v),n.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[c-r.x,f-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(n);var y=new u({style:{x:0,y:0,image:i}});return null!=m.position&&(y.position=t.position=m.position),null!=m.rotation&&(y.rotation=t.rotation=m.rotation),null!=m.scale&&(y.scale=t.scale=m.scale),y}};var _=y;t.exports=_},8822:(t,e,i)=>{var n=i(33051),r=i(66387),a=i(8524),o=i(19455);function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,r.canvasSupported&&o(i,s)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];for(var r=n,a=t;r;)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.clipPath}if(t.isGroup){for(var o=t._children,s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof a&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var i=this._roots[e];i instanceof a&&i.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array){e=0;for(var r=t.length;e<r;e++)this.delRoot(t[e])}else{var o=n.indexOf(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var h=l;t.exports=h},76069:(t,e,i)=>{var n=i(33051),r=i(61158).Dispatcher,a=i(22795),o=i(64383),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=n.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i.length,r=[],a=[],o=0;o<n;o++){var s=i[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(o=0;o<n;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r.length;for(o=0;o<n;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;this._running=!0,a((function e(){t._running&&(a(e),!t._paused&&t._update())}))},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){var i=new o(t,(e=e||{}).loop,e.getter,e.setter);return this.addAnimator(i),i}},n.mixin(s,r);var l=s;t.exports=l},64383:(t,e,i)=>{var n=i(8470),r=i(21092),a=i(33051).isArrayLike,o=Array.prototype.slice;function s(t,e){return t[e]}function l(t,e,i){t[e]=i}function h(t,e,i){return(e-t)*i+t}function u(t,e,i){return i>.5?e:t}function c(t,e,i,n,r){var a=t.length;if(1===r)for(var o=0;o<a;o++)n[o]=h(t[o],e[o],i);else{var s=a&&t[0].length;for(o=0;o<a;o++)for(var l=0;l<s;l++)n[o][l]=h(t[o][l],e[o][l],i)}}function d(t,e,i){var n=t.length,r=e.length;if(n!==r)if(n>r)t.length=r;else for(var a=n;a<r;a++)t.push(1===i?e[a]:o.call(e[a]));var s=t[0]&&t[0].length;for(a=0;a<t.length;a++)if(1===i)isNaN(t[a])&&(t[a]=e[a]);else for(var l=0;l<s;l++)isNaN(t[a][l])&&(t[a][l]=e[a][l])}function f(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var r=0;r<n;r++)if(t[r]!==e[r])return!1}else{var a=t[0].length;for(r=0;r<n;r++)for(var o=0;o<a;o++)if(t[r][o]!==e[r][o])return!1}return!0}function p(t,e,i,n,r,a,o,s,l){var h=t.length;if(1===l)for(var u=0;u<h;u++)s[u]=g(t[u],e[u],i[u],n[u],r,a,o);else{var c=t[0].length;for(u=0;u<h;u++)for(var d=0;d<c;d++)s[u][d]=g(t[u][d],e[u][d],i[u][d],n[u][d],r,a,o)}}function g(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function v(t){if(a(t)){var e=t.length;if(a(t[0])){for(var i=[],n=0;n<e;n++)i.push(o.call(t[n]));return i}return o.call(t)}return t}function m(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function y(t,e,i,o,s,l){var v=t._getter,y=t._setter,_="spline"===e,x=o.length;if(x){var b,w=o[0].value,S=a(w),M=!1,C=!1,T=S?function(t){var e=t[t.length-1].value;return a(e&&e[0])?2:1}(o):0;o.sort((function(t,e){return t.time-e.time})),b=o[x-1].time;for(var A=[],I=[],D=o[0].value,k=!0,P=0;P<x;P++){A.push(o[P].time/b);var O=o[P].value;if(S&&f(O,D,T)||!S&&O===D||(k=!1),D=O,"string"==typeof O){var L=r.parse(O);L?(O=L,M=!0):C=!0}I.push(O)}if(l||!k){var E=I[x-1];for(P=0;P<x-1;P++)S?d(I[P],E,T):!isNaN(I[P])||isNaN(E)||C||M||(I[P]=E);S&&d(v(t._target,s),E,T);var R,z,B,N,F,V=0,H=0;if(M)var W=[0,0,0,0];var G=new n({target:t._target,life:b,loop:t._loop,delay:t._delay,onframe:function(t,e){var i;if(e<0)i=0;else if(e<H){for(i=Math.min(V+1,x-1);i>=0&&!(A[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=V;i<x&&!(A[i]>e);i++);i=Math.min(i-1,x-2)}V=i,H=e;var n=A[i+1]-A[i];if(0!==n)if(R=(e-A[i])/n,_)if(B=I[i],z=I[0===i?i:i-1],N=I[i>x-2?x-1:i+1],F=I[i>x-3?x-1:i+2],S)p(z,B,N,F,R,R*R,R*R*R,v(t,s),T);else{if(M)r=p(z,B,N,F,R,R*R,R*R*R,W,1),r=m(W);else{if(C)return u(B,N,R);r=g(z,B,N,F,R,R*R,R*R*R)}y(t,s,r)}else if(S)c(I[i],I[i+1],R,v(t,s),T);else{var r;if(M)c(I[i],I[i+1],R,W,1),r=m(W);else{if(C)return u(I[i],I[i+1],R);r=h(I[i],I[i+1],R)}y(t,s,r)}},ondestroy:i});return e&&"spline"!==e&&(G.easing=e),G}}}var _=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||s,this._setter=n||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:v(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,i=0;i<e;i++)t[i].call(this)},start:function(t,e){var i,n=this,r=0,a=function(){--r||n._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=y(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(t,e){l(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var x=_;t.exports=x},8470:(t,e,i)=>{var n=i(30690);function r(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var r=this.easing,a="string"==typeof r?n[r]:r,o="function"==typeof a?a(i):i;return this.fire("frame",o),1===i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var a=r;t.exports=a},30690:t=>{var e={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-e.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*e.bounceIn(2*t):.5*e.bounceOut(2*t-1)+.5}},i=e;t.exports=i},22795:t=>{var e="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=e},4990:(t,e)=>{var i=1;"undefined"!=typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=i;e.debugMode=0,e.devicePixelRatio=n},92334:(t,e,i)=>{var n=i(3266).normalizeRadian,r=2*Math.PI;e.containStroke=function(t,e,i,a,o,s,l,h,u){if(0===l)return!1;var c=l;h-=t,u-=e;var d=Math.sqrt(h*h+u*u);if(d-c>i||d+c<i)return!1;if(Math.abs(a-o)%r<1e-4)return!0;if(s){var f=a;a=n(o),o=n(f)}else a=n(a),o=n(o);a>o&&(o+=r);var p=Math.atan2(u,h);return p<0&&(p+=r),p>=a&&p<=o||p+r>=a&&p+r<=o}},71972:(t,e,i)=>{var n=i(18554);e.containStroke=function(t,e,i,r,a,o,s,l,h,u,c){if(0===h)return!1;var d=h;return!(c>e+d&&c>r+d&&c>o+d&&c>l+d||c<e-d&&c<r-d&&c<o-d&&c<l-d||u>t+d&&u>i+d&&u>a+d&&u>s+d||u<t-d&&u<i-d&&u<a-d&&u<s-d)&&n.cubicProjectPoint(t,e,i,r,a,o,s,l,u,c,null)<=d/2}},33640:(t,e)=>{e.containStroke=function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>i+s||a<t-s&&a<i-s)return!1;if(t===i)return Math.abs(a-t)<=s/2;var h=(l=(e-n)/(t-i))*a-o+(t*n-i*e)/(t-i);return h*h/(l*l+1)<=s/2*s/2}},85365:(t,e,i)=>{var n=i(14014),r=i(33640),a=i(71972),o=i(25674),s=i(92334),l=i(3266).normalizeRadian,h=i(18554),u=i(47637),c=n.CMD,d=2*Math.PI;var f=[-1,-1,-1],p=[-1,-1];function g(t,e,i,n,r,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var c,d=h.cubicRootAt(e,n,a,s,u,f);if(0===d)return 0;for(var g,v,m=0,y=-1,_=0;_<d;_++){var x=f[_],b=0===x||1===x?.5:1;h.cubicAt(t,i,r,o,x)<l||(y<0&&(y=h.cubicExtrema(e,n,a,s,p),p[1]<p[0]&&y>1&&(c=void 0,c=p[0],p[0]=p[1],p[1]=c),g=h.cubicAt(e,n,a,s,p[0]),y>1&&(v=h.cubicAt(e,n,a,s,p[1]))),2===y?x<p[0]?m+=g<e?b:-b:x<p[1]?m+=v<g?b:-b:m+=s<v?b:-b:x<p[0]?m+=g<e?b:-b:m+=s<g?b:-b)}return m}function v(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=h.quadraticRootAt(e,n,a,s,f);if(0===l)return 0;var u=h.quadraticExtremum(e,n,a);if(u>=0&&u<=1){for(var c=0,d=h.quadraticAt(e,n,a,u),p=0;p<l;p++){var g=0===f[p]||1===f[p]?.5:1;h.quadraticAt(t,i,r,f[p])<o||(f[p]<u?c+=d<e?g:-g:c+=a<d?g:-g)}return c}g=0===f[0]||1===f[0]?.5:1;return h.quadraticAt(t,i,r,f[0])<o?0:a<e?g:-g}function m(t,e,i,n,r,a,o,s){if((s-=e)>i||s<-i)return 0;var h=Math.sqrt(i*i-s*s);f[0]=-h,f[1]=h;var u=Math.abs(n-r);if(u<1e-4)return 0;if(u%d<1e-4){n=0,r=d;var c=a?1:-1;return o>=f[0]+t&&o<=f[1]+t?c:0}if(a){h=n;n=l(r),r=l(h)}else n=l(n),r=l(r);n>r&&(r+=d);for(var p=0,g=0;g<2;g++){var v=f[g];if(v+t>o){var m=Math.atan2(s,v);c=a?1:-1;m<0&&(m=d+m),(m>=n&&m<=r||m+d>=n&&m+d<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),p+=c)}}return p}function y(t,e,i,n,l){for(var h,d,f=0,p=0,y=0,_=0,x=0,b=0;b<t.length;){var w=t[b++];switch(w===c.M&&b>1&&(i||(f+=u(p,y,_,x,n,l))),1===b&&(_=p=t[b],x=y=t[b+1]),w){case c.M:p=_=t[b++],y=x=t[b++];break;case c.L:if(i){if(r.containStroke(p,y,t[b],t[b+1],e,n,l))return!0}else f+=u(p,y,t[b],t[b+1],n,l)||0;p=t[b++],y=t[b++];break;case c.C:if(i){if(a.containStroke(p,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],e,n,l))return!0}else f+=g(p,y,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],n,l)||0;p=t[b++],y=t[b++];break;case c.Q:if(i){if(o.containStroke(p,y,t[b++],t[b++],t[b],t[b+1],e,n,l))return!0}else f+=v(p,y,t[b++],t[b++],t[b],t[b+1],n,l)||0;p=t[b++],y=t[b++];break;case c.A:var S=t[b++],M=t[b++],C=t[b++],T=t[b++],A=t[b++],I=t[b++];b+=1;var D=1-t[b++],k=Math.cos(A)*C+S,P=Math.sin(A)*T+M;b>1?f+=u(p,y,k,P,n,l):(_=k,x=P);var O=(n-S)*T/C+S;if(i){if(s.containStroke(S,M,T,A,A+I,D,e,O,l))return!0}else f+=m(S,M,T,A,A+I,D,O,l);p=Math.cos(A+I)*C+S,y=Math.sin(A+I)*T+M;break;case c.R:_=p=t[b++],x=y=t[b++];k=_+t[b++],P=x+t[b++];if(i){if(r.containStroke(_,x,k,x,e,n,l)||r.containStroke(k,x,k,P,e,n,l)||r.containStroke(k,P,_,P,e,n,l)||r.containStroke(_,P,_,x,e,n,l))return!0}else f+=u(k,x,k,P,n,l),f+=u(_,P,_,x,n,l);break;case c.Z:if(i){if(r.containStroke(p,y,_,x,e,n,l))return!0}else f+=u(p,y,_,x,n,l);p=_,y=x}}return i||(h=y,d=x,Math.abs(h-d)<1e-4)||(f+=u(p,y,_,x,n,l)||0),0!==f}e.contain=function(t,e,i){return y(t,0,!1,e,i)},e.containStroke=function(t,e,i,n){return y(t,e,!0,i,n)}},40765:(t,e,i)=>{var n=i(47637);function r(t,e){return Math.abs(t-e)<1e-8}e.contain=function(t,e,i){var a=0,o=t[0];if(!o)return!1;for(var s=1;s<t.length;s++){var l=t[s];a+=n(o[0],o[1],l[0],l[1],e,i),o=l}var h=t[0];return r(o[0],h[0])&&r(o[1],h[1])||(a+=n(o[0],o[1],h[0],h[1],e,i)),0!==a}},25674:(t,e,i)=>{var n=i(18554).quadraticProjectPoint;e.containStroke=function(t,e,i,r,a,o,s,l,h){if(0===s)return!1;var u=s;return!(h>e+u&&h>r+u&&h>o+u||h<e-u&&h<r-u&&h<o-u||l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u)&&n(t,e,i,r,a,o,l,h,null)<=u/2}},80423:(t,e,i)=>{var n=i(60479),r=i(8007),a=i(33051),o=a.getContext,s=a.extend,l=a.retrieve2,h=a.retrieve3,u=a.trim,c={},d=0,f=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,p="12px sans-serif",g={};function v(t,e){var i=t+":"+(e=e||p);if(c[i])return c[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n.length;a<o;a++)r=Math.max(C(n[a],e).width,r);return d>5e3&&(d=0,c={}),d++,c[i]=r,r}function m(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function y(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function _(t,e,i){var n=e.textPosition,r=e.textDistance,a=i.x,o=i.y;r=r||0;var s=i.height,l=i.width,h=s/2,u="left",c="top";switch(n){case"left":a-=r,o+=h,u="right",c="middle";break;case"right":a+=r+l,o+=h,c="middle";break;case"top":a+=l/2,o-=r,u="center",c="bottom";break;case"bottom":a+=l/2,o+=s+r,u="center";break;case"inside":a+=l/2,o+=h,u="center",c="middle";break;case"insideLeft":a+=r,o+=h,c="middle";break;case"insideRight":a+=l-r,o+=h,u="right",c="middle";break;case"insideTop":a+=l/2,o+=r,u="center";break;case"insideBottom":a+=l/2,o+=s-r,u="center",c="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,u="right";break;case"insideBottomLeft":a+=r,o+=s-r,c="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,u="right",c="bottom"}return(t=t||{}).x=a,t.y=o,t.textAlign=u,t.textVerticalAlign=c,t}function x(t,e,i,n,r){if(!e)return"";var a=(t+"").split("\n");r=b(e,i,n,r);for(var o=0,s=a.length;o<s;o++)a[o]=w(a[o],r);return a.join("\n")}function b(t,e,i,n){(n=s({},n)).font=e;i=l(i,"...");n.maxIterations=l(n.maxIterations,2);var r=n.minChar=l(n.minChar,0);n.cnCharWidth=v("国",e);var a=n.ascCharWidth=v("a",e);n.placeholder=l(n.placeholder,"");for(var o=t=Math.max(0,t-1),h=0;h<r&&o>=a;h++)o-=a;var u=v(i,e);return u>o&&(i="",u=0),o=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=o,n.containerWidth=t,n}function w(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var a=v(t,n);if(a<=i)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?S(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;a=v(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function S(t,e,i,n){for(var r=0,a=0,o=t.length;a<o&&r<e;a++){var s=t.charCodeAt(a);r+=0<=s&&s<=127?i:n}return a}function M(t){return v("国",t)}function C(t,e){return g.measureText(t,e)}function T(t,e,i,n,r){null!=t&&(t+="");var a=l(n,M(e)),o=t?t.split("\n"):[],s=o.length*a,h=s,u=!0;if(i&&(h+=i[0]+i[2]),t&&r){u=!1;var c=r.outerHeight,d=r.outerWidth;if(null!=c&&h>c)t="",o=[];else if(null!=d)for(var f=b(d-(i?i[1]+i[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=o.length;p<g;p++)o[p]=w(o[p],f)}return{lines:o,height:s,outerHeight:h,lineHeight:a,canCacheByTextString:u}}function A(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,a=f.lastIndex=0;null!=(n=f.exec(t));){var o=n.index;o>a&&I(i,t.substring(a,o)),I(i,n[2],n[1]),a=f.lastIndex}a<t.length&&I(i,t.substring(a,t.length));var s=i.lines,u=0,c=0,d=[],p=e.textPadding,g=e.truncate,m=g&&g.outerWidth,y=g&&g.outerHeight;p&&(null!=m&&(m-=p[1]+p[3]),null!=y&&(y-=p[0]+p[2]));for(var _=0;_<s.length;_++){for(var b=s[_],w=0,S=0,C=0;C<b.tokens.length;C++){var T=(B=b.tokens[C]).styleName&&e.rich[B.styleName]||{},A=B.textPadding=T.textPadding,D=B.font=T.font||e.font,k=B.textHeight=l(T.textHeight,M(D));if(A&&(k+=A[0]+A[2]),B.height=k,B.lineHeight=h(T.textLineHeight,e.textLineHeight,k),B.textAlign=T&&T.textAlign||e.textAlign,B.textVerticalAlign=T&&T.textVerticalAlign||"middle",null!=y&&u+B.lineHeight>y)return{lines:[],width:0,height:0};B.textWidth=v(B.text,D);var P=T.textWidth,O=null==P||"auto"===P;if("string"==typeof P&&"%"===P.charAt(P.length-1))B.percentWidth=P,d.push(B),P=0;else{if(O){P=B.textWidth;var L=T.textBackgroundColor,E=L&&L.image;E&&(E=r.findExistImage(E),r.isImageReady(E)&&(P=Math.max(P,E.width*k/E.height)))}var R=A?A[1]+A[3]:0;P+=R;var z=null!=m?m-S:null;null!=z&&z<P&&(!O||z<R?(B.text="",B.textWidth=P=0):(B.text=x(B.text,z-R,D,g.ellipsis,{minChar:g.minChar}),B.textWidth=v(B.text,D),P=B.textWidth+R))}S+=B.width=P,T&&(w=Math.max(w,B.lineHeight))}b.width=S,b.lineHeight=w,u+=w,c=Math.max(c,S)}i.outerWidth=i.width=l(e.textWidth,c),i.outerHeight=i.height=l(e.textHeight,u),p&&(i.outerWidth+=p[1]+p[3],i.outerHeight+=p[0]+p[2]);for(_=0;_<d.length;_++){var B,N=(B=d[_]).percentWidth;B.width=parseInt(N,10)/100*c}return i}function I(t,e,i){for(var n=""===e,r=e.split("\n"),a=t.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:i,text:s,isLineHolder:!s&&!n};if(o)a.push({tokens:[l]});else{var h=(a[a.length-1]||(a[0]={tokens:[]})).tokens,u=h.length;1===u&&h[0].isLineHolder?h[0]=l:(s||!u||n)&&h.push(l)}}}g.measureText=function(t,e){var i=o();return i.font=e||p,i.measureText(t)},e.DEFAULT_FONT=p,e.$override=function(t,e){g[t]=e},e.getWidth=v,e.getBoundingRect=function(t,e,i,r,a,o,s,l){return s?function(t,e,i,r,a,o,s,l){var h=A(t,{rich:s,truncate:l,font:e,textAlign:i,textPadding:a,textLineHeight:o}),u=h.outerWidth,c=h.outerHeight,d=m(0,u,i),f=y(0,c,r);return new n(d,f,u,c)}(t,e,i,r,a,o,s,l):function(t,e,i,r,a,o,s){var l=T(t,e,a,o,s),h=v(t,e);a&&(h+=a[1]+a[3]);var u=l.outerHeight,c=m(0,h,i),d=y(0,u,r),f=new n(c,d,h,u);return f.lineHeight=l.lineHeight,f}(t,e,i,r,a,o,l)},e.adjustTextX=m,e.adjustTextY=y,e.calculateTextPosition=_,e.adjustTextPositionOnRect=function(t,e,i){return _({},{textPosition:t,textDistance:i},e)},e.truncateText=x,e.getLineHeight=M,e.measureText=C,e.parsePlainText=T,e.parseRichText=A,e.makeFont=function(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&u(e)||t.textFont||t.font}},3266:(t,e)=>{var i=2*Math.PI;e.normalizeRadian=function(t){return(t%=i)<0&&(t+=i),t}},47637:t=>{t.exports=function(t,e,i,n,r,a){if(a>e&&a>n||a<e&&a<n)return 0;if(n===e)return 0;var o=n<e?1:-1,s=(a-e)/(n-e);1!==s&&0!==s||(o=n<e?.5:-.5);var l=s*(i-t)+t;return l===r?1/0:l>r?o:0}},8524:(t,e,i)=>{var n=i(33051),r=i(85823),a=i(60479),o=function(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,r=this._children,a=n.indexOf(r,t);return a<0||(r.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i.length;e++)t=i[e],n&&(n.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(n)),t.parent=null;return i.length=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.addToStorage(i),i instanceof o&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.delFromStorage(i),i instanceof o&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new a(0,0,0,0),n=t||this._children,r=[],o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),h=s.getLocalTransform(r);h?(i.copy(l),i.applyTransform(h),(e=e||i.clone()).union(i)):(e=e||l.clone()).union(l)}}return e||i}},n.inherits(o,r);var s=o;t.exports=s},60479:(t,e,i)=>{var n,r,a,o,s=i(45280),l=i(32892),h=s.applyTransform,u=Math.min,c=Math.max;function d(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}d.prototype={constructor:d,union:function(t){var e=u(t.x,this.x),i=u(t.y,this.y);this.width=c(t.x+t.width,this.x+this.width)-e,this.height=c(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:(n=[],r=[],a=[],o=[],function(t){if(t){n[0]=a[0]=this.x,n[1]=o[1]=this.y,r[0]=o[0]=this.x+this.width,r[1]=a[1]=this.y+this.height,h(n,n,t),h(r,r,t),h(a,a,t),h(o,o,t),this.x=u(n[0],r[0],a[0],o[0]),this.y=u(n[1],r[1],a[1],o[1]);var e=c(n[0],r[0],a[0],o[0]),i=c(n[1],r[1],a[1],o[1]);this.width=e-this.x,this.height=i-this.y}}),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=l.create();return l.translate(r,r,[-e.x,-e.y]),l.scale(r,r,[i,n]),l.translate(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof d||(t=d.create(t));var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,l=t.y,h=t.y+t.height;return!(n<o||s<i||a<l||h<r)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new d(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},d.create=function(t){return new d(t.x,t.y,t.width,t.height)};var f=d;t.exports=f},49399:(t,e,i)=>{var n=i(61158),r=function(){this._track=[]};function a(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}r.prototype={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r.length;o<s;o++){var l=r[o],h=n.clientToLocal(i,l,{});a.points.push([h.zrX,h.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in o)if(o.hasOwnProperty(e)){var i=o[e](this._track,t);if(i)return i}}};var o={pinch:function(t,e){var i=t.length;if(i){var n,r=(t[i-1]||{}).points,o=(t[i-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var s=a(r)/a(o);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((n=r)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},s=r;t.exports=s},92528:t=>{var e=function(){this.head=null,this.tail=null,this._len=0},i=e.prototype;i.insert=function(t){var e=new n(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var n=function(t){this.value=t,this.next,this.prev},r=function(t){this._list=new e,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},a=r.prototype;a.put=function(t,e){var i=this._list,r=this._map,a=null;if(null==r[t]){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new n(e),s.key=t,i.insertEntry(s),r[t]=s}return a},a.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},a.clear=function(){this._list.clear(),this._map={}};var o=r;t.exports=o},14014:(t,e,i)=>{var n=i(18554),r=i(45280),a=i(3726),o=i(60479),s=i(4990).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},h=[],u=[],c=[],d=[],f=Math.min,p=Math.max,g=Math.cos,v=Math.sin,m=Math.sqrt,y=Math.abs,_="undefined"!=typeof Float32Array,x=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};x.prototype={constructor:x,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,i){i=i||0,this._ux=y(i/s/t)||0,this._uy=y(i/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(l.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(l.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(l.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=g(r)*i+t,this._yi=v(r)*i+e,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(l.R,t,e,i,n),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!_||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(r=0;r<e;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[n++]=a[o];this._len=n},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var i=0;i<arguments.length;i++)e[this._len++]=arguments[i];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,h=this._yi,u=t-l,c=e-h,d=m(u*u+c*c),g=l,v=h,y=o.length;for(a<0&&(a=r+a),g-=(a%=r)*(u/=d),v-=a*(c/=d);u>0&&g<=t||u<0&&g>=t||0===u&&(c>0&&v<=e||c<0&&v>=e);)g+=u*(i=o[n=this._dashIdx]),v+=c*i,this._dashIdx=(n+1)%y,u>0&&g<l||u<0&&g>l||c>0&&v<h||c<0&&v>h||s[n%2?"moveTo":"lineTo"](u>=0?f(g,t):p(g,t),c>=0?f(v,e):p(v,e));u=g-t,c=v-e,this._dashOffset=-m(u*u+c*c)},_dashedBezierTo:function(t,e,i,r,a,o){var s,l,h,u,c,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,y=this._yi,_=n.cubicAt,x=0,b=this._dashIdx,w=p.length,S=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=_(v,t,i,a,s+.1)-_(v,t,i,a,s),h=_(y,e,r,o,s+.1)-_(y,e,r,o,s),x+=m(l*l+h*h);for(;b<w&&!((S+=p[b])>f);b++);for(s=(S-f)/x;s<=1;)u=_(v,t,i,a,s),c=_(y,e,r,o,s),b%2?g.moveTo(u,c):g.lineTo(u,c),s+=p[b]/x,b=(b+1)%w;b%2!=0&&g.lineTo(a,o),l=a-u,h=o-c,this._dashOffset=-m(l*l+h*h)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){h[0]=h[1]=c[0]=c[1]=Number.MAX_VALUE,u[0]=u[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,s=0,f=0;f<t.length;){var p=t[f++];switch(1===f&&(n=e=t[f],s=i=t[f+1]),p){case l.M:e=n=t[f++],i=s=t[f++],c[0]=n,c[1]=s,d[0]=n,d[1]=s;break;case l.L:a.fromLine(e,i,t[f],t[f+1],c,d),e=t[f++],i=t[f++];break;case l.C:a.fromCubic(e,i,t[f++],t[f++],t[f++],t[f++],t[f],t[f+1],c,d),e=t[f++],i=t[f++];break;case l.Q:a.fromQuadratic(e,i,t[f++],t[f++],t[f],t[f+1],c,d),e=t[f++],i=t[f++];break;case l.A:var m=t[f++],y=t[f++],_=t[f++],x=t[f++],b=t[f++],w=t[f++]+b;f+=1;var S=1-t[f++];1===f&&(n=g(b)*_+m,s=v(b)*x+y),a.fromArc(m,y,_,x,b,w,S,c,d),e=g(w)*_+m,i=v(w)*x+y;break;case l.R:n=e=t[f++],s=i=t[f++];var M=t[f++],C=t[f++];a.fromLine(n,s,n+M,s+C,c,d);break;case l.Z:e=n,i=s}r.min(h,h,c),r.max(u,u,d)}return 0===f&&(h[0]=h[1]=u[0]=u[1]=0),new o(h[0],h[1],u[0]-h[0],u[1]-h[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,s=this.data,h=this._ux,u=this._uy,c=this._len,d=0;d<c;){var f=s[d++];switch(1===d&&(e=n=s[d],i=r=s[d+1]),f){case l.M:e=n=s[d++],i=r=s[d++],t.moveTo(n,r);break;case l.L:a=s[d++],o=s[d++],(y(a-n)>h||y(o-r)>u||d===c-1)&&(t.lineTo(a,o),n=a,r=o);break;case l.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case l.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case l.A:var p=s[d++],m=s[d++],_=s[d++],x=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],C=_>x?_:x,T=_>x?1:_/x,A=_>x?x/_:1,I=b+w;Math.abs(_-x)>.001?(t.translate(p,m),t.rotate(S),t.scale(T,A),t.arc(0,0,C,b,I,1-M),t.scale(1/T,1/A),t.rotate(-S),t.translate(-p,-m)):t.arc(p,m,C,b,I,1-M),1===d&&(e=g(b)*_+p,i=v(b)*x+m),n=g(I)*_+p,r=v(I)*x+m;break;case l.R:e=n=s[d],i=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:t.closePath(),n=e,r=i}}}},x.CMD=l;var b=x;t.exports=b},3726:(t,e,i)=>{var n=i(45280),r=i(18554),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,h=2*Math.PI,u=n.create(),c=n.create(),d=n.create();var f=[],p=[];e.fromPoints=function(t,e,i){if(0!==t.length){var n,r=t[0],s=r[0],l=r[0],h=r[1],u=r[1];for(n=1;n<t.length;n++)r=t[n],s=a(s,r[0]),l=o(l,r[0]),h=a(h,r[1]),u=o(u,r[1]);e[0]=s,e[1]=h,i[0]=l,i[1]=u}},e.fromLine=function(t,e,i,n,r,s){r[0]=a(t,i),r[1]=a(e,n),s[0]=o(t,i),s[1]=o(e,n)},e.fromCubic=function(t,e,i,n,s,l,h,u,c,d){var g,v=r.cubicExtrema,m=r.cubicAt,y=v(t,i,s,h,f);for(c[0]=1/0,c[1]=1/0,d[0]=-1/0,d[1]=-1/0,g=0;g<y;g++){var _=m(t,i,s,h,f[g]);c[0]=a(_,c[0]),d[0]=o(_,d[0])}for(y=v(e,n,l,u,p),g=0;g<y;g++){var x=m(e,n,l,u,p[g]);c[1]=a(x,c[1]),d[1]=o(x,d[1])}c[0]=a(t,c[0]),d[0]=o(t,d[0]),c[0]=a(h,c[0]),d[0]=o(h,d[0]),c[1]=a(e,c[1]),d[1]=o(e,d[1]),c[1]=a(u,c[1]),d[1]=o(u,d[1])},e.fromQuadratic=function(t,e,i,n,s,l,h,u){var c=r.quadraticExtremum,d=r.quadraticAt,f=o(a(c(t,i,s),1),0),p=o(a(c(e,n,l),1),0),g=d(t,i,s,f),v=d(e,n,l,p);h[0]=a(t,s,g),h[1]=a(e,l,v),u[0]=o(t,s,g),u[1]=o(e,l,v)},e.fromArc=function(t,e,i,r,a,o,f,p,g){var v=n.min,m=n.max,y=Math.abs(a-o);if(y%h<1e-4&&y>1e-4)return p[0]=t-i,p[1]=e-r,g[0]=t+i,void(g[1]=e+r);if(u[0]=l(a)*i+t,u[1]=s(a)*r+e,c[0]=l(o)*i+t,c[1]=s(o)*r+e,v(p,u,c),m(g,u,c),(a%=h)<0&&(a+=h),(o%=h)<0&&(o+=h),a>o&&!f?o+=h:a<o&&f&&(a+=h),f){var _=o;o=a,a=_}for(var x=0;x<o;x+=Math.PI/2)x>a&&(d[0]=l(x)*i+t,d[1]=s(x)*r+e,v(p,d,p),m(g,d,g))}},18554:(t,e,i)=>{var n=i(45280),r=n.create,a=n.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,h=1e-4,u=s(3),c=1/3,d=r(),f=r(),p=r();function g(t){return t>-1e-8&&t<l}function v(t){return t>l||t<-1e-8}function m(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function y(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}e.cubicAt=m,e.cubicDerivativeAt=function(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)},e.cubicRootAt=function(t,e,i,n,r,a){var l=n+3*(e-i)-t,h=3*(i-2*e+t),d=3*(e-t),f=t-r,p=h*h-3*l*d,v=h*d-9*l*f,m=d*d-3*h*f,y=0;if(g(p)&&g(v)){if(g(h))a[0]=0;else(D=-d/h)>=0&&D<=1&&(a[y++]=D)}else{var _=v*v-4*p*m;if(g(_)){var x=v/p,b=-x/2;(D=-h/l+x)>=0&&D<=1&&(a[y++]=D),b>=0&&b<=1&&(a[y++]=b)}else if(_>0){var w=s(_),S=p*h+1.5*l*(-v+w),M=p*h+1.5*l*(-v-w);(D=(-h-((S=S<0?-o(-S,c):o(S,c))+(M=M<0?-o(-M,c):o(M,c))))/(3*l))>=0&&D<=1&&(a[y++]=D)}else{var C=(2*p*h-3*l*v)/(2*s(p*p*p)),T=Math.acos(C)/3,A=s(p),I=Math.cos(T),D=(-h-2*A*I)/(3*l),k=(b=(-h+A*(I+u*Math.sin(T)))/(3*l),(-h+A*(I-u*Math.sin(T)))/(3*l));D>=0&&D<=1&&(a[y++]=D),b>=0&&b<=1&&(a[y++]=b),k>=0&&k<=1&&(a[y++]=k)}}return y},e.cubicExtrema=function(t,e,i,n,r){var a=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,l=3*e-3*t,h=0;if(g(o)){if(v(a))(c=-l/a)>=0&&c<=1&&(r[h++]=c)}else{var u=a*a-4*o*l;if(g(u))r[0]=-a/(2*o);else if(u>0){var c,d=s(u),f=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(r[h++]=c),f>=0&&f<=1&&(r[h++]=f)}}return h},e.cubicSubdivide=function(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,h=(s-o)*r+o,u=(l-s)*r+s,c=(u-h)*r+h;a[0]=t,a[1]=o,a[2]=h,a[3]=c,a[4]=c,a[5]=u,a[6]=l,a[7]=n},e.cubicProjectPoint=function(t,e,i,n,r,o,l,u,c,g,v){var y,_,x,b,w,S=.005,M=1/0;d[0]=c,d[1]=g;for(var C=0;C<1;C+=.05)f[0]=m(t,i,r,l,C),f[1]=m(e,n,o,u,C),(b=a(d,f))<M&&(y=C,M=b);M=1/0;for(var T=0;T<32&&!(S<h);T++)_=y-S,x=y+S,f[0]=m(t,i,r,l,_),f[1]=m(e,n,o,u,_),b=a(f,d),_>=0&&b<M?(y=_,M=b):(p[0]=m(t,i,r,l,x),p[1]=m(e,n,o,u,x),w=a(p,d),x<=1&&w<M?(y=x,M=w):S*=.5);return v&&(v[0]=m(t,i,r,l,y),v[1]=m(e,n,o,u,y)),s(M)},e.quadraticAt=y,e.quadraticDerivativeAt=function(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))},e.quadraticRootAt=function(t,e,i,n,r){var a=t-2*e+i,o=2*(e-t),l=t-n,h=0;if(g(a)){if(v(o))(c=-l/o)>=0&&c<=1&&(r[h++]=c)}else{var u=o*o-4*a*l;if(g(u))(c=-o/(2*a))>=0&&c<=1&&(r[h++]=c);else if(u>0){var c,d=s(u),f=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(r[h++]=c),f>=0&&f<=1&&(r[h++]=f)}}return h},e.quadraticExtremum=function(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n},e.quadraticSubdivide=function(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i},e.quadraticProjectPoint=function(t,e,i,n,r,o,l,u,c){var g,v=.005,m=1/0;d[0]=l,d[1]=u;for(var _=0;_<1;_+=.05){f[0]=y(t,i,r,_),f[1]=y(e,n,o,_),(S=a(d,f))<m&&(g=_,m=S)}m=1/0;for(var x=0;x<32&&!(v<h);x++){var b=g-v,w=g+v;f[0]=y(t,i,r,b),f[1]=y(e,n,o,b);var S=a(f,d);if(b>=0&&S<m)g=b,m=S;else{p[0]=y(t,i,r,w),p[1]=y(e,n,o,w);var M=a(p,d);w<=1&&M<m?(g=w,m=M):v*=.5}}return c&&(c[0]=y(t,i,r,g),c[1]=y(e,n,o,g)),s(m)}},18553:(t,e,i)=>{var n=i(66387),r=i(46133).buildTransformer,a=[];function o(t,e,i,a,o){if(e.getBoundingClientRect&&n.domSupported&&!s(e)){var l=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),h=function(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,l=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",r[l]+":0",n[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(o),i.push(o)}return i}(e,l),u=function(t,e,i){for(var n=i?"invTrans":"trans",a=e[n],o=e.srcCoords,s=!0,l=[],h=[],u=0;u<4;u++){var c=t[u].getBoundingClientRect(),d=2*u,f=c.left,p=c.top;l.push(f,p),s=s&&o&&f===o[d]&&p===o[d+1],h.push(t[u].offsetLeft,t[u].offsetTop)}return s&&a?a:(e.srcCoords=l,e[n]=i?r(h,l):r(l,h))}(h,l,o);if(u)return u(t,i,a),!0}return!1}function s(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,i,n,r){return o(a,e,n,r,!0)&&o(t,i,a[0],a[1])},e.transformCoordWithViewport=o,e.isCanvasEl=s},66387:t=>{var e="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]);r&&(i.ie=!0,i.version=r[1]);a&&(i.edge=!0,i.version=a[1]);o&&(i.weChat=!0);return{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);t.exports=e},61158:(t,e,i)=>{var n=i(41502);e.Dispatcher=n;var r=i(66387),a=i(18553),o=a.isCanvasEl,s=a.transformCoordWithViewport,l="undefined"!=typeof window&&!!window.addEventListener,h=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function c(t,e,i,n){return i=i||{},n||!r.canvasSupported?d(t,e,i):r.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):d(t,e,i),i}function d(t,e,i){if(r.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(o(t)){var l=t.getBoundingClientRect();return i.zrX=n-l.left,void(i.zrY=a-l.top)}if(s(u,t,n,a))return i.zrX=u[0],void(i.zrY=u[1])}i.zrX=i.zrY=0}function f(t){return t||window.event}var p=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=c,e.getNativeEvent=f,e.normalizeEvent=function(t,e,i){if(null!=(e=f(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&c(t,r,e,i)}else c(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&h.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e},e.addEventListener=function(t,e,i,n){l?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)},e.removeEventListener=function(t,e,i,n){l?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)},e.stop=p,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return t.which>1}},46133:(t,e)=>{var i=Math.log(2);function n(t,e,r,a,o,s){var l=a+"-"+o,h=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var u=Math.round(Math.log((1<<h)-1&~o)/i);return t[r][u]}for(var c=a|1<<r,d=r+1;a&1<<d;)d++;for(var f=0,p=0,g=0;p<h;p++){var v=1<<p;v&o||(f+=(g%2?-1:1)*t[r][p]*n(t,e-1,d,c,o|v,s),g++)}return s[l]=f,f}e.buildTransformer=function(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=n(i,8,0,0,0,r);if(0!==a){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*n(i,7,0===s?1:0,1<<s,1<<l,r)/a*e[s];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}},78038:t=>{var e=2311;t.exports=function(){return e++}},48612:(t,e,i)=>{var n=function(){};1===i(4990).debugMode&&(n=console.error);var r=n;t.exports=r},32892:(t,e)=>{var i="undefined"==typeof Float32Array?Array:Float32Array;function n(){var t=new i(6);return r(t),t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}e.create=n,e.identity=r,e.copy=a,e.mul=function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},e.translate=function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},e.rotate=function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],h=Math.sin(i),u=Math.cos(i);return t[0]=n*u+o*h,t[1]=-n*h+o*u,t[2]=r*u+s*h,t[3]=-r*h+u*s,t[4]=u*a+h*l,t[5]=u*l-h*a,t},e.scale=function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},e.invert=function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null},e.clone=function(t){var e=n();return a(e,t),e}},19455:t=>{function e(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;r<i&&n(t[r],t[r-1])<0;)r++;!function(t,e,i){i--;for(;e<i;){var n=t[e];t[e++]=t[i],t[i--]=n}}(t,e,r)}else for(;r<i&&n(t[r],t[r-1])>=0;)r++;return r-e}function i(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var a,o=t[n],s=e,l=n;s<l;)r(o,t[a=s+l>>>1])<0?l=a:s=a+1;var h=n-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=o}}function n(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;l<s&&a(t,e[i+r+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&a(t,e[i+r-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var h=o;o=r-l,l=r-h}for(o++;o<l;){var u=o+(l-o>>>1);a(t,e[i+u])>0?o=u+1:l=u}return l}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;l<s&&a(t,e[i+r-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var h=o;o=r-l,l=r-h}else{for(s=n-r;l<s&&a(t,e[i+r+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var u=o+(l-o>>>1);a(t,e[i+u])<0?l=u:o=u+1}return l}function a(t,e){var i,a,o,s=7,l=0;i=t.length;var h=[];function u(i){var u=a[i],c=o[i],d=a[i+1],f=o[i+1];o[i]=c+f,i===l-3&&(a[i+1]=a[i+2],o[i+1]=o[i+2]),l--;var p=r(t[d],t,u,c,0,e);u+=p,0!==(c-=p)&&0!==(f=n(t[u+c-1],t,d,f,f-1,e))&&(c<=f?function(i,a,o,l){var u=0;for(u=0;u<a;u++)h[u]=t[i+u];var c=0,d=o,f=i;if(t[f++]=t[d++],0==--l){for(u=0;u<a;u++)t[f+u]=h[c+u];return}if(1===a){for(u=0;u<l;u++)t[f+u]=t[d+u];return void(t[f+l]=h[c])}var p,g,v,m=s;for(;;){p=0,g=0,v=!1;do{if(e(t[d],h[c])<0){if(t[f++]=t[d++],g++,p=0,0==--l){v=!0;break}}else if(t[f++]=h[c++],p++,g=0,1==--a){v=!0;break}}while((p|g)<m);if(v)break;do{if(0!==(p=r(t[d],h,c,a,0,e))){for(u=0;u<p;u++)t[f+u]=h[c+u];if(f+=p,c+=p,(a-=p)<=1){v=!0;break}}if(t[f++]=t[d++],0==--l){v=!0;break}if(0!==(g=n(h[c],t,d,l,0,e))){for(u=0;u<g;u++)t[f+u]=t[d+u];if(f+=g,d+=g,0===(l-=g)){v=!0;break}}if(t[f++]=h[c++],1==--a){v=!0;break}m--}while(p>=7||g>=7);if(v)break;m<0&&(m=0),m+=2}if((s=m)<1&&(s=1),1===a){for(u=0;u<l;u++)t[f+u]=t[d+u];t[f+l]=h[c]}else{if(0===a)throw new Error;for(u=0;u<a;u++)t[f+u]=h[c+u]}}(u,c,d,f):function(i,a,o,l){var u=0;for(u=0;u<l;u++)h[u]=t[o+u];var c=i+a-1,d=l-1,f=o+l-1,p=0,g=0;if(t[f--]=t[c--],0==--a){for(p=f-(l-1),u=0;u<l;u++)t[p+u]=h[u];return}if(1===l){for(g=(f-=a)+1,p=(c-=a)+1,u=a-1;u>=0;u--)t[g+u]=t[p+u];return void(t[f]=h[d])}var v=s;for(;;){var m=0,y=0,_=!1;do{if(e(h[d],t[c])<0){if(t[f--]=t[c--],m++,y=0,0==--a){_=!0;break}}else if(t[f--]=h[d--],y++,m=0,1==--l){_=!0;break}}while((m|y)<v);if(_)break;do{if(0!==(m=a-r(h[d],t,i,a,a-1,e))){for(a-=m,g=(f-=m)+1,p=(c-=m)+1,u=m-1;u>=0;u--)t[g+u]=t[p+u];if(0===a){_=!0;break}}if(t[f--]=h[d--],1==--l){_=!0;break}if(0!==(y=l-n(t[c],h,0,l,l-1,e))){for(l-=y,g=(f-=y)+1,p=(d-=y)+1,u=0;u<y;u++)t[g+u]=h[p+u];if(l<=1){_=!0;break}}if(t[f--]=t[c--],0==--a){_=!0;break}v--}while(m>=7||y>=7);if(_)break;v<0&&(v=0),v+=2}(s=v)<1&&(s=1);if(1===l){for(g=(f-=a)+1,p=(c-=a)+1,u=a-1;u>=0;u--)t[g+u]=t[p+u];t[f]=h[d]}else{if(0===l)throw new Error;for(p=f-(l-1),u=0;u<l;u++)t[p+u]=h[u]}}(u,c,d,f))}a=[],o=[],this.mergeRuns=function(){for(;l>1;){var t=l-2;if(t>=1&&o[t-1]<=o[t]+o[t+1]||t>=2&&o[t-2]<=o[t]+o[t-1])o[t-1]<o[t+1]&&t--;else if(o[t]>o[t+1])break;u(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&o[t-1]<o[t+1]&&t--,u(t)}},this.pushRun=function(t,e){a[l]=t,o[l]=e,l+=1}}t.exports=function(t,n,r,o){r||(r=0),o||(o=t.length);var s=o-r;if(!(s<2)){var l=0;if(s<32)i(t,r,o,r+(l=e(t,r,o,n)),n);else{var h=new a(t,n),u=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(s);do{if((l=e(t,r,o,n))<u){var c=s;c>u&&(c=u),i(t,r,r+c,r+l,n),l=c}h.pushRun(r,l),h.mergeRuns(),s-=l,r+=l}while(0!==s);h.forceMergeRuns()}}}},33051:(t,e)=>{var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,h=a.map,u=a.reduce,c={};function d(t){if(null==t||"object"!=typeof t)return t;var e=t,a=r.call(t);if("[object Array]"===a){if(!M(t)){e=[];for(var o=0,s=t.length;o<s;o++)e[o]=d(t[o])}}else if(n[a]){if(!M(t)){var l=t.constructor;if(t.constructor.from)e=l.from(t);else{e=new l(t.length);for(o=0,s=t.length;o<s;o++)e[o]=d(t[o])}}}else if(!i[a]&&!M(t)&&!w(t))for(var h in e={},t)t.hasOwnProperty(h)&&(e[h]=d(t[h]));return e}function f(t,e,i){if(!x(e)||!x(t))return i?d(e):t;for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],a=e[n];!x(a)||!x(r)||_(a)||_(r)||w(a)||w(r)||b(a)||b(r)||M(a)||M(r)?!i&&n in t||(t[n]=d(e[n])):f(r,a,i)}return t}function p(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}var g,v=function(){return c.createCanvas()};function m(t,e,i){if(t&&e)if(t.forEach&&t.forEach===o)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function y(t,e){var i=l.call(arguments,2);return function(){return t.apply(e,i.concat(l.call(arguments)))}}function _(t){return"[object Array]"===r.call(t)}function x(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function b(t){return!!i[r.call(t)]}function w(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}c.createCanvas=function(){return document.createElement("canvas")};var S="__ec_primitive__";function M(t){return t[S]}function C(t){var e=_(t);this.data={};var i=this;function n(t,n){e?i.set(t,n):i.set(n,t)}t instanceof C?t.each(n):t&&m(t,n)}C.prototype={constructor:C,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var i in void 0!==e&&(t=y(t,e)),this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}},e.$override=function(t,e){"createCanvas"===t&&(g=null),c[t]=e},e.clone=d,e.merge=f,e.mergeAll=function(t,e){for(var i=t[0],n=1,r=t.length;n<r;n++)i=f(i,t[n],e);return i},e.extend=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},e.defaults=p,e.createCanvas=v,e.getContext=function(){return g||(g=v().getContext("2d")),g},e.indexOf=function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1},e.inherits=function(t,e){var i=t.prototype;function n(){}for(var r in n.prototype=e.prototype,t.prototype=new n,i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e},e.mixin=function(t,e,i){p(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,i)},e.isArrayLike=function(t){if(t)return"string"!=typeof t&&"number"==typeof t.length},e.each=m,e.map=function(t,e,i){if(t&&e){if(t.map&&t.map===h)return t.map(e,i);for(var n=[],r=0,a=t.length;r<a;r++)n.push(e.call(i,t[r],r,t));return n}},e.reduce=function(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===u)return t.reduce(e,i,n);for(var r=0,a=t.length;r<a;r++)i=e.call(n,i,t[r],r,t);return i}},e.filter=function(t,e,i){if(t&&e){if(t.filter&&t.filter===s)return t.filter(e,i);for(var n=[],r=0,a=t.length;r<a;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}},e.find=function(t,e,i){if(t&&e)for(var n=0,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return t[n]},e.bind=y,e.curry=function(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}},e.isArray=_,e.isFunction=function(t){return"function"==typeof t},e.isString=function(t){return"[object String]"===r.call(t)},e.isObject=x,e.isBuiltInObject=b,e.isTypedArray=function(t){return!!n[r.call(t)]},e.isDom=w,e.eqNaN=function(t){return t!=t},e.retrieve=function(t){for(var e=0,i=arguments.length;e<i;e++)if(null!=arguments[e])return arguments[e]},e.retrieve2=function(t,e){return null!=t?t:e},e.retrieve3=function(t,e,i){return null!=t?t:null!=e?e:i},e.slice=function(){return Function.call.apply(l,arguments)},e.normalizeCssArray=function(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},e.assert=function(t,e){if(!t)throw new Error(e)},e.trim=function(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.setAsPrimitive=function(t){t[S]=!0},e.isPrimitive=M,e.createHashMap=function(t){return new C(t)},e.concatArray=function(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i},e.noop=function(){}},45280:(t,e)=>{var i="undefined"==typeof Float32Array?Array:Float32Array;function n(t){return Math.sqrt(a(t))}var r=n;function a(t){return t[0]*t[0]+t[1]*t[1]}var o=a;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function h(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var u=h;e.create=function(t,e){var n=new i(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new i(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,i){return t[0]=e,t[1]=i,t},e.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},e.scaleAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},e.sub=function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},e.len=n,e.length=r,e.lenSquare=a,e.lengthSquare=o,e.mul=function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},e.div=function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},e.normalize=function(t,e){var i=n(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t},e.distance=s,e.dist=l,e.distanceSquare=h,e.distSquare=u,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},e.applyTransform=function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},e.min=function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},e.max=function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}},85546:(t,e,i)=>{var n,r,a=i(61158),o=a.addEventListener,s=a.removeEventListener,l=a.normalizeEvent,h=a.getNativeEvent,u=i(33051),c=i(41502),d=i(66387),f=d.domSupported,p=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:u.map(n,(function(t){var e=t.replace("mouse","pointer");return r.hasOwnProperty(e)?e:t}))}),g=["mousemove","mouseup"],v=["pointermove","pointerup"];function m(t){return"mousewheel"===t&&d.browser.firefox?"DOMMouseScroll":t}function y(t){var e=t.pointerType;return"pen"===e||"touch"===e}function _(t){t&&(t.zrByTouch=!0)}function x(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function b(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}var w=b.prototype;w.stopPropagation=w.stopImmediatePropagation=w.preventDefault=u.noop;var S={mousedown:function(t){t=l(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=l(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||D(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=l(this.dom,t),D(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=l(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=x(this,e),this.trigger("mouseout",t)},touchstart:function(t){_(t=l(this.dom,t)),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),S.mousemove.call(this,t),S.mousedown.call(this,t)},touchmove:function(t){_(t=l(this.dom,t)),this.handler.processGesture(t,"change"),S.mousemove.call(this,t)},touchend:function(t){_(t=l(this.dom,t)),this.handler.processGesture(t,"end"),S.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&S.click.call(this,t)},pointerdown:function(t){S.mousedown.call(this,t)},pointermove:function(t){y(t)||S.mousemove.call(this,t)},pointerup:function(t){S.mouseup.call(this,t)},pointerout:function(t){y(t)||S.mouseout.call(this,t)}};u.each(["click","mousewheel","dblclick","contextmenu"],(function(t){S[t]=function(e){e=l(this.dom,e),this.trigger(t,e)}}));var M={pointermove:function(t){y(t)||M.mousemove.call(this,t)},pointerup:function(t){M.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;D(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function C(t,e){var i=e.domHandlers;d.pointerEventsSupported?u.each(p.pointer,(function(n){A(e,n,(function(e){i[n].call(t,e)}))})):(d.touchEventsSupported&&u.each(p.touch,(function(n){A(e,n,(function(r){i[n].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),u.each(p.mouse,(function(n){A(e,n,(function(r){r=h(r),e.touching||i[n].call(t,r)}))})))}function T(t,e){function i(i){A(e,i,(function(n){n=h(n),x(t,n.target)||(n=function(t,e){return l(t.dom,new b(t,e),!0)}(t,n),e.domHandlers[i].call(t,n))}),{capture:!0})}d.pointerEventsSupported?u.each(v,i):d.touchEventsSupported||u.each(g,i)}function A(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,o(t.domTarget,m(e),i,n)}function I(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&s(t.domTarget,m(i),e[i],t.listenerOpts[i]);t.mounted={}}function D(t,e){if(t._mayPointerCapture=null,f&&t._pointerCapturing^e){t._pointerCapturing=e;var i=t._globalHandlerScope;e?T(t,i):I(i)}}function k(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function P(t,e){c.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new k(t,S),f&&(this._globalHandlerScope=new k(document,M)),this._pointerCapturing=!1,this._mayPointerCapture=null,C(this,this._localHandlerScope)}var O=P.prototype;O.dispose=function(){I(this._localHandlerScope),f&&I(this._globalHandlerScope)},O.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},u.mixin(P,c);var L=P;t.exports=L},52776:(t,e,i)=>{var n=i(10712),r=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e.length;i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),n.prototype.getBoundingRect.call(this)}});t.exports=r},7719:(t,e,i)=>{var n=i(33051),r=i(40342),a=i(85823),o=i(41406);function s(t){for(var e in t=t||{},a.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t,this),this.dirty(!1),this},calculateTextPosition:null},n.inherits(s,a),n.mixin(s,o);var l=s;t.exports=l},31797:t=>{var e=function(t){this.colorStops=t||[]};e.prototype={constructor:e,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var i=e;t.exports=i},44535:(t,e,i)=>{var n=i(7719),r=i(60479),a=i(33051),o=i(8007);function s(t){n.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var r=this._image=o.createOrUpdateImage(n,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=i.x||0,s=i.y||0,l=i.width,h=i.height,u=r.width/r.height;if(null==l&&null!=h?l=h*u:null==h&&null!=l?h=l/u:null==l&&null==h&&(l=r.width,h=r.height),this.setTransform(t),i.sWidth&&i.sHeight){var c=i.sx||0,d=i.sy||0;t.drawImage(r,c,d,i.sWidth,i.sHeight,a,s,l,h)}else if(i.sx&&i.sy){var f=l-(c=i.sx),p=h-(d=i.sy);t.drawImage(r,c,d,f,p,a,s,l,h)}else t.drawImage(r,a,s,l,h);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(s,n);var l=s;t.exports=l},91754:(t,e,i)=>{var n=i(33051).inherits,r=i(7719),a=i(60479);function o(t){r.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}o.prototype.incremental=!0,o.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},o.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},o.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},o.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},o.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},o.prototype.brush=function(t,e){for(var i=this._cursor;i<this._displayables.length;i++){(n=this._displayables[i]).beforeBrush&&n.beforeBrush(t),n.brush(t,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._cursor=i;for(i=0;i<this._temporaryDisplayables.length;i++){var n;(n=this._temporaryDisplayables[i]).beforeBrush&&n.beforeBrush(t),n.brush(t,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var s=[];o.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new a(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(s)),t.union(n)}this._rect=t}return this._rect},o.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++){if(this._displayables[n].contain(t,e))return!0}return!1},n(o,r);var l=o;t.exports=l},74438:(t,e,i)=>{var n=i(33051),r=i(31797),a=function(t,e,i,n,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,r.call(this,a)};a.prototype={constructor:a},n.inherits(a,r);var o=a;t.exports=o},10712:(t,e,i)=>{var n=i(7719),r=i(33051),a=i(14014),o=i(85365),s=i(31870).prototype.getCanvasPattern,l=Math.abs,h=new a(!0);function u(t){n.call(this,t),this.path=null}u.prototype={constructor:u,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var i,n=this.style,r=this.path||h,a=n.hasStroke(),o=n.hasFill(),l=n.fill,u=n.stroke,c=o&&!!l.colorStops,d=a&&!!u.colorStops,f=o&&!!l.image,p=a&&!!u.image;(n.bind(t,this,e),this.setTransform(t),this.__dirty)&&(c&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(t,l,i)),d&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,u,i)));c?t.fillStyle=this._fillGradient:f&&(t.fillStyle=s.call(l,t)),d?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=s.call(u,t));var g=n.lineDash,v=n.lineDashOffset,m=!!t.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!m&&a?(r.beginPath(t),g&&!m&&(r.setLineDash(g),r.setLineDashOffset(v)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o)if(null!=n.fillOpacity){var _=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,r.fill(t),t.globalAlpha=_}else r.fill(t);if(g&&m&&(t.setLineDash(g),t.lineDashOffset=v),a)if(null!=n.strokeOpacity){_=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,r.stroke(t),t.globalAlpha=_}else r.stroke(t);g&&m&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new a),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},u.extend=function(t){var e=function(e){u.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var r in i)!n.hasOwnProperty(r)&&i.hasOwnProperty(r)&&(n[r]=i[r])}t.init&&t.init.call(this,e)};for(var i in r.inherits(e,u),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},r.inherits(u,n);var c=u;t.exports=c},31870:t=>{var e=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};e.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var i=e;t.exports=i},36369:(t,e,i)=>{var n=i(33051),r=i(31797),a=function(t,e,i,n,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=a||!1,r.call(this,n)};a.prototype={constructor:a},n.inherits(a,r);var o=a;t.exports=o},40342:(t,e,i)=>{var n=i(61260),r=i(71131).ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],o=function(t){this.extendFrom(t,!1)};function s(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o,t.createLinearGradient(n,a,r,o)}function l(t,e,i){var n=i.width,r=i.height,a=Math.min(n,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+i.x,s=s*r+i.y,l*=a),t.createRadialGradient(o,s,0,o,s,l)}for(var h=o.prototype={constructor:o,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){var o=this,s=i&&i.style,l=!s||t.__attrCachedBy!==r.STYLE_BIND;t.__attrCachedBy=r.STYLE_BIND;for(var h=0;h<a.length;h++){var u=a[h],c=u[0];(l||o[c]!==s[c])&&(t[c]=n(t,c,o[c]||u[1]))}if((l||o.fill!==s.fill)&&(t.fillStyle=o.fill),(l||o.stroke!==s.stroke)&&(t.strokeStyle=o.stroke),(l||o.opacity!==s.opacity)&&(t.globalAlpha=null==o.opacity?1:o.opacity),(l||o.blend!==s.blend)&&(t.globalCompositeOperation=o.blend||"source-over"),this.hasStroke()){var d=o.lineWidth;t.lineWidth=d/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?l:s)(t,e,i),r=e.colorStops,a=0;a<r.length;a++)n.addColorStop(r[a].offset,r[a].color);return n}},u=0;u<a.length;u++){var c=a[u];c[0]in h||(h[c[0]]=c[1])}o.getGradient=h.getGradient;var d=o;t.exports=d},96498:(t,e,i)=>{var n=i(7719),r=i(33051),a=i(80423),o=i(98886),s=i(71131).ContextCachedBy,l=function(t){n.call(this,t)};l.prototype={constructor:l,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&o.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),o.needDrawText(n,i)?(this.setTransform(t),o.renderText(this,t,n,i,null,e),this.restoreTransform(t)):t.__attrCachedBy=s.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var i=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},r.inherits(l,n);var h=l;t.exports=h},71131:(t,e)=>{e.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},e.WILL_BE_RESTORED=9},60873:(t,e,i)=>{var n=i(66387),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=function(t){return n.browser.ie&&n.browser.version>=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;a<i.length;a++){var o=i[a],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var h=0;h<r.length;h++)r[h][2]=n[r[h][0]],n[r[h][0]]=r[h][1];e=!0;break}}if(t.apply(this,arguments),e)for(h=0;h<r.length;h++)n[r[h][0]]=r[h][2]}:t}},61260:t=>{var e={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};t.exports=function(t,i,n){return e.hasOwnProperty(i)?n*t.dpr:n}},8007:(t,e,i)=>{var n=new(i(92528))(50);function r(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function a(t){return t&&t.width&&t.height}e.findExistImage=function(t){if("string"==typeof t){var e=n.get(t);return e&&e.image}return t},e.createOrUpdateImage=function(t,e,i,o,s){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var l=n.get(t),h={hostEl:i,cb:o,cbPayload:s};return l?!a(e=l.image)&&l.pending.push(h):((e=new Image).onload=e.onerror=r,n.put(t,e.__cachedImgObj={image:e,pending:[h]}),e.src=e.__zrImageSrc=t),e}return t}return e},e.isImageReady=a},79209:(t,e,i)=>{var n=i(31847),r=i(96005);e.buildPath=function(t,e,i){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=r(a,o,i,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,h=0;h<(i?l:l-1);h++){var u=s[2*h],c=s[2*h+1],d=a[(h+1)%l];t.bezierCurveTo(u[0],u[1],c[0],c[1],d[0],d[1])}}else{"spline"===o&&(a=n(a,i)),t.moveTo(a[0][0],a[0][1]);h=1;for(var f=a.length;h<f;h++)t.lineTo(a[h][0],a[h][1])}i&&t.closePath()}}},48988:(t,e)=>{e.buildPath=function(t,e){var i,n,r,a,o,s=e.x,l=e.y,h=e.width,u=e.height,c=e.r;h<0&&(s+=h,h=-h),u<0&&(l+=u,u=-u),"number"==typeof c?i=n=r=a=c:c instanceof Array?1===c.length?i=n=r=a=c[0]:2===c.length?(i=r=c[0],n=a=c[1]):3===c.length?(i=c[0],n=a=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],a=c[3]):i=n=r=a=0,i+n>h&&(i*=h/(o=i+n),n*=h/o),r+a>h&&(r*=h/(o=r+a),a*=h/o),n+r>u&&(n*=u/(o=n+r),r*=u/o),i+a>u&&(i*=u/(o=i+a),a*=u/o),t.moveTo(s+i,l),t.lineTo(s+h-n,l),0!==n&&t.arc(s+h-n,l+n,n,-Math.PI/2,0),t.lineTo(s+h,l+u-r),0!==r&&t.arc(s+h-r,l+u-r,r,0,Math.PI/2),t.lineTo(s+a,l+u),0!==a&&t.arc(s+a,l+u-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}},96005:(t,e,i)=>{var n=i(45280),r=n.min,a=n.max,o=n.scale,s=n.distance,l=n.add,h=n.clone,u=n.sub;t.exports=function(t,e,i,n){var c,d,f,p,g=[],v=[],m=[],y=[];if(n){f=[1/0,1/0],p=[-1/0,-1/0];for(var _=0,x=t.length;_<x;_++)r(f,f,t[_]),a(p,p,t[_]);r(f,f,n[0]),a(p,p,n[1])}for(_=0,x=t.length;_<x;_++){var b=t[_];if(i)c=t[_?_-1:x-1],d=t[(_+1)%x];else{if(0===_||_===x-1){g.push(h(t[_]));continue}c=t[_-1],d=t[_+1]}u(v,d,c),o(v,v,e);var w=s(b,c),S=s(b,d),M=w+S;0!==M&&(w/=M,S/=M),o(m,v,-w),o(y,v,S);var C=l([],b,m),T=l([],b,y);n&&(a(C,C,f),r(C,C,p),a(T,T,f),r(T,T,p)),g.push(C),g.push(T)}return i&&g.push(g.shift()),g}},31847:(t,e,i)=>{var n=i(45280).distance;function r(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}t.exports=function(t,e){for(var i=t.length,a=[],o=0,s=1;s<i;s++)o+=n(t[s-1],t[s]);var l=o/2;for(l=l<i?i:l,s=0;s<l;s++){var h,u,c,d=s/(l-1)*(e?i:i-1),f=Math.floor(d),p=d-f,g=t[f%i];e?(h=t[(f-1+i)%i],u=t[(f+1)%i],c=t[(f+2)%i]):(h=t[0===f?f:f-1],u=t[f>i-2?i-1:f+1],c=t[f>i-3?i-1:f+2]);var v=p*p,m=p*v;a.push([r(h[0],g[0],u[0],c[0],p,v,m),r(h[1],g[1],u[1],c[1],p,v,m)])}return a}},24111:(t,e)=>{var i=Math.round;function n(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}e.subPixelOptimizeLine=function(t,e,r){if(e){var a=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=a,t.x2=o,t.y1=s,t.y2=l;var h=r&&r.lineWidth;h&&(i(2*a)===i(2*o)&&(t.x1=t.x2=n(a,h,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=n(s,h,!0)))}},e.subPixelOptimizeRect=function(t,e,i){if(e){var r=e.x,a=e.y,o=e.width,s=e.height;t.x=r,t.y=a,t.width=o,t.height=s;var l=i&&i.lineWidth;l&&(t.x=n(r,l,!0),t.y=n(a,l,!0),t.width=Math.max(n(r+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(n(a+s,l,!1)-t.y,0===s?0:1))}},e.subPixelOptimize=n},98886:(t,e,i)=>{var n=i(33051),r=n.retrieve2,a=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,h=n.isObject,u=i(80423),c=i(48988),d=i(8007),f=i(61260),p=i(71131),g=p.ContextCachedBy,v=p.WILL_BE_RESTORED,m=u.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},x=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(t){if(t){t.font=u.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||_[i]?i:"top",t.textPadding&&(t.textPadding=s(t.textPadding))}}function M(t,e,i,n,r){if(i&&e.textRotation){var a=e.textOrigin;"center"===a?(n=i.width/2+i.x,r=i.height/2+i.y):a&&(n=a[0]+i.x,r=a[1]+i.y),t.translate(n,r),t.rotate(-e.textRotation),t.translate(-n,-r)}}function C(t,e,i,n,o,s,l,h){var u=n.rich[i.styleName]||{};u.text=i.text;var c=i.textVerticalAlign,d=s+o/2;"top"===c?d=s+i.height/2:"bottom"===c&&(d=s+o-i.height/2),!i.isLineHolder&&T(u)&&A(t,e,u,"right"===h?l-i.width:"center"===h?l-i.width/2:l,d-i.height/2,i.width,i.height);var f=i.textPadding;f&&(l=E(l,h,f),d-=i.height/2-f[2]-i.textHeight/2),k(e,"shadowBlur",a(u.textShadowBlur,n.textShadowBlur,0)),k(e,"shadowColor",u.textShadowColor||n.textShadowColor||"transparent"),k(e,"shadowOffsetX",a(u.textShadowOffsetX,n.textShadowOffsetX,0)),k(e,"shadowOffsetY",a(u.textShadowOffsetY,n.textShadowOffsetY,0)),k(e,"textAlign",h),k(e,"textBaseline","middle"),k(e,"font",i.font||m);var p=P(u.textStroke||n.textStroke,v),g=O(u.textFill||n.textFill),v=r(u.textStrokeWidth,n.textStrokeWidth);p&&(k(e,"lineWidth",v),k(e,"strokeStyle",p),e.strokeText(i.text,l,d)),g&&(k(e,"fillStyle",g),e.fillText(i.text,l,d))}function T(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function A(t,e,i,n,r,a,o){var s=i.textBackgroundColor,u=i.textBorderWidth,f=i.textBorderColor,p=l(s);if(k(e,"shadowBlur",i.textBoxShadowBlur||0),k(e,"shadowColor",i.textBoxShadowColor||"transparent"),k(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),k(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||u&&f){e.beginPath();var g=i.textBorderRadius;g?c.buildPath(e,{x:n,y:r,width:a,height:o,r:g}):e.rect(n,r,a,o),e.closePath()}if(p)if(k(e,"fillStyle",s),null!=i.fillOpacity){var v=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=v}else e.fill();else if(h(s)){var m=s.image;(m=d.createOrUpdateImage(m,null,t,I,s))&&d.isImageReady(m)&&e.drawImage(m,n,r,a,o)}if(u&&f)if(k(e,"lineWidth",u),k(e,"strokeStyle",f),null!=i.strokeOpacity){v=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=v}else e.stroke()}function I(t,e){e.image=t}function D(t,e,i,n){var r=i.x||0,a=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)r=n.x+L(l[0],n.width),a=n.y+L(l[1],n.height);else{var h=e&&e.calculateTextPosition?e.calculateTextPosition(b,i,n):u.calculateTextPosition(b,i,n);r=h.x,a=h.y,o=o||h.textAlign,s=s||h.textVerticalAlign}var c=i.textOffset;c&&(r+=c[0],a+=c[1])}return(t=t||{}).baseX=r,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function k(t,e,i){return t[e]=f(t,e,i),t[e]}function P(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function O(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function L(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function E(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}e.normalizeTextStyle=function(t){return S(t),o(t.rich,S),t},e.renderText=function(t,e,i,n,r,a){n.rich?function(t,e,i,n,r,a){a!==v&&(e.__attrCachedBy=g.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=u.parseRichText(i,n));!function(t,e,i,n,r){var a=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,h=D(w,t,n,r),c=h.baseX,d=h.baseY,f=h.textAlign,p=h.textVerticalAlign;M(e,n,r,c,d);var g=u.adjustTextX(c,o,f),v=u.adjustTextY(d,s,p),m=g,y=v;l&&(m+=l[3],y+=l[0]);var _=m+a;T(n)&&A(t,e,n,g,v,o,s);for(var x=0;x<i.lines.length;x++){for(var b,S=i.lines[x],I=S.tokens,k=I.length,P=S.lineHeight,O=S.width,L=0,E=m,R=_,z=k-1;L<k&&(!(b=I[L]).textAlign||"left"===b.textAlign);)C(t,e,b,n,P,y,E,"left"),O-=b.width,E+=b.width,L++;for(;z>=0&&"right"===(b=I[z]).textAlign;)C(t,e,b,n,P,y,R,"right"),O-=b.width,R-=b.width,z--;for(E+=(a-(E-m)-(_-R)-O)/2;L<=z;)C(t,e,b=I[L],n,P,y,E+b.width/2,"center"),E+=b.width,L++;y+=P}}(t,e,o,n,r)}(t,e,i,n,r,a):function(t,e,i,n,r,a){"use strict";var o,s=T(n),l=!1,h=e.__attrCachedBy===g.PLAIN_TEXT;a!==v?(a&&(o=a.style,l=!s&&h&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):h&&(e.__attrCachedBy=g.NONE);var c=n.font||m;l&&c===(o.font||m)||(e.font=c);var d=t.__computedFont;t.__styleFont!==c&&(t.__styleFont=c,d=t.__computedFont=e.font);var p=n.textPadding,y=n.textLineHeight,_=t.__textCotentBlock;_&&!t.__dirtyText||(_=t.__textCotentBlock=u.parsePlainText(i,d,p,y,n.truncate));var b=_.outerHeight,S=_.lines,C=_.lineHeight,I=D(w,t,n,r),k=I.baseX,L=I.baseY,R=I.textAlign||"left",z=I.textVerticalAlign;M(e,n,r,k,L);var B=u.adjustTextY(L,b,z),N=k,F=B;if(s||p){var V=u.getWidth(i,d);p&&(V+=p[1]+p[3]);var H=u.adjustTextX(k,V,R);s&&A(t,e,n,H,B,V,b),p&&(N=E(k,R,p),F+=p[0])}e.textAlign=R,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var W=0;W<x.length;W++){var G=x[W],U=G[0],Y=G[1],j=n[U];l&&j===o[U]||(e[Y]=f(e,Y,j||G[2]))}F+=C/2;var X=n.textStrokeWidth,q=l?o.textStrokeWidth:null,$=!l||X!==q,Z=!l||$||n.textStroke!==o.textStroke,K=P(n.textStroke,X),Q=O(n.textFill);K&&($&&(e.lineWidth=X),Z&&(e.strokeStyle=K));Q&&(l&&n.textFill===o.textFill||(e.fillStyle=Q));if(1===S.length)K&&e.strokeText(S[0],N,F),Q&&e.fillText(S[0],N,F);else for(W=0;W<S.length;W++)K&&e.strokeText(S[W],N,F),Q&&e.fillText(S[W],N,F),F+=C}(t,e,i,n,r,a)},e.getBoxPosition=D,e.getStroke=P,e.getFill=O,e.parsePercent=L,e.needDrawText=function(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}},41406:(t,e,i)=>{var n=i(98886),r=i(60479),a=i(71131).WILL_BE_RESTORED,o=new r,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&n.normalizeTextStyle(i,!0);var r=i.text;if(null!=r&&(r+=""),n.needDrawText(r,i)){t.save();var s=this.transform;i.transformText?this.setTransform(t):s&&(o.copy(e),o.applyTransform(s),e=o),n.renderText(this,t,r,i,e,a),t.restore()}}};var l=s;t.exports=l},14826:(t,e,i)=>{var n=i(10712).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),h=Math.sin(a);t.moveTo(l*r+i,h*r+n),t.arc(i,n,r,a,o,!s)}});t.exports=n},54174:(t,e,i)=>{var n=i(10712),r=i(45280),a=i(18554),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,h=a.cubicAt,u=a.quadraticDerivativeAt,c=a.cubicDerivativeAt,d=[];function f(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?c:h)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?c:h)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?u:l)(t.x1,t.cpx1,t.x2,e),(i?u:l)(t.y1,t.cpy1,t.y2,e)]}var p=n.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,l=e.cpx1,h=e.cpy1,u=e.cpx2,c=e.cpy2,f=e.percent;0!==f&&(t.moveTo(i,n),null==u||null==c?(f<1&&(o(i,l,r,f,d),l=d[1],r=d[2],o(n,h,a,f,d),h=d[1],a=d[2]),t.quadraticCurveTo(l,h,r,a)):(f<1&&(s(i,l,u,r,f,d),l=d[1],u=d[2],r=d[3],s(n,h,c,a,f,d),h=d[1],c=d[2],a=d[3]),t.bezierCurveTo(l,h,u,c,r,a)))},pointAt:function(t){return f(this.shape,t,!1)},tangentAt:function(t){var e=f(this.shape,t,!0);return r.normalize(e,e)}});t.exports=p},69538:(t,e,i)=>{var n=i(10712).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=n},92797:(t,e,i)=>{var n=i(10712).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*i,l=o*i;t.moveTo(n-a,r),t.bezierCurveTo(n-a,r-l,n-s,r-o,n,r-o),t.bezierCurveTo(n+s,r-o,n+a,r-l,n+a,r),t.bezierCurveTo(n+a,r+l,n+s,r+o,n,r+o),t.bezierCurveTo(n-s,r+o,n-a,r+l,n-a,r),t.closePath()}});t.exports=n},22095:(t,e,i)=>{var n=i(10712),r=i(24111).subPixelOptimizeLine,a={},o=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i,n,o,s;this.subPixelOptimize?(r(a,e,this.style),i=a.x1,n=a.y1,o=a.x2,s=a.y2):(i=e.x1,n=e.y1,o=e.x2,s=e.y2);var l=e.percent;0!==l&&(t.moveTo(i,n),l<1&&(o=i*(1-l)+o*l,s=n*(1-l)+s*l),t.lineTo(o,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=o},95094:(t,e,i)=>{var n=i(10712),r=i(79209),a=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=a},62514:(t,e,i)=>{var n=i(10712),r=i(79209),a=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){r.buildPath(t,e,!1)}});t.exports=a},27304:(t,e,i)=>{var n=i(10712),r=i(48988),a=i(24111).subPixelOptimizeRect,o={},s=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i,n,s,l;this.subPixelOptimize?(a(o,e,this.style),i=o.x,n=o.y,s=o.width,l=o.height,o.r=e.r,e=o):(i=e.x,n=e.y,s=e.width,l=e.height),e.r?r.buildPath(t,e):t.rect(i,n,s,l),t.closePath()}});t.exports=s},85795:(t,e,i)=>{var n=i(10712).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}});t.exports=n},74520:(t,e,i)=>{var n=i(10712),r=i(60873),a=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r(n.prototype.brush),buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,h=Math.cos(o),u=Math.sin(o);t.moveTo(h*r+i,u*r+n),t.lineTo(h*a+i,u*a+n),t.arc(i,n,a,o,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,l),t.closePath()}});t.exports=a},7131:(t,e,i)=>{var n=i(64383),r=i(48612),a=i(33051),o=a.isString,s=a.isFunction,l=a.isObject,h=a.isArrayLike,u=a.indexOf,c=function(){this.animators=[]};function d(t,e,i,n,r,a,l,h){o(n)?(a=r,r=n,n=0):s(r)?(a=r,r="linear",n=0):s(n)?(a=n,n=0):s(i)?(a=i,i=500):i||(i=500),t.stopAnimation(),f(t,"",t,e,i,n,h);var u=t.animators.slice(),c=u.length;function d(){--c||a&&a()}c||a&&a();for(var p=0;p<u.length;p++)u[p].done(d).start(r,l)}function f(t,e,i,n,r,a,o){var s={},u=0;for(var c in n)n.hasOwnProperty(c)&&(null!=i[c]?l(n[c])&&!h(n[c])?f(t,e?e+"."+c:c,i[c],n[c],r,a,o):(o?(s[c]=i[c],p(t,e,c,n[c])):s[c]=n[c],u++):null==n[c]||o||p(t,e,c,n[c]));u>0&&t.animate(e,!1).when(null==r?500:r,s).delay(a||0)}function p(t,e,i,n){if(e){var r={};r[e]={},r[e][i]=n,t.attr(r)}else t.attr(i,n)}c.prototype={constructor:c,animate:function(t,e){var i,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),h=o;a="shape"===l[0];for(var c=0,d=l.length;c<d;c++)h&&(h=h[l[c]]);h&&(i=h)}else i=o;if(i){var f=o.animators,p=new n(i,e);return p.during((function(t){o.dirty(a)})).done((function(){f.splice(u(f,p),1)})),f.push(p),s&&s.animation.addAnimator(p),p}r('Property "'+t+'" is not existed in element '+o.id)},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;n<i;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,r,a){d(this,t,e,i,n,r,a)},animateFrom:function(t,e,i,n,r,a){d(this,t,e,i,n,r,a,!0)}};var g=c;t.exports=g},17780:t=>{function e(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function i(t,e){return{target:t,topTarget:e&&e.topTarget}}e.prototype={constructor:e,_dragStart:function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(i(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,a=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(a,o,t),this.dispatchToElement(i(e,t),"drag",t.event);var s=this.findHover(n,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(i(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(i(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(i(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(i(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var n=e;t.exports=n},41502:t=>{var e=Array.prototype.slice,i=function(t){this._$handlers={},this._$eventProcessor=t};function n(t,e,i,n,r,a){var o=t._$handlers;if("function"==typeof i&&(r=n,n=i,i=null),!n||!e)return t;i=function(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}(t,i),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===n)return t;var l={h:n,one:a,query:i,ctx:r||t,callAtLast:n.zrEventfulCallAtLast},h=o[e].length-1,u=o[e][h];return u&&u.callAtLast?o[e].splice(h,0,l):o[e].push(l),t}i.prototype={constructor:i,one:function(t,e,i,r){return n(this,t,e,i,r,!0)},on:function(t,e,i,r){return n(this,t,e,i,r,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t].length;r<a;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){var i=this._$handlers[t],n=this._$eventProcessor;if(i){var r=arguments,a=r.length;a>3&&(r=e.call(r,1));for(var o=i.length,s=0;s<o;){var l=i[s];if(n&&n.filter&&null!=l.query&&!n.filter(t,l.query))s++;else{switch(a){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,r[1]);break;case 3:l.h.call(l.ctx,r[1],r[2]);break;default:l.h.apply(l.ctx,r)}l.one?(i.splice(s,1),o--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this},triggerWithContext:function(t){var i=this._$handlers[t],n=this._$eventProcessor;if(i){var r=arguments,a=r.length;a>4&&(r=e.call(r,1,r.length-1));for(var o=r[r.length-1],s=i.length,l=0;l<s;){var h=i[l];if(n&&n.filter&&null!=h.query&&!n.filter(t,h.query))l++;else{switch(a){case 1:h.h.call(o);break;case 2:h.h.call(o,r[1]);break;case 3:h.h.call(o,r[1],r[2]);break;default:h.h.apply(o,r)}h.one?(i.splice(l,1),s--):l++}}}return n&&n.afterTrigger&&n.afterTrigger(t),this}};var r=i;t.exports=r},58023:(t,e,i)=>{var n=i(32892),r=i(45280),a=n.identity,o=5e-5;function s(t){return t>o||t<-5e-5}var l=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},h=l.prototype;h.transform=null,h.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var u=[];h.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),r=this.transform;if(i||e){r=r||n.create(),i?this.getLocalTransform(r):a(r),e&&(i?n.mul(r,t.transform,r):n.copy(r,t.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,h=((u[0]-s)*o+s)/u[0]||0,c=((u[1]-l)*o+l)/u[1]||0;r[0]*=h,r[1]*=h,r[2]*=c,r[3]*=c}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,r)}else r&&a(r)},h.getLocalTransform=function(t){return l.getLocalTransform(this,t)},h.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},h.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var c=[],d=n.create();h.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],r[0]=e,r[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},h.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(c,t.invTransform,e),e=c);var i=this.origin;i&&(i[0]||i[1])&&(d[4]=i[0],d[5]=i[1],n.mul(c,e,d),c[4]-=i[0],c[5]-=i[1],e=c),this.setLocalTransform(e)}},h.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},h.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&r.applyTransform(i,i,n),i},h.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&r.applyTransform(i,i,n),i},l.getLocalTransform=function(t,e){a(e=e||[]);var i=t.origin,r=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),n.scale(e,e,r),o&&n.rotate(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var f=l;t.exports=f},21092:(t,e,i)=>{var n=i(92528),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return t<0?0:t>1?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function h(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function u(t,e,i){return t+(e-t)*i}function c(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new n(20),p=null;function g(t,e){p&&d(p,e),p=f.put(t,p||e.slice())}function v(t,e){if(t){e=e||[];var i=f.get(t);if(i)return d(e,i);var n,a=(t+="").replace(/ /g,"").toLowerCase();if(a in r)return d(e,r[a]),g(t,e),e;if("#"===a.charAt(0))return 4===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=4095?(c(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),g(t,e),e):void c(e,0,0,0,1):7===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=16777215?(c(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),g(t,e),e):void c(e,0,0,0,1):void 0;var o=a.indexOf("("),h=a.indexOf(")");if(-1!==o&&h+1===a.length){var u=a.substr(0,o),p=a.substr(o+1,h-(o+1)).split(","),v=1;switch(u){case"rgba":if(4!==p.length)return void c(e,0,0,0,1);v=l(p.pop());case"rgb":return 3!==p.length?void c(e,0,0,0,1):(c(e,s(p[0]),s(p[1]),s(p[2]),v),g(t,e),e);case"hsla":return 4!==p.length?void c(e,0,0,0,1):(p[3]=l(p[3]),m(p,e),g(t,e),e);case"hsl":return 3!==p.length?void c(e,0,0,0,1):(m(p,e),g(t,e),e);default:return}}c(e,0,0,0,1)}}function m(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=l(t[1]),r=l(t[2]),o=r<=.5?r*(n+1):r+n-r*n,s=2*r-o;return c(e=e||[],a(255*h(s,o,i+1/3)),a(255*h(s,o,i)),a(255*h(s,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),r=Math.floor(n),s=Math.ceil(n),l=e[r],h=e[s],c=n-r;return i[0]=a(u(l[0],h[0],c)),i[1]=a(u(l[1],h[1],c)),i[2]=a(u(l[2],h[2],c)),i[3]=o(u(l[3],h[3],c)),i}}var _=y;function x(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),s=Math.ceil(n),l=v(e[r]),h=v(e[s]),c=n-r,d=w([a(u(l[0],h[0],c)),a(u(l[1],h[1],c)),a(u(l[2],h[2],c)),o(u(l[3],h[3],c))],"rgba");return i?{color:d,leftIndex:r,rightIndex:s,value:n}:d}}var b=x;function w(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}e.parse=v,e.lift=function(t,e){var i=v(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return w(i,4===i.length?"rgba":"rgb")}},e.toHex=function(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=y,e.fastMapToColor=_,e.lerp=x,e.mapToColor=b,e.modifyHSL=function(t,e,i,n){if(t=v(t))return t=function(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,h=(s+o)/2;if(0===l)e=0,i=0;else{i=h<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-c:r===s?e=1/3+u-d:a===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,h];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=i&&(t[1]=l(i)),null!=n&&(t[2]=l(n)),w(m(t),"rgba");var r},e.modifyAlpha=function(t,e){if((t=v(t))&&null!=e)return t[3]=o(e),w(t,"rgba")},e.stringify=w},10003:(t,e,i)=>{var n=i(8524),r=i(44535),a=i(96498),o=i(69538),s=i(27304),l=i(92797),h=i(22095),u=i(10712),c=i(95094),d=i(62514),f=i(74438),p=i(40342),g=i(32892),v=i(75991).createFromString,m=i(33051),y=m.isString,_=m.extend,x=m.defaults,b=m.trim,w=m.each,S=/[\s,]+/;function M(t){y(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(t,e){e=e||{};var i=M(t);if(!i)throw new Error("Illegal svg");var r=new n;this._root=r;var a=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),P(i,r,null,!0);for(var h,u,c=i.firstChild;c;)this._parseNode(c,r),c=c.nextSibling;if(a){var d=b(a).split(S);d.length>=4&&(h={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(h&&null!=o&&null!=l&&(u=z(h,o,l),!e.ignoreViewBox)){var f=r;(r=new n).add(f),f.scale=u.scale.slice(),f.position=u.position.slice()}return e.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:h,viewBoxTransform:u}},C.prototype._parseNode=function(t,e){var i,n,r=t.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(n=A[r]){var a=n.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else(n=T[r])&&(i=n.call(this,t,e),e.add(i));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},C.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var r=new a({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});I(e,r),P(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var T={g:function(t,e){var i=new n;return I(e,i),P(t,i,this._defs),i},rect:function(t,e){var i=new s;return I(e,i),P(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new o;return I(e,i),P(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new h;return I(e,i),P(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new l;return I(e,i),P(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=D(i));var n=new c({shape:{points:i||[]}});return I(e,n),P(t,n,this._defs),n},polyline:function(t,e){var i=new u;I(e,i),P(t,i,this._defs);var n=t.getAttribute("points");return n&&(n=D(n)),new d({shape:{points:n||[]}})},image:function(t,e){var i=new r;return I(e,i),P(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,r=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new n;return I(e,s),P(t,s,this._defs),s},tspan:function(t,e){var i=t.getAttribute("x"),r=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=r&&(this._textY=parseFloat(r));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new n;return I(e,s),P(t,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(t,e){var i=t.getAttribute("d")||"",n=v(i);return I(e,n),P(t,n,this._defs),n}},A={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new f(e,i,n,r);return function(t,e){var i=t.firstChild;for(;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var r=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,r)}i=i.nextSibling}}(t,a),a},radialgradient:function(t){}};function I(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),x(e.__inheritedStyle,t.__inheritedStyle))}function D(t){for(var e=b(t).split(S),i=[],n=0;n<e.length;n+=2){var r=parseFloat(e[n]),a=parseFloat(e[n+1]);i.push([r,a])}return i}var k={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function P(t,e,i,n){var r=e.__inheritedStyle||{},a="text"===e.type;if(1===t.nodeType&&(function(t,e){var i=t.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=null,r=[];i.replace(E,(function(t,e,i){r.push(e,i)}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(n=n||g.create(),s){case"translate":o=b(o).split(S),g.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=b(o).split(S),g.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=b(o).split(S),g.rotate(n,n,parseFloat(o[0]));break;case"skew":o=b(o).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":o=b(o).split(S);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5])}}e.setLocalTransform(n)}}(t,e),_(r,function(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n,r={};R.lastIndex=0;for(;null!=(n=R.exec(e));)r[n[1]]=n[2];for(var a in k)k.hasOwnProperty(a)&&null!=r[a]&&(i[k[a]]=r[a]);return i}(t)),!n))for(var o in k)if(k.hasOwnProperty(o)){var s=t.getAttribute(o);null!=s&&(r[k[o]]=s)}var l=a?"textFill":"fill",h=a?"textStroke":"stroke";e.style=e.style||new p;var u=e.style;null!=r.fill&&u.set(l,L(r.fill,i)),null!=r.stroke&&u.set(h,L(r.stroke,i)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&u.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&u.set(t,r[t])})),r.lineDash&&(e.style.lineDash=b(r.lineDash).split(S)),u[h]&&"none"!==u[h]&&(e[h]=!0),e.__inheritedStyle=r}var O=/url\(\s*#(.*?)\)/;function L(t,e){var i=e&&t&&t.match(O);return i?e[b(i[1])]:t}var E=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var R=/([^\s:;]+)\s*:\s*([^:;]+)/g;function z(t,e,i){var n=e/t.width,r=i/t.height,a=Math.min(n,r);return{scale:[a,a],position:[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+i/2]}}e.parseXML=M,e.makeViewBoxTransform=z,e.parseSVG=function(t,e){return(new C).parse(t,e)}},75991:(t,e,i)=>{var n=i(10712),r=i(14014),a=i(35028),o=Math.sqrt,s=Math.sin,l=Math.cos,h=Math.PI,u=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},c=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(u(t)*u(e))},d=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(c(t,e))};function f(t,e,i,n,r,a,u,f,p,g,v){var m=p*(h/180),y=l(m)*(t-i)/2+s(m)*(e-n)/2,_=-1*s(m)*(t-i)/2+l(m)*(e-n)/2,x=y*y/(u*u)+_*_/(f*f);x>1&&(u*=o(x),f*=o(x));var b=(r===a?-1:1)*o((u*u*(f*f)-u*u*(_*_)-f*f*(y*y))/(u*u*(_*_)+f*f*(y*y)))||0,w=b*u*_/f,S=b*-f*y/u,M=(t+i)/2+l(m)*w-s(m)*S,C=(e+n)/2+s(m)*w+l(m)*S,T=d([1,0],[(y-w)/u,(_-S)/f]),A=[(y-w)/u,(_-S)/f],I=[(-1*y-w)/u,(-1*_-S)/f],D=d(A,I);c(A,I)<=-1&&(D=h),c(A,I)>=1&&(D=0),0===a&&D>0&&(D-=2*h),1===a&&D<0&&(D+=2*h),v.addData(g,M,C,u,f,T,D,m,a)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v(t,e){var i=function(t){if(!t)return new r;for(var e,i=0,n=0,a=i,o=n,s=new r,l=r.CMD,h=t.match(p),u=0;u<h.length;u++){for(var c,d=h[u],v=d.charAt(0),m=d.match(g)||[],y=m.length,_=0;_<y;_++)m[_]=parseFloat(m[_]);for(var x=0;x<y;){var b,w,S,M,C,T,A,I=i,D=n;switch(v){case"l":i+=m[x++],n+=m[x++],c=l.L,s.addData(c,i,n);break;case"L":i=m[x++],n=m[x++],c=l.L,s.addData(c,i,n);break;case"m":i+=m[x++],n+=m[x++],c=l.M,s.addData(c,i,n),a=i,o=n,v="l";break;case"M":i=m[x++],n=m[x++],c=l.M,s.addData(c,i,n),a=i,o=n,v="L";break;case"h":i+=m[x++],c=l.L,s.addData(c,i,n);break;case"H":i=m[x++],c=l.L,s.addData(c,i,n);break;case"v":n+=m[x++],c=l.L,s.addData(c,i,n);break;case"V":n=m[x++],c=l.L,s.addData(c,i,n);break;case"C":c=l.C,s.addData(c,m[x++],m[x++],m[x++],m[x++],m[x++],m[x++]),i=m[x-2],n=m[x-1];break;case"c":c=l.C,s.addData(c,m[x++]+i,m[x++]+n,m[x++]+i,m[x++]+n,m[x++]+i,m[x++]+n),i+=m[x-2],n+=m[x-1];break;case"S":b=i,w=n;var k=s.len(),P=s.data;e===l.C&&(b+=i-P[k-4],w+=n-P[k-3]),c=l.C,I=m[x++],D=m[x++],i=m[x++],n=m[x++],s.addData(c,b,w,I,D,i,n);break;case"s":b=i,w=n,k=s.len(),P=s.data,e===l.C&&(b+=i-P[k-4],w+=n-P[k-3]),c=l.C,I=i+m[x++],D=n+m[x++],i+=m[x++],n+=m[x++],s.addData(c,b,w,I,D,i,n);break;case"Q":I=m[x++],D=m[x++],i=m[x++],n=m[x++],c=l.Q,s.addData(c,I,D,i,n);break;case"q":I=m[x++]+i,D=m[x++]+n,i+=m[x++],n+=m[x++],c=l.Q,s.addData(c,I,D,i,n);break;case"T":b=i,w=n,k=s.len(),P=s.data,e===l.Q&&(b+=i-P[k-4],w+=n-P[k-3]),i=m[x++],n=m[x++],c=l.Q,s.addData(c,b,w,i,n);break;case"t":b=i,w=n,k=s.len(),P=s.data,e===l.Q&&(b+=i-P[k-4],w+=n-P[k-3]),i+=m[x++],n+=m[x++],c=l.Q,s.addData(c,b,w,i,n);break;case"A":S=m[x++],M=m[x++],C=m[x++],T=m[x++],A=m[x++],f(I=i,D=n,i=m[x++],n=m[x++],T,A,S,M,C,c=l.A,s);break;case"a":S=m[x++],M=m[x++],C=m[x++],T=m[x++],A=m[x++],f(I=i,D=n,i+=m[x++],n+=m[x++],T,A,S,M,C,c=l.A,s)}}"z"!==v&&"Z"!==v||(c=l.Z,s.addData(c),i=a,n=o),e=c}return s.toStatic(),s}(t);return(e=e||{}).buildPath=function(t){if(t.setData){t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e)}else{var e=t;i.rebuildPath(e)}},e.applyTransform=function(t){a(i,t),this.dirty(!0)},e}e.createFromString=function(t,e){return new n(v(t,e))},e.extendFromString=function(t,e){return n.extend(v(t,e))},e.mergePath=function(t,e){for(var i=[],r=t.length,a=0;a<r;a++){var o=t[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new n(e);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},s}},35028:(t,e,i)=>{var n=i(14014),r=i(45280).applyTransform,a=n.CMD,o=[[],[],[]],s=Math.sqrt,l=Math.atan2;t.exports=function(t,e){var i,n,h,u,c,d=t.data,f=a.M,p=a.C,g=a.L,v=a.R,m=a.A,y=a.Q;for(h=0,u=0;h<d.length;){switch(i=d[h++],u=h,n=0,i){case f:case g:n=1;break;case p:n=3;break;case y:n=2;break;case m:var _=e[4],x=e[5],b=s(e[0]*e[0]+e[1]*e[1]),w=s(e[2]*e[2]+e[3]*e[3]),S=l(-e[1]/w,e[0]/b);d[h]*=b,d[h++]+=_,d[h]*=w,d[h++]+=x,d[h++]*=b,d[h++]*=w,d[h++]+=S,d[h++]+=S,u=h+=2;break;case v:M[0]=d[h++],M[1]=d[h++],r(M,M,e),d[u++]=M[0],d[u++]=M[1],M[0]+=d[h++],M[1]+=d[h++],r(M,M,e),d[u++]=M[0],d[u++]=M[1]}for(c=0;c<n;c++){var M;(M=o[c])[0]=d[h++],M[1]=d[h++],r(M,M,e),d[u++]=M[0],d[u++]=M[1]}}}},31931:(t,e,i)=>{var n=i(78038),r=i(66387),a=i(33051),o=i(48173),s=i(8822),l=i(19847),h=i(76069),u=i(85546),c=!r.canvasSupported,d={canvas:l},f={};var p=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,l=new s,f=i.renderer;if(c){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&d[f]||(f="canvas");var p=new d[f](e,l,i,t);this.storage=l,this.painter=p;var g=r.node||r.worker?null:new u(p.getViewportRoot(),p.root);this.handler=new o(l,p,g,p.root),this.animation=new h({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var v=l.delFromStorage,m=l.addToStorage;l.delFromStorage=function(t){v.call(l,t),t&&t.removeSelfFromZr(n)},l.addToStorage=function(t){m.call(l,t),t.addSelfToZr(n)}};p.prototype={constructor:p,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var i=this.painter.addHover(t,e);return this.refreshHover(),i}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete f[t]}},e.version="4.3.2",e.init=function(t,e){var i=new p(n(),t,e);return f[i.id]=i,i},e.dispose=function(t){if(t)t.dispose();else{for(var e in f)f.hasOwnProperty(e)&&f[e].dispose();f={}}return this},e.getInstance=function(t){return f[t]},e.registerPainter=function(t,e){d[t]=e}}}]);
Coded With 💗 by
HanzOFC