(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e5047f18"],{2233:function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return o["ab"]})),n.d(t,"dependencies",(function(){return o["l"]})),n.d(t,"PRIORITY",(function(){return o["g"]})),n.d(t,"init",(function(){return o["B"]})),n.d(t,"connect",(function(){return o["j"]})),n.d(t,"disConnect",(function(){return o["m"]})),n.d(t,"disconnect",(function(){return o["n"]})),n.d(t,"dispose",(function(){return o["o"]})),n.d(t,"getInstanceByDom",(function(){return o["w"]})),n.d(t,"getInstanceById",(function(){return o["x"]})),n.d(t,"registerTheme",(function(){return o["R"]})),n.d(t,"registerPreprocessor",(function(){return o["P"]})),n.d(t,"registerProcessor",(function(){return o["Q"]})),n.d(t,"registerPostInit",(function(){return o["N"]})),n.d(t,"registerPostUpdate",(function(){return o["O"]})),n.d(t,"registerAction",(function(){return o["H"]})),n.d(t,"registerCoordinateSystem",(function(){return o["I"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return o["v"]})),n.d(t,"registerLocale",(function(){return o["L"]})),n.d(t,"registerLayout",(function(){return o["J"]})),n.d(t,"registerVisual",(function(){return o["T"]})),n.d(t,"registerLoading",(function(){return o["K"]})),n.d(t,"setCanvasCreator",(function(){return o["U"]})),n.d(t,"registerMap",(function(){return o["M"]})),n.d(t,"getMap",(function(){return o["y"]})),n.d(t,"registerTransform",(function(){return o["S"]})),n.d(t,"dataTool",(function(){return o["k"]})),n.d(t,"zrender",(function(){return o["cb"]})),n.d(t,"matrix",(function(){return o["D"]})),n.d(t,"vector",(function(){return o["Z"]})),n.d(t,"zrUtil",(function(){return o["bb"]})),n.d(t,"color",(function(){return o["i"]})),n.d(t,"throttle",(function(){return o["V"]})),n.d(t,"helper",(function(){return o["A"]})),n.d(t,"use",(function(){return o["X"]})),n.d(t,"parseGeoJSON",(function(){return o["F"]})),n.d(t,"parseGeoJson",(function(){return o["G"]})),n.d(t,"number",(function(){return o["E"]})),n.d(t,"time",(function(){return o["W"]})),n.d(t,"graphic",(function(){return o["z"]})),n.d(t,"format",(function(){return o["u"]})),n.d(t,"util",(function(){return o["Y"]})),n.d(t,"env",(function(){return o["p"]})),n.d(t,"List",(function(){return o["e"]})),n.d(t,"Model",(function(){return o["f"]})),n.d(t,"Axis",(function(){return o["a"]})),n.d(t,"ComponentModel",(function(){return o["c"]})),n.d(t,"ComponentView",(function(){return o["d"]})),n.d(t,"SeriesModel",(function(){return o["h"]})),n.d(t,"ChartView",(function(){return o["b"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return o["C"]})),n.d(t,"extendComponentModel",(function(){return o["r"]})),n.d(t,"extendComponentView",(function(){return o["s"]})),n.d(t,"extendSeriesModel",(function(){return o["t"]})),n.d(t,"extendChartView",(function(){return o["q"]}));var i=n("2df3"),o=n("ab1a"),a=n("157d");function r(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}var s=n("306e"),l=n("21ac"),c=n("c8a3"),u=n("dbec");function p(e,t,n){n||(n=function(e,t){return e===t}),e=e.slice(),t=t.slice();var i=t.length,o=e.length,a=1,r=i+o,s=[{newPos:-1,components:[]}],l=h(s[0],t,e,0,n);if(s[0].newPos+1>=i&&l+1>=o){for(var c=[],u=0;u=i&&p+1>=o)return g(l.components);s[r]=l}else s[r]=void 0}a++}while(a<=r){var y=p();if(y)return y}}function h(e,t,n,i,o){var a=t.length,r=n.length,s=e.newPos,l=s-i,c=0;while(s+1-I}function j(e){var t=e.fill;return null!=t&&t!==x}function L(e){var t=e.stroke;return null!=t&&t!==x}function P(e,t){t&&N(e,"transform","matrix("+D(t[0])+","+D(t[1])+","+D(t[2])+","+D(t[3])+","+C(t[4])+","+C(t[5])+")")}function N(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function k(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function E(e,t,n){e.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,n)}function R(e,t,n){var i=null==t.opacity?1:t.opacity;if(n instanceof c["a"])e.style.opacity=i+"";else{if(j(t)){var o=t.fill;o="transparent"===o?x:o,N(e,"fill",o),N(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*i:i)+"")}else N(e,"fill",x);if(L(t)){var a=t.stroke;a="transparent"===a?x:a,N(e,"stroke",a);var r=t.lineWidth,l=t.strokeNoScale?n.getLineScale():1;N(e,"stroke-width",(l?r/l:0)+""),N(e,"paint-order",t.strokeFirst?"stroke":"fill"),N(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*i:i)+"");var u=t.lineDash&&r>0&&Object(b["a"])(t.lineDash,r);if(u){var p=t.lineDashOffset;l&&1!==l&&(u=Object(s["map"])(u,(function(e){return e/l})),p&&(p/=l,p=_(p))),N(e,"stroke-dasharray",u.join(",")),N(e,"stroke-dashoffset",(p||0)+"")}else N(e,"stroke-dasharray","");t.lineCap&&N(e,"stroke-linecap",t.lineCap),t.lineJoin&&N(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&N(e,"stroke-miterlimit",t.miterLimit+"")}else N(e,"stroke",x)}}var V=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,o,a){this._add("C",e,t,n,i,o,a)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,o,a){this.ellipse(e,t,n,n,0,i,o,a)},e.prototype.ellipse=function(e,t,n,i,o,a,r,s){var l=0===this._d.length,c=r-a,u=!s,p=Math.abs(c),h=T(p-M)||(u?c>=M:-c>=M),d=c>0?c%M:c%M+M,g=!1;g=!!h||!T(p)&&d>=O===!!u;var f=C(e+n*w(a)),y=C(t+i*S(a));h&&(c=u?M-1e-4:1e-4-M,g=!0,l&&this._d.push("M",f,y));var m=C(e+n*w(a+c)),v=C(t+i*S(a+c));if(isNaN(f)||isNaN(y)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(A)||isNaN(m)||isNaN(v))return"";this._d.push("A",C(n),C(i),_(o*A),+g,+u,m,v)},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+i),this._add("L",e,t+i),this._add("L",e,t)},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,o,a,r,s,l){this._d.push(e);for(var c=1;c=0;--n)if(t[n]===e)return!0;return!1}),i}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return s["each"](this._tagNames,(function(n){for(var i=e.getElementsByTagName(n),o=0;o-1){var l=Z["parse"](r)[3],c=Z["toHex"](r);a.setAttribute("stop-color","#"+c),a.setAttribute("stop-opacity",l+"")}else a.setAttribute("stop-color",n[i].color);t.appendChild(a)}e.__dom=t},t.prototype.markUsed=function(t){if(t.style){var n=t.style.fill;n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom),n=t.style.stroke,n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom)}},t}(X),$=J,ee=n("7399"),te=n("46da");function ne(e){return e&&(!!e.image||!!e.svgElement)}var ie=new te["a"],oe=function(e){function t(t,n){return e.call(this,t,n,["pattern"],"__pattern_in_use__")||this}return Object(m["b"])(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;s["each"](["fill","stroke"],(function(i){var o=t.style[i];if(ne(o)){var a=n.getDefs(!0),r=ie.get(o);r?a.contains(r)||n.addDom(r):r=n.add(o),n.markUsed(t);var s=r.getAttribute("id");e.setAttribute(i,"url(#"+s+")")}}))}},t.prototype.add=function(e){if(ne(e)){var t=this.createElement("pattern");return e.id=null==e.id?this.nextId++:e.id,t.setAttribute("id","zr"+this._zrId+"-pattern-"+e.id),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(e,t),this.addDom(t),t}},t.prototype.update=function(e){if(ne(e)){var t=this;this.doUpdate(e,(function(){var n=ie.get(e);t.updateDom(e,n)}))}},t.prototype.updateDom=function(e,t){var n=e.svgElement;if(n instanceof SVGElement)n.parentNode!==t&&(t.innerHTML="",t.appendChild(n),t.setAttribute("width",e.svgWidth+""),t.setAttribute("height",e.svgHeight+""));else{var i=void 0,o=t.getElementsByTagName("image");if(o.length){if(!e.image)return void t.removeChild(o[0]);i=o[0]}else e.image&&(i=this.createElement("image"));if(i){var a=void 0,r=e.image;if("string"===typeof r?a=r:r instanceof HTMLImageElement?a=r.src:r instanceof HTMLCanvasElement&&(a=r.toDataURL()),a){i.setAttribute("href",a),i.setAttribute("x","0"),i.setAttribute("y","0");var s={dirty:function(){}},l=Object(ee["a"])(a,i,s,(function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")}));l&&l.width&&l.height&&(t.setAttribute("width",l.width+""),t.setAttribute("height",l.height+"")),t.appendChild(i)}}}var c=e.x||0,u=e.y||0,p=(e.rotation||0)/Math.PI*180,h=e.scaleX||1,d=e.scaleY||1,g="translate("+c+", "+u+") rotate("+p+") scale("+h+", "+d+")";t.setAttribute("patternTransform",g),ie.set(e,t)},t.prototype.markUsed=function(t){t.style&&(ne(t.style.fill)&&e.prototype.markDomUsed.call(this,ie.get(t.style.fill)),ne(t.style.stroke)&&e.prototype.markDomUsed.call(this,ie.get(t.style.stroke)))},t}(X),ae=oe,re=n("51f2");function se(e){var t=[];if(e)for(var n=0;n0}var ce=function(e){function t(t,n){var i=e.call(this,t,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Object(m["b"])(t,e),t.prototype.markAllUnused=function(){for(var t in e.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[t]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(le(e)){var n=e.__clipPaths,i=this._keyDuplicateCount,o=se(n);return Object(re["b"])(n,t&&t.__clipPaths)&&(i[o]=i[o]||0,i[o]&&(o+="-"+i[o]),i[o]++),this._refGroups[o]||(this._refGroups[o]=this.createElement("g"))}},t.prototype.update=function(e,t){var n=this._getClipPathGroup(e,t);return n&&(this.markDomUsed(n),this.updateDom(n,e.__clipPaths)),n},t.prototype.updateDom=function(e,t){if(t&&t.length>0){var n=this.getDefs(!0),i=t[0],o=void 0,a=void 0;i._dom?(a=i._dom.getAttribute("id"),o=i._dom,n.contains(o)||n.appendChild(o)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,o=this.createElement("clipPath"),o.setAttribute("id",a),n.appendChild(o),i._dom=o);var r=this.getSvgProxy(i);r.brush(i);var s=this.getSvgElement(i);o.innerHTML="",o.appendChild(s),e.setAttribute("clip-path","url(#"+a+")"),t.length>1&&this.updateDom(o,t.slice(1))}else e&&e.setAttribute("clip-path","none")},t.prototype.markUsed=function(t){var n=this;t.__clipPaths&&s["each"](t.__clipPaths,(function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)}))},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={};for(var n in this._refGroups){var i=this._refGroups[n];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):t[n]=i}this._refGroups=t},t}(X),ue=ce,pe=function(e){function t(t,n){var i=e.call(this,t,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Object(m["b"])(t,e),t.prototype._getFromPool=function(){var e=this._shadowDomPool.pop();if(!e){e=this.createElement("filter"),e.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var t=this.createElement("feDropShadow");e.appendChild(t),this.addDom(e)}return e},t.prototype.update=function(e,t){var n=t.style;if(de(n)){var i=ge(t),o=t._shadowDom=this._shadowDomMap[i];o||(o=this._getFromPool(),this._shadowDomMap[i]=o),this.updateDom(e,t,o)}else this.remove(e,t)},t.prototype.remove=function(e,t){null!=t._shadowDom&&(t._shadowDom=null,e.style.filter="")},t.prototype.updateDom=function(e,t,n){var i=n.children[0],o=t.style,a=t.getGlobalScale(),r=a[0],s=a[1];if(r&&s){var l=o.shadowOffsetX||0,c=o.shadowOffsetY||0,u=o.shadowBlur,p=o.shadowColor;i.setAttribute("dx",l/r+""),i.setAttribute("dy",c/s+""),i.setAttribute("flood-color",p);var h=u/2/r,d=u/2/s,g=h+" "+d;i.setAttribute("stdDeviation",g),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),t._shadowDom=n;var f=n.getAttribute("id");e.style.filter="url(#"+f+")"}},t.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this._shadowDomPool;for(var n in this._shadowDomMap){var i=this._shadowDomMap[n];t.push(i)}this._shadowDomMap={}}},t}(X),he=pe;function de(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function ge(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function fe(e){return parseInt(e,10)}function ye(e){return e instanceof l["b"]?z:e instanceof c["a"]?B:e instanceof u["a"]?H:z}function me(e,t){return t&&e&&t.parentNode!==e}function ve(e,t,n){if(me(e,t)&&n){var i=n.nextSibling;i?e.insertBefore(t,i):e.appendChild(t)}}function be(e,t){if(me(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function xe(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function _e(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Se(e){return e.__svgEl}var we=function(){function e(e,t,n,i){this.type="svg",this.refreshHover=Oe("refreshHover"),this.pathToImage=Oe("pathToImage"),this.configLayer=Oe("configLayer"),this.root=e,this.storage=t,this._opts=n=s["extend"]({},n||{});var o=r("svg");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var a=r("g");o.appendChild(a);var l=r("g");o.appendChild(l),this._gradientManager=new $(i,l),this._patternManager=new ae(i,l),this._clipPathManager=new ue(i,l),this._shadowManager=new he(i,l);var c=document.createElement("div");c.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=a,this._viewport=c,e.appendChild(c),c.appendChild(o),this.resize(n.width,n.height),this._visibleList=[]}return e.prototype.getType=function(){return"svg"},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.getSvgRoot=function(){return this._svgRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},e.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=r("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return r(e)},e.prototype.paintOne=function(e){var t=ye(e);return t&&t.brush(e),Se(e)},e.prototype._paintList=function(e){var t=this._gradientManager,n=this._patternManager,i=this._clipPathManager,o=this._shadowManager;t.markAllUnused(),n.markAllUnused(),i.markAllUnused(),o.markAllUnused();for(var a=this._svgRoot,r=this._visibleList,s=e.length,l=[],c=0;c\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+n},e}();function Oe(e){return function(){s["logError"]('In SVG mode painter not support method "'+e+'"')}}var Me=we;function Ae(e){e.registerPainter("svg",Me)}var Ie=n("419c"),De=n("d6d0"),Ce=n("e936"),Te=n("835f"),je=n("5892"),Le=2*Math.PI,Pe=Math.PI/180;function Ne(e,t){return je["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ke(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),o=Ne(e,n),a=e.get("center"),r=e.get("radius");s["isArray"](r)||(r=[0,r]),s["isArray"](a)||(a=[a,a]);var l=Object(Te["p"])(o.width,n.getWidth()),c=Object(Te["p"])(o.height,n.getHeight()),u=Math.min(l,c),p=Object(Te["p"])(a[0],l)+o.x,h=Object(Te["p"])(a[1],c)+o.y,d=Object(Te["p"])(r[0],u/2),g=Object(Te["p"])(r[1],u/2),f=-e.get("startAngle")*Pe,y=e.get("minAngle")*Pe,m=0;t.each(i,(function(e){!isNaN(e)&&m++}));var v=t.getSum(i),b=Math.PI/(v||m)*2,x=e.get("clockwise"),_=e.get("roseType"),S=e.get("stillShowZeroSum"),w=t.getDataExtent(i);w[0]=0;var O=Le,M=0,A=f,I=x?1:-1;if(t.setLayout({viewRect:o,r:g}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:p,cy:h,r0:d,r:_?NaN:g});else{i="area"!==_?0===v&&S?b:e*b:Le/m,in?r:a,u=Math.abs(l.label.y-n);if(u>c.maxY){var p=l.label.x-t-l.len2*o,h=i+l.len,g=Math.abs(p)0?"right":"left":L>0?"left":"right"}var F=v.get("rotate");if(N="number"===typeof F?F*(Math.PI/180):F?L<0?-j+Math.PI:-j:0,a=!!N,d.x=I,d.y=D,d.rotation=N,d.setStyle({verticalAlign:"middle"}),k){d.setStyle({align:T});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var U=(d.style.margin||0)+2.1;W.y-=U/2,W.height+=U,o.push({label:d,labelLine:y,position:b,len:M,len2:A,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new We["a"](L,P),linePoints:C,textAlign:T,labelDistance:x,labelAlignTo:_,edgeDistance:S,bleedMargin:w,rect:W})}l.setTextConfig({inside:k})}})),!a&&e.get("avoidLabelOverlap")&&qe(o,t,n,c,u,d,p,h);for(var y=0;y0){for(var l=a.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=i.r0}},t.type="pie",t}(He["a"]),nt=tt,it=n("2ca2"),ot=n("b116");function at(e,t,n){t=Object(s["isArray"])(t)&&{coordDimensions:t}||Object(s["extend"])({},t);var i=e.getSource(),o=Object(it["a"])(i,t),a=new ot["a"](o,e);return a.initData(i,n),a}var rt=n("d940"),st=n("a0e7"),lt=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),ct=lt,ut=n("ff42c"),pt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}return Object(m["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ct(s["bind"](this.getData,this),s["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return at(this,{coordDimensions:["value"],encodeDefaulter:s["curry"](st["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),o=[];return n.each(n.mapDimension("value"),(function(e){o.push(e)})),i.percent=Object(Te["e"])(o,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){rt["f"](e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ut["a"]),ht=pt;function dt(e){e.registerChartView(nt),e.registerSeriesModel(ht),Object(Ce["a"])("pie",e.registerAction),e.registerLayout(Object(s["curry"])(ke,"pie")),e.registerProcessor(Ee("pie"))}var gt=n("6625"),ft=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(gt["a"])(this.getSource(),this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},t}(ut["a"]),yt=ft,mt=n("8881"),vt=n("c87a"),bt=n("d3f8"),xt=n("d86a"),_t=4,St=function(){function e(){}return e}(),wt=function(e){function t(t){return e.call(this,t)||this}return Object(m["b"])(t,e),t.prototype.getDefaultShape=function(){return new St},t.prototype.buildPath=function(e,t){var n=t.points,i=t.size,o=this.symbolProxy,a=o.shape,r=e.getContext?e.getContext():e,s=r&&i[0]<_t;if(s)this._ctx=r;else{this._ctx=null;for(var l=0;l=0;s--){var l=2*s,c=i[l]-a/2,u=i[l+1]-r/2;if(e>=c&&t>=u&&e<=c+a&&t<=u+r)return s}return-1},t}(l["b"]),Ot=function(){function e(){this.group=new Ge["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new wt({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t)}))}},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new bt["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var i;this._incremental?(i=new wt,this._incremental.addDisplayable(i,!0)):(i=new wt({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,!!this._incremental,n)},e.prototype._setCommon=function(e,t,n,i){var o=t.hostModel;i=i||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=Object(vt["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var r=e.shape.size[0]<_t;e.useStyle(o.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;if(l&&e.setColor(l),!n){var c=Object(xt["a"])(e);c.seriesIndex=o.seriesIndex,e.on("mousemove",(function(t){c.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(c.dataIndex=n+(e.startIndex||0))}))}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),Mt=Ot,At=n("61f3"),It=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=Object(At["a"])("").reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,o=i.large;return n&&o===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=o?new Mt:new mt["a"],this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(He["a"]),Dt=It,Ct=n("9102");function Tt(e){Object(i["a"])(Ct["a"]),e.registerSeriesModel(yt),e.registerChartView(Dt),e.registerLayout(Object(At["a"])("scatter"))}function jt(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var o=i.getIndicatorAxes();s["each"](o,(function(e,a){t.each(t.mapDimension(o[a].dim),(function(e,t){n[t]=n[t]||[];var o=i.dataToPoint(e,a);n[t][a]=Lt(o)?o:Pt(i)}))})),t.each((function(e){var o=s["find"](n[e],(function(e){return Lt(e)}))||Pt(i);n[e].push(o.slice()),t.setItemLayout(e,n[e])}))}}))}function Lt(e){return!isNaN(e[0])&&!isNaN(e[1])}function Pt(e){return[e.cx,e.cy]}function Nt(e){var t=e.polar;if(t){s["isArray"](t)||(t=[t]);var n=[];s["each"](t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],s["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}s["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var kt=n("057e");function Et(e){return s["isArray"](e)||(e=[+e,+e]),e}var Rt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,o=this.group,a=e.getData(),r=this._data;function l(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=Et(e.getItemVisual(t,"symbolSize")),o=vt["a"](n,-1,-1,2,2),a=e.getItemVisual(t,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:a*Math.PI/180||0}),o}}function u(t,n,i,o,a,r){i.removeAll();for(var s=0;s0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=r;null!=h.color&&(d=s["defaults"]({color:h.color},r));var g=s["merge"](s["clone"](h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:o,axisLabel:a,name:h.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:p},!1);if(l||(g.name=""),"string"===typeof c){var f=g.name;g.name=c.replace("{value}",null!=f?f:"")}else"function"===typeof c&&(g.name=c(g.name,g));var y=new Ht["a"](g,null,this.ecModel);return s["mixin"](y,Wt["a"].prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s["merge"]({lineStyle:{color:"#bbb"}},Yt.axisLine),axisLabel:Xt(Yt.axisLabel,!1),axisTick:Xt(Yt.axisTick,!1),splitLine:Xt(Yt.splitLine,!0),splitArea:Xt(Yt.splitArea,!0),indicator:[]},t}(Ut["a"]),qt=Zt,Kt=n("f643"),Qt=n("8644"),Jt=n("2447"),$t=n("acdd"),en=["axisLine","axisTickLabel","axisName"],tn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=s["map"](n,(function(e){var n=new Kt["a"](e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));s["each"](i,(function(e){s["each"](en,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),o=e.getModel("splitLine"),a=e.getModel("splitArea"),r=o.getModel("lineStyle"),l=a.getModel("areaStyle"),c=o.get("show"),u=a.get("show"),p=r.get("color"),h=l.get("color"),d=s["isArray"](p)?p:[p],g=s["isArray"](h)?h:[h],f=[],y=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,b=t.cy,x=0;xn[0]&&isFinite(p)&&isFinite(n[0]))}else{var h=r.getTicks().length-1;h>o&&(c=a(c));u=Math.ceil(n[1]/c)*c,p=Te["v"](u-c*o);r.setExtent(p,u),r.setInterval(c)}}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(o){var a=new e(o,t,n);i.push(a),o.coordinateSystem=a})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),pn=un;function hn(e){e.registerCoordinateSystem("radar",pn),e.registerComponentModel(qt),e.registerComponentView(nn),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function dn(e){Object(i["a"])(hn),e.registerChartView(Vt),e.registerSeriesModel(Gt),e.registerLayout(jt),e.registerProcessor(Ee("radar")),e.registerPreprocessor(Nt)}var gn=n("dd4f");function fn(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function yn(e,t,n,i){var o=e.target,a=e.zoomLimit,r=e.zoom=e.zoom||1;if(r*=t,a){var s=a.min||0,l=a.max||1/0;r=Math.max(Math.min(l,r),s)}var c=r/e.zoom;e.zoom=r,o.x-=(n-o.x)*(c-1),o.y-=(i-o.y)*(c-1),o.scaleX*=c,o.scaleY*=c,o.dirty()}var mn={axisPointer:1,tooltip:1,brush:1};function vn(e,t,n){var i=t.getComponentByElement(e.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!mn.hasOwnProperty(i.mainType)&&o&&o.model!==n}var bn=n("726b"),xn=n("6303"),_n=n("7ee9"),Sn=n("de4e"),wn=n("7164"),On=["rect","circle","line","ellipse","polygon","polyline","path"],Mn=s["createHashMap"](On),An=s["createHashMap"](On.concat(["g"])),In=s["createHashMap"](On.concat(["g"])),Dn=Object(rt["o"])();function Cn(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}var Tn=function(){function e(e){var t=new Ge["a"];this.uid=Object(_n["c"])("ec_map_draw"),this._controller=new gn["a"](e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Ge["a"]),t.add(this._svgGroup=new Ge["a"])}return e.prototype.draw=function(e,t,n,i,o){var a="geo"===e.mainType,r=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},(function(t){r||t.getHostGeoModel()!==e||(r=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),p=u.raw,h=u.roam,d=!l.childAt(0)||o;d?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):Ve["updateProps"](c,h,e);var g=r&&r.getVisual("visualMeta")&&r.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:r,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:p};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=s["createHashMap"](),n=s["createHashMap"](),i=this._regionsGroup,o=e.transformInfoRaw,a=e.mapOrGeoModel,r=e.data,l=function(e){return[e[0]*o.scaleX+o.x,e[1]*o.scaleY+o.y]};i.removeAll(),s["each"](e.geo.regions,(function(o){var c=o.name,u=t.get(c),p=n.get(c)||{},h=p.dataIdx,d=p.regionModel;u||(u=t.set(c,new Ge["a"]),i.add(u),h=r?r.indexOfName(c):null,d=e.isGeo?a.getRegionModel(c):r?r.getItemModel(h):null,n.set(c,{dataIdx:h,regionModel:d}));var g=new bn["a"]({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(g),s["each"](o.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n=0)&&(h=o);var d=r?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(Je["g"])(t,Object(Je["e"])(i),{labelFetcher:h,labelDataIndex:p,defaultText:n},d);var g=t.getTextContent();if(g&&(Dn(g).ignore=g.ignore,t.textConfig&&r)){var f=t.getBoundingRect().clone();t.textConfig.layoutRect=f,t.textConfig.position=[(r[0]-f.x)/f.width*100+"%",(r[1]-f.y)/f.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Pn(e,t,n,i,o,a){e.data?e.data.setItemGraphicEl(a,t):Object(xt["a"])(t).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function Nn(e,t,n,i,o){e.data||Ve["setTooltipConfig"]({el:t,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function kn(e,t,n,i,o){t.highDownSilentOnTouch=!!o.get("selectedMode");var a=i.getModel("emphasis"),r=a.get("focus");return Object(Fe["o"])(t,r,a.get("blurScope")),e.isGeo&&Object(Fe["n"])(t,o,n),r}var En=Tn,Rn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){a=this._mapDraw;a&&o.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new En(n);o.add(a.group),a.draw(e,t,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var a=i.getItemLayout(n);if(a&&a.point){var r=a.point,s=a.offset,l=new Qt["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:r[0]+9*s,cy:r[1],r:3},silent:!0,z2:8+(s?0:Fe["j"]+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),p=c.indexOfName(u),h=i.getItemModel(n),d=h.getModel("label"),g=c.getItemGraphicEl(p);Object(Je["g"])(l,Object(Je["e"])(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(p,n)}}}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(e){Object(Fe["H"])(l,e)}}o.add(l)}}}))},t.type="map",t}(He["a"]),Vn=Rn,zn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e){for(var t=at(this,{coordDimensions:["value"],encodeDefaulter:s["curry"](st["d"],this)}),n=s["createHashMap"](),i=[],o=0,a=t.count();o-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,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)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(ut["a"]),Bn=zn;function Gn(e,t){var n={};return s["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var o="ec-"+e.getName(i);n[o]=n[o]||[],isNaN(t)||n[o].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,o){for(var a,r="ec-"+e[0].getName(o),s=0,l=1/0,c=-1/0,u=n[r].length,p=0;p1?(s.width=r,s.height=r/d):(s.height=r,s.width=r*d),s.y=a[1]-s.height/2,s.x=a[0]-s.width/2;else{var f=e.getBoxLayoutParams();f.aspect=d,s=je["g"](f,{width:p,height:h})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function ii(e,t){s["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var oi=function(){function e(){this.dimensions=ti.prototype.dimensions}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new ti(o+i,o,{nameMap:e.get("nameMap"),nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale")});a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=ni,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),s["each"](i,(function(e,i){var o=s["map"](e,(function(e){return e.get("nameMap")})),a=new ti(i,i,{nameMap:s["mergeAll"](o),nameProperty:e[0].get("nameProperty"),aspectScale:e[0].get("aspectScale")});a.zoomLimit=s["retrieve"].apply(null,s["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=ni,a.resize(e[0],t),s["each"](e,(function(e){e.coordinateSystem=a,ii(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var o=(e||[]).slice(),a=s["createHashMap"](),r=0;r=0;r--){var s=i[r];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},o.push(s)}}function vi(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,o=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){wi(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=Oi(e,o,e.parentNode.hierNode.defaultAncestor||i[0],t)}function bi(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function xi(e){return arguments.length?e:Ci}function _i(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Si(e,t){return je["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function wi(e){var t=e.children,n=t.length,i=0,o=0;while(--n>=0){var a=t[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,o+=a.hierNode.change,i+=a.hierNode.shift+o}}function Oi(e,t,n,i){if(t){var o=e,a=e,r=a.parentNode.children[0],s=t,l=o.hierNode.modifier,c=a.hierNode.modifier,u=r.hierNode.modifier,p=s.hierNode.modifier;while(s=Mi(s),a=Ai(a),s&&a){o=Mi(o),r=Ai(r),o.hierNode.ancestor=e;var h=s.hierNode.prelim+p-a.hierNode.prelim-c+i(s,a);h>0&&(Di(Ii(s,e,n),e,h),c+=h,l+=h),p+=s.hierNode.modifier,c+=a.hierNode.modifier,l+=o.hierNode.modifier,u+=r.hierNode.modifier}s&&!Mi(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=p-l),a&&!Ai(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=c-u,n=e)}return n}function Mi(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Ai(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Ii(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Di(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function Ci(e,t){return e.parentNode===t.parentNode?1:2}var Ti=n("3a45"),ji=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Li=function(e){function t(t){return e.call(this,t)||this}return Object(m["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ji},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,o=t.parentPoint,a=n[0],r=n[i-1];if(1===i)return e.moveTo(o[0],o[1]),void e.lineTo(a[0],a[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Object(Te["p"])(t.forkPosition,1),p=[];p[l]=o[l],p[c]=o[c]+(r[c]-o[c])*u,e.moveTo(o[0],o[1]),e.lineTo(p[0],p[1]),e.moveTo(a[0],a[1]),p[l]=a[l],e.lineTo(p[0],p[1]),p[l]=r[l],e.lineTo(p[0],p[1]),e.lineTo(r[0],r[1]);for(var h=1;hv.x,_||(x-=Math.PI));var w=_?"left":"right",O=s.getModel("label"),M=O.get("rotate"),A=M*(Math.PI/180),I=y.getTextContent();I&&(y.setTextConfig({position:O.get("position")||w,rotation:null==M?-x:A,origin:"center"}),I.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),C="ancestor"===D?r.getAncestorsIndices():"descendant"===D?r.getDescendantIndices():null;C&&(Object(xt["a"])(n).focus=C),Ei(o,r,u,n,g,d,f,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=r.parentNode&&e.getItemGraphicEl(r.parentNode.dataIndex);i&&i.hoverState===Fe["d"]||Object(Fe["H"])(n.__edge,t)}})}function Ei(e,t,n,i,o,a,r,l){var c=t.getModel(),u=e.get("edgeShape"),p=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),g=e.get("edgeForkPosition"),f=c.getModel("lineStyle").getLineStyle(),y=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(y||(y=i.__edge=new fi["a"]({shape:Vi(p,h,d,o,o)})),Ve["updateProps"](y,{shape:Vi(p,h,d,a,r)},e));else if("polyline"===u)if("orthogonal"===p){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],b=0;bt&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),Ji=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n=0){var i=n.getData().tree.root,o=e.targetNode;if("string"===typeof o&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function no(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function io(e,t){var n=no(e);return s["indexOf"](n,t)>=0}function oo(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Ht["a"](n,this,this.ecModel),o=eo.createTree(t,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var r=0;o.eachNode("preorder",(function(e){e.depth>r&&(r=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return o.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,o=i.root.children[0],a=i.getNodeByDataIndex(e),r=a.getValue(),s=a.name;while(a&&a!==o)s=a.parentNode.name+"."+s,a=a.parentNode;return Object(zt["c"])("nameValue",{name:s,value:r,noValue:isNaN(r)||null==r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=oo(i,this),n},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",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",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ut["a"]),ro=ao;function so(e,t,n){var i,o=[e],a=[];while(i=o.pop())if(a.push(i),i.isExpand){var r=i.children;if(r.length)for(var s=0;s=0;a--)i.push(o[a])}}function co(e,t){e.eachSeriesByType("tree",(function(e){uo(e,t)}))}function uo(e,t){var n=Si(e,t);e.layoutInfo=n;var i=e.get("layout"),o=0,a=0,r=null;"radial"===i?(o=2*Math.PI,a=Math.min(n.height,n.width)/2,r=xi((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(o=n.width,a=n.height,r=xi());var s=e.getData().tree.root,l=s.children[0];if(l){mi(s),so(l,vi,r),s.hierNode.modifier=-l.hierNode.prelim,lo(l,bi);var c=l,u=l,p=l;lo(l,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>p.depth&&(p=e)}));var h=c===u?1:r(c,u)/2,d=h-c.getLayout().x,g=0,f=0,y=0,m=0;if("radial"===i)g=o/(u.getLayout().x+h+d),f=a/(p.depth-1||1),lo(l,(function(e){y=(e.getLayout().x+d)*g,m=(e.depth-1)*f;var t=_i(y,m);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:m},!0)}));else{var v=e.getOrient();"RL"===v||"LR"===v?(f=a/(u.getLayout().x+h+d),g=o/(p.depth-1||1),lo(l,(function(e){m=(e.getLayout().x+d)*f,y="LR"===v?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(g=o/(u.getLayout().x+h+d),f=a/(p.depth-1||1),lo(l,(function(e){y=(e.getLayout().x+d)*g,m="TB"===v?(e.depth-1)*f:a-(e.depth-1)*f,e.setLayout({x:y,y:m},!0)})))}}}function po(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),o=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(s["extend"])(o,i)}))}))}function ho(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,i=ci(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function go(e){e.registerChartView(zi),e.registerSeriesModel(ro),e.registerLayout(co),e.registerVisual(po),ho(e)}var fo=function(){},yo=["treemapZoomToNode","treemapRender","treemapMove"];function mo(e){for(var t=0;t1)n=n.parentNode;var o=Object(vo["b"])(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",o)}))}var xo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};_o(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},a=new Ht["a"]({itemStyle:o},this,t);i=e.levels=So(i,t);var r=s["map"](i||[],(function(e){return new Ht["a"](e,a,t)}),this),l=eo.createTree(n,this,c);function c(e){e.wrapMethod("getItemModel",(function(e,t){var n=l.getNodeByDataIndex(t),i=n?r[n.depth]:null;return e.parentModel=i||a,e}))}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.getRawValue(e),a=i.getName(e);return Object(zt["c"])("nameValue",{name:a,value:o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=oo(i,this),n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},s["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=s["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){bo(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ut["a"]);function _o(e){var t=0;s["each"](e.children,(function(e){_o(e);var n=e.value;s["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;s["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["isArray"](e.value)?e.value[0]=n:e.value=n}function So(e,t){var n=Object(rt["r"])(t.get("color")),i=Object(rt["r"])(t.get(["aria","decal","decals"]));if(n){var o,a;e=e||[],s["each"](e,(function(e){var t=new Ht["a"](e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(o=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(a=!0)}));var r=e[0]||(e[0]={});return o||(r.color=n.slice()),!a&&i&&(r.decal=i.slice()),e}}var wo=xo,Oo=n("b3e3"),Mo=n("1a63"),Ao=8,Io=8,Do=5,Co=function(){function e(e){this.group=new Ge["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,i){var o=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&n){var r=o.getModel("itemStyle"),s=r.getModel("textStyle"),l={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,r,s,i),je["i"](a,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var o=Object(rt["e"])(i.getModel().get("name"),""),a=n.getTextRect(o),r=Math.max(a.width+2*Ao,t.emptyItemWidth);t.totalWidth+=r+Io,t.renderList.push({node:i,text:o,width:r})}},e.prototype._renderContent=function(e,t,n,i,o){for(var a=0,r=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),c=je["e"](t.pos,t.box),u=t.totalWidth,p=t.renderList,h=p.length-1;h>=0;h--){var d=p[h],g=d.node,f=d.width,y=d.text;u>c.width&&(u-=f-r,f=r,y=null);var m=new kt["a"]({shape:{points:To(a,0,f,l,h===p.length-1,0===h)},style:Object(s["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Re["a"]({style:{text:y,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*Fe["j"],onclick:Object(s["curry"])(o,g)});m.disableLabelAnimation=!0,this.group.add(m),jo(m,e,g),a+=f+Io}},e.prototype.remove=function(){this.group.removeAll()},e}();function To(e,t,n,i,o,a){var r=[[o?e:e-Do,t],[e+n,t],[e+n,t+i],[o?e:e-Do,t+i]];return!a&&r.splice(2,0,[e+n+Do,t+i/2]),!o&&r.push([e,t+i/2]),r}function jo(e,t,n){Object(xt["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&oo(n,t)}}var Lo=Co,Po=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,o){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:o}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,o=this._storage.length;izo||Math.abs(e.dy)>zo)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a=new Wn["a"](o.x,o.y,o.width,o.height),r=this.seriesModel.layoutInfo;t-=r.x,n-=r.y;var s=Yn["create"]();Yn["translate"](s,s,[-t,-n]),Yn["scale"](s,s,[e.scale,e.scale]),Yn["translate"](s,s,[t,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var o=i.node;if(o.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var a=o.hostTree.data.getItemModel(o.dataIndex),r=a.get("link",!0),s=a.get("target",!0)||"blank";r&&Object(Eo["l"])(r,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Lo(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(io(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=qo(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var o=this._storage.background[i.getRawIndex()];if(o){var a=o.transformCoordToLocal(e,t),r=o.shape;if(!(r.x<=a[0]&&a[0]<=r.x+r.width&&r.y<=a[1]&&a[1]<=r.y+r.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n},t.type="treemap",t}(He["a"]);function qo(){return{nodeGroup:[],background:[],content:[]}}function Ko(e,t,n,i,o,a,r,l,c,u){if(r){var p=r.getLayout(),h=e.getData(),d=r.getModel();if(h.setItemGraphicEl(r.dataIndex,null),p&&p.isInView){var g=p.width,f=p.height,y=p.borderWidth,m=p.invisible,v=r.getRawIndex(),b=l&&l.getRawIndex(),x=r.viewChildren,_=p.upperHeight,S=x&&x.length,w=d.getModel("itemStyle"),O=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,D=z("nodeGroup",Ro);if(D){if(c.add(D),D.x=p.x||0,D.y=p.y||0,D.markRedraw(),Xo(D).nodeWidth=g,Xo(D).nodeHeight=f,p.isAboveViewRoot)return D;var C=z("background",Vo,u,Ho);C&&N(D,C,S&&p.upperLabelHeight);var T=d.get(["emphasis","focus"]),j=d.get(["emphasis","blurScope"]),L="ancestor"===T?r.getAncestorsIndices():"descendant"===T?r.getDescendantIndices():T;if(S)Object(Fe["y"])(D)&&Object(Fe["F"])(D,!1),C&&(Object(Fe["F"])(C,!0),h.setItemGraphicEl(r.dataIndex,C),Object(Fe["p"])(C,L,j));else{var P=z("content",Vo,u,Wo);P&&k(D,P),C&&Object(Fe["y"])(C)&&Object(Fe["F"])(C,!1),Object(Fe["F"])(D,!0),h.setItemGraphicEl(r.dataIndex,D),Object(Fe["p"])(D,L,j)}return D}}}function N(t,n,i){var o=Object(xt["a"])(n);if(o.dataIndex=r.dataIndex,o.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:g,height:f,r:I}),m)E(n);else{n.invisible=!1;var a=r.getVisual("style"),s=a.stroke,l=Yo(w);l.fill=s;var c=Uo(O);c.fill=O.get("borderColor");var u=Uo(M);u.fill=M.get("borderColor");var p=Uo(A);if(p.fill=A.get("borderColor"),i){var h=g-2*y;R(n,s,a.opacity,{x:y,y:0,width:h,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=p,Object(Fe["G"])(n)}t.add(n)}function k(t,n){var i=Object(xt["a"])(n);i.dataIndex=r.dataIndex,i.seriesIndex=e.seriesIndex;var o=Math.max(g-2*y,0),a=Math.max(f-2*y,0);if(n.culling=!0,n.setShape({x:y,y:y,width:o,height:a,r:I}),m)E(n);else{n.invisible=!1;var s=r.getVisual("style"),l=s.fill,c=Yo(w);c.fill=l,c.decal=s.decal;var u=Uo(O),p=Uo(M),h=Uo(A);R(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=p,n.ensureState("select").style=h,Object(Fe["G"])(n)}t.add(n)}function E(e){!e.invisible&&a.push(e)}function R(t,n,i,o){var a=d.getModel(o?Go:Bo),l=Object(rt["e"])(d.get("name"),null),c=a.getShallow("show");Object(Je["g"])(t,Object(Je["e"])(d,o?Go:Bo),{defaultText:c?l:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:r.dataIndex});var u=t.getTextContent(),h=u.style,g=Object(s["normalizeCssArray"])(h.padding||0);o&&(t.setTextConfig({layoutRect:o}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-g[1]-g[3],0),n=Math.max((o?o.height:t.shape.height)-g[0]-g[2],0);h.width===e&&h.height===n||u.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",V(h,o,p);var f=u.getState("emphasis");V(f?f.style:null,o,p)}function V(t,n,i){var o=t?t.text:null;if(!n&&i.isLeafRoot&&null!=o){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+o:o}}function z(e,i,a,r){var s=null!=b&&n[e][b],l=o[e];return s?(n[e][b]=null,B(l,s)):m||(s=new i,s instanceof wn["c"]&&(s.z2=Qo(a,r)),G(l,s)),t[e][v]=s}function B(e,t){var n=e[v]={};t instanceof Ro?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(s["extend"])({},t.shape)}function G(e,t){var n=e[v]={},a=r.parentNode,s=t instanceof Ge["a"];if(a&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=o.background[a.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function Qo(e,t){return e*Fo+t}var Jo=Zo,$o=s["each"],ea=s["isObject"],ta=-1,na=function(){function e(t){var n=t.mappingMethod,i=t.type,o=this.option=s["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=ga[n];var a=e.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(aa(o),ia(o)):"category"===n?o.categories?oa(o):aa(o,!0):(s["assert"]("linear"!==n||o.dataExtent),aa(o))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return s["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return s["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){s["isObject"](e)?s["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var o,a=s["isArray"](t)?[]:s["isObject"](t)?{}:(o=!0,null);return e.eachVisual(t,(function(e,t){var r=n.call(i,e,t);o?a=r:a[t]=r})),a},e.retrieveVisuals=function(t){var n,i={};return t&&$o(e.visualHandlers,(function(e,o){t.hasOwnProperty(o)&&(i[o]=t[o],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(s["isArray"](e))e=e.slice();else{if(!ea(e))return[];var t=[];$o(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,o=1/0,a=0,r=t.length;a=0;a--)null==i[a]&&(delete n[t[a]],t.pop())}function aa(e,t){var n=e.visual,i=[];s["isObject"](n)?$o(n,(function(e){i.push(e)})):null!=n&&i.push(n);var o={color:1,symbol:1};t||1!==i.length||o.hasOwnProperty(e.type)||(i[1]=i[0]),da(e,i)}function ra(e){return{applyVisual:function(t,n,i){var o=this.mapValueToVisual(t);i("color",e(n("color"),o))},_normalizedToVisual:pa([0,1])}}function sa(e){var t=this.option.visual;return t[Math.round(Object(Te["l"])(e,[0,1],[0,t.length-1],!0))]||{}}function la(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function ca(e){var t=this.option.visual;return t[this.option.loop&&e!==ta?e%t.length:e]}function ua(){return this.option.visual[0]}function pa(e){return{linear:function(t){return Object(Te["l"])(t,e,this.option.visual,!0)},category:ca,piecewise:function(t,n){var i=ha.call(this,n);return null==i&&(i=Object(Te["l"])(t,e,this.option.visual,!0)),i},fixed:ua}}function ha(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=na.findPieceIndex(e,n),o=n[i];if(o&&o.visual)return o.visual[this.type]}}function da(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=s["map"](t,(function(e){return Z["parse"](e)}))),t}var ga={linear:function(e){return Object(Te["l"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=na.findPieceIndex(e,t,!0);if(null!=n)return Object(Te["l"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?ta:t},fixed:s["noop"]};function fa(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var a=Ia(o,u,e,t,f,i);xa(e,a,n,i)}}))}else l=Sa(u),p.fill=l}}function _a(e,t,n){var i=Object(s["extend"])({},t),o=n.designatedVisualItemStyle;return Object(s["each"])(["color","colorAlpha","colorSaturation"],(function(n){o[n]=t[n];var a=e.get(n);o[n]=null,null!=a&&(i[n]=a)})),i}function Sa(e){var t=Oa(e,"color");if(t){var n=Oa(e,"colorAlpha"),i=Oa(e,"colorSaturation");return i&&(t=Object(Z["modifyHSL"])(t,null,null,i)),n&&(t=Object(Z["modifyAlpha"])(t,n)),t}}function wa(e,t){return null!=t?Object(Z["modifyHSL"])(t,null,null,e):null}function Oa(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function Ma(e,t,n,i,o,a){if(a&&a.length){var r=Aa(t,"color")||null!=o.color&&"none"!==o.color&&(Aa(t,"colorAlpha")||Aa(t,"colorSaturation"));if(r){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=t.get("colorMappingBy"),p={type:r.name,dataExtent:c,visual:r.range};"color"!==p.type||"index"!==u&&"id"!==u?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var h=new ya(p);return va(h).drColorMappingBy=u,h}}}function Aa(e,t){var n=e.get(t);return Object(s["isArray"])(n)&&n.length?{name:t,range:n}:null}function Ia(e,t,n,i,o,a){var r=Object(s["extend"])({},t);if(o){var l=o.type,c="color"===l&&va(o).drColorMappingBy,u="index"===c?i:"id"===c?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));r[l]=o.mapValueToVisual(u)}return r}var Da=Math.max,Ca=Math.min,Ta=s["retrieve"],ja=s["each"],La=["itemStyle","borderWidth"],Pa=["itemStyle","gapWidth"],Na=["upperLabel","show"],ka=["upperLabel","height"],Ea={seriesType:"treemap",reset:function(e,t,n,i){var o=n.getWidth(),a=n.getHeight(),r=e.option,l=je["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),c=r.size||[],u=Object(Te["p"])(Ta(l.width,c[0]),o),p=Object(Te["p"])(Ta(l.height,c[1]),a),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],g=to(i,d,e),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,y=e.getViewRoot(),m=no(y);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Wa(e,g,y,u,p):f?[f.width,f.height]:[u,p],b=r.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:r.squareRatio,sort:b,leafDepth:r.leafDepth};y.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(_),Ra(y,x,!1,0),_=y.getLayout(),ja(m,(function(e,t){var n=(m[t+1]||y).getValue();e.setLayout(s["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var S=e.getData().tree.root;S.setLayout(Ua(l,f,g),!0),e.setLayoutInfo(l),Ya(S,new Wn["a"](-l.x,-l.y,o,a),m,y,0)}};function Ra(e,t,n,i){var o,a;if(!e.isRemoved()){var r=e.getLayout();o=r.width,a=r.height;var s=e.getModel(),l=s.get(La),c=s.get(Pa)/2,u=Xa(s),p=Math.max(l,u),h=l-c,d=p-c;e.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:u},!0),o=Da(o-2*h,0),a=Da(a-h-d,0);var g=o*a,f=Va(e,s,g,t,n,i);if(f.length){var y={x:h,y:d,width:o,height:a},m=Ca(o,a),v=1/0,b=[];b.area=0;for(var x=0,_=f.length;x<_;){var S=f[x];b.push(S),b.area+=S.getLayout().area;var w=Fa(b,m,t.squareRatio);w<=v?(x++,v=w):(b.area-=b.pop().getLayout().area,Ha(b,m,y,c,!1),m=Ca(y.width,y.height),b.length=b.area=0,v=1/0)}if(b.length&&Ha(b,m,y,c,!0),!n){var O=s.get("childrenVisibleMin");null!=O&&g=0;l--){var c=o["asc"===i?r-l-1:l].getValue();c/n*tr[1]&&(r[1]=t)}))):r=[NaN,NaN],{sum:i,dataExtent:r}}function Fa(e,t,n){for(var i=0,o=1/0,a=0,r=void 0,s=e.length;ai&&(i=r));var l=e.area*e.area,c=t*t*n;return l?Da(c*i/l,l/(c*o)):1/0}function Ha(e,t,n,i,o){var a=t===n.width?0:1,r=1-a,s=["x","y"],l=["width","height"],c=n[s[a]],u=t?e.area/t:0;(o||u>n[l[r]])&&(u=n[l[r]]);for(var p=0,h=e.length;pTe["a"]&&(c=Te["a"]),r=a}ci&&(i=t);var a=i%2?i+2:i+3;o=[];for(var r=0;r0&&(v[0]=-v[0],v[1]=-v[1]);var x=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(m[1],m[0]);c[0].8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*g+l[0],i.y=-u[1]*f+l[1],p=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*x+l[0],i.y=l[1]+S,p=m[0]<0?"right":"left",i.originX=-g*x,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+S,p="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*x+c[0],i.y=c[1]+S,p=m[0]>=0?"right":"left",i.originX=g*x,i.originY=-S;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||p})}}}function w(e,t){var n=e.__specifiedRotation;if(null==n){var i=r.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Ge["a"]),Vr=Rr,zr=function(){function e(e){this.group=new Ge["a"],this._LineCtor=e||Vr}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,n=this,i=n.group,o=n._lineData;n._lineData=e,o||i.removeAll();var a=Gr(e);e.diff(o).add((function(n){t._doAdd(e,n,a)})).update((function(n,i){t._doUpdate(o,e,i,n,a)})).remove((function(e){i.remove(o.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Gr(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||Br(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function Gr(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Object(Je["e"])(t)}}function Fr(e){return isNaN(e[0])||isNaN(e[1])}function Hr(e){return!Fr(e[0])&&!Fr(e[1])}var Wr=zr,Ur=n("e623"),Yr=[],Xr=[],Zr=[],qr=Ur["h"],Kr=Un["distSquare"],Qr=Math.abs;function Jr(e,t,n){for(var i,o=e[0],a=e[1],r=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Yr[0]=qr(o[0],a[0],r[0],u),Yr[1]=qr(o[1],a[1],r[1],u);var p=Qr(Kr(Yr,t)-l);p=0?i+=c:i-=c:g>=0?i-=c:i+=c}return i}function $r(e,t){var n=[],i=Ur["n"],o=[[],[],[]],a=[[],[]],r=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Un["clone"](l[0]),Un["clone"](l[1])],l[2]&&l.__original.push(Un["clone"](l[2])));var p=l.__original;if(null!=l[2]){if(Un["copy"](o[0],p[0]),Un["copy"](o[1],p[2]),Un["copy"](o[2],p[1]),c&&"none"!==c){var h=gr(e.node1),d=Jr(o,p[0],h*t);i(o[0][0],o[1][0],o[2][0],d,n),o[0][0]=n[3],o[1][0]=n[4],i(o[0][1],o[1][1],o[2][1],d,n),o[0][1]=n[3],o[1][1]=n[4]}if(u&&"none"!==u){h=gr(e.node2),d=Jr(o,p[1],h*t);i(o[0][0],o[1][0],o[2][0],d,n),o[1][0]=n[1],o[2][0]=n[2],i(o[0][1],o[1][1],o[2][1],d,n),o[1][1]=n[1],o[2][1]=n[2]}Un["copy"](l[0],o[0]),Un["copy"](l[1],o[2]),Un["copy"](l[2],o[1])}else{if(Un["copy"](a[0],p[0]),Un["copy"](a[1],p[1]),Un["sub"](r,a[1],a[0]),Un["normalize"](r,r),c&&"none"!==c){h=gr(e.node1);Un["scaleAndAdd"](a[0],a[0],r,h*t)}if(u&&"none"!==u){h=gr(e.node2);Un["scaleAndAdd"](a[1],a[1],r,-h*t)}Un["copy"](l[0],a[0]),Un["copy"](l[1],a[1])}}))}function es(e){return"view"===e.type}var ts=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.init=function(e,t){var n=new mt["a"],i=new Wr,o=this.group;this._controller=new gn["a"](t.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,o=e.coordinateSystem;this._model=e;var a=this._symbolDraw,r=this._lineDraw,l=this.group;if(es(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?l.attr(c):Ve["updateProps"](l,c,e)}$r(e.getGraph(),dr(e));var u=e.getData();a.updateData(u);var p=e.getEdgeData();r.updateData(p),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),o=e.getModel();n.off("drag").off("dragend");var a=o.get("draggable");a&&n.on("drag",(function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){h&&h.setUnfixed(t)})),n.setDraggable(a&&!!h);var r=o.get(["emphasis","focus"]);"adjacency"===r&&(Object(xt["a"])(n).focus=e.getAdjacentDataIndices())})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);"adjacency"===n&&(Object(xt["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var g="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),y=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get(["label","rotate"])||0,o=e.getSymbolPath();if(g){var a=u.getItemLayout(t),r=Math.atan2(a[1]-y,a[0]-f);r<0&&(r=2*Math.PI+r);var l=a[0]=0&&e.call(t,n[o],o)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,o=0;o=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&e.call(t,n[o],o)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof as||(t=this._nodesMap[is(t)]),t){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a=0&&n.node2.dataIndex>=0}));for(o=0,a=i.length;o=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}s["mixin"](as,ss("hostGraph","data")),s["mixin"](rs,ss("hostGraph","edgeData"));var ls=os,cs=n("b7bf");function us(e,t,n,i,o){for(var a=new ls(i),r=0;r "+d)),u++)}var g,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)g=Object(gt["a"])(e,n);else{var y=cs["a"].get(f),m=y&&y.dimensions||[];s["indexOf"](m,"value")<0&&m.concat(["value"]);var v=Object(it["a"])(e,{coordDimensions:m});g=new ot["a"](v,n),g.initData(e)}var b=new ot["a"](["value"],n);return b.initData(c,l),o&&o(g,b),Ki({mainData:g,struct:a,structAttr:"graph",datas:{node:g,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var ps=n("f8da"),hs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(m["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new ct(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(rt["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){sr(this);var a=us(i,n,this,!0,r);return s["each"](a.edges,(function(e){lr(e.node1,e.node2,this,e.dataIndex)}),this),a.data}function r(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Ht["a"].prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=a,i}function a(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=a,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(e,n),a=i.graph.getEdgeByIndex(e),r=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),Object(zt["c"])("nameValue",{name:l.join(" > "),value:o.value,noValue:null==o.value})}var c=Object(ps["a"])({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=s["map"](this.option.categories||[],(function(e){return null!=e.value?e:s["extend"]({value:0},e)})),t=new ot["a"](["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,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",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ut["a"]),ds=hs,gs={type:"graphRoam",event:"graphRoam",update:"none"};function fs(e){e.registerChartView(ns),e.registerSeriesModel(ds),e.registerProcessor(qa),e.registerVisual(Ka),e.registerVisual(Ja),e.registerLayout(hr),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,br),e.registerLayout(Sr),e.registerCoordinateSystem("graphView",{dimensions:Qn.dimensions,create:Or}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),e.registerAction(gs,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,i=ci(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var ys=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),ms=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(m["b"])(t,e),t.prototype.getDefaultShape=function(){return new ys},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,o=t.r,a=t.width,r=t.angle,s=t.x-n(r)*a*(a>=o/3?1:2),l=t.y-i(r)*a*(a>=o/3?1:2);r=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(r)*a,t.y+i(r)*a),e.lineTo(t.x+n(t.angle)*o,t.y+i(t.angle)*o),e.lineTo(t.x-n(r)*a,t.y-i(r)*a),e.lineTo(s,l)},t}(l["b"]),vs=ms,bs=n("246f");function xs(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),a=Math.min(i,o),r=Object(Te["p"])(n[0],t.getWidth()),s=Object(Te["p"])(n[1],t.getHeight()),l=Object(Te["p"])(e.get("radius"),a/2);return{cx:r,cy:s,r:l}}function _s(e,t){var n=null==e?"":e+"";return t&&("string"===typeof t?n=t.replace("{value}",n):"function"===typeof t&&(n=t(e))),n}var Ss=2*Math.PI,ws=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=xs(e,n);this._renderMain(e,t,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,o){for(var a=this.group,r=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),p=u?bs["a"]:Be["a"],h=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),f=(l-s)%Ss||l===s?(l-s)%Ss:Ss,y=s,m=0;h&&m=e&&(0===t?0:i[t-1][0]).8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0}))}if(v.get("show")&&T!==x){j=v.get("distance");j=j?j+l:l;for(var k=0;k<=_;k++){c=Math.cos(O),u=Math.sin(O);var E=new Mr["a"]({shape:{x1:c*(g-j)+h,y1:u*(g-j)+d,x2:c*(g-w-j)+h,y2:u*(g-w-j)+d},silent:!0,style:D});"auto"===D.stroke&&E.setStyle({stroke:i((T+k/_)/x)}),p.add(E),O+=A}O-=A}else O+=M}},t.prototype._renderPointer=function(e,t,n,i,o,a,r,l,u){var p=this.group,h=this._data,d=this._progressEls,g=[],f=e.get(["pointer","show"]),y=e.getModel("progress"),m=y.get("show"),v=e.getData(),b=v.mapDimension("value"),x=+e.get("min"),_=+e.get("max"),S=[x,_],w=[a,r];function O(t,n){var i,a=v.getItemModel(t),r=a.getModel("pointer"),s=Object(Te["p"])(r.get("width"),o.r),l=Object(Te["p"])(r.get("length"),o.r),c=e.get(["pointer","icon"]),u=r.get("offsetCenter"),p=Object(Te["p"])(u[0],o.r),h=Object(Te["p"])(u[1],o.r),d=r.get("keepAspect");return i=c?Object(vt["a"])(c,p-s/2,h-l,s,l,null,d):new vs({shape:{angle:-Math.PI/2,width:s,r:l,x:p,y:h}}),i.rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function M(e,t){var n=y.get("roundCap"),i=n?bs["a"]:Be["a"],r=y.get("overlap"),s=r?y.get("width"):u/v.count(),c=r?o.r-s:o.r-(e+1)*s,p=r?o.r:o.r-e*s,h=new i({shape:{startAngle:a,endAngle:t,cx:o.cx,cy:o.cy,clockwise:l,r0:c,r:p}});return r&&(h.z2=_-v.get(b,e)%_),h}(m||f)&&(v.diff(h).add((function(t){if(f){var n=O(t,a);Ve["initProps"](n,{rotation:-(Object(Te["l"])(v.get(b,t),S,w,!0)+Math.PI/2)},e),p.add(n),v.setItemGraphicEl(t,n)}if(m){var i=M(t,a),o=y.get("clip");Ve["initProps"](i,{shape:{endAngle:Object(Te["l"])(v.get(b,t),S,w,o)}},e),p.add(i),g[t]=i}})).update((function(t,n){if(f){var i=h.getItemGraphicEl(n),o=i?i.rotation:a,r=O(t,o);r.rotation=o,Ve["updateProps"](r,{rotation:-(Object(Te["l"])(v.get(b,t),S,w,!0)+Math.PI/2)},e),p.add(r),v.setItemGraphicEl(t,r)}if(m){var s=d[n],l=s?s.shape.endAngle:a,c=M(t,l),u=y.get("clip");Ve["updateProps"](c,{shape:{endAngle:Object(Te["l"])(v.get(b,t),S,w,u)}},e),p.add(c),g[t]=c}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis");if(f){var o=v.getItemGraphicEl(e),a=v.getItemVisual(e,"style"),r=a.fill;if(o instanceof c["a"]){var l=o.style;o.useStyle(Object(s["extend"])({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},a))}else o.useStyle(a),"pointer"!==o.type&&o.setColor(r);o.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===o.style.fill&&o.setStyle("fill",i(Object(Te["l"])(v.get(b,e),S,[0,1],!0))),o.z2EmphasisLift=0,Object(Fe["I"])(o,t),Object(Fe["o"])(o,n.get("focus"),n.get("blurScope"))}if(m){var u=g[e];u.useStyle(v.getItemVisual(e,"style")),u.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),u.z2EmphasisLift=0,Object(Fe["I"])(u,t),Object(Fe["o"])(u,n.get("focus"),n.get("blurScope"))}})),this._progressEls=g)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),a=n.get("icon"),r=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(vt["a"])(a,t.cx-o/2+Object(Te["p"])(r[0],t.r),t.cy-o/2+Object(Te["p"])(r[1],t.r),o,o,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,o){var a=this,r=e.getData(),s=r.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new Ge["a"],p=[],h=[],d=e.isAnimationEnabled();r.diff(this._data).add((function(e){p[e]=new Re["a"]({silent:!0}),h[e]=new Re["a"]({silent:!0})})).update((function(e,t){p[e]=a._titleEls[t],h[e]=a._detailEls[t]})).execute(),r.each((function(t){var n=r.getItemModel(t),a=r.get(s,t),g=new Ge["a"],f=i(Object(Te["l"])(a,[l,c],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),v=o.cx+Object(Te["p"])(m[0],o.r),b=o.cy+Object(Te["p"])(m[1],o.r),x=p[t];x.attr({style:Object(Je["c"])(y,{x:v,y:b,text:r.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:f})}),g.add(x)}var _=n.getModel("detail");if(_.get("show")){var S=_.get("offsetCenter"),w=o.cx+Object(Te["p"])(S[0],o.r),O=o.cy+Object(Te["p"])(S[1],o.r),M=Object(Te["p"])(_.get("width"),o.r),A=Object(Te["p"])(_.get("height"),o.r),I=e.get(["progress","show"])?r.getItemVisual(t,"style").fill:f,D=(x=h[t],_.get("formatter"));x.attr({style:Object(Je["c"])(_,{x:w,y:O,text:_s(a,D),width:isNaN(M)?null:M,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:I})}),Object(Je["h"])(x,{normal:_},a,(function(e){return _s(e,D)})),d&&Object(Je["a"])(x,t,r,e,{getFormattedLabel:function(e,t,n,i,o,r){return _s(r?r.interpolatedValue:a,D)}}),g.add(x)}u.add(g)})),this.group.add(u),this._titleEls=p,this._detailEls=h},t.type="gauge",t}(He["a"]),Os=ws,Ms=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e,t){return at(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ut["a"]),As=Ms;function Is(e){e.registerChartView(Os),e.registerSeriesModel(As)}var Ds=["itemStyle","opacity"],Cs=function(e){function t(t,n){var i=e.call(this)||this,o=i,a=new ze["a"],r=new Re["a"];return o.setTextContent(r),i.setTextGuideLine(a),i.updateData(t,n,!0),i}return Object(m["b"])(t,e),t.prototype.updateData=function(e,t,n){var i=this,o=e.hostModel,a=e.getItemModel(t),r=e.getItemLayout(t),s=a.getModel("emphasis"),l=a.get(Ds);l=null==l?1:l,i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:r.points}),i.style.opacity=0,Ve["initProps"](i,{style:{opacity:l}},o,t)):Ve["updateProps"](i,{style:{opacity:l},shape:{points:r.points}},o,t),Object(Fe["I"])(i,a),this._updateLabel(e,t),Object(Fe["o"])(this,s.get("focus"),s.get("blurScope"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),a=e.hostModel,r=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;Object(Je["g"])(o,Object(Je["e"])(r),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var p=l.linePoints;i.setShape({points:p}),n.textGuideLineConfig={anchor:p?new We["a"](p[0][0],p[0][1]):null},Ve["updateProps"](o,{style:{x:l.x,y:l.y}},a,t),o.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Ue["d"])(n,Object(Ue["a"])(r),{stroke:u})},t}(kt["a"]),Ts=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this._data,a=this.group;i.diff(o).add((function(e){var t=new Cs(i,e);i.setItemGraphicEl(e,t),a.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(i,e),a.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=o.getItemGraphicEl(t);Ve["removeElementWithFadeOut"](n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(He["a"]),js=Ts,Ls=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.useColorPaletteOnData=!0,n}return Object(m["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ct(s["bind"](this.getData,this),s["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return at(this,{coordDimensions:["value"],encodeDefaulter:s["curry"](st["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(rt["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),o=n.mapDimension("value"),a=n.getSum(o);return i.percent=a?+(n.get(o,t)/a*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ut["a"]),Ps=Ls;function Ns(e,t){return je["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ks(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),o=[],a="ascending"===t,r=0,s=e.count();ral)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&ll(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function ll(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var cl=rl,ul=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&s["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){s["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=s["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);s["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t}(Ut["a"]),pl=ul,hl=function(e){function t(t,n,i,o,a){var r=e.call(this,t,n,i)||this;return r.type=o||"value",r.axisIndex=a,r}return Object(m["b"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(on["a"]),dl=hl,gl=n("6f39"),fl=s["each"],yl=Math.min,ml=Math.max,vl=Math.floor,bl=Math.ceil,xl=Te["v"],_l=Math.PI,Sl=function(){function e(e,t,n){this.type="parallel",this._axesMap=s["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,o=e.parallelAxisIndex;fl(i,(function(e,n){var i=o[n],a=t.getComponent("parallelAxis",i),r=this._axesMap.set(e,new dl(e,ln["a"](a),[0,0],a.get("type"),i)),s="category"===r.type;r.onBand=s&&a.get("boundaryGap"),r.inverse=a.get("inverse"),a.axis=r,r.model=a,r.coordinateSystem=a.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,o=t.pixelDimIndex,a=e[1-o],r=e[o];return a>=n&&a<=n+t.axisLength&&r>=i&&r<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();fl(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),ln["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=je["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],o=["width","height"],a=t.get("layout"),r="horizontal"===a?0:1,s=n[o[r]],l=[0,s],c=this.dimensions.length,u=wl(t.get("axisExpandWidth"),l),p=wl(t.get("axisExpandCount")||0,[0,c]),h=t.get("axisExpandable")&&c>3&&c>p&&p>1&&u>0&&s>0,d=t.get("axisExpandWindow");if(d)e=wl(d[1]-d[0],l),d[1]=d[0]+e;else{e=wl(u*(p-1),l);var g=t.get("axisExpandCenter")||vl(c/2);d=[u*g-e/2],d[1]=d[0]+e}var f=(s-e)/(c-p);f<3&&(f=0);var y=[vl(xl(d[0]/u,1))+1,bl(xl(d[1]/u,1))-1],m=f/u*d[0];return{layout:a,pixelDimIndex:r,layoutBase:n[i[r]],layoutLength:s,axisBase:n[i[1-r]],axisLength:n[o[1-r]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:d,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),fl(n,(function(t,n){var a=(i.axisExpandable?Ml:Ol)(n,i),r={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},s={horizontal:_l/2,vertical:0},l=[r[o].x+e.x,r[o].y+e.y],c=s[o],u=Yn["create"]();Yn["rotate"](u,u,c),Yn["translate"](u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,a=this.dimensions,r=[],l=[];s["each"](a,(function(t){r.push(e.mapDimension(t)),l.push(o.get(t).model)}));for(var c=this.hasAxisBrushed(),u=n;uo*(1-u[0])?(l="jump",r=s-o*(1-u[2])):(r=s-o*u[1])>=0&&(r=s-o*(1-u[1]))<=0&&(r=0),r*=t.axisExpandWidth/c,r?Object(gl["a"])(r,i,a,"all"):l="none";else{var h=i[1]-i[0],d=a[1]*s/h;i=[ml(0,d-h/2)],i[1]=yl(a[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},e}();function wl(e,t){return yl(ml(e,t[0]),t[1])}function Ol(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Ml(e,t){var n,i,o=t.layoutLength,a=t.axisExpandWidth,r=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=0;n--)Te["c"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=t.length;iBl}function ac(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function rc(e,t,n,i){var o=new Ge["a"];return o.add(new Oo["a"]({name:"main",style:uc(n),silent:!0,draggable:!0,cursor:"move",drift:Object(s["curry"])(fc,e,t,o,["n","s","w","e"]),ondragend:Object(s["curry"])(ic,t,{isEnd:!0})})),Object(s["each"])(i,(function(n){o.add(new Oo["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s["curry"])(fc,e,t,o,n),ondragend:Object(s["curry"])(ic,t,{isEnd:!0})}))})),o}function sc(e,t,n,i){var o=i.brushStyle.lineWidth||0,a=Rl(o,Gl),r=n[0][0],s=n[1][0],l=r-o/2,c=s-o/2,u=n[0][1],p=n[1][1],h=u-a+o/2,d=p-a+o/2,g=u-r,f=p-s,y=g+o,m=f+o;cc(e,t,"main",r,s,g,f),i.transformable&&(cc(e,t,"w",l,c,a,m),cc(e,t,"e",h,c,a,m),cc(e,t,"n",l,c,y,a),cc(e,t,"s",l,d,y,a),cc(e,t,"nw",l,c,a,a),cc(e,t,"ne",h,c,a,a),cc(e,t,"sw",l,d,a,a),cc(e,t,"se",h,d,a,a))}function lc(e,t){var n=t.__brushOption,i=n.transformable,o=t.childAt(0);o.useStyle(uc(n)),o.attr({silent:!i,cursor:i?"move":"default"}),Object(s["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=t.childOfName(n.join("")),a=1===n.length?dc(e,n[0]):gc(e,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?Wl[a]+"-resize":null})}))}function cc(e,t,n,i,o,a,r){var s=t.childOfName(n);s&&s.setShape(bc(vc(e,t,[[i,o],[i+a,o+r]])))}function uc(e){return Object(s["defaults"])({strokeNoScale:!0},e.brushStyle)}function pc(e,t,n,i){var o=[El(e,n),El(t,i)],a=[Rl(e,n),Rl(t,i)];return[[o[0],a[0]],[o[1],a[1]]]}function hc(e){return Ve["getTransform"](e.group)}function dc(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=Ve["transformDirection"](n[t],hc(e));return i[o]}function gc(e,t){var n=[dc(e,t[0]),dc(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function fc(e,t,n,i,o,a){var r=n.__brushOption,l=e.toRectRange(r.range),c=mc(t,o,a);Object(s["each"])(i,(function(e){var t=Hl[e];l[t[0]][t[1]]+=c[t[0]]})),r.range=e.fromRectRange(pc(l[0][0],l[1][0],l[0][1],l[1][1])),Jl(t,n),ic(t,{isEnd:!1})}function yc(e,t,n,i){var o=t.__brushOption.range,a=mc(e,n,i);Object(s["each"])(o,(function(e){e[0]+=a[0],e[1]+=a[1]})),Jl(e,t),ic(e,{isEnd:!1})}function mc(e,t,n){var i=e.group,o=i.transformCoordToLocal(t,n),a=i.transformCoordToLocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function vc(e,t,n){var i=tc(e,t);return i&&i!==kl?i.clipPath(n,e._transform):Object(s["clone"])(n)}function bc(e){var t=El(e[0][0],e[1][0]),n=El(e[0][1],e[1][1]),i=Rl(e[0][0],e[1][0]),o=Rl(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:o-n}}function xc(e,t,n){if(e._brushType&&!Ic(e,t.offsetX,t.offsetY)){var i=e._zr,o=e._covers,a=ec(e,t,n);if(!e._dragging)for(var r=0;ri.getWidth()||n<0||n>i.getHeight()}var Dc={lineX:Cc(0),lineY:Cc(1),rect:{createCover:function(e,t){function n(e){return e}return rc({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=ac(e);return pc(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){sc(e,t,n,i)},updateCommon:lc,contain:Sc},polygon:{createCover:function(e,t){var n=new Ge["a"];return n.add(new ze["a"]({name:"main",style:uc(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new kt["a"]({name:"main",draggable:!0,drift:Object(s["curry"])(yc,e,t),ondragend:Object(s["curry"])(ic,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:vc(e,t,n)})},updateCommon:lc,contain:Sc}};function Cc(e){return{createCover:function(t,n){return rc({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=ac(t),i=El(n[0][e],n[1][e]),o=Rl(n[0][e],n[1][e]);return[i,o]},updateCoverShape:function(t,n,i,o){var a,r=tc(t,n);if(r!==kl&&r.getLinearBrushOtherExtent)a=r.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,a];e&&l.reverse(),sc(t,n,l,o)},updateCommon:lc,contain:Sc}}var Tc=Xl;function jc(e){return e=Nc(e),function(t){return Ve["clipPointsByRect"](t,e)}}function Lc(e,t){return e=Nc(e),function(n){var i=null!=t?t:n,o=i?e.width:e.height,a=i?e.x:e.y;return[a,a+(o||0)]}}function Pc(e,t,n){var i=Nc(e);return function(e,o){return i.contain(o[0],o[1])&&!vn(e,t,n)}}function Nc(e){return Wn["a"].create(e)}var kc=["axisLine","axisTickLabel","axisName"],Ec=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Tc(n.getZr())).on("brush",s["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Rc(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ge["a"],this.group.add(this._axisGroup),e.get("show")){var a=zc(e,t),r=a.coordinateSystem,l=e.getAreaSelectStyle(),c=l.width,u=e.axis.dim,p=r.getAxisLayout(u),h=s["extend"]({strokeContainThreshold:c},p),d=new Kt["a"](e,h);s["each"](kc,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,l,e,a,c,n),Ve["groupTransition"](o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,o,a){var r=n.axis.getExtent(),s=r[1]-r[0],l=Math.min(30,.1*Math.abs(s)),c=Wn["a"].create({x:r[0],y:-o/2,width:s,height:o});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:jc(c),isTargetByCursor:Pc(c,a,i),getLinearBrushOtherExtent:Lc(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Vc(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,o=s["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}($t["a"]);function Rc(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Vc(e){var t=e.axis;return s["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function zc(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Bc=Ec,Gc={type:"axisAreaSelect",event:"axisAreaSelected"};function Fc(e){e.registerAction(Gc,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Hc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Wc(e){e.registerComponentView(cl),e.registerComponentModel(pl),e.registerCoordinateSystem("parallel",Cl),e.registerPreprocessor(tl),e.registerComponentModel(Ll),e.registerComponentView(Bc),Object(Tl["a"])(e,"parallel",Ll,Hc),Fc(e)}function Uc(e){Object(i["a"])(Wc),e.registerChartView(Xs),e.registerSeriesModel(Qs),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,el)}var Yc=n("207d"),Xc=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Zc=function(e){function t(t){return e.call(this,t)||this}return Object(m["b"])(t,e),t.prototype.getDefaultShape=function(){return new Xc},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Object(Fe["r"])(this)},t.prototype.downplay=function(){Object(Fe["C"])(this)},t}(l["b"]),qc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=this,o=e.getGraph(),a=this.group,r=e.layoutInfo,s=r.width,l=r.height,c=e.getData(),u=e.getData("edge"),p=e.get("orient");this._model=e,a.removeAll(),a.x=r.x,a.y=r.y,o.eachEdge((function(t){var n=new Zc,i=Object(xt["a"])(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var o,r,c,h,d,g,f,y,m=t.getModel(),v=m.getModel("lineStyle"),b=v.get("curveness"),x=t.node1.getLayout(),_=t.node1.getModel(),S=_.get("localX"),w=_.get("localY"),O=t.node2.getLayout(),M=t.node2.getModel(),A=M.get("localX"),I=M.get("localY"),D=t.getLayout();switch(n.shape.extent=Math.max(1,D.dy),n.shape.orient=p,"vertical"===p?(o=(null!=S?S*s:x.x)+D.sy,r=(null!=w?w*l:x.y)+x.dy,c=(null!=A?A*s:O.x)+D.ty,h=null!=I?I*l:O.y,d=o,g=r*(1-b)+h*b,f=c,y=r*b+h*(1-b)):(o=(null!=S?S*s:x.x)+x.dx,r=(null!=w?w*l:x.y)+D.sy,c=null!=A?A*s:O.x,h=(null!=I?I*l:O.y)+D.ty,d=o*(1-b)+c*b,g=r,f=o*b+c*(1-b),y=h),n.setShape({x1:o,y1:r,x2:c,y2:h,cpx1:d,cpy1:g,cpx2:f,cpy2:y}),n.useStyle(v.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var C=t.node1.getVisual("color"),T=t.node2.getVisual("color");"string"===typeof C&&"string"===typeof T&&(n.style.fill=new Yc["a"](0,0,1,0,[{color:C,offset:0},{color:T,offset:1}]))}var j=m.getModel("emphasis");Object(Fe["I"])(n,m,"lineStyle",(function(e){return e.getItemStyle()})),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var L=j.get("focus");Object(Fe["o"])(n,"adjacency"===L?t.getAdjacentDataIndices():L,j.get("blurScope")),Object(xt["a"])(n).dataType="edge"})),o.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),o=i.get("localX"),r=i.get("localY"),u=i.getModel("emphasis"),p=new Oo["a"]({shape:{x:null!=o?o*s:n.x,y:null!=r?r*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(Je["g"])(p,Object(Je["e"])(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),p.disableLabelAnimation=!0,p.setStyle("fill",t.getVisual("color")),p.setStyle("decal",t.getVisual("style").decal),Object(Fe["I"])(p,i),a.add(p),c.setItemGraphicEl(t.dataIndex,p),Object(xt["a"])(p).dataType="node";var h=u.get("focus");Object(Fe["o"])(p,"adjacency"===h?t.getAdjacentDataIndices():h,u.get("blurScope"))})),c.eachItemGraphicEl((function(t,o){var a=c.getItemModel(o);a.get("draggable")&&(t.drift=function(t,a){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(o),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&a.setClipPath(Kc(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(He["a"]);function Kc(e,t,n){var i=new Oo["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ve["initProps"](i,{shape:{width:e.width+20}},t,n),i}var Qc=qc,Jc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var a=this.levelModels,r=0;r=0&&(a[o[r].depth]=new Ht["a"](o[r],this,t));if(i&&n){var s=us(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var o=i.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),o=i.node1.getLayout();if(o){var a=o.depth,r=n.levelModels[a];r&&(e.parentModel=r)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var o=this.getDataParams(e,n),a=o.data,r=o.value,s=a.source+" -- "+a.target;return Object(zt["c"])("nameValue",{name:s,value:r,noValue:i(r)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Object(zt["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var o=this.getGraph().getNodeByIndex(t),a=o.getLayout().value;i.value=a}return i},t.type="series.sankey",t.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(ut["a"]),$c=Jc;function eu(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),o=tu(e,t);e.layoutInfo=o;var a=o.width,r=o.height,l=e.getGraph(),c=l.nodes,u=l.edges;iu(c);var p=s["filter"](c,(function(e){return 0===e.getLayout().value})),h=0!==p.length?0:e.get("layoutIterations"),d=e.get("orient"),g=e.get("nodeAlign");nu(c,u,n,i,a,r,h,d,g)}))}function tu(e,t){return je["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nu(e,t,n,i,o,a,r,s,l){ou(e,t,n,o,a,s,l),cu(e,t,a,o,i,r,s),Su(e,s)}function iu(e){s["each"](e,(function(e){var t=xu(e.outEdges,bu),n=xu(e.inEdges,bu),i=e.getValue()||0,o=Math.max(t,n,i);e.setLayout({value:o},!0)}))}function ou(e,t,n,i,o,a,r){for(var s=[],l=[],c=[],u=[],p=0,h=0;h=0;m&&y.depth>d&&(d=y.depth),f.setLayout({depth:m?y.depth:p},!0),"vertical"===a?f.setLayout({dy:n},!0):f.setLayout({dx:n},!0);for(var v=0;vp-1?d:p-1;r&&"left"!==r&&ru(e,r,a,w);var O="vertical"===a?(o-n)/w:(i-n)/w;lu(e,O,a)}function au(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function ru(e,t,n,i){if("right"===t){var o=[],a=e,r=0;while(a.length){for(var l=0;l0;a--)l*=.99,du(s,l,r),hu(s,o,n,i,r),_u(s,l,r),hu(s,o,n,i,r)}function uu(e,t){var n=[],i="vertical"===t?"y":"x",o=Object(rt["j"])(e,(function(e){return e.getLayout()[i]}));return o.keys.sort((function(e,t){return e-t})),s["each"](o.keys,(function(e){n.push(o.buckets.get(e))})),n}function pu(e,t,n,i,o,a){var r=1/0;s["each"](e,(function(e){var t=e.length,l=0;s["each"](e,(function(e){l+=e.getLayout().value}));var c="vertical"===a?(i-(t-1)*o)/l:(n-(t-1)*o)/l;c0&&(r=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[a]+s.getLayout()[p]+t;var d="vertical"===o?i:n;if(l=c-t-d,l>0){r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0),c=r;for(h=u-2;h>=0;--h)s=e[h],l=s.getLayout()[a]+s.getLayout()[p]+t-c,l>0&&(r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[a]}}))}function du(e,t,n){s["each"](e.slice().reverse(),(function(e){s["each"](e,(function(e){if(e.outEdges.length){var i=xu(e.outEdges,gu,n)/xu(e.outEdges,bu);if(isNaN(i)){var o=e.outEdges.length;i=o?xu(e.outEdges,fu,n)/o:0}if("vertical"===n){var a=e.getLayout().x+(i-vu(e,n))*t;e.setLayout({x:a},!0)}else{var r=e.getLayout().y+(i-vu(e,n))*t;e.setLayout({y:r},!0)}}}))}))}function gu(e,t){return vu(e.node2,t)*e.getValue()}function fu(e,t){return vu(e.node2,t)}function yu(e,t){return vu(e.node1,t)*e.getValue()}function mu(e,t){return vu(e.node1,t)}function vu(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function bu(e){return e.getValue()}function xu(e,t,n){var i=0,o=e.length,a=-1;while(++ao&&(o=t)})),s["each"](n,(function(t){var n=new ya({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),a=n.mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",a),t.setVisual("style",{fill:a}))}))}}))}function Ou(e){e.registerChartView(Qc),e.registerSeriesModel($c),e.registerLayout(eu),e.registerVisual(wu),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var Mu=n("c9db"),Au=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,o=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),r=o.get("type"),l=a.get("type");"category"===r?(e.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===l?(e.layout="vertical",n=a.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var c=["x","y"],u="horizontal"===e.layout?0:1,p=this._baseAxisDim=c[u],h=c[1-u],d=[o,a],g=d[u].get("type"),f=d[1-u].get("type"),y=e.data;if(y&&i){var m=[];s["each"](y,(function(e,t){var n;s["isArray"](e)?(n=e.slice(),e.unshift(t)):s["isArray"](e.value)?(n=e.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,b=[{name:p,type:Object(Mu["a"])(g),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Object(Mu["a"])(f),dimsDef:v.slice()}];return at(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:s["curry"](st["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Iu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(m["b"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(ut["a"]);Object(s["mixin"])(Iu,Au,!0);var Du=Iu,Cu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this.group,a=this._data;this._data||o.removeAll();var r="horizontal"===e.get("layout")?1:0;i.diff(a).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=Lu(t,i,e,r,!0);i.setItemGraphicEl(e,n),o.add(n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?Pu(s,n,i,e):n=Lu(s,i,e,r),o.add(n),i.setItemGraphicEl(e,n)}else o.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&o.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(He["a"]),Tu=function(){function e(){}return e}(),ju=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(m["b"])(t,e),t.prototype.getDefaultShape=function(){return new Tu},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();iy){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}var Hu=n("3913"),Wu=n("dc26"),Uu={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Wu["c"]){var n="";0,Object(Hu["c"])(n)}var i=Fu(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Yu(e){e.registerSeriesModel(Du),e.registerChartView(ku),e.registerVisual(Eu),e.registerLayout(Vu),e.registerTransform(Uu)}var Xu=n("1e0b"),Zu=["color","borderColor"],qu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,o=t.getLayout("isSimpleBox"),a=e.get("clip",!0),r=e.coordinateSystem,s=r.getArea&&r.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var r=t.getItemLayout(n);if(a&&$u(s,r))return;var l=Ju(r,n,!0);Ve["initProps"](l,{shape:{points:r.ends}},e,n),ep(l,t,n,o),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(r,l){var c=n.getItemGraphicEl(l);if(t.hasValue(r)){var u=t.getItemLayout(r);a&&$u(s,u)?i.remove(c):(c?Ve["updateProps"](c,{shape:{points:u.ends}},e,r):c=Ju(u,r),ep(c,t,r,o),i.add(c),t.setItemGraphicEl(r,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),op(e,this.group);var t=e.get("clip",!0)?Object(Xu["a"])(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),o=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var a=i.getItemLayout(n),r=Ju(a,n);ep(r,i,n,o),r.incremental=!0,this.group.add(r)}},t.prototype._incrementalRenderLarge=function(e,t){op(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(He["a"]),Ku=function(){function e(){}return e}(),Qu=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(m["b"])(t,e),t.prototype.getDefaultShape=function(){return new Ku},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(l["b"]);function Ju(e,t,n){var i=e.ends;return new Qu({shape:{points:n?tp(i,e):i},z2:100})}function $u(e,t){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),a=n.getModel("itemStyle").getItemStyle(Zu);t.useStyle(a),t.style.fill=null,t.style.stroke=o}var rp=qu,sp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(m["b"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ut["a"]);Object(s["mixin"])(sp,Au,!0);var lp=sp;function cp(e){e&&s["isArray"](e.series)&&s["each"](e.series,(function(e){s["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var up=n("7199"),pp=["itemStyle","borderColor"],hp=["itemStyle","borderColor0"],dp=["itemStyle","color"],gp=["itemStyle","color0"],fp={seriesType:"candlestick",plan:Object(up["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?dp:gp)}function i(e,t){return t.get(e>0?pp:hp)}if(!t.isSeriesFiltered(e)){var o=e.pipelineContext.large;return!o&&{progress:function(e,t){var o;while(null!=(o=e.next())){var a=t.getItemModel(o),r=t.getItemLayout(o).sign,l=a.getItemStyle();l.fill=n(r,a),l.stroke=i(r,a)||l.fill;var c=t.ensureUniqueItemVisual(o,"style");Object(s["extend"])(c,l)}}}}}},yp=fp,mp="undefined"!==typeof Float32Array?Float32Array:Array,vp={seriesType:"candlestick",plan:Object(up["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=xp(e,n),o=0,a=1,r=["x","y"],s=n.mapDimension(r[o]),l=n.mapDimensionsAll(r[a]),c=l[0],u=l[1],p=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==s||l.length<4))return{progress:e.pipelineContext.large?g:d};function d(e,n){var r;while(null!=(r=e.next())){var l=n.get(s,r),d=n.get(c,r),g=n.get(u,r),f=n.get(p,r),y=n.get(h,r),m=Math.min(d,g),v=Math.max(d,g),b=O(m,l),x=O(v,l),_=O(f,l),S=O(y,l),w=[];M(w,x,0),M(w,b,1),w.push(I(S),I(x),I(_),I(b)),n.setItemLayout(r,{sign:bp(n,r,d,g,u),initBaseline:d>g?x[a]:b[a],ends:w,brushRect:A(f,y,l)})}function O(e,n){var i=[];return i[o]=n,i[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function M(e,t,n){var a=t.slice(),r=t.slice();a[o]=Object(Ve["subPixelOptimize"])(a[o]+i/2,1,!1),r[o]=Object(Ve["subPixelOptimize"])(r[o]-i/2,1,!0),n?e.push(a,r):e.push(r,a)}function A(e,t,n){var r=O(e,n),s=O(t,n);return r[o]-=i/2,s[o]-=i/2,{x:r[0],y:r[1],width:a?i:s[0]-r[0],height:a?s[1]-r[1]:i}}function I(e){return e[o]=Object(Ve["subPixelOptimize"])(e[o],1),e}}function g(e,n){var i,r,l=new mp(4*e.count),d=0,g=[],f=[];while(null!=(r=e.next())){var y=n.get(s,r),m=n.get(c,r),v=n.get(u,r),b=n.get(p,r),x=n.get(h,r);isNaN(y)||isNaN(b)||isNaN(x)?(l[d++]=NaN,d+=3):(l[d++]=bp(n,r,m,v,u),g[o]=y,g[a]=b,i=t.dataToPoint(g,null,f),l[d++]=i?i[0]:NaN,l[d++]=i?i[1]:NaN,g[a]=x,i=t.dataToPoint(g,null,f),l[d++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function bp(e,t,n,i,o){var a;return a=n>i?-1:n0?e.get(o,t-1)<=i?1:-1:1,a}function xp(e,t){var n,i=e.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Object(Te["p"])(Object(s["retrieve2"])(e.get("barMaxWidth"),o),o),r=Object(Te["p"])(Object(s["retrieve2"])(e.get("barMinWidth"),1),o),l=e.get("barWidth");return null!=l?Object(Te["p"])(l,o):Math.max(Math.min(o/2,a),r)}var _p=vp;function Sp(e){e.registerChartView(rp),e.registerSeriesModel(lp),e.registerPreprocessor(cp),e.registerVisual(yp),e.registerLayout(_p)}var wp=3;function Op(e){return s["isArray"](e)||(e=[+e,+e]),e}function Mp(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var Ap=function(e){function t(t,n){var i=e.call(this)||this,o=new yi["a"](t,n),a=new Ge["a"];return i.add(o),i.add(a),i.updateData(t,n),i}return Object(m["b"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=this.childAt(1),o=0;o0&&(r=this._getLineLength(i)/c*1e3),(r!==this._period||l!==this._loop)&&(i.stopAnimation(),r>0)){var p=void 0;p="function"===typeof u?u(n):u,i.__t>0&&(p=-r*i.__t),i.__t=0;var h=i.animate("",l).when(r,{__t:1}).delay(p).during((function(){o._updateSymbolPosition(i)}));l||h.done((function(){o.remove(i)})),h.start()}this._period=r,this._loop=l}},t.prototype._getLineLength=function(e){return Un["dist"](e.__p1,e.__cp1)+Un["dist"](e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t,a=[e.x,e.y],r=a.slice(),s=Ur["h"],l=Ur["i"];a[0]=s(t[0],i[0],n[0],o),a[1]=s(t[1],i[1],n[1],o);var c=l(t[0],i[0],n[0],o),u=l(t[1],i[1],n[1],o);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;a--)if(i[a]<=t)break;a=Math.min(a,o-2)}else{for(a=r;at)break;a=Math.min(a-1,o-2)}var l=(t-i[a])/(i[a+1]-i[a]),c=n[a],u=n[a+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var p=u[0]-c[0],h=u[1]-c[1];e.rotation=-Math.atan2(h,p)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=t,e.ignore=!1}},t}(Np),Vp=Rp,zp=n("4c89"),Bp=n("a9f4"),Gp=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Fp=function(e){function t(t){return e.call(this,t)||this}return Object(m["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Gp},t.prototype.buildPath=function(e,t){var n=t.segs,i=t.curveness;if(t.polyline)for(var o=0;o0){e.moveTo(n[o++],n[o++]);for(var r=1;r0){var p=(s+c)/2-(l-u)*i,h=(l+u)/2-(c-s)*i;e.quadraticCurveTo(p,h,c,u)}else e.lineTo(c,u)}},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,o=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var r=0,s=0;s0)for(var c=i[s++],u=i[s++],p=1;p0){var g=(c+h)/2-(u-d)*o,f=(u+d)/2-(h-c)*o;if(Bp["a"](c,u,g,f,h,d,a,e,t))return r}else if(zp["a"](c,u,h,d,a,e,t))return r;r++}return-1},t}(l["b"]),Hp=function(){function e(){this.group=new Ge["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new Fp({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new bt["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new Fp;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("style");if(o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null),!n){var a=Object(xt["a"])(e);a.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){a.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(a.dataIndex=n+e.__startIndex)}))}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),Wp=Hp,Up={seriesType:"lines",plan:Object(up["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(o,a){var r=[];if(i){var s=void 0,l=o.end-o.start;if(n){for(var c=0,u=o.start;u ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!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}},t}(ut["a"]),$p=Jp;function eh(e){return e instanceof Array||(e=[e,e]),e}var th={seriesType:"lines",reset:function(e){var t=eh(e.get("symbol")),n=eh(e.get("symbolSize")),i=e.getData();function o(e,t){var n=e.getItemModel(t),i=eh(n.getShallow("symbol",!0)),o=eh(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),o[0]&&e.setItemVisual(t,"fromSymbolSize",o[0]),o[1]&&e.setItemVisual(t,"toSymbolSize",o[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?o:null}}},nh=th;function ih(e){e.registerChartView(Zp),e.registerSeriesModel($p),e.registerLayout(Yp),e.registerVisual(nh)}var oh=256,ah=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=s["createCanvas"]();this.canvas=e}return e.prototype.update=function(e,t,n,i,o,a){var r=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,p=u.getContext("2d"),h=e.length;u.width=t,u.height=n;for(var d=0;d0){var I=a(v)?s:l;v>0&&(v=v*M+w),x[_++]=I[A],x[_++]=I[A+1],x[_++]=I[A+2],x[_++]=I[A+3]*v*256}else _+=4}return p.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=s["createCanvas"]()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,r=0;r<256;r++)e[t](r/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},e}(),rh=ah,sh=n("11a1");function lh(e,t,n){var i=e[1]-e[0];t=s["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var o=t.length,a=0;return function(e){var i;for(i=a;i=0;i--){r=t[i].interval;if(r[0]<=e&&e<=r[1]){a=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function uh(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var ph=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):uh(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var o=t.coordinateSystem;o&&(uh(o)?this.render(t,n,i):this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,o){var a,r,s,l,c=e.coordinateSystem;if(Object(sh["a"])(c,"cartesian2d")){var u=c.getAxis("x"),p=c.getAxis("y");0,a=u.getBandWidth(),r=p.getBandWidth(),s=u.scale.getExtent(),l=p.scale.getExtent()}for(var h=this.group,d=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),f=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),m=Object(Je["e"])(e),v=e.get(["emphasis","focus"]),b=e.get(["emphasis","blurScope"]),x=Object(sh["a"])(c,"cartesian2d")?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],_=n;_s[1]||Ml[1])continue;var A=c.dataToPoint([O,M]);S=new Oo["a"]({shape:{x:Math.floor(Math.round(A[0])-a/2),y:Math.floor(Math.round(A[1])-r/2),width:Math.ceil(a),height:Math.ceil(r)},style:w})}else{if(isNaN(d.get(x[1],_)))continue;S=new Oo["a"]({z2:1,shape:c.dataToRect([d.get(x[0],_)]).contentShape,style:w})}var I=d.getItemModel(_);if(d.hasItemOption){var D=I.getModel("emphasis");g=D.getModel("itemStyle").getItemStyle(),f=I.getModel(["blur","itemStyle"]).getItemStyle(),y=I.getModel(["select","itemStyle"]).getItemStyle(),v=D.get("focus"),b=D.get("blurScope"),m=Object(Je["e"])(I)}var C=e.getRawValue(_),T="-";C&&null!=C[2]&&(T=C[2]+""),Object(Je["g"])(S,m,{labelFetcher:e,labelDataIndex:_,defaultOpacity:w.opacity,defaultText:T}),S.ensureState("emphasis").style=g,S.ensureState("blur").style=f,S.ensureState("select").style=y,Object(Fe["o"])(S,v,b),S.incremental=o,o&&(S.states.emphasis.hoverLayer=!0),h.add(S),d.setItemGraphicEl(_,S)}},t.prototype._renderOnGeo=function(e,t,n,i){var o=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,r=t.getData(),s=this._hmLayer||this._hmLayer||new rh;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var p=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),g=Math.min(l.height+l.y,i.getHeight()),f=d-p,y=g-h,m=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],v=r.mapArray(m,(function(t,n,i){var o=e.dataToPoint([t,n]);return o[0]-=p,o[1]-=h,o.push(i),o})),b=n.getExtent(),x="visualMap.continuous"===n.type?ch(b,n.option.range):lh(b,n.getPieceList(),n.option.selected);s.update(v,f,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:a.color.getColorMapper()},x);var _=new c["a"]({style:{width:f,height:y,x:p,y:h,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(He["a"]),hh=ph,dh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(gt["a"])(this.getSource(),this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=cs["a"].get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(ut["a"]),gh=dh;function fh(e){e.registerChartView(hh),e.registerSeriesModel(gh)}var yh=n("9132"),mh=["itemStyle","borderWidth"],vh=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],bh=new Qt["a"],xh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group,o=e.getData(),a=this._data,r=e.coordinateSystem,s=r.getBaseAxis(),l=s.isHorizontal(),c=r.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:r,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:vh[+l],categoryDim:vh[1-+l]};return o.diff(a).add((function(e){if(o.hasValue(e)){var t=Lh(o,e),n=_h(o,e,t,u),a=kh(o,u,n);o.setItemGraphicEl(e,a),i.add(a),Gh(a,u,n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(o.hasValue(e)){var r=Lh(o,e),s=_h(o,e,r,u),l=Vh(o,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),o.setItemGraphicEl(e,null),n=null),n?Eh(n,u,s):n=kh(o,u,s,!0),o.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),Gh(n,u,s)}else i.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&Rh(a,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=o,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){Rh(i,Object(xt["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(He["a"]);function _h(e,t,n,i){var o=e.getItemLayout(t),a=n.get("symbolRepeat"),r=n.get("symbolClip"),l=n.get("symbolPosition")||"start",c=n.get("symbolRotate"),u=(c||0)*Math.PI/180||0,p=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:o,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:r,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:p,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Sh(n,a,o,i,d),Oh(e,t,o,a,r,d.boundingLength,d.pxSign,p,i,d),Mh(n,d.symbolScale,u,i,d);var g=d.symbolSize,f=n.get("symbolOffset");return s["isArray"](f)&&(f=[Object(Te["p"])(f[0],g[0]),Object(Te["p"])(f[1],g[1])]),Ah(n,g,o,a,r,f,l,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function Sh(e,t,n,i,o){var a,r=i.valueDim,l=e.get("symbolBoundingData"),c=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),p=1-+(n[r.wh]<=0);if(s["isArray"](l)){var h=[wh(c,l[0])-u,wh(c,l[1])-u];h[1]0?1:a<0?-1:0}function wh(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Oh(e,t,n,i,o,a,r,l,c,u){var p,h=c.valueDim,d=c.categoryDim,g=Math.abs(n[d.wh]),f=e.getItemVisual(t,"symbolSize");p=s["isArray"](f)?f.slice():null==f?["100%","100%"]:[f,f],p[d.index]=Object(Te["p"])(p[d.index],g),p[h.index]=Object(Te["p"])(p[h.index],i?g:Math.abs(a)),u.symbolSize=p;var y=u.symbolScale=[p[0]/l,p[1]/l];y[h.index]*=(c.isHorizontal?-1:1)*r}function Mh(e,t,n,i,o){var a=e.get(mh)||0;a&&(bh.attr({scaleX:t[0],scaleY:t[1],rotation:n}),bh.updateTransform(),a/=bh.getLineScale(),a*=t[i.valueDim.index]),o.valueLineWidth=a}function Ah(e,t,n,i,o,a,r,l,c,u,p,h){var d=p.categoryDim,g=p.valueDim,f=h.pxSign,y=Math.max(t[g.index]+l,0),m=y;if(i){var v=Math.abs(c),b=s["retrieve"](e.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Object(Te["p"])(b,t[g.index]),S=Math.max(y+2*_,0),w=x?0:2*_,O=Object(Te["j"])(i),M=O?i:Fh((v+w)/S),A=v-M*y;_=A/2/(x?M:M-1),S=y+2*_,w=x?0:2*_,O||"fixed"===i||(M=u?Fh((Math.abs(u)+w)/S):0),m=M*S-w,h.repeatTimes=M,h.symbolMargin=_}var I=f*(m/2),D=h.pathPosition=[];D[d.index]=n[d.wh]/2,D[g.index]="start"===r?I:"end"===r?c-I:c/2,a&&(D[0]+=a[0],D[1]+=a[1]);var C=h.bundlePosition=[];C[d.index]=n[d.xy],C[g.index]=n[g.xy];var T=h.barRectShape=s["extend"]({},n);T[g.wh]=f*Math.max(Math.abs(n[g.wh]),Math.abs(D[g.index]+I)),T[d.wh]=n[d.wh];var j=h.clipShape={};j[d.xy]=-n[d.xy],j[d.wh]=p.ecSize[d.wh],j[g.xy]=0,j[g.wh]=n[g.wh]}function Ih(e){var t=e.symbolPatternSize,n=Object(vt["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Dh(e,t,n,i){var o=e.__pictorialBundle,a=n.symbolSize,r=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,p=a[t.valueDim.index]+r+2*n.symbolMargin;for(zh(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:i<0)&&(o=c-1-e),t[l.index]=p*(o-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Ch(e,t,n,i){var o=e.__pictorialBundle,a=e.__pictorialMainPath;a?Bh(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(a=e.__pictorialMainPath=Ih(n),o.add(a),Bh(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Th(e,t,n){var i=s["extend"]({},t.barRectShape),o=e.__pictorialBarRect;o?Bh(o,null,{shape:i},t,n):(o=e.__pictorialBarRect=new Oo["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(o))}function jh(e,t,n,i){if(n.symbolClip){var o=e.__pictorialClipPath,a=s["extend"]({},n.clipShape),r=t.valueDim,l=n.animationModel,c=n.dataIndex;if(o)Ve["updateProps"](o,{shape:a},l,c);else{a[r.wh]=0,o=new Oo["a"]({shape:a}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var u={};u[r.wh]=n.clipShape[r.wh],Ve[i?"updateProps":"initProps"](o,{shape:u},l,c)}}}function Lh(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Ph,n.isAnimationEnabled=Nh,n}function Ph(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Nh(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function kh(e,t,n,i){var o=new Ge["a"],a=new Ge["a"];return o.add(a),o.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?Dh(o,t,n):Ch(o,t,n),Th(o,n,i),jh(o,t,n,i),o.__pictorialShapeStr=Vh(e,n),o.__pictorialSymbolMeta=n,o}function Eh(e,t,n){var i=n.animationModel,o=n.dataIndex,a=e.__pictorialBundle;Ve["updateProps"](a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,o),n.symbolRepeat?Dh(e,t,n,!0):Ch(e,t,n,!0),Th(e,n,!0),jh(e,t,n,!0)}function Rh(e,t,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var a=[];zh(i,(function(e){a.push(e)})),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),s["each"](a,(function(e){Ve["removeElement"](e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function Vh(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function zh(e,t,n){s["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function Bh(e,t,n,i,o,a){t&&e.attr(t),i.symbolClip&&!o?n&&e.attr(n):n&&Ve[o?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,a)}function Gh(e,t,n){var i=n.dataIndex,o=n.itemModel,a=o.getModel("emphasis"),r=a.getModel("itemStyle").getItemStyle(),l=o.getModel(["blur","itemStyle"]).getItemStyle(),u=o.getModel(["select","itemStyle"]).getItemStyle(),p=o.getShallow("cursor"),h=a.get("focus"),d=a.get("blurScope"),g=a.get("scale");zh(e,(function(e){if(e instanceof c["a"]){var t=e.style;e.useStyle(s["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=r,g&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=l,e.ensureState("select").style=u,p&&(e.cursor=p),e.z2=n.z2}));var f=t.valueDim.posDesc[+(n.boundingLength>0)],y=e.__pictorialBarRect;Object(Je["g"])(y,Object(Je["e"])(o),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Object(yh["b"])(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Object(Fe["o"])(e,h,d)}function Fh(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Hh=xh,Wh=n("bba5"),Uh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(_n["d"])(Wh["a"].defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Wh["a"]),Yh=Uh,Xh=n("d26e");function Zh(e){e.registerChartView(Hh),e.registerSeriesModel(Yh),e.registerLayout(Object(s["curry"])(Xh["c"],"pictorialBar"))}var qh=n("c239"),Kh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this,a=this.group,r=e.getLayerSeries(),l=i.getLayout("layoutInfo"),c=l.rect,u=l.boundaryGap;function p(e){return e.name}a.x=0,a.y=c.y+u[0];var h=new Mo["a"](this._layersSeries||[],r,p,p),d=[];function g(t,n,s){var l=o._layers;if("remove"!==t){for(var c,u,p=[],h=[],g=r[n].indices,f=0;fa&&(a=s),i.push(s)}for(var c=0;ca&&(a=p)}return{y0:o,max:a}}function ad(e){e.registerChartView(Jh),e.registerSeriesModel(td),e.registerLayout(nd),e.registerProcessor(Ee("themeRiver"))}var rd=2,sd=4,ld=function(e){function t(t,n,i,o){var a=e.call(this)||this;a.z2=rd,a.textConfig={inside:!0},Object(xt["a"])(a).seriesIndex=n.seriesIndex;var r=new Re["a"]({z2:sd,silent:t.getModel().get(["label","silent"])});return a.setTextContent(r),a.updateData(!0,t,n,i,o),a}return Object(m["b"])(t,e),t.prototype.updateData=function(e,t,n,i,o){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var a=this;Object(xt["a"])(a).dataIndex=t.dataIndex;var r=t.getModel(),l=r.getModel("emphasis"),c=t.getLayout(),u=s["extend"]({},c);u.label=null;var p=t.getVisual("style");p.lineJoin="bevel";var h=t.getVisual("decal");h&&(p.decal=Object(Sn["a"])(h,o));var d=$e(r.getModel("itemStyle"),u);s["extend"](u,d),s["each"](Fe["g"],(function(e){var t=a.ensureState(e),n=r.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=$e(n,u);i&&(t.shape=i)})),e?(a.setShape(u),a.shape.r=c.r0,Ve["updateProps"](a,{shape:{r:c.r}},n,t.dataIndex)):Ve["updateProps"](a,{shape:u},n),a.useStyle(p),this._updateLabel(n);var g=r.getShallow("cursor");g&&a.attr("cursor",g),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=l.get("focus"),y="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Object(Fe["o"])(this,y,l.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),a=o.endAngle-o.startAngle,r=(o.startAngle+o.endAngle)/2,l=Math.cos(r),c=Math.sin(r),u=this,p=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(null!=d&&Math.abs(a)Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=o.r0+_,r>Math.PI/2&&(S="right")):"right"===S&&(m=o.r-_,r>Math.PI/2&&(S="left")):(m=(o.r+o.r0)/2,S="center"),d.style.align=S,d.style.verticalAlign=f(a,"verticalAlign")||"middle",d.x=m*l+o.cx,d.y=m*c+o.cy;var w=f(a,"rotate"),O=0;"radial"===w?(O=-r,O<-Math.PI/2&&(O+=Math.PI)):"tangential"===w?(O=Math.PI/2-r,O>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI)):"number"===typeof w&&(O=w*Math.PI/180),d.rotation=O})),p.dirtyStyle()},t}(Be["a"]),cd=ld,ud="sunburstRootToNode",pd="sunburstHighlight",hd="sunburstUnhighlight";function dd(e){e.registerAction({type:ud,update:"updateView"},(function(e,t){function n(t,n){var i=to(e,[ud],t);if(i){var o=t.getViewRoot();o&&(e.direction=io(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:pd,update:"none"},(function(e,t,n){function i(t){var n=to(e,[pd],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(s["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(s["extend"])(e,{type:"highlight"}))})),e.registerAction({type:hd,update:"updateView"},(function(e,t,n){e=Object(s["extend"])({},e),n.dispatchAction(Object(s["extend"])(e,{type:"downplay"}))}))}var gd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),r=a.tree.root,l=e.getViewRoot(),c=this.group,u=e.get("renderLabelForZeroData"),p=[];l.eachNode((function(e){p.push(e)}));var h=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function i(n,i){var o=null==n?null:e[n],a=null==i?null:t[i];g(o,a)}0===e.length&&0===t.length||new Mo["a"](t,e,n,n).add(i).update(i).remove(s["curry"](i,null)).execute()}function g(i,o){if(u||!i||i.getValue()||(i=null),i!==r&&o!==r)if(o&&o.piece)i?(o.piece.updateData(!1,i,e,t,n),a.setItemGraphicEl(i.dataIndex,o.piece)):f(o);else if(i){var s=new cd(i,e,t,n);c.add(s),a.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(c.remove(e.piece),e.piece=null)}function y(i,a){a.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,i,e,t,n):(o.virtualPiece=new cd(i,e,t,n),c.add(o.virtualPiece)),a.piece.off("click"),o.virtualPiece.on("click",(function(e){o._rootToNode(a.parentNode)}))):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}d(p,h),y(r,l),this._initEvents(),this._oldChildren=p},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(i);else if("link"===o){var a=i.getModel(),r=a.get("link");if(r){var s=a.get("target",!0)||"_blank";Object(Eo["l"])(r,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ud,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,a=e[1]-i.cy,r=Math.sqrt(o*o+a*a);return r<=i.r&&r>=i.r0}},t.type="sunburst",t}(He["a"]),fd=gd,yd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(m["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};md(n);var i=s["map"](e.levels||[],(function(e){return new Ht["a"](e,this,t)}),this),o=eo.createTree(n,this,a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t),a=i[n.depth];return a&&(e.parentModel=a),e}))}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=oo(i,this),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){bo(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},t}(ut["a"]);function md(e){var t=0;s["each"](e.children,(function(e){md(e);var n=e.value;s["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;s["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),s["isArray"](e.value)?e.value[0]=n:e.value=n}var vd=yd,bd=Math.PI/180;function xd(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");s["isArray"](i)||(i=[0,i]),s["isArray"](t)||(t=[t,t]);var o=n.getWidth(),a=n.getHeight(),r=Math.min(o,a),l=Object(Te["p"])(t[0],o),c=Object(Te["p"])(t[1],a),u=Object(Te["p"])(i[0],r/2),p=Object(Te["p"])(i[1],r/2),h=-e.get("startAngle")*bd,d=e.get("minAngle")*bd,g=e.getData().tree.root,f=e.getViewRoot(),y=f.depth,m=e.get("sort");null!=m&&_d(f,m);var v=0;s["each"](f.children,(function(e){!isNaN(e.getValue())&&v++}));var b=f.getValue(),x=Math.PI/(b||v)*2,_=f.depth>0,S=f.height-(_?-1:1),w=(p-u)/(S||1),O=e.get("clockwise"),M=e.get("stillShowZeroSum"),A=O?1:-1,I=function(e,t){if(e){var n=t;if(e!==g){var i=e.getValue(),o=0===b&&M?x:i*x;o1)o=o.parentNode;var a=n.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&"string"===typeof a&&(a=Object(Z["lift"])(a,(e.depth-1)/(i-1)*.5)),a}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(o){var a=o.getModel(),r=a.getModel("itemStyle").getItemStyle();r.fill||(r.fill=n(o,e,i.root.height));var l=t.ensureUniqueItemVisual(o.dataIndex,"style");Object(s["extend"])(l,r)}))}))}function Od(e){e.registerChartView(fd),e.registerSeriesModel(vd),e.registerLayout(Object(s["curry"])(xd,"sunburst")),e.registerProcessor(Object(s["curry"])(Ee,"sunburst")),e.registerVisual(wd),dd(e)}function Md(e,t){return t=t||[0,0],s["map"](["x","y"],(function(n,i){var o=this.getAxis(n),a=t[i],r=e[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-r)-o.dataToCoord(a+r))}),this)}function Ad(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:s["bind"](Md,e)}}}function Id(e,t){return t=t||[0,0],s["map"]([0,1],(function(n){var i=t[n],o=e[n]/2,a=[],r=[];return a[n]=i-o,r[n]=i+o,a[1-n]=r[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(r)[n])}),this)}function Dd(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:s["bind"](Id,e)}}}function Cd(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function Td(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(s["bind"])(Cd,e)}}}function jd(e,t){return t=t||[0,0],s["map"](["Radius","Angle"],(function(n,i){var o="get"+n+"Axis",a=this[o](),r=t[i],s=e[i]/2,l="category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-s)-a.dataToCoord(r+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function Ld(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=t.dataToRadius(i[0]),a=n.dataToAngle(i[1]),r=e.coordToPoint([o,a]);return r.push(o,a*Math.PI/180),r},size:s["bind"](jd,e)}}}function Pd(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function Nd(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(s["hasOwn"])(e,"text")))}function kd(e,t,n){var i,o,a,r=e;if("text"===t)a=r;else{a={},Object(s["hasOwn"])(r,"text")&&(a.text=r.text),Object(s["hasOwn"])(r,"rich")&&(a.rich=r.rich),Object(s["hasOwn"])(r,"textFill")&&(a.fill=r.textFill),Object(s["hasOwn"])(r,"textStroke")&&(a.stroke=r.textStroke),o={type:"text",style:a,silent:!0},i={};var l=Object(s["hasOwn"])(r,"textPosition");n?i.position=l?r.textPosition:"inside":l&&(i.position=r.textPosition),Object(s["hasOwn"])(r,"textPosition")&&(i.position=r.textPosition),Object(s["hasOwn"])(r,"textOffset")&&(i.offset=r.textOffset),Object(s["hasOwn"])(r,"textRotation")&&(i.rotation=r.textRotation),Object(s["hasOwn"])(r,"textDistance")&&(i.distance=r.textDistance)}return Ed(a,e),Object(s["each"])(a.rich,(function(e){Ed(e,e)})),{textConfig:i,textContent:o}}function Ed(e,t){t&&(t.font=t.textFont||t.font,Object(s["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(s["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(s["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(s["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(s["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(s["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(s["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(s["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(s["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(s["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(s["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(s["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(s["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(s["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(s["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Rd(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var o=i.textPosition.indexOf("inside")>=0,a=e.fill||"#000";Vd(i,t);var r=null==i.textFill;return o?r&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(r&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(s["each"])(t.rich,(function(e){Vd(e,e)})),i}function Vd(e,t){t&&(Object(s["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(s["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(s["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(s["hasOwn"])(t,"font")&&(e.font=t.font),Object(s["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(s["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(s["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(s["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(s["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(s["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(s["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(s["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(s["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(s["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(s["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(s["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(s["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(s["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(s["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(s["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(s["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(s["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(s["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(s["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(s["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(s["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var zd=n("da32"),Bd=n("4ade"),Gd=Bd["a"].CMD,Fd=2*Math.PI,Hd=["x","y"],Wd=["width","height"],Ud=[];function Yd(e,t){return Math.abs(e-t)<1e-5}function Xd(e){var t,n,i,o,a,r=e.data,s=e.len(),l=[],c=0,u=0,p=0,h=0;function d(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function g(e,n,i,o){Yd(e,i)&&Yd(n,o)||t.push(e,n,i,o,i,o)}function f(e,n,i,o,a,r){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=nO:I2&&l.push(t),l}function Zd(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var o=n0)for(var _=i/n,S=-i/2;S<=i/2;S+=_){var w=Math.sin(S),O=Math.cos(S),M=0;for(b=0;bi.width?1:0,a=Wd[o],r=Hd[o],s=i[a]/t,l=i[r],c=0;c=0){!l&&(l=o[e]={});var y=Object(s["keys"])(c);for(h=0;h=0){var y=e.getAnimationStyleProps(),m=y?y.style:null;if(m){!r&&(r=o.style={});var v=Object(s["keys"])(i);for(h=0;h=0?a.replaceAt(t,l):a.add(t),t}function df(e,t){var n=Sg(e),i=t.type,o=t.shape,a=t.style;return null!=i&&i!==n.customGraphicType||"path"===i&&Af(o)&&Mf(o)!==n.customPathData||"image"===i&&Object(s["hasOwn"])(a,"image")&&a.image!==n.customImagePath}function gf(e,t,n,i,o){var a=n.clipPath;if(!1===a)e&&e.getClipPath()&&e.removeClipPath();else if(a){var r=e.getClipPath();r&&df(r,a)&&(r=null),r||(r=Gg(a),e.setClipPath(r)),Fg(null,r,null,t,a,null,null,i,o,!1)}}function ff(e,t,n,i,o,a){if(!e.isGroup){yf(n,null,a),yf(n,Ag,a);var r=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,c=a.select.conOpt;if(null!=r||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===r)u&&e.removeTextContent();else{r=a.normal.conOpt=r||{type:"text"},u?u.clearStates():(u=Gg(r),e.setTextContent(u));var p=r&&r.style;Fg(null,u,null,t,r,p,null,i,o,!0);for(var h=0;h=p;h--)Of(t.childAt(h),o,t)}}function xf(e){new Mo["a"](e.oldChildren,e.newChildren,_f,_f,e).add(Sf).update(Sf).remove(wf).execute()}function _f(e,t){var n=e&&e.name;return null!=n?n:Pg+t}function Sf(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;hf(n.api,o,n.dataIndex,i,n.seriesModel,n.group,!1,n.morphPreparation)}function wf(e){var t=this.context,n=t.oldChildren[e];Of(n,t.seriesModel,t.group)}function Of(e,t,n){if(e){var i=Sg(e).leaveToProps;i?Ve["updateProps"](e,i,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function Mf(e){return e&&(e.pathData||e.d)}function Af(e){return e&&(Object(s["hasOwn"])(e,"pathData")||Object(s["hasOwn"])(e,"d"))}function If(e){return e&&e instanceof l["b"]}function Df(e,t){e&&t.remove(e)}var Cf=function(){function e(e,t){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=e,this._transOpt=t}return e.prototype.hasFrom=function(){return!!this._fromList.length},e.prototype.findAndAddFrom=function(e){if(e&&(Sg(e).canMorph&&this._fromList.push(e),e.isGroup))for(var t=e.childrenRef(),n=0;n=i?o-s:r;this._manyToOneForSingleTo(a,s>=o?null:s,l)}else if("oneToMany"===e)for(var c=Math.max(1,Math.floor(i/o)),u=0,p=0;u=i?i-u:c;this._oneToManyForSingleFrom(u,h,p>=o?null:p)}},e.prototype._oneToOneForSingleTo=function(e,t){var n=this._toList[e],i=this._toElOptionList[e],o=this._toDataIndices[e],a=this._allPropsFinalList[e],r=this._fromList[t],s=this._getOrCreateMorphConfig(o),l=s.duration;if(r&&sg(r)){if(Hg(n,a,i.style),l){var c=cg([r],n,s,Tf);this._processResultIndividuals(c,e,null)}}else{var u=l&&r&&(r!==n||lg(r))?r:null,p={};Ug("shape",n,u,i,p,!1),Ug("extra",n,u,i,p,!1),Xg(n,u,i,p,!1),qg(n,u,i,i.style,p,!1),Hg(n,a,i.style),u&&tg(u,n,s),Wg(n,o,i,this._seriesModel,p,!1)}},e.prototype._manyToOneForSingleTo=function(e,t,n){var i=this._toList[e],o=this._toElOptionList[e],a=this._allPropsFinalList[e];Hg(i,a,o.style);var r=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(r.duration&&null!=t){for(var s=[],l=t;ly?"left":"right",u=Math.abs(l[1]-m)/f<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var Vf={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:kf["f"](t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var o=Math.max(1,e.getBandWidth()),a=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:kf["h"](t.cx,t.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:"Sector",shape:kf["h"](t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}},zf=Ef,Bf=n("821f"),Gf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},t}(Ut["a"]),Ff=Gf,Hf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rt["b"]).models[0]},t.type="polarAxis",t}(Ut["a"]);s["mixin"](Hf,Wt["a"]);var Wf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.type="angleAxis",t}(Hf),Uf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.type="radiusAxis",t}(Hf),Yf=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(m["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(on["a"]);Yf.prototype.dataToRadius=on["a"].prototype.dataToCoord,Yf.prototype.radiusToData=on["a"].prototype.coordToData;var Xf=Yf,Zf=Object(rt["o"])(),qf=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(m["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],r=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(r),l=v["e"](null==a?"":a+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var p=Math.max(0,Math.floor(u)),h=Zf(e.model),d=h.lastAutoInterval,g=h.lastTickCount;return null!=d&&null!=g&&Math.abs(d-p)<=1&&Math.abs(g-o)<=1&&d>p?p=d:(h.lastTickCount=o,h.lastAutoInterval=p),p},t}(on["a"]);qf.prototype.dataToAngle=on["a"].prototype.dataToCoord,qf.prototype.angleToData=on["a"].prototype.coordToData;var Kf=qf,Qf=function(){function e(e){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Xf,this._angleAxis=new Kf,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),r=Math.max(o[0],o[1]);i.inverse?a=r-360:r=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=lr)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,o=-Math.sin(n)*t+this.cy;return[i,o]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,o=n*n+i*i,a=this.r,r=this.r0;return o<=a*a&&o>=r*r}}},e.prototype.convertToPixel=function(e,t,n){var i=Jf(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Jf(t);return i===this?this.pointToData(n):null},e}();function Jf(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var $f=Qf;function ey(e,t,n){var i=t.get("center"),o=n.getWidth(),a=n.getHeight();e.cx=Object(Te["p"])(i[0],o),e.cy=Object(Te["p"])(i[1],a);var r=e.getRadiusAxis(),l=Math.min(o,a)/2,c=t.get("radius");null==c?c=[0,"100%"]:s["isArray"](c)||(c=[0,c]);var u=[Object(Te["p"])(c[0],l),Object(Te["p"])(c[1],l)];r.inverse?r.setExtent(u[1],u[0]):r.setExtent(u[0],u[1])}function ty(e,t){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();s["each"](Object(ln["d"])(t,"radius"),(function(e){o.scale.unionExtentFromData(t,e)})),s["each"](Object(ln["d"])(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Object(ln["i"])(i.scale,i.model),Object(ln["i"])(o.scale,o.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),r=360/i.scale.count();i.inverse?a[1]+=r:a[1]-=r,i.setExtent(a[0],a[1])}}function ny(e){return"angleAxis"===e.mainType}function iy(e,t){if(e.type=t.get("type"),e.scale=Object(ln["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),ny(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var oy={dimensions:$f.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var o=new $f(i+"");o.update=ty;var a=o.getRadiusAxis(),r=o.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");iy(a,s),iy(r,l),ey(o,e,t),n.push(o),e.coordinateSystem=o,o.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",rt["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},ay=oy,ry=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sy(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),o=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function ly(e){var t=e.getRadiusAxis();return t.inverse?0:1}function cy(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var uy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(m["b"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),r=n.getMinorTicksCoords(),l=s["map"](n.getViewLabels(),(function(e){e=s["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));cy(l),cy(a),s["each"](ry,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||py[t](this.group,e,i,a,r,o,l)}),this)}},t.type="angleAxis",t}(Pf["a"]),py={axisLine:function(e,t,n,i,o,a){var r,s=t.getModel(["axisLine","lineStyle"]),l=ly(n),c=l?0:1;r=0===a[c]?new Qt["a"]({shape:{cx:n.cx,cy:n.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Jt["a"]({shape:{cx:n.cx,cy:n.cy,r:a[l],r0:a[c]},style:s.getLineStyle(),z2:1,silent:!0}),r.style.fill=null,e.add(r)},axisTick:function(e,t,n,i,o,a){var r=t.getModel("axisTick"),l=(r.get("inside")?-1:1)*r.get("length"),c=a[ly(n)],u=s["map"](i,(function(e){return new Mr["a"]({shape:sy(n,[c,c+l],e.coord)})}));e.add(Ve["mergePath"](u,{style:s["defaults"](r.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,o,a){if(o.length){for(var r=t.getModel("axisTick"),l=t.getModel("minorTick"),c=(r.get("inside")?-1:1)*l.get("length"),u=a[ly(n)],p=[],h=0;hf?"left":"right",v=Math.abs(g[1]-y)/d<.3?"middle":g[1]>y?"top":"bottom";if(l&&l[h]){var b=l[h];s["isObject"](b)&&b.textStyle&&(r=new Ht["a"](b.textStyle,c,c.ecModel))}var x=new Re["a"]({silent:Kt["a"].isLabelSilent(t),style:Object(Je["c"])(r,{x:g[0],y:g[1],fill:r.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(x),p){var _=Kt["a"].makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Object(xt["a"])(x).eventData=_}}),this)},splitLine:function(e,t,n,i,o,a){var r=t.getModel("splitLine"),l=r.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var p=[],h=0;h=0?"p":"n",A=x;v&&(i[s][O]||(i[s][O]={p:x,n:x}),A=i[s][O][M]);var I=void 0,D=void 0,C=void 0,T=void 0;if("radius"===p.dim){var j=p.dataToCoord(w)-x,L=a.dataToCoord(O);Math.abs(j)=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[o]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=Gy(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Gy(t);return i===this?this.pointToData(n):null},e}();function Gy(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var Fy=By;function Hy(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,o){var a=new Fy(i,e,t);a.name="single_"+o,a.resize(i,t),i.coordinateSystem=a,n.push(a)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",rt["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var Wy={create:Hy,dimensions:Fy.prototype.dimensions},Uy=Wy,Yy=["x","y"],Xy=["width","height"],Zy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.makeElOption=function(e,t,n,i,o){var a=n.axis,r=a.coordinateSystem,s=Qy(r,1-Ky(a)),l=r.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=kf["b"](i),p=qy[c](a,l,s);p.style=u,e.graphicKey=p.type,e.pointer=p}var h=Cy(n);kf["a"](t,e,h,n,i,o)},t.prototype.getHandleTransform=function(e,t,n){var i=Cy(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=kf["d"](t.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var o=n.axis,a=o.coordinateSystem,r=Ky(o),s=Qy(a,r),l=[e.x,e.y];l[r]+=t[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var c=Qy(a,1-r),u=(c[1]+c[0])/2,p=[u,u];return p[r]=l[r],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t}(Nf["a"]),qy={line:function(e,t,n){var i=kf["f"]([t,n[0]],[t,n[1]],Ky(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:kf["g"]([t-i/2,n[0]],[i,o],Ky(e))}}};function Ky(e){return e.isHorizontal()?0:1}function Qy(e,t){var n=e.getRect();return[n[Yy[t]],n[Yy[t]]+n[Xy[t]]]}var Jy=Zy,$y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.type="single",t}($t["a"]);function em(e){Object(i["a"])(Bf["a"]),Pf["a"].registerAxisPointerClass("SingleAxisPointer",Jy),e.registerComponentView($y),e.registerComponentView(ky),e.registerComponentModel(Ry),Object(Tl["a"])(e,"single",Ry,Ry.defaultOption),e.registerCoordinateSystem("single",Uy)}var tm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.init=function(t,n,i){var o=Object(je["f"])(t);e.prototype.init.apply(this,arguments),nm(t,o)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),nm(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.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}},t}(Ut["a"]);function nm(e,t){var n,i=e.cellSize;n=s["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var o=s["map"]([0,1],(function(e){return Object(je["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(je["h"])(e,t,{type:"box",ignoreSize:o})}var im=tm,om={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},am={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},rm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,a=o.getRangeInfo(),r=o.getOrient();this._renderDayRect(e,a,i),this._renderLines(e,a,r,i),this._renderYearText(e,a,r,i),this._renderMonthText(e,r,i),this._renderWeekText(e,a,r,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),r=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new Oo["a"]({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var o=this,a=e.coordinateSystem,r=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){h(c.formatedDate),0===u&&(c=a.getDateInfo(t.start.y+"-"+t.start.m));var p=c.date;p.setMonth(p.getMonth()+1),c=a.getDateInfo(p)}function h(t){o._firstDayOfMonth.push(a.getDateInfo(t)),o._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,r,i)}h(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),r,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),r,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-t/2,i[1][o]=i[1][o]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new ze["a"]({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,o=i.getDateInfo(t),a=[],r=0;r<7;r++){var s=i.getNextNDay(o.time,r),l=i.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},t.prototype._formatterLabel=function(e,t){return"string"===typeof e&&e?Eo["g"](e,t):"function"===typeof e?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,o){var a=t[0],r=t[1],s=["center","bottom"];"bottom"===i?(r+=o,s=["center","top"]):"left"===i?a-=o:"right"===i?(a+=o,s=["center","top"]):r-=o;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:a,y:r,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),r=o.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,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,p={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var d=o.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:h},f=this._formatterLabel(d,g),y=new Re["a"]({z2:30,style:Object(Je["c"])(o,{text:f})});y.attr(this._yearTextPositionControl(y,p[r],n,r,a)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,o){var a="left",r="top",s=e[0],l=e[1];return"horizontal"===n?(l+=o,t&&(a="center"),"start"===i&&(r="bottom")):(s+=o,t&&(r="middle"),"start"===i&&(a="right")),{x:s,y:l,align:a,verticalAlign:r}},t.prototype._renderMonthText=function(e,t,n){var i=e.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),r=i.get("position"),l=i.get("align"),c=[this._tlpoints,this._blpoints];s["isString"](o)&&(o=om[o.toUpperCase()]||[]);var u="start"===r?0:1,p="horizontal"===t?0:1;a="start"===r?-a:a;for(var h="center"===l,d=0;d=i.start.time&&n.timer.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/lm)-Math.floor(n[0].time/lm)+1,o=new Date(n[0].time),a=o.getDate(),r=n[1].date.getDate();o.setDate(a+i-1);var s=o.getDate();if(s!==r){var l=o.getTime()-n[1].time>0?1:-1;while((s=o.getDate())!==r&&(o.getTime()-n[1].time)*l>0)i-=l,o.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&ti.lweek)return null;var o=7*(e-1)-i.fweek+t,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(o){var a=new e(o,t,n);i.push(a),o.coordinateSystem=a})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function um(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var pm=cm;function hm(e){e.registerComponentModel(im),e.registerComponentView(sm),e.registerCoordinateSystem("calendar",pm)}var dm=rt["o"](),gm={path:null,compoundPath:null,group:Ge["a"],image:c["a"],text:Re["a"]},fm=function(e){var t=e.graphic;s["isArray"](t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])},ym=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(m["b"])(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,o=n.elements=t?[]:n.elements,a=[];this._flatten(i,a,null);var r=rt["q"](o,a,"normalMerge"),l=this._elOptionsToUpdate=[];s["each"](r,(function(e,t){var n=e.newOption;n&&(l.push(n),Sm(e,n),wm(o,t,n),Om(o[t],n))}),this);for(var c=o.length-1;c>=0;c--)null==o[c]?o.splice(c,1):delete o[c].$action},t.prototype._flatten=function(e,t,n){s["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;"group"===e.type&&i&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Ut["a"]),mm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.init=function(){this._elMap=s["createHashMap"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group;s["each"](t,(function(t){var o=rt["e"](t.id,null),a=null!=o?n.get(o):null,r=rt["e"](t.parentId,null),s=null!=r?n.get(r):i,l=t.type,c=t.style;"text"===l&&c&&t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var u=t.textContent,p=t.textConfig;if(c&&Nd(c,l,!!p,!!u)){var h=kd(c,l,!0);!p&&h.textConfig&&(p=t.textConfig=h.textConfig),!u&&h.textContent&&(u=h.textContent)}var d=xm(t);var g=t.$action||"merge";"merge"===g?a?a.attr(d):vm(o,s,d,n):"replace"===g?(bm(a,n),vm(o,s,d,n)):"remove"===g&&bm(a,n);var f=n.get(o);if(f&&u)if("merge"===g){var y=f.getTextContent();y?y.attr(u):f.setTextContent(new Re["a"](u))}else"replace"===g&&f.setTextContent(new Re["a"](u));if(f){var m=dm(f);m.__ecGraphicWidthOption=t.width,m.__ecGraphicHeightOption=t.height,Mm(f,e,t),Ve["setTooltipConfig"]({el:f,componentModel:e,itemName:f.name,itemTooltipOption:t.tooltip})}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,o=this._elMap,a=t.getWidth(),r=t.getHeight(),s=0;s=0;s--){l=n[s],c=rt["e"](l.id,null),u=null!=c?o.get(c):null;if(u){p=u.parent,g=dm(p);var f=p===i?{width:a,height:r}:{width:g.__ecGraphicWidth,height:g.__ecGraphicHeight};je["i"](u,l,f,null,{hv:l.hv,boundingMode:l.bounding})}}},t.prototype._clear=function(){var e=this._elMap;e.each((function(t){bm(t,e)})),this._elMap=s["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}($t["a"]);function vm(e,t,n,i){var o=n.type;var a=s["hasOwn"](gm,o)?gm[o]:Ve["getShapeClass"](o);var r=new a(n);t.add(r),i.set(e,r),dm(r).__ecGraphicId=e}function bm(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){bm(e,t)})),t.removeKey(dm(e).__ecGraphicId),n.remove(e))}function xm(e){return e=s["extend"]({},e),s["each"](["id","parentId","$action","hv","bounding","textContent"].concat(je["a"]),(function(t){delete e[t]})),e}function _m(e,t){var n;return s["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function Sm(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function wm(e,t,n){var i=s["extend"]({},n),o=e[t],a=n.$action||"merge";"merge"===a?o?(s["merge"](o,i,!0),je["h"](o,i,{ignoreSize:!0}),je["c"](n,o)):e[t]=i:"replace"===a?e[t]=i:"remove"===a&&o&&(e[t]=null)}function Om(e,t){if(e&&(e.hv=t.hv=[_m(t,["left","right"]),_m(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}function Mm(e,t,n){var i=Object(xt["a"])(e).eventData;e.silent||e.ignore||i||(i=Object(xt["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function Am(e){e.registerComponentModel(ym),e.registerComponentView(mm),e.registerPreprocessor(fm)}var Im=n("f6d2"),Dm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.type="dataZoom.select",t}(Im["a"]),Cm=Dm,Tm=n("bb37"),jm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.type="dataZoom.select",t}(Tm["a"]),Lm=jm,Pm=n("ff6e");function Nm(e){e.registerComponentModel(Cm),e.registerComponentView(Lm),Object(Pm["a"])(e)}var km=function(){function e(){}return e}(),Em={};function Rm(e,t){Em[e]=t}function Vm(e){return Em[e]}var zm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;s["each"](this.option.feature,(function(e,n){var i=Vm(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),s["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Ut["a"]),Bm=zm,Gm=n("f2f9"),Fm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n,i){var o=this.group;if(o.removeAll(),e.get("show")){var a=+e.get("itemSize"),r=e.get("feature")||{},l=this._features||(this._features={}),c=[];s["each"](r,(function(e,t){c.push(t)})),new Mo["a"](this._featureNames||[],c).add(u).update(u).remove(s["curry"](u,null)).execute(),this._featureNames=c,Gm["a"](o,e,n),o.add(Gm["b"](o.getBoundingRect(),e)),o.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),r=i.textConfig||(i.textConfig={}),l=e.getTextContent(),c=l&&l.states.emphasis;if(c&&!s["isFunction"](c)&&t){var u=c.style||(c.style={}),p=v["e"](t,Re["a"].makeFont(u)),h=e.x+o.x,d=e.y+o.y+a,g=!1;d+p.height>n.getHeight()&&(r.position="top",g=!0);var f=g?-5-p.height:a+8;h+p.width/2>n.getWidth()?(r.position=["100%",f],u.align="right"):h-p.width/2<0&&(r.position=[0,f],u.align="left")}}))}function u(o,a){var s,u=c[o],h=c[a],d=r[u],g=new Ht["a"](d,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(d.title=i.newTitle),u&&!h){if(Hm(u))s={onclick:g.option.onclick,featureName:u};else{var f=Vm(u);if(!f)return;s=new f}l[u]=s}else if(s=l[h],!s)return;s.uid=Object(_n["c"])("toolbox-feature"),s.model=g,s.ecModel=t,s.api=n;var y=s instanceof km;u||!h?!g.get("show")||y&&s.unusable?y&&s.remove&&s.remove(t,n):(p(g,s,u),g.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?Fe["r"]:Fe["C"])(i[e])},s instanceof km&&s.render&&s.render(g,t,n,i)):y&&s.dispose&&s.dispose(t,n)}function p(i,r,l){var c,u,p=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),d=r instanceof km&&r.getIcons?r.getIcons():i.get("icon"),g=i.get("title")||{};"string"===typeof d?(c={},c[l]=d):c=d,"string"===typeof g?(u={},u[l]=g):u=g;var f=i.iconPaths={};s["each"](c,(function(l,c){var d=Ve["createIcon"](l,{},{x:-a/2,y:-a/2,width:a,height:a});d.setStyle(p.getItemStyle());var g=d.ensureState("emphasis");g.style=h.getItemStyle();var y=new Re["a"]({style:{text:u[c],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(y),Ve["setTooltipConfig"]({el:d,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),d.__title=u[c],d.on("mouseover",(function(){var t=h.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";y.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),y.ignore=!e.get("showTitle"),Object(Fe["r"])(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&Object(Fe["C"])(this),y.hide()})),("emphasis"===i.get(["iconStatus",c])?Fe["r"]:Fe["C"])(d),o.add(d),d.on("click",s["bind"](r.onclick,r,t,n,c)),f[c]=d}))}},t.prototype.updateView=function(e,t,n,i){s["each"](this._features,(function(e){e instanceof km&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){s["each"](this._features,(function(n){n instanceof km&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){s["each"](this._features,(function(n){n instanceof km&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}($t["a"]);function Hm(e){return 0===e.indexOf("my")}var Wm=Fm,Um=n("13d8"),Ym=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",r=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||!Um["a"].browser.newEdge&&(Um["a"].browser.ie||Um["a"].browser.edge))if(window.navigator.msSaveOrOpenBlob||o){var s=r.split(","),l=s[0].indexOf("base64")>-1,c=o?decodeURIComponent(s[1]):s[1];l&&(c=window.atob(c));var u=i+"."+a;if(window.navigator.msSaveOrOpenBlob){var p=c.length,h=new Uint8Array(p);while(p--)h[p]=c.charCodeAt(p);var d=new Blob([h]);window.navigator.msSaveOrOpenBlob(d,u)}else{var g=document.createElement("iframe");document.body.appendChild(g);var f=g.contentWindow,y=f.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),f.focus(),y.execCommand("SaveAs",!0,u),document.body.removeChild(g)}}else{var m=n.get("lang"),v='',b=window.open();b.document.write(v),b.document.title=i}else{var x=document.createElement("a");x.download=i+"."+a,x.target="_blank",x.href=r;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(_)}},t.getDefaultOption=function(e){var t={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:e.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocale(["toolbox","saveAsImage","lang"])};return t},t}(km);Ym.prototype.unusable=!Um["a"].canvasSupported;var Xm=Ym,Zm=n("587d"),qm="__ec_magicType_stack__",Km=[["line","bar"],["stack"]],Qm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return s["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={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"},title:e.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,o=i.get(["seriesIndex",n]);if(Jm[n]){var a,r={series:[]},l=function(e){var t=e.subType,o=e.id,a=Jm[n](t,o,e,i);a&&(s["defaults"](a,e.option),r.series.push(a));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var c=l.getAxesByScale("ordinal")[0];if(c){var u=c.dim,p=u+"Axis",h=e.getReferringComponents(p,rt["b"]).models[0],d=h.componentIndex;r[p]=r[p]||[];for(var g=0;g<=d;g++)r[p][d]=r[p][d]||{};r[p][d].boundaryGap="bar"===n}}};s["each"](Km,(function(e){s["indexOf"](e,n)>=0&&s["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},l);var c=n;"stack"===n&&(a=s["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(c="tiled")),t.dispatchAction({type:"changeMagicType",currentType:c,newOption:r,newTitle:a,featureName:"magicType"})}},t}(km),Jm={line:function(e,t,n,i){if("bar"===e)return s["merge"]({id:t,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(e,t,n,i){if("line"===e)return s["merge"]({id:t,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(e,t,n,i){var o=n.get("stack")===qm;if("line"===e||"bar"===e)return i.setIconStatus("stack",o?"normal":"emphasis"),s["merge"]({id:t,stack:o?"":qm},i.get(["option","stack"])||{},!0)}};Zm["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var $m=Qm,ev=n("fc74"),tv=new Array(60).join("-"),nv="\t";function iv(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(e);else{var a=o.getBaseAxis();if("category"===a.type){var r=a.dim+"_"+a.index;t[r]||(t[r]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),t[r].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function ov(e){var t=[];return s["each"](e,(function(e,n){var i=e.categoryAxis,o=e.valueAxis,a=o.dim,r=[" "].concat(s["map"](e.series,(function(e){return e.name}))),l=[i.model.getCategories()];s["each"](e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(a),(function(e){return e})))}));for(var c=[r.join(nv)],u=0;u=0)return!0}var cv=new RegExp("["+nv+"]+","g");function uv(e){for(var t=e.split(/\n+/g),n=sv(t.shift()).split(cv),i=[],o=s["map"](n,(function(e){return{name:e,data:[]}})),a=0;a=0;o--){var a=n[o];if(a[i])break}if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(r){var s=r.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function bv(e){var t=Sv(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return yv(n,(function(e,n){for(var o=t.length-1;o>=0;o--)if(e=t[o][n],e){i[n]=e;break}})),i}function xv(e){mv(e).snapshots=null}function _v(e){return Sv(e).length}function Sv(e){var t=mv(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var wv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.onclick=function(e,t){xv(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={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:e.getLocale(["toolbox","restore","title"])};return t},t}(km);Zm["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var Ov=wv,Mv=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Av=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var o=Dv(t,e);Object(s["each"])(Cv,(function(e,t){(!n||!n.include||Object(s["indexOf"])(n.include,t)>=0)&&e(o,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=Lv[e.brushType](0,n,t);e.__rangeOffset={offset:Nv[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(s["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(s["each"])(i.coordSyses,(function(i){var o=Lv[e.brushType](1,i,e.range,!0);n(e,o.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(s["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=Lv[e.brushType](0,n.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?Nv[e.brushType](i.values,o.offset,Ev(i.xyMinMax,o.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(s["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:jc(i),isTargetByCursor:Pc(i,e,n.coordSysModel),getLinearBrushOtherExtent:Lc(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(s["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=Dv(t,e),o=0;oe[1]&&e.reverse(),e}function Dv(e,t){return Object(rt["s"])(e,t,{includeMainTypes:Mv})}var Cv={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,o=e.gridModels,a=Object(s["createHashMap"])(),r={},l={};(n||i||o)&&(Object(s["each"])(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),r[t.id]=!0})),Object(s["each"])(i,(function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0})),Object(s["each"])(o,(function(e){a.set(e.id,e),r[e.id]=!0,l[e.id]=!0})),a.each((function(e){var o=e.coordinateSystem,a=[];Object(s["each"])(o.getCartesians(),(function(e,t){(Object(s["indexOf"])(n,e.getAxis("x").model)>=0||Object(s["indexOf"])(i,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:jv.grid,xAxisDeclared:r[e.id],yAxisDeclared:l[e.id]})})))},geo:function(e,t){Object(s["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:jv.geo})}))}},Tv=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],jv={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Ve["getTransform"](e)),t}},Lv={lineX:Object(s["curry"])(Pv,0),lineY:Object(s["curry"])(Pv,1),rect:function(e,t,n,i){var o=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),a=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),r=[Iv([o[0],a[0]]),Iv([o[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(e,t,n,i){var o=[[1/0,-1/0],[1/0,-1/0]],a=Object(s["map"])(n,(function(n){var a=e?t.pointToData(n,i):t.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],a[0]),o[1][0]=Math.min(o[1][0],a[1]),o[0][1]=Math.max(o[0][1],a[0]),o[1][1]=Math.max(o[1][1],a[1]),a}));return{values:a,xyMinMax:o}}};function Pv(e,t,n,i){var o=n.getAxis(["x","y"][e]),a=Iv(Object(s["map"])([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(i[e]),!0):o.toGlobalCoord(o.dataToCoord(i[e]))}))),r=[];return r[e]=a,r[1-e]=[NaN,NaN],{values:a,xyMinMax:r}}var Nv={lineX:Object(s["curry"])(kv,0),lineY:Object(s["curry"])(kv,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(s["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function kv(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function Ev(e,t){var n=Rv(e),i=Rv(t),o=[n[0]/i[0],n[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function Rv(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Vv=Av,zv=n("5813"),Bv=s["each"],Gv=Object(rt["p"])("toolbox-dataZoom_"),Fv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new Tc(n.getZr()),this._brushController.on("brush",s["bind"](this._onBrush,this)).mount()),Yv(e,t,this,i,n),Uv(e,t)},t.prototype.onclick=function(e,t,n){Hv[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Vv(Wv(this.model),i,{include:["grid"]});o.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(a("x",n,t[0]),a("y",n,t[1])):a({lineX:"x",lineY:"y"}[i],n,t)}})),vv(i,n),this._dispatchZoomAction(n)}function a(e,t,o){var a=t.getAxis(e),s=a.model,l=r(e,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(o=Object(gl["a"])(0,o.slice(),a.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:o[0],endValue:o[1]})}function r(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var o=n.getAxisModel(e,t.componentIndex);o&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];Bv(e,(function(e,n){t.push(s["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(km),Hv={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(bv(this.ecModel))}};function Wv(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function Uv(e,t){e.setIconStatus("back",_v(t)>1?"emphasis":"normal")}function Yv(e,t,n,i,o){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var r=new Vv(Wv(e),t,{include:["grid"]}),s=r.makePanelOpts(o,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(zv["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),o=[],a=Wv(i),r=Object(rt["s"])(e,a);return Bv(r.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),Bv(r.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),o}function s(e,t,n){var a=e.componentIndex,r={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Gv+t+a};r[n]=a,o.push(r)}}));var Xv=Fv;function Zv(e){e.registerComponentModel(Bm),e.registerComponentView(Wm),Rm("saveAsImage",Xm),Rm("magicType",$m),Rm("dataView",fv),Rm("dataZoom",Xv),Rm("restore",Ov),Object(i["a"])(Nm)}var qv=n("fff5"),Kv=["rect","polygon","keep","clear"];function Qv(e,t){var n=Object(rt["r"])(e?e.brush:[]);if(n.length){var i=[];s["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var o=e&&e.toolbox;s["isArray"](o)&&(o=o[0]),o||(o={feature:{}},e.toolbox=[o]);var a=o.feature||(o.feature={}),r=a.brush||(a.brush={}),l=r.type||(r.type=[]);l.push.apply(l,i),Jv(l),t&&!l.length&&l.push.apply(l,Kv)}}function Jv(e){var t={};s["each"](e,(function(e){t[e]=1})),e.length=0,s["each"](t,(function(t,n){e.push(n)}))}var $v=n("2b15"),eb=s["each"];function tb(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function nb(e,t,n){var i={};return eb(t,(function(t){var a=i[t]=o();eb(e[t],(function(e,i){if(ya.isValidType(i)){var o={type:i,visual:e};n&&n(o,t),a[i]=new ya(o),"opacity"===i&&(o=s["clone"](o),o.type="colorAlpha",a.__hidden.__alphaForOpacity=new ya(o))}}))})),i;function o(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function ib(e,t,n){var i;s["each"](n,(function(e){t.hasOwnProperty(e)&&tb(t[e])&&(i=!0)})),i&&s["each"](n,(function(n){t.hasOwnProperty(n)&&tb(t[n])?e[n]=s["clone"](t[n]):delete e[n]}))}function ob(e,t,n,i,o,a){var r,l={};function c(e){return Object($v["a"])(n,r,e)}function u(e,t){Object($v["c"])(n,r,e,t)}function p(e,s){r=null==a?e:s;var p=n.getRawDataItem(r);if(!p||!1!==p.visualMap)for(var h=i.call(o,e),d=t[h],g=l[h],f=0,y=g.length;ft[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&_b(t)}};function _b(e){return new Wn["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Sb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Tc(t.getZr())).on("brush",s["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){gb(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:s["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:s["clone"](n),$from:t})},t.type="brush",t}($t["a"]),wb=Sb,Ob="#ddd",Mb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(m["b"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&ib(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:Ob},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=s["map"](e,(function(e){return Ab(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=Ab(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Ut["a"]);function Ab(e,t){return s["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ht["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Ib=Mb,Db=["rect","polygon","lineX","lineY","keep","clear"],Cb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m["b"])(t,e),t.prototype.render=function(e,t,n){var i,o,a;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,o=e.brushOption.brushMode||"single",a=a||!!e.areas.length})),this._brushType=i,this._brushMode=o,s["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return s["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,o=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},t.getDefaultOption=function(e){var t={show:!0,type:Db.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocale(["toolbox","brush","title"])};return t},t}(km),Tb=Cb;function jb(e){e.registerComponentView(wb),e.registerComponentModel(Ib),e.registerPreprocessor(Qv),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,fb),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),Rm("brush",Tb)}var Lb=n("3ca8"),Pb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(m["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,o=this._names=[];"category"===i?(e=[],Object(s["each"])(n,(function(t,n){var i,a=Object(rt["e"])(Object(rt["h"])(t),"");Object(s["isObject"])(t)?(i=Object(s["clone"])(t),i.value=n):i=n,e.push(i),o.push(a)}))):e=n;var a={category:"ordinal",time:"time",value:"number"}[i]||"number",r=this._data=new ot["a"]([{name:"value",type:a}],this);r.initData(e,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Ut["a"]),Nb=Pb,kb=n("fa74"),Eb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.type="timeline.slider",t.defaultOption=Object(_n["d"])(Nb.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(Nb);Object(s["mixin"])(Eb,kb["a"].prototype);var Rb=Eb,Vb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.type="timeline",t}($t["a"]),zb=Vb,Bb=function(e){function t(t,n,i,o){var a=e.call(this,t,n,i)||this;return a.type=o||"value",a}return Object(m["b"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(on["a"]),Gb=Bb,Fb=n("79c4"),Hb=n("605b"),Wb=Math.PI,Ub=Object(rt["o"])(),Yb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=r.scale.getLabel({value:e});return Object(zt["c"])("nameValue",{noName:!0,value:t})},Object(s["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,o,r,e)}),this),this._renderAxisLabel(i,a,r,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),o=e.get("orient"),a=Zb(e,t);n=null==i||"auto"===i?"horizontal"===o?a.y+a.height/2=0||"+"===n?"left":"right"},p={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:Wb/2},d="vertical"===o?a.height:a.width,g=e.getModel("controlStyle"),f=g.get("show",!0),y=f?g.get("itemSize"):0,m=f?g.get("itemGap"):0,v=y+m,b=e.get(["label","rotate"])||0;b=b*Wb/180;var x=g.get("position",!0),_=f&&g.get("showPlayBtn",!0),S=f&&g.get("showPrevBtn",!0),w=f&&g.get("showNextBtn",!0),O=0,M=d;"left"===x||"bottom"===x?(_&&(r=[0,0],O+=v),S&&(l=[O,0],O+=v),w&&(c=[M-y,0],M-=v)):(_&&(r=[M-y,0],M-=v),S&&(l=[0,0],O+=v),w&&(c=[M-y,0],M-=v));var A=[O,M];return e.get("inverse")&&A.reverse(),{viewRect:a,mainLength:d,orient:o,rotation:h[o],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[o],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||p[o],playPosition:r,prevBtnPosition:l,nextBtnPosition:c,axisExtent:A,controlSize:y,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var a=Yn["create"](),r=o.x,l=o.y+o.height;Yn["translate"](a,a,[-r,-l]),Yn["rotate"](a,a,-Wb/2),Yn["translate"](a,a,[r,l]),o=o.clone(),o.applyTransform(a)}var c=m(o),u=m(n.getBoundingRect()),p=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=c[0][0];var g=e.labelPosOpt;if(null==g||Object(s["isString"])(g)){var f="+"===g?0:1;v(h,u,c,1,f),v(d,p,c,1,1-f)}else{f=g>=0?0:1;v(h,u,c,1,f),d[1]=h[1]+g}function y(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,o){e[i]+=n[i][o]-t[i][o]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),o=Xb(t,i);o.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var a=n.getDataExtent("value");o.setExtent(a[0],a[1]),o.niceTicks();var r=new Gb("value",o,e.axisExtent,i);return r.model=t,r},t.prototype._createGroup=function(e){var t=this[e]=new Ge["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var a=new Mr["a"]({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Object(s["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(a);var r=this._progressLine=new Mr["a"]({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Object(s["defaults"])({lineCap:"round",lineWidth:a.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(r)}},t.prototype._renderAxisTick=function(e,t,n,i){var o=this,a=i.getData(),r=n.scale.getTicks();this._tickSymbols=[],Object(s["each"])(r,(function(e){var r=n.dataToCoord(e.value),l=a.getItemModel(e.value),c=l.getModel("itemStyle"),u=l.getModel(["emphasis","itemStyle"]),p=l.getModel(["progress","itemStyle"]),h={x:r,y:0,onclick:Object(s["bind"])(o._changeTimeline,o,e.value)},d=Kb(l,c,t,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=p.getItemStyle(),Object(Fe["o"])(d);var g=Object(xt["a"])(d);l.get("tooltip")?(g.dataIndex=e.value,g.dataModel=i):g.dataIndex=g.dataModel=null,o._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var o=this,a=n.getLabelModel();if(a.get("show")){var r=i.getData(),l=n.getViewLabels();this._tickLabels=[],Object(s["each"])(l,(function(i){var a=i.tickValue,l=r.getItemModel(a),c=l.getModel("label"),u=l.getModel(["emphasis","label"]),p=l.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new Re["a"]({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(s["bind"])(o._changeTimeline,o,a),silent:!1,style:Object(Je["c"])(c,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Object(Je["c"])(u),d.ensureState("progress").style=Object(Je["c"])(p),t.add(d),Object(Fe["o"])(d),Ub(d).dataIndex=a,o._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var o=e.controlSize,a=e.rotation,r=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),u=i.get("inverse",!0);function p(e,n,c,u){if(e){var p=Object(v["h"])(Object(s["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),o),o),h=[0,-p/2,p,p],d=qb(i,n+"Icon",h,{x:e[0],y:e[1],originX:o/2,originY:0,rotation:u?-a:0,rectHover:!0,style:r,onclick:c});d.ensureState("emphasis").style=l,t.add(d),Object(Fe["o"])(d)}}p(e.nextBtnPosition,"next",Object(s["bind"])(this._changeTimeline,this,u?"-":"+")),p(e.prevBtnPosition,"prev",Object(s["bind"])(this._changeTimeline,this,u?"+":"-")),p(e.playPosition,c?"stop":"play",Object(s["bind"])(this._handlePlayClick,this,!c),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var o=i.getData(),a=i.getCurrentIndex(),r=o.getItemModel(a).getModel("checkpointStyle"),l=this,c={onCreate:function(e){e.draggable=!0,e.drift=Object(s["bind"])(l._handlePointerDrag,l),e.ondragend=Object(s["bind"])(l._handlePointerDragend,l),Qb(e,l._progressLine,a,n,i,!0)},onUpdate:function(e){Qb(e,l._progressLine,a,n,i)}};this._currentPointer=Kb(r,r,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,o=Te["c"](i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(r[a]=+r[a].toFixed(h)),[r,p]}var fx={min:Object(s["curry"])(gx,"min"),max:Object(s["curry"])(gx,"max"),average:Object(s["curry"])(gx,"average"),median:Object(s["curry"])(gx,"median")};function yx(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!dx(t)&&!Object(s["isArray"])(t.coord)&&i){var o=i.dimensions,a=mx(t,n,i,e);if(t=Object(s["clone"])(t),t.type&&fx[t.type]&&a.baseAxis&&a.valueAxis){var r=Object(s["indexOf"])(o,a.baseAxis.dim),l=Object(s["indexOf"])(o,a.valueAxis.dim),c=fx[t.type](n,a.baseDataDim,a.valueDataDim,r,l);t.coord=c[0],t.value=c[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],p=0;p<2;p++)fx[u[p]]&&(u[p]=_x(n,n.mapDimension(o[p]),u[p]));t.coord=u}}return t}function mx(e,t,n,i){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(vx(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function vx(e,t){var n=e.getData(),i=n.dimensions;t=n.getDimension(t);for(var o=0;o=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(y,20))),g.coord[h]=f.coord[h]=c,o=[g,f,{type:r,valueIndex:i.valueIndex,value:c}]}else o=[]}var m=[yx(e,o[0]),yx(e,o[1]),Object(s["extend"])({},o[2])];return m[2].type=m[2].type||null,Object(s["merge"])(m[2],m[0]),Object(s["merge"])(m[2],m[1]),m};function Nx(e){return!isNaN(e)&&!isFinite(e)}function kx(e,t,n,i){var o=1-e,a=i.dimensions[e];return Nx(t[o])&&Nx(n[o])&&t[e]===n[e]&&i.getAxis(a).containData(t[e])}function Ex(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(kx(1,n,i,e)||kx(0,n,i,e)))return!0}return bx(e,t[0])&&bx(e,t[1])}function Rx(e,t,n,i,o){var a,r=i.coordinateSystem,s=e.getItemModel(t),l=Te["p"](s.get("x"),o.getWidth()),c=Te["p"](s.get("y"),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)a=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=r.dimensions,p=e.get(u[0],t),h=e.get(u[1],t);a=r.dataToPoint([p,h])}if(Object(sh["a"])(r,"cartesian2d")){var d=r.getAxis("x"),g=r.getAxis("y");u=r.dimensions;Nx(e.get(u[0],t))?a[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):Nx(e.get(u[1],t))&&(a[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];e.setItemLayout(t,a)}var Vx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=cx.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),o=Lx(t).from,a=Lx(t).to;o.each((function(t){Rx(o,t,!0,e,n),Rx(a,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[o.getItemLayout(e),a.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,a=e.id,r=e.getData(),l=this.markerGroupMap,c=l.get(a)||l.set(a,new Wr);this.group.add(c.group);var u=zx(o,e,t),p=u.from,h=u.to,d=u.line;Lx(t).from=p,Lx(t).to=h,t.setData(d);var g=t.get("symbol"),f=t.get("symbolSize"),y=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,o){var a=t.getItemModel(n);Rx(t,n,o,e,i);var l=a.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=Object($v["b"])(r,"color")),t.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(s["retrieve2"])(a.get("symbolOffset"),m[o?0:1]),symbolRotate:Object(s["retrieve2"])(a.get("symbolRotate",!0),y[o?0:1]),symbolSize:Object(s["retrieve2"])(a.get("symbolSize"),f[o?0:1]),symbol:Object(s["retrieve2"])(a.get("symbol",!0),g[o?0:1]),style:l})}Object(s["isArray"])(g)||(g=[g,g]),Object(s["isArray"])(f)||(f=[f,f]),Object(s["isArray"])(y)||(y=[y,y]),Object(s["isArray"])(m)||(m=[m,m]),u.from.each((function(e){v(p,e,!0),v(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[p.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=p.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:p.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(e,"symbolOffset"),fromSymbolRotate:p.getItemVisual(e,"symbolRotate"),fromSymbolSize:p.getItemVisual(e,"symbolSize"),fromSymbol:p.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),c.updateData(d),u.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){Object(xt["a"])(e).dataModel=t}))})),this.markKeep(c),c.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Ox);function zx(e,t,n){var i;i=e?Object(s["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(s["defaults"])({name:e},n)})):[{name:"value",type:"float"}];var o=new ot["a"](i,n),a=new ot["a"](i,n),r=new ot["a"]([],n),l=Object(s["map"])(n.get("data"),Object(s["curry"])(Px,t,e,n));e&&(l=Object(s["filter"])(l,Object(s["curry"])(Ex,e)));var c=e?xx:function(e){return e.value};return o.initData(Object(s["map"])(l,(function(e){return e[0]})),null,c),a.initData(Object(s["map"])(l,(function(e){return e[1]})),null,c),r.initData(Object(s["map"])(l,(function(e){return e[2]}))),r.hasItemOption=!0,{from:o,to:a,line:r}}var Bx=Vx;function Gx(e){e.registerComponentModel(jx),e.registerComponentView(Bx),e.registerPreprocessor((function(e){ax(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var Fx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(cx),Hx=Fx,Wx=Object(rt["o"])(),Ux=function(e,t,n,i){var o=yx(e,i[0]),a=yx(e,i[1]),r=o.coord,l=a.coord;r[0]=Object(s["retrieve"])(r[0],-1/0),r[1]=Object(s["retrieve"])(r[1],-1/0),l[0]=Object(s["retrieve"])(l[0],1/0),l[1]=Object(s["retrieve"])(l[1],1/0);var c=Object(s["mergeAll"])([{},o,a]);return c.coord=[o.coord,a.coord],c.x0=o.x,c.y0=o.y,c.x1=a.x,c.y1=a.y,c};function Yx(e){return!isNaN(e)&&!isFinite(e)}function Xx(e,t,n,i){var o=1-e;return Yx(t[o])&&Yx(n[o])}function Zx(e,t){var n=t.coord[0],i=t.coord[1];return!!(Object(sh["a"])(e,"cartesian2d")&&n&&i&&(Xx(1,n,i,e)||Xx(0,n,i,e)))||(bx(e,{coord:n,x:t.x0,y:t.y0})||bx(e,{coord:i,x:t.x1,y:t.y1}))}function qx(e,t,n,i,o){var a,r=i.coordinateSystem,s=e.getItemModel(t),l=Te["p"](s.get(n[0]),o.getWidth()),c=Te["p"](s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)a=i.getMarkerPosition(e.getValues(n,t));else{var u=e.get(n[0],t),p=e.get(n[1],t),h=[u,p];r.clampData&&r.clampData(h,h),a=r.dataToPoint(h,!0)}if(Object(sh["a"])(r,"cartesian2d")){var d=r.getAxis("x"),g=r.getAxis("y");u=e.get(n[0],t),p=e.get(n[1],t);Yx(u)?a[0]=d.toGlobalCoord(d.getExtent()["x0"===n[0]?0:1]):Yx(p)&&(a[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];return a}var Kx=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Qx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=cx.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var o=Object(s["map"])(Kx,(function(o){return qx(i,t,o,e,n)}));i.setItemLayout(t,o);var a=i.getItemGraphicEl(t);a.setShape("points",o)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,a=e.id,r=e.getData(),l=this.markerGroupMap,c=l.get(a)||l.set(a,{group:new Ge["a"]});this.group.add(c.group),this.markKeep(c);var u=Jx(o,e,t);t.setData(u),u.each((function(t){var n=Object(s["map"])(Kx,(function(n){return qx(u,t,n,e,i)})),a=o.getAxis("x").scale,l=o.getAxis("y").scale,c=a.getExtent(),p=l.getExtent(),h=[a.parse(u.get("x0",t)),a.parse(u.get("x1",t))],d=[l.parse(u.get("y0",t)),l.parse(u.get("y1",t))];Te["c"](h),Te["c"](d);var g=!(c[0]>h[1]||c[1]d[1]||p[1]"],s["isArray"](e)&&(e=e.slice(),i=!0);var c=t?e:i?[u(e[0]),u(e[1])]:u(e);return s["isString"](l)?l.replace("{value}",i?c[0]:c).replace("{value2}",i?c[1]:c):s["isFunction"](l)?i?l(e[0],e[1]):l(e):i?e[0]===r[0]?n[0]+" "+c[1]:e[1]===r[1]?n[1]+" "+c[0]:c[0]+" - "+c[1]:c;function u(e){return e===r[0]?"min":e===r[1]?"max":(+e).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,t=h_([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimension=function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var i=e.dimensions,o=i.length-1;o>=0;o--){var a=i[o],r=e.getDimensionInfo(a);if(!r.isCalculationCoord)return a}}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),o=t.controller||(t.controller={});s["merge"](i,n),s["merge"](o,n);var a=this.isCategory();function r(n){u_(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function l(e,t,n){var i=e[t],o=e[n];i&&!o&&(o=e[n]={},p_(i,(function(e,t){if(ya.isValidType(t)){var n=s_.get(t,"inactive",a);null!=n&&(o[t]=n,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol(),r=o||"roundRect";p_(this.stateList,(function(o){var l=this.itemSize,c=e[o];c||(c=e[o]={color:a?i:[i]}),null==c.symbol&&(c.symbol=t&&s["clone"](t)||(a?r:[r])),null==c.symbolSize&&(c.symbolSize=n&&s["clone"](n)||(a?l[0]:[l[0],l[0]])),c.symbol=l_(c.symbol,(function(e){return"none"===e?r:e}));var u=c.symbolSize;if(null!=u){var p=-1/0;c_(u,(function(e){e>p&&(p=e)})),c.symbolSize=l_(u,(function(e){return d_(e,[0,p],[0,l[0]],!0)}))}}),this)}r.call(this,i),r.call(this,o),l.call(this,i,"inRange","outOfRange"),c.call(this,o)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Ut["a"]),f_=g_,y_=[20,140],m_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=y_[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=y_[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):s["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),s["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Te["c"]((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimension(o),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=v_(this,"outOfRange",this.getExtent()),n=v_(this,"inRange",this.option.range.slice()),i=[];function o(t,n){i.push({value:t,color:e(t,n)})}for(var a=0,r=0,s=n.length,l=t.length;re[1])break;i.push({color:this.getControllerVisual(r,"color",t),offset:a/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Ge["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,a=n.handleLabels,r=i.itemSize,s=i.getExtent();A_([0,1],(function(l){var c=o[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=M_(e[l],[0,r[1]],s,!0),p=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=p/r[0],c.x=r[0]-p/2;var h=Ve["applyTransform"](n.handleLabelPoints[l],Ve["getTransform"](c,this.group));a[l].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",u),h=this.getControllerVisual(e,"symbolSize"),d=M_(e,a,s,!0),g=r[0]-h/2,f={x:c.x,y:c.y};c.y=d,c.x=g;var y=Ve["applyTransform"](l.indicatorLabelPoint,Ve["getTransform"](c,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;m.setStyle({text:(n||"")+o.formatValueText(t),verticalAlign:x?v:"middle",align:x?"center":v});var _={x:g,y:d,style:{fill:p}},S={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(_,w),m.animateTo(S,w)}else c.attr(_),m.attr(S);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var M=0;Mo[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",r):c[1]===1/0?this._showIndicator(l,c[0],"> ",r):this._showIndicator(l,l,"≈ ",r));var u=this._hoverLinkDataIndices,p=[];(t||N_(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var h=rt["d"](u,p);this._dispatchHighDown("downplay",O_(h[0],n)),this._dispatchHighDown("highlight",O_(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Object(xt["a"])(t).dataIndex){var i=Object(xt["a"])(t),o=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(o)){var a=o.getData(i.dataType),r=a.get(n.getDataDimension(a),i.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(R_,V_),Object(s["each"])(z_,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(F_))}function Y_(e){e.registerComponentModel(b_),e.registerComponentView(E_),U_(e)}var X_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(m["b"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Z_[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var o=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=s["clone"](o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=s["map"](this._pieceList,(function(e){return e=s["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=ya.listVisualTypes(),o=this.isCategory();function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}s["each"](t.pieces,(function(e){s["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),s["each"](n,(function(e,n){var i=!1;s["each"](this.stateList,(function(e){i=i||a(t,e,n)||a(t.target,e,n)}),this),!i&&s["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=s_.get(n,"inRange"===e?"active":"inactive",o)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,s["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var a=!1;s["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(a?o[n]=!1:a=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=s["clone"](e)},t.prototype.getValueState=function(e){var t=ya.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var o=[],a=i.getData();a.each(this.getDataDimension(a),(function(t,i){var a=ya.findPieceIndex(t,n);a===e&&o.push(i)}),this),t.push({seriesId:i.id,dataIndex:o})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],a!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var r=-1/0;return s["each"](o,(function(e){var t=e.interval;t&&(t[0]>r&&l([r,t[0]],"outOfRange"),l(t.slice()),r=t[1])}),this),{stops:t,outerColors:n}}function l(o,a){var r=i.getRepresentValue({interval:o});a||(a=i.getValueState(r));var s=e(r,a);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:t.push({value:o[0],color:s},{value:o[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object(_n["d"])(f_.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(f_),Z_={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;var a=(i[1]-i[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var r=0,l=i[0];r","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function q_(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var K_=X_,Q_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(m["b"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,o=i.getFont(),a=i.getTextColor(),r=this._getItemAlign(),l=t.itemSize,c=this._getViewData(),u=c.endsText,p=s["retrieve"](t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],l,p,r),s["each"](c.viewPieceList,(function(i){var c=i.piece,u=new Ge["a"];u.onclick=s["bind"](this._onItemClick,this,c),this._enableHoverLink(u,i.indexInModelPieceList);var h=t.getRepresentValue(c);if(this._createItemSymbol(u,h,[0,0,l[0],l[1]]),p){var d=this.visualMapModel.getValueState(h);u.add(new Re["a"]({style:{x:"right"===r?-n:l[0]+n,y:l[1]/2,text:c.text,verticalAlign:"middle",align:r,font:o,fill:a,opacity:"outOfRange"===d?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],l,p,r),je["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:O_(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return w_(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,o){if(t){var a=new Ge["a"],r=this.visualMapModel.textStyleModel;a.add(new Re["a"]({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:t,font:r.getFont(),fill:r.getTextColor()}})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=s["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return("horizontal"===i?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(vt["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=s["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[o]=!0,s["each"](i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},t.type="visualMap.piecewise",t}(__),J_=Q_;function $_(e){e.registerComponentModel(K_),e.registerComponentView(J_),U_(e)}function eS(e){Object(i["a"])(Y_),Object(i["a"])($_)}var tS=n("e0f2"),nS={label:{enabled:!0},decal:{show:!1}},iS=Object(rt["o"])(),oS={};function aS(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=s["clone"](nS);s["merge"](i.label,e.getLocaleModel().get("aria"),!1),s["merge"](n.option,i,!1),o(),a()}function o(){var t=n.getModel("decal"),i=t.get("show");if(i){var o=s["createHashMap"]();e.eachSeries((function(e){if(e.useColorPaletteOnData){var t=o.get(e.type);t||(t={},o.set(e.type,t)),iS(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if("function"!==typeof t.enableAriaDecal){var n=t.getData();if(t.useColorPaletteOnData){var i=t.getRawData(),o={},a=iS(t).scope;n.each((function(e){var t=n.getRawIndex(e);o[t]=e}));var r=i.count();i.each((function(e){var s=o[e],l=i.getName(e)||e+"",c=Object(vo["b"])(t.ecModel,l,a,r),p=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",u(p,c))}))}else{var l=Object(vo["b"])(t.ecModel,t.name,oS,e.getSeriesCount()),c=n.getVisual("decal");n.setVisual("decal",u(c,l))}}else t.enableAriaDecal();function u(e,t){var n=e?s["extend"](s["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function a(){var i=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=s["defaults"](o.option,i),o.get("enabled")){var a=t.getZr().dom;if(o.get("description"))a.setAttribute("aria-label",o.get("description"));else{var u,p=e.getSeriesCount(),h=o.get(["data","maxCount"])||10,d=o.get(["series","maxCount"])||10,g=Math.min(p,d);if(!(p<1)){var f=l();if(f){var y=o.get(["general","withTitle"]);u=r(y,{title:f})}else u=o.get(["general","withoutTitle"]);var m=[],v=p>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);u+=r(v,{seriesCount:p}),e.eachSeries((function(e,t){if(t1?o.get(["series","multiple",a]):o.get(["series","single",a]),n=r(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:c(e.subType)});var s=e.getData();if(s.count()>h){var l=o.get(["data","partialData"]);n+=r(l,{displayCnt:h})}else n+=o.get(["data","allData"]);for(var u=[],d=0;d":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},uS=function(){function e(e){var t=this._condVal=Object(s["isString"])(e)?new RegExp(e):Object(s["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(Hu["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return"string"===t?this._condVal.test(e):"number"===t&&this._condVal.test(e+"")},e}(),pS=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),hS=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t