(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~be6a9b4d"],{"0046":function(e,t,a){var o=a("6d8b"),i=o.each,n=o.createHashMap,r=a("4f85"),s=a("3301"),l=r.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var a=this.getSource();return u(a,this),s(a,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,a=this.getData(),o=[];return t.eachActiveState(a,function(t,i){e===t&&o.push(a.getRawIndex(i))}),o},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function u(e,t){if(!e.encodeDefine){var a=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(a){var o=e.encodeDefine=n();i(a.dimensions,function(e){var t=c(e);o.set(e,t)})}}}function c(e){return+e.replace("dim","")}e.exports=l},"0817":function(e,t,a){var o=a("3eba");a("f306"),a("0046"),a("60d7");var i=a("ab71");o.registerVisual(i)},"0e0f":function(e,t,a){var o=a("5f14"),i=a("6d8b");function n(e,t){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes;if(a.length){var n=1/0,r=-1/0;i.each(a,function(e){var t=e.getLayout().value;tr&&(r=t)}),i.each(a,function(t){var a=new o({type:"color",mappingMethod:"linear",dataExtent:[n,r],visual:e.get("color")}),i=a.mapValueToVisual(t.getLayout().value);t.setVisual("color",i);var s=t.getModel(),l=s.get("itemStyle.color");null!=l&&t.setVisual("color",l)})}})}e.exports=n},"0fd3":function(e,t,a){var o=a("2306"),i=a("7e5b"),n=a("6d8b"),r=a("a15a"),s=r.createSymbol,l=a("401b"),u=a("4a3f");function c(e,t,a){o.Group.call(this),this.add(this.createLine(e,t,a)),this._updateEffectSymbol(e,t)}var d=c.prototype;d.createLine=function(e,t,a){return new i(e,t,a)},d._updateEffectSymbol=function(e,t){var a=e.getItemModel(t),o=a.getModel("effect"),i=o.get("symbolSize"),r=o.get("symbol");n.isArray(i)||(i=[i,i]);var l=o.get("color")||e.getItemVisual(t,"color"),u=this.childAt(1);this._symbolType!==r&&(this.remove(u),u=s(r,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(o.getItemStyle(["color"])),u.attr("scale",i),u.setColor(l),u.attr("scale",i),this._symbolType=r,this._updateEffectAnimation(e,o,t))},d._updateEffectAnimation=function(e,t,a){var o=this.childAt(1);if(o){var i=this,r=e.getItemLayout(a),s=1e3*t.get("period"),l=t.get("loop"),u=t.get("constantSpeed"),c=n.retrieve(t.get("delay"),function(t){return t/e.count()*s/3}),d="function"===typeof c;if(o.ignore=!0,this.updateAnimationPoints(o,r),u>0&&(s=this.getLineLength(o)/u*1e3),s!==this._period||l!==this._loop){o.stopAnimation();var h=c;d&&(h=c(a)),o.__t>0&&(h=-s*o.__t),o.__t=0;var p=o.animate("",l).when(s,{__t:1}).delay(h).during(function(){i.updateSymbolPosition(o)});l||p.done(function(){i.remove(o)}),p.start()}this._period=s,this._loop=l}},d.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},d.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},d.updateData=function(e,t,a){this.childAt(0).updateData(e,t,a),this._updateEffectSymbol(e,t)},d.updateSymbolPosition=function(e){var t=e.__p1,a=e.__p2,o=e.__cp1,i=e.__t,n=e.position,r=u.quadraticAt,s=u.quadraticDerivativeAt;n[0]=r(t[0],o[0],a[0],i),n[1]=r(t[1],o[1],a[1],i);var l=s(t[0],o[0],a[0],i),c=s(t[1],o[1],a[1],i);e.rotation=-Math.atan2(c,l)-Math.PI/2,e.ignore=!1},d.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var a=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,a,t)},n.inherits(c,o.Group);var h=c;e.exports=h},1418:function(e,t,a){var o=a("6d8b"),i=a("a15a"),n=i.createSymbol,r=a("2306"),s=a("3842"),l=s.parsePercent,u=a("c775"),c=u.getDefaultLabel;function d(e,t,a){r.Group.call(this),this.updateData(e,t,a)}var h=d.prototype,p=d.getSymbolSize=function(e,t){var a=e.getItemVisual(t,"symbolSize");return a instanceof Array?a.slice():[+a,+a]};function g(e){return[e[0]/2,e[1]/2]}function f(e,t){this.parent.drift(e,t)}h._createSymbol=function(e,t,a,o,i){this.removeAll();var r=t.getItemVisual(a,"color"),s=n(e,-1,-1,2,2,r,i);s.attr({z2:100,culling:!0,scale:g(o)}),s.drift=f,this._symbolType=e,this.add(s)},h.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},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(e,t){var a=this.childAt(0);a.zlevel=e,a.z=t},h.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":"pointer"},h.updateData=function(e,t,a){this.silent=!1;var o=e.getItemVisual(t,"symbol")||"circle",i=e.hostModel,n=p(e,t),s=o!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(o,e,t,n,l)}else{var u=this.childAt(0);u.silent=!1,r.updateProps(u,{scale:g(n)},i,t)}if(this._updateCommon(e,t,n,a),s){u=this.childAt(0);var c=a&&a.fadeIn,d={scale:u.scale.slice()};c&&(d.style={opacity:u.style.opacity}),u.scale=[0,0],c&&(u.style.opacity=0),r.initProps(u,d,i,t)}this._seriesModel=i};var m=["itemStyle"],y=["emphasis","itemStyle"],v=["label"],x=["emphasis","label"];function b(){!r.isInEmphasis(this)&&S.call(this)}function _(){!r.isInEmphasis(this)&&w.call(this)}function S(){if(!this.incremental&&!this.useHoverLayer){var e=this.__symbolOriginalScale,t=e[1]/e[0];this.animateTo({scale:[Math.max(1.1*e[0],e[0]+3),Math.max(1.1*e[1],e[1]+3*t)]},400,"elasticOut")}}function w(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}h._updateCommon=function(e,t,a,i){var n=this.childAt(0),s=e.hostModel,u=e.getItemVisual(t,"color");"image"!==n.type&&n.useStyle({strokeNoScale:!0});var d=i&&i.itemStyle,h=i&&i.hoverItemStyle,p=i&&i.symbolRotate,f=i&&i.symbolOffset,I=i&&i.labelModel,L=i&&i.hoverLabelModel,A=i&&i.hoverAnimation,M=i&&i.cursorStyle;if(!i||e.hasItemOption){var D=i&&i.itemModel?i.itemModel:e.getItemModel(t);d=D.getModel(m).getItemStyle(["color"]),h=D.getModel(y).getItemStyle(),p=D.getShallow("symbolRotate"),f=D.getShallow("symbolOffset"),I=D.getModel(v),L=D.getModel(x),A=D.getShallow("hoverAnimation"),M=D.getShallow("cursor")}else h=o.extend({},h);var N=n.style;n.attr("rotation",(p||0)*Math.PI/180||0),f&&n.attr("position",[l(f[0],a[0]),l(f[1],a[1])]),M&&n.attr("cursor",M),n.setColor(u,i&&i.symbolInnerColor),n.setStyle(d);var C=e.getItemVisual(t,"opacity");null!=C&&(N.opacity=C);var P=e.getItemVisual(t,"liftZ"),T=n.__z2Origin;null!=P?null==T&&(n.__z2Origin=n.z2,n.z2+=P):null!=T&&(n.z2=T,n.__z2Origin=null);var E=i&&i.useNameLabel;function V(t,a){return E?e.getName(t):c(e,t)}r.setLabelStyle(N,h,I,L,{labelFetcher:s,labelDataIndex:t,defaultText:V,isRectText:!0,autoColor:u}),n.off("mouseover").off("mouseout").off("emphasis").off("normal"),n.hoverStyle=h,r.setHoverStyle(n),n.__symbolOriginalScale=g(a),A&&s.isAnimationEnabled()&&n.on("mouseover",b).on("mouseout",_).on("emphasis",S).on("normal",w)},h.fadeOut=function(e,t){var a=this.childAt(0);this.silent=a.silent=!0,(!t||!t.keepLabel)&&(a.style.text=null),r.updateProps(a,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},o.inherits(d,r.Group);var I=d;e.exports=I},1466:function(e,t,a){var o=a("3eba"),i=a("2306"),n=a("6d8b"),r=a("a15a");function s(e){return n.isArray(e)||(e=[+e,+e]),e}var l=o.extendChartView({type:"radar",render:function(e,t,a){var o=e.coordinateSystem,l=this.group,u=e.getData(),c=this._data;function d(e,t){var a=e.getItemVisual(t,"symbol")||"circle",o=e.getItemVisual(t,"color");if("none"!==a){var i=s(e.getItemVisual(t,"symbolSize")),n=r.createSymbol(a,-1,-1,2,2,o);return n.attr({style:{strokeNoScale:!0},z2:100,scale:[i[0]/2,i[1]/2]}),n}}function h(t,a,o,n,r,s){o.removeAll();for(var l=0;l0&&"scale"!==h){var f=n.getItemLayout(0),m=Math.max(a.getWidth(),a.getHeight())/2,y=o.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(f.cx,f.cy,m,f.startAngle,f.clockwise,y,e))}else u.removeClipPath();this._data=n}},dispose:function(){},_createClipPath:function(e,t,a,o,n,r,s){var l=new i.Sector({shape:{cx:e,cy:t,r0:0,r:a,startAngle:o,endAngle:o,clockwise:n}});return i.initProps(l,{shape:{endAngle:o+(n?1:-1)*Math.PI*2}},s,r),l},containPoint:function(e,t){var a=t.getData(),o=a.getItemLayout(0);if(o){var i=e[0]-o.cx,n=e[1]-o.cy,r=Math.sqrt(i*i+n*n);return r<=o.r&&r>=o.r0}}}),d=c;e.exports=d},"1c5f":function(e,t,a){var o=a("401b");function i(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var a=e.getGraph();a.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),n(a)}}function n(e){e.eachEdge(function(e){var t=e.getModel().get("lineStyle.curveness")||0,a=o.clone(e.node1.getLayout()),i=o.clone(e.node2.getLayout()),n=[a,i];+t&&n.push([(a[0]+i[0])/2-(a[1]-i[1])*t,(a[1]+i[1])/2-(i[0]-a[0])*t]),e.setLayout(n)})}t.simpleLayout=i,t.simpleLayoutEdge=n},2163:function(e,t,a){var o=a("4f85"),i=a("06c7"),n=a("eda2"),r=n.encodeHTML,s=o.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},a=e.leaves||{},o={};o.leaves=a;var n=i.createTree(t,this,o),r=0;n.eachNode("preorder",function(e){e.depth>r&&(r=e.depth)});var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return n.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l}),n.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,a=t.root.children[0],o=t.getNodeByDataIndex(e),i=o.getValue(),n=o.name;while(o&&o!==a)n=o.parentNode.name+"."+n,o=o.parentNode;return r(n+(isNaN(i)||null==i?"":" : "+i))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=s},"217b":function(e,t,a){var o=a("4e08"),i=(o.__DEV__,a("3301")),n=a("4f85"),r=n.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return i(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!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}});e.exports=r},"22da":function(e,t,a){var o=a("f934");function i(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,a,o=[e];while(t=o.pop())if(a=t.children,t.isExpand&&a.length)for(var i=a.length,n=i-1;n>=0;n--){var r=a[n];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:n,thread:null},o.push(r)}}function n(e,t){var a=e.isExpand?e.children:[],o=e.parentNode.children,i=e.hierNode.i?o[e.hierNode.i-1]:null;if(a.length){c(e);var n=(a[0].hierNode.prelim+a[a.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-n):e.hierNode.prelim=n}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=d(e,i,e.parentNode.hierNode.defaultAncestor||o[0],t)}function r(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:m}function l(e,t){var a={};return e-=Math.PI/2,a.x=t*Math.cos(e),a.y=t*Math.sin(e),a}function u(e,t){return o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e){var t=e.children,a=t.length,o=0,i=0;while(--a>=0){var n=t[a];n.hierNode.prelim+=o,n.hierNode.modifier+=o,i+=n.hierNode.change,o+=n.hierNode.shift+i}}function d(e,t,a,o){if(t){var i=e,n=e,r=n.parentNode.children[0],s=t,l=i.hierNode.modifier,u=n.hierNode.modifier,c=r.hierNode.modifier,d=s.hierNode.modifier;while(s=h(s),n=p(n),s&&n){i=h(i),r=p(r),i.hierNode.ancestor=e;var m=s.hierNode.prelim+d-n.hierNode.prelim-u+o(s,n);m>0&&(f(g(s,e,a),e,m),u+=m,l+=m),d+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,c+=r.hierNode.modifier}s&&!h(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),n&&!p(r)&&(r.hierNode.thread=n,r.hierNode.modifier+=u-c,a=e)}return a}function h(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function p(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function g(e,t,a){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:a}function f(e,t,a){var o=a/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=o,t.hierNode.shift+=a,t.hierNode.modifier+=a,t.hierNode.prelim+=a,e.hierNode.change+=o}function m(e,t){return e.parentNode===t.parentNode?1:2}t.init=i,t.firstWalk=n,t.secondWalk=r,t.separation=s,t.radialCoordinate=l,t.getViewRect=u},"237f":function(e,t,a){var o=a("6d8b"),i=a("6179"),n=a("7368"),r=a("31d9"),s=a("b1d4"),l=a("2039"),u=a("3301");function c(e,t,a,c,d){for(var h=new n(c),p=0;p "+x)),m++)}var b,_=a.get("coordinateSystem");if("cartesian2d"===_||"polar"===_)b=u(e,a);else{var S=l.get(_),w=S&&"view"!==S.type&&S.dimensions||[];o.indexOf(w,"value")<0&&w.concat(["value"]);var I=s(e,{coordDimensions:w});b=new i(I,a),b.initData(e)}var L=new i(["value"],a);return L.initData(f,g),d&&d(b,L),r({mainData:b,struct:h,structAttr:"graph",datas:{node:b,edge:L},datasAttr:{node:"data",edge:"edgeData"}}),h.update(),h}e.exports=c},"23eef":function(e,t,a){var o=a("3eba");a("879e"),a("9704"),a("d747");var i=a("675a"),n=a("7f96"),r=a("2943"),s=a("de6e"),l=a("d357"),u=a("adda"),c=a("5866"),d=a("7b0c");o.registerProcessor(i),o.registerVisual(n("graph","circle",null)),o.registerVisual(r),o.registerVisual(s),o.registerLayout(l),o.registerLayout(u),o.registerLayout(c),o.registerCoordinateSystem("graphView",{create:d})},"255c":function(e,t,a){var o=a("3eba"),i=a("d4d1"),n=i.Polygon,r=a("2306"),s=a("6d8b"),l=s.bind,u=s.extend,c=a("80f0"),d=o.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,a){var o=e.getData(),i=this.group,s=e.getLayerSeries(),d=o.getLayout("layoutInfo"),p=d.rect,g=d.boundaryGap;function f(e){return e.name}i.attr("position",[0,p.y+g[0]]);var m=new c(this._layersSeries||[],s,f,f),y={};function v(t,a,l){var c=this._layers;if("remove"!==t){for(var d,p,g,f=[],m=[],v=s[a].indices,x=0;x0){s.virtualPiece?s.virtualPiece.updateData(!1,a,"normal",e,t):(s.virtualPiece=new n(a,e,t),d.add(s.virtualPiece)),o.piece._onclickEvent&&o.piece.off("click",o.piece._onclickEvent);var i=function(e){s._rootToNode(o.parentNode)};o.piece._onclickEvent=i,s.virtualPiece.on("click",i)}else s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var a=!1,o=e.seriesModel.getViewRoot();o.eachNode(function(o){if(!a&&o.piece&&o.piece.childAt(0)===t.target){var i=o.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(o);else if("link"===i){var n=o.getModel(),r=n.get("link");if(r){var s=n.get("target",!0)||"_blank";window.open(r,s)}}a=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:s,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var a=t.getData(),o=a.getItemLayout(0);if(o){var i=e[0]-o.cx,n=e[1]-o.cy,r=Math.sqrt(i*i+n*n);return r<=o.r&&r>=o.r0}}}),u=l;e.exports=u},3970:function(e,t,a){var o=a("4f85"),i=a("3301"),n=a("2039"),r=o.extend({type:"series.heatmap",getInitialData:function(e,t){return i(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=n.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=r},4411:function(e,t,a){for(var o=a("3eba"),i=a("55ac"),n=function(){},r=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s=0;o--){r=t[o].interval;if(r[0]<=e&&e<=r[1]){n=o;break}}return o>=0&&o=t[0]&&e<=t[1]}}function c(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=i.extendChartView({type:"heatmap",render:function(e,t,a){var o;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(a){a===e&&(o=t)})}),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):c(i)&&this._renderOnGeo(i,e,o,a)},incrementalPrepareRender:function(e,t,a){this.group.removeAll()},incrementalRender:function(e,t,a,o){var i=t.coordinateSystem;i&&this._renderOnCartesianAndCalendar(t,o,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,a,o,i){var r,l,u=e.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),d=u.getAxis("y");r=c.getBandWidth(),l=d.getBandWidth()}for(var h=this.group,p=e.getData(),g="itemStyle",f="emphasis.itemStyle",m="label",y="emphasis.label",v=e.getModel(g).getItemStyle(["color"]),x=e.getModel(f).getItemStyle(),b=e.getModel(m),_=e.getModel(y),S=u.type,w="cartesian2d"===S?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],I=a;I=0?o+=f:o-=f:b>=0?o-=f:o+=f}return o}function h(e,t){var a=[],n=o.quadraticSubdivide,r=[[],[],[]],s=[[],[]],l=[];function u(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),t}t/=2,e.eachEdge(function(e,o){var c=e.getLayout(),h=e.getVisual("fromSymbol"),p=e.getVisual("toSymbol");c.__original||(c.__original=[i.clone(c[0]),i.clone(c[1])],c[2]&&c.__original.push(i.clone(c[2])));var g=c.__original;if(null!=c[2]){if(i.copy(r[0],g[0]),i.copy(r[1],g[2]),i.copy(r[2],g[1]),h&&"none"!==h){var f=u(e.node1),m=d(r,g[0],f*t);n(r[0][0],r[1][0],r[2][0],m,a),r[0][0]=a[3],r[1][0]=a[4],n(r[0][1],r[1][1],r[2][1],m,a),r[0][1]=a[3],r[1][1]=a[4]}if(p&&"none"!==p){f=u(e.node2),m=d(r,g[1],f*t);n(r[0][0],r[1][0],r[2][0],m,a),r[1][0]=a[1],r[2][0]=a[2],n(r[0][1],r[1][1],r[2][1],m,a),r[1][1]=a[1],r[2][1]=a[2]}i.copy(c[0],r[0]),i.copy(c[1],r[2]),i.copy(c[2],r[1])}else{if(i.copy(s[0],g[0]),i.copy(s[1],g[1]),i.sub(l,s[1],s[0]),i.normalize(l,l),h&&"none"!==h){f=u(e.node1);i.scaleAndAdd(s[0],s[0],l,f*t)}if(p&&"none"!==p){f=u(e.node2);i.scaleAndAdd(s[1],s[1],l,-f*t)}i.copy(c[0],s[0]),i.copy(c[1],s[1])}})}e.exports=h},"4e10":function(e,t,a){var o=a("6d8b"),i=a("e46b"),n=a("4f85"),r=a("eda2"),s=r.encodeHTML,l=r.addCommas,u=a("7023"),c=a("2b17"),d=c.retrieveRawAttr,h=a("5b87"),p=n.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=i(this,["value"]),a=t.mapDimension("value"),n=o.createHashMap(),r=[],s=[],l=0,u=t.count();l"+s(o+" : "+a)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),a=this.coordinateSystem,o=a.getRegion(t);return o&&a.dataToPoint(o.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});o.mixin(p,u);var g=p;e.exports=g},"4e47":function(e,t,a){var o=a("6d8b"),i=a("2306"),n={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},r=2,s=4;function l(e,t,a){i.Group.call(this);var o=new i.Sector({z2:r});o.seriesIndex=t.seriesIndex;var n=new i.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){n.ignore=n.hoverIgnore}function u(){n.ignore=n.normalIgnore}this.add(o),this.add(n),this.updateData(!0,e,"normal",t,a),this.on("emphasis",l).on("normal",u).on("mouseover",l).on("mouseout",u)}var u=l.prototype;u.updateData=function(e,t,a,n,r){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),u=t.getLayout(),c=o.extend({},u);c.label=null;var h=d(t,n,r);g(t,n,h);var p,f=l.getModel("itemStyle").getItemStyle();if("normal"===a)p=f;else{var m=l.getModel(a+".itemStyle").getItemStyle();p=o.merge(m,f)}p=o.defaults({lineJoin:"bevel",fill:p.fill||h},p),e?(s.setShape(c),s.shape.r=u.r0,i.updateProps(s,{shape:{r:u.r}},n,t.dataIndex),s.useStyle(p)):"object"===typeof p.fill&&p.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(i.updateProps(s,{shape:c},n),s.useStyle(p)):i.updateProps(s,{shape:c,style:p},n),this._updateLabel(n,h,a);var y=l.getShallow("cursor");if(y&&s.attr("cursor",y),e){var v=n.getShallow("highlightPolicy");this._initEvents(s,t,n,v)}this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel},u.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode(function(a){a.piece&&(t.node===a?a.piece.updateData(!1,a,"emphasis"):p(a,t.node,e)?a.piece.childAt(0).trigger("highlight"):e!==n.NONE&&a.piece.childAt(0).trigger("downplay"))})},u.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(e,t,a){var n=this.node.getModel(),r=n.getModel("label"),s="normal"===a||"emphasis"===a?r:n.getModel(a+".label"),l=n.getModel("emphasis.label"),u=o.retrieve(e.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===L("show")&&(u="");var c=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=r.get("minAngle")),d=d/180*Math.PI;var h=c.endAngle-c.startAngle;null!=d&&Math.abs(h)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(g=c.r0+x,f>Math.PI/2&&(b="right")):"right"===b&&(g=c.r-x,f>Math.PI/2&&(b="left")):(g=(c.r+c.r0)/2,b="center"),p.attr("style",{text:u,textAlign:b,textVerticalAlign:L("verticalAlign")||"middle",opacity:L("opacity")});var _=g*m+c.cx,S=g*y+c.cy;p.attr("position",[_,S]);var w=L("rotate"),I=0;function L(e){var t=s.get(e);return null==t?r.get(e):t}"radial"===w?(I=-f,I<-Math.PI/2&&(I+=Math.PI)):"tangential"===w?(I=Math.PI/2-f,I>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):"number"===typeof w&&(I=w*Math.PI/180),p.attr("rotation",I)},u._initEvents=function(e,t,a,o){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var i=this,n=function(){i.onEmphasis(o)},r=function(){i.onNormal()},s=function(){i.onDownplay()},l=function(){i.onHighlight()};a.isAnimationEnabled()&&e.on("mouseover",n).on("mouseout",r).on("emphasis",n).on("normal",r).on("downplay",s).on("highlight",l)},o.inherits(l,i.Group);var c=l;function d(e,t,a){var o=e.getVisual("color"),i=e.getVisual("visualMeta");i&&0!==i.length||(o=null);var n=e.getModel("itemStyle").get("color");if(n)return n;if(o)return o;if(0===e.depth)return a.option.color[0];var r=a.option.color.length;return n=a.option.color[h(e)%r],n}function h(e){var t=e;while(t.depth>1)t=t.parentNode;var a=e.getAncestors()[0];return o.indexOf(a.children,t)}function p(e,t,a){return a!==n.NONE&&(a===n.SELF?e===t:a===n.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function g(e,t,a){var o=t.getData();o.setItemVisual(e.dataIndex,"color",a)}e.exports=c},"527a":function(e,t,a){var o=a("6d8b"),i=a("3842");function n(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),a=e.coordinateSystem,o={},n=a.getRect();o.rect=n;var s=e.get("boundaryGap"),l=a.getAxis();if(o.boundaryGap=s,"horizontal"===l.orient){s[0]=i.parsePercent(s[0],n.height),s[1]=i.parsePercent(s[1],n.height);var u=n.height-s[0]-s[1];r(t,e,u)}else{s[0]=i.parsePercent(s[0],n.width),s[1]=i.parsePercent(s[1],n.width);var c=n.width-s[0]-s[1];r(t,e,c)}t.setLayout("layoutInfo",o)})}function r(e,t,a){if(e.count())for(var i,n=t.coordinateSystem,r=t.getLayerSeries(),l=e.mapDimension("single"),u=e.mapDimension("value"),c=o.map(r,function(t){return o.map(t.indices,function(t){var a=n.dataToPoint(e.get(l,t));return a[1]=e.get(u,t),a})}),d=s(c),h=d.y0,p=a/d.max,g=r.length,f=r[0].indices.length,m=0;mn&&(n=u),o.push(u)}for(var c=0;cn&&(n=h)}return r.y0=i,r.max=n,r}e.exports=n},"54fb":function(e,t){function a(e){e.eachSeriesByType("map",function(e){var t=e.get("color"),a=e.getModel("itemStyle"),o=a.get("areaColor"),i=a.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:o,color:i})})}e.exports=a},"55ac":function(e,t,a){var o=a("6d8b");function i(e,t,a){if(e&&o.indexOf(t,e.type)>=0){var i=a.getData().tree.root,n=e.targetNode;if("string"===typeof n&&(n=i.getNodeById(n)),n&&i.contains(n))return{node:n};var r=e.targetNodeId;if(null!=r&&(n=i.getNodeById(r)))return{node:n}}}function n(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function r(e,t){var a=n(e);return o.indexOf(a,t)>=0}function s(e,t){var a=[];while(e){var o=e.dataIndex;a.push({name:e.name,dataIndex:o,value:t.getRawValue(o)}),e=e.parentNode}return a.reverse(),a}t.retrieveTargetInfo=i,t.getPathToRoot=n,t.aboveViewRoot=r,t.wrapTreePathInfo=s},5866:function(e,t,a){var o=a("ef2b"),i=o.forceLayout,n=a("1c5f"),r=n.simpleLayout,s=a("94e4"),l=s.circularLayout,u=a("3842"),c=u.linearMap,d=a("401b"),h=a("6d8b");function p(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var a=e.preservedPoints||{},o=e.getGraph(),n=o.data,s=o.edgeData,u=e.getModel("force"),p=u.get("initLayout");e.preservedPoints?n.each(function(e){var t=n.getId(e);n.setItemLayout(e,a[t]||[NaN,NaN])}):p&&"none"!==p?"circular"===p&&l(e):r(e);var g=n.getDataExtent("value"),f=s.getDataExtent("value"),m=u.get("repulsion"),y=u.get("edgeLength");h.isArray(m)||(m=[m,m]),h.isArray(y)||(y=[y,y]),y=[y[1],y[0]];var v=n.mapArray("value",function(e,t){var a=n.getItemLayout(t),o=c(e,g,m);return isNaN(o)&&(o=(m[0]+m[1])/2),{w:o,rep:o,fixed:n.getItemModel(t).get("fixed"),p:!a||isNaN(a[0])||isNaN(a[1])?null:a}}),x=s.mapArray("value",function(e,t){var a=o.getEdgeByIndex(t),i=c(e,f,y);return isNaN(i)&&(i=(y[0]+y[1])/2),{n1:v[a.node1.dataIndex],n2:v[a.node2.dataIndex],d:i,curveness:a.getModel().get("lineStyle.curveness")||0}}),b=(t=e.coordinateSystem,t.getBoundingRect()),_=i(v,x,{rect:b,gravity:u.get("gravity")}),S=_.step;_.step=function(e){for(var t=0,i=v.length;t=0;l--)if(o[l]<=t)break;l=Math.min(l,i-2)}else{for(var l=n;lt)break;l=Math.min(l-1,i-2)}r.lerp(e.position,a[l],a[l+1],(t-o[l])/(o[l+1]-o[l]));var u=a[l+1][0]-a[l][0],c=a[l+1][1]-a[l][1];e.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,e.ignore=!1}},i.inherits(s,n);var u=s;e.exports=u},"6c12f":function(e,t,a){var o=a("3eba");a("2cfc"),a("adf4"),a("255c");var i=a("527a"),n=a("71b2"),r=a("d3f47");o.registerLayout(i),o.registerVisual(n),o.registerProcessor(r("themeRiver"))},"6cd8":function(e,t,a){var o=a("6d8b"),i=a("2306"),n=a("1418"),r=a("22da"),s=r.radialCoordinate,l=a("3eba"),u=a("e263"),c=a("6cc5"),d=a("01ef"),h=a("4a01"),p=a("c526"),g=p.onIrrelevantElement,f=l.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new i.Group,this._controller=new h(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,a,o){var i=e.getData(),n=e.layoutInfo,r=this._mainGroup,s=e.get("layout");"radial"===s?r.attr("position",[n.x+n.width/2,n.y+n.height/2]):r.attr("position",[n.x,n.y]),this._updateViewCoordSys(e),this._updateController(e,t,a);var l=this._data,u={expandAndCollapse:e.get("expandAndCollapse"),layout:s,orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};i.diff(l).add(function(t){m(i,t)&&v(i,t,null,r,e,u)}).update(function(t,a){var o=l.getItemGraphicEl(a);m(i,t)?v(i,t,o,r,e,u):o&&x(l,a,o,r,e,u)}).remove(function(t){var a=l.getItemGraphicEl(t);a&&x(l,t,a,r,e,u)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===u.expandAndCollapse&&i.eachItemGraphicEl(function(t,o){t.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:o})})}),this._data=i},_updateViewCoordSys:function(e){var t=e.getData(),a=[];t.each(function(e){var o=t.getItemLayout(e);!o||isNaN(o.x)||isNaN(o.y)||a.push([+o.x,+o.y])});var o=[],i=[];u.fromPoints(a,o,i),i[0]-o[0]===0&&(i[0]+=1,o[0]-=1),i[1]-o[1]===0&&(i[1]+=1,o[1]-=1);var n=e.coordinateSystem=new c;n.zoomLimit=e.get("scaleLimit"),n.setBoundingRect(o[0],o[1],i[0]-o[0],i[1]-o[1]),n.setCenter(e.get("center")),n.setZoom(e.get("zoom")),this.group.attr({position:n.position,scale:n.scale}),this._viewCoordSys=n},_updateController:function(e,t,a){var o=this._controller,i=this._controllerHost,n=this.group;o.setPointerChecker(function(t,o,i){var r=n.getBoundingRect();return r.applyTransform(n.transform),r.contain(o,i)&&!g(t,a,e)}),o.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(t){d.updateViewOnPan(i,t.dx,t.dy),a.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})},this).on("zoom",function(t){d.updateViewOnZoom(i,t.scale,t.originX,t.originY),a.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)},this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),a=this._getNodeGlobalScale(e),o=[a,a];t.eachItemGraphicEl(function(e,t){e.attr("scale",o)})},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var a=this._nodeScaleRatio,o=t.scale,i=o&&o[0]||1,n=t.getZoom(),r=(n-1)*a+1;return r/i},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function m(e,t){var a=e.getItemLayout(t);return a&&!isNaN(a.x)&&!isNaN(a.y)&&"none"!==e.getItemVisual(t,"symbol")}function y(e,t,a){return a.itemModel=t,a.itemStyle=t.getModel("itemStyle").getItemStyle(),a.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),a.lineStyle=t.getModel("lineStyle").getLineStyle(),a.labelModel=t.getModel("label"),a.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?a.symbolInnerColor=a.itemStyle.fill:a.symbolInnerColor="#fff",a}function v(e,t,a,r,s,l){var u=!a,c=e.tree.getNodeByDataIndex(t),d=c.getModel(),h=(l=y(c,d,l),e.tree.root),p=c.parentNode===h?c:c.parentNode||c,g=e.getItemGraphicEl(p.dataIndex),f=p.getLayout(),m=g?{x:g.position[0],y:g.position[1],rawX:g.__radialOldRawX,rawY:g.__radialOldRawY}:f,v=c.getLayout();u?(a=new n(e,t,l),a.attr("position",[m.x,m.y])):a.updateData(e,t,l),a.__radialOldRawX=a.__radialRawX,a.__radialOldRawY=a.__radialRawY,a.__radialRawX=v.rawX,a.__radialRawY=v.rawY,r.add(a),e.setItemGraphicEl(t,a),i.updateProps(a,{position:[v.x,v.y]},s);var x=a.getSymbolPath();if("radial"===l.layout){var _,S,w=h.children[0],I=w.getLayout(),L=w.children.length;if(v.x===I.x&&!0===c.isExpand){var A={};A.x=(w.children[0].getLayout().x+w.children[L-1].getLayout().x)/2,A.y=(w.children[0].getLayout().y+w.children[L-1].getLayout().y)/2,_=Math.atan2(A.y-I.y,A.x-I.x),_<0&&(_=2*Math.PI+_),S=A.xI.x,S||(_-=Math.PI));var M=S?"left":"right";x.setStyle({textPosition:M,textRotation:-_,textOrigin:"center",verticalAlign:"middle"})}if(c.parentNode&&c.parentNode!==h){var D=a.__edge;D||(D=a.__edge=new i.BezierCurve({shape:b(l,m,m),style:o.defaults({opacity:0,strokeNoScale:!0},l.lineStyle)})),i.updateProps(D,{shape:b(l,f,v),style:{opacity:1}},s),r.add(D)}}function x(e,t,a,o,n,r){var s,l=e.tree.getNodeByDataIndex(t),u=e.tree.root,c=l.getModel(),d=(r=y(l,c,r),l.parentNode===u?l:l.parentNode||l);while(s=d.getLayout(),null==s)d=d.parentNode===u?d:d.parentNode||d;i.updateProps(a,{position:[s.x+1,s.y+1]},n,function(){o.remove(a),e.setItemGraphicEl(t,null)}),a.fadeOut(null,{keepLabel:!0});var h=a.__edge;h&&i.updateProps(h,{shape:b(r,s,s),style:{opacity:0}},n,function(){o.remove(h)})}function b(e,t,a){var o,i,n,r,l,u,c,d,h=e.orient;if("radial"===e.layout){l=t.rawX,c=t.rawY,u=a.rawX,d=a.rawY;var p=s(l,c),g=s(l,c+(d-c)*e.curvature),f=s(u,d+(c-d)*e.curvature),m=s(u,d);return{x1:p.x,y1:p.y,x2:m.x,y2:m.y,cpx1:g.x,cpy1:g.y,cpx2:f.x,cpy2:f.y}}return l=t.x,c=t.y,u=a.x,d=a.y,"LR"!==h&&"RL"!==h||(o=l+(u-l)*e.curvature,i=c,n=u+(l-u)*e.curvature,r=d),"TB"!==h&&"BT"!==h||(o=l,i=c+(d-c)*e.curvature,n=u,r=d+(c-d)*e.curvature),{x1:l,y1:c,x2:u,y2:d,cpx1:o,cpy1:i,cpx2:n,cpy2:r}}e.exports=f},"6d9a":function(e,t){function a(e,t,a){var o,i=[e],n=[];while(o=i.pop())if(n.push(o),o.isExpand){var r=o.children;if(r.length)for(var s=0;s=0;n--)o.push(i[n])}}t.eachAfter=a,t.eachBefore=o},"71b2":function(e,t,a){var o=a("6d8b"),i=o.createHashMap;function n(e){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),a=e.getRawData(),o=e.get("color"),n=i();t.each(function(e){n.set(t.getRawIndex(e),e)}),a.each(function(i){var r=a.getName(i),s=o[(e.nameMap.get(r)-1)%o.length];a.setItemVisual(i,"color",s);var l=n.get(i);null!=l&&t.setItemVisual(l,"color",s)})})}e.exports=n},7293:function(e,t,a){var o=a("4e08"),i=(o.__DEV__,a("4f85")),n=a("6179"),r=a("6d8b"),s=r.concatArray,l=r.mergeAll,u=r.map,c=a("eda2"),d=c.encodeHTML,h=(a("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),p="undefined"===typeof Float64Array?Array:Float64Array;function g(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=u(t,function(e){var t=[e[0].coord,e[1].coord],a={coords:t};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),l([a,e[0],e[1]])}))}var f=i.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],g(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),f.superApply(this,"init",arguments)},mergeOption:function(e){if(e.data=e.data||[],g(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}f.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,t.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),a=t.option instanceof Array?t.option:t.getShallow("coords");return a},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[2*e],o=this._flatCoordsOffset[2*e+1],i=0;i "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=f;e.exports=m},"73ca":function(e,t,a){var o=a("2306"),i=a("7e5b");function n(e){this._ctor=e||i,this.group=new o.Group}var r=n.prototype;function s(e,t,a,o){var i=t.getItemLayout(a);if(d(i)){var n=new e._ctor(t,a,o);t.setItemGraphicEl(a,n),e.group.add(n)}}function l(e,t,a,o,i,n){var r=t.getItemGraphicEl(o);d(a.getItemLayout(i))?(r?r.updateData(a,i,n):r=new e._ctor(a,i,n),a.setItemGraphicEl(i,r),e.group.add(r)):e.group.remove(r)}function u(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function c(e){return isNaN(e[0])||isNaN(e[1])}function d(e){return!c(e[0])&&!c(e[1])}r.isPersistent=function(){return!0},r.updateData=function(e){var t=this,a=t.group,o=t._lineData;t._lineData=e,o||a.removeAll();var i=u(e);e.diff(o).add(function(a){s(t,e,a,i)}).update(function(a,n){l(t,o,e,n,a,i)}).remove(function(e){a.remove(o.getItemGraphicEl(e))}).execute()},r.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.incrementalPrepareUpdate=function(e){this._seriesScope=u(e),this._lineData=null,this.group.removeAll()},r.incrementalUpdate=function(e,t){function a(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}for(var o=e.start;o.8?"left":d[0]<-.8?"right":"center",f=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";else if("middle"===o.__position){var y=l/2,v=(h=s.tangentAt(y),[h[1],-h[0]]),x=s.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),p=[x[0]+v[0]*m,x[1]+v[1]*m],g="center",f="bottom";var b=-Math.atan2(h[1],h[0]);c[0].8?"right":d[0]<-.8?"left":"center",f=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";o.attr({style:{textVerticalAlign:o.__verticalAlign||f,textAlign:o.__textAlign||g},position:p,scale:[n,n]})}}}}function m(e,t,a){s.Group.call(this),this._createLine(e,t,a)}var y=m.prototype;y.beforeUpdate=f,y._createLine=function(e,t,a){var i=e.hostModel,n=e.getItemLayout(t),r=p(n);r.shape.percent=0,s.initProps(r,{shape:{percent:1}},i,t),this.add(r);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),o.each(c,function(a){var o=h(a,e,t);this.add(o),this[d(a)]=e.getItemVisual(t,a)},this),this._updateCommonStl(e,t,a)},y.updateData=function(e,t,a){var i=e.hostModel,n=this.childOfName("line"),r=e.getItemLayout(t),l={shape:{}};g(l.shape,r),s.updateProps(n,l,i,t),o.each(c,function(a){var o=e.getItemVisual(t,a),i=d(a);if(this[i]!==o){this.remove(this.childOfName(a));var n=h(a,e,t);this.add(n)}this[i]=o},this),this._updateCommonStl(e,t,a)},y._updateCommonStl=function(e,t,a){var i=e.hostModel,n=this.childOfName("line"),r=a&&a.lineStyle,l=a&&a.hoverLineStyle,d=a&&a.labelModel,h=a&&a.hoverLabelModel;if(!a||e.hasItemOption){var p=e.getItemModel(t);r=p.getModel("lineStyle").getLineStyle(),l=p.getModel("emphasis.lineStyle").getLineStyle(),d=p.getModel("label"),h=p.getModel("emphasis.label")}var g=e.getItemVisual(t,"color"),f=o.retrieve3(e.getItemVisual(t,"opacity"),r.opacity,1);n.useStyle(o.defaults({strokeNoScale:!0,fill:"none",stroke:g,opacity:f},r)),n.hoverStyle=l,o.each(c,function(e){var t=this.childOfName(e);t&&(t.setColor(g),t.setStyle({opacity:f}))},this);var m,y,v=d.getShallow("show"),x=h.getShallow("show"),b=this.childOfName("label");if((v||x)&&(m=g||"#000",y=i.getFormattedLabel(t,"normal",e.dataType),null==y)){var _=i.getRawValue(t);y=null==_?e.getName(t):isFinite(_)?u(_):_}var S=v?y:null,w=x?o.retrieve2(i.getFormattedLabel(t,"emphasis",e.dataType),y):null,I=b.style;null==S&&null==w||(s.setTextStyle(b.style,d,{text:S},{autoColor:m}),b.__textAlign=I.textAlign,b.__verticalAlign=I.textVerticalAlign,b.__position=d.get("position")||"middle"),b.hoverStyle=null!=w?{text:w,textFill:h.getTextColor(!0),fontStyle:h.getShallow("fontStyle"),fontWeight:h.getShallow("fontWeight"),fontSize:h.getShallow("fontSize"),fontFamily:h.getShallow("fontFamily")}:{text:null},b.ignore=!v&&!x,s.setHoverStyle(this)},y.highlight=function(){this.trigger("emphasis")},y.downplay=function(){this.trigger("normal")},y.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},y.setLinePoints=function(e){var t=this.childOfName("line");g(t.shape,e),t.dirty()},o.inherits(m,s.Group);var v=m;e.exports=v},"7f91":function(e,t,a){var o=a("2306"),i=a("401b"),n=o.Line.prototype,r=o.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var l=o.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){(s(t)?n:r).buildPath(e,t)},pointAt:function(e){return s(this.shape)?n.pointAt.call(this,e):r.pointAt.call(this,e)},tangentAt:function(e){var t=this.shape,a=s(t)?[t.x2-t.x1,t.y2-t.y1]:r.tangentAt.call(this,e);return i.normalize(a,a)}});e.exports=l},"81ac":function(e,t,a){var o=a("f934"),i=a("6d8b"),n=a("e0d3"),r=n.groupData,s=a("4e08");s.__DEV__;function l(e,t,a){e.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),o=e.get("nodeGap"),n=u(e,t);e.layoutInfo=n;var r=n.width,s=n.height,l=e.getGraph(),h=l.nodes,p=l.edges;d(h);var g=i.filter(h,function(e){return 0===e.getLayout().value}),f=0!==g.length?0:e.get("layoutIterations"),m=e.get("orient");c(h,p,a,o,r,s,f,m)})}function u(e,t){return o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t,a,o,i,n,r,s){h(e,t,a,i,n,s),f(e,t,n,i,o,r,s),A(e,s)}function d(e){i.each(e,function(e){var t=I(e.outEdges,w),a=I(e.inEdges,w),o=Math.max(t,a);e.setLayout({value:o},!0)})}function h(e,t,a,o,i,n){for(var r=[],s=[],l=[],u=[],c=0,d=0,h=0;h0;n--)l*=.99,x(s,l,r),v(s,i,a,o,r),L(s,l,r),v(s,i,a,o,r)}function m(e,t){var a=[],o="vertical"===t?"y":"x",n=r(e,function(e){return e.getLayout()[o]});return n.keys.sort(function(e,t){return e-t}),i.each(n.keys,function(e){a.push(n.buckets.get(e))}),a}function y(e,t,a,o,n,r,s){var l=[];i.each(t,function(e){var t=e.length,a=0,u=0;i.each(e,function(e){a+=e.getLayout().value}),u="vertical"===s?(n-(t-1)*r)/a:(o-(t-1)*r)/a,l.push(u)}),l.sort(function(e,t){return e-t});var u=l[0];i.each(t,function(e){i.each(e,function(e,t){var a=e.getLayout().value*u;"vertical"===s?(e.setLayout({x:t},!0),e.setLayout({dx:a},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:a},!0))})}),i.each(a,function(e){var t=+e.getValue()*u;e.setLayout({dy:t},!0)})}function v(e,t,a,o,n){i.each(e,function(e){var i,r,s,l=0,u=e.length;if("vertical"===n){var c;for(e.sort(function(e,t){return e.getLayout().x-t.getLayout().x}),s=0;s0&&(c=i.getLayout().x+r,i.setLayout({x:c},!0)),l=i.getLayout().x+i.getLayout().dx+t;if(r=l-t-o,r>0)for(c=i.getLayout().x-r,i.setLayout({x:c},!0),l=c,s=u-2;s>=0;--s)i=e[s],r=i.getLayout().x+i.getLayout().dx+t-l,r>0&&(c=i.getLayout().x-r,i.setLayout({x:c},!0)),l=i.getLayout().x}else{var d;for(e.sort(function(e,t){return e.getLayout().y-t.getLayout().y}),s=0;s0&&(d=i.getLayout().y+r,i.setLayout({y:d},!0)),l=i.getLayout().y+i.getLayout().dy+t;if(r=l-t-a,r>0)for(d=i.getLayout().y-r,i.setLayout({y:d},!0),l=d,s=u-2;s>=0;--s)i=e[s],r=i.getLayout().y+i.getLayout().dy+t-l,r>0&&(d=i.getLayout().y-r,i.setLayout({y:d},!0)),l=i.getLayout().y}})}function x(e,t,a){i.each(e.slice().reverse(),function(e){i.each(e,function(e){if(e.outEdges.length){var o=I(e.outEdges,b,a)/I(e.outEdges,w,a);if("vertical"===a){var i=e.getLayout().x+(o-S(e,a))*t;e.setLayout({x:i},!0)}else{var n=e.getLayout().y+(o-S(e,a))*t;e.setLayout({y:n},!0)}}})})}function b(e,t){return S(e.node2,t)*e.getValue()}function _(e,t){return S(e.node1,t)*e.getValue()}function S(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function w(e){return e.getValue()}function I(e,t,a){var o=0,i=e.length,n=-1;while(++n ")),i.value&&(l+=" : "+c(i.value)),l}return h.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=n.map(this.option.categories||[],function(e){return null!=e.value?e:n.extend({value:0},e)}),t=new i(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return h.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),p=h;e.exports=p},"8deb":function(e,t,a){var o=a("3eba");a("5522"),a("a016"),a("1466");var i=a("98e7"),n=a("7f96"),r=a("870e"),s=a("d3f47"),l=a("7891");o.registerVisual(i("radar")),o.registerVisual(n("radar","circle")),o.registerLayout(r),o.registerProcessor(s("radar")),o.registerPreprocessor(l)},"90c2":function(e,t,a){var o=a("5f14"),i=a("41ef"),n=a("6d8b"),r=n.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(e,t,a,o){var i=e.getData().tree,r=i.root,l=e.getModel(s);if(!r.isRemoved()){var c=n.map(i.levelModels,function(e){return e?e.get(s):null});u(r,{},c,l,e.getViewRoot().getAncestors(),e)}}};function u(e,t,a,o,i,r){var l=e.getModel(),p=e.getLayout();if(p&&!p.invisible&&p.isInView){var f,y=e.getModel(s),v=a[e.depth],x=c(y,t,v,o),b=y.get("borderColor"),_=y.get("borderColorSaturation");null!=_&&(f=d(x,e),b=h(_,f)),e.setVisual("borderColor",b);var S=e.viewChildren;if(S&&S.length){var w=g(e,l,p,y,x,S);n.each(S,function(e,t){if(e.depth>=i.length||e===i[e.depth]){var n=m(l,x,e,t,w,r);u(e,n,a,o,i,r)}})}else f=d(x,e),e.setVisual("color",f)}}function c(e,t,a,o){var i=n.extend({},t);return n.each(["color","colorAlpha","colorSaturation"],function(n){var r=e.get(n,!0);null==r&&a&&(r=a[n]),null==r&&(r=t[n]),null==r&&(r=o.get(n)),null!=r&&(i[n]=r)}),i}function d(e){var t=p(e,"color");if(t){var a=p(e,"colorAlpha"),o=p(e,"colorSaturation");return o&&(t=i.modifyHSL(t,null,null,o)),a&&(t=i.modifyAlpha(t,a)),t}}function h(e,t){return null!=t?i.modifyHSL(t,null,null,e):null}function p(e,t){var a=e[t];if(null!=a&&"none"!==a)return a}function g(e,t,a,i,n,r){if(r&&r.length){var s=f(t,"color")||null!=n.color&&"none"!==n.color&&(f(t,"colorAlpha")||f(t,"colorSaturation"));if(s){var l=t.get("visualMin"),u=t.get("visualMax"),c=a.dataExtent.slice();null!=l&&lc[1]&&(c[1]=u);var d=t.get("colorMappingBy"),h={type:s.name,dataExtent:c,visual:s.range};"color"!==h.type||"index"!==d&&"id"!==d?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var p=new o(h);return p.__drColorMappingBy=d,p}}}function f(e,t){var a=e.get(t);return r(a)&&a.length?{name:t,range:a}:null}function m(e,t,a,o,i,r){var s=n.extend({},t);if(i){var l=i.type,u="color"===l&&i.__drColorMappingBy,c="index"===u?o:"id"===u?r.mapIdToIndex(a.getId()):a.getValue(e.get("visualDimension"));s[l]=i.mapValueToVisual(c)}return s}e.exports=l},"928d":function(e,t,a){var o=a("6d8b"),i=a("4f85"),n=a("06c7"),r=a("4319"),s=a("eda2"),l=s.encodeHTML,u=s.addCommas,c=a("55ac"),d=c.wrapTreePathInfo,h=i.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"â–¶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var a={name:e.name,children:e.data};p(a);var o=e.levels||[];o=e.levels=g(o,t);var i={};return i.levels=o,n.createTree(a,this,i).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),a=this.getRawValue(e),i=o.isArray(a)?u(a[0]):u(a),n=t.getName(e);return l(n+": "+i)},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=d(a,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},o.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=o.createHashMap(),this._idIndexMapCount=0);var a=t.get(e);return null==a&&t.set(e,a=this._idIndexMapCount++),a},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 p(e){var t=0;o.each(e.children,function(e){p(e);var a=e.value;o.isArray(a)&&(a=a[0]),t+=a});var a=e.value;o.isArray(a)&&(a=a[0]),(null==a||isNaN(a))&&(a=t),a<0&&(a=0),o.isArray(e.value)?e.value[0]=a:e.value=a}function g(e,t){var a=t.get("color");if(a){var i;if(e=e||[],o.each(e,function(e){var t=new r(e),a=t.get("color");(t.get("itemStyle.color")||a&&"none"!==a)&&(i=!0)}),!i){var n=e[0]||(e[0]={});n.color=a.slice()}return e}}e.exports=h},9442:function(e,t,a){var o=a("6d8b");function i(e){var t=[];o.each(e.series,function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,o.defaults(e,e.mapLocation))})}e.exports=i},"94e4":function(e,t,a){var o=a("401b");function i(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var a=t.getBoundingRect(),i=e.getData(),n=i.graph,r=0,s=i.getSum("value"),l=2*Math.PI/(s||i.count()),u=a.width/2+a.x,c=a.height/2+a.y,d=Math.min(a.width,a.height)/2;n.eachNode(function(e){var t=e.getValue("value");r+=l*(s?t:1)/2,e.setLayout([d*Math.cos(r)+u,d*Math.sin(r)+c]),r+=l*(s?t:1)/2}),i.setLayout({cx:u,cy:c}),n.eachEdge(function(e){var t,a=e.getModel().get("lineStyle.curveness")||0,i=o.clone(e.node1.getLayout()),n=o.clone(e.node2.getLayout()),r=(i[0]+n[0])/2,s=(i[1]+n[1])/2;+a&&(a*=3,t=[u*a+r*(1-a),c*a+s*(1-a)]),e.setLayout([i,n,t])})}}t.circularLayout=i},9704:function(e,t,a){var o=a("3eba"),i=a("6d8b"),n=a("f706"),r=a("73ca"),s=a("4a01"),l=a("01ef"),u=a("c526"),c=u.onIrrelevantElement,d=a("2306"),h=a("480f"),p="__focusNodeAdjacency",g="__unfocusNodeAdjacency",f=["itemStyle","opacity"],m=["lineStyle","opacity"];function y(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function v(e,t,a){var o=e.getGraphicEl(),i=y(e,t);null!=a&&(null==i&&(i=1),i*=a),o.downplay&&o.downplay(),o.traverse(function(e){if("group"!==e.type){var t=e.lineLabelOriginalOpacity;null!=t&&null==a||(t=i),e.setStyle("opacity",t)}})}function x(e,t){var a=y(e,t),o=e.getGraphicEl();o.highlight&&o.highlight(),o.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",a)})}var b=o.extendChartView({type:"graph",init:function(e,t){var a=new n,o=new r,i=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:i},i.add(a.group),i.add(o.group),this._symbolDraw=a,this._lineDraw=o,this._firstRender=!0},render:function(e,t,a){var o=e.coordinateSystem;this._model=e,this._nodeScaleRatio=e.get("nodeScaleRatio");var i=this._symbolDraw,n=this._lineDraw,r=this.group;if("view"===o.type){var s={position:o.position,scale:o.scale};this._firstRender?r.attr(s):d.updateProps(r,s,e)}h(e.getGraph(),this._getNodeGlobalScale(e));var l=e.getData();i.updateData(l);var u=e.getEdgeData();n.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,a),clearTimeout(this._layoutTimeout);var c=e.forceLayout,f=e.get("force.layoutAnimation");c&&this._startForceLayoutIteration(c,f),l.eachItemGraphicEl(function(t,o){var i=l.getItemModel(o);t.off("drag").off("dragend");var n=i.get("draggable");n&&t.on("drag",function(){c&&(c.warmUp(),!this._layouting&&this._startForceLayoutIteration(c,f),c.setFixed(o),l.setItemLayout(o,t.position))},this).on("dragend",function(){c&&c.setUnfixed(o)},this),t.setDraggable(n&&c),t[p]&&t.off("mouseover",t[p]),t[g]&&t.off("mouseout",t[g]),i.get("focusNodeAdjacency")&&(t.on("mouseover",t[p]=function(){a.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[g]=function(){a.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))},this),l.graph.eachEdge(function(t){var o=t.getGraphicEl();o[p]&&o.off("mouseover",o[p]),o[g]&&o.off("mouseout",o[g]),t.getModel().get("focusNodeAdjacency")&&(o.on("mouseover",o[p]=function(){a.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),o.on("mouseout",o[g]=function(){a.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))});var m="circular"===e.get("layout")&&e.get("circular.rotateLabel"),y=l.getLayout("cx"),v=l.getLayout("cy");l.eachItemGraphicEl(function(e,t){var a=e.getSymbolPath();if(m){var o=l.getItemLayout(t),i=Math.atan2(o[1]-v,o[0]-y);i<0&&(i=2*Math.PI+i);var n=o[0]=0;l--){var u=i["asc"===o?r-l-1:l].getValue();u/a*ts[1]&&(s[1]=t)})}else s=[NaN,NaN];return{sum:o,dataExtent:s}}function I(e,t,a){for(var o,i=0,n=1/0,r=0,s=e.length;ri&&(i=o));var l=e.area*e.area,u=t*t*a;return l?c(u*i/l,l/(u*n)):1/0}function L(e,t,a,o,i){var n=t===a.width?0:1,r=1-n,s=["x","y"],l=["width","height"],u=a[s[n]],h=t?e.area/t:0;(i||h>a[l[r]])&&(h=a[l[r]]);for(var p=0,g=e.length;ps&&(c=s),r=n}c0?a=o[0]:o[1]<0&&(a=o[1]),a}function u(e,t,a,o){var i=NaN;e.stacked&&(i=a.get(a.getCalculationInfo("stackedOverDimension"),o)),isNaN(i)&&(i=e.valueStart);var n=e.baseDataOffset,r=[];return r[n]=a.get(e.baseDim,o),r[1-n]=i,t.dataToPoint(r)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=u},a016:function(e,t,a){var o=a("4f85"),i=a("e46b"),n=a("6d8b"),r=a("eda2"),s=r.encodeHTML,l=o.extend({type:"series.radar",dependencies:["radar"],init:function(e){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(e,t){return i(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e){var t=this.getData(),a=this.coordinateSystem,o=a.getIndicatorAxes(),i=this.getData().getName(e);return s(""===i?this.name:i)+"
"+n.map(o,function(a,o){var i=t.get(t.mapDimension(a.dim),e);return s(a.name+" : "+i)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=l;e.exports=u},a38d:function(e,t,a){var o=a("2306"),i=a("392f"),n=a("9680"),r=a("68ab"),s=o.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var a=t.segs,o=t.curveness;if(t.polyline)for(var i=0;i0){e.moveTo(a[i++],a[i++]);for(var r=1;r0){var d=(s+u)/2-(l-c)*o,h=(l+c)/2-(u-s)*o;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}},findDataIndex:function(e,t){var a=this.shape,o=a.segs,i=a.curveness;if(a.polyline)for(var s=0,l=0;l0)for(var c=o[l++],d=o[l++],h=1;h0){var f=(c+p)/2-(d-g)*i,m=(d+g)/2-(p-c)*i;if(r.containStroke(c,d,f,m,p,g))return s}else if(n.containStroke(c,d,p,g))return s;s++}return-1}});function l(){this.group=new o.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 i({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t){var a=new s;a.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(a,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(a,!0):(a.rectHover=!0,a.cursor="default",a.__startIndex=e.start,this.group.add(a))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(e,t,a){var o=t.hostModel;e.setShape({polyline:o.get("polyline"),curveness:o.get("lineStyle.curveness")}),e.useStyle(o.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("color");i&&e.setStyle("stroke",i),e.setStyle("fill"),a||(e.seriesIndex=o.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var a=e.findDataIndex(t.offsetX,t.offsetY);a>0&&(e.dataIndex=a+e.__startIndex)}))},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var c=l;e.exports=c},a666:function(e,t,a){var o=a("3eba"),i=a("6d8b"),n=a("2306"),r=a("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",u=o.extendChartView({type:"map",render:function(e,t,a,o){if(!o||"mapToggleSelect"!==o.type||o.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(o&&"geoRoam"===o.type&&"series"===o.componentType&&o.seriesId===e.id){n=this._mapDraw;n&&i.add(n.group)}else if(e.needsDrawMap){var n=this._mapDraw||new r(a,!0);i.add(n.group),n.draw(e,t,a,this,o),this._mapDraw=n}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,a)}}},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,a){var o=e.originalData,r=this.group;o.each(o.mapDimension("value"),function(t,a){if(!isNaN(t)){var u=o.getItemLayout(a);if(u&&u.point){var h=u.point,p=u.offset,g=new n.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:h[0]+9*p,cy:h[1],r:3},silent:!0,z2:8+(p?0:n.Z2_EMPHASIS_LIFT+1)});if(!p){var f=e.mainSeries.getData(),m=o.getName(a),y=f.indexOfName(m),v=o.getItemModel(a),x=v.getModel("label"),b=v.getModel("emphasis.label"),_=f.getItemGraphicEl(y),S=i.retrieve2(e.getFormattedLabel(y,"normal"),m),w=i.retrieve2(e.getFormattedLabel(y,"emphasis"),S),I=_[s],L=Math.random();if(!I){I=_[s]={};var A=i.curry(c,!0),M=i.curry(c,!1);_.on("mouseover",A).on("mouseout",M).on("emphasis",A).on("normal",M)}_[l]=L,i.extend(I,{recordVersion:L,circle:g,labelModel:x,hoverLabelModel:b,emphasisText:w,normalText:S}),d(I,!1)}r.add(g)}}})}});function c(e){var t=this[s];t&&t.recordVersion===this[l]&&d(t,e)}function d(e,t){var a=e.circle,o=e.labelModel,i=e.hoverLabelModel,r=e.emphasisText,s=e.normalText;t?(a.style.extendFrom(n.setTextStyle({},i,{text:i.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=n.Z2_EMPHASIS_LIFT):(n.setTextStyle(a.style,o,{text:o.get("show")?s:null,textPosition:o.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),a.dirty(!1),null!=a.__mapOriginalZ2&&(a.z2=a.__mapOriginalZ2,a.__mapOriginalZ2=null))}e.exports=u},a7e21:function(e,t,a){var o=a("3eba");a("7293"),a("ae46");var i=a("6582"),n=a("ee98");o.registerLayout(i),o.registerVisual(n)},aa01:function(e,t,a){var o=a("6d8b"),i=a("4f85"),n=a("06c7"),r=a("55ac"),s=r.wrapTreePathInfo,l=i.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var a={name:e.name,children:e.data};u(a);var o=e.levels||[],i={};return i.levels=o,n.createTree(a,this,i).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=s(a,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,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},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 u(e){var t=0;o.each(e.children,function(e){u(e);var a=e.value;o.isArray(a)&&(a=a[0]),t+=a});var a=e.value;o.isArray(a)&&(a=a[0]),(null==a||isNaN(a))&&(a=t),a<0&&(a=0),o.isArray(e.value)?e.value[0]=a:e.value=a}e.exports=l},aadf:function(e,t,a){var o=a("3eba"),i=a("6d8b");a("5aa9"),a("d6d9"),a("3329");var n=a("9d57"),r=n.layout,s=a("7f96");a("01ed"),o.registerLayout(i.curry(r,"pictorialBar")),o.registerVisual(s("pictorialBar","roundRect"))},ab71:function(e,t){var a=["lineStyle","normal","opacity"],o={seriesType:"parallel",reset:function(e,t,o){var i=e.getModel("itemStyle"),n=e.getModel("lineStyle"),r=t.get("color"),s=n.get("color")||i.get("color")||r[e.seriesIndex%r.length],l=e.get("inactiveOpacity"),u=e.get("activeOpacity"),c=e.getModel("lineStyle").getLineStyle(),d=e.coordinateSystem,h=e.getData(),p={normal:c.opacity,active:u,inactive:l};function g(e,t){d.eachActiveState(t,function(e,o){var i=p[e];if("normal"===e&&t.hasItemOption){var n=t.getItemModel(o).get(a,!0);null!=n&&(i=n)}t.setItemVisual(o,"opacity",i)},e.start,e.end)}return h.setVisual("color",s),{progress:g}}};e.exports=o},abff:function(e,t,a){var o=a("3eba"),i=a("f706"),n=a("c965"),r=a("87c3");o.extendChartView({type:"scatter",render:function(e,t,a){var o=e.getData(),i=this._updateSymbolDraw(o,e);i.updateData(o),this._finished=!0},incrementalPrepareRender:function(e,t,a){var o=e.getData(),i=this._updateSymbolDraw(o,e);i.incrementalPrepareUpdate(o),this._finished=!1},incrementalRender:function(e,t,a){this._symbolDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,a){var o=e.getData();if(this.group.dirty(),!this._finished||o.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=r().reset(e);i.progress&&i.progress({start:0,end:o.count()},o),this._symbolDraw.updateLayout(o)},_updateSymbolDraw:function(e,t){var a=this._symbolDraw,o=t.pipelineContext,r=o.large;return a&&r===this._isLargeDraw||(a&&a.remove(),a=this._symbolDraw=r?new n:new i,this._isLargeDraw=r,this.group.removeAll()),this.group.add(a.group),a},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},adda:function(e,t,a){var o=a("94e4"),i=o.circularLayout;function n(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&i(e)})}e.exports=n},adf4:function(e,t,a){var o=a("4f85"),i=a("b1d4"),n=a("2f45"),r=n.getDimensionTypeByAxis,s=a("6179"),l=a("6d8b"),u=a("e0d3"),c=u.groupData,d=a("eda2"),h=d.encodeHTML,p=2,g=o.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){g.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(e){var t=e.length,a=c(e,function(e){return e[2]}),o=[];a.buckets.each(function(e,t){o.push({name:t,dataList:e})});for(var i=o.length,n=-1,r=-1,s=0;sn&&(n=l,r=s)}for(var u=0;uv||Math.abs(e.dy)>v)){var t=this.seriesModel.getData().tree.root;if(!t)return;var a=t.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},_onZoom:function(e){var t=e.originX,a=e.originY;if("animating"!==this._state){var o=this.seriesModel.getData().tree.root;if(!o)return;var i=o.getLayout();if(!i)return;var n=new c(i.x,i.y,i.width,i.height),r=this.seriesModel.layoutInfo;t-=r.x,a-=r.y;var s=d.create();d.translate(s,s,[-t,-a]),d.scale(s,s,[e.scale,e.scale]),d.translate(s,s,[t,a]),n.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x,y:n.y,width:n.width,height:n.height}})}},_initEvents:function(e){e.on("click",function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var a=this.findTarget(e.offsetX,e.offsetY);if(a){var o=a.node;if(o.getLayout().isLeafRoot)this._rootToNode(a);else if("zoomToNode"===t)this._zoomToNode(a);else if("link"===t){var i=o.hostTree.data.getItemModel(o.dataIndex),n=i.get("link",!0),r=i.get("target",!0)||"blank";n&&window.open(n,r)}}}}},this)},_renderBreadcrumb:function(e,t,a){function o(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}a||(a=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,a.node,g(o,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=N(),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 a,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(o){var i=this._storage.background[o.getRawIndex()];if(i){var n=i.transformCoordToLocal(e,t),r=i.shape;if(!(r.x<=n[0]&&n[0]<=r.x+r.width&&r.y<=n[1]&&n[1]<=r.y+r.height))return!1;a={node:o,offsetX:n[0],offsetY:n[1]}}},this),a}});function N(){return{nodeGroup:[],background:[],content:[]}}function C(e,t,a,o,r,s,l,u,c,d){if(l){var h=l.getLayout();if(h&&h.isInView){var p=h.width,g=h.height,y=h.borderWidth,v=h.invisible,w=l.getRawIndex(),D=u&&u.getRawIndex(),N=l.viewChildren,C=h.upperHeight,T=N&&N.length,E=l.getModel("itemStyle"),V=l.getModel("emphasis.itemStyle"),R=F("nodeGroup",f);if(R){if(c.add(R),R.attr("position",[h.x||0,h.y||0]),R.__tmNodeWidth=p,R.__tmNodeHeight=g,h.isAboveViewRoot)return R;var O=F("background",m,d,I);if(O&&G(R,O,T&&h.upperHeight),!T){var z=F("content",m,d,L);z&&k(R,z)}return R}}}function G(t,a,o){a.dataIndex=l.dataIndex,a.seriesIndex=e.seriesIndex,a.setShape({x:0,y:0,width:p,height:g});var i=l.getVisual("borderColor",!0),r=V.get("borderColor");B(a,function(){var e=M(E);e.fill=i;var t=A(V);if(t.fill=r,o){var s=p-2*y;H(e,t,i,s,C,{x:y,y:0,width:s,height:C})}else e.text=t.text=null;a.setStyle(e),n.setHoverStyle(a,t)}),t.add(a)}function k(t,a){a.dataIndex=l.dataIndex,a.seriesIndex=e.seriesIndex;var o=Math.max(p-2*y,0),i=Math.max(g-2*y,0);a.culling=!0,a.setShape({x:y,y:y,width:o,height:i});var r=l.getVisual("color",!0);B(a,function(){var e=M(E);e.fill=r;var t=A(V);H(e,t,r,o,i),a.setStyle(e),n.setHoverStyle(a,t)}),t.add(a)}function B(e,t){v?!e.invisible&&s.push(e):(t(),e.__tmWillVisible||(e.invisible=!1))}function H(t,a,o,r,s,u){var c=l.getModel(),d=i.retrieve(e.getFormattedLabel(l.dataIndex,"normal",null,null,u?"upperLabel":"label"),c.get("name"));if(!u&&h.isLeafRoot){var p=e.get("drillDownIcon",!0);d=p?p+" "+d:d}var g=c.getModel(u?_:x),f=c.getModel(u?S:b),m=g.getShallow("show");n.setLabelStyle(t,a,g,f,{defaultText:m?d:null,autoColor:o,isRectText:!0}),u&&(t.textRect=i.clone(u)),t.truncate=m&&g.get("ellipsis")?{outerWidth:r,outerHeight:s,minChar:2}:null}function F(e,o,i,n){var s=null!=D&&a[e][D],l=r[e];return s?(a[e][D]=null,W(l,s,e)):v||(s=new o({z:P(i,n)}),s.__tmDepth=i,s.__tmStorageName=e,Z(l,s,e)),t[e][w]=s}function W(e,t,a){var o=e[w]={};o.old="nodeGroup"===a?t.position.slice():i.extend({},t.shape)}function Z(e,t,a){var i=e[w]={},n=l.parentNode;if(n&&(!o||"drillDown"===o.direction)){var s=0,u=0,c=r.background[n.getRawIndex()];!o&&c&&c.old&&(s=c.old.width,u=c.old.height),i.old="nodeGroup"===a?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==a}}function P(e,t){var a=e*w+t;return(a-1)/a}e.exports=D},bb70:function(e,t,a){var o=a("e86a");function i(e,t,a,o,i,n,r){function s(t,a,o,i){for(var n=t;nt&&n+1e[n].y+e[n].height)return void l(n,o/2);l(a-1,o/2)}function l(t,a){for(var o=t;o>=0;o--)if(e[o].y-=a,o>0&&e[o].y>e[o-1].y+e[o-1].height)break}function u(e,t,a,o,i,n){for(var r=t?Number.MAX_VALUE:0,s=0,l=e.length;s=r&&(h=r-10),!t&&h<=r&&(h=r+10),e[s].x=a+h*n,r=h}}e.sort(function(e,t){return e.y-t.y});for(var c,d=0,h=e.length,p=[],g=[],f=0;f=a?g.push(e[f]):p.push(e[f]);u(p,!1,t,a,o,i),u(g,!0,t,a,o,i)}function n(e,t,a,o,n,s){for(var l=[],u=[],c=0;c0?"left":"right"}var C=f.getFont(),P=f.get("rotate")?_<0?-b+Math.PI:-b:0,T=e.getFormattedLabel(a,"normal")||l.getName(a),E=o.getBoundingRect(T,C,h,"top");c=!!P,p.label={x:i,y:n,position:m,height:E.height,len:v,len2:x,linePoints:d,textAlign:h,verticalAlign:"middle",rotation:P,inside:w},w||u.push(p.label)}),!c&&e.get("avoidLabelOverlap")&&n(u,r,s,t,a,i)}e.exports=s},bdc0:function(e,t,a){var o=a("3eba");a("d2a5"),o.registerAction({type:"dragNode",event:"dragNode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},bf9b:function(e,t,a){var o=a("3eba"),i=a("d81e"),n=i.updateCenterAndZoom;o.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var a=e.dataIndex,o=t.getData().tree,i=o.getNodeByDataIndex(a);i.isExpand=!i.isExpand})}),o.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var a=t.coordinateSystem,o=n(a,e);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom)})})},c037:function(e,t,a){var o=a("3eba"),i=a("6d8b");a("f7c6"),a("1ab3");var n=a("7782"),r=a("98e7"),s=a("292e"),l=a("d3f47");n("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),o.registerVisual(r("pie")),o.registerLayout(i.curry(s,"pie")),o.registerProcessor(l("pie"))},c775:function(e,t,a){var o=a("2b17"),i=o.retrieveRawValue;function n(e,t){var a=e.mapDimension("defaultedLabel",!0),o=a.length;if(1===o)return i(e,t,a[0]);if(o){for(var n=[],r=0;r=0;s--){var l=2*s,u=o[l]-n/2,c=o[l+1]-r/2;if(e>=u&&t>=c&&e<=u+n&&t<=c+r)return s}return-1}});function u(){this.group=new o.Group}var c=u.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(e){this.group.removeAll();var t=new l({rectHover:!0,cursor:"default"});t.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},c.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild(function(e){if(null!=e.startIndex){var a=2*(e.endIndex-e.startIndex),o=4*e.startIndex*2;t=new Float32Array(t.buffer,o,a)}e.setShape("points",t)})}},c.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(e,t){var a;this._incremental?(a=new l,this._incremental.addDisplayable(a,!0)):(a=new l({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),a.incremental=!0,this.group.add(a)),a.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(a,t,!!this._incremental)},c._setCommon=function(e,t,a){var o=t.hostModel,i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.symbolProxy=n(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var r=e.shape.size[0]=0&&(e.dataIndex=a+(e.startIndex||0))}))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var d=u;e.exports=d},ca29:function(e,t,a){var o=a("6d9a"),i=o.eachAfter,n=o.eachBefore,r=a("22da"),s=r.init,l=r.firstWalk,u=r.secondWalk,c=r.separation,d=r.radialCoordinate,h=r.getViewRect;function p(e,t){e.eachSeriesByType("tree",function(e){g(e,t)})}function g(e,t){var a=h(e,t);e.layoutInfo=a;var o=e.get("layout"),r=0,p=0,g=null;"radial"===o?(r=2*Math.PI,p=Math.min(a.height,a.width)/2,g=c(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(r=a.width,p=a.height,g=c());var f=e.getData().tree.root,m=f.children[0];if(m){s(f),i(m,l,g),f.hierNode.modifier=-m.hierNode.prelim,n(m,u);var y=m,v=m,x=m;n(m,function(e){var t=e.getLayout().x;tv.getLayout().x&&(v=e),e.depth>x.depth&&(x=e)});var b=y===v?1:g(y,v)/2,_=b-y.getLayout().x,S=0,w=0,I=0,L=0;if("radial"===o)S=r/(v.getLayout().x+b+_),w=p/(x.depth-1||1),n(m,function(e){I=(e.getLayout().x+_)*S,L=(e.depth-1)*w;var t=d(I,L);e.setLayout({x:t.x,y:t.y,rawX:I,rawY:L},!0)});else{var A=e.getOrient();"RL"===A||"LR"===A?(w=p/(v.getLayout().x+b+_),S=r/(x.depth-1||1),n(m,function(e){L=(e.getLayout().x+_)*w,I="LR"===A?(e.depth-1)*S:r-(e.depth-1)*S,e.setLayout({x:I,y:L},!0)})):"TB"!==A&&"BT"!==A||(S=r/(v.getLayout().x+b+_),w=p/(x.depth-1||1),n(m,function(e){I=(e.getLayout().x+_)*S,L="TB"===A?(e.depth-1)*w:p-(e.depth-1)*w,e.setLayout({x:I,y:L},!0)}))}}}e.exports=p},cb69:function(e,t,a){var o=a("3301"),i=a("4f85"),n=i.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return o(this.getSource(),this)},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8}}});e.exports=n},cb73:function(e,t,a){var o=a("3842"),i=o.parsePercent,n=a("6d8b"),r=(Math.PI,Math.PI/180);function s(e,t,a,o){t.eachSeriesByType(e,function(e){var t=e.get("center"),o=e.get("radius");n.isArray(o)||(o=[0,o]),n.isArray(t)||(t=[t,t]);var s=a.getWidth(),u=a.getHeight(),c=Math.min(s,u),d=i(t[0],s),h=i(t[1],u),p=i(o[0],c/2),g=i(o[1],c/2),f=-e.get("startAngle")*r,m=e.get("minAngle")*r,y=e.getData().tree.root,v=e.getViewRoot(),x=v.depth,b=e.get("sort");null!=b&&l(v,b);var _=0;n.each(v.children,function(e){!isNaN(e.getValue())&&_++});var S=v.getValue(),w=Math.PI/(S||_)*2,I=v.depth>0,L=v.height-(I?-1:1),A=(g-p)/(L||1),M=e.get("clockwise"),D=e.get("stillShowZeroSum"),N=M?1:-1,C=function(e,t){if(e){var a=t;if(e!==y){var o=e.getValue(),r=0===S&&D?w:o*w;r0){var D=r(x)?l:u;x>0&&(x=x*A+I),_[S++]=D[M],_[S++]=D[M+1],_[S++]=D[M+2],_[S++]=D[M+3]*x*256}else S+=4}return h.putImageData(b,0,0),d},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=o.createCanvas()),t=this.pointSize+this.blurSize,a=2*t;e.width=a,e.height=a;var i=e.getContext("2d");return i.clearRect(0,0,a,a),i.shadowOffsetX=a,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},_getGradient:function(e,t,a){for(var o=this._gradientPixels,i=o[a]||(o[a]=new Uint8ClampedArray(1024)),n=[0,0,0,0],r=0,s=0;s<256;s++)t[a](s/255,!0,n),i[r++]=n[0],i[r++]=n[1],i[r++]=n[2],i[r++]=n[3];return i}};var r=n;e.exports=r},cee1:function(e,t,a){var o=a("6d8b");function i(e){var t={};e.eachSeriesByType("map",function(a){var i=a.getMapType();if(!a.getHostGeoModel()&&!t[i]){var n={};o.each(a.seriesGroup,function(t){var a=t.coordinateSystem,o=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&o.each(o.mapDimension("value"),function(e,t){var i=o.getName(t),r=a.getRegion(i);if(r&&!isNaN(e)){var s=n[i]||0,l=a.dataToPoint(r.center);n[i]=s+1,o.setItemLayout(t,{point:l,offset:s})}})});var r=a.getData();r.each(function(e){var t=r.getName(e),a=r.getItemLayout(e)||{};a.showLabel=!n[t],r.setItemLayout(e,a)}),t[i]=!0}})}e.exports=i},d01c:function(e,t,a){var o=a("4f85"),i=a("237f"),n=a("eda2"),r=n.encodeHTML,s=o.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(e){var t=e.edges||e.links,a=e.data||e.nodes;if(a&&t){var o=i(a,t,this,!0);return o.data}},setNodePosition:function(e,t){var a=this.option.data[e];a.localX=t[0],a.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,a){if("edge"===a){var o=this.getDataParams(e,a),i=o.data,n=i.source+" -- "+i.target;return o.value&&(n+=" : "+o.value),r(n)}return s.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}}),l=s;e.exports=l},d2a5:function(e,t,a){var o=a("3eba");o.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),o.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},d357:function(e,t,a){var o=a("6d8b"),i=o.each,n=a("1c5f"),r=n.simpleLayout,s=n.simpleLayoutEdge;function l(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),a=e.coordinateSystem;if(a&&"view"!==a.type){var o=e.getData(),n=[];i(a.dimensions,function(e){n=n.concat(o.mapDimension(e,!0))});for(var l=0;l=i||m<0)break;if(p(v)){if(g){m+=n;continue}break}if(m===a)e[n>0?"moveTo":"lineTo"](v[0],v[1]);else if(l>0){var x=t[f],b="y"===c?1:0,_=(v[b]-x[b])*l;u(d,x),d[b]=x[b]+_,u(h,v),h[b]=v[b]-_,e.bezierCurveTo(d[0],d[1],h[0],h[1],v[0],v[1])}else e.lineTo(v[0],v[1]);f=m,m+=n}return y}function m(e,t,a,o,n,g,f,m,y,v,x){for(var b=0,_=a,S=0;S=n||_<0)break;if(p(w)){if(x){_+=g;continue}break}if(_===a)e[g>0?"moveTo":"lineTo"](w[0],w[1]),u(d,w);else if(y>0){var I=_+g,L=t[I];if(x)while(L&&p(t[I]))I+=g,L=t[I];var A=.5,M=t[b];L=t[I];if(!L||p(L))u(h,w);else{var D,N;if(p(L)&&!x&&(L=w),i.sub(c,L,M),"x"===v||"y"===v){var C="x"===v?0:1;D=Math.abs(w[C]-M[C]),N=Math.abs(w[C]-L[C])}else D=i.dist(w,M),N=i.dist(w,L);A=N/(N+D),l(h,w,c,-y*(1-A))}r(d,d,m),s(d,d,f),r(h,h,m),s(h,h,f),e.bezierCurveTo(d[0],d[1],h[0],h[1],w[0],w[1]),l(d,w,c,y*A)}else e.lineTo(w[0],w[1]);b=_,_+=g}return S}function y(e,t){var a=[1/0,1/0],o=[-1/0,-1/0];if(t)for(var i=0;io[0]&&(o[0]=n[0]),n[1]>o[1]&&(o[1]=n[1])}return{min:t?a:o,max:t?o:a}}var v=o.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:n(o.prototype.brush),buildPath:function(e,t){var a=t.points,o=0,i=a.length,n=y(a,t.smoothConstraint);if(t.connectNulls){for(;i>0;i--)if(!p(a[i-1]))break;for(;o0;n--)if(!p(a[n-1]))break;for(;it[0]?1:-1;t[0]+=o*a,t[1]-=o*a}return t}function S(e,t,a){if(!a.valueDim)return[];for(var o=[],i=0,n=t.count();ir[1]&&r.reverse();var s=i.getExtent(),u=Math.PI/180;a&&(r[0]-=.5,r[1]+=.5);var c=new l.Sector({shape:{cx:f(e.cx,1),cy:f(e.cy,1),r0:f(r[0],1),r:f(r[1],1),startAngle:-s[0]*u,endAngle:-s[1]*u,clockwise:i.inverse}});return t&&(c.shape.endAngle=-s[0]*u,l.initProps(c,{shape:{endAngle:-s[1]*u}},o)),c}function L(e,t,a,o){return"polar"===e.type?I(e,t,a,o):w(e,t,a,o)}function A(e,t,a){for(var o=t.getBaseAxis(),i="x"===o.dim||"radius"===o.dim?0:1,n=[],r=0;r=0;r--){var s=a[r].dimension,u=e.dimensions[s],c=e.getDimensionInfo(u);if(o=c&&c.coordDim,"x"===o||"y"===o){n=a[r];break}}if(n){var d=t.getAxis(o),h=i.map(n.stops,function(e){return{coord:d.toGlobalCoord(d.dataToCoord(e.value)),color:e.color}}),p=h.length,g=n.outerColors.slice();p&&h[0].coord>h[p-1].coord&&(h.reverse(),g.reverse());var f=10,m=h[0].coord-f,y=h[p-1].coord+f,v=y-m;if(v<.001)return"transparent";i.each(h,function(e){e.offset=(e.coord-m)/v}),h.push({offset:p?h[p-1].offset:.5,color:g[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:g[0]||"transparent"});var x=new l.LinearGradient(0,0,0,0,h,!0);return x[o]=m,x[o+"2"]=y,x}}}function D(e,t,a){var o=e.get("showAllSymbol"),n="auto"===o;if(!o||n){var r=a.getAxesByScale("ordinal")[0];if(r&&(!n||!N(r,t))){var s=t.mapDimension(r.dim),l={};return i.each(r.getViewLabels(),function(e){l[e.tickValue]=1}),function(e){return!l.hasOwnProperty(t.get(s,e))}}}}function N(e,t){var a=e.getExtent(),o=Math.abs(a[1]-a[0])/e.scale.count();isNaN(o)&&(o=0);for(var i=t.count(),n=Math.max(1,Math.round(i/5)),s=0;so)return!1;return!0}var C=p.extend({type:"line",init:function(){var e=new l.Group,t=new n;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,a){var o=e.coordinateSystem,n=this.group,r=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=r.mapArray(r.getItemLayout),c="polar"===o.type,d=this._coordSys,h=this._symbolDraw,p=this._polyline,g=this._polygon,f=this._lineGroup,m=e.get("animation"),v=!l.isEmpty(),_=l.get("origin"),w=y(o,r,_),I=S(o,r,w),N=e.get("showSymbol"),C=N&&!c&&D(e,r,o),P=this._data;P&&P.eachItemGraphicEl(function(e,t){e.__temp&&(n.remove(e),P.setItemGraphicEl(t,null))}),N||h.remove(),n.add(f);var T=!c&&e.get("step");p&&d.type===o.type&&T===this._step?(v&&!g?g=this._newPolygon(u,I,o,m):g&&!v&&(f.remove(g),g=this._polygon=null),f.setClipPath(L(o,!1,!1,e)),N&&h.updateData(r,{isIgnore:C,clipShape:L(o,!1,!0,e)}),r.eachItemGraphicEl(function(e){e.stopAnimation(!0)}),x(this._stackedOnPoints,I)&&x(this._points,u)||(m?this._updateAnimation(r,I,o,a,T,_):(T&&(u=A(u,o,T),I=A(I,o,T)),p.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:I})))):(N&&h.updateData(r,{isIgnore:C,clipShape:L(o,!1,!0,e)}),T&&(u=A(u,o,T),I=A(I,o,T)),p=this._newPolyline(u,o,m),v&&(g=this._newPolygon(u,I,o,m)),f.setClipPath(L(o,!0,!1,e)));var E=M(r,o)||r.getVisual("color");p.useStyle(i.defaults(s.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"}));var V=e.get("smooth");if(V=b(e.get("smooth")),p.setShape({smooth:V,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),g){var R=r.getCalculationInfo("stackedOnSeries"),O=0;g.useStyle(i.defaults(l.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel"})),R&&(O=b(R.get("smooth"))),g.setShape({smooth:V,stackedOnSmooth:O,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=r,this._coordSys=o,this._stackedOnPoints=I,this._points=u,this._step=T,this._valueOrigin=_},dispose:function(){},highlight:function(e,t,a,o){var i=e.getData(),n=u.queryDataIndex(i,o);if(!(n instanceof Array)&&null!=n&&n>=0){var s=i.getItemGraphicEl(n);if(!s){var l=i.getItemLayout(n);if(!l)return;s=new r(i,n),s.position=l,s.setZ(e.get("zlevel"),e.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,i.setItemGraphicEl(n,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else p.prototype.highlight.call(this,e,t,a,o)},downplay:function(e,t,a,o){var i=e.getData(),n=u.queryDataIndex(i,o);if(null!=n&&n>=0){var r=i.getItemGraphicEl(n);r&&(r.__temp?(i.setItemGraphicEl(n,null),this.group.remove(r)):r.downplay())}else p.prototype.downplay.call(this,e,t,a,o)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new d({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new h({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(a),this._polygon=a,a},_updateAnimation:function(e,t,a,o,i,n){var r=this._polyline,u=this._polygon,c=e.hostModel,d=s(this._data,e,this._stackedOnPoints,t,this._coordSys,a,this._valueOrigin,n),h=d.current,p=d.stackedOnCurrent,g=d.next,f=d.stackedOnNext;i&&(h=A(d.current,a,i),p=A(d.stackedOnCurrent,a,i),g=A(d.next,a,i),f=A(d.stackedOnNext,a,i)),r.shape.__points=d.current,r.shape.points=h,l.updateProps(r,{shape:{points:g}},c),u&&(u.setShape({points:h,stackedOnPoints:p}),l.updateProps(u,{shape:{points:g,stackedOnPoints:f}},c));for(var m=[],y=d.status,v=0;v=0;y--){var v=m[y],x=v.node,b=v.width,_=v.text;f>g.width&&(f-=b-c,b=c,_=null);var S=new o.Polygon({shape:{points:h(l,0,b,d,y===m.length-1,0===y)},style:n.defaults(a.getItemStyle(),{lineJoin:"bevel",text:_,textFill:r.getTextColor(),textFont:r.getFont()}),z:10,onclick:n.curry(s,x)});this.group.add(S),p(S,e,x),l+=b+u}},remove:function(){this.group.removeAll()}};var g=d;e.exports=g},f6ed:function(e,t,a){var o=a("6d8b");function i(e,t){var a={};return o.each(e,function(e){e.each(e.mapDimension("value"),function(t,o){var i="ec-"+e.getName(o);a[i]=a[i]||[],isNaN(t)||a[i].push(t)})}),e[0].map(e[0].mapDimension("value"),function(o,i){for(var n,r="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=a[r].length,d=0;d