(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-350242a9"],{"0ca1":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("basic-container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[e("avue-data-tabs",{attrs:{option:t.topOption}})],1)],1)],1),e("el-row",[e("el-col",{staticStyle:{height:"560px"},attrs:{span:16}},[e("basic-container",[e("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{name:"1",title:"欢迎使用PLT-WEB平台"}},[e("div",[t._v("\n 1、北京宏博远达科技有限公司(以下简称“宏博远达”)长期专注于制造业信息化建设,为客户提供企业信息化整体解决方案及相关软件研发、咨询及实施服务。宏博远达客户群体涵盖航空、航天、船舶、兵器、汽车、通用机械、电子等制造行业,通过与客户深度合作,承担了多项国家级软件研发与技术服务项目,拥有多项具有自主知识产权的软件产品。\n ")]),e("div",[t._v("\n 2、为了给客户提供更多的技术创新能力及相应的企业级管理支撑平台,宏博远达研发了具有自主知识产权的企业级信息化整体解决方案,同时针对客户的特定需求,提供了高度可定制的专业应用。为了进一步提升技术服务能力,宏博远达投入专门力量在前沿技术方面进行探索,在企业私有云计算和大数据等领域不断取得突破。随着新一代业务与管理技术平台的推出,更增强了公司为客户提供高质量、全方位、深层次服务的技术能力。\n ")]),e("div",[t._v("\n 3、宏博远达一直秉承“用智慧为客户创造价值”的宗旨,愿以“诚信负责”的态度和专业化的服务,在企业信息化发展的道路上,与客户一起成长,共同见证成功!\n ")])]),e("el-collapse-item",{attrs:{name:"2",title:"服务计划制定"}},[e("div",[t._v("\n 1、根据客户实际需求,宏博远达将与客户共同制定年度服务计划,商定具体的服务对象、服务内容、定期维护的服务时间、技术交流的主题、具体的维护人员安排等服务细节。\n ")]),e("div",[t._v("\n 2、客户可通过电话、电子邮件、函件等方式取得系统技术支持。对于系统以外的问题,我们会尽力协助客户找到解决途径。\n ")]),e("div",[t._v("\n 3、对于远程无法解决的故障(问题),宏博远达工程师将在合同规定的时间内到达客户现场进行故障诊断及处理,做好相应的记录。必要时需要重新收集系统信息,并归档。对于非系统的原因而引起的故障(问题),宏博远达将关心和协助客户解决故障(问题)。\n ")]),e("div",[t._v("\n 4、在其他情形下,宏博远达也可提供必要的现场服务。如为客户获得的合法操作系统进行升级服务、为客户安装必要的软件等的服务、配合客户做主机系统方面的测试、为客户的应用调整提供系统方面的支持等等。\n ")]),e("div",[t._v("\n 5、宏博远达还将为客户提供定期的系统性能评估与优化服务。通过对系统运行数据的深入分析,我们将识别潜在的性能瓶颈,提出针对性的优化建议,并协助客户实施优化措施。这包括但不限于硬件资源的合理配置、软件参数的调优、数据库性能的提升等,旨在确保系统能够持续稳定、高效地运行,满足客户的业务发展需求。同时,我们也将根据系统评估结果,为客户提供未来的系统升级和扩展规划建议,帮助客户提前布局,应对未来的业务增长和技术变革。\n ")])])],1)],1)],1),e("el-col",{staticStyle:{height:"560px"},attrs:{span:8}},[e("el-row",[e("basic-container",[e("div",{staticClass:"el-font-size"},[e("span",[t._v("产品名称")]),e("el-divider",{attrs:{direction:"vertical"}}),e("span",[e("el-tag",[t._v("PLT-WEB平台")])],1),e("el-divider",{attrs:{"content-position":"right"}},[e("i",{staticClass:"el-icon-star-off"})]),e("span",[t._v("当前用户")]),e("el-divider",{attrs:{direction:"vertical"}}),e("span",[e("el-tag",{attrs:{type:"success"}},[t._v(t._s(t.userInfo.userName))])],1),e("el-divider",{attrs:{"content-position":"right"}},[e("i",{staticClass:"el-icon-star-off"})]),e("span",[t._v("说明文档")]),e("el-divider",{attrs:{direction:"vertical"}}),e("span",[e("el-link",{attrs:{href:"https://bladex.vip",target:"_blank",type:"primary"}},[t._v("https://bladex.vip\n ")])],1),e("el-divider",{attrs:{"content-position":"right"}},[e("i",{staticClass:"el-icon-star-off"})])],1)]),e("basic-container",[e("div",{staticStyle:{height:"309px"}},[e("v-chart",{attrs:{id:"chart","auto-resize":!0,options:t.chartOptions}})],1)])],1)],1)],1)],1)},o=[],a=(n("8e6e"),n("456d"),n("ac6a"),n("5df3"),n("ade3")),r=n("5880"),s=n("d47d"),l=n("22b4"),c=n("f95e"),u=n("7a29"),h=n("cbe5"),d=n("0da8"),p=n("e86a"),g=n("dd4f"),f=Math.sin,y=Math.cos,v=Math.PI,m=2*Math.PI,b=180/v,x=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,o,a){this._add("C",t,e,n,i,o,a)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,o,a){this.ellipse(t,e,n,n,0,i,o,a)},t.prototype.ellipse=function(t,e,n,i,o,a,r,s){var l=r-a,c=!s,h=Math.abs(l),d=Object(u["j"])(h-m)||(c?l>=m:-l>=m),p=l>0?l%m:l%m+m,g=!1;g=!!d||!Object(u["j"])(h)&&p>=v===!!c;var x=t+n*y(a),_=e+i*f(a);this._start&&this._add("M",x,_);var O=Math.round(o*b);if(d){var w=1/this._p,S=(c?1:-1)*(m-w);this._add("A",n,i,O,1,+c,t+n*y(a+S),e+i*f(a+S)),w>.01&&this._add("A",n,i,O,0,+c,x,_)}else{var M=t+n*y(r),I=e+i*f(r);this._add("A",n,i,O,+g,+c,M,I)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,o,a,r,s,l){for(var c=[],u=this._p,h=1;h"}function B(t){return""}function G(t,e){e=e||{};var n=e.newline?"\n":"";function i(t){var e=t.children,o=t.tag,a=t.attrs,r=t.text;return V(o,a)+("style"!==o?Object(T["a"])(r):r||"")+(e?""+n+Object(w["H"])(e,(function(t){return i(t)})).join(n)+n:"")+B(o)}return i(t)}function H(t,e,n){n=n||{};var i=n.newline?"\n":"",o=" {"+i,a=i+"}",r=Object(w["H"])(Object(w["F"])(t),(function(e){return e+o+Object(w["H"])(Object(w["F"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),s=Object(w["H"])(Object(w["F"])(e),(function(t){return"@keyframes "+t+o+Object(w["H"])(Object(w["F"])(e[t]),(function(n){return n+o+Object(w["H"])(Object(w["F"])(e[t][n]),(function(i){var o=e[t][n][i];return"d"===i&&(o='path("'+o+'")'),i+":"+o+";"})).join(i)+a})).join(i)+a})).join(i);return r||s?[""].join(i):""}function F(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function W(t,e,n,i){return z("svg","root",{width:t,height:e,xmlns:k,"xmlns:xlink":L,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Y=n("5e76"),X=n("8582"),Z=n("20c8"),U=n("d4c6"),q=n("b362"),K=0;function J(){return K++}var $={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Q="transform-origin";function tt(t,e,n){var i=Object(w["m"])({},t.shape);Object(w["m"])(i,e),t.buildPath(n,i);var o=new _;return o.reset(Object(u["f"])(t)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function et(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[Q]=n+"px "+i+"px")}var nt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function it(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function ot(t,e,n){var i,o,a=t.shape.paths,r={};if(Object(w["k"])(a,(function(t){var e=F(n.zrId);e.animation=!0,rt(t,{},e,!0);var a=e.cssAnims,s=e.cssNodes,l=Object(w["F"])(a),c=l.length;if(c){o=l[c-1];var u=a[o];for(var h in u){var d=u[h];r[h]=r[h]||{d:""},r[h].d+=d.d||""}for(var p in s){var g=s[p].animation;g.indexOf(o)>=0&&(i=g)}}})),i){e.d=!1;var s=it(r,n);return i.replace(o,s)}}function at(t){return Object(w["C"])(t)?$[t]?"cubic-bezier("+$[t]+")":Object(q["a"])(t)?t:"":""}function rt(t,e,n,i){var o=t.animators,a=o.length,r=[];if(t instanceof U["a"]){var s=ot(t,e,n);if(s)r.push(s);else if(!a)return}else if(!a)return;for(var l={},c=0;c0})).length){var T=it(h,n);return T+" "+o[0]+" both"}}for(var v in l){s=y(l[v]);s&&r.push(s)}if(r.length){var m=n.zrId+"-cls-"+J();n.cssNodes["."+m]={animation:r.join(",")},e["class"]=m}}var st=n("76a5"),lt=n("726e"),ct=n("41ef");function ut(t,e,n){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};ht(i,e,n,!0)}else{var o=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=o.fill;if(!a){var r=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||r;l&&(a=Object(ct["d"])(l))}var c=o.lineWidth;if(c){var u=!o.strokeNoScale&&t.transform?t.transform[0]:1;c/=u}i={cursor:"pointer"};a&&(i.fill=a),o.stroke&&(i.stroke=o.stroke),c&&(i["stroke-width"]=c),ht(i,e,n,!0)}}function ht(t,e,n,i){var o=JSON.stringify(t),a=n.cssStyleCache[o];a||(a=n.zrId+"-cls-"+J(),n.cssStyleCache[o]=a,n.cssNodes["."+a+(i?":hover":"")]=t),e["class"]=e["class"]?e["class"]+" "+a:a}var dt=n("697e"),pt=Math.round;function gt(t){return t&&Object(w["C"])(t.src)}function ft(t){return t&&Object(w["w"])(t.toDataURL)}function yt(t,e,n,i){D((function(o,a){var r="fill"===o||"stroke"===o;r&&Object(u["k"])(a)?Tt(e,t,o,i):r&&Object(u["n"])(a)?kt(n,t,o,i):t[o]=r&&"none"===a?"transparent":a}),e,n,!1),Dt(n,t,i)}function vt(t,e){var n=Object(dt["a"])(e);n&&(n.each((function(e,n){null!=e&&(t[(E+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[E+"silent"]="true"))}function mt(t){return Object(u["j"])(t[0]-1)&&Object(u["j"])(t[1])&&Object(u["j"])(t[2])&&Object(u["j"])(t[3]-1)}function bt(t){return Object(u["j"])(t[4])&&Object(u["j"])(t[5])}function xt(t,e,n){if(e&&(!bt(e)||!mt(e))){var i=n?10:1e4;t.transform=mt(e)?"translate("+pt(e[4]*i)/i+" "+pt(e[5]*i)/i+")":Object(u["e"])(e)}}function _t(t,e,n){for(var i=t.points,o=[],a=0;ac?(r=null==n[d+1]?null:n[d+1].elm,qt(t,r,n,l,d)):Kt(t,e,s,c))}function Qt(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(Jt(t,e),Wt(e.text)?Yt(i)&&Yt(o)?i!==o&&$t(n,i,o):Yt(o)?(Yt(t.text)&&Bt(n,""),qt(n,null,o,0,o.length-1)):Yt(i)?Kt(n,i,0,i.length-1):Yt(t.text)&&Bt(n,""):t.text!==e.text&&(Yt(i)&&Kt(n,i,0,i.length-1),Bt(n,e.text)))}function te(t,e){if(Zt(t,e))Qt(t,e);else{var n=t.elm,i=zt(n);Ut(e),null!==i&&(Nt(i,e.elm,Vt(n)),Kt(i,[t],0,0))}return e}var ee=n("3437"),ne=0,ie=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=oe("refreshHover"),this.configLayer=oe("configLayer"),this.storage=e,this._opts=n=Object(w["m"])({},n),this.root=t,this._id="zr"+ne++,this._oldVNode=W(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=R("svg");Jt(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",te(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Ct(t,F(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,o=F(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis;var a=[],r=this._bgVNode=ae(n,i,this._backgroundColor,o);r&&a.push(r);var s=t.compress?null:this._mainVNode=z("g","main",{},[]);this._paintList(e,o,s?s.children:a),s&&a.push(s);var l=Object(w["H"])(Object(w["F"])(o.defs),(function(t){return o.defs[t]}));if(l.length&&a.push(z("defs","defs",{},l)),t.animation){var c=H(o.cssNodes,o.cssAnims,{newline:!0});if(c){var u=z("style","stl",{},[],c);a.push(u)}}return W(n,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},G(this.renderToVNode({animation:Object(w["P"])(t.cssAnimation,!0),emphasis:Object(w["P"])(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(w["P"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,o,a=t.length,r=[],s=0,l=0,c=0;c=0;g--)if(h&&o&&h[g]===o[g])break;for(var f=p-1;f>g;f--)s--,i=r[s-1];for(var y=g+1;y1){var c=s.shift();1===s.length&&(n[r]=s[0]),this._update&&this._update(c,a)}else 1===l?(n[r]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var r=0;r1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),i[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var d=0;d1)for(var r=0;r30}var Pe,Ne,Ee,Re,ze,Ve,Be,Ge=w["A"],He=w["H"],Fe="undefined"===typeof Int32Array?Array:Int32Array,We="e\0\0",Ye=-1,Xe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ze=["_approximateExtent"],Ue=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;De(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var o={},a=[],r={},s=!1,l={},c=0;c=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,r=i.getSource().sourceFormat,s=r===fe["f"];if(s&&!i.pure)for(var l=[],c=t;c0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var o=i[e];return null==o&&(o=this.getVisual(e),w["t"](o)?o=o.slice():Ge(o)&&(o=w["m"]({},o)),i[e]=o),o},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ge(e)?w["m"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Ge(t)?w["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?w["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(Se["b"])(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){w["k"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:He(this.dimensions,this._getDimInfo,this),this.hostModel)),ze(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];w["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(w["S"](arguments)))})},t.internalField=function(){Pe=function(t){var e=t._invertedIndicesMap;w["k"](e,(function(n,i){var o=t._dimInfos[i],a=o.ordinalMeta,r=t._store;if(a){n=e[i]=new Fe(a.categories.length);for(var s=0;s1&&(s+="__ec__"+c),i[e]=s}}}(),t}(),qe=Ue,Ke=n("0f99");function Je(t,e){Object(Me["e"])(t)||(t=Object(Me["c"])(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],o=Object(w["f"])(),a=[],r=Qe(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Le(r),l=i===t.dimensionsDefine,c=l?ke(t):Te(i),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(t,r));for(var h=Object(w["f"])(u),d=new Ie["a"](r),p=0;p0&&(i.name=o+(a-1)),a++,e.set(o,a)}}function Qe(t,e,n,i){var o=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(w["k"])(e,(function(t){var e;Object(w["A"])(t)&&(e=t.dimsDef)&&(o=Math.max(o,e.length))})),o}function tn(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}var en=n("1f39"),nn=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(w["f"])(),this.categoryAxisMap=Object(w["f"])(),this.coordSysName=t}return t}();function on(t){var e=t.get("coordinateSystem"),n=new nn(e),i=an[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var an={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",we["b"]).models[0],a=t.getReferringComponents("yAxis",we["b"]).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),rn(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),rn(a)&&(i.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var o=t.getReferringComponents("singleAxis",we["b"]).models[0];e.coordSysDims=["single"],n.set("single",o),rn(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents("polar",we["b"]).models[0],a=o.findAxisModel("radiusAxis"),r=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",r),rn(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),rn(r)&&(i.set("angle",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=a.dimensions.slice();Object(w["k"])(a.parallelAxisIndex,(function(t,a){var s=o.getComponent("parallelAxis",t),l=r[a];n.set(l,s),rn(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=a))}))}};function rn(t){return"category"===t.get("type")}function sn(t,e,n){n=n||{};var i,o,a,r=n.byIndex,s=n.stackedCoordDimension;ln(e)?i=e:(o=e.schema,i=o.dimensions,a=e.store);var l,c,u,h,d=!(!t||!t.get("stack"));if(Object(w["k"])(i,(function(t,e){Object(w["C"])(t)&&(i[e]=t={name:t}),d&&!t.isExtraCoord&&(r||l||!t.ordinalMeta||(l=t),c||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(c=t))})),!c||r||l||(r=!0),c){u="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=c.coordDim,g=c.type,f=0;Object(w["k"])(i,(function(t){t.coordDim===p&&f++}));var y={name:u,coordDim:p,coordDimIndex:f,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:h,coordDim:h,coordDimIndex:f+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(a&&(y.storeDimIndex=a.ensureCalculationDimension(h,g),v.storeDimIndex=a.ensureCalculationDimension(u,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:h,stackResultDimension:u}}function ln(t){return!De(t.schema)}function cn(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function un(t,e){return cn(t,e)?t.getCalculationInfo("stackResultDimension"):e}function hn(t,e){var n,i=t.get("coordinateSystem"),o=en["a"].get(i);return e&&e.coordSysDims&&(n=w["H"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var o=i.get("type");n.type=be(o)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function dn(t,e,n){var i,o;return n&&w["k"](t,(function(t,a){var r=t.coordDim,s=n.categoryAxisMap.get(r);s&&(null==i&&(i=a),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==i||(t[i].otherDims.itemName=0),i}function pn(t,e,n){n=n||{};var i,o=e.getSourceManager(),a=!1;t?(a=!0,i=Object(Me["c"])(t)):(i=o.getSource(),a=i.sourceFormat===fe["f"]);var r=on(e),s=hn(e,r),l=n.useEncodeDefaulter,c=w["w"](l)?l:l?w["h"](Ke["c"],s,e):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},h=Je(i,u),d=dn(h.dimensions,n.createInvertedIndices,r),p=a?null:o.getSharedDataStore(h),g=sn(e,{schema:h,store:p}),f=new qe(h,e);f.setCalculationInfo(g);var y=null!=d&&gn(i)?function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(a?i:p,null,y),f}function gn(t){if(t.sourceFormat===fe["f"]){var e=fn(t.data||[]);return!w["t"](Object(we["h"])(e))}}function fn(t){var e=0;while(e-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(vn["b"]),_n=xn,On=n("deca"),wn=n("2306"),Sn=n("7d6c");function Mn(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=Object(ge["e"])(t,e,n[0]);return null!=o?o+"":null}if(i){for(var a=[],r=0;r=0&&i.push(e[a])}return i.join(" ")}var jn=n("7837"),An=function(t){function e(e,n,i,o){var a=t.call(this)||this;return a.updateData(e,n,i,o),a}return Object(le["a"])(e,t),e.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();var a=Object(mn["a"])(t,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=Cn,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(Sn["r"])(this.childAt(0))},e.prototype.downplay=function(){Object(Sn["C"])(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,o){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",r=t.hostModel,s=e.getSymbolSize(t,n),l=a!==this._symbolType,c=o&&o.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):On["h"](h,d,r,n),Object(On["g"])(h)}if(this._updateCommon(t,n,s,i,o),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,On["c"](h,d,r,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,o){var a,r,s,l,c,u,h,p,g,f=this.childAt(0),y=t.hostModel;if(i&&(a=i.emphasisItemStyle,r=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,u=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");a=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),r=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),c=m.get("blurScope"),u=m.get("disabled"),h=Object(jn["e"])(v),p=m.getShallow("scale"),g=v.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(b||0)*Math.PI/180||0);var x=Object(mn["b"])(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),g&&f.attr("cursor",g);var _=t.getItemVisual(e,"style"),O=_.fill;if(f instanceof d["a"]){var S=f.style;f.useStyle(Object(w["m"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else f.__isEmptyBrush?f.useStyle(Object(w["m"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(O,o&&o.symbolInnerColor),f.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=f.z2,f.z2+=M):null!=I&&(f.z2=I,this._z2=null);var j=o&&o.useNameLabel;function A(e){return j?t.getName(e):Mn(t,e)}Object(jn["g"])(f,h,{labelFetcher:y,labelDataIndex:e,defaultText:A,inheritColor:O,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=a,f.ensureState("select").style=s,f.ensureState("blur").style=r;var D=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;C.scaleX=this._sizeX*D,C.scaleY=this._sizeY*D,this.setSymbolScale(1),Object(Sn["J"])(this,l,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=Object(Se["a"])(this).dataIndex,a=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var r=i.getTextContent();r&&On["e"](r,{style:{opacity:0}},e,{dataIndex:o,removeOpt:a,cb:function(){i.removeTextContent()}})}else i.removeTextContent();On["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return Object(mn["c"])(t.getItemVisual(e,"symbolSize"))},e}(bn["a"]);function Cn(t,e){this.parent.drift(t,e)}var Dn=An;function Tn(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function kn(t){return null==t||Object(w["A"])(t)||(t={isIgnore:t}),t||{}}function Ln(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(jn["e"])(e),cursorStyle:e.get("cursor")}}var Pn=function(){function t(t){this.group=new bn["a"],this._SymbolCtor=t||Dn}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=kn(e);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,r=e.disableAnimation,s=Ln(t),l={disableAnimation:r},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(i){var o=c(i);if(Tn(t,o,i,e)){var r=new a(t,i,s,l);r.setPosition(o),t.setItemGraphicEl(i,r),n.add(r)}})).update((function(u,h){var d=o.getItemGraphicEl(h),p=c(u);if(Tn(t,p,u,e)){var g=t.getItemVisual(u,"symbol")||"circle",f=d&&d.getSymbolType&&d.getSymbolType();if(!d||f&&f!==g)n.remove(d),d=new a(t,u,s,l),d.setPosition(p);else{d.updateData(t,u,s,l);var y={x:p[0],y:p[1]};r?d.attr(y):On["h"](d,y,i)}n.add(d),t.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ln(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=kn(n);for(var o=t.start;o0?n=i[0]:i[1]<0&&(n=i[1]),n}function zn(t,e,n,i){var o=NaN;t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart);var a=t.baseDataOffset,r=[];return r[a]=n.get(t.baseDim,i),r[1-a]=o,e.dataToPoint(r)}var Vn="undefined"!==typeof Float32Array,Bn=Vn?Float32Array:Array;function Gn(t){return Object(w["t"])(t)?Vn?new Float32Array(t):t:new Bn(t)}function Hn(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function Fn(t,e,n,i,o,a,r,s){for(var l=Hn(t,e),c=[],u=[],h=[],d=[],p=[],g=[],f=[],y=En(o,e,r),v=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=o||f<0)break;if(Un(v,m)){if(l){f+=a;continue}break}if(f===n)t[a>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var b=v-c,x=m-u;if(b*b+x*x<.5){f+=a;continue}if(r>0){var _=f+a,O=e[2*_],w=e[2*_+1];while(O===v&&w===m&&y=i||Un(O,w))p=v,g=m;else{I=O-c,j=w-u;var D=v-c,T=O-v,k=m-u,L=w-m,P=void 0,N=void 0;if("x"===s){P=Math.abs(D),N=Math.abs(T);var E=I>0?1:-1;p=v-E*P*r,g=m,A=v+E*N*r,C=m}else if("y"===s){P=Math.abs(k),N=Math.abs(L);var R=j>0?1:-1;p=v,g=m-R*P*r,A=v,C=m+R*N*r}else P=Math.sqrt(D*D+k*k),N=Math.sqrt(T*T+L*L),M=N/(N+P),p=v-I*r*(1-M),g=m-j*r*(1-M),A=v+I*r*M,C=m+j*r*M,A=Xn(A,Zn(O,v)),C=Xn(C,Zn(w,m)),A=Zn(A,Xn(O,v)),C=Zn(C,Xn(w,m)),I=A-v,j=C-m,p=v-I*P/N,g=m-j*P/N,p=Xn(p,Zn(c,v)),g=Xn(g,Zn(u,m)),p=Zn(p,Xn(c,v)),g=Zn(g,Xn(u,m)),I=v-p,j=m-g,A=v+I*N/P,C=m+j*N/P}t.bezierCurveTo(h,d,p,g,v,m),h=A,d=C}else t.lineTo(v,m)}c=v,u=m,f+=a}return y}var Kn=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Jn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(le["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kn},e.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;o>0;o--)if(!Un(n[2*o-2],n[2*o-1]))break;for(;i=0){var m=s?(d-i)*v+i:(h-n)*v+n;return s?[t,m]:[m,t]}n=h,i=d;break;case r.C:h=a[c++],d=a[c++],p=a[c++],g=a[c++],f=a[c++],y=a[c++];var b=s?Object(Yn["f"])(n,h,p,f,t,l):Object(Yn["f"])(i,d,g,y,t,l);if(b>0)for(var x=0;x=0){m=s?Object(Yn["a"])(i,d,g,y,_):Object(Yn["a"])(n,h,p,f,_);return s?[t,m]:[m,t]}}n=f,i=y;break}}},e}(h["b"]),$n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e}(Kn),Qn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new $n},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,a=n.length/2,r=e.smoothMonotone;if(e.connectNulls){for(;a>0;a--)if(!Un(n[2*a-2],n[2*a-1]))break;for(;oe){i?o.push(r(i,l,e)):n&&o.push(r(n,l,0),r(n,l,e));break}n&&(o.push(r(n,l,0)),n=null),o.push(l),i=l}}return o}function yi(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,a,r=i.length-1;r>=0;r--){var s=t.getDimensionInfo(i[r].dimension);if(o=s&&s.coordDim,"x"===o||"y"===o){a=i[r];break}}if(a){var l=e.getAxis(o),c=w["H"](a.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),u=c.length,h=a.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=fi(c,"x"===o?n.getWidth():n.getHeight()),p=d.length;if(!p&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var g=10,f=d[0].coord-g,y=d[p-1].coord+g,v=y-f;if(v<.001)return"transparent";w["k"](d,(function(t){t.offset=(t.coord-f)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new Wn["a"](0,0,0,0,d,!0);return m[o]=f,m[o+"2"]=y,m}}}function vi(t,e,n){var i=t.get("showAllSymbol"),o="auto"===i;if(!i||o){var a=n.getAxesByScale("ordinal")[0];if(a&&(!o||!mi(a,e))){var r=e.mapDimension(a.dim),s={};return w["k"](a.getViewLabels(),(function(t){var e=a.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function mi(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),r=0;ri)return!1;return!0}function bi(t,e){return isNaN(t)||isNaN(e)}function xi(t){for(var e=t.length/2;e>0;e--)if(!bi(t[2*e-2],t[2*e-1]))break;return e-1}function _i(t,e){return[t[2*e],t[2*e+1]]}function Oi(t,e,n){for(var i,o,a=t.length/2,r="x"===n?0:1,s=0,l=-1,c=0;c=e||i>=e&&o<=e){l=c;break}s=c,i=o}else i=o;return{range:[s,l],t:(e-i)/(o-i)}}function wi(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Object(Se["a"])(p).seriesIndex=t.seriesIndex,Object(Sn["J"])(p,k,L,P);var E=di(t.get("smooth")),R=t.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:R,connectNulls:O}),g){var z=r.getCalculationInfo("stackedOnSeries"),V=0;g.useStyle(w["i"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:r.getVisual("style").decal})),z&&(V=di(z.get("smooth"))),g.setShape({smooth:E,stackedOnSmooth:V,smoothMonotone:R,connectNulls:O}),Object(Sn["I"])(g,t,"areaStyle"),Object(Se["a"])(g).seriesIndex=t.seriesIndex,Object(Sn["J"])(g,k,L,P)}var B=function(t){i._changePolyState(t)};r.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=r,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=j,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,e){Object(Se["a"])(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var o=t.getData(),a=we["u"](o,i);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var r=o.getLayout("points"),s=o.getItemGraphicEl(a);if(!s){var l=r[2*a],c=r[2*a+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel")||0,h=t.get("z")||0;s=new Dn(o,a),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ti["a"].prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var o=t.getData(),a=we["u"](o,i);if(this._changePolyState("normal"),null!=a&&a>=0){var r=o.getItemGraphicEl(a);r&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else ti["a"].prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(Sn["H"])(this._polyline,t),e&&Object(Sn["H"])(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Jn({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Qn({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,o,a=e.getBaseAxis(),r=a.inverse;"cartesian2d"===e.type?(i=a.isHorizontal(),o=!1):"polar"===e.type&&(i="angle"===a.dim,o=!0);var s=t.hostModel,l=s.get("animationDuration");w["w"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=w["w"](c)?c(null):c;t.eachItemGraphicEl((function(t,a){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,g=void 0;if(n)if(o){var f=n,y=e.pointToCoord(h);i?(d=f.startAngle,p=f.endAngle,g=-y[1]/180*Math.PI):(d=f.r0,p=f.r,g=y[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,g=t.x):(d=v.y+v.height,p=v.y,g=t.y)}var m=p===d?0:(g-d)/(p-d);r&&(m=1-m);var b=w["w"](c)?c(a):l*m+u,x=s.getSymbolPath(),_=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(wi(t)){var o=t.getData(),a=this._polyline,r=o.getLayout("points");if(!r)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new st["a"]({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=xi(r);l>=0&&(Object(jn["g"])(a,Object(jn["e"])(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?In(o,n):Mn(o,t)},enableTextSetter:!0},Mi(i,e)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,o,a,r){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=a.get("precision"),p=a.get("distance")||0,g=r.getBaseAxis(),f=g.isHorizontal(),y=g.inverse,v=e.shape,m=y?f?v.x:v.y+v.height:f?v.x+v.width:v.y,b=(f?p:0)*(y?-1:1),x=(f?0:-p)*(y?-1:1),_=f?"x":"y",O=Oi(c,m,_),w=O.range,S=w[1]-w[0],M=void 0;if(S>=1){if(S>1&&!h){var I=_i(c,w[0]);s.attr({x:I[0]+b,y:I[1]+x}),o&&(M=u.getRawValue(w[0]))}else{I=l.getPointOn(m,_);I&&s.attr({x:I[0]+b,y:I[1]+x});var j=u.getRawValue(w[0]),A=u.getRawValue(w[1]);o&&(M=we["k"](n,d,j,A,O.t))}i.lastFrameIndex=w[0]}else{var C=1===t||i.lastFrameIndex>0?w[0]:0;I=_i(c,C);o&&(M=u.getRawValue(C)),s.attr({x:I[0]+b,y:I[1]+x})}if(o){var D=Object(jn["f"])(s);"function"===typeof D.setLabelText&&D.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,o,a,r){var s=this._polyline,l=this._polygon,c=t.hostModel,u=Fn(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),h=u.current,d=u.stackedOnCurrent,p=u.next,g=u.stackedOnNext;if(o&&(h=gi(u.current,n,o,r),d=gi(u.stackedOnCurrent,n,o,r),p=gi(u.next,n,o,r),g=gi(u.stackedOnNext,n,o,r)),hi(h,p)>3e3||l&&hi(d,g)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:g})));s.shape.__points=u.current,s.shape.points=h;var f={shape:{points:p}};u.current!==h&&(f.shape.__points=u.next),s.stopAnimation(),On["h"](s,f,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),On["h"](l,{shape:{stackedOnPoints:g}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=u.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne&&(e=a,n=o)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},Ti=function(t){return Math.round(t.length/2)};function ki(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,r=i.count();if(r>10&&"cartesian2d"===a.type&&o){var s=a.getBaseAxis(),l=a.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(r/h);if(isFinite(d)&&d>1){"lttb"===o&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;Object(w["C"])(o)?p=Di[o]:Object(w["w"])(o)&&(p=o),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,Ti))}}}}}function Li(t){t.registerChartView(ji),t.registerSeriesModel(_n),t.registerLayout(Ci("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ki("line"))}var Pi="__ec_stack_";function Ni(t){return t.get("stack")||Pi+t.seriesIndex}function Ei(t){return t.dim+t.index}function Ri(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a0&&(a=null===a?s:Math.min(a,s))}n[i]=a}}return n}function Bi(t){var e=Vi(t),n=[];return Object(w["k"])(t,(function(t){var i,o=t.coordinateSystem,a=o.getBaseAxis(),r=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],c=Math.abs(r[1]-r[0]),u=a.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=l?c/h*l:c}else{var d=t.getData();i=Math.abs(r[1]-r[0])/d.count()}var p=Object(ii["o"])(t.get("barWidth"),i),g=Object(ii["o"])(t.get("barMaxWidth"),i),f=Object(ii["o"])(t.get("barMinWidth")||(Xi(t)?.5:1),i),y=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:g,barMinWidth:f,barGap:y,barCategoryGap:v,axisKey:Ei(a),stackId:Ni(t)})})),Gi(n)}function Gi(t){var e={};Object(w["k"])(t,(function(t,n){var i=t.axisKey,o=t.bandWidth,a=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=a.stacks;e[i]=a;var s=t.stackId;r[s]||a.autoWidthCount++,r[s]=r[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!r[s].width&&(r[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var c=t.barMaxWidth;c&&(r[s].maxWidth=c);var u=t.barMinWidth;u&&(r[s].minWidth=u);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return Object(w["k"])(e,(function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,a=t.categoryGap;if(null==a){var r=Object(w["F"])(i).length;a=Math.max(35-4*r,15)+"%"}var s=Object(ii["o"])(a,o),l=Object(ii["o"])(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),Object(w["k"])(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+l*i,u--}else{var i=h;e&&ei&&(i=n),i!==h&&(t.width=i,c-=i+l*i,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,p=0;Object(w["k"])(i,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var g=-p/2;Object(w["k"])(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:g,width:t.width},g+=t.width*(1+l)}))})),n}function Hi(t,e,n){if(t&&e){var i=t[Ei(e)];return null!=i&&null!=n?i[Ni(n)]:i}}function Fi(t,e){var n=zi(t,e),i=Bi(n);Object(w["k"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=Ni(t),r=i[Ei(o)][a],s=r.offset,l=r.width;e.setLayout({bandWidth:r.bandWidth,offset:s,size:l})}))}function Wi(t){return{seriesType:t,plan:Object(Ai["a"])(),reset:function(t){if(Yi(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(o.dim)),r=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(o.dim),c=e.getCalculationInfo("stackResultDimension"),u=cn(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=o.isHorizontal(),d=Zi(i,o),p=Xi(t),g=t.get("barMinHeight")||0,f=c&&e.getDimensionIndex(c),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var i,o=t.count,l=p&&Gn(3*o),c=p&&s&&Gn(3*o),m=p&&Gn(o),b=n.master.getRect(),x=h?b.width:b.height,_=e.getStore(),O=0;while(null!=(i=t.next())){var w=_.get(u?f:a,i),S=_.get(r,i),M=d,I=void 0;u&&(I=+w-_.get(a,i));var j=void 0,A=void 0,C=void 0,D=void 0;if(h){var T=n.dataToPoint([w,S]);if(u){var k=n.dataToPoint([I,S]);M=k[0]}j=M,A=T[1]+v,C=T[0]-M,D=y,Math.abs(C)0?n:1:n))}var Ui=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),a=i.dataToPoint(o);if(n)Object(w["k"])(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),r=t.getTickModel().get("alignWithLabel"),s=o[n],l="x1"===e[n]||"y1"===e[n];if(l&&!r&&(s+=1),i.length<2)return;if(2===i.length)return void(a[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var c=void 0,u=void 0,h=1,d=0;ds){u=(p+c)/2;break}1===d&&(h=g-i[0].tickValue)}null==u&&(c?c&&(u=i[i.length-1].coord):u=i[0].coord),a[n]=t.toGlobalCoord(u)}}));else{var r=this.getData(),s=r.getLayout("offset"),l=r.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;a[c]+=s+l/2}return a}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(vn["b"]);vn["b"].registerClass(Ui);var qi=Ui,Ki=n("8918"),Ji=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(){return yn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Object(Ki["d"])(qi.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(qi),$i=Ji,Qi=n("88b3"),to=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),eo=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new to},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),a=Math.max(e.r,0),r=.5*(a-o),s=o+r,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=2*Math.PI,d=u?c-lMath.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}}function ao(t,e,n){return e*Math.sin(t)*(n?-1:1)}function ro(t,e,n){return e*Math.cos(t)*(n?1:-1)}function so(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(w["t"])(i)||(i=[i,i,i,i]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(w["H"])(i,(function(t){return Object(p["g"])(t,o)}))}}var lo=Math.max,co=Math.min;function uo(t,e){var n=t.getArea&&t.getArea();if(si(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var o=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}var ho=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Object(wn["traverseElements"])(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var o,a=this.group,r=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?o=c.isHorizontal():"polar"===l.type&&(o="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,h=fo(t,l);h&&this._enableRealtimeSort(h,r,n);var d=t.get("clip",!0)||h,p=uo(l,r);a.removeClipPath();var g=t.get("roundCap",!0),f=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],b=this._backgroundEls,x=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function O(t){var e=_o[l.type](r,t),n=ko(l,o,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}r.diff(s).add((function(e){var n=r.getItemModel(e),i=_o[l.type](r,e,n);if(f&&O(e),r.hasValue(e)&&xo[l.type](i)){var s=!1;d&&(s=po[l.type](p,i));var y=go[l.type](t,r,e,i,o,u,c.model,!1,g);h&&(y.forceLabelAnimation=!0),So(y,r,e,n,i,t,o,"polar"===l.type),x?y.attr({shape:i}):h?yo(h,u,y,i,e,o,!1,!1):Object(On["c"])(y,{shape:i},t,e),r.setItemGraphicEl(e,y),a.add(y),y.ignore=s}})).update((function(e,n){var i=r.getItemModel(e),w=_o[l.type](r,e,i);if(f){var S=void 0;0===b.length?S=O(n):(S=b[n],S.useStyle(y.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),m[e]=S);var M=_o[l.type](r,e),I=To(o,M,l);Object(On["h"])(S,{shape:I},u,e)}var j=s.getItemGraphicEl(n);if(r.hasValue(e)&&xo[l.type](w)){var A=!1;if(d&&(A=po[l.type](p,w),A&&a.remove(j)),j?Object(On["g"])(j):j=go[l.type](t,r,e,w,o,u,c.model,!!j,g),h&&(j.forceLabelAnimation=!0),_){var C=j.getTextContent();if(C){var D=Object(jn["f"])(C);null!=D.prevValue&&(D.prevValue=D.value)}}else So(j,r,e,i,w,t,o,"polar"===l.type);x?j.attr({shape:w}):h?yo(h,u,j,w,e,o,!0,_):Object(On["h"])(j,{shape:w},t,e,null),r.setItemGraphicEl(e,j),j.ignore=A,a.add(j)}else a.remove(j)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Object(On["f"])(n,t,e)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new bn["a"]);w.removeAll();for(var S=0;Sa)return!0;a=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),o=Math.max(0,i[0]),a=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=a;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var o=this._dataSort(t,n,e);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,o=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Object(On["f"])(e,t,Object(Se["a"])(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ti["a"]),po={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=t.x+t.width,a=t.y+t.height,r=lo(e.x,t.x),s=co(e.x+e.width,o),l=lo(e.y,t.y),c=co(e.y+e.height,a),u=so?s:r,e.y=h&&l>a?c:l,e.width=u?0:s-r,e.height=h?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var o=co(e.r,t.r),a=lo(e.r0,t.r0);e.r=o,e.r0=a;var r=o-a<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return r}},go={cartesian2d:function(t,e,n,i,o,a,r,s,l){var c=new ei["a"]({shape:Object(w["m"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",a){var u=c.shape,h=o?"height":"width";u[h]=0}return c},polar:function(t,e,n,i,o,a,r,s,l){var c=!o&&l?no:ni["a"],u=new c({shape:i,z2:1});u.name="item";var h=wo(o);if(u.calculateTextPosition=io(h,{isRoundCap:c===no}),a){var d=u.shape,p=o?"r":"endAngle",g={};d[p]=o?i.r0:i.startAngle,g[p]=i[p],(s?On["h"]:On["c"])(u,{shape:g},a)}return u}};function fo(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function yo(t,e,n,i,o,a,r,s){var l,c;a?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(r?On["h"]:On["c"])(n,{shape:l},e,o,null);var u=e?t.baseAxis.model:null;(r?On["h"]:On["c"])(n,{shape:c},u,o)}function vo(t,e){for(var n=0;n0?1:-1,r=i.height>0?1:-1;return{x:i.x+a*o/2,y:i.y+r*o/2,width:i.width-a*o,height:i.height-r*o}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Oo(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function wo(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function So(t,e,n,i,o,a,r,s){var l=e.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var c=t.shape,u=so(i.getModel("itemStyle"),c,!0);Object(w["m"])(c,u),t.setShape(c)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=i.getShallow("cursor");d&&t.attr("cursor",d);var p=s?r?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":r?o.height>=0?"bottom":"top":o.width>=0?"right":"left",g=Object(jn["e"])(i);Object(jn["g"])(t,g,{labelFetcher:a,labelDataIndex:n,defaultText:Mn(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=t.getTextContent();if(s&&f){var y=i.get(["label","position"]);t.textConfig.inside="middle"===y||null,oo(t,"outside"===y?p:y,wo(r),i.get(["label","rotate"]))}Object(jn["h"])(f,g,a.getRawValue(n),(function(t){return In(e,t)}));var v=i.getModel(["emphasis"]);Object(Sn["J"])(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Object(Sn["I"])(t,i),Oo(o)&&(t.style.fill="none",t.style.stroke="none",Object(w["k"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function Mo(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,a)}var Io=function(){function t(){}return t}(),jo=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new Io},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,a=[],r=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function Do(t,e,n){for(var i=t.baseDimIdx,o=1-i,a=t.shape.points,r=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,h=a.length/3;u=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return r[u]}return-1}function To(t,e,n){if(si(n,"cartesian2d")){var i=e,o=n.getArea();return{x:t?i.x:o.x,y:t?o.y:i.y,width:t?i.width:o.width,height:t?o.height:i.height}}o=n.getArea();var a=e;return{cx:o.cx,cy:o.cy,r0:t?o.r0:a.r0,r:t?o.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:2*Math.PI}}function ko(t,e,n){var i="polar"===t.type?ni["a"]:ei["a"];return new i({shape:To(e,n,t),silent:!0,z2:0})}var Lo=ho;function Po(t){t.registerChartView(Lo),t.registerSeriesModel($i),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,w["h"](Fi,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Wi("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ki("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var No=n("f3bb"),Eo=n("f934"),Ro=2*Math.PI,zo=Math.PI/180;function Vo(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Bo(t,e){var n=Vo(t,e),i=t.get("center"),o=t.get("radius");w["t"](o)||(o=[0,o]);var a,r,s=Object(ii["o"])(n.width,e.getWidth()),l=Object(ii["o"])(n.height,e.getHeight()),c=Math.min(s,l),u=Object(ii["o"])(o[0],c/2),h=Object(ii["o"])(o[1],c/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);a=p[0]||0,r=p[1]||0}else w["t"](i)||(i=[i,i]),a=Object(ii["o"])(i[0],s)+n.x,r=Object(ii["o"])(i[1],l)+n.y;return{cx:a,cy:r,r0:u,r:h}}function Go(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=Vo(t,n),a=Bo(t,n),r=a.cx,s=a.cy,l=a.r,c=a.r0,u=-t.get("startAngle")*zo,h=t.get("endAngle"),d=t.get("padAngle")*zo;h="auto"===h?u-Ro:-h*zo;var p=t.get("minAngle")*zo,g=p+d,f=0;e.each(i,(function(t){!isNaN(t)&&f++}));var y=e.getSum(i),v=Math.PI/(y||f)*2,m=t.get("clockwise"),b=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var O=m?1:-1,w=[u,h],S=O*d/2;Object(Z["b"])(w,!m),u=w[0],h=w[1];var M=Ho(t);M.startAngle=u,M.endAngle=h,M.clockwise=m;var I=Math.abs(h-u),j=I,A=0,C=u;if(e.setLayout({viewRect:o,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:r,cy:s,r0:c,r:b?NaN:l});else{i="area"!==b?0===y&&x?v:t*v:I/f,ii?(a=C+O*i/2,u=a):(a=C+S,u=o-S),e.setItemLayout(n,{angle:i,startAngle:a,endAngle:u,clockwise:m,cx:r,cy:s,r0:c,r:b?Object(ii["k"])(t,_,[c,l]):l}),C=o}})),jn?r:a,u=Math.abs(l.label.y-n);if(u>=c.maxY){var h=l.label.x-e-l.len2*o,d=i+l.len,g=Math.abs(h)t.unconstrainedWidth?null:p:null;i.setStyle("width",g)}var f=i.getBoundingRect();a.width=f.width;var y=(i.style.margin||0)+2.1;a.height=f.height+y,a.y-=(a.height-h)/2}}}function $o(t){return"center"===t.position}function Qo(t){var e,n,i=t.getData(),o=[],a=!1,r=(t.get("minShowLabelAngle")||0)*Uo,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,u=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}function g(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),y=i.getItemModel(t),v=y.getModel("label"),m=v.get("position")||y.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),x=v.get("alignTo"),_=Object(ii["o"])(v.get("edgeDistance"),c),O=v.get("bleedMargin"),S=y.getModel("labelLine"),M=S.get("length");M=Object(ii["o"])(M,c);var I=S.get("length2");if(I=Object(ii["o"])(I,c),Math.abs(h.endAngle-h.startAngle)0?"right":"left":k>0?"left":"right"}var G=Math.PI,H=0,F=v.get("rotate");if(Object(w["z"])(F))H=F*(G/180);else if("center"===m)H=0;else if("radial"===F||!0===F){var W=k<0?-T+G:-T;H=W}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var Y=Math.atan2(k,L);Y<0&&(Y=2*G+Y);var X=L>0;X&&(Y=G+Y),H=Y-G}if(a=!!H,d.x=j,d.y=A,d.rotation=H,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:D});var Z=d.states.select;Z&&(Z.x+=d.x,Z.y+=d.y)}else{var U=d.getBoundingRect().clone();U.applyTransform(d.getComputedTransform());var q=(d.style.margin||0)+2.1;U.y-=q/2,U.height+=q,o.push({label:d,labelLine:f,position:m,len:M,len2:I,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Yo["a"](k,L),linePoints:C,textAlign:D,labelDistance:b,labelAlignTo:x,edgeDistance:_,bleedMargin:O,rect:U,unconstrainedWidth:U.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!a&&t.get("avoidLabelOverlap")&&Ko(o,e,n,l,c,d,u,h);for(var f=0;f0){for(var l=a.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=i.r0}},e.type="pie",e}(ti["a"]),na=ea;function ia(t,e,n){e=Object(w["t"])(e)&&{coordDimensions:e}||Object(w["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),o=Je(i,e).dimensions,a=new qe(o,t);return a.initData(i,n),a}var oa=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),aa=oa,ra=we["o"](),sa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new aa(w["c"](this.getData,this),w["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ia(this,{coordDimensions:["value"],encodeDefaulter:w["h"](Ke["d"],this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=ra(n),o=i.seats;if(!o){var a=[];n.each(n.mapDimension("value"),(function(t){a.push(t)})),o=i.seats=Object(ii["e"])(a,n.hostModel.get("percentPrecision"))}var r=t.prototype.getDataParams.call(this,e);return r.percent=o[e]||0,r.$vars.push("percent"),r},e.prototype._defaultLabelLine=function(t){we["f"](t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,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,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(vn["b"]),la=sa;function ca(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(w["z"])(i)&&!isNaN(i)&&i<0)}))}}}function ua(t){t.registerChartView(na),t.registerSeriesModel(la),Object(No["a"])("pie",t.registerAction),t.registerLayout(Object(w["h"])(Go,"pie")),t.registerProcessor(Fo("pie")),t.registerProcessor(ca("pie"))}var ha=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(vn["b"]),da=ha,pa=n("9850"),ga=4,fa=function(){function t(){}return t}(),ya=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new fa},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,a=this.symbolProxy,r=a.shape,s=t.getContext?t.getContext():t,l=s&&o[0]=0;s--){var l=2*s,c=i[l]-a/2,u=i[l+1]-r/2;if(t>=c&&e>=u&&t<=c+a&&e<=u+r)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var o=this.hoverDataIdx=this.findDataIndex(t,e);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,o=i[0],a=i[1],r=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ma=va,ba=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Ci("").reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,o=i.large;return n&&o===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=o?new ma:new Nn,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ti["a"]),xa=ba,_a=n("b12f"),Oa=n("6cb7"),wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Oa["a"]),Sa=wa,Ma=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",we["b"]).models[0]},e.type="cartesian2dAxis",e}(Oa["a"]);w["K"](Ia,Ma);var ja={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Aa=w["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ja),Ca=w["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},ja),Da=w["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ca),Ta=w["i"]({logBase:10},Ca),ka={category:Aa,value:Ca,time:Da,log:Ta},La=0,Pa=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++La}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&Object(w["H"])(i,Na);return new t({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(w["C"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(w["f"])(this.categories))},t}();function Na(t){return Object(w["A"])(t)&&null!=t.value?t.value:t+""}var Ea=Pa,Ra={value:1,category:1,time:1,log:1};function za(t,e,n,i){Object(w["k"])(Ra,(function(o,a){var r=Object(w["I"])(Object(w["I"])({},ka[a],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return Object(le["a"])(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(Eo["d"])(this),i=n?Object(Eo["f"])(t):{},o=e.getTheme();Object(w["I"])(t,o.get(a+"Axis")),Object(w["I"])(t,this.getDefaultOption()),t.type=Va(t),n&&Object(Eo["h"])(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Ea.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=r,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",Va)}function Va(t){return t.type||(t.data?"category":"value")}var Ba=n("625e"),Ga=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Ba["c"](Ga);var Ha=Ga;function Fa(t){return"interval"===t.type||"log"===t.type}function Wa(t,e,n,i){var o={},a=t[1]-t[0],r=o.interval=Object(ii["l"])(a/e,!0);null!=n&&ri&&(r=o.interval=i);var s=o.intervalPrecision=Xa(r),l=o.niceTickExtent=[Object(ii["u"])(Math.ceil(t[0]/r)*r,s),Object(ii["u"])(Math.floor(t[1]/r)*r,s)];return Ua(l,t),o}function Ya(t){var e=Math.pow(10,Object(ii["r"])(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(ii["u"])(n*e)}function Xa(t){return Object(ii["g"])(t)+2}function Za(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Ua(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Za(t,0,e),Za(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function qa(t,e){return t>=e[0]&&t<=e[1]}function Ka(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Ja(t,e){return t*(e[1]-e[0])+e[0]}var $a=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Ea({})),Object(w["t"])(i)&&(i=new Ea({categories:Object(w["H"])(i,(function(t){return Object(w["A"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return Object(le["a"])(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(w["C"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),qa(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Ka(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Ja(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,a=this._ordinalMeta.categories.length,r=Math.min(a,e.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ha);Ha.registerClass($a);var Qa=$a,tr=ii["u"],er=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(le["a"])(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return qa(t,this._extent)},e.prototype.normalize=function(t){return Ka(t,this._extent)},e.prototype.scale=function(t){return Ja(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xa(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,a=[];if(!e)return a;var r=1e4;n[0]r)return[]}var l=a.length?a[a.length-1].value:i[1];return n[1]>l&&(t?a.push({value:tr(l+e,o)}):a.push({value:n[1]})),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&h>>1;t[o][1]n&&(this._approxInterval=n);var a=rr.length,r=Math.min(or(rr,this._approxInterval,0,a),a-1);this._interval=rr[r][1],this._minLevelUnit=rr[Math.max(r-1,0)][0]},e.prototype.parse=function(t){return Object(w["z"])(t)?t:+ii["n"](t)},e.prototype.contain=function(t){return qa(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Ka(this.parse(t),this._extent)},e.prototype.scale=function(t){return Ja(t,this._extent)},e.type="time",e}(nr),rr=[["second",ir["d"]],["minute",ir["c"]],["hour",ir["b"]],["quarter-day",6*ir["b"]],["half-day",12*ir["b"]],["day",1.2*ir["a"]],["half-week",3.5*ir["a"]],["week",7*ir["a"]],["month",31*ir["a"]],["quarter",95*ir["a"]],["half-year",ir["e"]/2],["year",ir["e"]]];function sr(t,e,n,i){var o=ii["n"](e),a=ii["n"](n),r=function(t){return Object(ir["n"])(o,t,i)===Object(ir["n"])(a,t,i)},s=function(){return r("year")},l=function(){return s()&&r("month")},c=function(){return l()&&r("day")},u=function(){return c()&&r("hour")},h=function(){return u()&&r("minute")},d=function(){return h()&&r("second")},p=function(){return d()&&r("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return p()}}function lr(t,e){return t/=ir["a"],t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cr(t){var e=30*ir["a"];return t/=e,t>6?6:t>3?3:t>2?2:1}function ur(t){return t/=ir["b"],t>12?12:t>6?6:t>3.5?4:t>2?2:1}function hr(t,e){return t/=e?ir["c"]:ir["d"],t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function dr(t){return ii["l"](t,!0)}function pr(t,e,n){var i=new Date(t);switch(Object(ir["m"])(e)){case"year":case"month":i[Object(ir["x"])(n)](0);case"day":i[Object(ir["g"])(n)](1);case"hour":i[Object(ir["p"])(n)](0);case"minute":i[Object(ir["v"])(n)](0);case"second":i[Object(ir["A"])(n)](0),i[Object(ir["t"])(n)](0)}return i.getTime()}function gr(t,e,n,i){var o=1e4,a=ir["B"],r=0;function s(t,e,n,o,a,r,s){var l=new Date(e),c=e,u=l[o]();while(c1&&0===c&&a.unshift({value:a[0].value-d})}}for(c=0;c=i[0]&&m<=i[1]&&h++)}var b=(i[1]-i[0])/e;if(h>1.5*b&&d>b/1.5)break;if(c.push(y),h>b||t===a[p])break}u=[]}}}var x=Object(w["n"])(Object(w["H"])(c,(function(t){return Object(w["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],O=x.length-1;for(p=0;p0)i*=10;var a=[ii["u"](xr(e[0]/i)*i),ii["u"](br(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},e.prototype.calcNiceExtent=function(t){vr.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Or(t)/Or(this.base),qa(t,this._extent)},e.prototype.normalize=function(t){return t=Or(t)/Or(this.base),Ka(t,this._extent)},e.prototype.scale=function(t){return t=Ja(t,this._extent),_r(this.base,t)},e.type="log",e}(Ha),Sr=wr.prototype;function Mr(t,e){return mr(t,ii["g"](e))}Sr.getMinorTicks=vr.getMinorTicks,Sr.getLabel=vr.getLabel,Ha.registerClass(wr);var Ir=wr,jr=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(r=0),r<0&&s<0&&!c&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(r=h,l=!0),null!=d&&(s=d,c=!0),{min:r,max:s,minFixed:l,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[Cr[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Ar[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Ar={min:"_determinedMin",max:"_determinedMax"},Cr={min:"_dataMin",max:"_dataMax"};function Dr(t,e,n){var i=t.rawExtentInfo;return i||(i=new jr(t,e,n),t.rawExtentInfo=i,i)}function Tr(t,e){return null==e?null:Object(w["l"])(e)?NaN:t.parse(e)}function kr(t,e){var n=t.type,i=Dr(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,r=e.ecModel;if(r&&"time"===n){var s=zi("bar",r),l=!1;if(w["k"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var c=Bi(s),u=Lr(o,a,e,c);o=u.min,a=u.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function Lr(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],r=Hi(i,n.axis);if(void 0===r)return{min:t,max:e};var s=1/0;w["k"](r,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;w["k"](r,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,h=1-(s+l)/a,d=u/h-u;return e+=d*(l/c),t-=d*(s/c),{min:t,max:e}}function Pr(t,e){var n=e,i=kr(t,n),o=i.extent,a=n.get("splitNumber");t instanceof Ir&&(t.base=n.get("logBase"));var r=t.type,s=n.get("interval"),l="interval"===r||"time"===r;t.setExtent(o[0],o[1]),t.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Nr(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Qa({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new fr({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ha.getClass(e)||nr)}}function Er(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function Rr(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):w["C"](e)?function(e){return function(n){var i=t.scale.getLabel(n),o=e.replace("{value}",null!=i?i:"");return o}}(e):w["w"](e)?function(e){return function(i,o){return null!=n&&(o=i.value-n),e(zr(t,i),o,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function zr(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Vr(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();n instanceof Qa?o=n.count():(i=n.getTicks(),o=i.length);var r,s=t.getLabelModel(),l=Rr(t),c=1;o>40&&(c=Math.ceil(o/40));for(var u=0;ut[1]&&(t[1]=i[1])}))}var Yr=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return w["H"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),w["n"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Xr=Yr,Zr=n("1687"),Ur=n("401b"),qr=["x","y"];function Kr(t){return"interval"===t.type||"time"===t.type}var Jr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=qr,e}return Object(le["a"])(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Kr(t)&&Kr(e)){var n=t.getExtent(),i=e.getExtent(),o=this.dataToPoint([n[0],i[0]]),a=this.dataToPoint([n[1],i[1]]),r=n[1]-n[0],s=i[1]-i[0];if(r&&s){var l=(a[0]-o[0])/r,c=(a[1]-o[1])/s,u=o[0]-n[0]*l,h=o[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Object(Zr["e"])([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),o=this.getArea(),a=new pa["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return Object(Ur["b"])(n,t,this._transform);var a=this.getAxis("x"),r=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(i,e)),n[1]=r.toGlobalCoord(r.dataToCoord(o,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),a=i.getExtent(),r=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(o[0],o[1]),r),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(Ur["b"])(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=o.coordToData(o.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,o=Math.min(n[0],n[1])-t,a=Math.max(e[0],e[1])-i+t,r=Math.max(n[0],n[1])-o+t;return new pa["a"](i,o,a,r)},e}(Xr),$r=Jr,Qr=Object(we["o"])();function ts(t,e){var n=w["H"](e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function es(t){var e=t.getLabelModel().get("customValues");if(e){var n=Rr(t);return{labels:ts(t,e).map((function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?is(t):rs(t)}function ns(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:ts(t,n)}:"category"===t.type?as(t,e):{ticks:w["H"](t.scale.getTicks(),(function(t){return t.value}))}}function is(t){var e=t.getLabelModel(),n=os(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function os(t,e){var n,i,o=ss(t,"labels"),a=Gr(e),r=ls(o,a);return r||(w["w"](a)?n=gs(t,a):(i="auto"===a?us(t):a,n=ps(t,i)),cs(o,a,{labels:n,labelCategoryInterval:i}))}function as(t,e){var n,i,o=ss(t,"ticks"),a=Gr(e),r=ls(o,a);if(r)return r;if(e.get("show")&&!t.scale.isBlank()||(n=[]),w["w"](a))n=gs(t,a,!0);else if("auto"===a){var s=os(t,t.getLabelModel());i=s.labelCategoryInterval,n=w["H"](s.labels,(function(t){return t.tickValue}))}else i=a,n=ps(t,i,!0);return cs(o,a,{ticks:n,tickCategoryInterval:i})}function rs(t){var e=t.scale.getTicks(),n=Rr(t);return{labels:w["H"](e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function ss(t,e){return Qr(t)[e]||(Qr(t)[e]=[])}function ls(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(r/40)));for(var l=a[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(i)),h=Math.abs(c*Math.sin(i)),d=0,g=0;l<=a[1];l+=s){var f=0,y=0,v=p["d"](n({value:l}),e.font,"center","top");f=1.3*v.width,y=1.3*v.height,d=Math.max(d,f,7),g=Math.max(g,y,7)}var m=d/u,b=g/h;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(m,b))),_=Qr(t.model),O=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-r)<=1&&w>x&&_.axisExtent0===O[0]&&_.axisExtent1===O[1]?x=w:(_.lastTickCount=r,_.lastAutoInterval=x,_.axisExtent0=O[0],_.axisExtent1=O[1]),x}function ds(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function ps(t,e,n){var i=Rr(t),o=t.scale,a=o.getExtent(),r=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=a[0],u=o.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=Hr(t),d=r.get("showMinLabel")||h,p=r.get("showMaxLabel")||h;d&&c!==a[0]&&f(a[0]);for(var g=c;g<=a[1];g+=l)f(g);function f(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return p&&g-l!==a[1]&&f(a[1]),s}function gs(t,e,n){var i=t.scale,o=Rr(t),a=[];return w["k"](i.getTicks(),(function(t){var r=i.getLabel(t),s=t.value;e(t.value,r)&&a.push(n?s:{formattedLabel:o(t),rawLabel:r,tickValue:s})})),a}var fs=[0,1],ys=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(ii["f"])(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),vs(n,i.count())),Object(ii["k"])(t,fs,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),vs(n,i.count()));var o=Object(ii["k"])(t,n,fs,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=ns(this,e),i=n.ticks,o=Object(w["H"])(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),a=e.get("alignWithLabel");return ms(this,o,a,t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Object(w["H"])(n,(function(t){return Object(w["H"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return es(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return hs(this)},t}();function vs(t,e){var n=t[1]-t[0],i=e,o=n/i/2;t[0]+=o,t[1]-=o}function ms(t,e,n,i){var o=e.length;if(t.onBand&&!n&&o){var a,r,s=t.getExtent();if(1===o)e[0].coord=s[0],a=e[1]={coord:s[1]};else{var l=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/l;Object(w["k"])(e,(function(t){t.coord-=c/2}));var u=t.scale.getExtent();r=1+u[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*r},e.push(a)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],a.coord)&&(i?a.coord=s[1]:e.pop()),i&&d(a.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=Object(ii["u"])(t),e=Object(ii["u"])(e),h?t>e:te[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(bs),_s=xs;function Os(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,a={},r=o.getAxesOnZeroOf()[0],s=o.position,l=r?"onZero":s,c=o.dim,u=i.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(r){var f=r.toGlobalCoord(r.dataToCoord(0));g[d.onZero]=Math.max(Math.min(f,g[1]),g[0])}a.position=["y"===c?g[d[l]]:h[0],"x"===c?g[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[s],a.labelOffset=r?g[d[s]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),w["O"](n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-v:v,a.z2=1,a}function ws(t){return"cartesian2d"===t.get("coordinateSystem")}function Ss(t){var e={xAxisModel:null,yAxisModel:null};return w["k"](e,(function(n,i){var o=i.replace(/Model$/,""),a=t.getReferringComponents(o,we["b"]).models[0];e[i]=a})),e}var Ms=Math.log;function Is(t,e,n){var i=nr.prototype,o=i.getTicks.call(n),a=i.getTicks.call(n,!0),r=o.length-1,s=i.getInterval.call(n),l=kr(t,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===t.type){var d=Ms(t.base);c=[Ms(c[0])/d,Ms(c[1])/d]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:r,fixMin:u,fixMax:h});var p=i.getExtent.call(t);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var g=i.getInterval.call(t),f=c[0],y=c[1];if(u&&h)g=(y-f)/r;else if(u){y=c[0]+g*r;while(yc[0]&&isFinite(f)&&isFinite(c[0]))g=Ya(g),f=c[1]-g*r}else{var v=t.getTicks().length-1;v>r&&(g=Ya(g));var m=g*r;y=Math.ceil(c[1]/g)*g,f=Object(ii["u"])(y-m),f<0&&c[0]>=0?(f=0,y=Object(ii["u"])(m)):y>0&&c[1]<=0&&(y=0,f=-Object(ii["u"])(m))}var b=(o[0].value-a[0].value)/s,x=(o[r].value-a[r].value)/s;i.setExtent.call(t,f+g*b,y+g*x),i.setInterval.call(t,g),(b||x)&&i.setNiceExtent.call(t,f+g,y-g)}var js=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=qr,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(w["F"])(t),i=n.length;if(i){for(var o=[],a=i-1;a>=0;a--){var r=+n[a],s=t[r],l=s.model,c=s.scale;Fa(c)&&l.get("alignTicks")&&null==l.get("interval")?o.push(s):(Pr(c,l),Fa(c)&&(e=s))}o.length&&(e||(e=o.pop(),Pr(e.scale,e.model)),Object(w["k"])(o,(function(t){Is(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};Object(w["k"])(n.x,(function(t){Cs(n,"y",t,o)})),Object(w["k"])(n.y,(function(t){Cs(n,"x",t,o)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Object(Eo["g"])(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var r=this._axesList;function s(){Object(w["k"])(r,(function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Ts(t,e?a.x:a.y)}))}s(),o&&(Object(w["k"])(r,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Vr(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}})),s()),Object(w["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(w["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",i="center"):Object(ii["j"])(a-Ps)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Es={axisLine:function(t,e,n,i){var o=e.get(["axisLine","show"]);if("auto"===o&&t.handleAutoShown&&(o=t.handleAutoShown("axisLine")),o){var a=e.axis.getExtent(),r=i.transform,s=[a[0],0],l=[a[1],0],c=s[0]>l[0];r&&(Object(Ur["b"])(s,s,r),Object(Ur["b"])(l,l,r));var u=Object(w["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ls["a"]({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});wn["subPixelOptimizeLine"](h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);Object(w["C"])(d)&&(d=[d,d]),(Object(w["C"])(p)||Object(w["z"])(p))&&(p=[p,p]);var g=Object(mn["b"])(e.get(["axisLine","symbolOffset"])||0,p),f=p[0],y=p[1];Object(w["k"])([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==d[i]&&null!=d[i]){var o=Object(mn["a"])(d[i],-f/2,-y/2,f,y,u.stroke,!0),a=e.r+e.offset,r=c?l:s;o.attr({rotation:e.rotate,x:r[0]+a*Math.cos(t.rotation),y:r[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),n.add(o)}}))}}},axisTickLabel:function(t,e,n,i){var o=Fs(n,i,e,t),a=Ys(n,i,e,t);if(zs(e,a,o),Ws(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var r=Object(Zo["b"])(Object(w["H"])(a,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Object(Zo["a"])(r)}},axisName:function(t,e,n,i){var o=Object(w["O"])(t.axisName,e.get("name"));if(o){var a,r,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*u:"end"===s?h[1]+d*u:(h[0]+h[1])/2,Gs(s)?t.labelOffset+l*u:0],g=e.get("nameRotate");null!=g&&(g=g*Ps/180),Gs(s)?a=Ns.innerTextLayout(t.rotation,null!=g?g:t.rotation,l):(a=Rs(t.rotation,s,g||0,h),r=t.axisNameAvailableWidth,null!=r&&(r=Math.abs(r/Math.sin(a.rotation)),!isFinite(r)&&(r=null)));var f=c.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=Object(w["O"])(t.nameTruncateMaxWidth,y.maxWidth,r),b=new st["a"]({x:p[0],y:p[1],rotation:a.rotation,silent:Ns.isLabelSilent(e),style:Object(jn["c"])(c,{text:o,font:f,overflow:"truncate",width:m,ellipsis:v,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||a.textAlign,verticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(wn["setTooltipConfig"]({el:b,componentModel:e,itemName:o}),b.__fullText=o,b.anid="name",e.get("triggerEvent")){var x=Ns.makeAxisEventDataBase(e);x.targetType="axisName",x.name=o,Object(Se["a"])(b).eventData=x}i.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function Rs(t,e,n,i){var o,a,r=Object(ii["t"])(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Object(ii["j"])(r-Ps/2)?(a=l?"bottom":"top",o="center"):Object(ii["j"])(r-1.5*Ps)?(a=l?"top":"bottom",o="center"):(a="middle",o=r<1.5*Ps&&r>Ps/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function zs(t,e,n){if(!Hr(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var a=e[0],r=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Vs(a),Vs(c)):Bs(a,r)&&(i?(Vs(r),Vs(u)):(Vs(a),Vs(c))),!1===o?(Vs(s),Vs(h)):Bs(l,s)&&(o?(Vs(l),Vs(d)):(Vs(s),Vs(h)))}}function Vs(t){t&&(t.ignore=!0)}function Bs(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=Zr["d"]([]);return Zr["g"](o,o,-t.rotation),n.applyTransform(Zr["f"]([],o,t.getLocalTransform())),i.applyTransform(Zr["f"]([],o,e.getLocalTransform())),n.intersect(i)}}function Gs(t){return"middle"===t||"center"===t}function Hs(t,e,n,i,o){for(var a=[],r=[],s=[],l=0;l=0||t===e}function Qs(t){var e=tl(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,o=n.option,a=n.get("status"),r=n.get("value");null!=r&&(r=i.parse(r));var s=nl(n);null==a&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=r;null!=h.color&&(d=w["i"]({color:h.color},r));var p=w["I"](w["d"](h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisLabel:a,name:h.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(w["C"](l)){var g=p.name;p.name=l.replace("{value}",null!=g?g:"")}else w["w"](l)&&(p.name=l(p.name,p));var f=new ce["a"](p,null,this.ecModel);return w["K"](f,Ma.prototype),f.mainType="radar",f.componentIndex=this.componentIndex,f}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:w["I"]({lineStyle:{color:"#bbb"}},Dl.axisLine),axisLabel:Tl(Dl.axisLabel,!1),axisTick:Tl(Dl.axisTick,!1),splitLine:Tl(Dl.splitLine,!0),splitArea:Tl(Dl.splitArea,!0),indicator:[]},e}(Oa["a"]),Ll=kl,Pl=n("d9fc"),Nl=n("4573"),El=["axisLine","axisTickLabel","axisName"],Rl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=w["H"](n,(function(t){var n=t.model.get("showName")?t.name:"",i=new Xs(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));w["k"](i,(function(t){w["k"](El,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),o=t.getModel("splitLine"),a=t.getModel("splitArea"),r=o.getModel("lineStyle"),s=a.getModel("areaStyle"),l=o.get("show"),c=a.get("show"),u=r.get("color"),h=s.get("color"),d=w["t"](u)?u:[u],p=w["t"](h)?h:[h],g=[],f=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,b=0;b3?1.4:o>1?1.2:1.1,l=i>0?s:1/s;tc(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:r,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);tc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:a,originY:r,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Jl(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;tc(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Yl["a"]);function tc(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Xl["g"](i.event),ec(t,e,n,i,o))}function ec(t,e,n,i,o){o.isAvailableBehavior=Object(w["c"])(nc,null,n,i),t.trigger(e,o)}function nc(t,e,n){var i=n[t];return!t||i&&(!Object(w["C"])(i)||e.event[i+"Key"])}var ic=Ql;function oc(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function ac(t,e,n,i){var o=t.target,a=t.zoomLimit,r=t.zoom=t.zoom||1;if(r*=e,a){var s=a.min||0,l=a.max||1/0;r=Math.max(Math.min(l,r),s)}var c=r/t.zoom;t.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 rc={axisPointer:1,tooltip:1,brush:1};function sc(t,e,n){var i=e.getComponentByElement(t.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!rc.hasOwnProperty(i.mainType)&&o&&o.model!==n}var lc,cc=n("ae69"),uc=n("342d"),hc=n("dded");function dc(t){if(Object(w["C"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var pc={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},gc=Object(w["F"])(pc),fc={"alignment-baseline":"textBaseline","stop-color":"stopColor"},yc=Object(w["F"])(fc),vc=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=dc(t);this._defsUsePending=[];var i=new bn["a"];this._root=i;var o=[],a=n.getAttribute("viewBox")||"",r=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(r)&&(r=null),isNaN(s)&&(s=null),wc(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;if(jc(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=Cc(a);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=r&&null!=s&&(c=Ec(l,{x:0,y:0,width:r,height:s}),!e.ignoreViewBox)){var d=i;i=new bn["a"],i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return e.ignoreRootClip||null==r||null==s||i.setClipPath(new ei["a"]({shape:{x:0,y:0,width:r,height:s}})),{root:i,width:r,height:s,viewBoxRect:l,viewBoxTransform:c,named:o}},t.prototype._parseNode=function(t,e,n,i,o,a){var r,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(o=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)r=e;else{if(!o){var c=lc[s];if(c&&Object(w["q"])(lc,s)){r=c.call(this,t,e);var u=t.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:s,el:r};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:r});e.add(r)}}var d=mc[s];if(d&&Object(w["q"])(mc,s)){var p=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=p)}}if(r&&r.isGroup){var f=t.firstChild;while(f)1===f.nodeType?this._parseNode(f,r,n,l,o,a):3===f.nodeType&&a&&this._parseText(f,r),f=f.nextSibling}},t.prototype._parseText=function(t,e){var n=new g["a"]({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});_c(e,n),wc(t,n,this._defsUsePending,!1,!1),Sc(n,e);var i=n.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,n.scaleX*=o/9,n.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var r=n.getBoundingRect();return this._textX+=r.width,e.add(n),n},t.internalField=function(){lc={g:function(t,e){var n=new bn["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ei["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Pl["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ls["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new cc["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Oc(i));var o=new Sl["a"]({shape:{points:n||[]},silent:!0});return _c(e,o),wc(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Oc(i));var o=new Wo["a"]({shape:{points:n||[]},silent:!0});return _c(e,o),wc(t,o,this._defsUsePending,!1,!1),o},image:function(t,e){var n=new d["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var r=new bn["a"];return _c(e,r),wc(t,r,this._defsUsePending,!1,!0),r},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",r=new bn["a"];return _c(e,r),wc(t,r,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),r},path:function(t,e){var n=t.getAttribute("d")||"",i=Object(uc["b"])(n);return _c(e,i),wc(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),mc={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),o=parseInt(t.getAttribute("y2")||"0",10),a=new Wn["a"](e,n,i,o);return bc(t,a),xc(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),o=new hc["a"](e,n,i);return bc(t,o),xc(t,o),o}};function bc(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function xc(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),o=void 0;o=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var a={};Pc(n,a,a);var r=a.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:o,color:r})}n=n.nextSibling}}function _c(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(w["i"])(e.__inheritedStyle,t.__inheritedStyle))}function Oc(t){for(var e=Cc(t),n=[],i=0;i0;a-=2){var r=i[a],s=i[a-1],l=Cc(r);switch(o=o||Zr["c"](),s){case"translate":Zr["i"](o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Zr["h"](o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Zr["g"](o,o,-parseFloat(l[0])*Tc,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*Tc);Zr["f"](o,[1,0,c,1,0,0],o);break;case"skewY":var u=Math.tan(parseFloat(l[0])*Tc);Zr["f"](o,[1,u,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}e.setLocalTransform(o)}}var Lc=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Pc(t,e,n){var i=t.getAttribute("style");if(i){var o;Lc.lastIndex=0;while(null!=(o=Lc.exec(i))){var a=o[1],r=Object(w["q"])(pc,a)?pc[a]:null;r&&(e[r]=o[2]);var s=Object(w["q"])(fc,a)?fc[a]:null;s&&(n[s]=o[2])}}}function Nc(t,e,n){for(var i=0;in&&(t=o,n=r)}if(t)return Yc(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return Object(w["k"])(o,(function(e){"polygon"===e.type?Wc(e.exterior,n,i,t):Object(w["k"])(e.points,(function(e){Wc(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new pa["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=a,o=s,a=l,i.push([s/n,l/n])}return i}function ou(t,e){return t=eu(t),w["H"](w["n"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new Zc(a[0],a.slice(1)));break;case"MultiPolygon":w["k"](i.coordinates,(function(t){t[0]&&o.push(new Zc(t[0],t.slice(1)))}));break;case"LineString":o.push(new Uc([i.coordinates]));break;case"MultiLineString":o.push(new Uc(i.coordinates))}var r=new qc(n[e||"name"],o,n.cp);return r.properties=n,r}))}for(var au=[126,25],ru="南海诸岛",su=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],lu=0;lu0,f={api:n,geo:s,mapOrGeoModel:t,data:r,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=w["f"](),n=w["f"](),i=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,r=t.data,s=t.geo.projection,l=s&&s.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*o.scaleX+o.x,t[1]*o.scaleY+o.y]}function u(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(d=o);var p=r?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(jn["g"])(e,Object(jn["e"])(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var g=e.getTextContent();if(g&&(ju(g).ignore=g.ignore,e.textConfig&&r)){var f=e.getBoundingRect().clone();e.textConfig.layoutRect=f,e.textConfig.position=[(r[0]-f.x)/f.width*100+"%",(r[1]-f.y)/f.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Lu(t,e,n,i,o,a){t.data?t.data.setItemGraphicEl(a,e):Object(Se["a"])(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function Pu(t,e,n,i,o){t.data||wn["setTooltipConfig"]({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function Nu(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var a=i.getModel("emphasis"),r=a.get("focus");return Object(Sn["J"])(e,r,a.get("blurScope"),a.get("disabled")),t.isGeo&&Object(Sn["n"])(e,o,n),r}function Eu(t,e,n){var i,o=[];function a(){i=[]}function r(){i.length&&(o.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:r,lineStart:a,lineEnd:r,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),w["k"](t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={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"},e}(vn["b"]),Gu=Bu;function Hu(t,e){var n={};return w["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var o="ec-"+t.getName(i);n[o]=n[o]||[],isNaN(e)||n[o].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,o){for(var a,r="ec-"+t[0].getName(o),s=0,l=1/0,c=-1/0,u=n[r].length,h=0;h1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var _=t.getBoxLayoutParams();_.aspect=b,p=Eo["g"](_,{width:v,height:m})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function eh(t,e){w["k"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var nh=function(){function t(){this.dimensions=Ku}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,o){var a=t.get("map"),r=new Qu(a+o,a,w["m"]({nameMap:t.get("nameMap")},i(t)));r.zoomLimit=t.get("scaleLimit"),n.push(r),t.coordinateSystem=r,r.model=t,r.resize=th,r.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var o={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();o[e]=o[e]||[],o[e].push(t)}})),w["k"](o,(function(t,o){var a=w["H"](t,(function(t){return t.get("nameMap")})),r=new Qu(o,o,w["m"]({nameMap:w["J"](a)},i(t[0])));r.zoomLimit=w["O"].apply(null,w["H"](t,(function(t){return t.get("scaleLimit")}))),n.push(r),r.resize=th,r.resize(t[0],e),w["k"](t,(function(t){t.coordinateSystem=r,eh(r,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),a=w["f"](),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 vh(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){Oh(t);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=wh(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function mh(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function bh(t){return arguments.length?t:Ah}function xh(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function _h(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Oh(t){var e=t.children,n=e.length,i=0,o=0;while(--n>=0){var a=e[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,o+=a.hierNode.change,i+=a.hierNode.shift+o}}function wh(t,e,n,i){if(e){var o=t,a=t,r=a.parentNode.children[0],s=e,l=o.hierNode.modifier,c=a.hierNode.modifier,u=r.hierNode.modifier,h=s.hierNode.modifier;while(s=Sh(s),a=Mh(a),s&&a){o=Sh(o),r=Mh(r),o.hierNode.ancestor=t;var d=s.hierNode.prelim+h-a.hierNode.prelim-c+i(s,a);d>0&&(jh(Ih(s,t,n),t,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=a.hierNode.modifier,l+=o.hierNode.modifier,u+=r.hierNode.modifier}s&&!Sh(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),a&&!Mh(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=c-u,n=t)}return n}function Sh(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Mh(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Ih(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function jh(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function Ah(t,e){return t.parentNode===e.parentNode?1:2}var Ch=n("e263"),Dh=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),Th=function(t){function e(e){return t.call(this,e)||this}return Object(le["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Dh},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,a=n[0],r=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Object(ii["o"])(e.forkPosition,1),h=[];h[l]=o[l],h[c]=o[c]+(r[c]-o[c])*u,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=r[l],t.lineTo(h[0],h[1]),t.lineTo(r[0],r[1]);for(var d=1;dm.x,_||(x-=Math.PI));var S=_?"left":"right",M=s.getModel("label"),I=M.get("rotate"),j=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-x:j,origin:"center"}),A.setStyle("verticalAlign","middle"))}var C=s.get(["emphasis","focus"]),D="relative"===C?w["e"](r.getAncestorsIndices(),r.getDescendantIndices()):"ancestor"===C?r.getAncestorsIndices():"descendant"===C?r.getDescendantIndices():null;D&&(Object(Se["a"])(n).focus=D),Nh(o,r,u,n,g,p,f,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=r.parentNode&&t.getItemGraphicEl(r.parentNode.dataIndex);i&&i.hoverState===Sn["d"]||Object(Sn["H"])(n.__edge,e)}})}function Nh(t,e,n,i,o,a,r,s){var l=e.getModel(),c=t.get("edgeShape"),u=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),f=i.__edge;if("curve"===c)e.parentNode&&e.parentNode!==n&&(f||(f=i.__edge=new fh["a"]({shape:Vh(u,h,d,o,o)})),On["h"](f,{shape:Vh(u,h,d,a,r)},t));else if("polyline"===c)if("orthogonal"===u){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;me&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,o=t.targetNode;if(w["C"](o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function id(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function od(t,e){var n=id(t);return w["r"](n,e)>=0}function ad(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var rd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new ce["a"](n,this,this.ecModel),o=ed.createTree(e,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var r=0;o.eachNode("preorder",(function(t){t.depth>r&&(r=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return o.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,o=i.root.children[0],a=i.getNodeByDataIndex(t),r=a.getValue(),s=a.name;while(a&&a!==o)s=a.parentNode.name+"."+s,a=a.parentNode;return Object(jl["c"])("nameValue",{name:s,value:r,noValue:isNaN(r)||null==r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=ad(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={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},e}(vn["b"]),sd=rd;function ld(t,e,n){var i,o=[t],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 ud(t,e){t.eachSeriesByType("tree",(function(t){hd(t,e)}))}function hd(t,e){var n=_h(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,a=0,r=null;"radial"===i?(o=2*Math.PI,a=Math.min(n.height,n.width)/2,r=bh((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,a=n.height,r=bh());var s=t.getData().tree.root,l=s.children[0];if(l){yh(s),ld(l,vh,r),s.hierNode.modifier=-l.hierNode.prelim,cd(l,mh);var c=l,u=l,h=l;cd(l,(function(t){var e=t.getLayout().x;eu.getLayout().x&&(u=t),t.depth>h.depth&&(h=t)}));var d=c===u?1:r(c,u)/2,p=d-c.getLayout().x,g=0,f=0,y=0,v=0;if("radial"===i)g=o/(u.getLayout().x+d+p),f=a/(h.depth-1||1),cd(l,(function(t){y=(t.getLayout().x+p)*g,v=(t.depth-1)*f;var e=xh(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(f=a/(u.getLayout().x+d+p),g=o/(h.depth-1||1),cd(l,(function(t){v=(t.getLayout().x+p)*f,y="LR"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(g=o/(u.getLayout().x+d+p),f=a/(h.depth-1||1),cd(l,(function(t){y=(t.getLayout().x+p)*g,v="TB"===m?(t.depth-1)*f:a-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)})))}}}function dd(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(w["m"])(o,i)}))}))}function pd(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,o=lh(i,t,void 0,n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom)}))}))}function gd(t){t.registerChartView(Bh),t.registerSeriesModel(sd),t.registerLayout(ud),t.registerVisual(dd),pd(t)}var fd=["treemapZoomToNode","treemapRender","treemapMove"];function yd(t){for(var e=0;e1)n=n.parentNode;var o=Object(vd["b"])(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",o)}))}var bd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};xd(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},a=new ce["a"]({itemStyle:o},this,e);i=t.levels=_d(i,e);var r=w["H"](i||[],(function(t){return new ce["a"](t,a,e)}),this),s=ed.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?r[n.depth]:null;return t.parentModel=i||a,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),a=i.getName(t);return Object(jl["c"])("nameValue",{name:a,value:o})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=ad(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},w["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=w["f"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){md(this)},e.type="series.treemap",e.layoutMode="box",e.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,scaleLimit:null,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"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},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%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(vn["b"]);function xd(t){var e=0;w["k"](t.children,(function(t){xd(t);var n=t.value;w["t"](n)&&(n=n[0]),e+=n}));var n=t.value;w["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),w["t"](t.value)?t.value[0]=n:t.value=n}function _d(t,e){var n=Object(we["r"])(e.get("color")),i=Object(we["r"])(e.get(["aria","decal","decals"]));if(n){var o,a;t=t||[],w["k"](t,(function(t){var e=new ce["a"](t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(o=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(a=!0)}));var r=t[0]||(t[0]={});return o||(r.color=n.slice()),!a&&i&&(r.decal=i.slice()),t}}var Od=bd,wd=8,Sd=8,Md=5,Id=function(){function t(t){this.group=new bn["a"],t.add(this.group)}return t.prototype.render=function(t,e,n,i){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&n){var r=o.getModel("itemStyle"),s=o.getModel("emphasis"),l=r.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,r,s,l,c,i),Eo["i"](a,u.pos,u.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=Object(we["e"])(i.getModel().get("name"),""),a=n.getTextRect(o),r=Math.max(a.width+2*wd,e.emptyItemWidth);e.totalWidth+=r+Sd,e.renderList.push({node:i,text:o,width:r})}},t.prototype._renderContent=function(t,e,n,i,o,a,r){for(var s=0,l=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),u=Eo["e"](e.pos,e.box),h=e.totalWidth,d=e.renderList,p=i.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var f=d[g],y=f.node,v=f.width,m=f.text;h>u.width&&(h-=v-l,v=l,m=null);var b=new Sl["a"]({shape:{points:jd(s,0,v,c,g===d.length-1,0===g)},style:Object(w["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new st["a"]({style:Object(jn["c"])(o,{text:m})}),textConfig:{position:"inside"},z2:1e4*Sn["j"],onclick:Object(w["h"])(r,y)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Object(jn["c"])(a,{text:m}),b.ensureState("emphasis").style=p,Object(Sn["J"])(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),Ad(b,t,y),s+=v+Sd}},t.prototype.remove=function(){this.group.removeAll()},t}();function jd(t,e,n,i,o,a){var r=[[o?t:t-Md,e],[t+n,e],[t+n,e+i],[o?t:t-Md,e+i]];return!a&&r.splice(2,0,[t+n+Md,e+i/2]),!o&&r.push([t,e+i/2]),r}function Ad(t,e,n){Object(Se["a"])(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ad(n,e)}}var Cd=Id,Dd=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;iNd||Math.abs(t.dy)>Nd)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var o=this.seriesModel.getData().tree.root;if(!o)return;var a=o.getLayout();if(!a)return;var r=new pa["a"](a.x,a.y,a.width,a.height),s=null,l=this._controllerHost;s=l.zoomLimit;var c=l.zoom=l.zoom||1;if(c*=i,s){var u=s.min||0,h=s.max||1/0;c=Math.max(Math.min(h,c),u)}var d=c/l.zoom;l.zoom=c;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var g=Zr["c"]();Zr["i"](g,g,[-e,-n]),Zr["h"](g,g,[d,d]),Zr["i"](g,g,[e,n]),r.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var o=i.node;if(o.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._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(li["i"])(r,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Cd(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(od(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Yd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){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(t,e),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},e.type="treemap",e}(ti["a"]);function Yd(){return{nodeGroup:[],background:[],content:[]}}function Xd(t,e,n,i,o,a,r,s,l,c){if(r){var u=r.getLayout(),h=t.getData(),d=r.getModel();if(h.setItemGraphicEl(r.dataIndex,null),u&&u.isInView){var p=u.width,g=u.height,f=u.borderWidth,y=u.invisible,v=r.getRawIndex(),m=s&&s.getRawIndex(),b=r.viewChildren,x=u.upperHeight,_=b&&b.length,O=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),j=O.get("borderRadius")||0,A=G("nodeGroup",Ld);if(A){if(l.add(A),A.x=u.x||0,A.y=u.y||0,A.markRedraw(),Fd(A).nodeWidth=p,Fd(A).nodeHeight=g,u.isAboveViewRoot)return A;var C=G("background",Pd,c,Vd);C&&E(A,C,_&&u.upperLabelHeight);var D=d.getModel("emphasis"),T=D.get("focus"),k=D.get("blurScope"),L=D.get("disabled"),P="ancestor"===T?r.getAncestorsIndices():"descendant"===T?r.getDescendantIndices():T;if(_)Object(Sn["y"])(A)&&Object(Sn["F"])(A,!1),C&&(Object(Sn["F"])(C,!L),h.setItemGraphicEl(r.dataIndex,C),Object(Sn["p"])(C,P,k));else{var N=G("content",Pd,c,Bd);N&&R(A,N),C.disableMorphing=!0,C&&Object(Sn["y"])(C)&&Object(Sn["F"])(C,!1),Object(Sn["F"])(A,!L),h.setItemGraphicEl(r.dataIndex,A),Object(Sn["p"])(A,P,k)}return A}}}function E(e,n,i){var o=Object(Se["a"])(n);if(o.dataIndex=r.dataIndex,o.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:g,r:j}),y)z(n);else{n.invisible=!1;var a=r.getVisual("style"),s=a.stroke,l=Hd(O);l.fill=s;var c=Gd(S);c.fill=S.get("borderColor");var u=Gd(M);u.fill=M.get("borderColor");var h=Gd(I);if(h.fill=I.get("borderColor"),i){var d=p-2*f;V(n,s,a.opacity,{x:f,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,Object(Sn["G"])(n)}e.add(n)}function R(e,n){var i=Object(Se["a"])(n);i.dataIndex=r.dataIndex,i.seriesIndex=t.seriesIndex;var o=Math.max(p-2*f,0),a=Math.max(g-2*f,0);if(n.culling=!0,n.setShape({x:f,y:f,width:o,height:a,r:j}),y)z(n);else{n.invisible=!1;var s=r.getVisual("style"),l=s.fill,c=Hd(O);c.fill=l,c.decal=s.decal;var u=Gd(S),h=Gd(M),d=Gd(I);V(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(Sn["G"])(n)}e.add(n)}function z(t){!t.invisible&&a.push(t)}function V(e,n,i,o){var a=d.getModel(o?Rd:Ed),s=Object(we["e"])(d.get("name"),null),l=a.getShallow("show");Object(jn["g"])(e,Object(jn["e"])(d,o?Rd:Ed),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:r.dataIndex});var c=e.getTextContent();if(c){var h=c.style,p=Object(w["M"])(h.padding||0);o&&(e.setTextConfig({layoutRect:o}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var t=Math.max((o?o.width:e.shape.width)-p[1]-p[3],0),n=Math.max((o?o.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||c.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,o,u);var g=c.getState("emphasis");B(g?g.style:null,o,u)}}function B(e,n,i){var o=e?e.text:null;if(!n&&i.isLeafRoot&&null!=o){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+o:o}}function G(t,i,a,r){var s=null!=m&&n[t][m],l=o[t];return s?(n[t][m]=null,H(l,s)):y||(s=new i,s instanceof Ou["c"]&&(s.z2=Zd(a,r)),F(l,s)),e[t][v]=s}function H(t,e){var n=t[v]={};e instanceof Ld?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(w["m"])({},e.shape)}function F(t,e){var n=t[v]={},a=r.parentNode,s=e instanceof bn["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 Zd(t,e){return t*zd+e}var Ud=Wd,qd=n("edae"),Kd=w["k"],Jd=w["A"],$d=-1,Qd=function(){function t(e){var n=e.mappingMethod,i=e.type,o=this.option=w["d"](e);this.type=i,this.mappingMethod=n,this._normalizeData=hp[n];var a=t.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(np(o),tp(o)):"category"===n?o.categories?ep(o):np(o,!0):(w["b"]("linear"!==n||o.dataExtent),np(o))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return w["c"](this._normalizeData,this)},t.listVisualTypes=function(){return w["F"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){w["A"](t)?w["k"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var o,a=w["t"](e)?[]:w["A"](e)?{}:(o=!0,null);return t.eachVisual(e,(function(t,e){var r=n.call(i,t,e);o?a=r:a[e]=r})),a},t.retrieveVisuals=function(e){var n,i={};return e&&Kd(t.visualHandlers,(function(t,o){e.hasOwnProperty(o)&&(i[o]=e[o],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(w["t"](t))t=t.slice();else{if(!Jd(t))return[];var e=[];Kd(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,o=1/0,a=0,r=e.length;a=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function np(t,e){var n=t.visual,i=[];w["A"](n)?Kd(n,(function(t){i.push(t)})):null!=n&&i.push(n);var o={color:1,symbol:1};e||1!==i.length||o.hasOwnProperty(t.type)||(i[1]=i[0]),up(t,i)}function ip(t){return{applyVisual:function(e,n,i){var o=this.mapValueToVisual(e);i("color",t(n("color"),o))},_normalizedToVisual:lp([0,1])}}function op(t){var e=this.option.visual;return e[Math.round(Object(ii["k"])(t,[0,1],[0,e.length-1],!0))]||{}}function ap(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function rp(t){var e=this.option.visual;return e[this.option.loop&&t!==$d?t%e.length:t]}function sp(){return this.option.visual[0]}function lp(t){return{linear:function(e){return Object(ii["k"])(e,t,this.option.visual,!0)},category:rp,piecewise:function(e,n){var i=cp.call(this,n);return null==i&&(i=Object(ii["k"])(e,t,this.option.visual,!0)),i},fixed:sp}}function cp(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=Qd.findPieceIndex(t,n),o=n[i];if(o&&o.visual)return o.visual[this.type]}}function up(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=w["H"](e,(function(t){var e=ct["h"](t);return e||[0,0,0,1]}))),e}var hp={linear:function(t){return Object(ii["k"])(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Qd.findPieceIndex(t,e,!0);if(null!=n)return Object(ii["k"])(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?$d:e},fixed:w["L"]};function dp(t,e,n){return t?e<=n:e=n.length||t===n[t.depth]){var a=Sp(o,c,t,e,g,i);vp(t,a,n,i)}}))}else s=bp(c),u.fill=s}}function mp(t,e,n){var i=Object(w["m"])({},e),o=n.designatedVisualItemStyle;return Object(w["k"])(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var a=t.get(n);o[n]=null,null!=a&&(i[n]=a)})),i}function bp(t){var e=_p(t,"color");if(e){var n=_p(t,"colorAlpha"),i=_p(t,"colorSaturation");return i&&(e=Object(ct["g"])(e,null,null,i)),n&&(e=Object(ct["f"])(e,n)),e}}function xp(t,e){return null!=e?Object(ct["g"])(e,null,null,t):null}function _p(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function Op(t,e,n,i,o,a){if(a&&a.length){var r=wp(e,"color")||null!=o.color&&"none"!==o.color&&(wp(e,"colorAlpha")||wp(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=e.get("colorMappingBy"),h={type:r.name,dataExtent:c,visual:r.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new pp(h);return fp(d).drColorMappingBy=u,d}}}function wp(t,e){var n=t.get(e);return Object(w["t"])(n)&&n.length?{name:e,range:n}:null}function Sp(t,e,n,i,o,a){var r=Object(w["m"])({},e);if(o){var s=o.type,l="color"===s&&fp(o).drColorMappingBy,c="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));r[s]=o.mapValueToVisual(c)}return r}var Mp=Math.max,Ip=Math.min,jp=w["O"],Ap=w["k"],Cp=["itemStyle","borderWidth"],Dp=["itemStyle","gapWidth"],Tp=["upperLabel","show"],kp=["upperLabel","height"],Lp={seriesType:"treemap",reset:function(t,e,n,i){var o=n.getWidth(),a=n.getHeight(),r=t.option,s=Eo["g"](t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=r.size||[],c=Object(ii["o"])(jp(s.width,l[0]),o),u=Object(ii["o"])(jp(s.height,l[1]),a),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=nd(i,d,t),g="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),y=id(f);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Gp(t,p,f,c,u):g?[g.width,g.height]:[c,u],m=r.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var b={squareRatio:r.squareRatio,sort:m,leafDepth:r.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};f.setLayout(x),Pp(f,b,!1,0),x=f.getLayout(),Ap(y,(function(t,e){var n=(y[e+1]||f).getValue();t.setLayout(w["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(Hp(s,g,p),!0),t.setLayoutInfo(s),Fp(_,new pa["a"](-s.x,-s.y,o,a),y,f,0)}};function Pp(t,e,n,i){var o,a;if(!t.isRemoved()){var r=t.getLayout();o=r.width,a=r.height;var s=t.getModel(),l=s.get(Cp),c=s.get(Dp)/2,u=Wp(s),h=Math.max(l,u),d=l-c,p=h-c;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),o=Mp(o-2*d,0),a=Mp(a-d-p,0);var g=o*a,f=Np(t,s,g,e,n,i);if(f.length){var y={x:d,y:p,width:o,height:a},v=Ip(o,a),m=1/0,b=[];b.area=0;for(var x=0,_=f.length;x<_;){var O=f[x];b.push(O),b.area+=O.getLayout().area;var w=Vp(b,v,e.squareRatio);w<=m?(x++,m=w):(b.area-=b.pop().getLayout().area,Bp(b,v,y,c,!1),v=Ip(y.width,y.height),b.length=b.area=0,m=1/0)}if(b.length&&Bp(b,v,y,c,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&g=0;l--){var c=o["asc"===i?r-l-1:l].getValue();c/n*er[1]&&(r[1]=e)}))):r=[NaN,NaN],{sum:i,dataExtent:r}}function Vp(t,e,n){for(var i=0,o=1/0,a=0,r=void 0,s=t.length;ai&&(i=r));var l=t.area*t.area,c=e*e*n;return l?Mp(c*i/l,l/(c*o)):1/0}function Bp(t,e,n,i,o){var a=e===n.width?0:1,r=1-a,s=["x","y"],l=["width","height"],c=n[s[a]],u=e?t.area/e:0;(o||u>n[l[r]])&&(u=n[l[r]]);for(var h=0,d=t.length;hii["a"]&&(c=ii["a"]),r=a}ci&&(i=e);var a=i%2?i+2:i+3;o=[];for(var r=0;r0&&(m[0]=-m[0],m[1]=-m[1]);var x=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(v[1],v[0]);c[0].8?"left":u[0]<-.8?"right":"center",d=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],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=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]+O,h=v[0]<0?"right":"left",i.originX=-g*x,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+O,h="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*x+c[0],i.y=c[1]+O,h=v[0]>=0?"right":"left",i.originX=g*x,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=r.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(bn["a"]),Eg=Ng,Rg=function(){function t(t){this.group=new bn["a"],this._LineCtor=t||Eg}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,o=n._lineData;n._lineData=t,o||i.removeAll();var a=Vg(t);t.diff(o).add((function(n){e._doAdd(t,n,a)})).update((function(n,i){e._doUpdate(o,t,i,n,a)})).remove((function(t){i.remove(o.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Vg(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||zg(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i0}function Vg(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(jn["e"])(e)}}function Bg(t){return isNaN(t[0])||isNaN(t[1])}function Gg(t){return t&&!Bg(t[0])&&!Bg(t[1])}var Hg=Rg,Fg=[],Wg=[],Yg=[],Xg=Yn["h"],Zg=Ur["g"],Ug=Math.abs;function qg(t,e,n){for(var i,o=t[0],a=t[1],r=t[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Fg[0]=Xg(o[0],a[0],r[0],u),Fg[1]=Xg(o[1],a[1],r[1],u);var h=Ug(Zg(Fg,e)-l);h=0?i+=c:i-=c:g>=0?i-=c:i+=c}return i}function Kg(t,e){var n=[],i=Yn["n"],o=[[],[],[]],a=[[],[]],r=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),c=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");l.__original||(l.__original=[Ur["c"](l[0]),Ur["c"](l[1])],l[2]&&l.__original.push(Ur["c"](l[2])));var h=l.__original;if(null!=l[2]){if(Ur["d"](o[0],h[0]),Ur["d"](o[1],h[2]),Ur["d"](o[2],h[1]),c&&"none"!==c){var d=hg(t.node1),p=qg(o,h[0],d*e);i(o[0][0],o[1][0],o[2][0],p,n),o[0][0]=n[3],o[1][0]=n[4],i(o[0][1],o[1][1],o[2][1],p,n),o[0][1]=n[3],o[1][1]=n[4]}if(u&&"none"!==u){d=hg(t.node2),p=qg(o,h[1],d*e);i(o[0][0],o[1][0],o[2][0],p,n),o[1][0]=n[1],o[2][0]=n[2],i(o[0][1],o[1][1],o[2][1],p,n),o[1][1]=n[1],o[2][1]=n[2]}Ur["d"](l[0],o[0]),Ur["d"](l[1],o[2]),Ur["d"](l[2],o[1])}else{if(Ur["d"](a[0],h[0]),Ur["d"](a[1],h[1]),Ur["q"](r,a[1],a[0]),Ur["m"](r,r),c&&"none"!==c){d=hg(t.node1);Ur["o"](a[0],a[0],r,d*e)}if(u&&"none"!==u){d=hg(t.node2);Ur["o"](a[1],a[1],r,-d*e)}Ur["d"](l[0],a[0]),Ur["d"](l[1],a[1])}}))}function Jg(t){return"view"===t.type}var $g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){var n=new Nn,i=new Hg,o=this.group;this._controller=new ic(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem;this._model=t;var a=this._symbolDraw,r=this._lineDraw,s=this.group;if(Jg(o)){var l={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?s.attr(l):On["h"](s,l,t)}Kg(t.getGraph(),ug(t));var c=t.getData();a.updateData(c);var u=t.getEdgeData();r.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");c.graph.eachNode((function(e){var n=e.dataIndex,o=e.getGraphicEl(),a=e.getModel();if(o){o.off("drag").off("dragend");var r=a.get("draggable");r&&o.on("drag",(function(a){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[o.x,o.y]);break;case"circular":c.setItemLayout(n,[o.x,o.y]),e.setLayout({fixed:!0},!0),gg(t,"symbolSize",e,[a.offsetX,a.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(n,[o.x,o.y]),lg(t.getGraph(),t),i.updateLayout(t);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),o.setDraggable(r,!!a.get("cursor"));var s=a.get(["emphasis","focus"]);"adjacency"===s&&(Object(Se["a"])(o).focus=e.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Object(Se["a"])(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),f=c.getLayout("cx"),y=c.getLayout("cy");c.graph.eachNode((function(t){yg(t,g,f,y)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},e.prototype._updateController=function(t,e,n){var i=this,o=this._controller,a=this._controllerHost,r=this.group;o.setPointerChecker((function(e,i,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(i,o)&&!sc(e,n,t)})),Jg(t.coordinateSystem)?(o.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){oc(a,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ac(a,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),Kg(t.getGraph(),ug(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=ug(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){Kg(t.getGraph(),ug(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(ti["a"]),Qg=$g;function tf(t){return"_EC_"+t}var ef=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[tf(t)]){var i=new nf(t,e);return i.hostGraph=this,this.nodes.push(i),n[tf(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[tf(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if(w["z"](t)&&(t=this.nodes[t]),w["z"](e)&&(e=this.nodes[e]),t instanceof nf||(t=i[tf(t)]),e instanceof nf||(e=i[tf(e)]),t&&e){var a=t.id+"-"+e.id,r=new of(t,e,n);return r.hostGraph=this,this._directed&&(t.outEdges.push(r),e.inEdges.push(r)),t.edges.push(r),t!==e&&e.edges.push(r),this.edges.push(r),o[a]=r,r}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof nf&&(t=t.id),e instanceof nf&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o=0&&t.call(e,n[o],o)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&t.call(e,n[o],o)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof nf||(e=this._nodesMap[tf(e)]),e){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[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}w["K"](nf,af("hostGraph","data")),w["K"](of,af("hostGraph","edgeData"));var rf=ef;function sf(t,e,n,i,o){for(var a=new rf(i),r=0;r "+d)),c++)}var p,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=yn(t,n);else{var f=en["a"].get(g),y=f&&f.dimensions||[];w["r"](y,"value")<0&&y.concat(["value"]);var v=Je(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;p=new qe(v,n),p.initData(t)}var m=new qe(["value"],n);return m.initData(l,s),o&&o(p,m),Jh({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var lf=n("f6d8"),cf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new aa(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(we["f"])(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){og(this);var a=sf(i,n,this,!0,r);return w["k"](a.edges,(function(t){ag(t.node1,t.node2,this,t.dataIndex)}),this),a.data}function r(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=ce["a"].prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=a,i}function a(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=a,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),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(jl["c"])("nameValue",{name:l.join(" > "),value:o.value,noValue:null==o.value})}var c=Object(lf["a"])({series:this,dataIndex:t,multipleSeries:e});return c},e.prototype._updateCategoriesData=function(){var t=w["H"](this.option.categories||[],(function(t){return null!=t.value?t:w["m"]({value:0},t)})),e=new qe(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={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"}}},e}(vn["b"]),uf=cf,hf={type:"graphRoam",event:"graphRoam",update:"none"};function df(t){t.registerChartView(Qg),t.registerSeriesModel(uf),t.registerProcessor(Xp),t.registerVisual(Zp),t.registerVisual(qp),t.registerLayout(cg),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,vg),t.registerLayout(xg),t.registerCoordinateSystem("graphView",{dimensions:Uu.dimensions,create:Og}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},w["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},w["L"]),t.registerAction(hf,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,o=lh(i,t,void 0,n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom)}))}))}var pf=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),gf=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new pf},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,a=e.width,r=e.angle,s=e.x-n(r)*a*(a>=o/3?1:2),l=e.y-i(r)*a*(a>=o/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(r)*a,e.y+i(r)*a),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(r)*a,e.y-i(r)*a),t.lineTo(s,l)},e}(h["b"]),ff=gf;function yf(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),a=Math.min(i,o),r=Object(ii["o"])(n[0],e.getWidth()),s=Object(ii["o"])(n[1],e.getHeight()),l=Object(ii["o"])(t.get("radius"),a/2);return{cx:r,cy:s,r:l}}function vf(t,e){var n=null==t?"":t+"";return e&&(Object(w["C"])(e)?n=e.replace("{value}",n):Object(w["w"])(e)&&(n=e(t))),n}var mf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=yf(t,n);this._renderMain(t,e,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,o){var a=this.group,r=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),u=c.get("roundCap"),h=u?no:ni["a"],d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=[s,l];Object(Z["b"])(f,!r),s=f[0],l=f[1];for(var y=l-s,v=s,m=[],b=0;d&&b=t&&(0===e?0:i[e-1][0])Math.PI/2&&(V+=Math.PI)):"tangential"===z?V=-M-Math.PI/2:Object(w["z"])(z)&&(V=z*Math.PI/180),0===V?h.add(new st["a"]({style:Object(jn["c"])(b,{text:P,x:E,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0})):h.add(new st["a"]({style:Object(jn["c"])(b,{text:P,x:E,y:R,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:E,originY:R,rotation:V}))}if(m.get("show")&&T!==x){k=m.get("distance");k=k?k+l:l;for(var B=0;B<=_;B++){c=Math.cos(M),u=Math.sin(M);var G=new Ls["a"]({shape:{x1:c*(g-k)+d,y1:u*(g-k)+p,x2:c*(g-S-k)+d,y2:u*(g-S-k)+p},silent:!0,style:C});"auto"===C.stroke&&G.setStyle({stroke:i((T+B/_)/x)}),h.add(G),M+=j}M-=j}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,o,a,r,s,l){var c=this.group,u=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),f=t.getModel("progress"),y=f.get("show"),v=t.getData(),m=v.mapDimension("value"),b=+t.get("min"),x=+t.get("max"),_=[b,x],O=[a,r];function S(e,n){var i,a=v.getItemModel(e),r=a.getModel("pointer"),s=Object(ii["o"])(r.get("width"),o.r),l=Object(ii["o"])(r.get("length"),o.r),c=t.get(["pointer","icon"]),u=r.get("offsetCenter"),h=Object(ii["o"])(u[0],o.r),d=Object(ii["o"])(u[1],o.r),p=r.get("keepAspect");return i=c?Object(mn["a"])(c,h-s/2,d-l,s,l,null,p):new ff({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function M(t,e){var n=f.get("roundCap"),i=n?no:ni["a"],r=f.get("overlap"),c=r?f.get("width"):l/v.count(),u=r?o.r-c:o.r-(t+1)*c,h=r?o.r:o.r-t*c,d=new i({shape:{startAngle:a,endAngle:e,cx:o.cx,cy:o.cy,clockwise:s,r0:u,r:h}});return r&&(d.z2=x-v.get(m,t)%x),d}(y||g)&&(v.diff(u).add((function(e){var n=v.get(m,e);if(g){var i=S(e,a);On["c"](i,{rotation:-((isNaN(+n)?O[0]:Object(ii["k"])(n,_,O,!0))+Math.PI/2)},t),c.add(i),v.setItemGraphicEl(e,i)}if(y){var o=M(e,a),r=f.get("clip");On["c"](o,{shape:{endAngle:Object(ii["k"])(n,_,O,r)}},t),c.add(o),Object(Se["b"])(t.seriesIndex,v.dataType,e,o),p[e]=o}})).update((function(e,n){var i=v.get(m,e);if(g){var o=u.getItemGraphicEl(n),r=o?o.rotation:a,s=S(e,r);s.rotation=r,On["h"](s,{rotation:-((isNaN(+i)?O[0]:Object(ii["k"])(i,_,O,!0))+Math.PI/2)},t),c.add(s),v.setItemGraphicEl(e,s)}if(y){var l=h[n],d=l?l.shape.endAngle:a,b=M(e,d),x=f.get("clip");On["h"](b,{shape:{endAngle:Object(ii["k"])(i,_,O,x)}},t),c.add(b),Object(Se["b"])(t.seriesIndex,v.dataType,e,b),p[e]=b}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),o=n.get("focus"),a=n.get("blurScope"),r=n.get("disabled");if(g){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),c=l.fill;if(s instanceof d["a"]){var u=s.style;s.useStyle(Object(w["m"])({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Object(ii["k"])(v.get(m,t),_,[0,1],!0))),s.z2EmphasisLift=0,Object(Sn["I"])(s,e),Object(Sn["J"])(s,o,a,r)}if(y){var h=p[t];h.useStyle(v.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Object(Sn["I"])(h,e),Object(Sn["J"])(h,o,a,r)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.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(mn["a"])(a,e.cx-o/2+Object(ii["o"])(r[0],e.r),e.cy-o/2+Object(ii["o"])(r[1],e.r),o,o,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,o){var a=this,r=t.getData(),s=r.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),u=new bn["a"],h=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);r.diff(this._data).add((function(t){h[t]=new st["a"]({silent:!0}),d[t]=new st["a"]({silent:!0})})).update((function(t,e){h[t]=a._titleEls[e],d[t]=a._detailEls[e]})).execute(),r.each((function(e){var n=r.getItemModel(e),a=r.get(s,e),f=new bn["a"],y=i(Object(ii["k"])(a,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),b=o.cx+Object(ii["o"])(m[0],o.r),x=o.cy+Object(ii["o"])(m[1],o.r),_=h[e];_.attr({z2:g?0:2,style:Object(jn["c"])(v,{x:b,y:x,text:r.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),f.add(_)}var O=n.getModel("detail");if(O.get("show")){var w=O.get("offsetCenter"),S=o.cx+Object(ii["o"])(w[0],o.r),M=o.cy+Object(ii["o"])(w[1],o.r),I=Object(ii["o"])(O.get("width"),o.r),j=Object(ii["o"])(O.get("height"),o.r),A=t.get(["progress","show"])?r.getItemVisual(e,"style").fill:y,C=(_=d[e],O.get("formatter"));_.attr({z2:g?0:2,style:Object(jn["c"])(O,{x:S,y:M,text:vf(a,C),width:isNaN(I)?null:I,height:isNaN(j)?null:j,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Object(jn["h"])(_,{normal:O},a,(function(t){return vf(t,C)})),p&&Object(jn["a"])(_,e,r,t,{getFormattedLabel:function(t,e,n,i,o,r){return vf(r?r.interpolatedValue:a,C)}}),f.add(_)}u.add(f)})),this.group.add(u),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(ti["a"]),bf=mf,xf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return ia(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",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,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!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}},e}(vn["b"]),_f=xf;function Of(t){t.registerChartView(bf),t.registerSeriesModel(_f)}var wf=["itemStyle","opacity"],Sf=function(t){function e(e,n){var i=t.call(this)||this,o=i,a=new Wo["a"],r=new st["a"];return o.setTextContent(r),i.setTextGuideLine(a),i.updateData(e,n,!0),i}return Object(le["a"])(e,t),e.prototype.updateData=function(t,e,n){var i=this,o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e),s=a.getModel("emphasis"),l=a.get(wf);l=null==l?1:l,n||Object(On["g"])(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:r.points}),i.style.opacity=0,On["c"](i,{style:{opacity:l}},o,e)):On["h"](i,{style:{opacity:l},shape:{points:r.points}},o,e),Object(Sn["I"])(i,a),this._updateLabel(t,e),Object(Sn["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),a=t.hostModel,r=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,c=t.getItemVisual(e,"style"),u=c.fill;Object(jn["g"])(o,Object(jn["e"])(r),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:c.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Yo["a"](h[0][0],h[0][1]):null},On["h"](o,{style:{x:l.x,y:l.y}},a,e),o.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Xo["d"])(n,Object(Xo["a"])(r),{stroke:u})},e}(Sl["a"]),Mf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._data,a=this.group;i.diff(o).add((function(t){var e=new Sf(i,t);i.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(i,t),a.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=o.getItemGraphicEl(e);On["f"](n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ti["a"]),If=Mf,jf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new aa(w["c"](this.getData,this),w["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return ia(this,{coordDimensions:["value"],encodeDefaulter:w["h"](Ke["d"],this)})},e.prototype._defaultLabelLine=function(t){Object(we["f"])(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),o=n.mapDimension("value"),a=n.getSum(o);return i.percent=a?+(n.get(o,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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"}}},e}(vn["b"]),Af=jf;function Cf(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Df(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),o=[],a="ascending"===e,r=0,s=t.count();rQf)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ny(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function ny(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var iy=ty,oy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&w["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){w["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=w["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);w["k"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={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},e}(Oa["a"]),ay=oy,ry=function(t){function e(e,n,i,o,a){var r=t.call(this,e,n,i)||this;return r.type=o||"value",r.axisIndex=a,r}return Object(le["a"])(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(bs),sy=ry;function ly(t,e,n,i,o,a){t=t||0;var r=n[1]-n[0];if(null!=o&&(o=uy(o,[0,r])),null!=a&&(a=Math.max(a,null!=o?o:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=uy(s,[0,r]),o=a=uy(s,[o,a]),i=0}e[0]=uy(e[0],n),e[1]=uy(e[1],n);var l=cy(e,i);e[i]+=t;var c,u=o||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,e[i]=uy(e[i],h),c=cy(e,i),null!=o&&(c.sign!==l.sign||c.spana&&(e[1-i]=e[i]+c.sign*a),e}function cy(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function uy(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var hy=w["k"],dy=Math.min,py=Math.max,gy=Math.floor,fy=Math.ceil,yy=ii["u"],vy=Math.PI,my=function(){function t(t,e,n){this.type="parallel",this._axesMap=w["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,o=t.parallelAxisIndex;hy(i,(function(t,n){var i=o[n],a=e.getComponent("parallelAxis",i),r=this._axesMap.set(t,new sy(t,Nr(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)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],r=t[o];return a>=n&&a<=n+e.axisLength&&r>=i&&r<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();hy(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),Pr(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],o=["width","height"],a=e.get("layout"),r="horizontal"===a?0:1,s=n[o[r]],l=[0,s],c=this.dimensions.length,u=by(e.get("axisExpandWidth"),l),h=by(e.get("axisExpandCount")||0,[0,c]),d=e.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=e.get("axisExpandWindow");if(p)t=by(p[1]-p[0],l),p[1]=p[0]+t;else{t=by(u*(h-1),l);var g=e.get("axisExpandCenter")||gy(c/2);p=[u*g-t/2],p[1]=p[0]+t}var f=(s-t)/(c-h);f<3&&(f=0);var y=[gy(yy(p[0]/u,1))+1,fy(yy(p[1]/u,1))-1],v=f/u*p[0];return{layout:a,pixelDimIndex:r,layoutBase:n[i[r]],layoutLength:s,axisBase:n[i[1-r]],axisLength:n[o[1-r]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:p,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),hy(n,(function(e,n){var a=(i.axisExpandable?_y:xy)(n,i),r={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},s={horizontal:vy/2,vertical:0},l=[r[o].x+t.x,r[o].y+t.y],c=s[o],u=Zr["c"]();Zr["g"](u,u,c),Zr["i"](u,u,l),this._axesLayout[e]={position:l,rotation:c,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var o=this._axesMap,a=this.dimensions,r=[],s=[];w["k"](a,(function(e){r.push(t.mapDimension(e)),s.push(o.get(e).model)}));for(var l=this.hasAxisBrushed(),c=n;co*(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*=e.axisExpandWidth/c,r?ly(r,i,a,"all"):l="none";else{var d=i[1]-i[0],p=a[1]*s/d;i=[py(0,p-d/2)],i[1]=dy(a[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function by(t,e){return dy(py(t,e[0]),e[1])}function xy(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function _y(t,e){var n,i,o=e.layoutLength,a=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;return t=0;n--)ii["c"](e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;iLy}function $y(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Qy(t,e,n,i){var o=new bn["a"];return o.add(new ei["a"]({name:"main",style:iv(n),silent:!0,draggable:!0,cursor:"move",drift:Object(w["h"])(lv,t,e,o,["n","s","w","e"]),ondragend:Object(w["h"])(Ky,e,{isEnd:!0})})),Object(w["k"])(i,(function(n){o.add(new ei["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(w["h"])(lv,t,e,o,n),ondragend:Object(w["h"])(Ky,e,{isEnd:!0})}))})),o}function tv(t,e,n,i){var o=i.brushStyle.lineWidth||0,a=Dy(o,Py),r=n[0][0],s=n[1][0],l=r-o/2,c=s-o/2,u=n[0][1],h=n[1][1],d=u-a+o/2,p=h-a+o/2,g=u-r,f=h-s,y=g+o,v=f+o;nv(t,e,"main",r,s,g,f),i.transformable&&(nv(t,e,"w",l,c,a,v),nv(t,e,"e",d,c,a,v),nv(t,e,"n",l,c,y,a),nv(t,e,"s",l,p,y,a),nv(t,e,"nw",l,c,a,a),nv(t,e,"ne",d,c,a,a),nv(t,e,"sw",l,p,a,a),nv(t,e,"se",d,p,a,a))}function ev(t,e){var n=e.__brushOption,i=n.transformable,o=e.childAt(0);o.useStyle(iv(n)),o.attr({silent:!i,cursor:i?"move":"default"}),Object(w["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=e.childOfName(n.join("")),a=1===n.length?rv(t,n[0]):sv(t,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?Ry[a]+"-resize":null})}))}function nv(t,e,n,i,o,a,r){var s=e.childOfName(n);s&&s.setShape(dv(hv(t,e,[[i,o],[i+a,o+r]])))}function iv(t){return Object(w["i"])({strokeNoScale:!0},t.brushStyle)}function ov(t,e,n,i){var o=[Cy(t,n),Cy(e,i)],a=[Dy(t,n),Dy(e,i)];return[[o[0],a[0]],[o[1],a[1]]]}function av(t){return wn["getTransform"](t.group)}function rv(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=wn["transformDirection"](n[e],av(t));return i[o]}function sv(t,e){var n=[rv(t,e[0]),rv(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function lv(t,e,n,i,o,a){var r=n.__brushOption,s=t.toRectRange(r.range),l=uv(e,o,a);Object(w["k"])(i,(function(t){var e=Ey[t];s[e[0]][e[1]]+=l[e[0]]})),r.range=t.fromRectRange(ov(s[0][0],s[1][0],s[0][1],s[1][1])),Yy(e,n),Ky(e,{isEnd:!1})}function cv(t,e,n,i){var o=e.__brushOption.range,a=uv(t,n,i);Object(w["k"])(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),Yy(t,e),Ky(t,{isEnd:!1})}function uv(t,e,n){var i=t.group,o=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function hv(t,e,n){var i=Uy(t,e);return i&&i!==Ay?i.clipPath(n,t._transform):Object(w["d"])(n)}function dv(t){var e=Cy(t[0][0],t[1][0]),n=Cy(t[0][1],t[1][1]),i=Dy(t[0][0],t[1][0]),o=Dy(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:o-n}}function pv(t,e,n){if(t._brushType&&!xv(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,a=Zy(t,e,n);if(!t._dragging)for(var r=0;ri.getWidth()||n<0||n>i.getHeight()}var _v={lineX:Ov(0),lineY:Ov(1),rect:{createCover:function(t,e){function n(t){return t}return Qy({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=$y(t);return ov(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){tv(t,e,n,i)},updateCommon:ev,contain:fv},polygon:{createCover:function(t,e){var n=new bn["a"];return n.add(new Wo["a"]({name:"main",style:iv(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Sl["a"]({name:"main",draggable:!0,drift:Object(w["h"])(cv,t,e),ondragend:Object(w["h"])(Ky,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:hv(t,e,n)})},updateCommon:ev,contain:fv}};function Ov(t){return{createCover:function(e,n){return Qy({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=$y(e),i=Cy(n[0][t],n[1][t]),o=Dy(n[0][t],n[1][t]);return[i,o]},updateCoverShape:function(e,n,i,o){var a,r=Uy(e,n);if(r!==Ay&&r.getLinearBrushOtherExtent)a=r.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,a];t&&l.reverse(),tv(e,n,l,o)},updateCommon:ev,contain:fv}}var wv=By;function Sv(t){return t=jv(t),function(e){return wn["clipPointsByRect"](e,t)}}function Mv(t,e){return t=jv(t),function(n){var i=null!=e?e:n,o=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(o||0)]}}function Iv(t,e,n){var i=jv(t);return function(t,o){return i.contain(o[0],o[1])&&!sc(t,e,n)}}function jv(t){return pa["a"].create(t)}var Av=["axisLine","axisTickLabel","axisName"],Cv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new wv(n.getZr())).on("brush",w["c"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!Dv(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bn["a"],this.group.add(this._axisGroup),t.get("show")){var a=kv(t,e),r=a.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,c=t.axis.dim,u=r.getAxisLayout(c),h=w["m"]({strokeContainThreshold:l},u),d=new Xs(t,h);w["k"](Av,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,t,a,l,n),wn["groupTransition"](o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,o,a){var r=n.axis.getExtent(),s=r[1]-r[0],l=Math.min(30,.1*Math.abs(s)),c=pa["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:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Sv(c),isTargetByCursor:Iv(c,a,i),getLinearBrushOtherExtent:Mv(c,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(Tv(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,o=w["H"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(_a["a"]);function Dv(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function Tv(t){var e=t.axis;return w["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function kv(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var Lv=Cv,Pv={type:"axisAreaSelect",event:"axisAreaSelected"};function Nv(t){t.registerAction(Pv,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var Ev={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Rv(t){t.registerComponentView(iy),t.registerComponentModel(ay),t.registerCoordinateSystem("parallel",My),t.registerPreprocessor(Kf),t.registerComponentModel(jy),t.registerComponentView(Lv),za(t,"parallel",jy,Ev),Nv(t)}function zv(t){Object(l["a"])(Rv),t.registerChartView(Hf),t.registerSeriesModel(Xf),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,qf)}var Vv=function(){function t(){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 t}(),Bv=function(t){function e(e){return t.call(this,e)||this}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new Vv},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Object(Sn["r"])(this)},e.prototype.downplay=function(){Object(Sn["C"])(this)},e}(h["b"]),Gv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this,o=t.getGraph(),a=this.group,r=t.layoutInfo,s=r.width,l=r.height,c=t.getData(),u=t.getData("edge"),h=t.get("orient");this._model=t,a.removeAll(),a.x=r.x,a.y=r.y,o.eachEdge((function(e){var n=new Bv,i=Object(Se["a"])(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var o,r,c,d,p,g,f,y,v=e.getModel(),m=v.getModel("lineStyle"),b=m.get("curveness"),x=e.node1.getLayout(),_=e.node1.getModel(),O=_.get("localX"),S=_.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),j=I.get("localX"),A=I.get("localY"),C=e.getLayout();n.shape.extent=Math.max(1,C.dy),n.shape.orient=h,"vertical"===h?(o=(null!=O?O*s:x.x)+C.sy,r=(null!=S?S*l:x.y)+x.dy,c=(null!=j?j*s:M.x)+C.ty,d=null!=A?A*l:M.y,p=o,g=r*(1-b)+d*b,f=c,y=r*b+d*(1-b)):(o=(null!=O?O*s:x.x)+x.dx,r=(null!=S?S*l:x.y)+C.sy,c=null!=j?j*s:M.x,d=(null!=A?A*l:M.y)+C.ty,p=o*(1-b)+c*b,g=r,f=o*b+c*(1-b),y=d),n.setShape({x1:o,y1:r,x2:c,y2:d,cpx1:p,cpy1:g,cpx2:f,cpy2:y}),n.useStyle(m.getItemStyle()),Hv(n.style,h,e);var D=""+v.get("value"),T=Object(jn["e"])(v,"edgeLabel");Object(jn["g"])(n,T,{labelFetcher:{getFormattedLabel:function(e,n,i,o,a,r){return t.getFormattedLabel(e,n,"edge",o,Object(w["Q"])(a,T.normal&&T.normal.get("formatter"),D),r)}},labelDataIndex:e.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var k=v.getModel("emphasis");Object(Sn["I"])(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return Hv(n,h,e),n})),a.add(n),u.setItemGraphicEl(e.dataIndex,n);var L=k.get("focus");Object(Sn["J"])(n,"adjacency"===L?e.getAdjacentDataIndices():"trajectory"===L?e.getTrajectoryDataIndices():L,k.get("blurScope"),k.get("disabled"))})),o.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),o=i.get("localX"),r=i.get("localY"),u=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new ei["a"]({shape:{x:null!=o?o*s:n.x,y:null!=r?r*l:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(jn["g"])(d,Object(jn["e"])(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Object(Sn["I"])(d,i),a.add(d),c.setItemGraphicEl(e.dataIndex,d),Object(Se["a"])(d).dataType="node";var p=u.get("focus");Object(Sn["J"])(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(e,o){var a=c.getItemModel(o);a.get("draggable")&&(e.drift=function(e,a){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(o),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&a.setClipPath(Fv(a.getBoundingRect(),t,(function(){a.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(ti["a"]);function Hv(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),o=n.node2.getVisual("color");Object(w["C"])(i)&&Object(w["C"])(o)&&(t.fill=new Wn["a"](0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:o,offset:1}]))}}function Fv(t,e,n){var i=new ei["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return On["c"](i,{shape:{width:t.width+20}},e,n),i}var Wv=Gv,Yv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var a=this.levelModels,r=0;r=0&&(a[o[r].depth]=new ce["a"](o[r],this,e));if(i&&n){var s=sf(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var o=i.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),o=i.node1.getLayout();if(o){var a=o.depth,r=n.levelModels[a];r&&(t.parentModel=r)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var o=this.getDataParams(t,n),a=o.data,r=o.value,s=a.source+" -- "+a.target;return Object(jl["c"])("nameValue",{name:s,value:r,noValue:i(r)})}var l=this.getGraph().getNodeByIndex(t),c=l.getLayout().value,u=this.getDataParams(t,n).data.name;return Object(jl["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var o=this.getGraph().getNodeByIndex(e),a=o.getLayout().value;i.value=a}return i},e.type="series.sankey",e.defaultOption={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},edgeLabel:{show:!1,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},e}(vn["b"]),Xv=Yv;function Zv(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),o=Uv(t,e);t.layoutInfo=o;var a=o.width,r=o.height,s=t.getGraph(),l=s.nodes,c=s.edges;Kv(l);var u=w["n"](l,(function(t){return 0===t.getLayout().value})),h=0!==u.length?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");qv(l,c,n,i,a,r,h,d,p)}))}function Uv(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qv(t,e,n,i,o,a,r,s,l){Jv(t,e,n,o,a,s,l),nm(t,e,a,o,i,r,s),fm(t,s)}function Kv(t){w["k"](t,(function(t){var e=pm(t.outEdges,dm),n=pm(t.inEdges,dm),i=t.getValue()||0,o=Math.max(e,n,i);t.setLayout({value:o},!0)}))}function Jv(t,e,n,i,o,a,r){for(var s=[],l=[],c=[],u=[],h=0,d=0;d=0;v&&y.depth>p&&(p=y.depth),f.setLayout({depth:v?y.depth:h},!0),"vertical"===a?f.setLayout({dy:n},!0):f.setLayout({dx:n},!0);for(var m=0;mh-1?p:h-1;r&&"left"!==r&&Qv(t,r,a,w);var S="vertical"===a?(o-n)/w:(i-n)/w;em(t,S,a)}function $v(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Qv(t,e,n,i){if("right"===e){var o=[],a=t,r=0;while(a.length){for(var s=0;s0;a--)l*=.99,rm(s,l,r),am(s,o,n,i,r),gm(s,l,r),am(s,o,n,i,r)}function im(t,e){var n=[],i="vertical"===e?"y":"x",o=Object(we["j"])(t,(function(t){return t.getLayout()[i]}));return o.keys.sort((function(t,e){return t-e})),w["k"](o.keys,(function(t){n.push(o.buckets.get(t))})),n}function om(t,e,n,i,o,a){var r=1/0;w["k"](t,(function(t){var e=t.length,s=0;w["k"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===a?(i-(e-1)*o)/s:(n-(e-1)*o)/s;l0&&(r=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[a]+s.getLayout()[h]+e;var p="vertical"===o?i:n;if(l=c-e-p,l>0){r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0),c=r;for(d=u-2;d>=0;--d)s=t[d],l=s.getLayout()[a]+s.getLayout()[h]+e-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 rm(t,e,n){w["k"](t.slice().reverse(),(function(t){w["k"](t,(function(t){if(t.outEdges.length){var i=pm(t.outEdges,sm,n)/pm(t.outEdges,dm);if(isNaN(i)){var o=t.outEdges.length;i=o?pm(t.outEdges,lm,n)/o:0}if("vertical"===n){var a=t.getLayout().x+(i-hm(t,n))*e;t.setLayout({x:a},!0)}else{var r=t.getLayout().y+(i-hm(t,n))*e;t.setLayout({y:r},!0)}}}))}))}function sm(t,e){return hm(t.node2,e)*t.getValue()}function lm(t,e){return hm(t.node2,e)}function cm(t,e){return hm(t.node1,e)*t.getValue()}function um(t,e){return hm(t.node1,e)}function hm(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function dm(t){return t.getValue()}function pm(t,e,n){var i=0,o=t.length,a=-1;while(++aa&&(a=e)})),w["k"](n,(function(e){var n=new pp({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),i=n.mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}i.length&&w["k"](i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function vm(t){t.registerChartView(Wv),t.registerSeriesModel(Xv),t.registerLayout(Zv),t.registerVisual(ym),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var mm=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),r=o.get("type"),s=a.get("type");"category"===r?(t.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=a.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],c="horizontal"===t.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],d=[o,a],p=d[c].get("type"),g=d[1-c].get("type"),f=t.data;if(f&&i){var y=[];w["k"](f,(function(t,e){var n;w["t"](t)?(n=t.slice(),t.unshift(e)):w["t"](t.value)?(n=w["m"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var v=this.defaultValueDimensions,m=[{name:u,type:be(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:be(g),dimsDef:v.slice()}];return ia(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:w["h"](Ke["c"],m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),bm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(le["a"])(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={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},e}(vn["b"]);Object(w["K"])(bm,mm,!0);var xm=bm,_m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,a=this._data;this._data||o.removeAll();var r="horizontal"===t.get("layout")?1:0;i.diff(a).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=Sm(e,i,t,r,!0);i.setItemGraphicEl(t,n),o.add(n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Object(On["g"])(n),Mm(s,n,i,t)):n=Sm(s,i,t,r),o.add(n),i.setItemGraphicEl(t,n)}else o.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&o.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(ti["a"]),Om=function(){function t(){}return t}(),wm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new Om},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();if){var x=[v,b];i.push(x)}}}return{boxData:n,outliers:i}}var Pm={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==fe["c"]){var n="";0,Object(qd["c"])(n)}var i=Lm(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Nm(t){t.registerSeriesModel(xm),t.registerChartView(jm),t.registerLayout(Cm),t.registerTransform(Pm)}var Em=["color","borderColor"],Rm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){wn["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,o=e.getLayout("isSimpleBox"),a=t.get("clip",!0),r=t.coordinateSystem,s=r.getArea&&r.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var r=e.getItemLayout(n);if(a&&Gm(s,r))return;var l=Bm(r,n,!0);On["c"](l,{shape:{points:r.ends}},t,n),Hm(l,e,n,o),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(r,l){var c=n.getItemGraphicEl(l);if(e.hasValue(r)){var u=e.getItemLayout(r);a&&Gm(s,u)?i.remove(c):(c?(On["h"](c,{shape:{points:u.ends}},t,r),Object(On["g"])(c)):c=Bm(u,r),Hm(c,e,r,o),i.add(c),e.setItemGraphicEl(r,c))}else i.remove(c)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Xm(t,this.group);var e=t.get("clip",!0)?ri(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),o=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var a=i.getItemLayout(n),r=Bm(a,n);Hm(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},e.prototype._incrementalRenderLarge=function(t,e){Xm(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(ti["a"]),zm=function(){function t(){}return t}(),Vm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new zm},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(h["b"]);function Bm(t,e,n){var i=t.ends;return new Vm({shape:{points:n?Fm(i,t):i},z2:100})}function Gm(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(o=n.get(["itemStyle","borderColorDoji"]));var a=n.getModel("itemStyle").getItemStyle(Em);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var Um=Rm,qm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(le["a"])(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,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},e}(vn["b"]);Object(w["K"])(qm,mm,!0);var Km=qm;function Jm(t){t&&w["t"](t.series)&&w["k"](t.series,(function(t){w["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var $m=["itemStyle","borderColor"],Qm=["itemStyle","borderColor0"],tb=["itemStyle","borderColorDoji"],eb=["itemStyle","color"],nb=["itemStyle","color0"],ib={seriesType:"candlestick",plan:Object(Ai["a"])(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?eb:nb)}function i(t,e){return e.get(0===t?tb:t>0?$m:Qm)}if(!e.isSeriesFiltered(t)){var o=t.pipelineContext.large;return!o&&{progress:function(t,e){var o;while(null!=(o=t.next())){var a=e.getItemModel(o),r=e.getItemLayout(o).sign,s=a.getItemStyle();s.fill=n(r,a),s.stroke=i(r,a)||s.fill;var l=e.ensureUniqueItemVisual(o,"style");Object(w["m"])(l,s)}}}}}},ob=ib,ab={seriesType:"candlestick",plan:Object(Ai["a"])(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=sb(t,n),o=0,a=1,r=["x","y"],s=n.getDimensionIndex(n.mapDimension(r[o])),l=Object(w["H"])(n.mapDimensionsAll(r[a]),n.getDimensionIndex,n),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?g:p};function p(t,n){var r,l=n.getStore();while(null!=(r=t.next())){var p=l.get(s,r),g=l.get(c,r),f=l.get(u,r),y=l.get(h,r),v=l.get(d,r),m=Math.min(g,f),b=Math.max(g,f),x=j(m,p),_=j(b,p),O=j(y,p),w=j(v,p),S=[];A(S,_,0),A(S,x,1),S.push(D(w),D(_),D(O),D(x));var M=n.getItemModel(r),I=!!M.get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:rb(l,r,g,f,u,I),initBaseline:g>f?_[a]:x[a],ends:S,brushRect:C(y,v,p)})}function j(t,n){var i=[];return i[o]=n,i[a]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function A(t,e,n){var a=e.slice(),r=e.slice();a[o]=Object(wn["subPixelOptimize"])(a[o]+i/2,1,!1),r[o]=Object(wn["subPixelOptimize"])(r[o]-i/2,1,!0),n?t.push(a,r):t.push(r,a)}function C(t,e,n){var r=j(t,n),s=j(e,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 D(t){return t[o]=Object(wn["subPixelOptimize"])(t[o],1),t}}function g(n,i){var r,l,p=Gn(4*n.count),g=0,f=[],y=[],v=i.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=v.get(s,l),x=v.get(c,l),_=v.get(u,l),O=v.get(h,l),w=v.get(d,l);isNaN(b)||isNaN(O)||isNaN(w)?(p[g++]=NaN,g+=3):(p[g++]=rb(v,l,x,_,u,m),f[o]=b,f[a]=O,r=e.dataToPoint(f,null,y),p[g++]=r?r[0]:NaN,p[g++]=r?r[1]:NaN,f[a]=w,r=e.dataToPoint(f,null,y),p[g++]=r?r[1]:NaN)}i.setLayout("largePoints",p)}}};function rb(t,e,n,i,o,a){var r;return r=n>i?-1:n0?t.get(o,e-1)<=i?1:-1:1,r}function sb(t,e){var n,i=t.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=Object(ii["o"])(Object(w["P"])(t.get("barMaxWidth"),o),o),r=Object(ii["o"])(Object(w["P"])(t.get("barMinWidth"),1),o),s=t.get("barWidth");return null!=s?Object(ii["o"])(s,o):Math.max(Math.min(o/2,a),r)}var lb=ab;function cb(t){t.registerChartView(Um),t.registerSeriesModel(Km),t.registerPreprocessor(Jm),t.registerVisual(ob),t.registerLayout(lb)}function ub(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var hb=function(t){function e(e,n){var i=t.call(this)||this,o=new Dn(e,n),a=new bn["a"];return i.add(o),i.add(a),i.updateData(e,n),i}return Object(le["a"])(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),a=0;a0&&(a=this._getLineLength(i)/l*1e3),a!==this._period||r!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=w["w"](c)?c(n):c,i.__t>0&&(u=-a*i.__t),this._animateSymbol(i,a,u,r,s)}this._period=a,this._loop=r,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,o){if(e>0){t.__t=0;var a=this,r=t.animate("",i).when(o?2*e:e,{__t:o?2:1}).delay(n).during((function(){a._updateSymbolPosition(t)}));i||r.done((function(){a.remove(t)})),r.start()}},e.prototype._getLineLength=function(t){return Ur["f"](t.__p1,t.__cp1)+Ur["f"](t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,a=[t.x,t.y],r=a.slice(),s=Yn["h"],l=Yn["i"];a[0]=s(e[0],i[0],n[0],o),a[1]=s(e[1],i[1],n[1],o);var c=t.__t<1?l(e[0],i[0],n[0],o):l(n[0],i[0],e[0],1-o),u=t.__t<1?l(e[1],i[1],n[1],o):l(n[1],i[1],e[1],1-o);t.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0;a--)if(i[a]<=e)break;a=Math.min(a,o-2)}else{for(a=r;ae)break;a=Math.min(a-1,o-2)}var l=(e-i[a])/(i[a+1]-i[a]),c=n[a],u=n[a+1];t.x=c[0]*(1-l)+l*u[0],t.y=c[1]*(1-l)+l*u[1];var h=t.__t<1?u[0]-c[0]:c[0]-u[0],d=t.__t<1?u[1]-c[1]:c[1]-u[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},e}(bb),wb=Ob,Sb=n("9680"),Mb=n("68ab"),Ib=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),jb=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(le["a"])(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ib},e.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var r=1;r0){var h=(s+c)/2-(l-u)*o,d=(l+u)/2-(c-s)*o;t.quadraticCurveTo(h,d,c,u)}else t.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){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++],h=1;h0){var g=(c+d)/2-(u-p)*o,f=(u+p)/2-(d-c)*o;if(Mb["a"](c,u,g,f,d,p,a,t,e))return r}else if(Sb["a"](c,u,d,p,a,t,e))return r;r++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var o=this.hoverDataIdx=this.findDataIndex(t,e);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,o=1/0,a=-1/0,r=-1/0,s=0;s0&&(a.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Cb=Ab,Db={seriesType:"lines",plan:Object(Ai["a"])(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.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;u0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&ri(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var a=Tb.reset(t,e,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get("polyline"),a=e.pipelineContext,r=a.large;return n&&i===this._hasEffet&&o===this._isPolyline&&r===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=r?new Cb:new Hg(o?i?wb:_b:i?bb:Eg),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=r),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(ti["a"]),Lb=kb,Pb="undefined"===typeof Uint32Array?Array:Uint32Array,Nb="undefined"===typeof Float64Array?Array:Float64Array;function Eb(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(w["H"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(w["J"])([n,t[0],t[1]])})))}var Rb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(le["a"])(e,t),e.prototype.init=function(e){e.data=e.data||[],Eb(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(Eb(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(w["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(w["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",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}},e}(vn["b"]),zb=Rb;function Vb(t){return t instanceof Array||(t=[t,t]),t}var Bb={seriesType:"lines",reset:function(t){var e=Vb(t.get("symbol")),n=Vb(t.get("symbolSize")),i=t.getData();function o(t,e){var n=t.getItemModel(e),i=Vb(n.getShallow("symbol",!0)),o=Vb(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?o:null}}},Gb=Bb;function Hb(t){t.registerChartView(Lb),t.registerSeriesModel(zb),t.registerLayout(Tb),t.registerVisual(Gb)}var Fb=256,Wb=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=lt["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,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,h=u.getContext("2d"),d=t.length;u.width=e,u.height=n;for(var p=0;p0){var j=a(m)?s:l;m>0&&(m=m*M+w),x[_++]=j[I],x[_++]=j[I+1],x[_++]=j[I+2],x[_++]=j[I+3]*m*256}else _+=4}return h.putImageData(b,0,0),u},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=lt["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,r=0;r<256;r++)t[e](r/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},t}(),Yb=Wb;function Xb(t,e,n){var i=t[1]-t[0];e=w["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var o=e.length,a=0;return function(t){var i;for(i=a;i=0;i--){r=e[i].interval;if(r[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function Ub(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var qb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Ub(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(Ub(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){wn["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var a,r,s,l,c=t.coordinateSystem,u=si(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,a=h.getBandWidth()+.5,r=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,g=t.getData(),f=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),b=Object(jn["e"])(t),x=t.getModel("emphasis"),_=x.get("focus"),O=x.get("blurScope"),w=x.get("disabled"),S=u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;Ms[1]||Cl[1])continue;var D=c.dataToPoint([A,C]);I=new ei["a"]({shape:{x:D[0]-a/2,y:D[1]-r/2,width:a,height:r},style:j})}else{if(isNaN(g.get(S[1],M)))continue;I=new ei["a"]({z2:1,shape:c.dataToRect([g.get(S[0],M)]).contentShape,style:j})}if(g.hasItemOption){var T=g.getItemModel(M),k=T.getModel("emphasis");f=k.getModel("itemStyle").getItemStyle(),y=T.getModel(["blur","itemStyle"]).getItemStyle(),v=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.get(["itemStyle","borderRadius"]),_=k.get("focus"),O=k.get("blurScope"),w=k.get("disabled"),b=Object(jn["e"])(T)}I.shape.r=m;var L=t.getRawValue(M),P="-";L&&null!=L[2]&&(P=L[2]+""),Object(jn["g"])(I,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:j.opacity,defaultText:P}),I.ensureState("emphasis").style=f,I.ensureState("blur").style=y,I.ensureState("select").style=v,Object(Sn["J"])(I,_,O,w),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,e,n,i){var o=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,r=e.getData(),s=this._hmLayer||this._hmLayer||new Yb;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),c=t.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),g=Math.min(l.height+l.y,i.getHeight()),f=p-u,y=g-h,v=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],m=r.mapArray(v,(function(e,n,i){var o=t.dataToPoint([e,n]);return o[0]-=u,o[1]-=h,o.push(i),o})),b=n.getExtent(),x="visualMap.continuous"===n.type?Zb(b,n.option.range):Xb(b,n.getPieceList(),n.option.selected);s.update(m,f,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:a.color.getColorMapper()},x);var _=new d["a"]({style:{width:f,height:y,x:u,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(ti["a"]),Kb=qb,Jb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=en["a"].get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(vn["b"]),$b=Jb;function Qb(t){t.registerChartView(Kb),t.registerSeriesModel($b)}var tx=["itemStyle","borderWidth"],ex=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],nx=new Pl["a"],ix=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group,o=t.getData(),a=this._data,r=t.coordinateSystem,s=r.getBaseAxis(),l=s.isHorizontal(),c=r.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:r,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:ex[+l],categoryDim:ex[1-+l]};o.diff(a).add((function(t){if(o.hasValue(t)){var e=fx(o,t),n=ox(o,t,e,u),a=mx(o,u,n);o.setItemGraphicEl(t,a),i.add(a),Sx(a,u,n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(o.hasValue(t)){var r=fx(o,t),s=ox(o,t,r,u),l=_x(o,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),o.setItemGraphicEl(t,null),n=null),n?bx(n,u,s):n=mx(o,u,s,!0),o.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),Sx(n,u,s)}else i.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&xx(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var h=t.get("clip",!0)?ri(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){xx(i,Object(Se["a"])(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(ti["a"]);function ox(t,e,n,i){var o=t.getItemLayout(e),a=n.get("symbolRepeat"),r=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:r,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};ax(n,a,o,i,d),sx(t,e,o,a,r,d.boundingLength,d.pxSign,u,i,d),lx(n,d.symbolScale,c,i,d);var p=d.symbolSize,g=Object(mn["b"])(n.get("symbolOffset"),p);return cx(n,p,o,a,r,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function ax(t,e,n,i,o){var a,r=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[r.wh]<=0);if(w["t"](s)){var h=[rx(l,s[0])-c,rx(l,s[1])-c];h[1]0?1:-1}function rx(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function sx(t,e,n,i,o,a,r,s,l,c){var u,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),g=t.getItemVisual(e,"symbolSize");u=w["t"](g)?g.slice():null==g?["100%","100%"]:[g,g],u[d.index]=Object(ii["o"])(u[d.index],p),u[h.index]=Object(ii["o"])(u[h.index],i?p:Math.abs(a)),c.symbolSize=u;var f=c.symbolScale=[u[0]/s,u[1]/s];f[h.index]*=(l.isHorizontal?-1:1)*r}function lx(t,e,n,i,o){var a=t.get(tx)||0;a&&(nx.attr({scaleX:e[0],scaleY:e[1],rotation:n}),nx.updateTransform(),a/=nx.getLineScale(),a*=e[i.valueDim.index]),o.valueLineWidth=a||0}function cx(t,e,n,i,o,a,r,s,l,c,u,h){var d=u.categoryDim,p=u.valueDim,g=h.pxSign,f=Math.max(e[p.index]+s,0),y=f;if(i){var v=Math.abs(l),m=w["O"](t.get("symbolMargin"),"15%")+"",b=!1;m.lastIndexOf("!")===m.length-1&&(b=!0,m=m.slice(0,m.length-1));var x=Object(ii["o"])(m,e[p.index]),_=Math.max(f+2*x,0),O=b?0:2*x,S=Object(ii["i"])(i),M=S?i:Mx((v+O)/_),I=v-M*f;x=I/2/(b?M:Math.max(M-1,1)),_=f+2*x,O=b?0:2*x,S||"fixed"===i||(M=c?Mx((Math.abs(c)+O)/_):0),y=M*_-O,h.repeatTimes=M,h.symbolMargin=x}var j=g*(y/2),A=h.pathPosition=[];A[d.index]=n[d.wh]/2,A[p.index]="start"===r?j:"end"===r?l-j:l/2,a&&(A[0]+=a[0],A[1]+=a[1]);var C=h.bundlePosition=[];C[d.index]=n[d.xy],C[p.index]=n[p.xy];var D=h.barRectShape=w["m"]({},n);D[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+j)),D[d.wh]=n[d.wh];var T=h.clipShape={};T[d.xy]=-n[d.xy],T[d.wh]=u.ecSize[d.wh],T[p.xy]=0,T[p.wh]=n[p.wh]}function ux(t){var e=t.symbolPatternSize,n=Object(mn["a"])(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function hx(t,e,n,i){var o=t.__pictorialBundle,a=n.symbolSize,r=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,c=n.repeatTimes||0,u=0,h=a[e.valueDim.index]+r+2*n.symbolMargin;for(Ox(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u0:i<0)&&(o=c-1-t),e[l.index]=h*(o-c/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function dx(t,e,n,i){var o=t.__pictorialBundle,a=t.__pictorialMainPath;a?wx(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(a=t.__pictorialMainPath=ux(n),o.add(a),wx(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 px(t,e,n){var i=w["m"]({},e.barRectShape),o=t.__pictorialBarRect;o?wx(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new ei["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,t.add(o))}function gx(t,e,n,i){if(n.symbolClip){var o=t.__pictorialClipPath,a=w["m"]({},n.clipShape),r=e.valueDim,s=n.animationModel,l=n.dataIndex;if(o)On["h"](o,{shape:a},s,l);else{a[r.wh]=0,o=new ei["a"]({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var c={};c[r.wh]=n.clipShape[r.wh],wn[i?"updateProps":"initProps"](o,{shape:c},s,l)}}}function fx(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=yx,n.isAnimationEnabled=vx,n}function yx(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function vx(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function mx(t,e,n,i){var o=new bn["a"],a=new bn["a"];return o.add(a),o.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?hx(o,e,n):dx(o,e,n),px(o,n,i),gx(o,e,n,i),o.__pictorialShapeStr=_x(t,n),o.__pictorialSymbolMeta=n,o}function bx(t,e,n){var i=n.animationModel,o=n.dataIndex,a=t.__pictorialBundle;On["h"](a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,o),n.symbolRepeat?hx(t,e,n,!0):dx(t,e,n,!0),px(t,n,!0),gx(t,e,n,!0)}function xx(t,e,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var a=[];Ox(i,(function(t){a.push(t)})),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),w["k"](a,(function(t){On["e"](t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function _x(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Ox(t,e,n){w["k"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function wx(t,e,n,i,o,a){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&wn[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function Sx(t,e,n){var i=n.dataIndex,o=n.itemModel,a=o.getModel("emphasis"),r=a.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),c=o.getShallow("cursor"),u=a.get("focus"),h=a.get("blurScope"),p=a.get("scale");Ox(t,(function(t){if(t instanceof d["a"]){var e=t.style;t.useStyle(w["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=r,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,c&&(t.cursor=c),t.z2=n.z2}));var g=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,Object(jn["g"])(f,Object(jn["e"])(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Mn(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:g}),Object(Sn["J"])(t,u,h,a.get("disabled"))}function Mx(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Ix=ix,jx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Object(Ki["d"])(qi.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(qi),Ax=jx;function Cx(t){t.registerChartView(Ix),t.registerSeriesModel(Ax),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(w["h"])(Fi,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Wi("pictorialBar"))}var Dx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this,a=this.group,r=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(t){return t.name}a.x=0,a.y=l.y+c[0];var h=new pe(this._layersSeries||[],r,u,u),d=[];function p(e,n,s){var l=o._layers;if("remove"!==e){for(var c,u,h=[],p=[],g=r[n].indices,f=0;fa&&(a=s),i.push(s)}for(var c=0;ca&&(a=h)}return{y0:o,max:a}}function Vx(t){t.registerChartView(kx),t.registerSeriesModel(Nx),t.registerLayout(Ex),t.registerProcessor(Fo("themeRiver"))}var Bx=n("857d"),Gx=2,Hx=4,Fx=function(t){function e(e,n,i,o){var a=t.call(this)||this;a.z2=Gx,a.textConfig={inside:!0},Object(Se["a"])(a).seriesIndex=n.seriesIndex;var r=new st["a"]({z2:Hx,silent:e.getModel().get(["label","silent"])});return a.setTextContent(r),a.updateData(!0,e,n,i,o),a}return Object(le["a"])(e,t),e.prototype.updateData=function(t,e,n,i,o){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var a=this;Object(Se["a"])(a).dataIndex=e.dataIndex;var r=e.getModel(),s=r.getModel("emphasis"),l=e.getLayout(),c=w["m"]({},l);c.label=null;var u=e.getVisual("style");u.lineJoin="bevel";var h=e.getVisual("decal");h&&(u.decal=Object(_u["a"])(h,o));var d=so(r.getModel("itemStyle"),c,!0);w["m"](c,d),w["k"](Sn["g"],(function(t){var e=a.ensureState(t),n=r.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=so(n,c);i&&(e.shape=i)})),t?(a.setShape(c),a.shape.r=l.r0,On["c"](a,{shape:{r:l.r}},n,e.dataIndex)):(On["h"](a,{shape:c},n),Object(On["g"])(a)),a.useStyle(u),this._updateLabel(n);var p=r.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get("focus"),f="ancestor"===g?e.getAncestorsIndices():"descendant"===g?e.getDescendantIndices():g;Object(Sn["J"])(this,f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),a=o.endAngle-o.startAngle,r=(o.startAngle+o.endAngle)/2,s=Math.cos(r),l=Math.sin(r),c=this,u=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(a)I&&!Object(ii["j"])(A-I)&&A0?(o.virtualPiece?o.virtualPiece.updateData(!1,i,t,e,n):(o.virtualPiece=new Wx(i,t,e,n),l.add(o.virtualPiece)),a.piece.off("click"),o.virtualPiece.on("click",(function(t){o._rootToNode(a.parentNode)}))):o.virtualPiece&&(l.remove(o.virtualPiece),o.virtualPiece=null)}d(u,h),f(r,s),this._initEvents(),this._oldChildren=u},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var a=i.getModel(),r=a.get("link");if(r){var s=a.get("target",!0)||"_blank";Object(li["i"])(r,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Yx,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(o*o+a*a);return r<=i.r&&r>=i.r0}},e.type="sunburst",e}(ti["a"]),Kx=qx,Jx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};$x(n);var i=this._levelModels=w["H"](t.levels||[],(function(t){return new ce["a"](t,this,e)}),this),o=ed.createTree(n,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e),a=i[n.depth];return a&&(t.parentModel=a),t}))}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=ad(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){md(this)},e.type="series.sunburst",e.defaultOption={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:[],sort:"desc"},e}(vn["b"]);function $x(t){var e=0;w["k"](t.children,(function(t){$x(t);var n=t.value;w["t"](n)&&(n=n[0]),e+=n}));var n=t.value;w["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),w["t"](t.value)?t.value[0]=n:t.value=n}var Qx=Jx,t_=Math.PI/180;function e_(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");w["t"](i)||(i=[0,i]),w["t"](e)||(e=[e,e]);var o=n.getWidth(),a=n.getHeight(),r=Math.min(o,a),s=Object(ii["o"])(e[0],o),l=Object(ii["o"])(e[1],a),c=Object(ii["o"])(i[0],r/2),u=Object(ii["o"])(i[1],r/2),h=-t.get("startAngle")*t_,d=t.get("minAngle")*t_,p=t.getData().tree.root,g=t.getViewRoot(),f=g.depth,y=t.get("sort");null!=y&&n_(g,y);var v=0;w["k"](g.children,(function(t){!isNaN(t.getValue())&&v++}));var m=g.getValue(),b=Math.PI/(m||v)*2,x=g.depth>0,_=g.height-(x?-1:1),O=(u-c)/(_||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,j=function(e,n){if(e){var i=n;if(e!==p){var o=e.getValue(),a=0===m&&M?b:o*b;a1)o=o.parentNode;var a=n.getColorFromPalette(o.name||o.dataIndex+"",e);return t.depth>1&&Object(w["C"])(a)&&(a=Object(ct["c"])(a,(t.depth-1)/(i-1)*.5)),a}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(o){var a=o.getModel(),r=a.getModel("itemStyle").getItemStyle();r.fill||(r.fill=n(o,t,i.root.height));var s=e.ensureUniqueItemVisual(o.dataIndex,"style");Object(w["m"])(s,r)}))}))}function a_(t){t.registerChartView(Kx),t.registerSeriesModel(Qx),t.registerLayout(Object(w["h"])(e_,"sunburst")),t.registerProcessor(Object(w["h"])(Fo,"sunburst")),t.registerVisual(o_),Ux(t)}var r_={color:"fill",borderColor:"stroke"},s_={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},l_=Object(we["o"])(),c_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return yn(null,this)},e.prototype.getDataParams=function(e,n,i){var o=t.prototype.getDataParams.call(this,e,n);return i&&(o.info=l_(i).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(vn["b"]),u_=c_;function h_(t,e){return e=e||[0,0],w["H"](["x","y"],(function(n,i){var o=this.getAxis(n),a=e[i],r=t[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-r)-o.dataToCoord(a+r))}),this)}function d_(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:w["c"](h_,t)}}}function p_(t,e){return e=e||[0,0],w["H"]([0,1],(function(n){var i=e[n],o=t[n]/2,a=[],r=[];return a[n]=i-o,r[n]=i+o,a[1-n]=r[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(r)[n])}),this)}function g_(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:w["c"](p_,t)}}}function f_(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function y_(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(w["c"])(f_,t)}}}function v_(t,e){return e=e||[0,0],w["H"](["Radius","Angle"],(function(n,i){var o="get"+n+"Axis",a=this[o](),r=e[i],s=t[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 m_(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),r=t.coordToPoint([o,a]);return r.push(o,a*Math.PI/180),r},size:w["c"](v_,t)}}}function b_(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function x_(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(w["q"])(t,"text")))}function __(t,e,n){var i,o,a,r=t;if("text"===e)a=r;else{a={},Object(w["q"])(r,"text")&&(a.text=r.text),Object(w["q"])(r,"rich")&&(a.rich=r.rich),Object(w["q"])(r,"textFill")&&(a.fill=r.textFill),Object(w["q"])(r,"textStroke")&&(a.stroke=r.textStroke),Object(w["q"])(r,"fontFamily")&&(a.fontFamily=r.fontFamily),Object(w["q"])(r,"fontSize")&&(a.fontSize=r.fontSize),Object(w["q"])(r,"fontStyle")&&(a.fontStyle=r.fontStyle),Object(w["q"])(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=Object(w["q"])(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Object(w["q"])(r,"textPosition")&&(i.position=r.textPosition),Object(w["q"])(r,"textOffset")&&(i.offset=r.textOffset),Object(w["q"])(r,"textRotation")&&(i.rotation=r.textRotation),Object(w["q"])(r,"textDistance")&&(i.distance=r.textDistance)}return O_(a,t),Object(w["k"])(a.rich,(function(t){O_(t,t)})),{textConfig:i,textContent:o}}function O_(t,e){e&&(e.font=e.textFont||e.font,Object(w["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(w["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(w["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(w["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(w["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(w["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(w["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(w["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(w["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(w["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(w["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(w["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(w["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(w["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(w["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function w_(t,e,n){var i=t;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=t.fill||"#000";S_(i,e);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=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(w["k"])(e.rich,(function(t){S_(t,t)})),i}function S_(t,e){e&&(Object(w["q"])(e,"fill")&&(t.textFill=e.fill),Object(w["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(w["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(w["q"])(e,"font")&&(t.font=e.font),Object(w["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(w["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(w["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(w["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(w["q"])(e,"align")&&(t.textAlign=e.align),Object(w["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(w["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(w["q"])(e,"width")&&(t.textWidth=e.width),Object(w["q"])(e,"height")&&(t.textHeight=e.height),Object(w["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(w["q"])(e,"padding")&&(t.textPadding=e.padding),Object(w["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(w["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(w["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(w["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(w["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(w["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(w["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(w["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(w["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(w["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(w["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var M_=n("06ad"),I_={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},j_=Object(w["F"])(I_),A_=(Object(w["N"])(X["a"],(function(t,e){return t[e]=1,t}),{}),X["a"].join(", "),["","style","shape","extra"]),C_=Object(we["o"])();function D_(t,e,n,i,o){var a=t+"Animation",r=Object(On["a"])(t,i,o)||{},s=C_(e).userDuring;return r.duration>0&&(r.during=s?Object(w["c"])(B_,{el:e,userDuring:s}):null,r.setToFinal=!0,r.scope=t),Object(w["m"])(r,n[a]),r}function T_(t,e,n,i){i=i||{};var o=i.dataIndex,a=i.isInit,r=i.clearStyle,s=n.isAnimationEnabled(),l=C_(t),c=e.style;l.userDuring=e.during;var u={},h={};if(W_(t,e,h),H_("shape",e,h),H_("extra",e,h),!a&&s&&(F_(t,e,u),G_("shape",t,e,u),G_("extra",t,e,u),Y_(t,e,c,u)),h.style=c,N_(t,h,r),R_(t,e),s)if(a){var d={};Object(w["k"])(A_,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),Object(w["m"])(t?d[t]:d,n.enterFrom))}));var p=D_("enter",t,e,n,o);p.duration>0&&t.animateFrom(d,p)}else E_(t,e,o||0,n,u);k_(t,e),c?t.dirty():t.markRedraw()}function k_(t,e){for(var n=C_(t).leaveToProps,i=0;i0&&t.animateFrom(o,a)}}function R_(t,e){Object(w["q"])(e,"silent")&&(t.silent=e.silent),Object(w["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Ou["c"]&&Object(w["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof h["b"]&&Object(w["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var z_={},V_={setTransform:function(t,e){return z_.el[t]=e,this},getTransform:function(t){return z_.el[t]},setShape:function(t,e){var n=z_.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=z_.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=z_.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=z_.el.style;if(e)return e[t]},setExtra:function(t,e){var n=z_.el.extra||(z_.el.extra={});return n[t]=e,this},getExtra:function(t){var e=z_.el.extra;if(e)return e[t]}};function B_(){var t=this,e=t.el;if(e){var n=C_(e).userDuring,i=t.userDuring;n===i?(z_.el=e,i(V_)):t.el=t.userDuring=null}}function G_(t,e,n,i){var o=n[t];if(o){var a,r=e[t];if(r){var s=n.transition,l=o.transition;if(l)if(!a&&(a=i[t]={}),P_(l))Object(w["m"])(a,r);else for(var c=Object(we["r"])(l),u=0;u=0){!a&&(a=i[t]={});var p=Object(w["F"])(r);for(u=0;u=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!o&&(o=i.style={});var g=Object(w["F"])(n);for(c=0;c=0?e.getStore().get(o,n):void 0}var a=e.get(i.name,n),r=i&&i.ordinalMeta;return r?r.categories[a]:a}function O(n,i){null==i&&(i=s);var o=e.getItemVisual(i,"style"),a=o&&o.fill,r=o&&o.opacity,l=m(i,$_).getItemStyle();null!=a&&(l.fill=a),null!=r&&(l.opacity=r);var c={inheritColor:Object(w["C"])(a)?a:"#000"},u=b(i,$_),h=jn["c"](u,null,c,!1,!0);h.text=u.getShallow("show")?Object(w["P"])(t.getFormattedLabel(i,$_),Mn(e,i)):null;var d=jn["b"](u,c,!1);return I(n,l),l=w_(l,h,d),n&&M(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var o=m(i,J_).getItemStyle(),a=b(i,J_),r=jn["c"](a,null,null,!0,!0);r.text=a.getShallow("show")?Object(w["Q"])(t.getFormattedLabel(i,J_),t.getFormattedLabel(i,$_),Mn(e,i)):null;var l=jn["b"](a,null,!0);return I(n,o),o=w_(o,r,l),n&&M(o,n),o.legacy=!0,o}function M(t,e){for(var n in e)Object(w["q"])(e,n)&&(t[n]=e[n])}function I(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function j(t,n){if(null==n&&(n=s),Object(w["q"])(r_,t)){var i=e.getItemVisual(n,"style");return i?i[r_[t]]:null}if(Object(w["q"])(s_,t))return e.getItemVisual(n,t)}function A(t){if("cartesian2d"===a.type){var e=a.getBaseAxis();return Ri(Object(w["i"])({axis:e},t))}}function C(){return n.getCurrentSeriesIndices()}function D(t){return jn["d"](t,n)}}function bO(t){var e={};return Object(w["k"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim,a=e[o]=e[o]||[];a[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function xO(t,e,n,i,o,a,r){if(i){var s=_O(t,e,n,i,o,a);return s&&r.setItemGraphicEl(n,s),s&&Object(Sn["J"])(s,i.focus,i.blurScope,i.emphasisDisabled),s}a.remove(e)}function _O(t,e,n,i,o,a){var r=-1,s=e;e&&OO(e,i,o)&&(r=Object(w["r"])(a.childrenRef(),e),e=null);var l=!e,c=e;c?c.clearStates():(c=pO(i),s&&uO(s,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),rO.normal.cfg=rO.normal.conOpt=rO.emphasis.cfg=rO.emphasis.conOpt=rO.blur.cfg=rO.blur.conOpt=rO.select.cfg=rO.select.conOpt=null,rO.isLegacy=!1,SO(c,n,i,o,l,rO),wO(c,n,i,o,l),gO(t,c,n,i,rO,o,l),Object(w["q"])(i,"info")&&(l_(c).info=i.info);for(var u=0;u=0?a.replaceAt(c,r):a.add(c),c}function OO(t,e,n){var i=l_(t),o=e.type,a=e.shape,r=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&NO(a)&&PO(a)!==i.customPathData||"image"===o&&Object(w["q"])(r,"image")&&r.image!==i.customImagePath}function wO(t,e,n,i,o){var a=n.clipPath;if(!1===a)t&&t.getClipPath()&&t.removeClipPath();else if(a){var r=t.getClipPath();r&&OO(r,a,i)&&(r=null),r||(r=pO(a),t.setClipPath(r)),gO(null,r,e,a,null,i,o)}}function SO(t,e,n,i,o,a){if(!t.isGroup){MO(n,null,a),MO(n,J_,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=t.getTextContent();if(!1===r)u&&t.removeTextContent();else{r=a.normal.conOpt=r||{type:"text"},u?u.clearStates():(u=pO(r),t.setTextContent(u)),gO(null,u,e,r,null,i,o);for(var h=r&&r.style,d=0;d=u;p--){var g=e.childAt(p);CO(e,g,o)}}}function CO(t,e,n){e&&L_(e,l_(t).option,n)}function DO(t){new pe(t.oldChildren,t.newChildren,TO,TO,t).add(kO).update(kO).remove(LO).execute()}function TO(t,e){var n=t&&t.name;return null!=n?n:aO+e}function kO(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,o=null!=e?n.oldChildren[e]:null;_O(n.api,o,n.dataIndex,i,n.seriesModel,n.group)}function LO(t){var e=this.context,n=e.oldChildren[t];n&&L_(n,l_(n).option,e.seriesModel)}function PO(t){return t&&(t.pathData||t.d)}function NO(t){return t&&(Object(w["q"])(t,"pathData")||Object(w["q"])(t,"d"))}function EO(t){t.registerChartView(dO),t.registerSeriesModel(u_)}var RO=Object(we["o"])(),zO=w["d"],VO=w["c"],BO=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var r=this._group,s=this._handle;if(!a||"hide"===a)return r&&r.hide(),void(s&&s.hide());r&&r.show(),s&&s.show();var l={};this.makeElOption(l,o,t,e,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(t,e);if(r){var h=w["h"](GO,e,u);this.updatePointerEl(r,l,h),this.updateLabelEl(r,l,h,e)}else r=this._group=new bn["a"],this.createPointerEl(r,l,t,e),this.createLabelEl(r,l,t,e),n.getZr().add(r);YO(r,e,!0),this._renderHandle(o)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===n||null==n){var r=this.animationThreshold;if(o&&i.getBandWidth()>r)return!0;if(a){var s=tl(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,o){},t.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;if(o){var a=RO(t).pointerEl=new wn[o.type](zO(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var o=RO(t).labelEl=new st["a"](zO(e.label));t.add(o),FO(o,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=RO(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var o=RO(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{x:e.label.x,y:e.label.y}),FO(o,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,a=n.getModel("handle"),r=n.get("status");if(!a.get("show")||!r||"hide"===r)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=wn["createIcon"](a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Xl["g"](t.event)},onmousedown:VO(this._onHandleDragMove,this,0,0),drift:VO(this._onHandleDragMove,this),ondragend:VO(this._onHandleDragEnd,this)}),i.add(o)),YO(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");w["t"](s)||(s=[s,s]),o.scaleX=s[0]/2,o.scaleY=s[1]/2,Qi["b"](this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){GO(this._axisPointerModel,!e&&this._moveAnimation,this._handle,WO(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(WO(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(WO(i)),RO(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Qi["a"](this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function GO(t,e,n,i){HO(RO(n).lastProp,i)||(RO(n).lastProp=i,e?On["h"](n,i,t):(n.stopAnimation(),n.attr(i)))}function HO(t,e){if(w["A"](t)&&w["A"](e)){var n=!0;return w["k"](e,(function(e,i){n=n&&HO(t[i],e)})),!!n}return t===e}function FO(t,e){t[e.get(["label","show"])?"show":"hide"]()}function WO(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function YO(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)}))}var XO=BO;function ZO(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function UO(t,e,n,i,o){var a=n.get("value"),r=KO(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=li["g"](s.get("padding")||0),c=s.getFont(),u=p["d"](r,c),h=o.position,d=u.width+l[1]+l[3],g=u.height+l[0]+l[2],f=o.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var y=o.verticalAlign;"bottom"===y&&(h[1]-=g),"middle"===y&&(h[1]-=g/2),qO(h,d,g,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Object(jn["c"])(s,{text:r,font:c,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function qO(t,e,n,i){var o=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function KO(t,e,n,i,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),r=o.formatter;if(r){var s={value:zr(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,o=e&&e.getDataParams(i);o&&s.seriesData.push(o)})),w["C"](r)?a=r.replace("{value}",a):w["w"](r)&&(a=r(s))}return a}function JO(t,e,n){var i=Zr["c"]();return Zr["g"](i,i,n.rotation),Zr["i"](i,i,n.position),wn["applyTransform"]([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function $O(t,e,n,i,o,a){var r=Xs.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),UO(e,i,o,a,{position:JO(i.axis,t,n),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function QO(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function tw(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function ew(t,e,n,i,o,a){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:a,clockwise:!0}}var nw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var a=n.axis,r=a.grid,s=i.get("type"),l=iw(r,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var u=ZO(i),h=ow[s](a,c,l);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=Os(r.model,n);$O(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=Os(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=JO(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,a=o.grid,r=o.getGlobalExtent(!0),s=iw(a,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(r[1],c[l]),c[l]=Math.max(r[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(XO);function iw(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var ow={line:function(t,e,n){var i=QO([e,n[0]],[e,n[1]],aw(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:tw([e-i/2,n[0]],[i,o],aw(t))}}};function aw(t){return"x"===t.dim?0:1}var rw=nw,sw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Oa["a"]),lw=sw,cw=n("22d1"),uw=Object(we["o"])(),hw=w["k"];function dw(t,e,n){if(!cw["a"].node){var i=e.getZr();uw(i).records||(uw(i).records={}),pw(i,e);var o=uw(i).records[t]||(uw(i).records[t]={});o.handler=n}}function pw(t,e){function n(n,i){t.on(n,(function(n){var o=vw(e);hw(uw(t).records,(function(t){t&&i(t,n,o.dispatchAction)})),gw(o.pendings,e)}))}uw(t).initialized||(uw(t).initialized=!0,n("click",w["h"](yw,"click")),n("mousemove",w["h"](yw,"mousemove")),n("globalout",fw))}function gw(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function fw(t,e,n){t.handler("leave",null,n)}function yw(t,e,n,i){e.handler(t,n,i)}function vw(t){var e={showTip:[],hideTip:[]},n=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function mw(t,e){if(!cw["a"].node){var n=e.getZr(),i=(uw(n).records||{})[t];i&&(uw(n).records[t]=null)}}var bw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";dw("axisPointer",n,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){mw("axisPointer",e)},e.prototype.dispose=function(t,e){mw("axisPointer",e)},e.type="axisPointer",e}(_a["a"]),xw=bw;function _w(t,e){var n,i=[],o=t.seriesIndex;if(null==o||!(n=e.getSeriesByIndex(o)))return{point:[]};var a=n.getData(),r=we["u"](a,t);if(null==r||r<0||w["t"](r))return{point:[]};var s=a.getItemGraphicEl(r),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(r)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,d=c.dim,p="x"===h||"radius"===h?1:0,g=a.mapDimension(d),f=[];f[p]=a.get(g,r),f[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),r),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(a.getValues(w["H"](l.dimensions,(function(t){return a.mapDimension(t)})),r))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}var Ow=Object(we["o"])();function ww(t,e,n){var i=t.currTrigger,o=[t.x,t.y],a=t,r=t.dispatchAction||Object(w["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lw(o)&&(o=_w({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Lw(o),c=a.axesInfo,u=s.axesInfo,h="leave"===i||Lw(o),d={},p={},g={list:[],map:{}},f={showPointer:Object(w["h"])(Iw,p),showTooltip:Object(w["h"])(jw,g)};Object(w["k"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(o);Object(w["k"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,a=Tw(c,t);if(!h&&n&&(!c||a)){var r=a&&a.value;null!=r||l||(r=i.pointToData(o)),null!=r&&Sw(t,r,f,!1,d)}}))}));var y={};return Object(w["k"])(u,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(w["k"])(n.axesInfo,(function(e,i){var o=p[i];if(e!==t&&o){var a=o.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,kw(e),kw(t)))),y[t.key]=a}}))})),Object(w["k"])(y,(function(t,e){Sw(u[e],t,f,!0,d)})),Aw(p,u,d),Cw(g,o,t,r),Dw(u,r,n),d}}function Sw(t,e,n,i,o){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var r=Mw(e,t),s=r.payloadBatch,l=r.snapToValue;s[0]&&null==o.seriesIndex&&Object(w["m"])(o,s[0]),!i&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,r,l)}else n.showPointer(t,e)}function Mw(t,e){var n=e.axis,i=n.dim,o=t,a=[],r=Number.MAX_VALUE,s=-1;return Object(w["k"])(e.seriesModels,(function(e,l){var c,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);u=d.dataIndices,c=d.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;c=e.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=r&&((g=0&&s<0)&&(r=g,s=p,o=c,a.length=0),Object(w["k"])(u,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:o}}function Iw(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function jw(t,e,n,i){var o=n.payloadBatch,a=e.axis,r=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,c=il(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function Aw(t,e,n){var i=n.axesInfo=[];Object(w["k"])(e,(function(e,n){var o=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(o.status="show"),o.value=a.value,o.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})}))}function Cw(t,e,n,i){if(!Lw(e)&&t.list.length){var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function Dw(t,e,n){var i=n.getZr(),o="axisPointerLastHighlights",a=Ow(i)[o]||{},r=Ow(i)[o]={};Object(w["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(w["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t}))}));var s=[],l=[];Object(w["k"])(a,(function(t,e){!r[e]&&l.push(t)})),Object(w["k"])(r,(function(t,e){!a[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Tw(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function kw(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Lw(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Pw(t){rl.registerAxisPointerClass("CartesianAxisPointer",rw),t.registerComponentModel(lw),t.registerComponentView(xw),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(w["t"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Zs(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ww)}function Nw(t){Object(l["a"])(ml),Object(l["a"])(Pw)}var Ew=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var r=a.polar,s=r.getOtherAxis(a),l=s.getExtent(),c=a.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var h=ZO(i),d=zw[u](a,r,c,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=Rw(e,n,i,r,p);UO(t,n,i,o,g)},e}(XO);function Rw(t,e,n,i,o){var a=e.axis,r=a.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===a.dim){var d=Zr["c"]();Zr["g"](d,d,s),Zr["i"](d,d,[i.cx,i.cy]),l=wn["applyTransform"]([r,-o],d);var p=e.getModel("axisLabel").get("rotate")||0,g=Xs.innerTextLayout(s,p*Math.PI/180,-1);c=g.textAlign,u=g.textVerticalAlign}else{var f=h[1];l=i.coordToPoint([f+o,r]);var y=i.cx,v=i.cy;c=Math.abs(l[0]-y)/f<.3?"center":l[0]>y?"left":"right",u=Math.abs(l[1]-v)/f<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var zw={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:QO(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:ew(e.cx,e.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:"Sector",shape:ew(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},Vw=Ew,Bw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Oa["a"]),Gw=Bw,Hw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",we["b"]).models[0]},e.type="polarAxis",e}(Oa["a"]);w["K"](Hw,Ma);var Fw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="angleAxis",e}(Hw),Ww=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="radiusAxis",e}(Hw),Yw=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Object(le["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(bs);Yw.prototype.dataToRadius=bs.prototype.dataToCoord,Yw.prototype.radiusToData=bs.prototype.coordToData;var Xw=Yw,Zw=Object(we["o"])(),Uw=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Object(le["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],r=t.dataToCoord(a+1)-t.dataToCoord(a),s=Math.abs(r),l=p["d"](null==a?"":a+"",e.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),d=Zw(t.model),g=d.lastAutoInterval,f=d.lastTickCount;return null!=g&&null!=f&&Math.abs(g-h)<=1&&Math.abs(f-o)<=1&&g>h?h=g:(d.lastTickCount=o,d.lastAutoInterval=h),h},e}(bs);Uw.prototype.dataToAngle=bs.prototype.dataToCoord,Uw.prototype.angleToData=bs.prototype.coordToData;var qw=Uw,Kw=["radius","angle"],Jw=function(){function t(t){this.dimensions=Kw,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Xw,this._angleAxis=new qw,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[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(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,c=lr)l+=360*c;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,o=-Math.sin(n)*e+this.cy;return[i,o]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.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:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,o=n*n+i*i-1e-4,a=this.r,r=this.r0;return o<=a*a&&o>=r*r}}},t.prototype.convertToPixel=function(t,e,n){var i=$w(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=$w(e);return i===this?this.pointToData(n):null},t}();function $w(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var Qw=Jw;function tS(t,e,n){var i=e.get("center"),o=n.getWidth(),a=n.getHeight();t.cx=Object(ii["o"])(i[0],o),t.cy=Object(ii["o"])(i[1],a);var r=t.getRadiusAxis(),s=Math.min(o,a)/2,l=e.get("radius");null==l?l=[0,"100%"]:w["t"](l)||(l=[0,l]);var c=[Object(ii["o"])(l[0],s),Object(ii["o"])(l[1],s)];r.inverse?r.setExtent(c[1],c[0]):r.setExtent(c[0],c[1])}function eS(t,e){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();w["k"](Fr(e,"radius"),(function(t){o.scale.unionExtentFromData(e,t)})),w["k"](Fr(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),Pr(i.scale,i.model),Pr(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 nS(t){return"angleAxis"===t.mainType}function iS(t,e){var n;if(t.type=e.get("type"),t.scale=Nr(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),nS(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),o=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,o)}e.axis=t,t.model=e}var oS={dimensions:Kw,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var o=new Qw(i+"");o.update=eS;var a=o.getRadiusAxis(),r=o.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");iS(a,s),iS(r,l),tS(o,t,e),n.push(o),t.coordinateSystem=o,o.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",we["b"]).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},aS=oS,rS=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sS(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),o=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function lS(t){var e=t.getRadiusAxis();return e.inverse?0:1}function cS(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var uS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(le["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),r=n.getMinorTicksCoords(),s=w["H"](n.getViewLabels(),(function(t){t=w["d"](t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));cS(s),cS(a),w["k"](rS,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||hS[e](this.group,t,i,a,r,o,s)}),this)}},e.type="angleAxis",e}(rl),hS={axisLine:function(t,e,n,i,o,a){var r,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),c=Math.PI/180,u=l.getExtent(),h=lS(n),d=h?0:1,p=360===Math.abs(u[1]-u[0])?"Circle":"Arc";r=0===a[d]?new wn[p]({shape:{cx:n.cx,cy:n.cy,r:a[h],startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Nl["a"]({shape:{cx:n.cx,cy:n.cy,r:a[h],r0:a[d]},style:s.getLineStyle(),z2:1,silent:!0}),r.style.fill=null,t.add(r)},axisTick:function(t,e,n,i,o,a){var r=e.getModel("axisTick"),s=(r.get("inside")?-1:1)*r.get("length"),l=a[lS(n)],c=w["H"](i,(function(t){return new Ls["a"]({shape:sS(n,[l,l+s],t.coord)})}));t.add(wn["mergePath"](c,{style:w["i"](r.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,a){if(o.length){for(var r=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(r.get("inside")?-1:1)*s.get("length"),c=a[lS(n)],u=[],h=0;hg?"left":"right",v=Math.abs(p[1]-f)/d<.3?"middle":p[1]>f?"top":"bottom";if(s&&s[h]){var m=s[h];w["A"](m)&&m.textStyle&&(r=new ce["a"](m.textStyle,l,l.ecModel))}var b=new st["a"]({silent:Xs.isLabelSilent(e),style:Object(jn["c"])(r,{x:p[0],y:p[1],fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(b),u){var x=Xs.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=i.rawLabel,Object(Se["a"])(b).eventData=x}}),this)},splitLine:function(t,e,n,i,o,a){var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h=0?"p":"n",A=O;m&&(i[s][I]||(i[s][I]={p:O,n:O}),A=i[s][I][j]);var C=void 0,D=void 0,T=void 0,k=void 0;if("radius"===h.dim){var L=h.dataToCoord(M)-O,P=a.dataToCoord(I);Math.abs(L)=k})}}}))}function OS(t){var e={};w["k"](t,(function(t,n){var i=t.getData(),o=t.coordinateSystem,a=o.getBaseAxis(),r=xS(o,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=e[r]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;e[r]=c;var h=bS(t);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Object(ii["o"])(t.get("barWidth"),l),p=Object(ii["o"])(t.get("barMaxWidth"),l),g=t.get("barGap"),f=t.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),p&&(u[h].maxWidth=p),null!=g&&(c.gap=g),null!=f&&(c.categoryGap=f)}));var n={};return w["k"](e,(function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,a=Object(ii["o"])(t.categoryGap,o),r=Object(ii["o"])(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,c=(s-a)/(l+(l-1)*r);c=Math.max(c,0),w["k"](i,(function(t,e){var n=t.maxWidth;n&&n=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=BS(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=BS(e);return i===this?this.pointToData(n):null},t}();function BS(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var GS=VS;function HS(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var a=new GS(i,t,e);a.name="single_"+o,a.resize(i,e),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",we["b"]).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var FS={create:HS,dimensions:zS},WS=FS,YS=["x","y"],XS=["width","height"],ZS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var a=n.axis,r=a.coordinateSystem,s=KS(r,1-qS(a)),l=r.dataToPoint(e)[0],c=i.get("type");if(c&&"none"!==c){var u=ZO(i),h=US[c](a,l,s);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=AS(n);$O(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=AS(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=JO(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,a=o.coordinateSystem,r=qS(o),s=KS(a,r),l=[t.x,t.y];l[r]+=e[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var c=KS(a,1-r),u=(c[1]+c[0])/2,h=[u,u];return h[r]=l[r],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(XO),US={line:function(t,e,n){var i=QO([e,n[0]],[e,n[1]],qS(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:tw([e-i/2,n[0]],[i,o],qS(t))}}};function qS(t){return t.isHorizontal()?0:1}function KS(t,e){var n=t.getRect();return[n[YS[e]],n[YS[e]]+n[XS[e]]]}var JS=ZS,$S=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="single",e}(_a["a"]);function QS(t){Object(l["a"])(Pw),rl.registerAxisPointerClass("SingleAxisPointer",JS),t.registerComponentView($S),t.registerComponentView(LS),t.registerComponentModel(NS),za(t,"single",NS,NS.defaultOption),t.registerCoordinateSystem("single",WS)}var tM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(e,n,i){var o=Object(Eo["f"])(e);t.prototype.init.apply(this,arguments),eM(e,o)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),eM(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Oa["a"]);function eM(t,e){var n,i=t.cellSize;n=w["t"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var o=w["H"]([0,1],(function(t){return Object(Eo["j"])(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Object(Eo["h"])(t,e,{type:"box",ignoreSize:o})}var nM=tM,iM=n("ef59"),oM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,a=o.getRangeInfo(),r=o.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,a,i),this._renderLines(t,a,r,i),this._renderYearText(t,a,r,i),this._renderMonthText(t,s,r,i),this._renderWeekText(t,s,a,r,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),r=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new ei["a"]({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});n.add(c)}},e.prototype._renderLines=function(t,e,n,i){var o=this,a=t.coordinateSystem,r=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){d(c.formatedDate),0===u&&(c=a.getDateInfo(e.start.y+"-"+e.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=a.getDateInfo(h)}function d(e){o._firstDayOfMonth.push(a.getDateInfo(e)),o._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=o._getLinePointsOfOneWeek(t,e,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,r,i)}d(a.getNextNDay(e.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)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-e/2,i[1][o]=i[1][o]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Wo["a"]({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),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},e.prototype._formatterLabel=function(t,e){return Object(w["C"])(t)&&t?Object(li["d"])(t,e):Object(w["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,o){var a=e[0],r=e[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]}}},e.prototype._renderYearText=function(t,e,n,i){var o=t.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,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=o.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:d},f=this._formatterLabel(p,g),y=new st["a"]({z2:30,style:Object(jn["c"])(o,{text:f})});y.attr(this._yearTextPositionControl(y,h[r],n,r,a)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,o){var a="left",r="top",s=t[0],l=t[1];return"horizontal"===n?(l+=o,e&&(a="center"),"start"===i&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===i&&(a="right")),{x:s,y:l,align:a,verticalAlign:r}},e.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var a=o.get("nameMap"),r=o.get("margin"),s=o.get("position"),l=o.get("align"),c=[this._tlpoints,this._blpoints];a&&!Object(w["C"])(a)||(a&&(e=Object(iM["d"])(a)||e),a=e.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,h="horizontal"===n?0:1;r="start"===s?-r:r;for(var d="center"===l,p=0;p=i.start.time&&n.timer.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/rM)-Math.floor(n[0].time/rM)+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=e?1-c:c-1;return e&&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}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var o=7*(t-1)-i.fweek+e,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(o){var a=new t(o,e,n);i.push(a),o.coordinateSystem=a})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function lM(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var cM=sM;function uM(t){t.registerComponentModel(nM),t.registerComponentView(aM),t.registerCoordinateSystem("calendar",cM)}function hM(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function dM(t,e){var n;return w["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function pM(t,e,n){var i=w["m"]({},n),o=t[e],a=n.$action||"merge";"merge"===a?o?(w["I"](o,i,!0),Object(Eo["h"])(o,i,{ignoreSize:!0}),Object(Eo["c"])(n,o),yM(n,o),yM(n,o,"shape"),yM(n,o,"style"),yM(n,o,"extra"),n.clipPath=o.clipPath):t[e]=i:"replace"===a?t[e]=i:"remove"===a&&o&&(t[e]=null)}var gM=["transition","enterFrom","leaveTo"],fM=gM.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yM(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?gM:fM,o=0;o=0;l--){c=n[l],u=we["e"](c.id,null),h=null!=u?o.get(u):null;if(h){d=h.parent,f=xM(d);var y=d===i?{width:a,height:r}:{width:f.width,height:f.height},v={},m=Eo["i"](h,c,y,null,{hv:c.hv,boundingMode:c.bounding},v);if(!xM(h).isNew&&m){for(var b=c.transition,x={},_=0;_=0)?x[O]=S:h[O]=S}Object(On["h"])(h,x,t,0)}else h.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){SM(n,xM(n).option,e,t._lastGraphicModel)})),this._elMap=w["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(_a["a"]);function OM(t){var e=w["q"](bM,t)?bM[t]:wn["getShapeClass"](t);var n=new e({});return xM(n).type=t,n}function wM(t,e,n,i){var o=OM(n);return e.add(o),i.set(t,o),xM(o).id=t,xM(o).isNew=!0,o}function SM(t,e,n,i){var o=t&&t.parent;o&&("group"===t.type&&t.traverse((function(t){SM(t,e,n,i)})),L_(t,e,i),n.removeKey(xM(t).id))}function MM(t,e,n,i){t.isGroup||w["k"]([["cursor",Ou["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];w["q"](e,i)?t[i]=w["P"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),w["k"](w["F"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=w["w"](i)?i:null}})),w["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function IM(t){return t=w["m"]({},t),w["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Eo["a"]),(function(e){delete t[e]})),t}function jM(t,e,n){var i=Object(Se["a"])(t).eventData;t.silent||t.ignore||i||(i=Object(Se["a"])(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function AM(t){t.registerComponentModel(mM),t.registerComponentView(_M),t.registerPreprocessor((function(t){var e=t.graphic;Object(w["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var CM=["x","y","radius","angle","single"],DM=["cartesian2d","polar","singleAxis"];function TM(t){var e=t.get("coordinateSystem");return Object(w["r"])(DM,e)>=0}function kM(t){return t+"Axis"}function LM(t,e){var n,i=Object(w["f"])(),o=[],a=Object(w["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",r)}while(n);function r(t){!a.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){a.set(t.uid,!0),o.push(t),c(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var o=i.get(t);o&&o[n]&&(e=!0)})),e}function c(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function PM(t){var e=t.ecModel,n={infoList:[],infoMap:Object(w["f"])()};return t.eachTargetAxis((function(t,i){var o=e.getComponent(kM(t),i);if(o){var a=o.getCoordSysModel();if(a){var r=a.uid,s=n.infoMap.get(r);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(r,s)),s.axisModels.push(o)}}})),n}var NM=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),EM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){var i=RM(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=RM(t);Object(w["I"])(this.option,t,!0),Object(w["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(w["k"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(w["f"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(w["k"])(CM,(function(n){var i=this.getReferringComponents(kM(n),we["a"]);if(i.specified){e=!0;var o=new NM;Object(w["k"])(i.models,(function(t){o.add(t.componentIndex)})),t.set(n,o)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var o="vertical"===e?"y":"x",a=n.findComponents({mainType:o+"Axis"});r(a,o)}if(i){a=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});r(a,"single")}function r(e,n){var o=e[0];if(o){var a=new NM;if(a.add(o.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var r=o.getReferringComponents("grid",we["b"]).models[0];r&&Object(w["k"])(e,(function(t){o.componentIndex!==t.componentIndex&&r===t.getReferringComponents("grid",we["b"]).models[0]&&a.add(t.componentIndex)}))}}}i&&Object(w["k"])(CM,(function(e){if(i){var o=n.findComponents({mainType:kM(e),filter:function(t){return"category"===t.get("type",!0)}});if(o[0]){var a=new NM;a.add(o[0].componentIndex),t.set(e,a),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(w["k"])([["start","startValue"],["end","endValue"]],(function(i,o){var a=null!=t[i[0]],r=null!=t[i[1]];a&&!r?e[o]="percent":!a&&r?e[o]="value":n?e[o]=n[o]:a&&(e[o]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(kM(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(w["k"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(kM(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(w["k"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(w["k"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;ia[1];if(u&&!h&&!d)return!0;u&&(o=!0),h&&(e=!0),d&&(n=!0)}return o&&e&&n}))}else YM(i,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return r(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}}));YM(i,(function(t){e.setApproximateExtent(a,t)}))}}))}function r(t){return t>=a[0]&&t<=a[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;YM(["min","max"],(function(i){var o=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?o=ii["k"](n[0]+a,n,[0,100],!0):null!=o&&(a=ii["k"](o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=a}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=ii["f"](n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;0!==e[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},t}();function UM(t,e,n){var i=[1/0,-1/0];YM(n,(function(t){Wr(i,t.getData(),e)}));var o=t.getAxisModel(),a=Dr(o.axis.scale,o,i).calculate();return[a.min,a.max]}var qM=ZM,KM={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var a=t.getComponent(kM(i),o);e(i,o,a,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,o,a){o.__dzAxisProxy||(o.__dzAxisProxy=new qM(e,i,a,t),n.push(o.__dzAxisProxy))}));var i=Object(w["f"])();return Object(w["k"])(n,(function(t){Object(w["k"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},JM=KM;function $M(t){t.registerAction("dataZoom",(function(t,e){var n=LM(e,t);Object(w["k"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var QM=!1;function tI(t){QM||(QM=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,JM),$M(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function eI(t){t.registerComponentModel(BM),t.registerComponentView(WM),tI(t)}var nI=function(){function t(){}return t}(),iI={};function oI(t,e){iI[t]=e}function aI(t){return iI[t]}var rI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w["k"](this.option.feature,(function(t,n){var i=aI(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),w["I"](t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,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"}},e}(Oa["a"]),sI=rI;function lI(t,e,n){var i=e.getBoxLayoutParams(),o=e.get("padding"),a={width:n.getWidth(),height:n.getHeight()},r=Object(Eo["g"])(i,a,o);Object(Eo["b"])(e.get("orient"),t,e.get("itemGap"),r.width,r.height),Object(Eo["i"])(t,i,a,o)}function cI(t,e){var n=li["g"](e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new ei["a"]({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var uI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){var o=this.group;if(o.removeAll(),t.get("show")){var a=+t.get("itemSize"),r="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];w["k"](s,(function(t,e){c.push(e)})),new pe(this._featureNames||[],c).add(u).update(u).remove(w["h"](u,null)).execute(),this._featureNames=c,lI(o,t,n),o.add(cI(o.getBoundingRect(),t)),r||o.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),r=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!w["w"](l)&&e){var c=l.style||(l.style={}),u=p["d"](e,st["a"].makeFont(c)),h=t.x+o.x,d=t.y+o.y+a,g=!1;d+u.height>n.getHeight()&&(r.position="top",g=!0);var f=g?-5-u.height:a+10;h+u.width/2>n.getWidth()?(r.position=["100%",f],c.align="right"):h-u.width/2<0&&(r.position=[0,f],c.align="left")}}))}function u(o,a){var r,u=c[o],d=c[a],p=s[u],g=new ce["a"](p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(p.title=i.newTitle),u&&!d){if(hI(u))r={onclick:g.option.onclick,featureName:u};else{var f=aI(u);if(!f)return;r=new f}l[u]=r}else if(r=l[d],!r)return;r.uid=Object(Ki["c"])("toolbox-feature"),r.model=g,r.ecModel=e,r.api=n;var y=r instanceof nI;u||!d?!g.get("show")||y&&r.unusable?y&&r.remove&&r.remove(e,n):(h(g,r,u),g.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Sn["r"]:Sn["C"])(i[t])},r instanceof nI&&r.render&&r.render(g,e,n,i)):y&&r.dispose&&r.dispose(e,n)}function h(i,s,l){var c,u,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof nI&&s.getIcons?s.getIcons():i.get("icon"),g=i.get("title")||{};w["C"](p)?(c={},c[l]=p):c=p,w["C"](g)?(u={},u[l]=g):u=g;var f=i.iconPaths={};w["k"](c,(function(l,c){var p=wn["createIcon"](l,{},{x:-a/2,y:-a/2,width:a,height:a});p.setStyle(h.getItemStyle());var g=p.ensureState("emphasis");g.style=d.getItemStyle();var y=new st["a"]({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Object(jn["d"])({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(y),wn["setTooltipConfig"]({el:p,componentModel:t,itemName:c,formatterParamsExtra:{title:u[c]}}),p.__title=u[c],p.on("mouseover",(function(){var e=d.getItemStyle(),i=r?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===i.get(["iconStatus",c])?Sn["r"]:Sn["C"])(p),o.add(p),p.on("click",w["c"](s.onclick,s,e,n,c)),f[c]=p}))}},e.prototype.updateView=function(t,e,n,i){w["k"](this._features,(function(t){t instanceof nI&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){w["k"](this._features,(function(n){n instanceof nI&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){w["k"](this._features,(function(n){n instanceof nI&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(_a["a"]);function hI(t){return 0===t.indexOf("my")}var dI=uI,pI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",r=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=cw["a"].browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||o){var l=r.split(","),c=l[0].indexOf("base64")>-1,u=o?decodeURIComponent(l[1]):l[1];c&&(u=window.atob(u));var h=i+"."+a;if(window.navigator.msSaveOrOpenBlob){var d=u.length,p=new Uint8Array(d);while(d--)p[d]=u.charCodeAt(d);var g=new Blob([p]);window.navigator.msSaveOrOpenBlob(g,h)}else{var f=document.createElement("iframe");document.body.appendChild(f);var y=f.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),y.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(f)}}else{var m=n.get("lang"),b='',x=window.open();x.document.write(b),x.document.title=i}else{var _=document.createElement("a");_.download=i+"."+a,_.target="_blank",_.href=r;var O=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});_.dispatchEvent(O)}},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(nI),gI=pI,fI="__ec_magicType_stack__",yI=[["line","bar"],["stack"]],vI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return w["k"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,o=i.get(["seriesIndex",n]);if(mI[n]){var a,r={series:[]},s=function(t){var e=t.subType,o=t.id,a=mI[n](e,o,t,i);a&&(w["i"](a,t.option),r.series.push(a));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",h=t.getReferringComponents(u,we["b"]).models[0],d=h.componentIndex;r[u]=r[u]||[];for(var p=0;p<=d;p++)r[u][d]=r[u][d]||{};r[u][d].boundaryGap="bar"===n}}};w["k"](yI,(function(t){w["r"](t,n)>=0&&w["k"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},s);var l=n;"stack"===n&&(a=w["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:r,newTitle:a,featureName:"magicType"})}},e}(nI),mI={line:function(t,e,n,i){if("bar"===t)return w["I"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return w["I"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var o=n.get("stack")===fI;if("line"===t||"bar"===t)return i.setIconStatus("stack",o?"normal":"emphasis"),w["I"]({id:e,stack:o?"":fI},i.get(["option","stack"])||{},!0)}};Zl["c"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var bI=vI,xI=new Array(60).join("-"),_I="\t";function OI(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var o=t.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(t);else{var a=o.getBaseAxis();if("category"===a.type){var r=a.dim+"_"+a.index;e[r]||(e[r]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[r].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function wI(t){var e=[];return w["k"](t,(function(t,n){var i=t.categoryAxis,o=t.valueAxis,a=o.dim,r=[" "].concat(w["H"](t.series,(function(t){return t.name}))),s=[i.model.getCategories()];w["k"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(a),(function(t){return t})))}));for(var l=[r.join(_I)],c=0;c=0)return!0}var AI=new RegExp("["+_I+"]+","g");function CI(t){for(var e=t.split(/\n+/g),n=II(e.shift()).split(AI),i=[],o=w["H"](n,(function(t){return{name:t,data:[]}})),a=0;a=0;o--){var a=n[o];if(a[i])break}if(o<0){var r=t.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(e)}function zI(t){var e=GI(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return NI(n,(function(t,n){for(var o=e.length-1;o>=0;o--)if(t=e[o][n],t){i[n]=t;break}})),i}function VI(t){EI(t).snapshots=null}function BI(t){return GI(t).length}function GI(t){var e=EI(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var HI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.onclick=function(t,e){VI(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(nI);Zl["c"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var FI=HI,WI=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],YI=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var o=ZI(e,t);Object(w["k"])(UI,(function(t,e){(!n||!n.include||Object(w["r"])(n.include,e)>=0)&&t(o,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=JI[t.brushType](0,n,e);t.__rangeOffset={offset:QI[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(w["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(w["k"])(i.coordSyses,(function(i){var o=JI[t.brushType](1,i,t.range,!0);n(t,o.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(w["k"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=JI[t.brushType](0,n.coordSys,t.coordRange),o=t.__rangeOffset;t.range=o?QI[t.brushType](i.values,o.offset,ej(i.xyMinMax,o.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(w["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Sv(i),isTargetByCursor:Iv(i,t,n.coordSysModel),getLinearBrushOtherExtent:Mv(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(w["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=ZI(e,t),o=0;ot[1]&&t.reverse(),t}function ZI(t,e){return Object(we["s"])(t,e,{includeMainTypes:WI})}var UI={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,a=Object(w["f"])(),r={},s={};(n||i||o)&&(Object(w["k"])(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),r[e.id]=!0})),Object(w["k"])(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(w["k"])(o,(function(t){a.set(t.id,t),r[t.id]=!0,s[t.id]=!0})),a.each((function(t){var o=t.coordinateSystem,a=[];Object(w["k"])(o.getCartesians(),(function(t,e){(Object(w["r"])(n,t.getAxis("x").model)>=0||Object(w["r"])(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:KI.grid,xAxisDeclared:r[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(w["k"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:KI.geo})}))}},qI=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,o=t.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],KI={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(wn["getTransform"](t)),e}},JI={lineX:Object(w["h"])($I,0),lineY:Object(w["h"])($I,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),a=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),r=[XI([o[0],a[0]]),XI([o[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]],a=Object(w["H"])(n,(function(n){var a=t?e.pointToData(n,i):e.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 $I(t,e,n,i){var o=n.getAxis(["x","y"][t]),a=XI(Object(w["H"])([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),r=[];return r[t]=a,r[1-t]=[NaN,NaN],{values:a,xyMinMax:r}}var QI={lineX:Object(w["h"])(tj,0),lineY:Object(w["h"])(tj,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(w["H"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function tj(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function ej(t,e){var n=nj(t),i=nj(e),o=[n[0]/i[0],n[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function nj(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var ij=YI,oj=n("2f1f"),aj=w["k"],rj=Object(we["p"])("toolbox-dataZoom_"),sj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new wv(n.getZr()),this._brushController.on("brush",w["c"](this._onBrush,this)).mount()),hj(t,e,this,i,n),uj(t,e)},e.prototype.onclick=function(t,e,n){lj[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new ij(cj(this.model),i,{include:["grid"]});o.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(a("x",n,e[0]),a("y",n,e[1])):a({lineX:"x",lineY:"y"}[i],n,e)}})),RI(i,n),this._dispatchZoomAction(n)}function a(t,e,o){var a=e.getAxis(t),s=a.model,l=r(t,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(o=ly(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(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var o=n.getAxisModel(t,e.componentIndex);o&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];aj(t,(function(t,n){e.push(w["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(nI),lj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(zI(this.ecModel))}};function cj(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function uj(t,e){t.setIconStatus("back",BI(e)>1?"emphasis":"normal")}function hj(t,e,n,i,o){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var r=new ij(cj(t),e,{include:["grid"]}),s=r.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Object(oj["b"])("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),o=[],a=cj(i),r=Object(we["s"])(t,a);return aj(r.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),aj(r.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),o}function s(t,e,n){var a=t.componentIndex,r={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:rj+e+a};r[n]=a,o.push(r)}}));var dj=sj;function pj(t){t.registerComponentModel(sI),t.registerComponentView(dI),oI("saveAsImage",gI),oI("magicType",bI),oI("dataView",PI),oI("dataZoom",dj),oI("restore",FI),Object(l["a"])(eI)}var gj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Oa["a"]),fj=gj;function yj(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function vj(t){if(cw["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(a="left"===r?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(a="top"===r?225:45)+"deg)");var u=a*Math.PI/180,h=s+o,d=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),p=Math.round(100*((d-Math.SQRT2*o)/2+Math.SQRT2*o-(d-h)/2))/100;l+=";"+r+":-"+p+"px";var g=e+" solid "+o+"px;",f=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'
'}function jj(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,o="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,o+=cw["a"].transformSupported?","+wj+i:",left"+i+",top"+i),Oj+":"+o}function Aj(t,e,n){var i=t.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!cw["a"].transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var a=cw["a"].transform3dSupported,r="translate"+(a?"3d":"")+"("+i+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+wj+":"+r+";":[["top",0],["left",0],[mj,r]]}function Cj(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,r=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+r+"px "+s+"px "+a+"px "+o),Object(w["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function Dj(t,e,n){var i=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),r=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),u=t.getModel("textStyle"),h=Object(jl["d"])(t,"html"),d=l+"px "+c+"px "+r+"px "+s;return i.push("box-shadow:"+d),e&&o&&i.push(jj(o,n)),a&&i.push("background-color:"+a),Object(w["k"])(["width","color","radius"],(function(e){var n="border-"+e,o=Object(li["h"])(n),a=t.get(o);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))})),i.push(Cj(u)),null!=h&&i.push("padding:"+Object(li["g"])(h).join("px ")+"px"),i.join(";")+";"}function Tj(t,e,n,i,o){var a=e&&e.painter;if(n){var r=a&&a.getViewportRoot();r&&Object(T["d"])(t,r,n,i,o)}else{t[0]=i,t[1]=o;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var kj=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,cw["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=e.appendTo,a=o&&(Object(w["C"])(o)?document.querySelector(o):Object(w["v"])(o)?o:Object(w["w"])(o)&&o(t.getDom()));Tj(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!r._enterable){var e=i.handler,n=i.painter.getViewportRoot();Object(Xl["e"])(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=_j(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=Sj+Dj(t,!this._firstShow,this._longHide)+Aj(o[0],o[1],!0)+"border-color:"+Object(li["b"])(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,o){var a=this.el;if(null!=t){var r="";if(Object(w["C"])(o)&&"item"===n.get("trigger")&&!yj(n)&&(r=Ij(n,i,o)),Object(w["C"])(t))a.innerHTML=t+r;else if(t){a.innerHTML="",Object(w["t"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&o.manuallyShowTip(t,e,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!cw["a"].node&&n.getDom()){var o=Fj(i,n);this._ticket="";var a=i.dataByCoordSys,r=Uj(i,e,n);if(r){var s=r.el.getBoundingRect().clone();s.applyTransform(r.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Bj;l.x=i.x,l.y=i.y,l.update(),Object(Se["a"])(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},o)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=_w(i,e),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Fj(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,a=i.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=a&&null!=r){var s=e.getSeriesByIndex(o);if(s){var l=s.getData(),c=Hj([l.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var a,r,s=Object(Se["a"])(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Object(ch["a"])(n,(function(t){return null!=Object(Se["a"])(t).dataIndex?(a=t,!0):null!=Object(Se["a"])(t).tooltipConfig?(r=t,!0):void 0}),!0),a?this._showSeriesItemTooltip(t,a,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(w["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],a=Hj([e.tooltipOption],i),r=this._renderMode,s=[],l=Object(jl["c"])("section",{blocks:[],noHeader:!0}),c=[],u=new jl["a"];Object(w["k"])(t,(function(t){Object(w["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value;if(e&&null!=o){var a=KO(o,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Object(jl["c"])("section",{header:a,noHeader:!Object(w["T"])(a),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(w["k"])(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,g=d.getDataParams(p);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=zr(e.axis,{value:o}),g.axisValueLabel=a,g.marker=u.makeTooltipMarker("item",Object(li["b"])(g.color),r);var f=Object(Vj["b"])(d.formatTooltip(p,!0,null)),y=f.frag;if(y){var v=Hj([d],i).get("valueFormatter");h.blocks.push(v?Object(w["m"])({valueFormatter:v},y):y)}f.text&&c.push(f.text),s.push(g)}}))}}))})),l.blocks.reverse(),c.reverse();var h=e.position,d=a.get("order"),p=Object(jl["b"])(l,u,r,d,n.get("useUTC"),a.get("textStyle"));p&&c.unshift(p);var g="richText"===r?"\n\n":"
",f=c.join(g);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(a,h,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(a,f,s,Math.random()+"",o[0],o[1],h,null,u)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,o=Object(Se["a"])(e),a=o.seriesIndex,r=i.getSeriesByIndex(a),s=o.dataModel||r,l=o.dataIndex,c=o.dataType,u=s.getData(c),h=this._renderMode,d=t.positionDefault,p=Hj([u.getItemModel(l),s,r&&(r.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(null==g||"item"===g){var f=s.getDataParams(l,c),y=new jl["a"];f.marker=y.makeTooltipMarker("item",Object(li["b"])(f.color),h);var v=Object(Vj["b"])(s.formatTooltip(l,!1,c)),m=p.get("order"),b=p.get("valueFormatter"),x=v.frag,_=x?Object(jl["b"])(b?Object(w["m"])({valueFormatter:b},x):x,y,h,m,i.get("useUTC"),p.get("textStyle")):v.text,O="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,_,f,O,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,o=Object(Se["a"])(e),a=o.tooltipConfig,r=a.option||{},s=r.encodeHTMLContent;if(Object(w["C"])(r)){var l=r;r={content:l,formatter:l},s=!0}s&&i&&r.content&&(r=Object(w["d"])(r),r.content=Object(T["a"])(r.content));var c=[r],u=this._ecModel.getComponent(o.componentMainType,o.componentIndex);u&&c.push(u),c.push({formatter:r.content});var h=t.positionDefault,d=Hj(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",f=new jl["a"];this._showOrMove(d,(function(){var n=Object(w["d"])(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,g,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,o,a,r,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var u=t.get("formatter");r=r||t.get("position");var h=e,d=this._getNearestPoint([o,a],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(u)if(Object(w["C"])(u)){var g=t.ecModel.get("useUTC"),f=Object(w["t"])(n)?n[0]:n,y=f&&f.axisType&&f.axisType.indexOf("time")>=0;h=u,y&&(h=Object(ir["h"])(f.axisValue,h,g)),h=Object(li["c"])(h,n,!0)}else if(Object(w["w"])(u)){var v=Object(w["c"])((function(e,i){e===this._ticket&&(c.setContent(i,l,t,p,r),this._updatePosition(t,r,o,a,c,n,s))}),this);this._ticket=i,h=u(n,i,v)}else h=u;c.setContent(h,l,t,p,r),c.show(t,p),this._updatePosition(t,r,o,a,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(w["t"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(w["t"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,o,a,r){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=o.getSize(),u=t.get("align"),h=t.get("verticalAlign"),d=r&&r.getBoundingRect().clone();if(r&&d.applyTransform(r.transform),Object(w["w"])(e)&&(e=e([n,i],a,o.el,d,{viewSize:[s,l],contentSize:c.slice()})),Object(w["t"])(e))n=Object(ii["o"])(e[0],s),i=Object(ii["o"])(e[1],l);else if(Object(w["A"])(e)){var p=e;p.width=c[0],p.height=c[1];var g=Object(Eo["g"])(p,{width:s,height:l});n=g.x,i=g.y,u=null,h=null}else if(Object(w["C"])(e)&&r){var f=Xj(e,d,c,t.get("borderWidth"));n=f[0],i=f[1]}else{f=Wj(n,i,o,s,l,u?null:20,h?null:20);n=f[0],i=f[1]}if(u&&(n-=Zj(u)?c[0]/2:"right"===u?c[0]:0),h&&(i-=Zj(h)?c[1]/2:"bottom"===h?c[1]:0),yj(t)){f=Yj(n,i,o,s,l);n=f[0],i=f[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&Object(w["k"])(n,(function(n,a){var r=n.dataByAxis||[],s=t[a]||{},l=s.dataByAxis||[];o=o&&r.length===l.length,o&&Object(w["k"])(r,(function(t,n){var a=l[n]||{},r=t.seriesDataIndices||[],s=a.seriesDataIndices||[];o=o&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&r.length===s.length,o&&Object(w["k"])(r,(function(t,e){var n=s[e];o=o&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(w["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,a=e[n],r=i[n];a&&r&&r.data!==a.data&&(o=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!cw["a"].node&&e.getDom()&&(Object(Qi["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),mw("itemTooltip",e))},e.type="tooltip",e}(_a["a"]);function Hj(t,e,n){var i,o=e.ecModel;n?(i=new ce["a"](n,o,o),i=new ce["a"](e.option,i,o)):i=e;for(var a=t.length-1;a>=0;a--){var r=t[a];r&&(r instanceof ce["a"]&&(r=r.get("tooltip",!0)),Object(w["C"])(r)&&(r={formatter:r}),r&&(i=new ce["a"](r,i,o)))}return i}function Fj(t,e){return t.dispatchAction||Object(w["c"])(e.dispatchAction,e)}function Wj(t,e,n,i,o,a,r){var s=n.getSize(),l=s[0],c=s[1];return null!=a&&(t+l+a+2>i?t-=l+a:t+=a),null!=r&&(e+c+r>o?e-=c+r:e+=r),[t,e]}function Yj(t,e,n,i,o){var a=n.getSize(),r=a[0],s=a[1];return t=Math.min(t+r,i)-r,e=Math.min(e+s,o)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Xj(t,e,n,i){var o=n[0],a=n[1],r=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-o/2,l=e.y+u/2-a/2;break;case"top":s=e.x+c/2-o/2,l=e.y-a-r;break;case"bottom":s=e.x+c/2-o/2,l=e.y+u+r;break;case"left":s=e.x-o-r,l=e.y+u/2-a/2;break;case"right":s=e.x+c+r,l=e.y+u/2-a/2}return[s,l]}function Zj(t){return"center"===t||"middle"===t}function Uj(t,e,n){var i=Object(we["t"])(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var a=Object(we["v"])(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),r=a.models[0];if(r){var s,l=n.getViewOfComponentModel(r);return l.group.traverse((function(e){var n=Object(Se["a"])(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:o,componentIndex:r.componentIndex,el:s}:void 0}}}var qj=Gj;function Kj(t){Object(l["a"])(Pw),t.registerComponentModel(fj),t.registerComponentView(qj),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},w["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},w["L"])}var Jj=["rect","polygon","keep","clear"];function $j(t,e){var n=Object(we["r"])(t?t.brush:[]);if(n.length){var i=[];w["k"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var o=t&&t.toolbox;w["t"](o)&&(o=o[0]),o||(o={feature:{}},t.toolbox=[o]);var a=o.feature||(o.feature={}),r=a.brush||(a.brush={}),s=r.type||(r.type=[]);s.push.apply(s,i),Qj(s),e&&!s.length&&s.push.apply(s,Jj)}}function Qj(t){var e={};w["k"](t,(function(t){e[t]=1})),t.length=0,w["k"](e,(function(e,n){t.push(n)}))}var tA=n("0924"),eA=w["k"];function nA(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function iA(t,e,n){var i={};return eA(e,(function(e){var a=i[e]=o();eA(t[e],(function(t,i){if(pp.isValidType(i)){var o={type:i,visual:t};n&&n(o,e),a[i]=new pp(o),"opacity"===i&&(o=w["d"](o),o.type="colorAlpha",a.__hidden.__alphaForOpacity=new pp(o))}}))})),i;function o(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function oA(t,e,n){var i;w["k"](n,(function(t){e.hasOwnProperty(t)&&nA(e[t])&&(i=!0)})),i&&w["k"](n,(function(n){e.hasOwnProperty(n)&&nA(e[n])?t[n]=w["d"](e[n]):delete t[n]}))}function aA(t,e,n,i,o,a){var r,s={};function l(t){return Object(tA["a"])(n,r,t)}function c(t,e){Object(tA["c"])(n,r,t,e)}function u(t,u){r=null==a?t:u;var h=n.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var d=i.call(o,t),p=e[d],g=s[d],f=0,y=g.length;fe[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&_A(e)}};function _A(t){return new pa["a"](t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var OA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new wv(e.getZr())).on("brush",w["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){gA(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:w["d"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:w["d"](n),$from:e})},e.type="brush",e}(_a["a"]),wA=OA,SA="#ddd",MA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&oA(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:SA},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=w["H"](t,(function(t){return IA(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=IA(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.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},e}(Oa["a"]);function IA(t,e){return w["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new ce["a"](t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var jA=MA,AA=["rect","polygon","lineX","lineY","keep","clear"],CA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i,o,a;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,o=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=i,this._brushMode=o,w["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return w["k"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},e.getDefaultOption=function(t){var e={show:!0,type:AA.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:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(nI),DA=CA;function TA(t){t.registerComponentView(wA),t.registerComponentModel(jA),t.registerPreprocessor($j),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,fA),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},w["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},w["L"]),oI("brush",DA)}var kA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(le["a"])(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Oa["a"]),LA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),a=t.getModel("subtextStyle"),r=t.get("textAlign"),s=w["P"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new st["a"]({style:Object(jn["c"])(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=t.get("subtext"),h=new st["a"]({style:Object(jn["c"])(a,{text:u,fill:a.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);l.silent=!d&&!g,h.silent=!p&&!g,d&&l.on("click",(function(){Object(li["i"])(d,"_"+t.get("target"))})),p&&h.on("click",(function(){Object(li["i"])(p,"_"+t.get("subtarget"))})),Object(Se["a"])(l).eventData=Object(Se["a"])(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),u&&i.add(h);var f=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=f.width,y.height=f.height;var v=Object(Eo["g"])(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));r||(r=t.get("left")||t.get("right"),"middle"===r&&(r="center"),"right"===r?v.x+=v.width:"center"===r&&(v.x+=v.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:r,verticalAlign:s};l.setStyle(m),h.setStyle(m),f=i.getBoundingRect();var b=v.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var _=new ei["a"]({shape:{x:f.x-b[3],y:f.y-b[0],width:f.width+b[1]+b[3],height:f.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(_)}},e.type="title",e}(_a["a"]);function PA(t){t.registerComponentModel(kA),t.registerComponentView(LA)}var NA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,o=this._names=[];"category"===i?(t=[],Object(w["k"])(n,(function(e,n){var i,a=Object(we["e"])(Object(we["h"])(e),"");Object(w["A"])(e)?(i=Object(w["d"])(e),i.value=n):i=n,t.push(i),o.push(a)}))):t=n;var a={category:"ordinal",time:"time",value:"number"}[i]||"number",r=this._data=new qe([{name:"value",type:a}],this);r.initData(t,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={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:[]},e}(Oa["a"]),EA=NA,RA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="timeline.slider",e.defaultOption=Object(Ki["d"])(EA.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:[]}),e}(EA);Object(w["K"])(RA,Vj["a"].prototype);var zA=RA,VA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="timeline",e}(_a["a"]),BA=VA,GA=function(t){function e(e,n,i,o){var a=t.call(this,e,n,i)||this;return a.type=o||"value",a}return Object(le["a"])(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(bs),HA=GA,FA=Math.PI,WA=Object(we["o"])(),YA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=r.scale.getLabel({value:t});return Object(jl["c"])("nameValue",{noName:!0,value:e})},Object(w["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,o,r,t)}),this),this._renderAxisLabel(i,a,r,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),o=t.get("orient"),a=ZA(t,e);n=null==i||"auto"===i?"horizontal"===o?a.y+a.height/2=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:FA/2},d="vertical"===o?a.height:a.width,p=t.getModel("controlStyle"),g=p.get("show",!0),f=g?p.get("itemSize"):0,y=g?p.get("itemGap"):0,v=f+y,m=t.get(["label","rotate"])||0;m=m*FA/180;var b=p.get("position",!0),x=g&&p.get("showPlayBtn",!0),_=g&&p.get("showPrevBtn",!0),O=g&&p.get("showNextBtn",!0),S=0,M=d;"left"===b||"bottom"===b?(x&&(r=[0,0],S+=v),_&&(s=[S,0],S+=v),O&&(l=[M-f,0],M-=v)):(x&&(r=[M-f,0],M-=v),_&&(s=[0,0],S+=v),O&&(l=[M-f,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:a,mainLength:d,orient:o,rotation:h[o],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||c[o],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[o],playPosition:r,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:f,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var a=Zr["c"](),r=o.x,s=o.y+o.height;Zr["i"](a,a,[-r,-s]),Zr["g"](a,a,-FA/2),Zr["i"](a,a,[r,s]),o=o.clone(),o.applyTransform(a)}var l=y(o),c=y(n.getBoundingRect()),u=y(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=t.labelPosOpt;if(null==p||Object(w["C"])(p)){var g="+"===p?0:1;v(h,c,l,1,g),v(d,u,l,1,1-g)}else{g=p>=0?0:1;v(h,c,l,1,g),d[1]=h[1]+p}function f(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,f(n),f(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=XA(e,i);o.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var a=n.getDataExtent("value");o.setExtent(a[0],a[1]),o.calcNiceTicks();var r=new HA("value",o,t.axisExtent,i);return r.model=e,r},e.prototype._createGroup=function(t){var e=this[t]=new bn["a"];return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var a=new Ls["a"]({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Object(w["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(a);var r=this._progressLine=new Ls["a"]({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Object(w["i"])({lineCap:"round",lineWidth:a.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(r)}},e.prototype._renderAxisTick=function(t,e,n,i){var o=this,a=i.getData(),r=n.scale.getTicks();this._tickSymbols=[],Object(w["k"])(r,(function(t){var r=n.dataToCoord(t.value),s=a.getItemModel(t.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),h={x:r,y:0,onclick:Object(w["c"])(o._changeTimeline,o,t.value)},d=qA(s,l,e,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Object(Sn["o"])(d);var p=Object(Se["a"])(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,o._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var o=this,a=n.getLabelModel();if(a.get("show")){var r=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(w["k"])(s,(function(i){var a=i.tickValue,s=r.getItemModel(a),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new st["a"]({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(w["c"])(o._changeTimeline,o,a),silent:!1,style:Object(jn["c"])(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Object(jn["c"])(c),d.ensureState("progress").style=Object(jn["c"])(u),e.add(d),Object(Sn["o"])(d),WA(d).dataIndex=a,o._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var o=t.controlSize,a=t.rotation,r=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(t,n,l,c){if(t){var u=Object(p["g"])(Object(w["P"])(i.get(["controlStyle",n+"BtnSize"]),o),o),h=[0,-u/2,u,u],d=UA(i,n+"Icon",h,{x:t[0],y:t[1],originX:o/2,originY:0,rotation:c?-a:0,rectHover:!0,style:r,onclick:l});d.ensureState("emphasis").style=s,e.add(d),Object(Sn["o"])(d)}}u(t.nextBtnPosition,"next",Object(w["c"])(this._changeTimeline,this,c?"-":"+")),u(t.prevBtnPosition,"prev",Object(w["c"])(this._changeTimeline,this,c?"+":"-")),u(t.playPosition,l?"stop":"play",Object(w["c"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),a=i.getCurrentIndex(),r=o.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(w["c"])(s._handlePointerDrag,s),t.ondragend=Object(w["c"])(s._handlePointerDragend,s),KA(t,s._progressLine,a,n,i,!0)},onUpdate:function(t){KA(t,s._progressLine,a,n,i)}};this._currentPointer=qA(r,r,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,o=ii["c"](i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(r[a]=+r[a].toFixed(d)),[r,h]}var fC={min:Object(w["h"])(gC,"min"),max:Object(w["h"])(gC,"max"),average:Object(w["h"])(gC,"average"),median:Object(w["h"])(gC,"median")};function yC(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,o=i&&i.dimensions;if(!pC(e)&&!Object(w["t"])(e.coord)&&Object(w["t"])(o)){var a=vC(e,n,i,t);if(e=Object(w["d"])(e),e.type&&fC[e.type]&&a.baseAxis&&a.valueAxis){var r=Object(w["r"])(o,a.baseAxis.dim),s=Object(w["r"])(o,a.valueAxis.dim),l=fC[e.type](n,a.baseDataDim,a.valueDataDim,r,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(w["t"])(o))for(var c=e.coord,u=0;u<2;u++)fC[c[u]]&&(c[u]=OC(n,n.mapDimension(o[u]),c[u]));else e.coord=[];return e}}function vC(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(mC(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function mC(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function bC(t,e){return!(t&&t.containData&&e.coord&&!dC(e))||t.containData(e.coord)}function xC(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!dC(e)&&!dC(n))||t.containZone(e.coord,n.coord)}function _C(t,e){return t?function(t,n,i,o){var a=o<2?t.coord&&t.coord[o]:t.value;return Object(hC["d"])(a,e[o])}:function(t,n,i,o){return Object(hC["d"])(t.value,e[o])}}function OC(t,e,n){if("average"===n){var i=0,o=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,o++)})),i/o}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var wC=Object(we["o"])(),SC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(){this.markerGroupMap=Object(w["f"])()},e.prototype.render=function(t,e,n){var i=this,o=this.markerGroupMap;o.each((function(t){wC(t).keep=!1})),e.eachSeries((function(t){var o=lC.getMarkerModelFromSeries(t,i.type);o&&i.renderSeries(t,o,e,n)})),o.each((function(t){!wC(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){wC(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(w["k"])(t,(function(t){var i=lC.getMarkerModelFromSeries(t,n.type);if(i){var o=i.getData();o.eachItemGraphicEl((function(t){t&&(e?Object(Sn["q"])(t):Object(Sn["B"])(t))}))}}))},e.type="marker",e}(_a["a"]),MC=SC;function IC(t,e,n){var i=e.coordinateSystem;t.each((function(o){var a,r=t.getItemModel(o),s=ii["o"](r.get("x"),n.getWidth()),l=ii["o"](r.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,o));else if(i){var c=t.get(i.dimensions[0],o),u=t.get(i.dimensions[1],o);a=i.dataToPoint([c,u])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(o,a)}))}var jC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=lC.getMarkerModelFromSeries(t,"markPoint");e&&(IC(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Nn),c=AC(o,t,e);e.setData(c),IC(e.getData(),t,i),c.each((function(t){var n=c.getItemModel(t),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(w["w"])(i)||Object(w["w"])(o)||Object(w["w"])(a)||Object(w["w"])(s)){var u=e.getRawValue(t),h=e.getDataParams(t);Object(w["w"])(i)&&(i=i(u,h)),Object(w["w"])(o)&&(o=o(u,h)),Object(w["w"])(a)&&(a=a(u,h)),Object(w["w"])(s)&&(s=s(u,h))}var d=n.getModel("itemStyle").getItemStyle(),p=Object(tA["b"])(r,"color");d.fill||(d.fill=p),c.setItemVisual(t,{symbol:i,symbolSize:o,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(t){t.traverse((function(t){Object(Se["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(MC);function AC(t,e,n){var i;i=t?Object(w["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(w["m"])(Object(w["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new qe(i,n),a=Object(w["H"])(n.get("data"),Object(w["h"])(yC,e));t&&(a=Object(w["n"])(a,Object(w["h"])(bC,t)));var r=_C(!!t,i);return o.initData(a,null,r),o}var CC=jC;function DC(t){t.registerComponentModel(uC),t.registerComponentView(CC),t.registerPreprocessor((function(t){oC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var TC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(lC),kC=TC,LC=Object(we["o"])(),PC=function(t,e,n,i){var o,a=t.getData();if(Object(w["t"])(i))o=i;else{var r=i.type;if("min"===r||"max"===r||"average"===r||"median"===r||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(w["O"])(i.yAxis,i.xAxis);else{var c=vC(i,a,e,t);s=c.valueAxis;var u=un(a,c.valueDataDim);l=OC(a,u,r)}var h="x"===s.dim?0:1,d=1-h,p=Object(w["d"])(i),g={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,g.coord[d]=1/0;var f=n.get("precision");f>=0&&Object(w["z"])(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[h]=g.coord[h]=l,o=[p,g,{type:r,valueIndex:i.valueIndex,value:l}]}else o=[]}var y=[yC(t,o[0]),yC(t,o[1]),Object(w["m"])({},o[2])];return y[2].type=y[2].type||null,Object(w["I"])(y[2],y[0]),Object(w["I"])(y[2],y[1]),y};function NC(t){return!isNaN(t)&&!isFinite(t)}function EC(t,e,n,i){var o=1-t,a=i.dimensions[t];return NC(e[o])&&NC(n[o])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function RC(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(EC(1,n,i,t)||EC(0,n,i,t)))return!0}return bC(t,e[0])&&bC(t,e[1])}function zC(t,e,n,i,o){var a,r=i.coordinateSystem,s=t.getItemModel(e),l=ii["o"](s.get("x"),o.getWidth()),c=ii["o"](s.get("y"),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=r.dimensions,h=t.get(u[0],e),d=t.get(u[1],e);a=r.dataToPoint([h,d])}if(si(r,"cartesian2d")){var p=r.getAxis("x"),g=r.getAxis("y");u=r.dimensions;NC(t.get(u[0],e))?a[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):NC(t.get(u[1],e))&&(a[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];t.setItemLayout(e,a)}var VC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=lC.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),o=LC(e).from,a=LC(e).to;o.each((function(e){zC(o,e,!0,t,n),zC(a,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[o.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Hg);this.group.add(l.group);var c=BC(o,t,e),u=c.from,h=c.to,d=c.line;LC(e).from=u,LC(e).to=h,e.setData(d);var p=e.get("symbol"),g=e.get("symbolSize"),f=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,o){var a=e.getItemModel(n);zC(e,n,o,t,i);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(tA["b"])(r,"color")),e.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(w["P"])(a.get("symbolOffset",!0),y[o?0:1]),symbolRotate:Object(w["P"])(a.get("symbolRotate",!0),f[o?0:1]),symbolSize:Object(w["P"])(a.get("symbolSize"),g[o?0:1]),symbol:Object(w["P"])(a.get("symbol",!0),p[o?0:1]),style:s})}Object(w["t"])(p)||(p=[p,p]),Object(w["t"])(g)||(g=[g,g]),Object(w["t"])(f)||(f=[f,f]),Object(w["t"])(y)||(y=[y,y]),c.from.each((function(t){v(u,t,!0),v(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[u.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=u.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(t,"symbolOffset"),fromSymbolRotate:u.getItemVisual(t,"symbolRotate"),fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),c.line.eachItemGraphicEl((function(t){Object(Se["a"])(t).dataModel=e,t.traverse((function(t){Object(Se["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(MC);function BC(t,e,n){var i;i=t?Object(w["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(w["m"])(Object(w["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new qe(i,n),a=new qe(i,n),r=new qe([],n),s=Object(w["H"])(n.get("data"),Object(w["h"])(PC,e,t,n));t&&(s=Object(w["n"])(s,Object(w["h"])(RC,t)));var l=_C(!!t,i);return o.initData(Object(w["H"])(s,(function(t){return t[0]})),null,l),a.initData(Object(w["H"])(s,(function(t){return t[1]})),null,l),r.initData(Object(w["H"])(s,(function(t){return t[2]}))),r.hasItemOption=!0,{from:o,to:a,line:r}}var GC=VC;function HC(t){t.registerComponentModel(kC),t.registerComponentView(GC),t.registerPreprocessor((function(t){oC(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var FC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(lC),WC=FC,YC=Object(we["o"])(),XC=function(t,e,n,i){var o=i[0],a=i[1];if(o&&a){var r=yC(t,o),s=yC(t,a),l=r.coord,c=s.coord;l[0]=Object(w["O"])(l[0],-1/0),l[1]=Object(w["O"])(l[1],-1/0),c[0]=Object(w["O"])(c[0],1/0),c[1]=Object(w["O"])(c[1],1/0);var u=Object(w["J"])([{},r,s]);return u.coord=[r.coord,s.coord],u.x0=r.x,u.y0=r.y,u.x1=s.x,u.y1=s.y,u}};function ZC(t){return!isNaN(t)&&!isFinite(t)}function UC(t,e,n,i){var o=1-t;return ZC(e[o])&&ZC(n[o])}function qC(t,e){var n=e.coord[0],i=e.coord[1],o={coord:n,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};return si(t,"cartesian2d")?!(!n||!i||!UC(1,n,i,t)&&!UC(0,n,i,t))||xC(t,o,a):bC(t,o)||bC(t,a)}function KC(t,e,n,i,o){var a,r=i.coordinateSystem,s=t.getItemModel(e),l=ii["o"](s.get(n[0]),o.getWidth()),c=ii["o"](s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=r.clampData(u),p=r.clampData(h),g=[];"x0"===n[0]?g[0]=d[0]>p[0]?h[0]:u[0]:g[0]=d[0]>p[0]?u[0]:h[0],"y0"===n[1]?g[1]=d[1]>p[1]?h[1]:u[1]:g[1]=d[1]>p[1]?u[1]:h[1],a=i.getMarkerPosition(g,n,!0)}else{var f=t.get(n[0],e),y=t.get(n[1],e),v=[f,y];r.clampData&&r.clampData(v,v),a=r.dataToPoint(v,!0)}if(si(r,"cartesian2d")){var m=r.getAxis("x"),b=r.getAxis("y");f=t.get(n[0],e),y=t.get(n[1],e);ZC(f)?a[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):ZC(y)&&(a[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];return a}var JC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],$C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=lC.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var o=Object(w["H"])(JC,(function(o){return KC(i,e,o,t,n)}));i.setItemLayout(e,o);var a=i.getItemGraphicEl(e);a.setShape("points",o)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new bn["a"]});this.group.add(l.group),this.markKeep(l);var c=QC(o,t,e);e.setData(c),c.each((function(e){var n=Object(w["H"])(JC,(function(n){return KC(c,e,n,t,i)})),a=o.getAxis("x").scale,s=o.getAxis("y").scale,l=a.getExtent(),u=s.getExtent(),h=[a.parse(c.get("x0",e)),a.parse(c.get("x1",e))],d=[s.parse(c.get("y0",e)),s.parse(c.get("y1",e))];ii["c"](h),ii["c"](d);var p=!(l[0]>h[1]||l[1]d[1]||u[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Oa["a"]),oD=iD,aD=w["h"],rD=w["k"],sD=bn["a"],lD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(le["a"])(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new sD),this.group.add(this._selectorGroup=new sD),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var r=t.get("selector",!0),s=t.get("selectorPosition",!0);!r||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,r,a,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=t.get("padding"),h=Eo["g"](l,c,u),d=this.layoutInner(t,o,h,i,r,s),p=Eo["g"](w["i"]({width:d.width,height:d.height},l),c,u);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=cI(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,o,a,r){var s=this.getContentGroup(),l=w["f"](),c=e.get("selectedMode"),u=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&u.push(t.id)})),rD(e.getData(),(function(o,a){var r=o.get("name");if(!this.newlineDisabled&&(""===r||"\n"===r)){var h=new sD;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(r)[0];if(!l.get(r)){if(d){var p=d.getData(),g=p.getVisual("legendLineStyle")||{},f=p.getVisual("legendIcon"),y=p.getVisual("style"),v=this._createItem(d,r,a,o,e,t,g,y,f,c,i);v.on("click",aD(hD,r,null,i,u)).on("mouseover",aD(pD,d.name,null,i,u)).on("mouseout",aD(gD,d.name,null,i,u)),n.ssr&&v.eachChild((function(t){var e=Object(Se["a"])(t);e.seriesIndex=d.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),l.set(r,!0)}else n.eachRawSeries((function(s){if(!l.get(r)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(r))return;var d=h.indexOfName(r),p=h.getItemVisual(d,"style"),g=h.getItemVisual(d,"legendIcon"),f=Object(ct["h"])(p.fill);f&&0===f[3]&&(f[3]=.2,p=w["m"](w["m"]({},p),{fill:Object(ct["i"])(f,"rgba")}));var y=this._createItem(s,r,a,o,e,t,{},p,g,c,i);y.on("click",aD(hD,null,r,i,u)).on("mouseover",aD(pD,null,r,i,u)).on("mouseout",aD(gD,null,r,i,u)),n.ssr&&y.eachChild((function(t){var e=Object(Se["a"])(t);e.seriesIndex=s.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),l.set(r,!0)}}),this);0}}),this),o&&this._createSelector(o,e,i,a,r)},e.prototype._createSelector=function(t,e,n,i,o){var a=this.getSelectorGroup();rD(t,(function(t){var i=t.type,o=new st["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(o);var r=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Object(jn["g"])(o,{normal:r,emphasis:s},{defaultText:t.title}),Object(Sn["o"])(o)}))},e.prototype._createItem=function(t,e,n,i,o,a,r,s,l,c,u){var h=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(e),f=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var m=cD(l,i,r,s,h,g,u),b=new sD,x=i.getModel("textStyle");if(!w["w"](t.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;b.add(uD({itemWidth:d,itemHeight:p,icon:l,iconRotate:_,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:f,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var O="left"===a?d+5:-5,S=a,M=o.get("formatter"),I=e;w["C"](M)&&M?I=M.replace("{name}",null!=e?e:""):w["w"](M)&&(I=M(e));var j=g?x.getTextColor():i.get("inactiveColor");b.add(new st["a"]({style:Object(jn["c"])(x,{text:I,x:O,y:p/2,fill:j,align:S,verticalAlign:"middle"},{inheritColor:j})}));var A=new ei["a"]({shape:b.getBoundingRect(),style:{fill:"transparent"}}),C=i.getModel("tooltip");return C.get("show")&&wn["setTooltipConfig"]({el:A,componentModel:o,itemName:e,itemTooltipOption:C.option}),b.add(A),b.eachChild((function(t){t.silent=!0})),A.silent=!c,this.getContentGroup().add(b),Object(Sn["o"])(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,o,a){var r=this.getContentGroup(),s=this.getSelectorGroup();Eo["b"](t.get("orient"),r,t.get("itemGap"),n.width,n.height);var l=r.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),r.markRedraw(),o){Eo["b"]("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",f=0===p?"height":"width",y=0===p?"y":"x";"end"===a?h[p]+=l[g]+d:c[p]+=u[g]+d,h[1-p]+=l[f]/2-u[f]/2,s.x=h[0],s.y=h[1],r.x=c[0],r.y=c[1];var v={x:0,y:0};return v[g]=l[g]+d+u[g],v[f]=Math.max(l[f],u[f]),v[y]=Math.min(0,u[y]+h[1-p]),v}return r.x=c[0],r.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(_a["a"]);function cD(t,e,n,i,o,a,r){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),rD(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Object(_u["a"])(h,r):i.decal,"inherit"===c.fill&&(c.fill=i[o]),"inherit"===c.stroke&&(c.stroke=i[u]),"inherit"===c.opacity&&(c.opacity=("fill"===o?i:n).opacity),s(c,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!a){var g=e.get("inactiveBorderWidth"),f=c[u];c.lineWidth="auto"===g?i.lineWidth>0&&f?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function uD(t){var e=t.icon||"roundRect",n=Object(mn["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function hD(t,e,n,i){gD(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),pD(t,e,n,i)}function dD(t){var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;while(in[o],g=[-h.x,-h.y];e||(g[i]=l[s]);var f=[0,0],y=[-d.x,-d.y],v=w["P"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?y[i]+=n[o]-d[o]:f[i]+=d[o]+v}y[1-i]+=h[a]/2-d[a]/2,l.setPosition(g),c.setPosition(f),u.setPosition(y);var b={x:0,y:0};if(b[o]=p?n[o]:h[o],b[a]=Math.max(h[a],d[a]),b[r]=Math.min(0,d[r]+y[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-v,0),x[a]=b[a],c.setClipPath(new ei["a"]({shape:x})),c.__rectSize=x[o]}else u.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&On["h"](l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),b},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;w["k"](["pagePrev","pageNext"],(function(i){var o=i+"DataIndex",a=null!=e[o],r=n.childOfName(i);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var i=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,r=null!=a?a+1:0,s=e.pageCount;i&&o&&i.setStyle("text",w["C"](o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==s?"":s+""):o({current:r,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,a=SD[o],r=MD[o],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=m(c);d.contentPosition[o]=-p.s;for(var g=s+1,f=p,y=p,v=null;g<=u;++g)v=m(l[g]),(!v&&y.e>f.s+i||v&&!b(v,f.s))&&(f=y.i>f.i?y:v,f&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=f.i),++d.pageCount)),y=v;for(g=s-1,f=p,y=p,v=null;g>=-1;--g)v=m(l[g]),v&&b(y,v.s)||!(f.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,o){var a=i.__legendDataIndex;null==n&&null!=a&&(n=o),a===t&&(e=o)})),null!=e?e:n},e.type="legend.scroll",e}(fD),jD=ID;function AD(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function CD(t){Object(l["a"])(bD),t.registerComponentModel(OD),t.registerComponentView(jD),AD(t)}function DD(t){Object(l["a"])(bD),Object(l["a"])(CD)}var TD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="dataZoom.inside",e.defaultOption=Object(Ki["d"])(zM.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(zM),kD=TD,LD=Object(we["o"])();function PD(t,e,n){LD(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function ND(t,e){for(var n=LD(t).coordSysRecordMap,i=n.keys(),o=0;oi[n+e]&&(e=r),o=o&&a.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function GD(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=LD(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(w["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=PM(t);Object(w["k"])(n.infoList,(function(n){var o=n.model.uid,a=i.get(o)||i.set(o,RD(e,n.model)),r=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(w["f"])());r.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,o=t.dataZoomInfoMap;if(o){var a=o.keys()[0];null!=a&&(e=o.get(a))}if(e){var r=BD(o);n.enable(r.controlType,r.opt),n.setPointerChecker(t.containsPoint),Qi["b"](t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else ED(i,t)}))}))}var HD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(le["a"])(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),PD(i,e,{pan:Object(w["c"])(FD.pan,this),zoom:Object(w["c"])(FD.zoom,this),scrollMove:Object(w["c"])(FD.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ND(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(HM),FD={zoom:function(t,e,n,i){var o=this.range,a=o.slice(),r=t.axisModels[0];if(r){var s=YD[e](null,[i.originX,i.originY],r,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/i.scale,0);a[0]=(a[0]-l)*c+l,a[1]=(a[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return ly(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}},pan:WD((function(t,e,n,i,o,a){var r=YD[i]([a.oldX,a.oldY],[a.newX,a.newY],e,o,n);return r.signal*(t[1]-t[0])*r.pixel/r.pixelLength})),scrollMove:WD((function(t,e,n,i,o,a){var r=YD[i]([0,0],[a.scrollDelta,a.scrollDelta],e,o,n);return r.signal*(t[1]-t[0])*a.scrollDelta}))};function WD(t){return function(e,n,i,o){var a=this.range,r=a.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,n,i,o);return ly(l,r,[0,100],"all"),this.range=r,a[0]!==r[0]||a[1]!==r[1]?r:void 0}}}var YD={grid:function(t,e,n,i,o){var a=n.axis,r={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=a.inverse?-1:1),r},polar:function(t,e,n,i,o){var a=n.axis,r={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=c[1]-c[0],r.pixelStart=c[0],r.signal=a.inverse?-1:1),r},singleAxis:function(t,e,n,i,o){var a=n.axis,r=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=a.inverse?-1:1),s}},XD=HD;function ZD(t){tI(t),t.registerComponentModel(kD),t.registerComponentView(XD),GD(t)}var UD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(Ki["d"])(zM.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(zM),qD=UD,KD=ei["a"],JD=7,$D=1,QD=30,tT=7,eT="horizontal",nT="vertical",iT=5,oT=["line","bar","candlestick","scatter"],aT={easing:"cubicOut",duration:100,delay:0},rT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(w["c"])(this._onBrush,this),this._onBrushEnd=Object(w["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,o){if(t.prototype.render.apply(this,arguments),Qi["b"](this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Qi["a"](this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new bn["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?tT:0,o=this._findCoordRect(),a={width:e.getWidth(),height:e.getHeight()},r=this._orient===eT?{right:a.width-o.x-o.width,top:a.height-QD-JD-i,width:o.width,height:QD}:{right:JD,top:o.y,width:QD,height:o.height},s=Eo["f"](t.option);Object(w["k"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=r[t])}));var l=Eo["g"](s,a);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===nT&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),a=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==eT||o?n===eT&&o?{scaleY:r?1:-1,scaleX:-1}:n!==nT||o?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1});var s=t.getBoundingRect([a]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new KD({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new KD({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(w["c"])(this._onClickPanel,this)}),a=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),a=i.getShadowDim&&i.getShadowDim(),r=a&&o.getDimensionInfo(a)?i.getShadowDim():t.otherDim;if(null!=r){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||r!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var c=o.getDataExtent(r),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,e[1]],p=[0,e[0]],g=[[e[0],0],[0,0]],f=[],y=p[1]/(o.count()-1),v=0,m=Math.round(o.count()/e[0]);o.each([r],(function(t,e){if(m>0&&e%m)v+=y;else{var n=null==t||isNaN(t)||""===t,i=n?0:Object(ii["k"])(t,c,d,!0);n&&!h&&e?(g.push([g[g.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&h&&(g.push([v,0]),f.push([v,0])),g.push([v,i]),f.push([v,i]),v+=y,h=n}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=f}this._shadowData=o,this._shadowDim=r,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var _=O(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function O(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new bn["a"],i=new Sl["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new Wo["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(o,a){var r=t.getAxisProxy(o,a).getTargetSeriesModels();Object(w["k"])(r,(function(t){if(!n&&!(!0!==e&&Object(w["r"])(oT,t.get("type"))<0)){var r,s=i.getComponent(kM(o),a).axis,l=sT(o),c=t.coordinateSystem;null!=l&&c.getOtherAxis&&(r=c.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:o,otherDim:l,otherAxisInverse:r}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],o=this._displayables.sliderGroup,a=this._size,r=this.dataZoomModel,s=this.api,l=r.get("borderRadius")||0,c=r.get("brushSelect"),u=e.filler=new KD({silent:c,style:{fill:r.get("fillerColor")},textConfig:{position:"inside"}});o.add(u),o.add(new KD({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:$D,fill:"rgba(0,0,0,0)"}})),Object(w["k"])([0,1],(function(e){var a=r.get("handleIcon");!mn["d"][a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=Object(mn["a"])(a,-1,0,2,2,null,!0);s.attr({cursor:lT(this._orient),draggable:!0,drift:Object(w["c"])(this._onDragMove,this,e),ondragend:Object(w["c"])(this._onDragEnd,this),onmouseover:Object(w["c"])(this._showDataInfo,this,!0),onmouseout:Object(w["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=r.get("handleSize");this._handleHeight=Object(ii["o"])(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(r.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(Sn["o"])(s);var u=r.get("handleColor");null!=u&&(s.style.fill=u),o.add(n[e]=s);var h=r.getModel("textStyle");t.add(i[e]=new st["a"]({silent:!0,invisible:!0,style:Object(jn["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=u;if(c){var d=Object(ii["o"])(r.get("moveHandleSize"),a[1]),p=e.moveHandle=new ei["a"]({style:r.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),g=.8*d,f=e.moveHandleIcon=Object(mn["a"])(r.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);f.silent=!0,f.y=a[1]+d/2-.5,p.ensureState("emphasis").style=r.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(a[1]/2,Math.max(d,10));h=e.moveZone=new ei["a"]({invisible:!0,shape:{y:a[1]-y,height:d+y}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),o.add(p),o.add(f),o.add(h)}h.attr({draggable:!0,cursor:lT(this._orient),drift:Object(w["c"])(this._onDragMove,this,"all"),ondragstart:Object(w["c"])(this._showDataInfo,this,!0),ondragend:Object(w["c"])(this._onDragEnd,this),onmouseover:Object(w["c"])(this._showDataInfo,this,!0),onmouseout:Object(w["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(ii["k"])(t[0],[0,100],e,!0),Object(ii["k"])(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];ly(e,i,o,n.get("zoomLock")?"all":t,null!=a.minSpan?Object(ii["k"])(a.minSpan,r,o,!0):null,null!=a.maxSpan?Object(ii["k"])(a.maxSpan,r,o,!0):null);var s=this._range,l=this._range=Object(ii["c"])([Object(ii["k"])(i[0],o,r,!0),Object(ii["k"])(i[1],o,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Object(ii["c"])(n.slice()),o=this._size;Object(w["k"])([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scaleX:a/2,scaleY:a/2,x:n[t]+(t?-1:1),y:o[1]/2-a/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var a={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(a),e.moveZone.setShape(a),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",a.x+a.width/2));for(var r=e.dataShadowSegs,s=[0,i[0],i[1],o[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-o);this._updateView(),a&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Yo["a"](e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),a=[0,100];this._range=Object(ii["c"])([Object(ii["k"])(n.x,o,a,!0),Object(ii["k"])(n.x+n.width,o,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Xl["g"](t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new KD({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var a=this._brushStart,r=this._displayables.sliderGroup,s=r.transformCoordToLocal(t,e),l=r.transformCoordToLocal(a.x,a.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?aT:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=PM(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(HM);function sT(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function lT(t){return"vertical"===t?"ns-resize":"ew-resize"}var cT=rT;function uT(t){t.registerComponentModel(qD),t.registerComponentView(cT),tI(t)}function hT(t){Object(l["a"])(ZD),Object(l["a"])(uT)}var dT={get:function(t,e,n){var i=w["d"]((pT[t]||{})[e]);return n&&w["t"](i)?i[i.length-1]:i}},pT={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},gT=dT,fT=pp.mapVisual,yT=pp.eachVisual,vT=w["t"],mT=w["k"],bT=ii["c"],xT=ii["k"],_T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&oA(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=w["c"](t,this),this.controllerVisuals=iA(this.option.controller,e,t),this.targetVisuals=iA(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=we["r"](t),e},e.prototype.eachTargetSeries=function(t,e){w["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,o=this.option,a=o.precision,r=this.dataBound,s=o.formatter;n=n||["<",">"],w["t"](t)&&(t=t.slice(),i=!0);var l=e?t:i?[c(t[0]),c(t[1])]:c(t);return w["C"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):w["w"](s)?i?s(t[0],t[1]):s(t):i?t[0]===r[0]?n[0]+" "+l[1]:t[1]===r[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(t){return t===r[0]?"min":t===r[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=bT([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],a=t.getDimensionInfo(o);if(!a.isCalculationCoord)return a.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={});w["I"](i,n),w["I"](o,n);var a=this.isCategory();function r(n){vT(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var i=t[e],o=t[n];i&&!o&&(o=t[n]={},mT(i,(function(t,e){if(pp.isValidType(e)){var n=gT.get(e,"inactive",a);null!=n&&(o[e]=n,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol(),r=o||"roundRect";mT(this.stateList,(function(o){var s=this.itemSize,l=t[o];l||(l=t[o]={color:a?i:[i]}),null==l.symbol&&(l.symbol=e&&w["d"](e)||(a?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&w["d"](n)||(a?s[0]:[s[0],s[0]])),l.symbol=fT(l.symbol,(function(t){return"none"===t?r:t}));var c=l.symbolSize;if(null!=c){var u=-1/0;yT(c,(function(t){t>u&&(u=t)})),l.symbolSize=fT(c,(function(t){return xT(t,[0,u],[0,s[0]],!0)}))}}),this)}r.call(this,i),r.call(this,o),s.call(this,i,"inRange","outOfRange"),l.call(this,o)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!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"}},e}(Oa["a"]),OT=_T,wT=[20,140],ST=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=wT[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=wT[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):w["t"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),w["k"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ii["c"]((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=MT(this,"outOfRange",this.getExtent()),n=MT(this,"inRange",this.option.range.slice()),i=[];function o(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,r=0,s=n.length,l=e.length;rt[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:a/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new bn["a"]("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,a=n.handleLabels,r=i.itemSize,s=i.getExtent();LT([0,1],(function(l){var c=o[l];c.setStyle("fill",e.handlesColor[l]),c.y=t[l];var u=kT(t[l],[0,r[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/r[0],c.x=r[0]-h/2;var d=wn["applyTransform"](n.handleLabelPoints[l],wn["getTransform"](c,this.group));a[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,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},h=this.getControllerVisual(t,"color",u),d=this.getControllerVisual(t,"symbolSize"),p=kT(t,a,s,!0),g=r[0]-d/2,f={x:c.x,y:c.y};c.y=p,c.x=g;var y=wn["applyTransform"](l.indicatorLabelPoint,wn["getTransform"](c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;v.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:x?m:"middle",align:x?"center":m});var _={x:g,y:p,style:{fill:h}},O={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),v.animateTo(O,w)}else c.attr(_),v.attr(O);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var M=0;Mo[1]&&(c[1]=1/0),e&&(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,h=[];(e||GT(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=we["d"](u,h);this._dispatchHighDown("downplay",TT(d[0],n)),this._dispatchHighDown("highlight",TT(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Object(ch["a"])(t.target,(function(t){var n=Object(Se["a"])(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(e.dataType),a=o.getStore().get(i.getDataDimensionIndex(o),e.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n=0&&(o.dimension=a,i.push(o))}})),t.getData().setVisual("visualMeta",i)}}];function ZT(t,e,n,i){for(var o=e.targetVisuals[i],a=pp.prepareVisualTypes(o),r={color:Object(tA["b"])(t.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(WT,YT),Object(w["k"])(XT,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(qT))}function QT(t){t.registerComponentModel(IT),t.registerComponentView(FT),$T(t)}var tk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],ek[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var o=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=w["d"](o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=w["H"](this._pieceList,(function(t){return t=w["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=pp.listVisualTypes(),o=this.isCategory();function a(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}w["k"](e.pieces,(function(t){w["k"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),w["k"](n,(function(t,n){var i=!1;w["k"](this.stateList,(function(t){i=i||a(e,t,n)||a(e.target,t,n)}),this),!i&&w["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=gT.get(n,"inRange"===t?"active":"inactive",o)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,w["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var a=!1;w["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=w["d"](t)},e.prototype.getValueState=function(t){var e=pp.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),(function(e,i){var a=pp.findPieceIndex(e,n);a===t&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],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 w["k"](o,(function(t){var e=t.interval;e&&(e[0]>r&&s([r,e[0]],"outOfRange"),s(e.slice()),r=e[1])}),this),{stops:e,outerColors:n}}function s(o,a){var r=i.getRepresentValue({interval:o});a||(a=i.getValueState(r));var s=t(r,a);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:e.push({value:o[0],color:s},{value:o[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Object(Ki["d"])(OT.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}),e}(OT),ek={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;var a=(i[1]-i[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var r=0,s=i[0];r","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function nk(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var ik=tk,ok=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),a=i.getTextColor(),r=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),c=l.endsText,u=w["O"](e.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],s,u,r),w["k"](l.viewPieceList,(function(i){var l=i.piece,c=new bn["a"];c.onclick=w["c"](this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(h);c.add(new st["a"]({style:{x:"right"===r?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:r,font:o,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],s,u,r),Eo["b"](e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:TT(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return DT(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,o){if(e){var a=new bn["a"],r=this.visualMapModel.textStyleModel;a.add(new st["a"]({style:Object(jn["c"])(r,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(a)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=w["H"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(Object(mn["a"])(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var o=w["d"](n.selected),a=e.getSelectedMapKey(t);"single"===i||!0===i?(o[a]=!0,w["k"](o,(function(t,e){o[e]=e===a}))):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(AT),ak=ok;function rk(t){t.registerComponentModel(ik),t.registerComponentView(ak),$T(t)}function sk(t){Object(l["a"])(QT),Object(l["a"])(rk)}var lk={label:{enabled:!0},decal:{show:!1}},ck=Object(we["o"])(),uk={};function hk(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=w["d"](lk);w["I"](i.label,t.getLocaleModel().get("aria"),!1),w["I"](n.option,i,!1),o(),a()}function o(){var e=n.getModel("decal"),i=e.get("show");if(i){var o=w["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=o.get(t.type);e||(e={},o.set(t.type,e)),ck(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(w["w"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Object(vd["b"])(e.ecModel,e.name,uk,t.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",c(o,i))}else{var a=e.getRawData(),r={},s=ck(e).scope;n.each((function(t){var e=n.getRawIndex(t);r[e]=t}));var l=a.count();a.each((function(t){var i=r[t],o=a.getName(t)||t+"",u=Object(vd["b"])(e.ecModel,o,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,u))}))}}function c(t,e){var n=t?w["m"](w["m"]({},e),t):e;return n.dirty=!0,n}}))}}function a(){var i=e.getZr().dom;if(i){var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=w["i"](a.option,o),a.get("enabled"))if(a.get("description"))i.setAttribute("aria-label",a.get("description"));else{var c,u=t.getSeriesCount(),h=a.get(["data","maxCount"])||10,d=a.get(["series","maxCount"])||10,p=Math.min(u,d);if(!(u<1)){var g=s();if(g){var f=a.get(["general","withTitle"]);c=r(f,{title:g})}else c=a.get(["general","withoutTitle"]);var y=[],v=u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);c+=r(v,{seriesCount:u}),t.eachSeries((function(t,e){if(e1?a.get(["series","multiple",o]):a.get(["series","single",o]),n=r(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var c=a.get(["data","partialData"]);n+=r(c,{displayCnt:h})}else n+=a.get(["data","allData"]);for(var d=a.get(["data","separator","middle"]),g=a.get(["data","separator","end"]),f=[],v=0;v":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},fk=function(){function t(t){var e=this._condVal=Object(w["C"])(t)?new RegExp(t):Object(w["B"])(t)?t:null;if(null==e){var n="";0,Object(qd["c"])(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(w["C"])(e)?this._condVal.test(t):!!Object(w["z"])(e)&&this._condVal.test(t+"")},t}(),yk=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),vk=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function g(t,n,i,o){Lk(t,i)&&Lk(n,o)||e.push(t,n,i,o,i,o)}function f(t,n,i,o,a,r){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,c=nS:j2&&l.push(e),l}function Nk(t,e,n,i,o,a,r,s,l,c){if(Lk(t,n)&&Lk(e,i)&&Lk(o,r)&&Lk(a,s))l.push(r,s);else{var u=2/c,h=u*u,d=r-t,p=s-e,g=Math.sqrt(d*d+p*p);d/=g,p/=g;var f=n-t,y=i-e,v=o-r,m=a-s,b=f*f+y*y,x=v*v+m*m;if(b=0&&S=0)l.push(r,s);else{var M=[],I=[];Object(Yn["g"])(t,n,o,r,.5,M),Object(Yn["g"])(e,i,a,s,.5,I),Nk(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,c),Nk(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,c)}}}}function Ek(t,e){var n=Pk(t),i=[];e=e||1;for(var o=0;o0)for(c=0;cMath.abs(c),h=Rk([l,c],u?0:1,e),d=(u?s:c)/h.length,p=0;po,r=Rk([i,o],a?0:1,e),s=a?"width":"height",l=a?"height":"width",c=a?"x":"y",u=a?"y":"x",h=t[s]/r.length,d=0;d1?null:new Yo["a"](f*l+t,f*c+e)}function Hk(t,e,n){var i=new Yo["a"];Yo["a"].sub(i,n,e),i.normalize();var o=new Yo["a"];Yo["a"].sub(o,t,e);var a=o.dot(i);return a}function Fk(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Wk(t,e,n){for(var i=t.length,o=[],a=0;ar?(c.x=u.x=s+a/2,c.y=l,u.y=l+r):(c.y=u.y=l+r/2,c.x=s,u.x=s+a),Wk(e,c,u)}function Xk(t,e,n,i){if(1===n)i.push(e);else{var o=Math.floor(n/2),a=t(e);Xk(t,a[0],o,i),Xk(t,a[1],n-o,i)}return i}function Zk(t,e){for(var n=[],i=0;i0)for(var _=i/n,O=-i/2;O<=i/2;O+=_){var w=Math.sin(O),S=Math.cos(O),M=0;for(b=0;b0;c/=2){var u=0,h=0;(t&c)>0&&(u=1),(e&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(t=c-1-t,e=c-1-e),s=t,t=e,e=s)}return l}function dL(t){var e=1/0,n=1/0,i=-1/0,o=-1/0,a=Object(w["H"])(t,(function(t){var a=t.getBoundingRect(),r=t.getComputedTransform(),s=a.x+a.width/2+(r?r[4]:0),l=a.y+a.height/2+(r?r[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),o=Math.max(l,o),[s,l]})),r=Object(w["H"])(a,(function(a,r){return{cp:a,z:hL(a[0],a[1],e,n,i,o),path:t[r]}}));return r.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function pL(t){return Kk(t.path,t.count)}function gL(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fL(t,e,n){var i=[];function o(t){for(var e=0;e=0;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var c=Math.ceil(a/2);n[o].many=l.slice(c,a),n[s].many=l.slice(0,c),s++}return n}var bL={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},r);vL(t)&&(s=t,l=e),vL(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?mL(l,s):mL(h?e:t,[h?t:e]),p=0,g=0;gOL))for(var o=n.getIndices(),a=0;a0&&o.group.traverse((function(t){t instanceof h["b"]&&!t.animators.length&&t.animateFrom({style:{opacity:0}},a)}))}))}function RL(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function zL(t){return Object(w["t"])(t)?t.sort().join(","):t}function VL(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function BL(t,e){var n=Object(w["f"])(),i=Object(w["f"])(),o=Object(w["f"])();return Object(w["k"])(t.oldSeries,(function(e,n){var a=t.oldDataGroupIds[n],r=t.oldData[n],s=RL(e),l=zL(s);i.set(l,{dataGroupId:a,data:r}),Object(w["t"])(s)&&Object(w["k"])(s,(function(t){o.set(t,{key:l,dataGroupId:a,data:r})}))})),Object(w["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),a=t.getData(),r=RL(t),s=zL(r),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:VL(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:VL(a),data:a}]});else if(Object(w["t"])(r)){0;var c=[];Object(w["k"])(r,(function(t){var e=i.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:VL(e.data),data:e.data})})),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:e,data:a,divide:VL(a)}]})}else{var u=o.get(r);if(u){var h=n.get(u.key);h||(h={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:VL(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({dataGroupId:e,data:a,divide:VL(a)})}}}})),n}function GL(t,e){for(var n=0;n=0&&o.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:VL(e.oldData[n]),groupIdDim:t.dimension})})),Object(w["k"])(Object(we["r"])(t.to),(function(t){var i=GL(n.updatedSeries,t);if(i>=0){var o=n.updatedSeries[i].getData();a.push({dataGroupId:e.oldDataGroupIds[i],data:o,divide:VL(o),groupIdDim:t.dimension})}})),o.length>0&&a.length>0&&EL(o,a,i)}function FL(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(w["k"])(Object(we["r"])(n.seriesTransition),(function(t){Object(w["k"])(Object(we["r"])(t.to),(function(t){for(var e=n.updatedSeries,i=0;i