e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},a.inherits(i,o);var r=i;t.exports=r},2597:function(t,e,n){n(2151);var i=n(1245).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=i},2598:function(t,e,n){n(2151),n(2599)},2599:function(t,e,n){var b=n(768),w=n(852),l=n(1468),i=n(1506),u=n(2153),c=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine"],d=i.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new w.Group,this.group.add(this._axisGroup),e.get("show")){var o=e.getCoordSysModel(),r=u.layout(o,e),s=new l(e,r);b.each(c,s.add,s),this._axisGroup.add(s.getGroup()),b.each(h,function(t){e.get(t+".show")&&this["_"+t](e,o)},this),w.groupTransition(a,this._axisGroup,e),d.superCall(this,"render",e,t,n,i)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),a=i.getModel("lineStyle"),o=a.get("color");o=b.isArray(o)?o:[o];for(var r=e.coordinateSystem.getRect(),s=n.isHorizontal(),l=0,u=n.getTicksCoords({tickModel:i}),c=[],h=[],d=a.getLineStyle(),p=0;p=n.r0}}});t.exports=o},2608:function(t,e,n){var i=n(965),I=i.parsePercent,T=i.linearMap,D=n(2609),k=n(768),P=2*Math.PI,L=Math.PI/180;t.exports=function(t,e,M,n){e.eachSeriesByType(t,function(t){var a=t.getData(),e=a.mapDimension("value"),n=t.get("center"),i=t.get("radius");k.isArray(i)||(i=[0,i]),k.isArray(n)||(n=[n,n]);var o=M.getWidth(),r=M.getHeight(),s=Math.min(o,r),l=I(n[0],o),u=I(n[1],r),c=I(i[0],s/2),h=I(i[1],s/2),d=-t.get("startAngle")*L,p=t.get("minAngle")*L,f=0;a.each(e,function(t){isNaN(t)||f++});var g=a.getSum(e),m=Math.PI/(g||f)*2,v=t.get("clockwise"),y=t.get("roseType"),x=t.get("stillShowZeroSum"),_=a.getDataExtent(e);_[0]=0;var A=P,b=0,w=d,S=v?1:-1;if(a.each(e,function(t,e){var n;if(isNaN(t))a.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:l,cy:u,r0:c,r:y?NaN:h});else{(n="area"!==y?0===g&&x?m:t*m:P/f)a[i].y+a[i].height)return void l(i,n/2);l(e-1,n/2)}function l(t,e){for(var n=t;0<=n&&(a[n].y-=e,!(0a[n-1].y+a[n-1].height));n--);}function u(t,e,n,i,a,o){for(var r=e?Number.MAX_VALUE:0,s=0,l=t.length;s=e?f.push(a[g]):p.push(a[g]);u(p,!1,t,e,n,i),u(f,!0,t,e,n,i)}function d(t){return"center"===t.position}t.exports=function(M,I,t,e,n){var T,D,k=M.getData(),P=[],L=!1,B=(M.get("minShowLabelAngle")||0)*i;k.each(function(t){var e=k.getItemLayout(t),n=k.getItemModel(t),i=n.getModel("label"),a=i.get("position")||n.get("emphasis.label.position"),o=n.getModel("labelLine"),r=o.get("length"),s=o.get("length2");if(!(e.anglen[0]&&isFinite(u)&&isFinite(n[0]););else{var c=a.getTicks().length-1;p"+o.map(t,function(t,e){var n=a.get(a.mapDimension(t.dim),i);return r(t.name+" : "+n)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),l=s;t.exports=l},2621:function(t,e,n){var i=n(789),v=n(852),y=n(768),d=n(1321);var a=i.extendChartView({type:"radar",render:function(l,t,e){var n=l.coordinateSystem,g=this.group,m=l.getData(),s=this._data;function u(t,e){var n=t.getItemVisual(e,"symbol")||"circle",i=t.getItemVisual(e,"color");if("none"!==n){var a,o=(a=t.getItemVisual(e,"symbolSize"),y.isArray(a)||(a=[+a,+a]),a),r=d.createSymbol(n,-1,-1,2,2,i);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[o[0]/2,o[1]/2]}),r}}function c(t,e,n,i,a,o){n.removeAll();for(var r=0;r"+u(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},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)"}}}});c.mixin(r,o);var s=r;t.exports=s},2626:function(t,e,n){var r=n(768).each,s=n(2146),i=n(987).makeInner,l=n(2627),u=n(2628),c=n(2629),h=n(2630),d=i(),a={load:function(i,t){var e=d(t).parsed;if(e)return e;var n,a=t.specialAreas||{},o=t.geoJSON;try{n=o?s(o):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return l(i,n),r(n,function(t){var e=t.name;u(i,t),c(i,t),h(i,t);var n=a[e];n&&t.transformTo(n.left,n.top,n.width,n.height)}),d(t).parsed={regions:n,boundingRect:function(t){for(var e,n=0;no&&(o=t.depth)});var r=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:o;return a.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=r}),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),a=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+"."+o,i=i.parentNode;return r(o+(isNaN(a)||null==a?"":" : "+a))},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}});t.exports=a},2640:function(t,e,n){var M=n(768),I=n(852),T=n(1693),m=n(2161).radialCoordinate,i=n(789),l=n(1686),u=n(1816),s=n(1813),a=n(1603),c=n(1698).onIrrelevantElement,o=i.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new I.Group,this._controller=new a(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(i,t,n,e){var a=i.getData(),o=i.layoutInfo,r=this._mainGroup,s=i.get("layout");"radial"===s?r.attr("position",[o.x+o.width/2,o.y+o.height/2]):r.attr("position",[o.x,o.y]),this._updateViewCoordSys(i,o,s),this._updateController(i,t,n);var l=this._data,u={expandAndCollapse:i.get("expandAndCollapse"),layout:s,orient:i.getOrient(),curvature:i.get("lineStyle.curveness"),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add(function(t){h(a,t)&&d(a,t,null,r,i,u)}).update(function(t,e){var n=l.getItemGraphicEl(e);h(a,t)?d(a,t,n,r,i,u):n&&p(l,e,n,r,i,u)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&p(l,t,e,r,i,u)}).execute(),this._nodeScaleRatio=i.get("nodeScaleRatio"),this._updateNodeAndLinkScale(i),!0===u.expandAndCollapse&&a.eachItemGraphicEl(function(t,e){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:e})})}),this._data=a},_updateViewCoordSys:function(t){var n=t.getData(),i=[];n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])});var e=[],a=[];l.fromPoints(i,e,a);var o=this._min,r=this._max;a[0]-e[0]==0&&(e[0]=o?o[0]:e[0]-1,a[0]=r?r[0]:a[0]+1),a[1]-e[1]==0&&(e[1]=o?o[1]:e[1]-1,a[1]=r?r[1]:a[1]+1);var s=t.coordinateSystem=new u;s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(e[0],e[1],a[0]-e[0],a[1]-e[1]),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=e,this._max=a},_updateController:function(a,t,o){var e=this._controller,n=this._controllerHost,r=this.group;e.setPointerChecker(function(t,e,n){var i=r.getBoundingRect();return i.applyTransform(r.transform),i.contain(e,n)&&!c(t,o,a)}),e.enable(a.get("roam")),n.zoomLimit=a.get("scaleLimit"),n.zoom=a.coordinateSystem.getZoom(),e.off("pan").off("zoom").on("pan",function(t){s.updateViewOnPan(n,t.dx,t.dy),o.dispatchAction({seriesId:a.id,type:"treeRoam",dx:t.dx,dy:t.dy})},this).on("zoom",function(t){s.updateViewOnZoom(n,t.scale,t.originX,t.originY),o.dispatchAction({seriesId:a.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(a)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr("scale",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,a=i&&i[0]||1;return((e.getZoom()-1)*n+1)/a},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function D(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function d(t,e,n,i,a,o){var r=!n,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),u=(o=D(s,l,o),t.tree.root),c=s.parentNode===u?s:s.parentNode||s,h=t.getItemGraphicEl(c.dataIndex),d=c.getLayout(),p=h?{x:h.position[0],y:h.position[1],rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,f=s.getLayout();r?(n=new T(t,e,o)).attr("position",[p.x,p.y]):n.updateData(t,e,o),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=f.rawX,n.__radialRawY=f.rawY,i.add(n),t.setItemGraphicEl(e,n),I.updateProps(n,{position:[f.x,f.y]},a);var g=n.getSymbolPath();if("radial"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(f.x===x.x&&!0===s.isExpand){var A={};A.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,A.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(A.y-x.y,A.x-x.x))<0&&(m=2*Math.PI+m),(v=A.xx.x)||(m-=Math.PI);var b=v?"left":"right",w=o.labelModel.get("rotate"),S=w*(Math.PI/180);g.setStyle({textPosition:o.labelModel.get("position")||b,textRotation:null==w?-m:S,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==u){var C=n.__edge;C=C||(n.__edge=new I.BezierCurve({shape:k(o,p,p),style:M.defaults({opacity:0,strokeNoScale:!0},o.lineStyle)})),I.updateProps(C,{shape:k(o,d,f),style:{opacity:1}},a),i.add(C)}}function p(t,e,n,i,a,o){for(var r,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=s.getModel(),c=(o=D(s,u,o),s.parentNode===l?s:s.parentNode||s);null==(r=c.getLayout());)c=c.parentNode===l?c:c.parentNode||c;I.updateProps(n,{position:[r.x+1,r.y+1]},a,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var h=n.__edge;h&&I.updateProps(h,{shape:k(o,r,r),style:{opacity:0}},a,function(){i.remove(h)})}function k(t,e,n){var i,a,o,r,s,l,u,c,h=t.orient;if("radial"!==t.layout)return s=e.x,u=e.y,l=n.x,c=n.y,"LR"!==h&&"RL"!==h||(i=s+(l-s)*t.curvature,a=u,o=l+(s-l)*t.curvature,r=c),"TB"!==h&&"BT"!==h||(i=s,a=u+(c-u)*t.curvature,o=l,r=c+(u-c)*t.curvature),{x1:s,y1:u,x2:l,y2:c,cpx1:i,cpy1:a,cpx2:o,cpy2:r};s=e.rawX,u=e.rawY,l=n.rawX,c=n.rawY;var d=m(s,u),p=m(s,u+(c-u)*t.curvature),f=m(l,c+(u-c)*t.curvature),g=m(l,c);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:p.x,cpy1:p.y,cpx2:f.x,cpy2:f.y}}t.exports=o},2641:function(t,e,n){var i=n(789),a=n(1814).updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(i,t){t.eachComponent({mainType:"series",subType:"tree",query:i},function(t){var e=i.dataIndex,n=t.getData().tree.getNodeByDataIndex(e);n.isExpand=!n.isExpand})}),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(i,t){t.eachComponent({mainType:"series",subType:"tree",query:i},function(t){var e=t.coordinateSystem,n=a(e,i);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)})})},2642:function(t,e,n){var i=n(2643),x=i.eachAfter,_=i.eachBefore,a=n(2161),A=a.init,b=a.firstWalk,w=a.secondWalk,S=a.separation,C=a.radialCoordinate,M=a.getViewRect;t.exports=function(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=M(t,e);t.layoutInfo=n;var i=t.get("layout"),a=0,o=0,r=null;r="radial"===i?(a=2*Math.PI,o=Math.min(n.height,n.width)/2,S(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(a=n.width,o=n.height,S());var s=t.getData().tree.root,l=s.children[0];if(l){A(s),x(l,b,r),s.hierNode.modifier=-l.hierNode.prelim,_(l,w);var u=l,c=l,h=l;_(l,function(t){var e=t.getLayout().x;ec.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var d=u===c?1:r(u,c)/2,p=d-u.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=a/(c.getLayout().x+d+p),g=o/(h.depth-1||1),_(l,function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=C(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+p),f=a/(h.depth-1||1),_(l,function(t){v=(t.getLayout().x+p)*g,m="LR"===y?(t.depth-1)*f:a-(t.depth-1)*f,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(f=a/(c.getLayout().x+d+p),g=o/(h.depth-1||1),_(l,function(t){m=(t.getLayout().x+p)*f,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}(t,e)})}},2643:function(t,e){e.eachAfter=function(t,e,n){for(var i,a=[t],o=[];i=a.pop();)if(o.push(i),i.isExpand){var r=i.children;if(r.length)for(var s=0;sc.width&&(h-=m-l,m=l,v=null);var y=new x.Polygon({shape:{points:w(s,0,m,u,p===d.length-1,0===p)},style:A.defaults(n.getItemStyle(),{lineJoin:"bevel",text:v,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:A.curry(a,g)});this.group.add(y),o=t,r=g,y.eventData={componentType:"series",componentSubType:"treemap",componentIndex:o.componentIndex,seriesIndex:o.componentIndex,seriesName:o.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&b(r,o)},s+=m+8}},remove:function(){this.group.removeAll()}};var a=i;t.exports=a},2648:function(t,e,n){var l=n(768);e.createWrap=function(){var o,r=[],s={};return{add:function(t,e,n,i,a){return l.isString(i)&&(a=i,i=0),!s[t.id]&&(s[t.id]=1,r.push({el:t,target:e,time:n,delay:i,easing:a}),!0)},done:function(t){return o=t,this},start:function(){for(var t=r.length,e=0,n=r.length;e=r.length||t===r[t.depth]){var n=C(l,h,t,e,y,s);i(t,n,a,o,r,s)}})}else f=w(h),t.setVisual("color",f)}(o,{},_.map(a.levelModels,function(t){return t?t.get(A):null}),r,t.getViewRoot().getAncestors(),t)}};function b(n,i,a,o){var r=_.extend({},i);return _.each(["color","colorAlpha","colorSaturation"],function(t){var e=n.get(t,!0);null==e&&a&&(e=a[t]),null==e&&(e=i[t]),null==e&&(e=o.get(t)),null!=e&&(r[t]=e)}),r}function w(t){var e=o(t,"color");if(e){var n=o(t,"colorAlpha"),i=o(t,"colorSaturation");return i&&(e=x.modifyHSL(e,null,null,i)),n&&(e=x.modifyAlpha(e,n)),e}}function o(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function S(t,e,n,i,a,o){if(o&&o.length){var r=f(e,"color")||null!=a.color&&"none"!==a.color&&(f(e,"colorAlpha")||f(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:r.name,dataExtent:u,visual:r.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new p(h);return d.__drColorMappingBy=c,d}}}function f(t,e){var n=t.get(e);return i(n)&&n.length?{name:e,range:n}:null}function C(t,e,n,i,a,o){var r=_.extend({},e);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));r[s]=a.mapValueToVisual(u)}return r}t.exports=a},2651:function(t,e,n){var A=n(768),b=n(1152),i=n(965),w=i.parsePercent,S=i.MAX_SAFE_INTEGER,C=n(1146),M=n(1507),I=Math.max,T=Math.min,D=A.retrieve,k=A.each,P=["itemStyle","borderWidth"],L=["itemStyle","gapWidth"],a=["upperLabel","show"],o=["upperLabel","height"],r={seriesType:"treemap",reset:function(t,e,n,i){var a=n.getWidth(),o=n.getHeight(),r=t.option,s=C.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=r.size||[],u=w(D(s.width,l[0]),a),c=w(D(s.height,l[1]),o),h=i&&i.type,d=M.retrieveTargetInfo(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),g=M.getPathToRoot(f);if("treemapMove"!==h){var m="treemapZoomToNode"===h?function(t,e,n,i,a){var o,r=(e||{}).node,s=[i,a];if(!r||r===n)return s;var l=i*a,u=l*t.option.zoomToNodeRatio;for(;o=r.parentNode;){for(var c=0,h=o.children,d=0,p=h.length;ds[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:i,dataExtent:s}}(e,r,s);if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,n,i,a){if(!i)return n;for(var o=t.get("visibleMin"),r=a.length,s=r,l=r-1;0<=l;l--){var u=a["asc"===i?r-l-1:l].getValue();u/n*en[l[r]])&&(c=n[l[r]]);for(var h=0,d=t.length;h ")),a.value&&(l+=" : "+c(a.value)),l},_updateCategoriesData:function(){var t=o.map(this.option.categories||[],function(t){return null!=t.value?t:o.extend({value:0},t)}),e=new a(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return d.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,friction:.6,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}}}}),s=d;t.exports=s},2654:function(t,e,n){n(1127).__DEV__;var i=n(768),a=n(1427).enableClassCheck;function h(t){return"_EC_"+t}function o(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData}var r=o.prototype;function d(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function s(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}r.type="graph",r.isDirected=function(){return this._directed},r.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[h(t)]){var i=new d(t,e);return(i.hostGraph=this).nodes.push(i),n[h(t)]=i}},r.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.getNodeById=function(t){return this._nodesMap[h(t)]},r.addEdge=function(t,e,n){var i=this._nodesMap,a=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),d.isInstance(t)||(t=i[h(t)]),d.isInstance(e)||(e=i[h(e)]),t&&e){var o=t.id+"-"+e.id;if(!a[o]){var r=new s(t,e,n);return(r.hostGraph=this)._directed&&(t.outEdges.push(r),e.inEdges.push(r)),t.edges.push(r),t!==e&&e.edges.push(r),this.edges.push(r),a[o]=r}}},r.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.getEdge=function(t,e){d.isInstance(t)&&(t=t.id),d.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.eachNode=function(t,e){for(var n=this.nodes,i=n.length,a=0;a=t&&(0===e?0:i[e-1][0])a*(1-c[0])?(l="jump",r=s-a*(1-c[2])):0<=(r=s-a*c[1])&&(r=s-a*(1-c[1]))<=0&&(r=0),(r*=e.axisExpandWidth/u)?d(r,i,o,"all"):l="none";else{a=i[1]-i[0];(i=[m(0,o[1]*s/a-a/2)])[1]=g(o[1],i[0]+a),i[0]=i[1]-a}return{axisExpandWindow:i,behavior:l}}};var s=r;t.exports=s},2678:function(t,e,n){function i(t,e,n,i,a){o.call(this,t,e,n),this.type=i||"value",this.axisIndex=a}var a=n(768),o=n(1467);i.prototype={constructor:i,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},a.inherits(i,o);var r=i;t.exports=r},2679:function(t,e,n){var i=n(768),a=n(1245);n(2680);var o=a.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(e){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},_initDimensions:function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],t=i.filter(this.dependentModels.parallelAxis,function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);i.each(t,function(t){e.push("dim"+t.get("dim")),n.push(t.componentIndex)})}});t.exports=o},2680:function(t,e,n){var i=n(768),a=n(1245),o=n(1549),r=n(1694),s=n(965),l=n(1553),u=a.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i.clone(t);if(e)for(var n=e.length-1;0<=n;n--)s.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,a=e.length;ip&&(p=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},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,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),d=h;t.exports=d},2710:function(t,e,n){n(1127).__DEV__;var i=n(789),r=n(1818),s=n(2170),l=n(1819),u=n(2171),c=n(2711),h=n(2712),d=n(2172),p=n(1599).createClipPath,a=i.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var i=t.getData(),a=this._updateLineDraw(i,t),o=t.get("zlevel"),r=t.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&r&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),a.updateData(i);var u=t.get("clip",!0)&&p(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var i=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var o=d.reset(t);o.progress&&o.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(t,e){var n=this._lineDraw,i=this._showEffect(e),a=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&a===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new h:new r(a?i?c:u:i?s:l),this._hasEffet=i,this._isPolyline=a,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=a},2711:function(t,e,n){var i=n(2171),a=n(768),o=n(2170),u=n(1150);function r(t,e,n){o.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var s=r.prototype;s.createLine=function(t,e,n){return new i(t,e,n)},s.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,a=1;ae);r++);r=Math.min(r-1,a-2)}u.lerp(t.position,n[r],n[r+1],(e-i[r])/(i[r+1]-i[r]));var s=n[r+1][0]-n[r][0],l=n[r+1][1]-n[r][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},a.inherits(r,o);var l=r;t.exports=l},2712:function(t,e,n){var i=n(852),a=n(1806),g=n(2126),m=n(2127),o=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var a=0;a=v[0]&&t<=v[1]}):(c=I,h=e.getPieceList(),d=e.option.selected,p=c[1]-c[0],f=(h=L.map(h,function(t){return{interval:[(t.interval[0]-c[0])/p,(t.interval[1]-c[0])/p]}})).length,g=0,function(t){for(var e=g;e=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[a]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-a]=0==a?n.y+n.height/2:n.x+n.width/2,i}};var l=o;t.exports=l},2724:function(t,e,n){function i(t,e,n,i,a){o.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom",this.orient=null}var a=n(768),o=n(1467);i.prototype={constructor:i,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},a.inherits(i,o);var r=i;t.exports=r},2725:function(t,e,n){var s=n(768),l=n(1468),m=n(852),u=n(2174),i=n(1506),c=["axisLine","axisTickLabel","axisName"],h=i.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,i){var a=this.group;a.removeAll();var o=u.layout(t),r=new l(t,o);s.each(c,r.add,r),a.add(r.getGroup()),t.get("splitLine.show")&&this._splitLine(t),h.superCall(this,"render",t,e,n,i)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),i=n.getModel("lineStyle"),a=i.get("width"),o=i.get("color");o=o instanceof Array?o:[o];for(var r=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,c=e.getTicksCoords({tickModel:n}),h=[],d=[],p=0;p=n.r0}}});t.exports=a},2738:function(t,e,n){var S=n(768),C=n(852),r="none",s="ancestor",l="self";function i(t,e,n){C.Group.call(this);var i=new C.Sector({z2:2});i.seriesIndex=e.seriesIndex;var a=new C.Text({z2:4,silent:t.getModel("label").get("silent")});function o(){a.ignore=a.hoverIgnore}function r(){a.ignore=a.normalIgnore}this.add(i),this.add(a),this.updateData(!0,t,"normal",e,n),this.on("emphasis",o).on("normal",r).on("mouseover",o).on("mouseout",r)}var a=i.prototype;a.updateData=function(t,e,n,i,a){(this.node=e).piece=this,i=i||this._seriesModel,a=a||this._ecModel;var o=this.childAt(0);o.dataIndex=e.dataIndex;var r=e.getModel(),s=e.getLayout(),l=S.extend({},s);l.label=null;var u,c,h=function(t,e,n){var i=t.getVisual("color"),a=t.getVisual("visualMeta");a&&0!==a.length||(i=null);var o=t.getModel("itemStyle").get("color");{if(o)return o;if(i)return i;if(0===t.depth)return n.option.color[0];var r=n.option.color.length;o=n.option.color[function(t){var e=t;for(;1Math.PI/2?"right":"left"):y&&"center"!==y?"left"===y?(d=l.r0+v,p>Math.PI/2&&(y="right")):"right"===y&&(d=l.r-v,p>Math.PI/2&&(y="left")):(d=(l.r+l.r0)/2,y="center"),h.attr("style",{text:s,textAlign:y,textVerticalAlign:w("verticalAlign")||"middle",opacity:w("opacity")});var x=d*f+l.cx,_=d*g+l.cy;h.attr("position",[x,_]);var A=w("rotate"),b=0;function w(t){var e=o.get(t);return null==e?a.get(t):e}"radial"===A?(b=-p)<-Math.PI/2&&(b+=Math.PI):"tangential"===A?(b=Math.PI/2-p)>Math.PI/2?b-=Math.PI:b<-Math.PI/2&&(b+=Math.PI):"number"==typeof A&&(b=A*Math.PI/180),h.attr("rotation",b)},a._initEvents=function(t,e,n,i){t.off("mouseover").off("mouseout").off("emphasis").off("normal");function a(){r.onEmphasis(i)}function o(){r.onNormal()}var r=this;n.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",o).on("emphasis",a).on("normal",o).on("downplay",function(){r.onDownplay()}).on("highlight",function(){r.onHighlight()})},S.inherits(i,C.Group);var o=i;t.exports=o},2739:function(t,e,n){var i=n(789),o=n(1507),r="sunburstRootToNode";i.registerAction({type:r,update:"updateView"},function(a,t){t.eachComponent({mainType:"series",subType:"sunburst",query:a},function(t,e){var n=o.retrieveTargetInfo(a,[r],t);if(n){var i=t.getViewRoot();i&&(a.direction=o.aboveViewRoot(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}})});var a="sunburstHighlight";i.registerAction({type:a,update:"updateView"},function(i,t){t.eachComponent({mainType:"series",subType:"sunburst",query:i},function(t,e){var n=o.retrieveTargetInfo(i,[a],t);n&&(i.highlight=n.node)})});i.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(n,t){t.eachComponent({mainType:"series",subType:"sunburst",query:n},function(t,e){n.unhighlight=!0})})},2740:function(t,e,n){var k=n(965).parsePercent,P=n(768),L=Math.PI/180;function B(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0==n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}t.exports=function(t,e,D,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");P.isArray(n)||(n=[0,n]),P.isArray(e)||(e=[e,e]);var i=D.getWidth(),a=D.getHeight(),c=Math.min(i,a),h=k(e[0],i),d=k(e[1],a),p=k(n[0],c/2),o=k(n[1],c/2),r=-t.get("startAngle")*L,f=t.get("minAngle")*L,g=t.getData().tree.root,s=t.getViewRoot(),m=s.depth,l=t.get("sort");null!=l&&!function e(t,n){var i=t.children||[];t.children=B(i,n);i.length&&P.each(t.children,function(t){e(t,n)})}(s,l);var u=0;P.each(s.children,function(t){isNaN(t.getValue())||u++});var v=s.getValue(),y=Math.PI/(v||u)*2,x=0t[1]&&t.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:t[1],r0:t[0]},api:{coord:i.bind(function(t){var e=o.dataToRadius(t[0]),n=r.dataToAngle(t[1]),i=a.coordToPoint([e,n]);return i.push(e,n*Math.PI/180),i}),size:i.bind(s,a)}}}},2746:function(t,e){t.exports=function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}},2747:function(t,e,n){n(1601),n(2177),n(1604)},2748:function(t,e,n){var i=n(789),a=n(768),o=n(2749);n(1823),n(2755),n(2757),n(1604),n(2759),i.registerLayout(a.curry(o,"bar")),i.extendComponentView({type:"polar"})},2749:function(t,e,n){var p=n(768),m=n(965).parsePercent,O=n(1413).isDimensionStacked;function N(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function R(t,e){return e.dim+t.model.componentIndex}function i(t,e,n){var B={},E=function(t){var g={};p.each(t,function(t,e){var n=t.getData(),i=t.coordinateSystem,a=i.getBaseAxis(),o=R(i,a),r=a.getExtent(),s="category"===a.type?a.getBandWidth():Math.abs(r[1]-r[0])/n.count(),l=g[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=l.stacks;g[o]=l;var c=N(t);u[c]||l.autoWidthCount++,u[c]=u[c]||{width:0,maxWidth:0};var h=m(t.get("barWidth"),s),d=m(t.get("barMaxWidth"),s),p=t.get("barGap"),f=t.get("barCategoryGap");h&&!u[c].width&&(h=Math.min(l.remainedWidth,h),u[c].width=h,l.remainedWidth-=h),d&&(u[c].maxWidth=d),null!=p&&(l.gap=p),null!=f&&(l.categoryGap=f)});var d={};return p.each(g,function(t,n){d[n]={};var e=t.stacks,i=t.bandWidth,a=m(t.categoryGap,i),o=m(t.gap,1),r=t.remainedWidth,s=t.autoWidthCount,l=(r-a)/(s+(s-1)*o);l=Math.max(l,0),p.each(e,function(t,e){var n=t.maxWidth;n&&ne[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,a=n*n+i*i,o=this.r,r=this.r0;return a<=o*o&&r*r<=a}}}};var r=i;t.exports=r},2751:function(t,e,n){var i=n(768),a=n(1467);function o(t,e){a.call(this,"radius",t,e),this.type="category"}o.prototype={constructor:o,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:a.prototype.dataToCoord,radiusToData:a.prototype.coordToData},i.inherits(o,a);var r=o;t.exports=r},2752:function(t,e,n){var i=n(768),p=n(1319),a=n(1467),f=(0,n(987).makeInner)();function o(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}o.prototype={constructor:o,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData,calculateCategoryInterval:function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var a=n[0],o=this.dataToCoord(a+1)-this.dataToCoord(a),r=Math.abs(o),s=p.getBoundingRect(a,t.getFont(),"center","top"),l=Math.max(s.height,7)/r;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),c=f(this.model),h=c.lastAutoInterval,d=c.lastTickCount;return null!=h&&null!=d&&Math.abs(h-u)<=1&&Math.abs(d-i)<=1&&ue[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),a=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function b(t){return t.getRadiusAxis().inverse?0:1}function l(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var a=i.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),r=y.map(n.getViewLabels(),function(t){return(t=y.clone(t)).coord=n.dataToCoord(t.tickValue),t});l(r),l(o),y.each(s,function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,i,o,a,r)},this)}},_axisLine:function(t,e,n,i){var a,o=t.getModel("axisLine.lineStyle"),r=b(e),s=r?0:1;(a=0===i[s]?new x.Circle({shape:{cx:e.cx,cy:e.cy,r:i[r]},style:o.getLineStyle(),z2:1,silent:!0}):new x.Ring({shape:{cx:e.cx,cy:e.cy,r:i[r],r0:i[s]},style:o.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(t,e,n,i){var a=t.getModel("axisTick"),o=(a.get("inside")?-1:1)*a.get("length"),r=i[b(e)],s=y.map(n,function(t){return new x.Line({shape:c(e,[r,r+o],t.coord)})});this.group.add(x.mergePath(s,{style:y.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(h,d,t,p,e){var f=h.getCategories(!0),g=h.getModel("axisLabel"),m=g.get("margin"),v=h.get("triggerEvent");y.each(e,function(t,e){var n=g,i=t.tickValue,a=p[b(d)],o=d.coordToPoint([a+m,t.coord]),r=d.cx,s=d.cy,l=Math.abs(o[0]-r)/a<.3?"center":o[0]>r?"left":"right",u=Math.abs(o[1]-s)/a<.3?"middle":o[1]>s?"top":"bottom";f&&f[i]&&f[i].textStyle&&(n=new _(f[i].textStyle,g,g.ecModel));var c=new x.Text({silent:A.isLabelSilent(h)});this.group.add(c),x.setTextStyle(c.style,n,{x:o[0],y:o[1],textFill:n.getTextColor()||h.get("axisLine.lineStyle.color"),text:t.formattedLabel,textAlign:l,textVerticalAlign:u}),v&&(c.eventData=A.makeAxisEventDataBase(h),c.eventData.targetType="axisLabel",c.eventData.value=t.rawLabel)},this)},_splitLine:function(t,e,n,i){var a=t.getModel("splitLine").getModel("lineStyle"),o=a.get("color"),r=0;o=o instanceof Array?o:[o];for(var s=[],l=0;lm?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,s,i.get("label.margin"));f.buildLabelElOption(t,n,i,a,d)}});var g={line:function(t,e,n,i,a){return"angle"===t.dim?{type:"Line",shape:f.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,a){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:f.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:f.makeSectorShape(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};a.registerAxisPointerClass("PolarAxisPointer",o);var r=o;t.exports=r},2760:function(t,e,n){var i=n(789),o=n(768);function a(a,t){t.update="updateView",i.registerAction(t,function(n,t){var i={};return t.eachComponent({mainType:"geo",query:n},function(e){e[a](n.name);var t=e.coordinateSystem;o.each(t.regions,function(t){i[t.name]=e.isSelected(t.name)||!1})}),{selected:i,name:n.name}})}n(2761),n(1815),n(2762),n(2159),a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"})},2761:function(t,e,n){var i=n(768),a=n(987),o=n(1245),r=n(1241),s=n(1812),l=n(1815),u=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){o.prototype.init.apply(this,arguments),a.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,n=this;t.regions=l.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=i.reduce(t.regions||[],function(t,e){return e.name&&t.set(e.name,new r(e,n)),t},i.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new r(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t).get("label"+("normal"===e?".":e+".")+"formatter"),i={name:t};return"function"==typeof n?(i.status=e,n(i)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});i.mixin(u,s);var c=u;t.exports=c},2762:function(t,e,n){var i=n(2157),a=n(789).extendComponentView({type:"geo",init:function(t,e){var n=new i(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=a},2763:function(t,e,n){n(2764),n(2765),n(2766)},2764:function(t,e,n){var c=n(768),h=n(1146),o=n(965),i=n(1381);function r(t,e,n){this._model=t}function a(t,e,n,i){var a=n.calendarModel,o=n.seriesModel,r=a?a.coordinateSystem:o?o.coordinateSystem:null;return r===this?r[t](i):null}r.prototype={constructor:r,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=o.parseDate(t)).getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var a=t.getDay();return{y:e,m:n,d:i,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.get("cellSize").slice(),o=this._model.getBoxLayoutParams(),r="horizontal"===this._orient?[n,7]:[7,n];c.each([0,1],function(t){u(a,t)&&(o[i[t]]=a[t]*r[t])});var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=h.getLayoutRect(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}c.each([0,1],function(t){u(a,t)||(a[t]=l[i[t]]/r[t])}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){c.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();if(i.setDate(a+n-1),i.getDate()!==o)for(var r=0i.weeks||0===t&&ei.lweek)return!1;var a=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(i.start.d+a),this.getDateInfo(o)}},r.dimensions=r.prototype.dimensions,r.getDimensionsInfo=r.prototype.getDimensionsInfo,r.create=function(n,i){var a=[];return n.eachComponent("calendar",function(t){var e=new r(t,n,i);a.push(e),t.coordinateSystem=e}),n.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=a[t.get("calendarIndex")||0])}),a},i.register("calendar",r);var s=r;t.exports=s},2765:function(t,e,n){var a=n(768),i=n(1245),o=n(1146),r=o.getLayoutParams,s=o.sizeCalculable,l=o.mergeLayoutParam,u=i.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,n,i){var a=r(t);u.superApply(this,"init",arguments),c(t,a)},mergeOption:function(t,e){u.superApply(this,"mergeOption",arguments),c(this.option,t)}});function c(t,e){var n=t.cellSize;a.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=a.map([0,1],function(t){return s(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});l(t,e,{type:"box",ignoreSize:i})}var h=u;t.exports=h},2766:function(t,e,n){var i=n(789),A=n(768),b=n(852),a=n(1153),v=n(965),w={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},y={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},o=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var a=t.coordinateSystem,o=a.getRangeInfo(),r=a.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,r,i),this._renderYearText(t,o,r,i),this._renderMonthText(t,r,i),this._renderWeekText(t,o,r,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),r=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new b.Rect({shape:{x:l[0],y:l[1],width:o,height:r},cursor:"default",style:a});n.add(u)}},_renderLines:function(n,t,i,a){var o=this,r=n.coordinateSystem,s=n.getModel("splitLine.lineStyle").getLineStyle(),l=n.get("splitLine.show"),e=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=r.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function d(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);var e=o._getLinePointsOfOneWeek(n,t,i);o._tlpoints.push(e[0]),o._blpoints.push(e[e.length-1]),l&&o._drawSplitline(e,s,a)}d(r.getNextNDay(t.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,e,i),s,a),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,e,i),s,a)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===n?0:1;return i[0][a]=i[0][a]-e/2,i[1][a]=i[1][a]+e/2,i},_drawSplitline:function(t,e,n){var i=new b.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var a=[],o=0;o<7;o++){var r=i.getNextNDay(e.time,o),s=i.dataToRect([r.time],!1);a[2*r.day]=s.tl,a[2*r.day+1]=s["horizontal"===n?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?a.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i,a){e=e.slice();var o=["center","bottom"];"bottom"===i?(e[1]+=a,o=["center","top"]):"left"===i?e[0]-=a:"right"===i?(e[0]+=a,o=["center","top"]):e[1]-=a;var r=0;return"left"!==i&&"right"!==i||(r=Math.PI/2),{rotation:r,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,i){var a=t.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),r=a.get("position");r=r||("horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=a.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new b.Text({z2:30});b.setTextStyle(m.style,a,{text:g}),m.attr(this._yearTextPositionControl(m,h[r],n,r,o)),i.add(m)}},_monthTextPositionControl:function(t,e,n,i,a){var o="left",r="top",s=t[0],l=t[1];return"horizontal"===n?(l+=a,e&&(o="center"),"start"===i&&(r="bottom")):(s+=a,e&&(r="middle"),"start"===i&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:r}},_renderMonthText:function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),r=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];A.isString(a)&&(a=w[a.toUpperCase()]||[]);var u="start"===r?0:1,c="horizontal"===e?0:1;o="start"===r?-o:o;for(var h="center"===s,d=0;dd.getHeight()&&(n.textPosition="top",o=!0);var r=o?-5-i.height:f+8;a+i.width/2>d.getWidth()?(n.textPosition=["100%",r],n.textAlign="right"):a-i.width/2<0&&(n.textPosition=[0,r],n.textAlign="left")}})}function t(t,e){var n,i=m[t],a=m[e],o=u[i],r=new _(o,c,c.ecModel);if(i&&!a){if(0===i.indexOf("my"))n={model:r,onclick:r.option.onclick,featureName:i};else{var s=y.get(i);if(!s)return;n=new s(r,h,d)}g[i]=n}else{if(!(n=g[a]))return;n.model=r,n.ecModel=h,n.api=d}i||!a?r.get("show")&&!n.unusable?(function(a,o,t){var r=a.getModel("iconStyle"),s=a.getModel("emphasis.iconStyle"),e=o.getIcons?o.getIcons():a.get("icon"),l=a.get("title")||{};if("string"==typeof e){var n=e,i=l;l={},(e={})[t]=n,l[t]=i}var u=a.iconPaths={};v.each(e,function(t,e){var n=x.createIcon(t,{},{x:-f/2,y:-f/2,width:f,height:f});n.setStyle(r.getItemStyle()),n.hoverStyle=s.getItemStyle(),n.setStyle({text:l[e],textAlign:s.get("textAlign"),textBorderRadius:s.get("textBorderRadius"),textPadding:s.get("textPadding"),textFill:null});var i=c.getModel("tooltip");i&&i.get("show")&&n.attr("tooltip",v.extend({content:l[e],formatter:i.get("formatter",!0)||function(){return l[e]},formatterParams:{componentType:"toolbox",name:e,title:l[e],$vars:["name","title"]},position:i.get("position",!0)||"bottom"},i.option)),x.setHoverStyle(n),c.get("showTitle")&&(n.__title=l[e],n.on("mouseover",function(){var t=s.getItemStyle(),e="vertical"===c.get("orient")?null==c.get("right")?"right":"left":null==c.get("bottom")?"bottom":"top";n.setStyle({textFill:s.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:s.get("textBackgroundColor"),textPosition:s.get("textPosition")||e})}).on("mouseout",function(){n.setStyle({textFill:null,textBackgroundColor:null})})),n.trigger(a.get("iconStatus."+e)||"normal"),p.add(n),n.on("click",v.bind(o.onclick,o,h,d,e)),u[e]=n})}(r,n,i),r.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},n.render&&n.render(r,h,d,l)):n.remove&&n.remove(h,d):n.dispose&&n.dispose(h,d)}},updateView:function(t,e,n,i){v.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},remove:function(e,n){v.each(this._features,function(t){t.remove&&t.remove(e,n)}),this.group.removeAll()},dispose:function(e,n){v.each(this._features,function(t){t.dispose&&t.dispose(e,n)})}});t.exports=r},2771:function(t,e,n){var f=n(1240),i=n(1466),a=n(1469),o=i.toolbox.saveAsImage;function r(t){this.model=t}r.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},r.prototype.unusable=!f.canvasSupported,r.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",a=n.get("type",!0)||"png",o=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||f.browser.ie||f.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var r=atob(o.split(",")[1]),s=r.length,l=new Uint8Array(s);s--;)l[s]=r.charCodeAt(s);var u=new Blob([l]);window.navigator.msSaveOrOpenBlob(u,i+"."+a)}else{var c=n.get("lang"),h='
';window.open().document.write(h)}else{var d=document.createElement("a");d.download=i+"."+a,d.target="_blank",d.href=o;var p=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});d.dispatchEvent(p)}},a.register("saveAsImage",r);var s=r;t.exports=s},2772:function(t,e,n){var i=n(789),p=n(768),a=n(1466),o=n(1469),r=a.toolbox.magicType;function s(t){this.model=t}s.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:p.clone(r.title),option:{},seriesIndex:{}};var l=s.prototype;l.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return p.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var f={line:function(t,e,n,i){if("bar"===t)return p.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return p.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return p.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return p.merge({id:e,stack:""},i.get("option.tiled")||{},!0)}},g=[["line","bar"],["stack","tiled"]];l.onclick=function(u,t,c){var h=this.model,e=h.get("seriesIndex."+c);if(f[c]){var d={series:[]};p.each(g,function(t){0<=p.indexOf(t,c)&&p.each(t,function(t){h.setIconStatus(t,"normal")})}),h.setIconStatus(c,"emphasis"),u.eachComponent({mainType:"series",query:null==e?null:{seriesIndex:e}},function(t){var e=t.subType,n=t.id,i=f[c](e,n,t,h);i&&(p.defaults(i,t.option),d.series.push(i));var a=t.coordinateSystem;if(a&&"cartesian2d"===a.type&&("line"===c||"bar"===c)){var o=a.getAxesByScale("ordinal")[0];if(o){var r=o.dim+"Axis",s=u.queryComponents({mainType:r,index:t.get(name+"Index"),id:t.get(name+"Id")})[0].componentIndex;d[r]=d[r]||[];for(var l=0;l<=s;l++)d[r][s]=d[r][s]||{};d[r][s].boundaryGap="bar"===c}}}),t.dispatchAction({type:"changeMagicType",currentType:c,newOption:d})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),o.register("magicType",s);var u=s;t.exports=u},2773:function(t,e,n){var i=n(789),_=n(768),A=n(1410),a=n(1466),o=n(1469),r=a.toolbox.dataView,s=new Array(60).join("-"),h="\t";function b(t){var a,o,r,e,n,c,i=(a={},o=[],r=[],t.eachRawSeries(function(t){var e=t.coordinateSystem;if(!e||"cartesian2d"!==e.type&&"polar"!==e.type)o.push(t);else{var n=e.getBaseAxis();if("category"===n.type){var i=n.dim+"_"+n.index;a[i]||(a[i]={categoryAxis:n,valueAxis:e.getOtherAxis(n),series:[]},r.push({axisDim:n.dim,axisIndex:n.index})),a[i].series.push(t)}else o.push(t)}}),{seriesGroupByCategoryAxis:a,other:o,meta:r});return{value:_.filter([(n=i.seriesGroupByCategoryAxis,c=[],_.each(n,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,a=[" "].concat(_.map(t.series,function(t){return t.name})),o=[n.model.getCategories()];_.each(t.series,function(t){o.push(t.getRawData().mapArray(i,function(t){return t}))});for(var r=[a.join(h)],s=0;si[1]&&(i[1]=e[1])})}),i[1]h[1];if(r&&!s&&!l)return!0;r&&(i=!0),s&&(e=!0),l&&(n=!0)}return i&&e&&n}):g(c,function(t){if("empty"===a)n.setData(u=u.map(t,function(t){return(e=t)>=h[0]&&e<=h[1]?t:NaN;var e}));else{var e={};e[t]=h,u.selectRange(e)}}),g(c,function(t){u.setApproximateExtent(h,t)}))})}}};var r=i;t.exports=r},2777:function(t,e,n){var i=n(1556).extend({type:"dataZoom.select"});t.exports=i},2778:function(t,e,n){var i=n(1557).extend({type:"dataZoom.select"});t.exports=i},2779:function(t,e,n){var i=n(789),a=n(2180),o=n(1466),r=n(1469),s=o.toolbox.restore;function l(t){this.model=t}l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title},l.prototype.onclick=function(t,e,n){a.clear(t),e.dispatchAction({type:"restore",from:this.uid})},r.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var u=l;t.exports=u},2780:function(t,e,n){var i=n(789);n(1604),n(2781),n(2782),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},2781:function(t,e,n){var i=n(789).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=i},2782:function(t,e,n){var i=n(789),b=n(768),c=n(1240),a=n(2783),o=n(2784),m=n(1153),r=n(965),s=n(852),h=n(2175),w=n(1146),l=n(1241),u=n(2176),v=n(1382),y=n(1699),d=n(987).getTooltipRenderMode,p=b.bind,x=b.each,S=r.parsePercent,f=new s.Rect({shape:{x:-1,y:-1,width:2,height:2}}),g=i.extendComponentView({type:"tooltip",init:function(t,e){if(!c.node){var n,i=t.getComponent("tooltip").get("renderMode");this._renderMode=d(i),"html"===this._renderMode?(n=new a(e.getDom(),e),this._newLine="
"):(n=new o(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!c.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var i=this._tooltipModel.get("triggerOn");u.register("itemTooltip",this._api,p(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!c.node){var a=A(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var r=f;r.position=[i.x,i.y],r.update(),r.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:r},a)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},a);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=h(i,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el,event:{}},a)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},a))}},manuallyHideTip:function(t,e,n,i){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(A(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var a=i.seriesIndex,o=i.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=o&&null!=r){var s=e.getSeriesByIndex(a);if(s)if("axis"===(t=_([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:o,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=b.bind(e,this),clearTimeout(this._showTimout),0e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&h(e)}};function h(t){return new a(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},2788:function(t,e,n){var u=n(2148),c=n(1152),h=n(852).linePolygonIntersect;function i(o){var r=["x","y"],s=["width","height"];return{point:function(t,e,n){if(t){var i=n.range;return l(t[o],i)}},rect:function(t,e,n){if(t){var i=n.range,a=[t[r[o]],t[r[o]]+t[s[o]]];return a[1]=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,a=this._names=[];if("category"===n){var o=[];r.each(e,function(t,e){var n,i=l.getDataItemValue(t);r.isObject(t)?(n=r.clone(t)).value=e:n=e,o.push(n),r.isString(i)||null!=i&&!isNaN(i)||(i=""),a.push(i+"")}),e=o}var i={category:"ordinal",time:"time"}[n]||"number";(this._data=new s([{name:"value",type:i}],this)).initData(e,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),o=a;t.exports=o},2800:function(t,e,n){var m=n(768),v=n(1152),y=n(1284),x=n(852),I=n(1146),i=n(2801),s=n(2802),p=n(1321).createSymbol,l=n(1382),f=n(965),u=n(1153).encodeHTML,_=m.bind,h=m.each,T=Math.PI,a=i.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,i){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,n),o=this._createGroup("mainGroup"),r=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,e);e.formatTooltip=function(t){return u(s.scale.getLabel(t))},h(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](a,o,s,e)},this),this._renderAxisLabel(a,r,s,e),this._position(a,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n,i,a=t.get("label.position"),o=t.get("orient"),r=(n=t,i=e,I.getLayoutRect(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},n.get("padding")));null==a||"auto"===a?a="horizontal"===o?r.y+r.height/2a[1]&&(n=a[1]),nn[a],p=[-c.x,-c.y];e||(p[i]=s.position[i]);var f=[0,0],g=[-h.x,-h.y],m=_.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?g[i]+=n[a]-h[a]:f[i]+=h[a]+m);g[1-i]+=c[o]/2-h[o]/2,s.attr("position",p),l.attr("position",f),u.attr("position",g);var v={x:0,y:0};if(v[a]=d?n[a]:c[a],v[o]=Math.max(c[o],h[o]),v[r]=Math.min(0,h[r]+g[1-i]),l.__rectSize=n[a],d){var y={x:0,y:0};y[a]=Math.max(n[a]-h[a]-m,0),y[o]=v[o],l.setClipPath(new A.Rect({shape:y})),l.__rectSize=y[a]}else u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&A.updateProps(s,{position:x.contentPosition},d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(i,a){var o=this._controllerGroup;_.each(["pagePrev","pageNext"],function(t){var e=null!=a[t+"DataIndex"],n=o.childOfName(t);n&&(n.setStyle("fill",e?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),n.cursor=e?"pointer":"default")});var t=o.childOfName("pageText"),e=i.get("pageFormatter"),n=a.pageIndex,r=null!=n?n+1:0,s=a.pageCount;t&&e&&t.setStyle("text",_.isString(e)?e.replace("{current}",r).replace("{total}",s):e({current:r,total:s}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,a=t.getOrient().index,o=w[a],r=S[a],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:n.position.slice(),pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=y(u);d.contentPosition[a]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=c;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(f=s-1,g=p,m=p,v=null;-1<=f;--f)(v=y(l[f]))&&x(m,v.s)||!(g.i=e&&t.s<=e+i}},_findTargetItemIndex:function(i){var a,o,t=this.getContentGroup();return this._showController&&t.eachChild(function(t,e){var n=t.__legendDataIndex;null==o&&null!=n&&(o=e),n===i&&(a=e)}),null!=a?a:o}}),o=d;t.exports=o},2817:function(t,e,n){n(789).registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})},2818:function(t,e,n){n(2184),n(2185)},2819:function(t,e,n){var i=n(1556).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});t.exports=i},2820:function(t,e,n){var m=n(768),u=n(1410),v=n(852),a=n(1465),i=n(1557),c=n(965),s=n(1146),h=n(1555),d=v.Rect,y=c.linearMap,p=c.asc,f=m.bind,g=m.each,x="horizontal",_=["line","bar","candlestick","scatter"],o=i.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){o.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){o.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){o.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new v.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},a=this._orient===x?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},o=s.getLayoutParams(t.option);m.each(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=a[t])});var r=s.getLayoutRect(o,i,t.padding);this._location={x:r.x,y:r.y},this._size=[r.width,r.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),a=i&&i.get("inverse"),o=this._displayables.barGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==x||a?n===x&&a?{scale:r?[-1,1]:[-1,-1]}:"vertical"!==n||a?{scale:r?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:r?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:r?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new d({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new d({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:m.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=a){var o=i.getDataExtent(a),r=.3*(o[1]-o[0]);o=[o[0]-r,o[1]+r];var s,l=[0,e[1]],u=[0,e[0]],c=[[e[0],0],[0,0]],h=[],d=u[1]/(i.count()-1),p=0,f=Math.round(i.count()/e[0]);i.each([a],function(t,e){if(0e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,a=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-a);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var n;if(g(this.getTargetCoordInfo(),function(t){if(!n&&t.length){var e=t[0].model.coordinateSystem;n=e.getRect&&e.getRect()}}),!n){var t=this.api.getWidth(),e=this.api.getHeight();n={x:.2*t,y:.2*e,width:.6*t,height:.6*e}}return n}});function A(t){return"vertical"===t?"ns-resize":"ew-resize"}var r=o;t.exports=r},2821:function(t,e,n){var i=n(1556).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=i},2822:function(t,e,n){var l=n(768),i=n(1557),h=n(1555),u=n(2823),c=l.bind,a=i.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(r,t,s,e){a.superApply(this,"render",arguments),this._range=r.getPercentRange(),l.each(this.getTargetCoordInfo(),function(t,a){var o=l.map(t,function(t){return u.generateCoordId(t.model)});l.each(t,function(e){var i=e.model,n={};l.each(["pan","zoom","scrollMove"],function(t){n[t]=c(d[t],this,e,a)},this),u.register(s,{coordId:u.generateCoordId(i),allCoordIds:o,containsPoint:function(t,e,n){return i.coordinateSystem.containPoint([e,n])},dataZoomId:r.id,dataZoomModel:r,getRange:n})},this)},this)},dispose:function(){u.unregister(this.api,this.dataZoomModel.id),a.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(t,e,n,i){var a=this._range,o=a.slice(),r=t.axisModels[0];if(r){var s=p[e](null,[i.originX,i.originY],r,n,t),l=(0e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=o.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(i){var a=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),a.push({seriesId:t.id,dataIndex:n})},this),a},getVisualMeta:function(n){var t=h(this,"outOfRange",this.getExtent()),e=h(this,"inRange",this.option.range.slice()),i=[];function a(t,e){i.push({value:t,color:n(t,e)})}for(var o=0,r=0,s=e.length,l=t.length;rt[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:a/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new _.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(i,a){if(this._useHandle){var o=this._shapes,r=this.visualMapModel,s=o.handleThumbs,l=o.handleLabels;u([0,1],function(t){var e=s[t];e.setStyle("fill",a.handlesColor[t]),e.position[1]=i[t];var n=_.applyTransform(o.handleLabelPoints[t],_.getTransform(e,this.group));l[t].setStyle({x:n[0],y:n[1],text:r.formatValueText(this._dataInterval[t]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===t?"bottom":"top":"left",o.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var a=this.visualMapModel,o=a.getExtent(),r=a.itemSize,s=[0,r[1]],l=A(t,o,s,!0),u=this._shapes,c=u.indicator;if(c){var h,d,p,f;c.position[1]=l,c.attr("invisible",!1),c.setShape("points",(h=!!n,d=i,p=l,f=r[1],h?[[0,-b(d,w(p,0))],[6,0],[0,b(d,w(f-p,0))]]:[[0,0],[5,-5],[5,5]]));var g=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});c.setStyle("fill",g);var m=_.applyTransform(u.indicatorLabelPoint,_.getTransform(c,this.group)),v=u.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",u.barGroup),x=this._orient;v.setStyle({text:(n||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var i=this;this._shapes.barGroup.on("mousemove",function(t){if(i._hovering=!0,!i._dragging){var e=i.visualMapModel.itemSize,n=i._applyTransform([t.offsetX,t.offsetY],i._shapes.barGroup,!0,!0);n[1]=b(w(0,n[1]),e[1]),i._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=e[0])}}).on("mouseout",function(){i._hovering=!1,i._dragging||i._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var a=[0,i[1]],o=n.getExtent();t=b(w(a[0],t),a[1]);var r=function(t,e,n){var i=6,a=t.get("hoverLinkDataSize");a&&(i=A(a,e,n,!0)/2);return i}(n,o,a),s=[t-r,t+r],l=A(t,a,o,!0),u=[A(s[0],a,o,!0),A(s[1],a,o,!0)];s[0] ",r):this._showIndicator(l,l,"≈ ",r));var c=this._hoverLinkDataIndices,h=[];(e||y(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=m.compressBatches(c,h);this._dispatchHighDown("downplay",g.makeHighDownBatch(d[0],n)),this._dispatchHighDown("highlight",g.makeHighDownBatch(d[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var a=i.getData(e.dataType),o=a.get(n.getDataDimension(a),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",g.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,i){var a=_.getTransform(e,i?null:this.group);return _[p.isArray(t)?"applyTransform":"transformDirection"](t,a,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function v(t,e,n,i){return new _.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){f.stop(t.event)},ondragend:i})}function y(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function x(t){return"vertical"===t?"ns-resize":"ew-resize"}var s=o;t.exports=s},2827:function(t,e,n){n(1127).__DEV__;var p=n(768),r=n(2190),f=n(1508),s=n(2191),c=n(965).reformIntervals,a=r.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){a.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();o[this._mode].call(this),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=p.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=p.map(this._pieceList,function(t){t=p.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){var i=this.option,n={},t=f.listVisualTypes(),a=this.isCategory();function o(t,e,n){return t&&t[e]&&(p.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}p.each(i.pieces,function(e){p.each(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),p.each(n,function(t,e){var n=0;p.each(this.stateList,function(t){n|=o(i,t,e)||o(i.target,t,e)},this),n||p.each(this.stateList,function(t){(i[t]||(i[t]={}))[e]=s.get(e,"inRange"===t?"active":"inactive",a)})},this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,i=this._pieceList,a=(e?n:t).selected||{};if(n.selected=a,p.each(i,function(t,e){var n=this.getSelectedMapKey(t);a.hasOwnProperty(n)||(a[n]=!0)},this),"single"===n.selectedMode){var o=!1;p.each(i,function(t,e){var n=this.getSelectedMapKey(t);a[n]&&(o?a[n]=!1:o=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&0n&&i([n,e[0]],"outOfRange"),i(e.slice()),n=e[1])},this),{stops:o,outerColors:r}}function i(t,e){var n=s.getRepresentValue({interval:t});e=e||s.getValueState(n);var i=a(n,e);t[0]===-1/0?r[0]=i:t[1]===1/0?r[1]=i:o.push({value:t[0],color:i},{value:t[1],color:i})}}}),o={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var o=(i[1]-i[0])/a;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n);var r=0;t.minOpen&&e.push({index:r++,interval:[-1/0,i[0]],close:[0,0]});for(var s=i[0],l=r+a;r","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function i(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var l=a;t.exports=l},2828:function(t,e,n){var p=n(768),i=n(2192),f=n(852),a=n(1321).createSymbol,g=n(1146),o=n(2193),r=i.extend({type:"visualMap.piecewise",doRender:function(){var o=this.group;o.removeAll();var r=this.visualMapModel,s=r.get("textGap"),t=r.textStyleModel,l=t.getFont(),u=t.getTextColor(),c=this._getItemAlign(),h=r.itemSize,e=this._getViewData(),n=e.endsText,d=p.retrieve(r.get("showLabel",!0),!n);n&&this._renderEndsText(o,n[0],h,d,c),p.each(e.viewPieceList,function(t){var e=t.piece,n=new f.Group;n.onclick=p.bind(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList);var i=r.getRepresentValue(e);if(this._createItemSymbol(n,i,[0,0,h[0],h[1]]),d){var a=this.visualMapModel.getValueState(i);n.add(new f.Text({style:{x:"right"===c?-s:h[0]+s,y:h[1]/2,text:e.text,textVerticalAlign:"middle",textAlign:c,textFont:l,textFill:u,opacity:"outOfRange"===a?.5:1}}))}o.add(n)},this),n&&this._renderEndsText(o,n[1],h,d,c),g.box(r.get("orient"),o,r.get("itemGap")),this.renderBackground(o),this.positionGroup(o)},_enableHoverLink:function(t,n){function e(t){var e=this.visualMapModel;e.option.hoverLink&&this.api.dispatchAction({type:t,batch:o.makeHighDownBatch(e.findTargetDataIndices(n),e)})}t.on("mouseover",p.bind(e,this,"highlight")).on("mouseout",p.bind(e,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return o.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,a){if(e){var o=new f.Group,r=this.visualMapModel.textStyleModel;o.add(new f.Text({style:{x:i?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?a:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=p.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),a=t.get("inverse");return("horizontal"===i?a:!a)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(a(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=p.clone(n.selected),a=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[a]=!0,p.each(i,function(t,e){i[e]=e===a})):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});t.exports=r},2829:function(t,e,n){n(2830),(0,n(1682).registerPainter)("vml",n(2831))},2830:function(t,e,n){var i=n(1240),F=n(1150).applyTransform,a=n(1152),E=n(1411),I=n(1319),T=n(1685),o=n(2122),r=n(1593),s=n(1548),l=n(1502),u=n(1224),c=n(1550),O=n(1687),G=n(2196),H=c.CMD,W=Math.round,j=Math.sqrt,h=Math.abs,U=Math.cos,Y=Math.sin,Z=Math.max;if(!i.canvasSupported){function q(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=$+","+$,t.coordorigin="0,0"}function N(t,e,n){return"rgb("+[t,e,n].join(",")+")"}function X(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)}function d(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function K(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n}function R(t,e,n){var i=E.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=N(i[0],i[1],i[2]),t.opacity=n*i[3])}function D(t,e,n,i){var a,o,r="fill"===e,s=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof O&&d(t,s),s=s||G.createNode(e),r?function(t,e,n){var i,a,o=e.fill;if(null!=o)if(o instanceof O){var r,s=0,l=[0,0],u=0,c=1,h=n.getBoundingRect(),d=h.width,p=h.height;if("linear"===o.type){r="gradient";var f=n.transform,g=[o.x*d,o.y*p],m=[o.x2*d,o.y2*p];f&&(F(g,g,f),F(m,m,f));var v=m[0]-g[0],y=m[1]-g[1];(s=180*Math.atan2(v,y)/Math.PI)<0&&(s+=360),s<1e-6&&(s=0)}else{r="gradientradial";g=[o.x*d,o.y*p],f=n.transform;var x=n.scale,_=d,A=p;l=[(g[0]-h.x)/_,(g[1]-h.y)/A],f&&F(g,g,f),_/=x[0]*$,A/=x[1]*$;var b=Z(_,A);u=0/b,c=2*o.r/b-u}var w=o.colorStops.slice();w.sort(function(t,e){return t.offset-e.offset});for(var S=w.length,C=[],M=[],I=0;I=h&&d<=n+1){for(var i=[],a=0;a=h&&d<=a+1)return g(c,e.components,u,l);f[t]=e}else f[t]=void 0}var s;p++}for(;p<=e;){var r=o();if(r)return r}},pushComponent:function(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,i){for(var a=e.length,o=n.length,r=t.newPos,s=r-i,l=0;r+1学习人数: "+t[0].value}},grid:{containLabel:!0,left:"30px",top:"0",bottom:"10px"},yAxis:[{data:a,inverse:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{margin:10,textStyle:{fontSize:12,color:"#747A7F"},formatter:function(t){return"{Sunny|"+t+"}"},rich:{value:{lineHeight:20},Sunny:{height:25,padding:[0,8,0,8],align:"center",backgroundColor:"#fff"}}}},{data:a,inverse:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1}}],xAxis:[{type:"value",splitLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1}},{type:"value",splitLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisLine:{show:!1}}],series:[{z:10,xAxisIndex:0,yAxisIndex:0,name:"",type:"pictorialBar",data:o,barCategoryGap:"90%",label:{normal:{show:!0,position:"inside",textStyle:{fontSize:12,color:"#666"}}},symbolRepeat:!1,symbolSize:["100%",25],symbolOffset:[-16.5,0],itemStyle:{normal:{color:new h.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#FFD86E"}],!1),borderRadius:"10"}},symbolClip:!0,symbolPosition:"end",symbol:"rect"}]};i.setOption(c)}(n,i,o,e),s.hideLoading(),e.hideLoading()},1e3)}else r.props.showSnackbar("未找到对应数据,请查看地址是否正确。")}).catch(function(t){console.log(t)})}},{key:"render",value:function(){var t=this.state.shixunList;return a.a.createElement("div",{className:"clearfix panelForm-2"},a.a.createElement("div",{className:"with60 pr40 fl"},a.a.createElement("div",{className:"static_shadow edu-back-white"},a.a.createElement("div",{className:"font-24 padding30-20"},"实训使用详情"),a.a.createElement("div",{className:"minH-440",id:"tableHeight"},a.a.createElement("table",{className:"edu-pop-table head-color edu-txt-center bor-top-greyE",cellSpacing:"0",cellPadding:"0"},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"章节"),a.a.createElement("th",{className:"edu-txt-left",width:"40%"},"实训名称"),a.a.createElement("th",null,"学习人数"),a.a.createElement("th",null,"受用院校"))),a.a.createElement("tbody",null,t&&t.map(function(t,e){return a.a.createElement("tr",null,a.a.createElement("td",null,t.number),a.a.createElement("td",{className:"edu-txt-left task-hide",style:{maxWidth:"272px"}},t.shixun_name),a.a.createElement("td",null,t.member_count),a.a.createElement("td",{className:"color-blue"},t.school_count))})))))),a.a.createElement("div",{className:"with40 fl static_shadow edu-back-white"},a.a.createElement("style",null,"\n\t\t\t\t\t\t\t .padding23-20{\n\t\t\t\t\t\t\t padding: 23px 20px;\n\t\t\t\t\t\t\t box-sizing: border-box;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t"),a.a.createElement("div",{className:"font-24 padding23-20"},"实训学习统计"),void 0===t?a.a.createElement("div",{id:"showloding",style:{width:"480px",height:"440px"}}):"",void 0===t?"":a.a.createElement("div",{id:"shixunStudyStatistics",style:{width:"480px",minHeight:(t&&50*t.length)+"px"}})))}}]),c);function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t));return e.state={},e}e.a=u},3758:function(t,e,n){"use strict";var i=n(0),a=n.n(i),o=n(12),r=n.n(o),s=function(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t};function l(t,e){for(var n=0;ni.get("hoverLayerThreshold")&&!m.node&&i.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=n._chartsMap[t.__viewId];e.__alive&&e.group.traverse(function(t){t.useHoverLayer=!0})}}),w(o._zr.dom,t)}function tt(e,n){k(lt,function(t){t(e,n)})}F.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[O]=!0,n&&j(this),W.update.call(this),this[O]=!1,q.call(this,i),X.call(this,i)}}},F.showLoading=function(t,e){if(this._disposed)this.id;else if(L(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ht[t]){var n=ht[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},F.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},F.makeActionFromEvent=function(t){var e=g.extend({},t);return e.type=ot[t.type],e},F.dispatchAction=function(t,e){this._disposed?this.id:(L(e)||(e={silent:!!e}),at[t.type]&&this._model&&(this[O]?this._pendingActions.push(t):(Z.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&m.browser.weChat&&this._throttledZrFlush(),q.call(this,e.silent),X.call(this,e.silent))))},F.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},F.on=z("on",!1),F.off=z("off",!1),F.one=z("one",!1);var et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function nt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function it(){this.eventInfo}F._initEvents=function(){k(et,function(u){function t(t){var e,n=this.getModel(),i=t.target;if("globalout"===u)e={};else if(i&&null!=i.dataIndex){var a=i.dataModel||n.getSeriesByIndex(i.seriesIndex);e=a&&a.getDataParams(i.dataIndex,i.dataType,i)||{}}else i&&i.eventData&&(e=g.extend({},i.eventData));if(e){var o=e.componentType,r=e.componentIndex;"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=e.seriesIndex);var s=o&&null!=r&&n.getComponent(o,r),l=s&&this["series"===s.mainType?"_chartsMap":"_componentsMap"][s.__viewId];e.event=t,e.type=u,this._ecEventProcessor.eventInfo={targetEl:i,packedEvent:e,model:s,view:l},this.trigger(u,e)}}t.zrEventfulCallAtLast=!0,this._zr.on(u,t,this)},this),k(ot,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},F.isDisposed=function(){return this._disposed},F.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},F.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,A.setAttribute(this.getDom(),mt,"");var e=this._api,n=this._model;k(this._componentsViews,function(t){t.dispose(n,e)}),k(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete dt[this.id]}},g.mixin(G,h),it.prototype={constructor:it,normalizeQuery:function(t){var s={},l={},u={};if(g.isString(t)){var e=B(t);s.mainType=e.main||null,s.subType=e.sub||null}else{var c=["Index","Name","Id"],h={name:1,dataIndex:1,dataType:1};g.each(t,function(t,e){for(var n=!1,i=0;ia.total?a.total:m*v])));var B=!this.hasPrev()||!r,E=!this.hasNext()||!r;return R.a.createElement("ul",N()({className:z()(e,n,O()({},e+"-disabled",i)),style:a.style,unselectable:"unselectable",ref:this.savePaginationNode},_),L,R.a.createElement("li",{title:a.showTitle?o.prev_page:null,onClick:this.prev,tabIndex:B?null:0,onKeyPress:this.runIfEnterPrev,className:(B?e+"-disabled":"")+" "+e+"-prev","aria-disabled":B},a.itemRender(y,"prev",this.getItemIcon(a.prevIcon))),s,R.a.createElement("li",{title:a.showTitle?o.next_page:null,onClick:this.next,tabIndex:E?null:0,onKeyPress:this.runIfEnterNext,className:(E?e+"-disabled":"")+" "+e+"-next","aria-disabled":E},a.itemRender(x,"next",this.getItemIcon(a.nextIcon))),R.a.createElement(G.a,{disabled:i,locale:a.locale,rootPrefixCls:e,selectComponentClass:a.selectComponentClass,selectPrefixCls:a.selectPrefixCls,changeSize:this.props.showSizeChanger?this.changePageSize:null,current:this.state.current,pageSize:this.state.pageSize,pageSizeOptions:this.props.pageSizeOptions,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:p}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n={};if("current"in t&&(n.current=t.current,t.current!==e.current&&(n.currentInputValue=n.current)),"pageSize"in t&&t.pageSize!==e.pageSize){var i=e.current,a=F(t.pageSize,e,t);i=aMath.abs(o[1])?0=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/a*o+n[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},e.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(0c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return-1e-4=o.length&&o.push({option:t})}}),o},e.makeIdAndName=function(t){var r=h.createHashMap();d(t,function(t,e){var n=t.exist;n&&r.set(n.id,t)}),d(t,function(t,e){var n=t.option;h.assert(!n||null==n.id||!r.get(n.id)||r.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&r.set(n.id,t),t.keyInfo||(t.keyInfo={})}),d(t,function(t,e){var n=t.exist,i=t.option,a=t.keyInfo;if(s(i)){if(a.name=null!=i.name?i.name+"":n?n.name:"series\0"+e,n)a.id=n.id;else if(null!=i.id)a.id=i.id+"";else for(var o=0;a.id="\0"+a.name+"\0"+o++,r.get(a.id););r.set(a.id,t)}})},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf("series\0"))},e.isIdInner=r,e.compressBatches=function(t,e){var n={},i={};return a(t||[],n),a(e||[],i,n),[o(n),o(i)];function a(t,e,n){for(var i=0,a=t.length;i