s[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function M(e,t,i){for(var n,a=0,r=1/0,o=0,s=e.length;oa&&(a=n));var l=e.area*e.area,u=t*t*i;return l?c(u*a/l,l/(u*r)):1/0}function I(e,t,i,n,a){var r=t===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],u=i[s[r]],d=t?e.area/t:0;(a||d>i[l[o]])&&(d=i[l[o]]);for(var f=0,p=e.length;fs&&(c=s),o=r}c0&&(o=null===o?l:Math.min(o,l))}i[a]=o}}return i}function v(e){var t=m(e),i=[];return n.each(e,(function(e){var n,a=e.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(s[1]-s[0]),h=o.scale.getExtent(),p=Math.abs(h[1]-h[0]);n=u?c/p*u:c}else{var g=e.getData();n=Math.abs(s[1]-s[0])/g.count()}var m=r(e.get("barWidth"),n),v=r(e.get("barMaxWidth"),n),y=r(e.get("barMinWidth")||1,n),x=e.get("barGap"),_=e.get("barCategoryGap");i.push({bandWidth:n,barWidth:m,barMaxWidth:v,barMinWidth:y,barGap:x,barCategoryGap:_,axisKey:f(o),stackId:d(e)})})),y(i)}function y(e){var t={};n.each(e,(function(e,i){var n=e.axisKey,a=e.bandWidth,r=t[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;t[n]=r;var s=e.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var h=e.barGap;null!=h&&(r.gap=h);var d=e.barCategoryGap;null!=d&&(r.categoryGap=d)}));var i={};return n.each(t,(function(e,t){i[t]={};var a=e.stacks,o=e.bandWidth,s=r(e.categoryGap,o),l=r(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),n.each(a,(function(e){var t=e.maxWidth,i=e.minWidth;if(e.width){n=e.width;t&&(n=Math.min(n,t)),i&&(n=Math.max(n,i)),e.width=n,u-=n+l*n,c--}else{var n=h;t&&tn&&(n=i),n!==h&&(e.width=n,u-=n+l*n,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;n.each(a,(function(e,t){e.width||(e.width=h),d=e,f+=e.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(a,(function(e,n){i[t][n]=i[t][n]||{bandWidth:o,offset:p,width:e.width},p+=e.width*(1+l)}))})),i}function x(e,t,i){if(e&&t){var n=e[f(t)];return null!=n&&null!=i&&(n=n[d(i)]),n}}function _(e,t){var i=g(e,t),a=v(i),r={},o={};n.each(i,(function(e){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),l=d(e),u=a[f(n)][l],c=u.offset,h=u.width,p=i.getOtherAxis(n),g=e.get("barMinHeight")||0;r[l]=r[l]||[],o[l]=o[l]||[],t.setLayout({bandWidth:u.bandWidth,offset:c,size:h});for(var m=t.mapDimension(p.dim),v=t.mapDimension(n.dim),y=s(t,m),x=p.isHorizontal(),_=M(n,p,y),b=0,w=t.count();b=0?"p":"n",P=_;if(y&&(r[l][D]||(r[l][D]={p:_,n:_}),P=r[l][D][L]),x){var k=i.dataToPoint([C,D]);S=P,I=k[1]+c,A=k[0]-_,T=h,Math.abs(A)c||(d=c),{progress:f}}function f(e,t){var c,f=e.count,p=new h(2*f),g=new h(2*f),m=new h(f),v=[],y=[],x=0,_=0;while(null!=(c=e.next()))y[u]=t.get(o,c),y[1-u]=t.get(s,c),v=i.dataToPoint(y,null,v),g[x]=l?n.x+n.width:v[0],p[x++]=v[0],g[x]=l?v[1]:n.y+n.height,p[x++]=v[1],m[_++]=c;t.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:g,barWidth:d,valueAxisStart:M(a,r,!1),backgroundStart:l?n.x:n.y,valueAxisHorizontal:l})}}};function w(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function S(e){return e.pipelineContext&&e.pipelineContext.large}function M(e,t,i){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=p,t.prepareLayoutBarSeries=g,t.makeColumnLayout=v,t.retrieveColumnLayout=x,t.layout=_,t.largeLayout=b},"9e2e":function(e,t,i){var n=i("a73c"),a=i("9850"),r=i("82eb"),o=r.WILL_BE_RESTORED,s=new a,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var a=i.text;if(null!=a&&(a+=""),n.needDrawText(a,i)){e.save();var r=this.transform;i.transformText?this.setTransform(e):r&&(s.copy(t),s.applyTransform(r),t=s),n.renderText(this,e,a,i,t,o),e.restore()}}};var u=l;e.exports=u},"9e47":function(e,t,i){var n=i("6d8b"),a=i("71ad"),r=i("6cb7"),o=i("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,u=i("8e43"),c=["value","category","time","log"];function h(e,t,i,o){n.each(c,(function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,a){var o=this.layoutMode,u=o?s(t):{},c=a.getTheme();n.merge(t,c.get(r+"Axis")),n.merge(t,this.getDefaultOption()),t.type=i(e,t),o&&l(t,u,o)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},a[r+"Axis"],o],!0)})})),r.registerSubTypeDefaulter(e+"Axis",n.curry(i,e))}e.exports=h},"9e87":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("50e5");n.registerAction("dataZoom",(function(e,t){var i=r.createLinkedNodesFinder(a.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),n=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){n.push.apply(n,i(e).nodes)})),a.each(n,(function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},"9f51":function(e,t,i){var n=i("857d"),a=n.normalizeRadian,r=2*Math.PI;function o(e,t,i,n,o,s,l,u,c){if(0===l)return!1;var h=l;u-=e,c-=t;var d=Math.sqrt(u*u+c*c);if(d-h>i||d+ho&&(o+=r);var p=Math.atan2(c,u);return p<0&&(p+=r),p>=n&&p<=o||p+r>=n&&p+r<=o}t.containStroke=o},"9f82":function(e,t,i){var n=i("ee1a"),a=n.isDimensionStacked,r=i("6d8b"),o=r.map;function s(e,t,i){var n,r=e.getBaseAxis(),s=e.getOtherAxis(r),u=l(s,i),c=r.dim,h=s.dim,d=t.mapDimension(h),f=t.mapDimension(c),p="x"===h||"radius"===h?1:0,g=o(e.dimensions,(function(e){return t.mapDimension(e)})),m=t.getCalculationInfo("stackResultDimension");return(n|=a(t,g[0]))&&(g[0]=m),(n|=a(t,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:u,valueAxisDim:h,baseAxisDim:c,stacked:!!n,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function l(e,t){var i=0,n=e.scale.getExtent();return"start"===t?i=n[0]:"end"===t?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function u(e,t,i,n){var a=NaN;e.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=i.get(e.baseDim,n),o[1-r]=a,t.dataToPoint(o)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=u},"9fa3":function(e,t,i){var n=i("4ab1"),a=i("6d8b"),r=i("1687");function o(e,t){n.call(this,e,t,"clipPath","__clippath_in_use__")}a.inherits(o,n),o.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var i=this.getTextSvgElement(e);i&&this.updateDom(i,e.__clipPaths,!0),this.markUsed(e)},o.prototype.updateDom=function(e,t,i){if(t&&t.length>0){var n,a,o=this.getDefs(!0),s=t[0],l=i?"_textDom":"_dom";s[l]?(a=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",a),o.appendChild(n),s[l]=n);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var c=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);n.innerHTML="",n.appendChild(h.cloneNode()),e.setAttribute("clip-path","url(#"+a+")"),t.length>1&&this.updateDom(n,t.slice(1),i)}else e&&e.setAttribute("clip-path","none")},o.prototype.markUsed=function(e){var t=this;e.__clipPaths&&a.each(e.__clipPaths,(function(e){e._dom&&n.prototype.markUsed.call(t,e._dom),e._textDom&&n.prototype.markUsed.call(t,e._textDom)}))};var s=o;e.exports=s},a016:function(e,t,i){var n=i("4f85"),a=i("e46b"),r=i("6d8b"),o=i("eda2"),s=o.encodeHTML,l=i("c4a3"),u=n.extend({type:"series.radar",dependencies:["radar"],init:function(e){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(r.bind(this.getData,this),r.bind(this.getRawData,this))},getInitialData:function(e,t){return a(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,i,n){var a=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),u=this.getData().getName(e),c="html"===n?"
":"\n";return s(""===u?this.name:u)+c+r.map(l,(function(t,i){var n=a.get(a.mapDimension(t.dim),e);return s(t.name+" : "+n)})).join(c)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),i=this.coordinateSystem,n=t.getValues(r.map(i.dimensions,(function(e){return t.mapDimension(e)})),e,!0),a=0,o=n.length;a0){e.moveTo(i[a++],i[a++]);for(var o=1;o0){var h=(s+u)/2-(l-c)*n,d=(l+c)/2-(u-s)*n;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}},findDataIndex:function(e,t){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var s=0,l=0;l0)for(var c=n[l++],h=n[l++],d=1;d0){var g=(c+f)/2-(h-p)*a,m=(h+p)/2-(f-c)*a;if(o.containStroke(c,h,g,m,f,p))return s}else if(r.containStroke(c,h,f,p))return s;s++}return-1}});function l(){this.group=new n.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t){var i=new s;i.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(i,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=e.start,this.group.add(i))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(e,t,i){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("color");a&&e.setStyle("stroke",a),e.setStyle("fill"),i||(e.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i+e.__startIndex)})))},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var c=l;e.exports=c},a4b1:function(e,t,i){var n=i("3eba");i("00ba"),i("4d62");var a=i("98e7"),r=i("24b9"),o=i("d3f4");n.registerVisual(a("funnel")),n.registerLayout(r),n.registerProcessor(o("funnel"))},a4fe:function(e,t,i){var n=i("3eba"),a="\0_ec_interaction_mutex";function r(e,t,i){var n=l(e);n[t]=i}function o(e,t,i){var n=l(e),a=n[t];a===i&&(n[t]=null)}function s(e,t){return!!l(e)[t]}function l(e){return e[a]||(e[a]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=r,t.release=o,t.isTaken=s},a666:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",u=n.extendChartView({type:"map",render:function(e,t,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===e.id){r=this._mapDraw;r&&a.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new o(i,!0);a.add(r.group),r.draw(e,t,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),(function(t,i){if(!isNaN(t)){var u=n.getItemLayout(i);if(u&&u.point){var d=u.point,f=u.offset,p=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:d[0]+9*f,cy:d[1],r:3},silent:!0,z2:8+(f?0:r.Z2_EMPHASIS_LIFT+1)});if(!f){var g=e.mainSeries.getData(),m=n.getName(i),v=g.indexOfName(m),y=n.getItemModel(i),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(v),w=a.retrieve2(e.getFormattedLabel(v,"normal"),m),S=a.retrieve2(e.getFormattedLabel(v,"emphasis"),w),M=b[s],I=Math.random();if(!M){M=b[s]={};var A=a.curry(c,!0),T=a.curry(c,!1);b.on("mouseover",A).on("mouseout",T).on("emphasis",A).on("normal",T)}b[l]=I,a.extend(M,{recordVersion:I,circle:p,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),h(M,!1)}o.add(p)}}}))}});function c(e){var t=this[s];t&&t.recordVersion===this[l]&&h(t,e)}function h(e,t){var i=e.circle,n=e.labelModel,a=e.hoverLabelModel,o=e.emphasisText,s=e.normalText;t?(i.style.extendFrom(r.setTextStyle({},a,{text:a.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}e.exports=u},a73c:function(e,t,i){var n=i("6d8b"),a=n.retrieve2,r=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,u=n.isObject,c=i("e86a"),h=i("5693"),d=i("5e76"),f=i("7d6d"),p=i("82eb"),g=p.ContextCachedBy,m=p.WILL_BE_RESTORED,v=c.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(e){return M(e),o(e.rich,M),e}function M(e){if(e){e.font=c.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||y[t]?t:"left";var i=e.textVerticalAlign||e.textBaseline;"center"===i&&(i="middle"),e.textVerticalAlign=null==i||x[i]?i:"top";var n=e.textPadding;n&&(e.textPadding=s(e.textPadding))}}function I(e,t,i,n,a,r){n.rich?T(e,t,i,n,a,r):A(e,t,i,n,a,r)}function A(e,t,i,n,a,r){"use strict";var o,s=P(n),l=!1,u=t.__attrCachedBy===g.PLAIN_TEXT;r!==m?(r&&(o=r.style,l=!s&&u&&o),t.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(t.__attrCachedBy=g.NONE);var h=n.font||v;l&&h===(o.font||v)||(t.font=h);var d=e.__computedFont;e.__styleFont!==h&&(e.__styleFont=h,d=e.__computedFont=t.font);var p=n.textPadding,y=n.textLineHeight,x=e.__textCotentBlock;x&&!e.__dirtyText||(x=e.__textCotentBlock=c.parsePlainText(i,d,p,y,n.truncate));var b=x.outerHeight,S=x.lines,M=x.lineHeight,I=R(w,e,n,a),A=I.baseX,T=I.baseY,C=I.textAlign||"left",L=I.textVerticalAlign;D(t,n,a,A,T);var O=c.adjustTextY(T,b,L),E=A,V=O;if(s||p){var F=c.getWidth(i,d),G=F;p&&(G+=p[1]+p[3]);var H=c.adjustTextX(A,G,C);s&&k(e,t,n,H,O,G,b),p&&(E=B(A,C,p),V+=p[0])}t.textAlign=C,t.textBaseline="middle",t.globalAlpha=n.opacity||1;for(var W=0;W<_.length;W++){var U=_[W],Z=U[0],Y=U[1],j=n[Z];l&&j===o[Z]||(t[Y]=f(t,Y,j||U[2]))}V+=M/2;var X=n.textStrokeWidth,q=l?o.textStrokeWidth:null,K=!l||X!==q,$=!l||K||n.textStroke!==o.textStroke,J=N(n.textStroke,X),Q=z(n.textFill);if(J&&(K&&(t.lineWidth=X),$&&(t.strokeStyle=J)),Q&&(l&&n.textFill===o.textFill||(t.fillStyle=Q)),1===S.length)J&&t.strokeText(S[0],E,V),Q&&t.fillText(S[0],E,V);else for(W=0;W=0&&(b=M[N],"right"===b.textAlign))L(e,t,b,n,A,y,E,"right"),T-=b.width,E-=b.width,N--;O+=(r-(O-v)-(x-E)-T)/2;while(C<=N)b=M[C],L(e,t,b,n,A,y,O+b.width/2,"center"),O+=b.width,C++;y+=A}}function D(e,t,i,n,a){if(i&&t.textRotation){var r=t.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),e.translate(n,a),e.rotate(-t.textRotation),e.translate(-n,-a)}}function L(e,t,i,n,o,s,l,u){var c=n.rich[i.styleName]||{};c.text=i.text;var h=i.textVerticalAlign,d=s+o/2;"top"===h?d=s+i.height/2:"bottom"===h&&(d=s+o-i.height/2),!i.isLineHolder&&P(c)&&k(e,t,c,"right"===u?l-i.width:"center"===u?l-i.width/2:l,d-i.height/2,i.width,i.height);var f=i.textPadding;f&&(l=B(l,u,f),d-=i.height/2-f[2]-i.textHeight/2),E(t,"shadowBlur",r(c.textShadowBlur,n.textShadowBlur,0)),E(t,"shadowColor",c.textShadowColor||n.textShadowColor||"transparent"),E(t,"shadowOffsetX",r(c.textShadowOffsetX,n.textShadowOffsetX,0)),E(t,"shadowOffsetY",r(c.textShadowOffsetY,n.textShadowOffsetY,0)),E(t,"textAlign",u),E(t,"textBaseline","middle"),E(t,"font",i.font||v);var p=N(c.textStroke||n.textStroke,m),g=z(c.textFill||n.textFill),m=a(c.textStrokeWidth,n.textStrokeWidth);p&&(E(t,"lineWidth",m),E(t,"strokeStyle",p),t.strokeText(i.text,l,d)),g&&(E(t,"fillStyle",g),t.fillText(i.text,l,d))}function P(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function k(e,t,i,n,a,r,o){var s=i.textBackgroundColor,c=i.textBorderWidth,f=i.textBorderColor,p=l(s);if(E(t,"shadowBlur",i.textBoxShadowBlur||0),E(t,"shadowColor",i.textBoxShadowColor||"transparent"),E(t,"shadowOffsetX",i.textBoxShadowOffsetX||0),E(t,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||c&&f){t.beginPath();var g=i.textBorderRadius;g?h.buildPath(t,{x:n,y:a,width:r,height:o,r:g}):t.rect(n,a,r,o),t.closePath()}if(p)if(E(t,"fillStyle",s),null!=i.fillOpacity){var m=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,t.fill(),t.globalAlpha=m}else t.fill();else if(u(s)){var v=s.image;v=d.createOrUpdateImage(v,null,e,O,s),v&&d.isImageReady(v)&&t.drawImage(v,n,a,r,o)}if(c&&f)if(E(t,"lineWidth",c),E(t,"strokeStyle",f),null!=i.strokeOpacity){m=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,t.stroke(),t.globalAlpha=m}else t.stroke()}function O(e,t){t.image=e}function R(e,t,i,n){var a=i.x||0,r=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)a=n.x+V(l[0],n.width),r=n.y+V(l[1],n.height);else{var u=t&&t.calculateTextPosition?t.calculateTextPosition(b,i,n):c.calculateTextPosition(b,i,n);a=u.x,r=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var h=i.textOffset;h&&(a+=h[0],r+=h[1])}return e=e||{},e.baseX=a,e.baseY=r,e.textAlign=o,e.textVerticalAlign=s,e}function E(e,t,i){return e[t]=f(e,t,i),e[t]}function N(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function z(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function V(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function B(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function F(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=S,t.renderText=I,t.getBoxPosition=R,t.getStroke=N,t.getFill=z,t.parsePercent=V,t.needDrawText=F},a753:function(e,t,i){var n=i("1f0e"),a=i("2306"),r=i("e887"),o=i("3842"),s=o.parsePercent,l=o.round,u=o.linearMap;function c(e,t){var i=e.get("center"),n=t.getWidth(),a=t.getHeight(),r=Math.min(n,a),o=s(i[0],t.getWidth()),l=s(i[1],t.getHeight()),u=s(e.get("radius"),r/2);return{cx:o,cy:l,r:u}}function h(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var d=2*Math.PI,f=r.extend({type:"gauge",render:function(e,t,i){this.group.removeAll();var n=e.get("axisLine.lineStyle.color"),a=c(e,i);this._renderMain(e,t,i,n,a)},dispose:function(){},_renderMain:function(e,t,i,n,r){for(var o=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),u=e.get("clockwise"),c=-e.get("startAngle")/180*Math.PI,h=-e.get("endAngle")/180*Math.PI,f=(h-c)%d,p=c,g=l.get("width"),m=s.get("show"),v=0;m&&v=e&&(0===t?0:n[t-1][0]).4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){P=Math.cos(I),k=Math.sin(I);var V=new a.Line({shape:{x1:P*g+f,y1:k*g+p,x2:P*(g-M)+f,y2:k*(g-M)+p},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:n((L+z/w)/b)}),d.add(V),I+=T}I-=T}else I+=A}},_renderPointer:function(e,t,i,r,o,l,c,h){var d=this.group,f=this._data;if(e.get("pointer.show")){var p=[+e.get("min"),+e.get("max")],g=[l,c],m=e.getData(),v=m.mapDimension("value");m.diff(f).add((function(t){var i=new n({shape:{angle:l}});a.initProps(i,{shape:{angle:u(m.get(v,t),p,g,!0)}},e),d.add(i),m.setItemGraphicEl(t,i)})).update((function(t,i){var n=f.getItemGraphicEl(i);a.updateProps(n,{shape:{angle:u(m.get(v,t),p,g,!0)}},e),d.add(n),m.setItemGraphicEl(t,n)})).remove((function(e){var t=f.getItemGraphicEl(e);d.remove(t)})).execute(),m.eachItemGraphicEl((function(e,t){var i=m.getItemModel(t),n=i.getModel("pointer");e.setShape({x:o.cx,y:o.cy,width:s(n.get("width"),o.r),r:s(n.get("length"),o.r)}),e.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(u(m.get(v,t),p,[0,1],!0))),a.setHoverStyle(e,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else f&&f.eachItemGraphicEl((function(e){d.remove(e)}))},_renderTitle:function(e,t,i,n,r){var o=e.getData(),l=o.mapDimension("value"),c=e.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),d=r.cx+s(h[0],r.r),f=r.cy+s(h[1],r.r),p=+e.get("min"),g=+e.get("max"),m=e.getData().get(l,0),v=n(u(m,[p,g],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},c,{x:d,y:f,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(e,t,i,n,r){var o=e.getModel("detail"),l=+e.get("min"),c=+e.get("max");if(o.get("show")){var d=o.get("offsetCenter"),f=r.cx+s(d[0],r.r),p=r.cy+s(d[1],r.r),g=s(o.get("width"),r.r),m=s(o.get("height"),r.r),v=e.getData(),y=v.get(v.mapDimension("value"),0),x=n(u(y,[l,c],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},o,{x:f,y:p,text:h(y,o.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),p=f;e.exports=p},a7e2:function(e,t,i){var n=i("3eba");i("7293"),i("ae46");var a=i("6582"),r=i("ee98");n.registerLayout(a),n.registerVisual(r)},a7f2:function(e,t){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:i[0]})}e.exports=n},a87d:function(e,t,i){var n=i("22d1"),a=i("401b"),r=a.applyTransform,o=i("9850"),s=i("41ef"),l=i("e86a"),u=i("a73c"),c=i("9e2e"),h=i("19eb"),d=i("0da8"),f=i("76a5"),p=i("cbe5"),g=i("20c8"),m=i("42e5"),v=i("d3a4"),y=g.CMD,x=Math.round,_=Math.sqrt,b=Math.abs,w=Math.cos,S=Math.sin,M=Math.max;if(!n.canvasSupported){var I=",",A="progid:DXImageTransform.Microsoft",T=21600,C=T/2,D=1e5,L=1e3,P=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=T+","+T,e.coordorigin="0,0"},k=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""")},O=function(e,t,i){return"rgb("+[e,t,i].join(",")+")"},R=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},E=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},N=function(e,t,i){return(parseFloat(e)||0)*D+(parseFloat(t)||0)*L+i},z=u.parsePercent,V=function(e,t,i){var n=s.parse(t);i=+i,isNaN(i)&&(i=1),n&&(e.color=O(n[0],n[1],n[2]),e.opacity=i*n[3])},B=function(e){var t=s.parse(e);return[O(t[0],t[1],t[2]),t[3]]},F=function(e,t,i){var n=t.fill;if(null!=n)if(n instanceof m){var a,o=0,s=[0,0],l=0,u=1,c=i.getBoundingRect(),h=c.width,d=c.height;if("linear"===n.type){a="gradient";var f=i.transform,p=[n.x*h,n.y*d],g=[n.x2*h,n.y2*d];f&&(r(p,p,f),r(g,g,f));var v=g[0]-p[0],y=g[1]-p[1];o=180*Math.atan2(v,y)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{a="gradientradial";p=[n.x*h,n.y*d],f=i.transform;var x=i.scale,_=h,b=d;s=[(p[0]-c.x)/_,(p[1]-c.y)/b],f&&r(p,p,f),_/=x[0]*T,b/=x[1]*T;var w=M(_,b);l=0/w,u=2*n.r/w-l}var S=n.colorStops.slice();S.sort((function(e,t){return e.offset-t.offset}));for(var I=S.length,A=[],C=[],D=0;D=2){var k=A[0][0],O=A[1][0],R=A[0][1]*t.opacity,E=A[1][1]*t.opacity;e.type=a,e.method="none",e.focus="100%",e.angle=o,e.color=k,e.color2=O,e.colors=C.join(","),e.opacity=E,e.opacity2=R}"radial"===a&&(e.focusposition=s.join(","))}else V(e,n,t.opacity)},G=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof m||V(e,t.stroke,t.opacity)},H=function(e,t,i,n){var a="fill"===t,r=e.getElementsByTagName(t)[0];null!=i[t]&&"none"!==i[t]&&(a||!a&&i.lineWidth)?(e[a?"filled":"stroked"]="true",i[t]instanceof m&&E(e,r),r||(r=v.createNode(t)),a?F(r,i,n):G(r,i),R(e,r)):(e[a?"filled":"stroked"]="false",E(e,r))},W=[[],[],[]],U=function(e,t){var i,n,a,o,s,l,u=y.M,c=y.C,h=y.L,d=y.A,f=y.Q,p=[],g=e.data,m=e.len();for(o=0;o.01?H&&(U+=270/T):Math.abs(Z-z)<1e-4?H&&UN?A-=270/T:A+=270/T:H&&Zz?M+=270/T:M-=270/T),p.push(Y,x(((N-V)*O+P)*T-C),I,x(((z-B)*R+k)*T-C),I,x(((N+V)*O+P)*T-C),I,x(((z+B)*R+k)*T-C),I,x((U*O+P)*T-C),I,x((Z*R+k)*T-C),I,x((M*O+P)*T-C),I,x((A*R+k)*T-C)),s=M,l=A;break;case y.R:var j=W[0],X=W[1];j[0]=g[o++],j[1]=g[o++],X[0]=j[0]+g[o++],X[1]=j[1]+g[o++],t&&(r(j,j,t),r(X,X,t)),j[0]=x(j[0]*T-C),X[0]=x(X[0]*T-C),j[1]=x(j[1]*T-C),X[1]=x(X[1]*T-C),p.push(" m ",j[0],I,j[1]," l ",X[0],I,j[1]," l ",X[0],I,X[1]," l ",j[0],I,X[1]);break;case y.Z:p.push(" x ")}if(i>0){p.push(n);for(var q=0;qK&&(q=0,X={});var i,n=$.style;try{n.font=e,i=n.fontFamily.split(",")[0]}catch(a){}t={style:n.fontStyle||j,variant:n.fontVariant||j,weight:n.fontWeight||j,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},X[e]=t,q++}return t};l.$override("measureText",(function(e,t){var i=v.doc;Y||(Y=i.createElement("div"),Y.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(Y));try{Y.style.font=t}catch(n){}return Y.innerHTML="",Y.appendChild(i.createTextNode(e)),{width:Y.offsetWidth}}));for(var Q=new o,ee=function(e,t,i,n){var a=this.style;this.__dirty&&u.normalizeTextStyle(a,!0);var o=a.text;if(null!=o&&(o+=""),o){if(a.rich){var s=l.parseRichText(o,a);o=[];for(var c=0;cf?f=g:(p.lastTickCount=r,p.lastAutoInterval=f),f}},n.inherits(u,r);var c=u;e.exports=c},aa01:function(e,t,i){var n=i("6d8b"),a=i("4f85"),r=i("06c7"),o=i("4319"),s=i("55ac"),l=s.wrapTreePathInfo,u=a.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var i={name:e.name,children:e.data};c(i);var a=n.map(e.levels||[],(function(e){return new o(e,this,t)}),this),s=r.createTree(i,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var i=s.getNodeByDataIndex(t),n=a[i.depth];return n&&(e.parentModel=n),e}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(i,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function c(e){var t=0;n.each(e.children,(function(e){c(e);var i=e.value;n.isArray(i)&&(i=i[0]),t+=i}));var i=e.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=t),i<0&&(i=0),n.isArray(e.value)?e.value[0]=i:e.value=i}e.exports=u},aa3e:function(e,t,i){var n=i("6d8b");function a(e,t){return t=t||[0,0],n.map(["x","y"],(function(i,n){var a=this.getAxis(i),r=t[n],o=e[n]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function r(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(a,e)}}}e.exports=r},aadf:function(e,t,i){var n=i("3eba"),a=i("6d8b");i("5aa9"),i("d6d9"),i("3329");var r=i("9d57"),o=r.layout,s=i("7f96");i("01ed"),n.registerLayout(a.curry(o,"pictorialBar")),n.registerVisual(s("pictorialBar","roundRect"))},ab05:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2b8c"),o=i("5f14"),s=n.PRIORITY.VISUAL.COMPONENT;function l(e,t,i,n){for(var a=t.targetVisuals[n],r=o.prepareVisualTypes(a),s={color:e.getData().getVisual("color")},l=0,u=r.length;l1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=o().reset(e);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_getClipShape:function(e){var t=e.coordinateSystem,i=t&&t.getArea&&t.getArea();return e.get("clip",!0)?i:null},_updateSymbolDraw:function(e,t){var i=this._symbolDraw,n=t.pipelineContext,o=n.large;return i&&o===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=o?new r:new a,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(e,t,i){var n=i("cbe5"),a=i("401b"),r=i("4a3f"),o=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,u=r.cubicAt,c=r.quadraticDerivativeAt,h=r.cubicDerivativeAt,d=[];function f(e,t,i){var n=e.cpx2,a=e.cpy2;return null===n||null===a?[(i?h:u)(e.x1,e.cpx1,e.cpx2,e.x2,t),(i?h:u)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(i?c:l)(e.x1,e.cpx1,e.x2,t),(i?c:l)(e.y1,e.cpy1,e.y2,t)]}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(e,t){var i=t.x1,n=t.y1,a=t.x2,r=t.y2,l=t.cpx1,u=t.cpy1,c=t.cpx2,h=t.cpy2,f=t.percent;0!==f&&(e.moveTo(i,n),null==c||null==h?(f<1&&(o(i,l,a,f,d),l=d[1],a=d[2],o(n,u,r,f,d),u=d[1],r=d[2]),e.quadraticCurveTo(l,u,a,r)):(f<1&&(s(i,l,c,a,f,d),l=d[1],c=d[2],a=d[3],s(n,u,h,r,f,d),u=d[1],h=d[2],r=d[3]),e.bezierCurveTo(l,u,c,h,a,r)))},pointAt:function(e){return f(this.shape,e,!1)},tangentAt:function(e){var t=f(this.shape,e,!0);return a.normalize(t,t)}});e.exports=p},adda:function(e,t,i){var n=i("94e4"),a=n.circularLayout;function r(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&a(e,"symbolSize")}))}e.exports=r},adf4:function(e,t,i){var n=i("4f85"),a=i("b1d4"),r=i("2f45"),o=r.getDimensionTypeByAxis,s=i("6179"),l=i("6d8b"),u=i("e0d3"),c=u.groupData,h=i("eda2"),d=h.encodeHTML,f=i("c4a3"),p=2,g=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){g.superApply(this,"init",arguments),this.legendVisualProvider=new f(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(e){var t=e.length,i={},n=c(e,(function(e){return i.hasOwnProperty(e[0])||(i[e[0]]=-1),e[2]})),a=[];n.buckets.each((function(e,t){a.push({name:t,dataList:e})}));for(var r=a.length,o=0;o=0&&(this.delFromStorage(e),this._roots.splice(o,1),e instanceof r&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;e.exports=u},b006:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("fab2"),o=i("fc82"),s=i("f4a2"),l=i("2306"),u=["axisLine","axisTickLabel","axisName"],c=n.extendComponentView({type:"parallelAxis",init:function(e,t){c.superApply(this,"init",arguments),(this._brushController=new o(t.getZr())).on("brush",a.bind(this._onBrush,this))},render:function(e,t,i,n){if(!h(e,t,n)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var s=f(e,t),c=s.coordinateSystem,d=e.getAreaSelectStyle(),p=d.width,g=e.axis.dim,m=c.getAxisLayout(g),v=a.extend({strokeContainThreshold:p},m),y=new r(e,v);a.each(u,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,d,e,s,p,i);var x=n&&!1===n.animation?null:e;l.groupTransition(o,this._axisGroup,x)}}},_refreshBrushController:function(e,t,i,n,a,r){var o=i.axis.getExtent(),u=o[1]-o[0],c=Math.min(30,.1*Math.abs(u)),h=l.BoundingRect.create({x:o[0],y:-a/2,width:u,height:a});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(h),isTargetByCursor:s.makeRectIsTargetByCursor(h,r,n),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(d(i))},_onBrush:function(e,t){var i=this.axisModel,n=i.axis,r=a.map(e,(function(e){return[n.coordToData(e.range[0],!0),n.coordToData(e.range[1],!0)]}));(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},dispose:function(){this._brushController.dispose()}});function h(e,t,i){return i&&"axisAreaSelect"===i.type&&t.findComponents({mainType:"parallelAxis",query:i})[0]===e}function d(e){var t=e.axis;return a.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function f(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var p=c;e.exports=p},b0af:function(e,t,i){var n=i("2306"),a=i("3842"),r=a.round;function o(e,t,i){var a=e.getArea(),r=e.getBaseAxis().isHorizontal(),o=a.x,s=a.y,l=a.width,u=a.height,c=i.get("lineStyle.width")||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var h=new n.Rect({shape:{x:o,y:s,width:l,height:u}});return t&&(h.shape[r?"width":"height"]=0,n.initProps(h,{shape:{width:l,height:u}},i)),h}function s(e,t,i){var a=e.getArea(),o=new n.Sector({shape:{cx:r(e.cx,1),cy:r(e.cy,1),r0:r(a.r0,1),r:r(a.r,1),startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});return t&&(o.shape.endAngle=a.startAngle,n.initProps(o,{shape:{endAngle:a.endAngle}},i)),o}function l(e,t,i){return e?"polar"===e.type?s(e,t,i):"cartesian2d"===e.type?o(e,t,i):null:null}t.createGridClipPath=o,t.createPolarClipPath=s,t.createClipPath=l},b11c:function(e,t,i){i("8ec5"),i("db9e"),i("4e9f"),i("d3a0"),i("767c"),i("7c4d"),i("df70")},b12f:function(e,t,i){var n=i("e1fc"),a=i("8918"),r=i("625e"),o=function(){this.group=new n,this.uid=a.getUID("viewComponent")};o.prototype={constructor:o,init:function(e,t){},render:function(e,t,i,n){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,i,n){},r.enableClassExtend(o),r.enableClassManagement(o,{registerWhenExtend:!0});var l=o;e.exports=l},b16f:function(e,t,i){var n=i("4ab1"),a=i("6d8b"),r=i("4942"),o=i("41ef");function s(e,t){n.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}a.inherits(s,n),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var i=this;a.each(["fill","stroke"],(function(n){if(t.style[n]&&("linear"===t.style[n].type||"radial"===t.style[n].type)){var a,r=t.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(t);var s=a.getAttribute("id");e.setAttribute(n,"url(#"+s+")")}}))}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return r("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;n.prototype.update.call(this,e,(function(){var i=e.type,n=e._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void r("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var i=e.colorStops,n=0,a=i.length;n-1){var u=o.parse(l)[3],c=o.toHex(l);s.setAttribute("stop-color","#"+c),s.setAttribute("stop-opacity",u)}else s.setAttribute("stop-color",i[n].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&n.prototype.markUsed.call(this,t._dom),t=e.style.stroke,t&&t._dom&&n.prototype.markUsed.call(this,t._dom)}};var l=s;e.exports=l},b1d4:function(e,t,i){var n=i("862d");function a(e,t){return t=t||{},n(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}e.exports=a},b336:function(e,t,i){var n=i("6d8b"),a=n.each;function r(e){var t=e&&e.visualMap;n.isArray(t)||(t=t?[t]:[]),a(t,(function(e){if(e){o(e,"splitList")&&!o(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&n.isArray(t)&&a(t,(function(e){n.isObject(e)&&(o(e,"start")&&!o(e,"min")&&(e.min=e.start),o(e,"end")&&!o(e,"max")&&(e.max=e.end))}))}}))}function o(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=r},b369:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("80f0"),s=i("55ac"),l=i("f610"),u=i("4a01"),c=i("9850"),h=i("1687"),d=i("e6cd"),f=i("282b"),p=i("eda2"),g=p.windowOpen,m=a.bind,v=r.Group,y=r.Rect,x=a.each,_=3,b=["label"],w=["emphasis","label"],S=["upperLabel"],M=["emphasis","upperLabel"],I=10,A=1,T=2,C=f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),D=function(e){var t=C(e);return t.stroke=t.fill=t.lineWidth=null,t},L=n.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=P(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,i,n){var r=t.findComponents({mainType:"series",subType:"treemap",query:n});if(!(a.indexOf(r,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(n,o,e),u=n&&n.type,c=e.layoutInfo,h=!this._oldTree,d=this._storage,f="treemapRootToNode"===u&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(c),g=this._doRender(p,e,f);h||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?g.renderFinally():this._doAnimation(p,g,e,f),this._resetController(i),this._renderBreadcrumb(e,i,l)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new v,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,i){var n=t.getData().tree,r=this._oldTree,s=P(),l=P(),u=this._storage,c=[],h=a.curry(k,t,l,u,i,s,c);f(n.root?[n.root]:[],r&&r.root?[r.root]:[],e,n===r||!r,0);var d=p(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:g};function f(e,t,i,n,r){function s(e){return e.getId()}function l(a,o){var s=null!=a?e[a]:null,l=null!=o?t[o]:null,u=h(s,l,i,r);u&&f(s&&s.viewChildren||[],l&&l.viewChildren||[],u,n,r+1)}n?(t=e,x(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new o(t,e,s,s).add(l).update(l).remove(a.curry(l,null)).execute()}function p(e){var t=P();return e&&x(e,(function(e,i){var n=t[i];x(e,(function(e){e&&(n.push(e),e.__tmWillDelete=1)}))})),t}function g(){x(d,(function(e){x(e,(function(e){e.parent&&e.parent.remove(e)}))})),x(c,(function(e){e.invisible=!0,e.dirty()}))}},_doAnimation:function(e,t,i,n){if(i.get("animation")){var r=i.get("animationDurationUpdate"),o=i.get("animationEasing"),s=d.createWrap();x(t.willDeleteEls,(function(e,t){x(e,(function(e,i){if(!e.invisible){var a,l=e.parent;if(n&&"drillDown"===n.direction)a=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),a="nodeGroup"===t?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}a&&s.add(e,a,r,o)}}))})),x(this._storage,(function(e,i){x(e,(function(e,n){var l=t.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(u.shape=a.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),u.style={opacity:1}):1!==e.style.opacity&&(u.style={opacity:1})),s.add(e,u,r,o))}))}),this),this._state="animating",s.done(m((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new u(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",m(this._onPan,this)),t.on("zoom",m(this._onZoom,this)));var i=new c(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>_||Math.abs(e.dy)>_)){var t=this.seriesModel.getData().tree.root;if(!t)return;var i=t.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},_onZoom:function(e){var t=e.originX,i=e.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new c(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;t-=o.x,i-=o.y;var s=h.create();h.translate(s,s,[-t,-i]),h.scale(s,s,[e.scale,e.scale]),h.translate(s,s,[t,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var i=this.findTarget(e.offsetX,e.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===t)this._zoomToNode(i);else if("link"===t){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&g(r,o)}}}}}),this)},_renderBreadcrumb:function(e,t,i){function n(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}i||(i=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,i.node,m(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=P(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(e,t),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}}),this),i}});function P(){return{nodeGroup:[],background:[],content:[]}}function k(e,t,i,n,o,s,l,u,c,h){if(l){var d=l.getLayout(),f=e.getData();if(f.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var p=d.width,g=d.height,m=d.borderWidth,x=d.invisible,_=l.getRawIndex(),I=u&&u.getRawIndex(),L=l.viewChildren,P=d.upperHeight,k=L&&L.length,R=l.getModel("itemStyle"),E=l.getModel("emphasis.itemStyle"),N=Z("nodeGroup",v);if(N){if(c.add(N),N.attr("position",[d.x||0,d.y||0]),N.__tmNodeWidth=p,N.__tmNodeHeight=g,d.isAboveViewRoot)return N;var z=l.getModel(),V=Z("background",y,h,A);if(V&&F(N,V,k&&d.upperLabelHeight),k)r.isHighDownDispatcher(N)&&r.setAsHighDownDispatcher(N,!1),V&&(r.setAsHighDownDispatcher(V,!0),f.setItemGraphicEl(l.dataIndex,V));else{var B=Z("content",y,h,T);B&&G(N,B),V&&r.isHighDownDispatcher(V)&&r.setAsHighDownDispatcher(V,!1),r.setAsHighDownDispatcher(N,!0),f.setItemGraphicEl(l.dataIndex,N)}return N}}}function F(t,i,n){if(i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex,i.setShape({x:0,y:0,width:p,height:g}),x)H(i);else{i.invisible=!1;var a=l.getVisual("borderColor",!0),o=E.get("borderColor"),s=D(R);s.fill=a;var u=C(E);if(u.fill=o,n){var c=p-2*m;W(s,u,a,c,P,{x:m,y:0,width:c,height:P})}else s.text=u.text=null;i.setStyle(s),r.setElementHoverStyle(i,u)}t.add(i)}function G(t,i){i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex;var n=Math.max(p-2*m,0),a=Math.max(g-2*m,0);if(i.culling=!0,i.setShape({x:m,y:m,width:n,height:a}),x)H(i);else{i.invisible=!1;var o=l.getVisual("color",!0),s=D(R);s.fill=o;var u=C(E);W(s,u,o,n,a),i.setStyle(s),r.setElementHoverStyle(i,u)}t.add(i)}function H(e){!e.invisible&&s.push(e)}function W(t,i,n,o,s,u){var c=z.get("name"),h=z.getModel(u?S:b),f=z.getModel(u?M:w),p=h.getShallow("show");r.setLabelStyle(t,i,h,f,{defaultText:p?c:null,autoColor:n,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),U(t,u,d),U(i,u,d),u&&(t.textRect=a.clone(u)),t.truncate=p&&h.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function U(t,i,n){var a=t.text;if(!i&&n.isLeafRoot&&null!=a){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+a:a}}function Z(e,n,a,r){var s=null!=I&&i[e][I],l=o[e];return s?(i[e][I]=null,Y(l,s,e)):x||(s=new n({z:O(a,r)}),s.__tmDepth=a,s.__tmStorageName=e,j(l,s,e)),t[e][_]=s}function Y(e,t,i){var n=e[_]={};n.old="nodeGroup"===i?t.position.slice():a.extend({},t.shape)}function j(e,t,i){var a=e[_]={},r=l.parentNode;if(r&&(!n||"drillDown"===n.direction)){var s=0,u=0,c=o.background[r.getRawIndex()];!n&&c&&c.old&&(s=c.old.width,u=c.old.height),a.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}a.fadein="nodeGroup"!==i}}function O(e,t){var i=e*I+t;return(i-1)/i}e.exports=L},b419:function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("4319"),o=i("6679"),s=i("fab2"),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(e,t,i){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],i]),a=e.coordToPoint([t[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function c(e){var t=e.getRadiusAxis();return t.inverse?0:1}function h(e){var t=e[0],i=e[e.length-1];t&&i&&Math.abs(Math.abs(t.coord-i.coord)-360)<1e-4&&e.pop()}var d=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,a=i.polar,r=a.getRadiusAxis().getExtent(),o=i.getTicksCoords(),s=i.getMinorTicksCoords(),u=n.map(i.getViewLabels(),(function(e){e=n.clone(e);return e.coord=i.dataToCoord(e.tickValue),e}));h(u),h(o),n.each(l,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,a,o,s,r,u)}),this)}},_axisLine:function(e,t,i,n,r){var o,s=e.getModel("axisLine.lineStyle"),l=c(t),u=l?0:1;o=0===r[u]?new a.Circle({shape:{cx:t.cx,cy:t.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new a.Ring({shape:{cx:t.cx,cy:t.cy,r:r[l],r0:r[u]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,this.group.add(o)},_axisTick:function(e,t,i,r,o){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=o[c(t)],d=n.map(i,(function(e){return new a.Line({shape:u(t,[h,h+l],e.coord)})}));this.group.add(a.mergePath(d,{style:n.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,i,r,o){if(r.length){for(var s=e.getModel("axisTick"),l=e.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),d=o[c(t)],f=[],p=0;pv?"left":"right",_=Math.abs(m[1]-y)/g<.3?"middle":m[1]>y?"top":"bottom";h&&h[u]&&h[u].textStyle&&(o=new r(h[u].textStyle,d,d.ecModel));var b=new a.Text({silent:s.isLabelSilent(e)});this.group.add(b),a.setTextStyle(b.style,o,{x:m[0],y:m[1],textFill:o.getTextColor()||e.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:x,textVerticalAlign:_}),p&&(b.eventData=s.makeAxisEventDataBase(e),b.eventData.targetType="axisLabel",b.eventData.value=i.rawLabel)}),this)},_splitLine:function(e,t,i,r,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:r}),t.eachSeries((function(e,t){if(t1?"multiple":"single")+".";i=g(n?a+"withName":a+"withoutName"),i=p(i,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:v(e.subType)});var s=e.getData();window.data=s,s.count()>l?i+=p(g("data.partialData"),{displayCnt:l}):i+=g("data.allData");for(var u=[],h=0;hl+o)break;if(e[r].y+=n,r>t&&r+1e[r].y+e[r].height)return void h(r,n/2)}h(i-1,n/2)}function h(t,i){for(var n=t;n>=0;n--){if(e[n].y-i