/* * licensed to the apache software foundation (asf) under one * or more contributor license agreements. see the notice file * distributed with this work for additional information * regarding copyright ownership. the asf licenses this file * to you under the apache license, version 2.0 (the * "license"); you may not use this file except in compliance * with the license. you may obtain a copy of the license at * * http://www.apache.org/licenses/license-2.0 * * unless required by applicable law or agreed to in writing, * software distributed under the license is distributed on an * "as is" basis, without warranties or conditions of any * kind, either express or implied. see the license for the * specific language governing permissions and limitations * under the license. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";var e=2311,n=function(){return e++},v="object"==typeof wx&&"function"==typeof wx.getsysteminfosync?{browser:{},os:{},node:!1,wxa:!0,canvassupported:!0,svgsupported:!1,toucheventssupported:!0,domsupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvassupported:!0,domsupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvassupported:!0,svgsupported:!0,domsupported:!1}:function(t){var e={},i=t.match(/firefox\/([\d.]+)/),n=t.match(/msie\s([\d.]+)/)||t.match(/trident\/.+?rv:(([\d.]+))/),o=t.match(/edge\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(e.firefox=!0,e.version=i[1]);n&&(e.ie=!0,e.version=n[1]);o&&(e.edge=!0,e.version=o[1]);a&&(e.wechat=!0);return{browser:e,os:{},node:!1,canvassupported:!!document.createelement("canvas").getcontext,svgsupported:"undefined"!=typeof svgrect,toucheventssupported:"ontouchstart"in window&&!e.ie&&!e.edge,pointereventssupported:"onpointerdown"in window&&(e.edge||e.ie&&11<=e.version),domsupported:"undefined"!=typeof document}}(navigator.useragent);var s={"[object function]":1,"[object regexp]":1,"[object date]":1,"[object error]":1,"[object canvasgradient]":1,"[object canvaspattern]":1,"[object image]":1,"[object canvas]":1},l={"[object int8array]":1,"[object uint8array]":1,"[object uint8clampedarray]":1,"[object int16array]":1,"[object uint16array]":1,"[object int32array]":1,"[object uint32array]":1,"[object float32array]":1,"[object float64array]":1},u=object.prototype.tostring,i=array.prototype,r=i.foreach,h=i.filter,o=i.slice,c=i.map,d=i.reduce,a={};function f(t,e){"createcanvas"===t&&(g=null),a[t]=e}function k(t){if(null==t||"object"!=typeof t)return t;var e=t,i=u.call(t);if("[object array]"===i){if(!$(t)){e=[];for(var n=0,o=t.length;n>1)%2;s.csstext=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",o[u]+":0",n[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendchild(r),i.push(r)}return i}(e,a),a,o);if(r)return r(t,i,n),!0}return!1}function zt(t){return"canvas"===t.nodename.touppercase()}var bt="undefined"!=typeof window&&!!window.addeventlistener,vt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gt=[];function ft(t,e,i,n){return i=i||{},n||!v.canvassupported?wt(t,e,i):v.browser.firefox&&null!=e.layerx&&e.layerx!==e.offsetx?(i.zrx=e.layerx,i.zry=e.layery):null!=e.offsetx?(i.zrx=e.offsetx,i.zry=e.offsety):wt(t,e,i),i}function wt(t,e,i){if(v.domsupported&&t.getboundingclientrect){var n=e.clientx,o=e.clienty;if(zt(t)){var a=t.getboundingclientrect();return i.zrx=n-a.left,void(i.zry=o-a.top)}if(et(gt,t,n,o))return i.zrx=gt[0],void(i.zry=gt[1])}i.zrx=i.zry=0}function ht(t){return t||window.event}function zt(t,e,i){if(null!=(e=ht(e)).zrx)return e;var n=e.type;if(n&&0<=n.indexof("touch")){var o="touchend"!==n?e.targettouches[0]:e.changedtouches[0];o&&ft(t,o,e,i)}else ft(t,e,e,i),e.zrdelta=e.wheeldelta?e.wheeldelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&vt.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function ut(t,e,i,n){bt?t.addeventlistener(e,i,n):t.attachevent("on"+e,i)}var xt=bt?function(t){t.preventdefault(),t.stoppropagation(),t.cancelbubble=!0}:function(t){t.returnvalue=!1,t.cancelbubble=!0};function yt(t){return 2===t.which||3===t.which}function jt(){this._track=[]}function qt(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return math.sqrt(e*e+i*i)}jt.prototype={constructor:jt,recognize:function(t,e,i){return this._dotrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_dotrack:function(t,e,i){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},a=0,r=n.length;an.getwidth()||i<0||i>n.getheight()}te.prototype={constructor:te,sethandlerproxy:function(e){this.proxy&&this.proxy.dispose(),e&&(r(ee,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},mousemove:function(t){var e=t.zrx,i=t.zry,n=ne(this,e,i),o=this._hovered,a=o.target;a&&!a.__zr&&(a=(o=this.findhover(o.x,o.y)).target);var r=this._hovered=n?{x:e,y:i}:this.findhover(e,i),s=r.target,l=this.proxy;l.setcursor&&l.setcursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchtoelement(o,"mouseout",t),this.dispatchtoelement(r,"mousemove",t),s&&s!==a&&this.dispatchtoelement(r,"mouseover",t)},mouseout:function(t){var e=t.zreventcontrol,i=t.zristolocaldom;"only_globalout"!==e&&this.dispatchtoelement(this._hovered,"mouseout",t),"no_globalout"!==e&&(i||this.trigger("globalout",{type:"globalout",event:t}))},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setcursorstyle:function(t){var e=this.proxy;e.setcursor&&e.setcursor(t)},dispatchtoelement:function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var o="on"+e,a=function(t,e,i){return{type:t,event:i,target:e.target,toptarget:e.toptarget,cancelbubble:!1,offsetx:i.zrx,offsety:i.zry,gestureevent:i.gestureevent,pinchx:i.pinchx,pinchy:i.pinchy,pinchscale:i.pinchscale,wheeldelta:i.zrdelta,zrbytouch:i.zrbytouch,which:i.which,stop:jt}}(e,t,i);n&&(n[o]&&(a.cancelbubble=n[o].call(n,a)),n.trigger(e,a),n=n.parent,!a.cancelbubble););a.cancelbubble||(this.trigger(e,a),this.painter&&this.painter.eachotherlayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},findhover:function(t,e,i){for(var n=this.storage.getdisplaylist(),o={x:t,y:e},a=n.length-1;0<=a;a--){var r;if(n[a]!==i&&!n[a].ignore&&(r=ie(n[a],t,e))&&(o.toptarget||(o.toptarget=n[a]),r!==$t)){o.target=n[a];break}}return o},processgesture:function(t,e){this._gesturemgr||(this._gesturemgr=new jt);var i=this._gesturemgr;"start"===e&&i.clear();var n=i.recognize(t,this.findhover(t.zrx,t.zry,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var o=n.type;t.gestureevent=o,this.dispatchtoelement({target:n.target},o,n.event)}}},r(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){te.prototype[r]=function(t){var e,i,n=t.zrx,o=t.zry,a=ne(this,n,o);if("mouseup"===r&&a||(i=(e=this.findhover(n,o)).target),"mousedown"===r)this._downel=i,this._downpoint=[t.zrx,t.zry],this._upel=i;else if("mouseup"===r)this._upel=i;else if("click"===r){if(this._downel!==this._upel||!this._downpoint||4=this._maxsize&&0>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),ge(t,e),e):void ee(e,0,0,0,1):7===o.length?0<=(n=parseint(o.substr(1),16))&&n<=16777215?(ee(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),ge(t,e),e):void ee(e,0,0,0,1):void 0;var a=o.indexof("("),r=o.indexof(")");if(-1!==a&&r+1===o.length){var s=o.substr(0,a),l=o.substr(a+1,r-(a+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return void ee(e,0,0,0,1);u=ne(l.pop());case"rgb":return 3!==l.length?void ee(e,0,0,0,1):(ee(e,pe(l[0]),pe(l[1]),pe(l[2]),u),ge(t,e),e);case"hsla":return 4!==l.length?void ee(e,0,0,0,1):(l[3]=ne(l[3]),we(l,e),ge(t,e),e);case"hsl":return 3!==l.length?void ee(e,0,0,0,1):(we(l,e),ge(t,e),e);default:return}}ee(e,0,0,0,1)}}function we(t,e){var i=(parsefloat(t[0])%360+360)%360/360,n=ne(t[1]),o=ne(t[2]),a=o<=.5?o*(n+1):o+n-o*n,r=2*o-a;return ee(e=e||[],le(255*oe(r,a,i+1/3)),le(255*oe(r,a,i)),le(255*oe(r,a,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function he(t,e){var i=fe(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,255e);i++);i=math.min(i-1,u-2)}c=e;var n=g[(d=i)+1]-g[i];if(0!=n)if(s=(e-g[i])/n,l)if(i=m[i],m=m[0===i?i:i-1],t=m[u-2=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new di(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},di.create=function(t){return new di(t.x,t.y,t.width,t.height)};var ci=function(t){for(var e in t=t||{},_i.call(this,t),t)t.hasownproperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};ci.prototype={constructor:ci,isgroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childat:function(t){return this._children[t]},childofname:function(t){for(var e=this._children,i=0;i>>1])<0?l=a:s=1+a;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0>>1);0>>1);a(t,e[i+h])<0?l=h:r=h+1}return l}function ei(p,g){var r,s,m=ki,l=0,v=[];function e(t){var e=r[t],i=s[t],n=r[t+1],o=s[t+1];s[t]=i+o,t===l-3&&(r[t+1]=r[t+2],s[t+1]=s[t+2]),l--;var a=ri(p[n],p,e,i,0,g);e+=a,0!==(i-=a)&&0!==(o=oi(p[e+i-1],p,n,o,o-1,g))&&(i<=o?function(t,e,i,n){var o=0;for(o=0;os[t+1])break;e(t)}},this.forcemergeruns=function(){for(;1>=1;return t+e}(o);do{if((a=pi(t,i,n,e))=e.maxiterations){t+=e.ellipsis;break}var s=0===r?bn(t,o,e.asccharwidth,e.cncharwidth):0f)return{lines:[],width:0,height:0};c.textwidth=pn(c.text,w);var s=x.textwidth,m=null==s||"auto"===s;if("string"==typeof s&&"%"===s.charat(s.length-1))c.percentwidth=s,u.push(c),s=0;else{if(m){s=c.textwidth;var i=x.textbackgroundcolor,t=i&&i.image;t&&sn(t=on(t))&&(s=math.max(s,t.width*b/t.height))}var a=_?_[1]+_[3]:0;s+=a;var d=null!=d?d-v:null;null!=d&&dn[0]){for(r=0;rt);r++);a=i[n[r]]}if(n.splice(r+1,0,t),!(i[t]=e).virtual)if(a){var l=a.dom;l.nextsibling?s.insertbefore(e.dom,l.nextsibling):s.appendchild(e.dom)}else s.firstchild?s.insertbefore(e.dom,s.firstchild):s.appendchild(e.dom)}else vi("layer of zlevel "+t+" is not valid")},eachlayer:function(t,e){var i,n,o=this._zlevellist;for(n=0;n=a.length&&a.push({option:t})}}),a}function zo(t){var r=q();ro(t,function(t,e){var i=t.exist;i&&r.set(i.id,t)}),ro(t,function(t,e){var i=t.option;y(!i||null==i.id||!r.get(i.id)||r.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&r.set(i.id,t),t.keyinfo||(t.keyinfo={})}),ro(t,function(t,e){var i=t.exist,n=t.option,o=t.keyinfo;if(eo(n)){if(o.name=null!=n.name?n.name+"":i?i.name:bo+e,i)o.id=i.id;else if(null!=n.id)o.id=n.id+"";else for(var a=0;o.id="\0"+o.name+"\0"+a++,r.get(o.id););r.set(o.id,t)}})}function uo(t){var e=t.name;return!(!e||!e.indexof(bo))}function xo(t){return eo(t)&&t.id&&0===(t.id+"").indexof("\0_ec_\0")}function yo(e,t){return null!=t.dataindexinside?t.dataindexinside:null!=t.dataindex?l(t.dataindex)?o(t.dataindex,function(t){return e.indexofrawindex(t)}):e.indexofrawindex(t.dataindex):null!=t.name?l(t.name)?o(t.name,function(t){return e.indexofname(t)}):e.indexofname(t.name):void 0}function jo(){var e="__\0ec_inner_"+qo+++"_"+math.random().tofixed(5);return function(t){return t[e]||(t[e]={})}}var qo=0;function ko(s,l,u){if(e(l)){var t={};t[l+"index"]=0,l=t}var e=u&&u.defaultmaintype;!e||$o(l,e+"index")||$o(l,e+"id")||$o(l,e+"name")||(l[e+"index"]=0);var h={};return ro(l,function(t,e){t=l[e];if("dataindex"!==e&&"dataindexinside"!==e){var i=e.match(/^(\w+)(index|id|name)$/)||[],n=i[1],o=(i[2]||"").tolowercase();if(!(!n||!o||null==t||"index"===o&&"none"===t||u&&u.includemaintypes&&_(u.includemaintypes,n)<0)){var a={maintype:n};"index"===o&&"all"===t||(a[o]=t);var r=s.querycomponents(a);h[n+"models"]=r,h[n+"model"]=r[0]}}else h[e]=t}),h}function $o(t,e){return t&&t.hasownproperty(e)}function jo(t,e,i){t.setattribute?t.setattribute(e,i):t[e]=i}function qo(t){return"auto"===t?v.domsupported?"html":"richtext":t||"html"}function ta(t,i){var n=q(),o=[];return r(t,function(t){var e=i(t);(n.get(e)||(o.push(e),n.set(e,[]))).push(t)}),{keys:o,buckets:n}}var ea=".",ia="___ec__component__container___";function na(t){var e={main:"",sub:""};return t&&(t=t.split(ea),e.main=t[0]||"",e.sub=t[1]||""),e}function oa(t){(t.$constructor=t).extend=function(t){function e(){t.$constructor?t.$constructor.apply(this,arguments):i.apply(this,arguments)}var i=this;return p(e.prototype,t),e.extend=this.extend,e.supercall=sa,e.superapply=la,w(e,this),e.superclass=i,e}}var aa=0;function ra(t){var e=["__\0is_clz",aa++,math.random().tofixed(3)].join("_");t.prototype[e]=!0,t.isinstance=function(t){return!(!t||!t[e])}}function sa(t,e){var i=u(arguments,2);return this.superclass.prototype[e].apply(t,i)}function la(t,e,i){return this.superclass.prototype[e].apply(t,i)}function ua(i,t){t=t||{};var o={};if(i.registerclass=function(t,e){if(e)if(function(t){y(/^[a-za-z0-9_]+([.][a-za-z0-9_]+)?$/.test(t),'componenttype "'+t+'" illegal')}(e),(e=na(e)).sub){if(e.sub!==ia){(function(t){var e=o[t.main];e&&e[ia]||((e=o[t.main]={})[ia]=!0);return e})(e)[e.sub]=t}}else o[e.main]=t;return t},i.getclass=function(t,e,i){var n=o[t];if(n&&n[ia]&&(n=e?n[e]:null),i&&!n)throw new error(e?"component "+t+"."+(e||"")+" not exists. load it first.":t+".type should be specified.");return n},i.getclassesbymaintype=function(t){t=na(t);var i=[],e=o[t.main];return e&&e[ia]?r(e,function(t,e){e!==ia&&i.push(t)}):i.push(e),i},i.hasclass=function(t){return t=na(t),!!o[t.main]},i.getallclassmaintypes=function(){var i=[];return r(o,function(t,e){i.push(e)}),i},i.hassubtypes=function(t){t=na(t);var e=o[t.main];return e&&e[ia]},i.parseclasstype=na,t.registerwhenextend){var n=i.extend;n&&(i.extend=function(t){var e=n.call(this,t);return i.registerclass(e,t.type)})}return i}function ha(s){for(var t=0;tthis._ux||or(e-this._yi)>this._uy||this._len<5;return this.adddata(ja.l,t,e),this._ctx&&i&&(this._needsdash()?this._dashedlineto(t,e):this._ctx.lineto(t,e)),i&&(this._xi=t,this._yi=e),this},beziercurveto:function(t,e,i,n,o,a){return this.adddata(ja.c,t,e,i,n,o,a),this._ctx&&(this._needsdash()?this._dashedbezierto(t,e,i,n,o,a):this._ctx.beziercurveto(t,e,i,n,o,a)),this._xi=o,this._yi=a,this},quadraticcurveto:function(t,e,i,n){return this.adddata(ja.q,t,e,i,n),this._ctx&&(this._needsdash()?this._dashedquadraticto(t,e,i,n):this._ctx.quadraticcurveto(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,o,a){return this.adddata(ja.a,t,e,i,i,n,o-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,a),this._xi=er(o)*i+t,this._yi=ir(o)*i+e,this},arcto:function(t,e,i,n,o){return this._ctx&&this._ctx.arcto(t,e,i,n,o),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.adddata(ja.r,t,e,i,n),this},closepath:function(){this.adddata(ja.z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsdash()&&this._dashedlineto(e,i),t.closepath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.tostatic()},stroke:function(t){t&&t.stroke(),this.tostatic()},setlinedash:function(t){if(t instanceof array){this._linedash=t;for(var e=this._dashidx=0,i=0;ie.length&&(this._expanddata(),e=this.data);for(var i=0;il||or(r-o)>u||c===h-1)&&(t.lineto(a,r),n=a,o=r);break;case ja.c:t.beziercurveto(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],o=s[c-1];break;case ja.q:t.quadraticcurveto(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],o=s[c-1];break;case ja.a:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],w=m=yr[n=0]+t&&r<=yr[1]+t?h:0}if(a){l=n;n=cr(o),o=cr(l)}else n=cr(n),o=cr(o);omath.pi/2&&p<1.5*math.pi&&(h=-h),c+=h)}}return c}function sr(t,e,i,n,o){for(var a=0,r=0,s=0,l=0,u=0,h=0;hmath.abs(a[1])?0=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/o*a+i[0]}function el(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?function(t){return t.replace(/^\s+|\s+$/g,"")}(t).match(/%$/)?parsefloat(t)/100*e:parsefloat(t):null==t?nan:+t}function zl(t,e,i){return null==e&&(e=10),e=math.min(math.max(0,e),20),t=(+t).tofixed(e),i?t:+t}function bl(t){return t.sort(function(t,e){return t-e}),t}function vl(t){if(t=+t,isnan(t))return 0;for(var e=1,i=0;math.round(t*e)/e!==t;)e*=10,i++;return i}function gl(t){var e=t.tostring(),i=e.indexof("e");if(0h&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/o}var hl=9007199254740991;function zl(t){var e=2*math.pi;return(t%e+e)%e}function ul(t){return-ol"'])/g,ou={"&":"&","<":"<",">":">",'"':""","'":"'"};function au(t){return null==t?"":(t+"").replace(nu,function(t,e){return ou[e]})}function ru(t,e){return"{"+t+(null==e?"":e)+"}"}var su=["a","b","c","d","e","f","g"];function lu(t,e,i){l(e)||(e=[e]);var n=e.length;if(!n)return"";for(var o=e[0].$vars||[],a=0;a':'':{rendermode:o,content:"{marker"+a+"|} ",style:{color:i}}:""}function cu(t,e){return"0000".substr(0,e-(t+="").length)+t}function du(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="mm-dd\nyyyy");var n=yl(e),o=i?"utc":"",a=n["get"+o+"fullyear"](),r=n["get"+o+"month"]()+1,s=n["get"+o+"date"](),l=n["get"+o+"hours"](),u=n["get"+o+"minutes"](),h=n["get"+o+"seconds"](),c=n["get"+o+"milliseconds"]();return t=t.replace("mm",cu(r,2)).replace("m",r).replace("yyyy",a).replace("yy",a%100).replace("dd",cu(s,2)).replace("d",s).replace("hh",cu(l,2)).replace("h",l).replace("mm",cu(u,2)).replace("m",u).replace("ss",cu(h,2)).replace("s",h).replace("sss",cu(c,3))}function fu(t){return t?t.charat(0).touppercase()+t.substr(1):t}var pu=xn;function gu(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}var mu=(object.freeze||object)({addcommas:tu,tocamelcase:eu,normalizecssarray:iu,encodehtml:au,formattpl:lu,formattplsimple:uu,gettooltipmarker:hu,formattime:du,capitalfirst:fu,truncatetext:pu,gettextboundingrect:function(t){return gn(t.text,t.font,t.textalign,t.textverticalalign,t.textpadding,t.textlineheight,t.rich,t.truncate)},gettextrect:function(t,e,i,n,o,a,r,s){return gn(t,e,i,n,o,s,a,r)},windowopen:gu}),vu=r,yu=["left","right","top","bottom","width","height"],xu=[["width","left","right"],["height","top","bottom"]];function _u(h,c,d,f,p){var g=0,m=0;null==f&&(f=1/0),null==p&&(p=1/0);var v=0;c.eachchild(function(t,e){var i,n,o=t.position,a=t.getboundingrect(),r=c.childat(e+1),s=r&&r.getboundingrect();if("horizontal"===h){var l=a.width+(s?-s.x+a.x:0);v=f<(i=g+l)||t.newline?(g=0,i=l,m+=v+d,a.height):math.max(v,a.height)}else{var u=a.height+(s?-s.y+a.y:0);v=p<(n=m+u)||t.newline?(g+=v+d,m=0,n=u,a.width):math.max(v,a.width)}t.newline||(o[0]=g,o[1]=m,"horizontal"===h?g=i+d:m=n+d)})}var wu=_u;t(_u,"vertical"),t(_u,"horizontal");function bu(t,e,i){i=iu(i||0);var n=e.width,o=e.height,a=el(t.left,n),r=el(t.top,o),s=el(t.right,n),l=el(t.bottom,o),u=el(t.width,n),h=el(t.height,o),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isnan(u)&&(u=n-s-d-a),isnan(h)&&(h=o-l-c-r),null!=f&&(isnan(u)&&isnan(h)&&(n/oe)return t[n];return t[i-1]}(s,i):r;if((l=l||r)&&l.length){var u=l[o];return t&&(a[t]=u),n.coloridx=(o+1)%l.length,u}}},zu="original",bu="arrayrows",vu="objectrows",gu="keyedcolumns",fu="unknown",wu="typedarray",hu="column",zu="row";function uu(t){this.fromdataset=t.fromdataset,this.data=t.data||(t.sourceformat===gu?{}:[]),this.sourceformat=t.sourceformat||fu,this.serieslayoutby=t.serieslayoutby||hu,this.dimensionsdefine=t.dimensionsdefine,this.encodedefine=t.encodedefine&&q(t.encodedefine),this.startindex=t.startindex||0,this.dimensionsdetectcount=t.dimensionsdetectcount}uu.seriesdatatosource=function(t){return new uu({data:t,sourceformat:v(t)?wu:zu,fromdataset:!1})},ra(uu);var xu={must:1,might:2,not:3},yu=jo();function ju(t){var e=t.option,i=e.data,n=v(i)?wu:zu,o=!1,a=e.serieslayoutby,r=e.sourceheader,s=e.dimensions,l=qu(t);if(l){var u=l.option;i=u.source,n=yu(l).sourceformat,o=!0,a=a||u.serieslayoutby,null==r&&(r=u.sourceheader),s=s||u.dimensions}var h=function(t,e,i,n,o){if(!t)return{dimensionsdefine:qu(o)};var a,r;if(e===bu)"auto"===n||null==n?ku(function(t){null!=t&&"-"!==t&&(e(t)?null==r&&(r=1):r=0)},i,t,10):r=n?1:0,o||1!==r||(o=[],ku(function(t,e){o[e]=null!=t?t:""},i,t)),a=o?o.length:i===zu?t.length:t[0]?t[0].length:null;else if(e===vu)o=o||function(t){var e,i=0;for(;i":"\n",f="richtext"===c,p={},g=0;function i(t){return{rendermode:c,content:au(tu(t)),style:p}}var m=this.getdata(),a=m.mapdimension("defaultedtooltip",!0),n=a.length,r=this.getrawvalue(o),s=l(r),v=m.getitemvisual(o,"color");z(v)&&v.colorstops&&(v=(v.colorstops[0]||{}).color),v=v||"transparent";var l=(1":"",n=i+u.join(i||", ");return{rendermode:c,content:n,style:p}}(r):i(n?hh(m,o,a[0]):s?r[0]:r)).content,u=d.seriesindex+"at"+g,y=hu({color:v,type:"item",rendermode:c,markerid:u});p[u]=v,++g;var x=m.getname(o),_=this.name;uo(this)||(_=""),_=_?au(_)+(h?": ":e):"";var w="string"==typeof y?y:y.content;return{html:h?w+_+l:_+w+(x?au(x)+": "+l:l),markers:p}},isanimationenabled:function(){if(v.node)return!1;var t=this.getshallow("animation");return t&&this.getdata().count()>this.getshallow("animationthreshold")&&(t=!1),t},restoredata:function(){this.datatask.dirty()},getcolorfrompalette:function(t,e,i){var n=this.ecmodel,o=eu.getcolorfrompalette.call(this,t,e,i);return o=o||n.getcolorfrompalette(t,e,i)},coorddimtodatadim:function(t){return this.getrawdata().mapdimension(t,!0)},getprogressive:function(){return this.get("progressive")},getprogressivethreshold:function(){return this.get("progressivethreshold")},getaxistooltipdata:null,gettooltipposition:null,pipetask:null,preventincremental:null,pipelinecontext:null});function lc(t){var e=t.name;uo(t)||(t.name=function(t){var i=t.getrawdata(),e=i.mapdimension("seriesname",!0),n=[];return r(e,function(t){var e=i.getdimensioninfo(t);e.displayname&&n.push(e.displayname)}),n.join(" ")}(t)||e)}function uc(t){return t.model.getrawdata().count()}function hc(t){var e=t.model;return e.setdata(e.getrawdata().cloneshallow()),cc}function cc(t,e){e.outputdata&&t.end>e.outputdata.count()&&e.model.getrawdata().cloneshallow(e.outputdata)}function dc(e,i){r(e.changable_methods,function(t){e.wrapmethod(t,t(fc,i))})}function fc(t){var e=pc(t);e&&e.setoutputend(this.count())}function pc(t){var e=(t.ecmodel||{}).scheduler,i=e&&e.getpipeline(t.uid);if(i){var n=i.currenttask;if(n){var o=n.agentstubmap;o&&(n=o.get(t.uid))}return n}}b(sc,xh),b(sc,eu);var gc=function(){this.group=new ci,this.uid=nl("viewcomponent")};gc.prototype={constructor:gc,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterforexposedevent:null};var mc=gc.prototype;mc.updateview=mc.updatelayout=mc.updatevisual=function(t,e,i,n){},oa(gc),ua(gc,{registerwhenextend:!0});function vc(){var s=jo();return function(t){var e=s(t),i=t.pipelinecontext,n=e.large,o=e.progressiverender,a=e.large=i&&i.large,r=e.progressiverender=i&&i.progressiverender;return!!(n^a||o^r)&&"reset"}}var yc=jo(),xc=vc();function _c(){this.group=new ci,this.uid=nl("viewchart"),this.rendertask=yh({plan:mc,reset:ic}),this.rendertask.context={view:this}}var wc=_c.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){sc(t.getdata(),n,"emphasis")},downplay:function(t,e,i,n){sc(t.getdata(),n,"normal")},remove:function(t,e){this.group.removeall()},dispose:function(){},incrementalpreparerender:null,incrementalrender:null,updatetransform:null,filterforexposedevent:null};function bc(t,e,i){if(t&&(t.trigger(e,i),t.isgroup&&!qs(t)))for(var n=0,o=t.childcount();nc?i+=p(g("data.partialdata"),{displaycnt:c}):i+=g("data.alldata");for(var r=[],s=0;si.blockindex?i.step:null,a=n&&n.moddatacount;return{step:o,modby:null!=a?math.ceil(a/o):null,moddatacount:a}}},bc.getpipeline=function(t){return this._pipelinemap.get(t)},bc.updatestreammodes=function(t,e){var i=this._pipelinemap.get(t.uid),n=t.getdata().count(),o=i.progressiveenabled&&e.incrementalpreparerender&&n>=i.threshold,a=t.get("large")&&n>=t.get("largethreshold"),r="mod"===t.get("progressivechunkmode")?n:null;t.pipelinecontext=i.context={progressiverender:o,moddatacount:r,large:a}},bc.restorepipelines=function(t){var n=this,o=n._pipelinemap=q();t.eachseries(function(t){var e=t.getprogressive(),i=t.uid;o.set(i,{id:i,head:null,tail:null,threshold:t.getprogressivethreshold(),progressiveenabled:e&&!(t.preventincremental&&t.preventincremental()),blockindex:-1,step:math.round(e||700),count:0}),kc(n,t,t.datatask)})},bc.preparestagetasks=function(){var i=this._stagetaskmap,n=this.ecinstance.getmodel(),o=this.api;r(this._allhandlers,function(t){var e=i.get(t.uid)||i.set(t.uid,[]);t.reset&&function(n,o,t,a,r){var s=t.seriestaskmap||(t.seriestaskmap=q()),e=o.seriestype,i=o.gettargetseries;o.createonallseries?a.eachrawseries(l):e?a.eachrawseriesbytype(e,l):i&&i(a,r).each(l);function l(t){var e=t.uid,i=s.get(e)||s.set(e,yh({plan:uc,reset:xc,count:qc}));i.context={model:t,ecmodel:a,api:r,useclearvisual:o.isvisual&&!o.islayout,plan:o.plan,reset:o.reset,scheduler:n},kc(n,t,i)}var u=n._pipelinemap;s.each(function(t,e){u.get(e)||(t.dispose(),s.removekey(e))})}(this,t,e,n,o),t.overallreset&&function(n,t,e,i,o){var a=e.overalltask=e.overalltask||yh({reset:fc});a.context={ecmodel:i,api:o,overallreset:t.overallreset,scheduler:n};var r=a.agentstubmap=a.agentstubmap||q(),s=t.seriestype,l=t.gettargetseries,u=!0,h=t.modifyoutputend;s?i.eachrawseriesbytype(s,c):l?l(i,o).each(c):(u=!1,r(i.getseries(),c));function c(t){var e=t.uid,i=r.get(e);i||(i=r.set(e,yh({reset:wc,ondirty:zc})),a.dirty()),i.context={model:t,overallprogress:u,modifyoutputend:h},i.agent=a,i.__block=u,kc(n,t,i)}var d=n._pipelinemap;r.each(function(t,e){d.get(e)||(t.dispose(),a.dirty(),r.removekey(e))})}(this,t,e,n,o)},this)},bc.prepareview=function(t,e,i,n){var o=t.rendertask,a=o.context;a.model=e,a.ecmodel=i,a.api=n,o.__block=!t.incrementalpreparerender,kc(this,e,o)},bc.performdataprocessortasks=function(t,e){vc(this,this._dataprocessorhandlers,t,e,{block:!0})},bc.performvisualtasks=function(t,e,i){vc(this,this._visualhandlers,t,e,i)},bc.performseriestasks=function(t){var e;t.eachseries(function(t){e|=t.datatask.perform()}),this.unfinished|=e},bc.plan=function(){this._pipelinemap.each(function(t){var e=t.tail;do{if(e.__block){t.blockindex=e.__idxinpipeline;break}e=e.getupstream()}while(e)})};var gc=bc.updatepayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function fc(t){t.overallreset(t.ecmodel,t.api,t.payload)}function wc(t,e){return t.overallprogress&&hc}function hc(){this.agent.dirty(),this.getdownstream().dirty()}function zc(){this.agent&&this.agent.dirty()}function uc(t){return t.plan&&t.plan(t.model,t.ecmodel,t.api,t.payload)}function xc(t){t.useclearvisual&&t.data.clearallvisual();var e=t.resetdefines=vo(t.reset(t.model,t.ecmodel,t.api,t.payload));return 1'+t.dom+""}),p.painter.getsvgroot().innerhtml=g,o.connectedbackgroundcolor&&p.painter.setbackgroundcolor(o.connectedbackgroundcolor),p.refreshimmediately(),p.painter.todataurl()}return o.connectedbackgroundcolor&&p.add(new rs({shape:{x:0,y:0,width:t,height:e},style:{fill:o.connectedbackgroundcolor}})),td(f,function(t){var e=new qn({style:{x:t.left*i-u,y:t.top*i-h,image:t.dom}});p.add(e)}),p.refreshimmediately(),n.todataurl("image/"+(o&&o.type||"png"))}return this.getdataurl(o)}},zd.converttopixel=t(bd,"converttopixel"),zd.convertfrompixel=t(bd,"convertfrompixel"),zd.containpixel=function(t,o){var a;if(!this._disposed)return r(t=ko(this._model,t),function(t,n){0<=n.indexof("models")&&r(t,function(t){var e=t.coordinatesystem;if(e&&e.containpoint)a|=!!e.containpoint(o);else if("seriesmodels"===n){var i=this._chartsmap[t.__viewid];i&&i.containpoint&&(a|=i.containpoint(o,t))}},this)},this),!!a},zd.getvisual=function(t,e){var i=(t=ko(this._model,t,{defaultmaintype:"series"})).seriesmodel.getdata(),n=t.hasownproperty("dataindexinside")?t.dataindexinside:t.hasownproperty("dataindex")?i.indexofrawindex(t.dataindex):null;return null!=n?i.getitemvisual(n,e):i.getvisual(e)},zd.getviewofcomponentmodel=function(t){return this._componentsmap[t.__viewid]},zd.getviewofseriesmodel=function(t){return this._chartsmap[t.__viewid]};var vd={prepareandupdate:function(t){gd(this),vd.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,o=this._coordsysmgr,a=this._scheduler;if(e){a.restoredata(e,t),a.performseriestasks(e),o.create(e,i),a.performdataprocessortasks(e,t),wd(this,e),o.update(e,i),yd(e),a.performvisualtasks(e,t),jd(this,e,i,t);var r=e.get("backgroundcolor")||"transparent";if(v.canvassupported)n.setbackgroundcolor(r);else{var s=fe(r);r=$e(s,"rgb"),0===s[3]&&(r="transparent")}kd(e,i)}},updatetransform:function(o){var a=this._model,r=this,s=this._api;if(a){var l=[];a.eachcomponent(function(t,e){var i=r.getviewofcomponentmodel(e);if(i&&i.__alive)if(i.updatetransform){var n=i.updatetransform(e,a,s,o);n&&n.update&&l.push(i)}else l.push(i)});var n=q();a.eachseries(function(t){var e=r._chartsmap[t.__viewid];if(e.updatetransform){var i=e.updatetransform(t,a,s,o);i&&i.update&&n.set(t.uid,1)}else n.set(t.uid,1)}),yd(a),this._scheduler.performvisualtasks(a,o,{setdirty:!0,dirtymap:n}),qd(r,a,s,o,n),kd(a,this._api)}},updateview:function(t){var e=this._model;e&&(_c.markupdatemethod(t,"updateview"),yd(e),this._scheduler.performvisualtasks(e,t,{setdirty:!0}),jd(this,this._model,this._api,t),kd(e,this._api))},updatevisual:function(t){vd.update.call(this,t)},updatelayout:function(t){vd.update.call(this,t)}};function gd(t){var e=t._model,i=t._scheduler;i.restorepipelines(e),i.preparestagetasks(),xd(t,"component",e,i),xd(t,"chart",e,i),i.plan()}function fd(e,i,n,o,t){var a=e._model;if(o){var r={};r[o+"id"]=n[o+"id"],r[o+"index"]=n[o+"index"],r[o+"name"]=n[o+"name"];var s={maintype:o,query:r};t&&(s.subtype=t);var l=n.excludeseriesid;null!=l&&(l=q(vo(l))),a&&a.eachcomponent(s,function(t){l&&null!=l.get(t.id)||u(e["series"===o?"_chartsmap":"_componentsmap"][t.__viewid])},e)}else td(e._componentsviews.concat(e._chartsviews),u);function u(t){t&&t.__alive&&t[i]&&t[i](t.__model,a,e._api,n)}}function wd(t,e){var i=t._chartsmap,n=t._scheduler;e.eachseries(function(t){n.updatestreammodes(t,i[t.__viewid])})}function hd(e,t){var i=e.type,n=e.escapeconnect,o=tf[i],a=o.actioninfo,r=(a.update||"update").split(":"),s=r.pop();r=null!=r[0]&&cd(r[0]),this[kd]=!0;var l=[e],u=!1;e.batch&&(u=!0,l=o(e.batch,function(t){return(t=d(p({},t),e)).batch=null,t}));var h,c=[],d="highlight"===i||"downplay"===i;td(l,function(t){(h=(h=o.action(t,this._model,this._api))||p({},t)).type=a.event||h.type,c.push(h),d?fd(this,s,t,"series"):r&&fd(this,s,t,r.main,r.sub)},this),"none"===s||d||r||(this[pd]?(gd(this),vd.update.call(this,e),this[pd]=!1):vd[s].call(this,e)),h=u?{type:a.event||i,escapeconnect:n,batch:c}:c[0],this[kd]=!1,t||this._messagecenter.trigger(h.type,h)}function zd(t){for(var e=this._pendingactions;e.length;){var i=e.shift();hd.call(this,i,t)}}function ud(t){t||this.trigger("updated")}function xd(t,e,o,a){for(var r="component"===e,s=r?t._componentsviews:t._chartsviews,l=r?t._componentsmap:t._chartsmap,u=t._zr,h=t._api,i=0;it.get("hoverlayerthreshold")&&!v.node&&t.eachseries(function(t){if(!t.preventusinghoverlayer){var e=i._chartsmap[t.__viewid];e.__alive&&e.group.traverse(function(t){t.usehoverlayer=!0})}})}(n,t),rc(n._zr.dom,t)}function kd(e,i){td(af,function(t){t(e,i)})}zd.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingfx&&this._loadingfx.resize(),e){var i=e.resetoption("media"),n=t&&t.silent;this[kd]=!0,i&&gd(this),vd.update.call(this),this[kd]=!1,zd.call(this,n),ud.call(this,n)}}},zd.showloading=function(t,e){if(!this._disposed&&(dd(t)&&(e=t,t=""),t=t||"default",this.hideloading(),lf[t])){var i=lf[t](this._api,e),n=this._zr;this._loadingfx=i,n.add(i)}},zd.hideloading=function(){this._disposed||(this._loadingfx&&this._zr.remove(this._loadingfx),this._loadingfx=null)},zd.makeactionfromevent=function(t){var e=p({},t);return e.type=ef[t.type],e},zd.dispatchaction=function(t,e){this._disposed||(dd(e)||(e={silent:!!e}),tf[t.type]&&this._model&&(this[kd]?this._pendingactions.push(t):(hd.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&v.browser.wechat&&this._throttledzrflush(),zd.call(this,e.silent),ud.call(this,e.silent))))},zd.appenddata=function(t){if(!this._disposed){var e=t.seriesindex;this.getmodel().getseriesbyindex(e).appenddata(t),this._scheduler.unfinished=!0}},zd.on=od("on",!1),zd.off=od("off",!1),zd.one=od("one",!1);var $d=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function jd(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function qd(){this.eventinfo}zd._initevents=function(){td($d,function(u){function t(t){var e,i=this.getmodel(),n=t.target;if("globalout"===u)e={};else if(n&&null!=n.dataindex){var o=n.datamodel||i.getseriesbyindex(n.seriesindex);e=o&&o.getdataparams(n.dataindex,n.datatype,n)||{}}else n&&n.eventdata&&(e=p({},n.eventdata));if(e){var a=e.componenttype,r=e.componentindex;"markline"!==a&&"markpoint"!==a&&"markarea"!==a||(a="series",r=e.seriesindex);var s=a&&null!=r&&i.getcomponent(a,r),l=s&&this["series"===s.maintype?"_chartsmap":"_componentsmap"][s.__viewid];e.event=t,e.type=u,this._eceventprocessor.eventinfo={targetel:n,packedevent:e,model:s,view:l},this.trigger(u,e)}}t.zreventfulcallatlast=!0,this._zr.on(u,t,this)},this),td(ef,function(t,e){this._messagecenter.on(e,function(t){this.trigger(e,t)},this)},this)},zd.isdisposed=function(){return this._disposed},zd.clear=function(){this._disposed||this.setoption({series:[]},!0)},zd.dispose=function(){if(!this._disposed){this._disposed=!0,jo(this.getdom(),ff,"");var e=this._api,i=this._model;td(this._componentsviews,function(t){t.dispose(i,e)}),td(this._chartsviews,function(t){t.dispose(i,e)}),this._zr.dispose(),delete uf[this.id]}},b(ed,ct),qd.prototype={constructor:qd,normalizequery:function(t){var s={},l={},u={};if(e(t)){var e=cd(t);s.maintype=e.main||null,s.subtype=e.sub||null}else{var h=["index","name","id"],c={name:1,dataindex:1,datatype:1};r(t,function(t,e){for(var i=!1,n=0;nx[1]&&(x[1]=y)}e&&(this._namelist[d]=e[f])}this._rawcount=this._count=l,this._extent={},kf(this)},jf._initdatafromprovider=function(t,e){if(!(e<=t)){for(var i,n=this._chunksize,o=this._rawdata,a=this._storage,r=this.dimensions,s=r.length,l=this._dimensioninfos,u=this._namelist,h=this._idlist,c=this._rawextent,d=this._namerepeatcount={},f=this._chunkcount,p=0;pm[1]&&(m[1]=s)}if(!o.pure){var i=u[v];if(m&&null==i)if(null!=m.name)u[v]=i=m.name;else if(null!=i){var t=r[i],a=a[t][y];if(a){i=a[x];var d=l[t].ordinalmeta;d&&d.categories.length&&(i=d.categories[i])}}var c=null==m?null:m.id;null==c&&null!=i&&(d[i]=d[i]||0,0=this._rawcount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&it))return a;o=a-1}}return-1},jf.indicesofnearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var o=1/0,a=-1,r=0,s=0,l=this.count();st[i][1])&&(m=!1)}m&&(a[r++]=this.getrawindex(m))}return rw[1]&&(w[1]=_)}}}return o},jf.downsample=function(t,e,i,n){for(var o=ip(this,[t]),a=o._storage,r=[],s=math.floor(1/e),l=a[t],u=this.count(),h=this._chunksize,c=o._rawextent[t],d=new(hf(this))(u),f=0,p=0;pc[1]&&(c[1]=x),d[f++]=_}return o._count=f,o._indices=d,o.getrawindex=qf,o},jf.getitemmodel=function(t){var e=this.hostmodel;return new cl(this.getrawdataitem(t),e,e&&e.ecmodel)},jf.diff=function(e){var i=this;return new kf(e?e.getindices():[],this.getindices(),function(t){return tp(e,t)},function(t){return tp(i,t)})},jf.getvisual=function(t){var e=this._visual;return e&&e[t]},jf.setvisual=function(t,e){if(zf(t))for(var i in t)t.hasownproperty(i)&&this.setvisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},jf.setlayout=function(t,e){if(zf(t))for(var i in t)t.hasownproperty(i)&&this.setlayout(i,t[i]);else this._layout[t]=e},jf.getlayout=function(t){return this._layout[t]},jf.getitemlayout=function(t){return this._itemlayouts[t]},jf.setitemlayout=function(t,e,i){this._itemlayouts[t]=i?p(this._itemlayouts[t]||{},e):e},jf.clearitemlayouts=function(){this._itemlayouts.length=0},jf.getitemvisual=function(t,e,i){var n=this._itemvisuals[t],o=n&&n[e];return null!=o||i?o:this.getvisual(e)},jf.setitemvisual=function(t,e,i){var n=this._itemvisuals[t]||{},o=this.hasitemvisual;if(this._itemvisuals[t]=n,zf(e))for(var a in e)e.hasownproperty(a)&&(n[a]=e[a],o[a]=!0);else n[e]=i,o[e]=!0},jf.clearallvisual=function(){this._visual={},this._itemvisuals=[],this.hasitemvisual={}};function ap(t){t.seriesindex=this.seriesindex,t.dataindex=this.dataindex,t.datatype=this.datatype}function rp(t,e,i){uu.isinstance(e)||(e=uu.seriesdatatosource(e)),i=i||{},t=(t||[]).slice();for(var n=(i.dimsdef||[]).slice(),o=q(),a=q(),l=[],r=function(t,e,i,n){var o=math.max(t.dimensionsdetectcount||1,e.length,i.length,n||0);return r(e,function(t){var e=t.dimsdef;e&&(o=math.max(o,e.length))}),o}(e,t,n,i.dimcount),s=0;s=e[0]&&t<=e[1]},mp.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},mp.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},mp.prototype.unionextent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},mp.prototype.unionextentfromdata=function(t,e){this.unionextent(t.getapproximateextent(e))},mp.prototype.getextent=function(){return this._extent.slice()},mp.prototype.setextent=function(t,e){var i=this._extent;isnan(t)||(i[0]=t),isnan(e)||(i[1]=e)},mp.prototype.isblank=function(){return this._isblank},mp.prototype.setblank=function(t){this._isblank=t},mp.prototype.getlabel=null,oa(mp),ua(mp,{registerwhenextend:!0}),vp.createbyaxismodel=function(t){var e=t.option,i=e.data,n=i&&o(i,_p);return new vp({categories:n,needcollect:!n,deduplication:!1!==e.dedplication})};var yp=vp.prototype;function xp(t){return t._map||(t._map=q(t.categories))}function _p(t){return z(t)&&null!=t.value?t.value:t+""}yp.getordinal=function(t){return xp(this).get(t)},yp.parseandcollect=function(t){var e,i=this._needcollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=xp(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=nan),e};var wp=mp.prototype,bp=mp.extend({type:"ordinal",init:function(t,e){t&&!l(t)||(t=new vp({categories:t})),this._ordinalmeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalmeta.getordinal(t):math.round(t)},contain:function(t){return t=this.parse(t),wp.contain.call(this,t)&&null!=this._ordinalmeta.categories[t]},normalize:function(t){return wp.normalize.call(this,this.parse(t))},scale:function(t){return math.round(wp.scale.call(this,t))},getticks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getlabel:function(t){if(!this.isblank())return this._ordinalmeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionextentfromdata:function(t,e){this.unionextent(t.getapproximateextent(e))},getordinalmeta:function(){return this._ordinalmeta},niceticks:et,niceextent:et});bp.create=function(){return new bp};var sp=zl;function mp(t){return gl(t)+2}function ip(t,e,i){t[e]=math.max(math.min(t[e],i[1]),i[0])}function tp(t,e){isfinite(t[0])||(t[0]=e[0]),isfinite(t[1])||(t[1]=e[1]),ip(t,0,e),ip(t,1,e),t[0]>t[1]&&(t[0]=t[1])}var ap=zl,dp=mp.extend({type:"interval",_interval:0,_intervalprecision:2,setextent:function(t,e){var i=this._extent;isnan(t)||(i[0]=parsefloat(t)),isnan(e)||(i[1]=parsefloat(e))},unionextent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),dp.prototype.setextent.call(this,e[0],e[1])},getinterval:function(){return this._interval},setinterval:function(t){this._interval=t,this._niceextent=this._extent.slice(),this._intervalprecision=mp(t)},getticks:function(t){var e=this._interval,i=this._extent,n=this._niceextent,o=this._intervalprecision,a=[];if(!e)return a;i[0]s&&(t?a.push(ap(s+e,o)):a.push(i[1])),a},getminorticks:function(t){for(var e=this.getticks(!0),i=[],n=this.getextent(),o=1;on[0]&&h>>1;t[o][1]>1^-(1&s),l=l>>1^-(1&l),o=s+=o,a=l+=a,n.push([s/i,l/i])}return n}ag.prototype={constructor:ag,properties:null,getboundingrect:function(){var t=this._rect;if(t)return t;for(var e=number.max_value,i=[e,e],n=[-e,-e],o=[],a=[],r=this.geometries,s=0;ss[1];d(e[0].coord,s[0])&&(n?e[0].coord=s[0]:e.shift());n&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]});d(s[1],a.coord)&&(n?a.coord=s[1]:e.pop());n&&d(a.coord,s[1])&&e.push({coord:s[1]});function d(t,e){return t=zl(t),e=zl(e),c?en[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var xm=ar.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothconstraint:!0,smoothmonotone:null,connectnulls:!1},style:{fill:null,stroke:"#000"},brush:xr(ar.prototype.brush),buildpath:function(t,e){var i=e.points,n=0,o=i.length,a=ym(i,e.smoothconstraint);if(e.connectnulls){for(;0n)return!1;return!0}(a,e))){var r=e.mapdimension(a.dim),s={};return r(a.getviewlabels(),function(t){s[t.tickvalue]=1}),function(t){return!s.hasownproperty(e.get(r,t))}}}}function cm(t,e,i){if("cartesian2d"!==t.type)return bm(t,e,i);var n=t.getbaseaxis().ishorizontal(),o=wm(t,e,i);if(!i.get("clip",!0)){var a=o.shape,r=math.max(a.width,a.height);n?(a.y-=r,a.height+=2*r):(a.x-=r,a.width+=2*r)}return o}_c.extend({type:"line",init:function(){var t=new ci,e=new im;this.group.add(e.group),this._symboldraw=e,this._linegroup=t},render:function(t,e,i){var n=t.coordinatesystem,o=this.group,a=t.getdata(),r=t.getmodel("linestyle"),s=t.getmodel("areastyle"),l=a.maparray(a.getitemlayout),u="polar"===n.type,h=this._coordsys,c=this._symboldraw,d=this._polyline,f=this._polygon,p=this._linegroup,g=t.get("animation"),m=!s.isempty(),v=s.get("origin"),y=function(t,e,i){if(!i.valuedim)return[];for(var n=[],o=0,a=e.count();oh[c-1].coord&&(h.reverse(),d.reverse());var f=h[0].coord-10,p=h[c-1].coord+10,g=p-f;if(g<.001)return"transparent";r(h,function(t){t.offset=(t.coord-f)/g}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var m=new gs(0,0,0,0,h,!0);return m[n]=f,m[n+"2"]=p,m}}}(a,n)||a.getvisual("color");d.usestyle(d(r.getlinestyle(),{fill:"none",stroke:m,linejoin:"bevel"}));var i=t.get("smooth");if(i=tm(t.get("smooth")),d.setshape({smooth:i,smoothmonotone:t.get("smoothmonotone"),connectnulls:t.get("connectnulls")}),f){var t=a.getcalculationinfo("stackedonseries"),a=0;f.usestyle(d(s.getareastyle(),{fill:m,opacity:.7,linejoin:"bevel"})),t&&(a=tm(t.get("smooth"))),f.setshape({smooth:i,stackedonsmooth:a,smoothmonotone:t.get("smoothmonotone"),connectnulls:t.get("connectnulls")})}this._data=a,this._coordsys=n,this._stackedonpoints=y,this._points=l,this._step=s,this._valueorigin=v},dispose:function(){},highlight:function(t,e,i,n){var o=t.getdata(),a=yo(o,n);if(!(a instanceof array)&&null!=a&&0<=a){var r=o.getitemgraphicel(a);if(!r){var s=o.getitemlayout(a);if(!s)return;if(this._clipshapeforsymbol&&!this._clipshapeforsymbol.contain(s[0],s[1]))return;(r=new xg(o,a)).position=s,r.setz(t.get("zlevel"),t.get("z")),r.ignore=isnan(s[0])||isnan(s[1]),r.__temp=!0,o.setitemgraphicel(a,r),r.stopsymbolanimation(!0),this.group.add(r)}r.highlight()}else _c.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var o=t.getdata(),a=yo(o,n);if(null!=a&&0<=a){var r=o.getitemgraphicel(a);r&&(r.__temp?(o.setitemgraphicel(a,null),this.group.remove(r)):r.downplay())}else _c.prototype.downplay.call(this,t,e,i,n)},_newpolyline:function(t){var e=this._polyline;return e&&this._linegroup.remove(e),e=new xm({shape:{points:t},silent:!0,z2:10}),this._linegroup.add(e),this._polyline=e},_newpolygon:function(t,e){var i=this._polygon;return i&&this._linegroup.remove(i),i=new _m({shape:{points:t,stackedonpoints:e},silent:!0}),this._linegroup.add(i),this._polygon=i},_updateanimation:function(t,e,i,n,o,a){var r=this._polyline,s=this._polygon,l=t.hostmodel,u=function(t,e,i,n,o,a,r,s){for(var l=function(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=sm(o,e,r),v=sm(a,t,s),y=0;ye&&(e=t[i]);return isfinite(e)?e:nan},min:function(t){for(var e=1/0,i=0;ie[1]&&e.reverse(),e},getotheraxis:function(){this.grid.getotheraxis()},pointtodata:function(t,e){return this.coordtodata(this.tolocalcoord(t["x"===this.dim?0:1]),e)},tolocalcoord:null,toglobalcoord:null},w(zm,gg);var bm={show:!0,zlevel: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:"#333",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:["#ccc"],width:1,type:"solid"}},splitarea:{show:!1,areastyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},vm={};vm.categoryaxis=m({boundarygap:!0,deduplication:null,splitline:{show:!1},axistick:{alignwithlabel:!1,interval:"auto"},axislabel:{interval:"auto"}},bm),vm.valueaxis=m({boundarygap:[0,0],splitnumber:5,minortick:{show:!1,splitnumber:5,length:3,linestyle:{}},minorsplitline:{show:!1,linestyle:{color:"#eee",width:1}}},bm),vm.timeaxis=d({scale:!0,min:"datamin",max:"datamax"},vm.valueaxis),vm.logaxis=d({scale:!0,logbase:10},vm.valueaxis);function gm(a,t,r,e){r(fm,function(o){t.extend({type:a+"axis."+o,mergedefaultandtheme:function(t,e){var i=this.layoutmode,n=i?iu(t):{};m(t,e.gettheme().get(o+"axis")),m(t,this.getdefaultoption()),t.type=r(a,t),i&&mu(t,n,i)},optionupdated:function(){"category"===this.option.type&&(this.__ordinalmeta=vp.createbyaxismodel(this))},getcategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalmeta.categories},getordinalmeta:function(){return this.__ordinalmeta},defaultoption:p([{},vm[o+"axis"],e],!0)})}),ku.registersubtypedefaulter(a+"axis",t(r,a))}var fm=["value","category","time","log"],wm=ku.extend({type:"cartesian2daxis",axis:null,init:function(){wm.superapply(this,"init",arguments),this.resetrange()},mergeoption:function(){wm.superapply(this,"mergeoption",arguments),this.resetrange()},restoredata:function(){wm.superapply(this,"restoredata",arguments),this.resetrange()},getcoordsysmodel:function(){return this.ecmodel.querycomponents({maintype:"grid",index:this.option.gridindex,id:this.option.gridid})[0]}});function hm(t,e){return e.type||(e.data?"category":"value")}m(wm.prototype,dg);var zm={offset:0};function um(t,e){return t.getcoordsysmodel()===e}function xm(t,e,i){this._coordsmap={},this._coordslist=[],this._axesmap={},this._axeslist=[],this._initcartesian(t,e,i),this.model=t}gm("x",wm,hm,zm),gm("y",wm,hm,zm),ku.extend({type:"grid",dependencies:["xaxis","yaxis"],layoutmode:"box",coordinatesystem:null,defaultoption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containlabel:!1,backgroundcolor:"rgba(0,0,0,0)",borderwidth:1,bordercolor:"#ccc"}});var ym=xm.prototype;function jm(t,e,i,n){i.getaxesonzeroof=function(){return o?[o]:[]};var o,a=t[e],r=i.model,s=r.get("axisline.onzero"),l=r.get("axisline.onzeroaxisindex");if(s){if(null!=l)qm(a[l])&&(o=a[l]);else for(var u in a)if(a.hasownproperty(u)&&qm(a[u])&&!n[h(a[u])]){o=a[u];break}o&&(n[h(o)]=!0)}function h(t){return t.dim+"_"+t.index}}function qm(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getextent(),i=e[0],n=e[1];return!(0u[1]?-1:1,c=["start"===a?u[0]-h*l:"end"===a?u[1]+h*l:(u[0]+u[1])/2,sv(a)?t.labeloffset+r*l:0],d=e.get("namerotate");null!=d&&(d=d*tv/180),sv(a)?n=nv(t.rotation,null!=d?d:t.rotation,r):(n=function(t,e,i,n){var o,a,r=zl(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;o=ul(r-tv/2)?(a=l?"bottom":"top","center"):ul(r-1.5*tv)?(a=l?"top":"bottom","center"):(a="middle",r<1.5*tv&&tv/2l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r=i.r0}}});var ny=math.pi/180;function oy(o,t,e,i,n,a,r,s,l,u){function h(t,e,i){for(var n=t;nl+r);n++)if(o[n].y+=i,to[n].y+o[n].height)return void c(n,i/2);c(e-1,i/2)}function c(t,e){for(var i=t;0<=i&&!(o[i].y-eo[i-1].y+o[i-1].height));i--);}function d(t,e,i,n,o,a){for(var r=e?number.max_value:0,s=0,l=t.length;s=e?v.push(o[y]):m.push(o[y]);d(m,!1,t,e,i,n),d(v,!0,t,e,i,n)}function ay(t){return"center"===t.position}function ry(l,k,p,t,n,e){var o,r,e=l.getdata(),z=[],b=!1,v=(l.get("minshowlabelangle")||0)*ny;e.each(function(t){var e=e.getitemlayout(t),i=e.getitemmodel(t),n=i.getmodel("label"),o=n.get("position")||i.get("emphasis.label.position"),a=n.get("distancetolabelline"),r=n.get("alignto"),s=el(n.get("margin"),p),l=n.get("bleedmargin"),u=n.getfont(),h=i.getmodel("labelline"),c=h.get("length");c=el(c,p);var d=h.get("length2");if(d=el(d,p),!(e.anglei[0]&&isfinite(h)&&isfinite(i[0]););else{var l=o.getticks().length-1;c":"\n";return au(""===r?this.name:r)+s+o(a,function(t,e){var i=o.get(o.mapdimension(t.dim),n);return au(t.name+" : "+i)}).join(s)},gettooltipposition:function(t){if(null!=t)for(var e=this.getdata(),i=this.coordinatesystem,n=e.getvalues(o(i.dimensions,function(t){return e.mapdimension(t)}),t,!0),o=0,a=n.length;o":"\n";return l.join(", ")+d+au(r+" : "+a)},gettooltipposition:function(t){if(null!=t){var e=this.getdata().getname(t),i=this.coordinatesystem,n=i.getregion(e);return n&&i.datatopoint(n.center)}},setzoom:function(t){this.option.zoom=t},setcenter:function(t){this.option.center=t},defaultoption:{zlevel:0,z:2,coordinatesystem:"geo",map:"",left:"center",top:"center",aspectscale:.75,showlegendsymbol:!0,datarangehoverlink:!0,boundingcoords:null,center:null,zoom:1,scalelimit:null,label:{show:!1,color:"#000"},itemstyle:{borderwidth:.5,bordercolor:"#444",areacolor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemstyle:{areacolor:"rgba(255,215,0,0.8)"}},nameproperty:"name"}}),jv);var ey="\0_ec_interaction_mutex";function zy(t,e){return!!by(t)[e]}function by(t){return t[ey]||(t[ey]={})}function vy(i){this.pointerchecker,this._zr=i,this._opt={};var t=a,n=t(gy,this),o=t(fy,this),a=t(wy,this),r=t(hy,this),s=t(zy,this);ct.call(this),this.setpointerchecker=function(t){this.pointerchecker=t},this.enable=function(t,e){this.disable(),this._opt=d(k(e)||{},{zoomonmousewheel:!0,moveonmousemove:!0,moveonmousewheel:!1,preventdefaultmousemove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(i.on("mousedown",n),i.on("mousemove",o),i.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(i.on("mousewheel",r),i.on("pinch",s))},this.disable=function(){i.off("mousedown",n),i.off("mousemove",o),i.off("mouseup",a),i.off("mousewheel",r),i.off("pinch",s)},this.dispose=this.disable,this.isdragging=function(){return this._dragging},this.ispinching=function(){return this._pinching}}function gy(t){if(!(yt(t)||t.target&&t.target.draggable)){var e=t.offsetx,i=t.offsety;this.pointerchecker&&this.pointerchecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function fy(t){if(this._dragging&&yy("moveonmousemove",t,this._opt)&&"pinch"!==t.gestureevent&&!zy(this._zr,"globalpan")){var e=t.offsetx,i=t.offsety,n=this._x,o=this._y,a=e-n,r=i-o;this._x=e,this._y=i,this._opt.preventdefaultmousemove&&xt(t.event),xy(this,"pan","moveonmousemove",t,{dx:a,dy:r,oldx:n,oldy:o,newx:e,newy:i})}}function wy(t){yt(t)||(this._dragging=!1)}function hy(t){var e=yy("zoomonmousewheel",t,this._opt),i=yy("moveonmousewheel",t,this._opt),n=t.wheeldelta,o=math.abs(n),a=t.offsetx,r=t.offsety;if(0!==n&&(e||i)){if(e){var s=3e&&(e=n.height)}this.height=e+1},getnodebyid:function(t){if(this.getid()===t)return this;for(var e=0,i=this.children,n=i.length;ei&&(i=t.depth)});var a=t.expandandcollapse&&0<=t.initialtreedepth?t.initialtreedepth:i;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<=a}),o.data},getorient:function(){var t=this.get("orient");return"horizontal"===t?t="lr":"vertical"===t&&(t="tb"),t},setzoom:function(t){this.option.zoom=t},setcenter:function(t){this.option.center=t},formattooltip:function(t){for(var e=this.getdata().tree,i=e.root.children[0],n=e.getnodebydataindex(t),o=n.getvalue(),a=n.name;n&&n!==i;)a=n.parentnode.name+"."+a,n=n.parentnode;return au(a+(isnan(o)||null==o?"":" : "+o))},defaultoption:{zlevel:0,z:2,coordinatesystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeshape:"curve",edgeforkposition:"50%",roam:!1,nodescaleratio:.4,center:null,zoom:1,orient:"lr",symbol:"emptycircle",symbolsize:7,expandandcollapse:!0,initialtreedepth:2,linestyle:{color:"#ccc",width:1.5,curveness:.5},itemstyle:{color:"lightsteelblue",bordercolor:"#c23531",borderwidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationeasing:"linear",animationduration:700,animationdurationupdate:1e3}});var zx=cs({shape:{parentpoint:[],childpoints:[],orient:"",forkposition:""},style:{stroke:"#000",fill:null},buildpath:function(t,e){var i=e.childpoints,n=i.length,o=e.parentpoint,a=i[0],r=i[n-1];if(1===n)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,u=1-l,h=el(e.forkposition,1),c=[];c[l]=o[l],c[u]=o[u]+(r[u]-o[u])*h,t.moveto(o[0],o[1]),t.lineto(c[0],c[1]),t.moveto(a[0],a[1]),c[l]=a[l],t.lineto(c[0],c[1]),c[l]=r[l],t.lineto(c[0],c[1]),t.lineto(r[0],r[1]);for(var d=1;dx.x)||(m-=math.pi);var b=v?"left":"right",s=a.labelmodel.get("rotate"),m=s*(math.pi/180);g.setstyle({textposition:a.labelmodel.get("position")||b,textrotation:null==s?-m:m,textorigin:"center",verticalalign:"middle"})}!function(t,e,i,n,o,a,r,s,l){var u=l.edgeshape,h=n.__edge;if("curve"===u)e.parentnode&&e.parentnode!==i&&cl(h=h||(n.__edge=new ds({shape:wx(l,o,o),style:d({opacity:0,strokenoscale:!0},l.linestyle)})),{shape:wx(l,a,r),style:d({opacity:1},l.linestyle)},t);else if("polyline"===u&&"orthogonal"===l.layout&&e!==i&&e.children&&0!==e.children.length&&!0===e.isexpand){for(var c=e.children,d=[],f=0;fh.getlayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:r(u,h)/2,f=d-u.getlayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=o/(h.getlayout().x+d+f),g=a/(c.depth-1||1),hx(l,function(t){m=(t.getlayout().x+f)*p,v=(t.depth-1)*g;var e=px(m,v);t.setlayout({x:e.x,y:e.y,rawx:m,rawy:v},!0)});else{var y=t.getorient();"rl"===y||"lr"===y?(g=a/(h.getlayout().x+d+f),p=o/(c.depth-1||1),hx(l,function(t){v=(t.getlayout().x+f)*g,m="lr"===y?(t.depth-1)*p:o-(t.depth-1)*p,t.setlayout({x:m,y:v},!0)})):"tb"!==y&&"bt"!==y||(p=o/(h.getlayout().x+d+f),g=a/(c.depth-1||1),hx(l,function(t){m=(t.getlayout().x+f)*p,v="tb"===y?(t.depth-1)*g:a-(t.depth-1)*g,t.setlayout({x:m,y:v},!0)}))}}}(t,e)})}),sc.extend({type:"series.treemap",layoutmode:"box",dependencies:["grid","polar"],preventusinghoverlayer:!0,_viewroot:null,defaultoption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipwindow:"origin",squareratio:.5*(1+math.sqrt(5)),leafdepth:null,drilldownicon:"▶",zoomtonoderatio:.1024,roam:!0,nodeclick:"zoomtonode",animation:!0,animationdurationupdate:900,animationeasing:"quinticinout",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyitemwidth:25,itemstyle:{color:"rgba(0,0,0,0.7)",bordercolor:"rgba(255,255,255,0.7)",borderwidth:1,shadowcolor:"rgba(150,150,150,1)",shadowblur:3,shadowoffsetx:0,shadowoffsety:0,textstyle:{color:"#fff"}},emphasis:{textstyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperlabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalalign:"middle"},itemstyle:{color:null,coloralpha:null,colorsaturation:null,borderwidth:0,gapwidth:0,bordercolor:"#fff",bordercolorsaturation:null},emphasis:{upperlabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalalign:"middle"}},visualdimension:0,visualmin:null,visualmax:null,color:[],coloralpha:null,colorsaturation:null,colormappingby:"index",visiblemin:10,childrenvisiblemin:null,levels:[]},getinitialdata:function(t,e){var i={name:t.name,children:t.data};!function i(t){var n=0;r(t.children,function(t){i(t);var e=t.value;l(e)&&(e=e[0]),n+=e});var e=t.value;l(e)&&(e=e[0]);null!=e&&!isnan(e)||(e=n);e<0&&(e=0);l(t.value)?t.value[0]=e:t.value=e}(i);var n=t.levels||[],o=new cl({itemstyle:this.designatedvisualitemstyle={}},this,e),a=o((n=t.levels=function(t,e){var n,i=e.get("color");if(!i)return;if(r(t=t||[],function(t){var e=new cl(t),i=e.get("color");(e.get("itemstyle.color")||i&&"none"!==i)&&(n=!0)}),!n){(t[0]||(t[0]={})).color=i.slice()}return t}(n,e))||[],function(t){return new cl(t,o,e)},this),r=ax.createtree(i,this,function(t){t.wrapmethod("getitemmodel",function(t,e){var i=r.getnodebydataindex(e),n=a[i.depth];return t.parentmodel=n||o,t})});return r.data},optionupdated:function(){this.resetviewroot()},formattooltip:function(t){var e=this.getdata(),i=this.getrawvalue(t),n=l(i)?tu(i[0]):tu(i);return au(e.getname(t)+": "+n)},getdataparams:function(t){var e=sc.prototype.getdataparams.apply(this,arguments),i=this.getdata().tree.getnodebydataindex(t);return e.treepathinfo=yx(i,this),e},setlayoutinfo:function(t){this.layoutinfo=this.layoutinfo||{},p(this.layoutinfo,t)},mapidtoindex:function(t){var e=this._idindexmap;e||(e=this._idindexmap=q(),this._idindexmapcount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idindexmapcount++),i},getviewroot:function(){return this._viewroot},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)}});var jx=5;function qx(t){this.group=new ci,t.add(this.group)}function kx(t,e,i,n,o,a){var r=[[o?t:t-jx,e],[t+i,e],[t+i,e+n],[o?t:t-jx,e+n]];return a||r.splice(2,0,[t+i+jx,e+n/2]),o||r.push([t,e+n/2]),r}qx.prototype={constructor:qx,render:function(t,e,i,n){var o=t.getmodel("breadcrumb"),a=this.group;if(a.removeall(),o.get("show")&&i){var r=o.getmodel("itemstyle"),s=r.getmodel("textstyle"),l={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getwidth(),height:e.getheight()},emptyitemwidth:o.get("emptyitemwidth"),totalwidth:0,renderlist:[]};this._prepare(i,l,s),this._rendercontent(t,l,r,s,n),su(a,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentnode){var o=n.getmodel().get("name"),a=i.gettextrect(o),r=math.max(a.width+16,e.emptyitemwidth);e.totalwidth+=r+8,e.renderlist.push({node:n,text:o,width:r})}},_rendercontent:function(t,e,i,n,o){for(var a,r,s=0,l=e.emptyitemwidth,u=t.get("breadcrumb.height"),h=function(t,e,i){var n=e.width,o=e.height,a=el(t.x,n),r=el(t.y,o),s=el(t.x2,n),l=el(t.y2,o);return(isnan(a)||isnan(parsefloat(t.x)))&&(a=0),(isnan(s)||isnan(parsefloat(t.x2)))&&(s=n),(isnan(r)||isnan(parsefloat(t.y)))&&(r=0),(isnan(l)||isnan(parsefloat(t.y2)))&&(l=o),i=iu(i||0),{width:math.max(s-a-i[1]-i[3],0),height:math.max(l-r-i[0]-i[2],0)}}(e.pos,e.box),c=e.totalwidth,d=e.renderlist,f=d.length-1;0<=f;f--){var p=d[f],g=p.node,m=p.width,v=p.text;c>h.width&&(c-=m-l,m=l,v=null);var y=new qr({shape:{points:kx(s,0,m,u,f===d.length-1,0===f)},style:d(i.getitemstyle(),{linejoin:"bevel",text:v,textfill:n.gettextcolor(),textfont:n.getfont()}),z:10,onclick:t(o,g)});this.group.add(y),a=t,r=g,y.eventdata={componenttype:"series",componentsubtype:"treemap",componentindex:a.componentindex,seriesindex:a.componentindex,seriesname:a.name,seriestype:"treemap",selftype:"breadcrumb",nodedata:{dataindex:r&&r.dataindex,name:r&&r.name},treepathinfo:r&&yx(r,a)},s+=m+8}},remove:function(){this.group.removeall()}};function $x(t){var e=s_(t);return e.stroke=e.fill=e.linewidth=null,e}var jx=a,qx=ci,t_=rs,e_=r,i_=["label"],n_=["emphasis","label"],o_=["upperlabel"],a_=["emphasis","upperlabel"],r_=10,s_=ha([["fill","color"],["stroke","strokecolor"],["linewidth","strokewidth"],["shadowblur"],["shadowoffsetx"],["shadowoffsety"],["shadowcolor"]]);function l_(h,r,s,l,u,e,c,t,i,n){if(c){var d=c.getlayout(),o=h.getdata();if(o.setitemgraphicel(c.dataindex,null),d&&d.isinview){var f=d.width,p=d.height,g=d.borderwidth,m=d.invisible,v=c.getrawindex(),y=t&&t.getrawindex(),a=c.viewchildren,x=d.upperheight,_=a&&a.length,w=c.getmodel("itemstyle"),b=c.getmodel("emphasis.itemstyle"),s=l("nodegroup",qx);if(s){if(i.add(s),s.attr("position",[d.x||0,d.y||0]),s.__tmnodewidth=f,s.__tmnodeheight=p,d.isaboveviewroot)return s;var m=c.getmodel(),i=l("background",t_,n,1);if(i&&function(t,e,i){if(e.dataindex=c.dataindex,e.seriesindex=h.seriesindex,e.setshape({x:0,y:0,width:f,height:p}),m)a(e);else{e.invisible=!1;var n=c.getvisual("bordercolor",!0),o=b.get("bordercolor"),a=$x(w);a.fill=n;var r=s_(b);if(r.fill=o,i){var s=f-2*g;d(a,r,n,s,x,{x:g,y:0,width:s,height:x})}else a.text=r.text=null;e.setstyle(a),us(e,r)}t.add(e)}(s,i,_&&d.upperlabelheight),_)qs(s)&&js(s,!1),i&&(js(i,!0),o.setitemgraphicel(c.dataindex,i));else{var t=l("content",t_,n,2);t&&function(t,e){e.dataindex=c.dataindex,e.seriesindex=h.seriesindex;var i=math.max(f-2*g,0),n=math.max(p-2*g,0);if(e.culling=!0,e.setshape({x:g,y:g,width:i,height:n}),m)a(e);else{e.invisible=!1;var o=c.getvisual("color",!0),a=$x(w);a.fill=o;var r=s_(b);d(a,r,o,i,n),e.setstyle(a),us(e,r)}t.add(e)}(s,t),i&&qs(i)&&js(i,!1),js(s,!0),o.setitemgraphicel(c.dataindex,s)}return s}}}function a(t){t.invisible||e.push(t)}function d(t,e,i,n,o,a){var r=m.get("name"),s=m.getmodel(a?o_:i_),l=m.getmodel(a?a_:n_),u=s.getshallow("show");el(t,e,s,l,{defaulttext:u?r:null,autocolor:i,isrecttext:!0,labelfetcher:h,labeldataindex:c.dataindex,labelprop:a?"upperlabel":"label"}),c(t,a,d),c(e,a,d),a&&(t.textrect=k(a)),t.truncate=u&&s.get("ellipsis")?{outerwidth:n,outerheight:o,minchar:2}:null}function c(t,e,i){var n=t.text;if(!e&&i.isleafroot&&null!=n){var o=h.get("drilldownicon",!0);t.text=o?o+" "+n:n}}function l(t,e,i,n){var o=null!=y&&s[t][y],a=u[t];return o?(s[t][y]=null,function(t,e,i){(t[v]={}).old="nodegroup"===i?e.position.slice():p({},e.shape)}(a,o,t)):m||((o=new e({z:function(t,e){var i=t*r_+e;return(i-1)/i}(i,n)})).__tmdepth=i,function(t,e,i){var n=t[v]={},o=c.parentnode;if(o&&(!l||"drilldown"===l.direction)){var a=0,r=0,s=u.background[o.getrawindex()];!l&&s&&s.old&&(a=s.old.width,r=s.old.height),n.old="nodegroup"===i?[0,r]:{x:a,y:r,width:0,height:0}}n.fadein="nodegroup"!==i}(a,0,o.__tmstoragename=t)),r[t][v]=o}}cf({type:"treemap",init:function(t,e){this._containergroup,this._storage={nodegroup:[],background:[],content:[]},this._oldtree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){if(!(_(e.findcomponents({maintype:"series",subtype:"treemap",query:n}),t)<0)){this.seriesmodel=t,this.api=i,this.ecmodel=e;var o=zx(n,["treemapzoomtonode","treemaproottonode"],t),a=n&&n.type,r=t.layoutinfo,s=!this._oldtree,l=this._storage,u="treemaproottonode"===a&&o&&l?{rootnodegroup:l.nodegroup[o.node.getrawindex()],direction:n.direction}:null,h=this._givecontainergroup(r),c=this._dorender(h,t,u);s||a&&"treemapzoomtonode"!==a&&"treemaproottonode"!==a?c.renderfinally():this._doanimation(h,c,t,u),this._resetcontroller(i),this._renderbreadcrumb(t,i,o)}},_givecontainergroup:function(t){var e=this._containergroup;return e||(e=this._containergroup=new qx,this._initevents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_dorender:function(t,e,i){var n=e.getdata().tree,o=this._oldtree,a={nodegroup:[],background:[],content:[]},r={nodegroup:[],background:[],content:[]},s=this._storage,l=[],c=t(l_,e,r,s,i,a,l);!function a(r,s,l,u,h){u?e_(s=r,function(t,e){t.isremoved()||i(e,e)}):new kf(s,r,t,t).add(i).update(i).remove(t(i,null)).execute();function t(t){return t.getid()}function i(t,e){var i=null!=t?r[t]:null,n=null!=e?s[e]:null,o=c(i,n,l,h);o&&a(i&&i.viewchildren||[],n&&n.viewchildren||[],o,u,h+1)}}(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var u,h,d=(h={nodegroup:[],background:[],content:[]},(u=s)&&e_(u,function(t,e){var i=h[e];e_(t,function(t){t&&(i.push(t),t.__tmwilldelete=1)})}),h);return this._oldtree=n,this._storage=r,{lastsforanimation:a,willdeleteels:d,renderfinally:function(){e_(d,function(t){e_(t,function(t){t.parent&&t.parent.remove(t)})}),e_(l,function(t){t.invisible=!0,t.dirty()})}}},_doanimation:function(t,a,e,s){if(e.get("animation")){var l=e.get("animationdurationupdate"),u=e.get("animationeasing"),h=function(){var a,r=[],s={};return{add:function(t,e,i,n,o){return e(n)&&(o=n,n=0),!s[t.id]&&(s[t.id]=1,r.push({el:t,target:e,time:i,delay:n,easing:o}),!0)},done:function(t){return a=t,this},start:function(){for(var t=r.length,e=0,i=r.length;e=o.length||t===o[t.depth]){var i=e_(r,l,t,e,g,a);n(t,i,o,a)}})}else c=p_(l),t.setvisual("color",c)}(o,{},t.getviewroot().getancestors(),t)}};function k_(i,n,t){var o=p({},n),a=t.designatedvisualitemstyle;return r(["color","coloralpha","colorsaturation"],function(t){a[t]=n[t];var e=i.get(t);(a[t]=null)!=e&&(o[t]=e)}),o}function p_(t){var e=n_(t,"color");if(e){var i=n_(t,"coloralpha"),n=n_(t,"colorsaturation");return n&&(e=qe(e,null,null,n)),i&&(e=ke(e,i)),e}}function n_(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function o_(t,e,i,n,o,a){if(a&&a.length){var r=r_(e,"color")||null!=o.color&&"none"!==o.color&&(r_(e,"coloralpha")||r_(e,"colorsaturation"));if(r){var s=e.get("visualmin"),l=e.get("visualmax"),u=i.dataextent.slice();null!=s&&su[1]&&(u[1]=l);var h=e.get("colormappingby"),c={type:r.name,dataextent:u,visual:r.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingmethod="linear":(c.mappingmethod="category",c.loop=!0);var d=new g_(c);return d.__drcolormappingby=h,d}}}function r_(t,e){var i=t.get(e);return d_(i)&&i.length?{name:e,range:i}:null}function e_(t,e,i,n,o,a){var r=p({},e);if(o){var s=o.type,l="color"===s&&o.__drcolormappingby,u="index"===l?n:"id"===l?a.mapidtoindex(i.getid()):i.getvalue(t.get("visualdimension"));r[s]=o.mapvaluetovisual(u)}return r}var z_=math.max,b_=math.min,v_=w,g_=r,f_=["itemstyle","borderwidth"],w_=["itemstyle","gapwidth"],h_=["upperlabel","show"],z_=["upperlabel","height"],u_={seriestype:"treemap",reset:function(t,e,i,n){var o=i.getwidth(),a=i.getheight(),r=t.option,s=bu(t.getboxlayoutparams(),{width:i.getwidth(),height:i.getheight()}),l=r.size||[],u=el(v_(s.width,l[0]),o),h=el(v_(s.height,l[1]),a),c=n&&n.type,d=zx(n,["treemapzoomtonode","treemaproottonode"],t),f="treemaprender"===c||"treemapmove"===c?n.rootrect:null,p=t.getviewroot(),g=ux(p);if("treemapmove"!==c){var m="treemapzoomtonode"===c?function(t,e,i,n,o){var a,r=(e||{}).node,s=[n,o];if(!r||r===i)return s;var l=n*o,u=l*t.option.zoomtonoderatio;for(;a=r.parentnode;){for(var h=0,c=a.children,d=0,f=c.length;ds[1]&&(s[1]=e)})}else s=[nan,nan];return{sum:n,dataextent:s}}(e,r,s);if(0===u.sum)return t.viewchildren=[];if(u.sum=function(t,e,i,n,o){if(!n)return i;for(var a=t.get("visiblemin"),r=o.length,s=r,l=r-1;0<=l;l--){var u=o["asc"===n?r-l-1:l].getvalue();u/i*ei[l[r]])&&(h=i[l[r]]);for(var c=0,d=t.length;c "+d)),u++)}var f,p=i.get("coordinatesystem");if("cartesian2d"===p||"polar"===p)f=gp(t,i);else{var g=lh.get(p),m=g&&"view"!==g.type&&g.dimensions||[];_(m,"value")<0&&m.concat(["value"]);var v=lp(t,{coorddimensions:m});(f=new yf(v,i)).initdata(t)}var y=new yf(["value"],i);return y.initdata(l,s),o&&o(f,y),yx({maindata:f,struct:a,structattr:"graph",datas:{node:f,edge:y},datasattr:{node:"data",edge:"edgedata"}}),a.update(),a}var nw="--\x3e",ow=function(t){return t.get("autocurveness")||null},aw=function(t,e){var i=ow(t),n=20,o=[];if("number"==typeof i)n=i;else if(l(i))return void(t.__curvenesslist=i);n ")),o.value&&(l+=" : "+au(o.value)),l},_updatecategoriesdata:function(){var t=o(this.option.categories||[],function(t){return null!=t.value?t:p({value:0},t)}),e=new yf(["value"],this);e.initdata(t),this._categoriesdata=e,this._categoriesmodels=e.maparray(function(t){return e.getitemmodel(t,!0)})},setzoom:function(t){this.option.zoom=t},setcenter:function(t){this.option.center=t},isanimationenabled:function(){return dw.supercall(this,"isanimationenabled")&&!("force"===this.get("layout")&&this.get("force.layoutanimation"))},defaultoption:{zlevel:0,z:2,coordinatesystem:"view",legendhoverlink:!0,hoveranimation:!0,layout:null,focusnodeadjacency:!1,circular:{rotatelabel:!1},force:{initlayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgelength:30,layoutanimation:!0},left:"center",top:"center",symbol:"circle",symbolsize:10,edgesymbol:["none","none"],edgesymbolsize:10,edgelabel:{position:"middle",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:{label:{show:!0}}}}),fw=ls.prototype,pw=ds.prototype;function gw(t){return isnan(+t.cpx1)||isnan(+t.cpy1)}var mw=cs({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildpath:function(t,e){this[gw(e)?"_buildpathline":"_buildpathcurve"](t,e)},_buildpathline:fw.buildpath,_buildpathcurve:pw.buildpath,pointat:function(t){return this[gw(this.shape)?"_pointatline":"_pointatcurve"](t)},_pointatline:fw.pointat,_pointatcurve:pw.pointat,tangentat:function(t){var e=this.shape,i=gw(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentatcurve(t);return mt(i,i)},_tangentatcurve:pw.tangentat}),vw=["fromsymbol","tosymbol"];function yw(t){return"_"+t+"type"}function xw(t,e,i){var n=e.getitemvisual(i,t);if(n&&"none"!==n){var o=e.getitemvisual(i,"color"),a=e.getitemvisual(i,t+"size"),r=e.getitemvisual(i,t+"rotate");l(a)||(a=[a,a]);var s=wg(n,-a[0]/2,-a[1]/2,a[0],a[1],o);return s.__specifiedrotation=null==r||isnan(r)?void 0:+r*math.pi/180||0,s.name=t,s}}function _w(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=nan,t.cpy1=nan)}function ww(t,e,i){ci.call(this),this._createline(t,e,i)}var bw=ww.prototype;function sw(t){this._ctor=t||ww,this.group=new ci}bw.beforeupdate=function(){var t=this.childofname("fromsymbol"),e=this.childofname("tosymbol"),i=this.childofname("label");if(t||e||!i.ignore){for(var n=1,o=this.parent;o;)o.scale&&(n/=o.scale[0]),o=o.parent;var a=this.childofname("line");if(this.__dirty||a.__dirty){var r=a.shape.percent,s=a.pointat(0),l=a.pointat(r),u=ht([],l,s);if(mt(u,u),t){if(t.attr("position",s),null==(c=t.__specifiedrotation)){var h=a.tangentat(0);t.attr("rotation",math.pi/2-math.atan2(h[1],h[0]))}else t.attr("rotation",c);t.attr("scale",[n*r,n*r])}if(e){var c;if(e.attr("position",l),null==(c=e.__specifiedrotation)){h=a.tangentat(1);e.attr("rotation",-math.pi/2-math.atan2(h[1],h[0]))}else e.attr("rotation",c);e.attr("scale",[n*r,n*r])}if(!i.ignore){var d,f,p,g;i.attr("position",l);var m=i.__labeldistance,v=m[0]*n,y=m[1]*n,x=r/2,_=[(h=a.tangentat(x))[1],-h[0]],w=a.pointat(x);0<_[1]&&(_[0]=-_[0],_[1]=-_[1]);var b,s=h[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var m=-math.atan2(h[1],h[0]);l[0]=t&&(0===e?0:n[e-1][0])a&&(e[1-n]=e[n]+c.sign*a),e}function lb(t,e){var i=t[e]-t[1-e];return{span:math.abs(i),sign:0o*(1-h[0])?(l="jump",r=s-o*(1-h[2])):0<=(r=s-o*h[1])&&(r=s-o*(1-h[1]))<=0&&(r=0),(r*=e.axisexpandwidth/u)?sb(r,n,a,"all"):l="none";else{o=n[1]-n[0];(n=[db(0,a[1]*s/o-o/2)])[1]=cb(a[1],n[0]+o),n[0]=n[1]-o}return{axisexpandwindow:n,behavior:l}}},lh.register("parallel",{create:function(n,o){var a=[];return n.eachcomponent("parallel",function(t,e){var i=new vb(t,n,o);i.name="parallel_"+e,i.resize(t,o),(t.coordinatesystem=i).model=t,a.push(i)}),n.eachseries(function(t){if("parallel"===t.get("coordinatesystem")){var e=n.querycomponents({maintype:"parallel",index:t.get("parallelindex"),id:t.get("parallelid")})[0];t.coordinatesystem=e.coordinatesystem}}),a}});var xb=ku.extend({type:"baseparallelaxis",axis:null,activeintervals:[],getareaselectstyle:function(){return ha([["fill","color"],["linewidth","borderwidth"],["stroke","bordercolor"],["width","width"],["opacity","opacity"]])(this.getmodel("areaselectstyle"))},setactiveintervals:function(t){var e=this.activeintervals=k(t);if(e)for(var i=e.length-1;0<=i;i--)bl(e[i])},getactivestate:function(t){var e=this.activeintervals;if(!e.length)return"normal";if(null==t||isnan(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=e.length;nn.getwidth()||i<0||i>n.getheight()}(t,e)){var n=t._zr,o=t._covers,a=fb(t,e,i);if(!t._dragging)for(var r=0;rf&&(f=m.depth),g.setlayout({depth:v?m.depth:c},!0),"vertical"===a?g.setlayout({dy:i},!0):g.setlayout({dx:i},!0);for(var y=0;y "))},preventincremental:function(){return!!this.get("effect.show")},getprogressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getprogressivethreshold:function(){var t=this.option.progressivethreshold;return null==t?this.option.large?2e4:this.get("progressivethreshold"):t},defaultoption:{coordinatesystem:"geo",zlevel:0,z:2,legendhoverlink:!0,hoveranimation:!0,xaxisindex:0,yaxisindex:0,symbol:["none","none"],symbolsize:[10,10],geoindex:0,effect:{show:!1,period:4,constantspeed:0,symbol:"circle",symbolsize:3,loop:!0,traillength:.2},large:!1,largethreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},linestyle:{opacity:.5}}});function bm(t,e,i){ci.call(this),this.add(this.createline(t,e,i)),this._updateeffectsymbol(t,e)}var sm=bm.prototype;function mm(t,e,i){ci.call(this),this._createpolyline(t,e,i)}sm.createline=function(t,e,i){return new ww(t,e,i)},sm._updateeffectsymbol=function(t,e){var i=t.getitemmodel(e).getmodel("effect"),n=i.get("symbolsize"),o=i.get("symbol");l(n)||(n=[n,n]);var a=i.get("color")||t.getitemvisual(e,"color"),r=this.childat(1);this._symboltype!==o&&(this.remove(r),(r=wg(o,-.5,-.5,1,1,a)).z2=100,r.culling=!0,this.add(r)),r&&(r.setstyle("shadowcolor",a),r.setstyle(i.getitemstyle(["color"])),r.attr("scale",n),r.setcolor(a),r.attr("scale",n),this._symboltype=o,this._symbolscale=n,this._updateeffectanimation(t,i,e))},sm._updateeffectanimation=function(e,t,i){var n=this.childat(1);if(n){var o=this,a=e.getitemlayout(i),r=1e3*t.get("period"),s=t.get("loop"),l=t.get("constantspeed"),u=w(t.get("delay"),function(t){return t/e.count()*r/3}),h="function"==typeof u;if(n.ignore=!0,this.updateanimationpoints(n,a),0e);r++);r=math.min(r-1,o-2)}wt(t.position,i[r],i[r+1],(e-n[r])/(n[r+1]-n[r]));var s=i[r+1][0]-i[r][0],l=i[r+1][1]-i[r][1];t.rotation=-math.atan2(l,s)-math.pi/2,this._lastframe=r,this._lastframepercent=e,t.ignore=!1}},w(tm,bm);var dm=cs({shape:{polyline:!1,curveness:0,segs:[]},buildpath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(var o=0;o=e[0]&&t<=e[1]}}(y,e.option.range):function(e,n,o){var i=e[1]-e[0],a=(n=o(n,function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}})).length,r=0;return function(t){for(var e=r;e=e.y&&t[1]<=e.y+e.height:i.contain(i.tolocalcoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointtodata:function(t){var e=this.getaxis();return[e.coordtodata(e.tolocalcoord(t["horizontal"===e.orient?0:1]))]},datatopoint:function(t){var e=this.getaxis(),i=this.getrect(),n=[],o="horizontal"===e.orient?0:1;return t instanceof array&&(t=t[0]),n[o]=e.toglobalcoord(e.datatocoord(+t)),n[1-o]=0==o?i.y+i.height/2:i.x+i.width/2,n}}).dimensions});var si=["axisline","axisticklabel","axisname"],li=["splitarea","splitline"],ui=mv.extend({type:"singleaxis",axispointerclass:"singleaxispointer",render:function(e,t,i,n){var o=this.group;o.removeall();var a=this._axisgroup;this._axisgroup=new ci;var r=ri(e),s=new qm(e,r);r(si,s.add,s),o.add(this._axisgroup),o.add(s.getgroup()),r(li,function(t){e.get(t+".show")&&this["_"+t](e)},this),ml(a,this._axisgroup,e),ui.supercall(this,"render",e,t,i,n)},remove:function(){bv(this)},_splitline:function(t){var e=t.axis;if(!e.scale.isblank()){var i=t.getmodel("splitline"),n=i.getmodel("linestyle"),o=n.get("width"),a=n.get("color");a=a instanceof array?a:[a];for(var r=t.coordinatesystem.getrect(),s=e.ishorizontal(),l=[],u=0,h=e.gettickscoords({tickmodel:i}),c=[],d=[],f=0;fr)return!0;if(a){var s=fv(t).seriesdatacount,l=n.getextent();return math.abs(l[0]-l[1])/s>r}return!1},makeeloption:function(t,e,i,n,o){},createpointerel:function(t,e,i,n){var o=e.pointer;if(o){var a=ai(t).pointerel=new bl[o.type](di(e.pointer));t.add(a)}},createlabelel:function(t,e,i,n){if(e.label){var o=ai(t).labelel=new rs(di(e.label));t.add(o),pi(o,n)}},updatepointerel:function(t,e,i){var n=ai(t).pointerel;n&&e.pointer&&(n.setstyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updatelabelel:function(t,e,i,n){var o=ai(t).labelel;o&&(o.setstyle(e.label.style),i(o,{shape:e.label.shape,position:e.label.position}),pi(o,n))},_renderhandle:function(t){if(!this._dragging&&this.updatehandletransform){var e,i=this._axispointermodel,n=this._api.getzr(),o=this._handle,a=i.getmodel("handle"),r=i.get("status");if(!a.get("show")||!r||"hide"===r)return o&&n.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=yl(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){xt(t.event)},onmousedown:ci(this._onhandledragmove,this,0,0),drift:ci(this._onhandledragmove,this),ondragend:ci(this._onhandledragend,this)}),n.add(o)),oi(o,i,!1);o.setstyle(a.getitemstyle(null,["color","bordercolor","borderwidth","opacity","shadowcolor","shadowblur","shadowoffsetx","shadowoffsety"]));var s=a.get("size");l(s)||(s=[s,s]),o.attr("scale",[s[0]/2,s[1]/2]),kc(this,"_dodispatchaxispointer",a.get("throttle")||0,"fixrate"),this._movehandletovalue(t,e)}},_movehandletovalue:function(t,e){ki(this._axispointermodel,!e&&this._moveanimation,this._handle,ni(this.gethandletransform(t,this._axismodel,this._axispointermodel)))},_onhandledragmove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updatehandletransform(ni(i),[t,e],this._axismodel,this._axispointermodel);this._payloadinfo=n,i.stopanimation(),i.attr(ni(n)),ai(i).lastprop=null,this._dodispatchaxispointer()}},_dodispatchaxispointer:function(){if(this._handle){var t=this._payloadinfo,e=this._axismodel;this._api.dispatchaction({type:"updateaxispointer",x:t.cursorpoint[0],y:t.cursorpoint[1],tooltipoption:t.tooltipoption,axesinfo:[{axisdim:e.axis.dim,axisindex:e.componentindex}]})}},_onhandledragend:function(t){if(this._dragging=!1,this._handle){var e=this._axispointermodel.get("value");this._movehandletovalue(e),this._api.dispatchaction({type:"hidetip"})}},gethandletransform:null,updatehandletransform:null,clear:function(t){this._lastvalue=null,this._laststatus=null;var e=t.getzr(),i=this._group,n=this._handle;e&&i&&(this._lastgraphickey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadinfo=null)},doclear:function(){},buildlabel:function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}}}).constructor=li);var hi=li.extend({makeeloption:function(t,e,i,n,o){var a=i.axis,r=a.grid,s=n.get("type"),l=zi(r,a).getotheraxis(a).getglobalextent(),u=a.toglobalcoord(a.datatocoord(e,!0));if(s&&"none"!==s){var h=ri(n),c=ui[s](a,u,l);c.style=h,t.graphickey=c.type,t.pointer=c}vi(e,t,_v(r.model,i),i,n,o)},gethandletransform:function(t,e,i){var n=_v(e.axis.grid.model,e,{labelinside:!1});return n.labelmargin=i.get("handle.margin"),{position:bi(e.axis,t,n),rotation:n.rotation+(n.labeldirection<0?math.pi:0)}},updatehandletransform:function(t,e,i,n){var o=i.axis,a=o.grid,r=o.getglobalextent(!0),s=zi(a,o).getotheraxis(o).getglobalextent(),l="x"===o.dim?0:1,u=t.position;u[l]+=e[l],u[l]=math.min(r[1],u[l]),u[l]=math.max(r[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];return{position:u,rotation:t.rotation,cursorpoint:c,tooltipoption:[{verticalalign:"middle"},{align:"center"}][l]}}});function zi(t,e){var i={};return i[e.dim+"axisindex"]=e.index,t.getcartesian(i)}var ui={line:function(t,e,i){return{type:"line",subpixeloptimize:!0,shape:gi([e,i[0]],[e,i[1]],xi(t))}},shadow:function(t,e,i){var n=math.max(1,t.getbandwidth()),o=i[1]-i[0];return{type:"rect",shape:fi([e-n/2,i[0]],[n,o],xi(t))}}};function xi(t){return"x"===t.dim?0:1}mv.registeraxispointerclass("cartesianaxispointer",hi),yf(function(t){if(t){t.axispointer&&0!==t.axispointer.length||(t.axispointer={});var e=t.axispointer.link;e&&!l(e)&&(t.axispointer.link=[e])}}),xf(ld.processor.statistic,function(t,e){t.getcomponent("axispointer").coordsysaxesinfo=cv(t,e)}),_f({type:"updateaxispointer",event:"updateaxispointer",update:":updateaxispointer"},function(t,e,i){var n=t.currtrigger,r=[t.x,t.y],o=t,a=t.dispatchaction||a(i.dispatchaction,i),s=e.getcomponent("axispointer").coordsysaxesinfo;if(s){xi(r)&&(r=ci({seriesindex:o.seriesindex,dataindex:o.dataindex},e).point);var l=xi(r),u=o.axesinfo,h=s.axesinfo,c="leave"===n||xi(r),d={},f={},p={list:[],map:{}},g={showpointer:fi(mi,f),showtooltip:fi(vi,p)};di(s.coordsysmap,function(t,e){var a=l||t.containpoint(r);di(s.coordsysaxesinfo[e],function(t,e){var i=t.axis,n=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisdim&&e.axis.model.componentindex===n.axisindex)return n}}(u,t);if(!c&&a&&(!u||n)){var o=n&&n.value;null!=o||l||(o=i.pointtodata(r)),null!=o&&gi(t,o,g,!1,d)}})});var m={};return di(h,function(o,t){var a=o.linkgroup;a&&!f[t]&&di(a.axesinfo,function(t,e){var i=f[e];if(t!==o&&i){var n=i.value;a.mapper&&(n=o.axis.scale.parse(a.mapper(n,yi(t),yi(o)))),m[o.key]=n}})}),di(m,function(t,e){gi(h[e],t,g,!0,d)}),function(o,t,e){var a=e.axesinfo=[];di(t,function(t,e){var i=t.axispointermodel.option,n=o[e];n?(t.usehandle||(i.status="show"),i.value=n.value,i.seriesdataindices=(n.payloadbatch||[]).slice()):t.usehandle||(i.status="hide"),"show"===i.status&&a.push({axisdim:t.axis.dim,axisindex:t.axis.model.componentindex,value:i.value})})}(f,h,d),function(t,e,i,n){if(xi(e)||!t.list.length)return n({type:"hidetip"});var o=((t.list[0].databyaxis[0]||{}).seriesdataindices||[])[0]||{};n({type:"showtip",escapeconnect:!0,x:e[0],y:e[1],tooltipoption:i.tooltipoption,position:i.position,dataindexinside:o.dataindexinside,dataindex:o.dataindex,seriesindex:o.seriesindex,databycoordsys:t.list})}(p,r,t,a),function(t,e,i){var n=i.getzr(),o="axispointerlasthighlights",a=pi(n)[o]||{},r=pi(n)[o]={};di(t,function(t,e){var i=t.axispointermodel.option;"show"===i.status&&di(i.seriesdataindices,function(t){var e=t.seriesindex+" | "+t.dataindex;r[e]=t})});var s=[],l=[];r(a,function(t,e){r[e]||l.push(t)}),r(r,function(t,e){a[e]||s.push(t)}),l.length&&i.dispatchaction({type:"downplay",escapeconnect:!0,batch:l}),s.length&&i.dispatchaction({type:"highlight",escapeconnect:!0,batch:s})}(h,0,i),d}});var yi=["x","y"],ji=["width","height"],qi=li.extend({makeeloption:function(t,e,i,n,o){var a=i.axis,r=a.coordinatesystem,s=ji(r,1-$i(a)),l=r.datatopoint(e)[0],u=n.get("type");if(u&&"none"!==u){var h=ri(n),c=ki[u](a,l,s);c.style=h,t.graphickey=c.type,t.pointer=c}vi(e,t,ri(i),i,n,o)},gethandletransform:function(t,e,i){var n=ri(e,{labelinside:!1});return n.labelmargin=i.get("handle.margin"),{position:bi(e.axis,t,n),rotation:n.rotation+(n.labeldirection<0?math.pi:0)}},updatehandletransform:function(t,e,i,n){var o=i.axis,a=o.coordinatesystem,r=$i(o),s=ji(a,r),l=t.position;l[r]+=e[r],l[r]=math.min(s[1],l[r]),l[r]=math.max(s[0],l[r]);var u=ji(a,1-r),h=(u[1]+u[0])/2,c=[h,h];return c[r]=l[r],{position:l,rotation:t.rotation,cursorpoint:c,tooltipoption:{verticalalign:"middle"}}}}),ki={line:function(t,e,i){return{type:"line",subpixeloptimize:!0,shape:gi([e,i[0]],[e,i[1]],$i(t))}},shadow:function(t,e,i){var n=t.getbandwidth(),o=i[1]-i[0];return{type:"rect",shape:fi([e-n/2,i[0]],[n,o],$i(t))}}};function $i(t){return t.ishorizontal()?0:1}function ji(t,e){var i=t.getrect();return[i[yi[e]],i[yi[e]]+i[ji[e]]]}mv.registeraxispointerclass("singleaxispointer",qi),af({type:"single"});var qi=sc.extend({type:"series.themeriver",dependencies:["singleaxis"],namemap:null,init:function(t){qi.superapply(this,"init",arguments),this.legendvisualprovider=new qv(a(this.getdata,this),a(this.getrawdata,this))},fixdata:function(t){var e=t.length,i={},n=ta(t,function(t){return i.hasownproperty(t[0])||(i[t[0]]=-1),t[2]}),o=[];n.buckets.each(function(t,e){o.push({name:e,datalist:t})});for(var a=o.length,r=0;rmath.pi/2?"right":"left"):x&&"center"!==x?"left"===x?(f=u.r0+y,p>math.pi/2&&(x="right")):"right"===x&&(f=u.r-y,p>math.pi/2&&(x="left")):(f=(u.r+u.r0)/2,x="center"),d.attr("style",{text:l,textalign:x,textverticalalign:m("verticalalign")||"middle",opacity:m("opacity")});var _=f*g+u.cx,w=f*m+u.cy;d.attr("position",[_,w]);var b=m("rotate"),s=0;function m(t){var e=a.get(t);return null==e?o.get(t):e}"radial"===b?(s=-p)<-math.pi/2&&(s+=math.pi):"tangential"===b?(s=math.pi/2-p)>math.pi/2?s-=math.pi:s<-math.pi/2&&(s+=math.pi):"number"==typeof b&&(s=b*math.pi/180),d.attr("rotation",s)},st._initevents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");function o(){r.onemphasis(n)}function a(){r.onnormal()}var r=this;i.isanimationenabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",function(){r.ondownplay()}).on("highlight",function(){r.onhighlight()})},w(rt,ci);_c.extend({type:"sunburst",init:function(){},render:function(o,a,t,e){var n=this;this.seriesmodel=o,this.api=t,this.ecmodel=a;var r=o.getdata(),s=r.tree.root,i=o.getviewroot(),l=this.group,u=o.get("renderlabelforzerodata"),h=[];i.eachnode(function(t){h.push(t)});var c=this._oldchildren||[];if(function(i,n){if(0===i.length&&0===n.length)return;function t(t){return t.getid()}function e(t,e){!function(t,e){u||!t||t.getvalue()||(t=null);if(t!==s&&e!==s)if(e&&e.piece)t?(e.piece.updatedata(!1,t,"normal",o,a),r.setitemgraphicel(t.dataindex,e.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(e);else if(t){var i=new rt(t,o,a);l.add(i),r.setitemgraphicel(t.dataindex,i)}}(null==t?null:i[t],null==e?null:n[e])}new kf(n,i,t,t).add(e).update(e).remove(t(e,null)).execute()}(h,c),function(t,e){if(0=i.r0}}});var lt="sunburstroottonode";_f({type:lt,update:"updateview"},function(o,t){t.eachcomponent({maintype:"series",subtype:"sunburst",query:o},function(t,e){var i=zx(o,[lt],t);if(i){var n=t.getviewroot();n&&(o.direction=xx(n,i.node)?"rollup":"drilldown"),t.resetviewroot(i.node)}})});var ut="sunbursthighlight";_f({type:ut,update:"updateview"},function(n,t){t.eachcomponent({maintype:"series",subtype:"sunburst",query:n},function(t,e){var i=zx(n,[ut],t);i&&(n.highlight=i.node)})});_f({type:"sunburstunhighlight",update:"updateview"},function(i,t){t.eachcomponent({maintype:"series",subtype:"sunburst",query:i},function(t,e){i.unhighlight=!0})});var ht=math.pi/180;function ct(t,e){if("function"==typeof e)return t.sort(e);var n="asc"===e;return t.sort(function(t,e){var i=(t.getvalue()-e.getvalue())*(n?1:-1);return 0==i?(t.dataindex-e.dataindex)*(n?-1:1):i})}function dt(a,r){return r=r||[0,0],o(["x","y"],function(t,e){var i=this.getaxis(t),n=r[e],o=a[e]/2;return"category"===i.type?i.getbandwidth():math.abs(i.datatocoord(n-o)-i.datatocoord(n+o))},this)}sf(t(iy,"sunburst")),bf(t(function(t,e,c,i){e.eachseriesbytype(t,function(t){var e=t.get("center"),i=t.get("radius");l(i)||(i=[0,i]),l(e)||(e=[e,e]);var n=c.getwidth(),o=c.getheight(),h=math.min(n,o),c=el(e[0],n),d=el(e[1],o),f=el(i[0],h/2),a=el(i[1],h/2),r=-t.get("startangle")*ht,p=t.get("minangle")*ht,g=t.getdata().tree.root,s=t.getviewroot(),m=s.depth,l=t.get("sort");null!=l&&!function e(t,i){var n=t.children||[];t.children=ct(n,i);n.length&&r(t.children,function(t){e(t,i)})}(s,l);var u=0;r(s.children,function(t){isnan(t.getvalue())||u++});var v=s.getvalue(),y=math.pi/(v||u)*2,x=0t[1]&&t.reverse(),{coordsys:{type:"polar",cx:o.cx,cy:o.cy,r:t[1],r0:t[0]},api:{coord:a(function(t){var e=a.datatoradius(t[0]),i=r.datatoangle(t[1]),n=o.coordtopoint([e,i]);return n.push(e,i*math.pi/180),n}),size:a(gt,o)}}},calendar:function(i){var t=i.getrect(),e=i.getrangeinfo();return{coordsys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellwidth:i.getcellwidth(),cellheight:i.getcellheight(),rangeinfo:{start:e.start,end:e.end,weeks:e.weeks,daycount:e.allday}},api:{coord:function(t,e){return i.datatopoint(t,e)}}}}};function st(t,e,i,n,o){null==i[t]||o||(e[t]=i[t],i[t]=n[t])}function mt(a,r,e,t){var i=a.get("renderitem"),n=a.coordinatesystem,o={};n&&(o=n.preparecustoms?n.preparecustoms():bt[n.type](n));var s,l,u,h,c,d=d({getwidth:t.getwidth,getheight:t.getheight,getzr:t.getzr,getdevicepixelratio:t.getdevicepixelratio,value:function(t,e){return null==e&&(e=s),r.get(r.getdimension(t||0),e)},style:function(t,e){null==e&&(e=s),g(e);var i=l.getmodel(vt).getitemstyle();null!=c&&(i.fill=c);var n=r.getitemvisual(e,"opacity");null!=n&&(i.opacity=n);var o=t?ct(t,u):u;return nl(i,o,null,{autocolor:c,isrecttext:!0}),i.text=o.getshallow("show")?h(a.getformattedlabel(e,"normal"),ug(r,e)):null,t&<(i,t),i},styleemphasis:function(t,e){null==e&&(e=s),g(e);var i=l.getmodel(yt).getitemstyle(),n=t?ct(t,h):h;return nl(i,n,null,{isrecttext:!0},!0),i.text=n.getshallow("show")?z(a.getformattedlabel(e,"emphasis"),a.getformattedlabel(e,"normal"),ug(r,e)):null,t&<(i,t),i},visual:function(t,e){return null==e&&(e=s),r.getitemvisual(e,t)},barlayout:function(t){if(n.getbaseaxis){return function(t){var e=[],i=t.axis;if("category"===i.type){for(var n=i.getbandwidth(),o=0;oe[1]&&e.reverse();var i=t.getextent(),n=math.pi/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startangle:-i[0]*n,endangle:-i[1]*n,clockwise:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,o=i*i+n*n,a=this.r,r=this.r0;return o<=a*a&&r*r<=o}}}};var gt=ku.extend({type:"polaraxis",axis:null,getcoordsysmodel:function(){return this.ecmodel.querycomponents({maintype:"polar",index:this.option.polarindex,id:this.option.polarid})[0]}});m(gt.prototype,dg);var ft={splitnumber:5};function wt(t,e){return e.type||(e.data?"category":"value")}function ht(t,e){var i=this,n=i.getangleaxis(),o=i.getradiusaxis();if(n.scale.setextent(1/0,-1/0),o.scale.setextent(1/0,-1/0),t.eachseries(function(t){if(t.coordinatesystem===i){var e=t.getdata();r(e.mapdimension("radius",!0),function(t){o.scale.unionextentfromdata(e,pp(e,t))}),r(e.mapdimension("angle",!0),function(t){n.scale.unionextentfromdata(e,pp(e,t))})}}),rg(n.scale,n.model),rg(o.scale,o.model),"category"===n.type&&!n.onband){var a=n.getextent(),r=360/n.scale.count();n.inverse?a[1]+=r:a[1]-=r,n.setextent(a[0],a[1])}}function zt(t,e){if(t.type=e.get("type"),t.scale=sg(e),t.onband=e.get("boundarygap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleaxis"===e.maintype){t.inverse^=e.get("clockwise");var i=e.get("startangle");t.setextent(i,i+(t.inverse?-360:360))}(e.axis=t).model=e}gm("angle",gt,wt,{startangle:90,clockwise:!0,splitnumber:12,axislabel:{rotate:!1}}),gm("radius",gt,wt,ft),tf({type:"polar",dependencies:["polaraxis","angleaxis"],coordinatesystem:null,findaxismodel:function(t){var e;return this.ecmodel.eachcomponent(t,function(t){t.getcoordsysmodel()===this&&(e=t)},this),e},defaultoption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}}),lh.register("polar",{dimensions:vt.prototype.dimensions,create:function(i,s){var l=[];return i.eachcomponent("polar",function(t,e){var i=new vt(e);i.update=ht;var n=i.getradiusaxis(),o=i.getangleaxis(),a=t.findaxismodel("radiusaxis"),r=t.findaxismodel("angleaxis");zt(n,a),zt(o,r),function(t,e,i){var n=e.get("center"),o=i.getwidth(),a=i.getheight();t.cx=el(n[0],o),t.cy=el(n[1],a);var r=t.getradiusaxis(),s=math.min(o,a)/2,l=e.get("radius");null==l?l=[0,"100%"]:l(l)||(l=[0,l]),l=[el(l[0],s),el(l[1],s)],r.inverse?r.setextent(l[1],l[0]):r.setextent(l[0],l[1])}(i,t,s),l.push(i),(t.coordinatesystem=i).model=t}),i.eachseries(function(t){if("polar"===t.get("coordinatesystem")){var e=i.querycomponents({maintype:"polar",index:t.get("polarindex"),id:t.get("polarid")})[0];t.coordinatesystem=e.coordinatesystem}}),l}});var ut=["axisline","axislabel","axistick","minortick","splitline","minorsplitline","splitarea"];function xt(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordtopoint([e[0],i]),o=t.coordtopoint([e[1],i]);return{x1:n[0],y1:n[1],x2:o[0],y2:o[1]}}function yt(t){return t.getradiusaxis().inverse?0:1}function jt(t){var e=t[0],i=t[t.length-1];e&&i&&math.abs(math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}mv.extend({type:"angleaxis",axispointerclass:"polaraxispointer",render:function(e,t){if(this.group.removeall(),e.get("show")){var i=e.axis,n=i.polar,o=n.getradiusaxis().getextent(),a=i.gettickscoords(),r=i.getminortickscoords(),s=o(i.getviewlabels(),function(t){return(t=k(t)).coord=i.datatocoord(t.tickvalue),t});jt(s),jt(a),r(ut,function(t){!e.get(t+".show")||i.scale.isblank()&&"axisline"!==t||this["_"+t](e,n,a,r,o,s)},this)}},_axisline:function(t,e,i,n,o){var a,r=t.getmodel("axisline.linestyle"),s=yt(e),l=s?0:1;(a=0===o[l]?new yr({shape:{cx:e.cx,cy:e.cy,r:o[s]},style:r.getlinestyle(),z2:1,silent:!0}):new kr({shape:{cx:e.cx,cy:e.cy,r:o[s],r0:o[l]},style:r.getlinestyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axistick:function(t,e,i,n,o){var a=t.getmodel("axistick"),r=(a.get("inside")?-1:1)*a.get("length"),s=o[yt(e)],l=o(i,function(t){return new ls({shape:xt(e,[s,s+r],t.coord)})});this.group.add(rs(l,{style:d(a.getmodel("linestyle").getlinestyle(),{stroke:t.get("axisline.linestyle.color")})}))},_minortick:function(t,e,i,n,o){if(n.length){for(var a=t.getmodel("axistick"),r=t.getmodel("minortick"),s=(a.get("inside")?-1:1)*r.get("length"),l=o[yt(e)],u=[],h=0;hr?"left":"right",u=math.abs(a[1]-s)/o<.3?"middle":a[1]>s?"top":"bottom";p&&p[n]&&p[n].textstyle&&(i=new cl(p[n].textstyle,g,g.ecmodel));var h=new ur({silent:qm.islabelsilent(c)});this.group.add(h),nl(h.style,i,{x:a[0],y:a[1],textfill:i.gettextcolor()||c.get("axisline.linestyle.color"),text:t.formattedlabel,textalign:l,textverticalalign:u}),v&&(h.eventdata=qm.makeaxiseventdatabase(c),h.eventdata.targettype="axislabel",h.eventdata.value=t.rawlabel)},this)},_splitline:function(t,e,i,n,o){var a=t.getmodel("splitline").getmodel("linestyle"),r=a.get("color"),s=0;r=r instanceof array?r:[r];for(var l=[],u=0;um?"left":"right",h=math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalalign:h}}(e,i,0,s,d))}});var jt={line:function(t,e,i,n,o){return"angle"===t.dim?{type:"line",shape:gi(e.coordtopoint([n[0],i]),e.coordtopoint([n[1],i]))}:{type:"circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,o){var a=math.max(1,t.getbandwidth()),r=math.pi/180;return"angle"===t.dim?{type:"sector",shape:wi(e.cx,e.cy,n[0],n[1],(-i-a/2)*r,(a/2-i)*r)}:{type:"sector",shape:wi(e.cx,e.cy,i-a/2,i+a/2,0,2*math.pi)}}};function qt(n,t){t.update="updateview",_f(t,function(t,e){var i={};return e.eachcomponent({maintype:"geo",query:t},function(e){e[n](t.name),r(e.coordinatesystem.regions,function(t){i[t.name]=e.isselected(t.name)||!1})}),{selected:i,name:t.name}})}mv.registeraxispointerclass("polaraxispointer",$t),bf(t(function(t,e,i){var n={},o=function(t){var g={};r(t,function(t,e){var i=t.getdata(),n=t.coordinatesystem,o=n.getbaseaxis(),a=rt(n,o),r=o.getextent(),s="category"===o.type?o.getbandwidth():math.abs(r[1]-r[0])/i.count(),l=g[a]||{bandwidth:s,remainedwidth:s,autowidthcount:0,categorygap:"20%",gap:"30%",stacks:{}},u=l.stacks;g[a]=l;var h=ot(t);u[h]||l.autowidthcount++,u[h]=u[h]||{width:0,maxwidth:0};var c=el(t.get("barwidth"),s),d=el(t.get("barmaxwidth"),s),f=t.get("bargap"),p=t.get("barcategorygap");c&&!u[h].width&&(c=math.min(l.remainedwidth,c),u[h].width=c,l.remainedwidth-=c),d&&(u[h].maxwidth=d),null!=f&&(l.gap=f),null!=p&&(l.categorygap=p)});var d={};return r(g,function(t,i){d[i]={};var e=t.stacks,n=t.bandwidth,o=el(t.categorygap,n),a=el(t.gap,1),r=t.remainedwidth,s=t.autowidthcount,l=(r-o)/(s+(s-1)*a);l=math.max(l,0),r(e,function(t,e){var i=t.maxwidth;i&&i=n.start.time&&i.timea.end.time&&t.reverse(),t},_getrangeinfo:function(t){var e;(t=[this.getdateinfo(t[0]),this.getdateinfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=math.floor(t[1].time/864e5)-math.floor(t[0].time/864e5)+1,n=new date(t[0].time),o=n.getdate(),a=t[1].date.getdate();n.setdate(o+i-1);var r=n.getdate();if(r!==a)for(var s=0n.weeks||0===t&&en.lweek)return!1;var o=7*(t-1)-n.fweek+e,a=new date(n.start.time);return a.setdate(n.start.d+o),this.getdateinfo(a)}},ta.dimensions=ta.prototype.dimensions,ta.getdimensionsinfo=ta.prototype.getdimensionsinfo,ta.create=function(i,n){var o=[];return i.eachcomponent("calendar",function(t){var e=new ta(t,i,n);o.push(e),t.coordinatesystem=e}),i.eachseries(function(t){"calendar"===t.get("coordinatesystem")&&(t.coordinatesystem=o[t.get("calendarindex")||0])}),o},lh.register("calendar",ta);var ia=ku.extend({type:"calendar",coordinatesystem:null,defaultoption:{zlevel:0,z:2,left:80,top:60,cellsize:20,orient:"horizontal",splitline:{show:!0,linestyle:{color:"#000",width:1,type:"solid"}},itemstyle:{color:"#fff",borderwidth:1,bordercolor:"#ccc"},daylabel:{show:!0,firstday:0,position:"start",margin:"50%",namemap:"en",color:"#000"},monthlabel:{show:!0,position:"start",margin:5,align:"center",namemap:"en",formatter:null,color:"#000"},yearlabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontfamily:"sans-serif",fontweight:"bolder",fontsize:20}},init:function(t,e,i,n){var o=iu(t);ia.superapply(this,"init",arguments),na(t,o)},mergeoption:function(t,e){ia.superapply(this,"mergeoption",arguments),na(this.option,t)}});function na(t,e){var i=t.cellsize;l(i)?1===i.length&&(i[1]=i[0]):i=t.cellsize=[i,i];var n=o([0,1],function(t){return function(t,e){return null!=t[xu[e][0]]||null!=t[xu[e][1]]&&null!=t[xu[e][2]]}(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});mu(t,e,{type:"box",ignoresize:n})}var oa={en:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],cn:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},aa={en:["s","m","t","w","t","f","s"],cn:["日","一","二","三","四","五","六"]};af({type:"calendar",_tlpoints:null,_blpoints:null,_firstdayofmonth:null,_firstdaypoints:null,render:function(t,e,i){var n=this.group;n.removeall();var o=t.coordinatesystem,a=o.getrangeinfo(),r=o.getorient();this._renderdayrect(t,a,n),this._renderlines(t,a,r,n),this._renderyeartext(t,a,r,n),this._rendermonthtext(t,r,n),this._renderweektext(t,a,r,n)},_renderdayrect:function(t,e,i){for(var n=t.coordinatesystem,o=t.getmodel("itemstyle").getitemstyle(),a=n.getcellwidth(),r=n.getcellheight(),s=e.start.time;s<=e.end.time;s=n.getnextnday(s,1).time){var l=n.datatorect([s],!1).tl,u=new rs({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});i.add(u)}},_renderlines:function(i,t,n,o){var a=this,r=i.coordinatesystem,s=i.getmodel("splitline.linestyle").getlinestyle(),l=i.get("splitline.show"),e=s.linewidth;this._tlpoints=[],this._blpoints=[],this._firstdayofmonth=[],this._firstdaypoints=[];for(var u=t.start,h=0;u.time<=t.end.time;h++){d(u.formateddate),0===h&&(u=r.getdateinfo(t.start.y+"-"+t.start.m));var c=u.date;c.setmonth(c.getmonth()+1),u=r.getdateinfo(c)}function d(t){a._firstdayofmonth.push(r.getdateinfo(t)),a._firstdaypoints.push(r.datatorect([t],!1).tl);var e=a._getlinepointsofoneweek(i,t,n);a._tlpoints.push(e[0]),a._blpoints.push(e[e.length-1]),l&&a._drawsplitline(e,s,o)}d(r.getnextnday(t.end.time,1).formateddate),l&&this._drawsplitline(a._getedgespoints(a._tlpoints,e,n),s,o),l&&this._drawsplitline(a._getedgespoints(a._blpoints,e,n),s,o)},_getedgespoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===i?0:1;return n[0][o]=n[0][o]-e/2,n[1][o]=n[1][o]+e/2,n},_drawsplitline:function(t,e,i){var n=new ts({z2:20,shape:{points:t},style:e});i.add(n)},_getlinepointsofoneweek:function(t,e,i){var n=t.coordinatesystem;e=n.getdateinfo(e);for(var o=[],a=0;a<7;a++){var r=n.getnextnday(e.time,a),s=n.datatorect([r.time],!1);o[2*r.day]=s.tl,o[2*r.day+1]=s["horizontal"===i?"bl":"tr"]}return o},_formatterlabel:function(t,e){return"string"==typeof t&&t?uu(t,e):"function"==typeof t?t(e):e.namemap},_yeartextpositioncontrol:function(t,e,i,n,o){e=e.slice();var a=["center","bottom"];"bottom"===n?(e[1]+=o,a=["center","top"]):"left"===n?e[0]-=o:"right"===n?(e[0]+=o,a=["center","top"]):e[1]-=o;var r=0;return"left"!==n&&"right"!==n||(r=math.pi/2),{rotation:r,position:e,style:{textalign:a[0],textverticalalign:a[1]}}},_renderyeartext:function(t,e,i,n){var o=t.getmodel("yearlabel");if(o.get("show")){var a=o.get("margin"),r=o.get("position");r=r||("horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===i?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=o.get("formatter"),p={start:e.start.y,end:e.end.y,namemap:d},g=this._formatterlabel(f,p),m=new ur({z2:30});nl(m.style,o,{text:g}),m.attr(this._yeartextpositioncontrol(m,c[r],i,r,a)),n.add(m)}},_monthtextpositioncontrol:function(t,e,i,n,o){var a="left",r="top",s=t[0],l=t[1];return"horizontal"===i?(l+=o,e&&(a="center"),"start"===n&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===n&&(a="right")),{x:s,y:l,textalign:a,textverticalalign:r}},_rendermonthtext:function(t,e,i){var n=t.getmodel("monthlabel");if(n.get("show")){var o=n.get("namemap"),a=n.get("margin"),r=n.get("position"),s=n.get("align"),l=[this._tlpoints,this._blpoints];e(o)&&(o=oa[o.touppercase()]||[]);var u="start"===r?0:1,h="horizontal"===e?0:1;a="start"===r?-a:a;for(var c="center"===s,d=0;dd.getheight()&&(i.textposition="top",a=!0);var r=a?-5-n.height:p+8;o+n.width/2>d.getwidth()?(i.textposition=["100%",r],i.textalign="right"):o-n.width/2<0&&(i.textposition=[0,r],i.textalign="left")}})}function t(t,e){var i,n=m[t],o=m[e],a=u[n],r=new cl(a,h,h.ecmodel);if(l&&null!=l.newtitle&&l.featurename===n&&(a.title=l.newtitle),n&&!o){if(function(t){return 0===t.indexof("my")}(n))i={model:r,onclick:r.option.onclick,featurename:n};else{var s=fa(n);if(!s)return;i=new s(r,c,d)}g[n]=i}else{if(!(i=g[o]))return;i.model=r,i.ecmodel=c,i.api=d}n||!o?r.get("show")&&!i.unusable?(function(o,a,t){var r=o.getmodel("iconstyle"),s=o.getmodel("emphasis.iconstyle"),e=a.geticons?a.geticons():o.get("icon"),l=o.get("title")||{};if("string"==typeof e){var i=e,n=l;l={},(e={})[t]=i,l[t]=n}var u=o.iconpaths={};r(e,function(t,e){var i=yl(t,{},{x:-p/2,y:-p/2,width:p,height:p});i.setstyle(r.getitemstyle()),i.hoverstyle=s.getitemstyle(),i.setstyle({text:l[e],textalign:s.get("textalign"),textborderradius:s.get("textborderradius"),textpadding:s.get("textpadding"),textfill:null});var n=h.getmodel("tooltip");n&&n.get("show")&&i.attr("tooltip",p({content:l[e],formatter:n.get("formatter",!0)||function(){return l[e]},formatterparams:{componenttype:"toolbox",name:e,title:l[e],$vars:["name","title"]},position:n.get("position",!0)||"bottom"},n.option)),$s(i),h.get("showtitle")&&(i.__title=l[e],i.on("mouseover",function(){var t=s.getitemstyle(),e="vertical"===h.get("orient")?null==h.get("right")?"right":"left":null==h.get("bottom")?"bottom":"top";i.setstyle({textfill:s.get("textfill")||t.fill||t.stroke||"#000",textbackgroundcolor:s.get("textbackgroundcolor"),textposition:s.get("textposition")||e})}).on("mouseout",function(){i.setstyle({textfill:null,textbackgroundcolor:null})})),i.trigger(o.get("iconstatus."+e)||"normal"),f.add(i),i.on("click",a(a.onclick,a,c,d,e)),u[e]=i})}(r,i,n),r.seticonstatus=function(t,e){var i=this.option,n=this.iconpaths;i.iconstatus=i.iconstatus||{},i.iconstatus[t]=e,n[t]&&n[t].trigger(e)},i.render&&i.render(r,c,d,l)):i.remove&&i.remove(c,d):i.dispose&&i.dispose(c,d)}},updateview:function(t,e,i,n){r(this._features,function(t){t.updateview&&t.updateview(t.model,e,i,n)})},remove:function(e,i){r(this._features,function(t){t.remove&&t.remove(e,i)}),this.group.removeall()},dispose:function(e,i){r(this._features,function(t){t.dispose&&t.dispose(e,i)})}});var ma=oc.toolbox.saveasimage;function va(t){this.model=t}va.defaultoption={show:!0,icon:"m4.7,22.9l29.3,45.5l54.7,23.4m4.6,43.6l4.6,58l53.8,58l53.8,43.6m29.2,45.1l29.2,0",title:ma.title,type:"png",connectedbackgroundcolor:"#fff",name:"",excludecomponents:["toolbox"],pixelratio:1,lang:ma.lang.slice()},va.prototype.unusable=!v.canvassupported,va.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getzr().painter.gettype()?"svg":i.get("type",!0)||"png",a=e.getconnecteddataurl({type:o,backgroundcolor:i.get("backgroundcolor",!0)||t.get("backgroundcolor")||"#fff",connectedbackgroundcolor:i.get("connectedbackgroundcolor"),excludecomponents:i.get("excludecomponents"),pixelratio:i.get("pixelratio")});if("function"!=typeof mouseevent||v.browser.ie||v.browser.edge)if(window.navigator.mssaveoropenblob){for(var r=atob(a.split(",")[1]),s=r.length,l=new uint8array(s);s--;)l[s]=r.charcodeat(s);var u=new blob([l]);window.navigator.mssaveoropenblob(u,n+"."+o)}else{var h=i.get("lang"),c='';window.open().document.write(c)}else{var d=document.createelement("a");d.download=n+"."+o,d.target="_blank",d.href=a;var f=new mouseevent("click",{view:document.defaultview,bubbles:!0,cancelable:!1});d.dispatchevent(f)}},da("saveasimage",va);var ya=oc.toolbox.magictype,xa="__ec_magictype_stack__";function _a(t){this.model=t}_a.defaultoption={show:!0,type:[],icon:{line:"m4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9m4.1,58h51.4",bar:"m6.7,22.9h10v48h-10v22.9zm24.9,13h10v35h-10v13zm43.2,2h10v46h-10v2zm3.1,58h53.7",stack:"m8.2,38.4l-8.4,4.1l30.6,15.3l60,42.5l-8.1-4.1l-21.5,11l8.2,38.4z m51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9l8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2l51.9,30z m51.9,21.7l-8.1,4.2l35.7,30l-5.3,2.8l24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2l8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1l51.9,21.7zm30.4,2.2l-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1l30.4,2.2z"},title:k(ya.title),option:{},seriesindex:{}};var wa=_a.prototype;wa.geticons=function(){var t=this.model,e=t.get("icon"),i={};return r(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var ba={line:function(t,e,i,n){if("bar"===t)return m({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markpoint:i.get("markpoint"),markline:i.get("markline")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return m({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markpoint:i.get("markpoint"),markline:i.get("markline")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){var o=i.get("stack")===xa;if("line"===t||"bar"===t)return n.seticonstatus("stack",o?"normal":"emphasis"),m({id:e,stack:o?"":xa},n.get("option.stack")||{},!0)}},sa=[["line","bar"],["stack"]];wa.onclick=function(u,t,h){var c=this.model,e=c.get("seriesindex."+h);if(ba[h]){var i,d={series:[]};if(r(sa,function(t){0<=_(t,h)&&r(t,function(t){c.seticonstatus(t,"normal")})}),c.seticonstatus(h,"emphasis"),u.eachcomponent({maintype:"series",query:null==e?null:{seriesindex:e}},function(t){var e=t.subtype,i=t.id,n=ba[h](e,i,t,c);n&&(d(n,t.option),d.series.push(n));var o=t.coordinatesystem;if(o&&"cartesian2d"===o.type&&("line"===h||"bar"===h)){var a=o.getaxesbyscale("ordinal")[0];if(a){var r=a.dim+"axis",s=u.querycomponents({maintype:r,index:t.get(name+"index"),id:t.get(name+"id")})[0].componentindex;d[r]=d[r]||[];for(var l=0;l<=s;l++)d[r][s]=d[r][s]||{};d[r][s].boundarygap="bar"===h}}}),"stack"===h)i=d.series&&d.series[0]&&d.series[0].stack===xa?m({stack:ya.title.tiled},ya.title):k(ya.title);t.dispatchaction({type:"changemagictype",currenttype:h,newoption:d,newtitle:i,featurename:"magictype"})}},_f({type:"changemagictype",event:"magictypechanged",update:"prepareandupdate"},function(t,e){e.mergeoption(t.newoption)}),da("magictype",_a);var ma=oc.toolbox.dataview,ia=new array(60).join("-"),ta="\t";function aa(t){var e=function(t){var o={},a=[],r=[];return t.eachrawseries(function(t){var e=t.coordinatesystem;if(!e||"cartesian2d"!==e.type&&"polar"!==e.type)a.push(t);else{var i=e.getbaseaxis();if("category"===i.type){var n=i.dim+"_"+i.index;o[n]||(o[n]={categoryaxis:i,valueaxis:e.getotheraxis(i),series:[]},r.push({axisdim:i.dim,axisindex:i.index})),o[n].series.push(t)}else a.push(t)}}),{seriesgroupbycategoryaxis:o,other:a,meta:r}}(t);return{value:m([function(t){var h=[];return r(t,function(t,e){var i=t.categoryaxis,n=t.valueaxis.dim,o=[" "].concat(o(t.series,function(t){return t.name})),a=[i.model.getcategories()];r(t.series,function(t){var e=t.getrawdata();a.push(t.getrawdata().maparray(e.mapdimension(n),function(t){return t}))});for(var r=[o.join(ta)],s=0;st[1]&&t.reverse(),t}function ga(t,e){return ko(t,e,{includemaintypes:ea})}ba.setoutputranges=function(t,e){this.matchoutputranges(t,e,function(t,e,i){if((t.coordranges||(t.coordranges=[])).push(e),!t.coordrange){t.coordrange=e;var n=za[t.brushtype](0,i,e);t.__rangeoffset={offset:xa[t.brushtype](n.values,t.range,[1,1]),xyminmax:n.xyminmax}}})},ba.matchoutputranges=function(t,n,o){pa(t,function(i){var t=this.findtargetinfo(i,n);t&&!0!==t&&r(t.coordsyses,function(t){var e=za[i.brushtype](1,t,i.range);o(i,e.values,t,n)})},this)},ba.setinputranges=function(t,o){pa(t,function(t){var e=this.findtargetinfo(t,o);if(t.range=t.range||[],e&&!0!==e){t.panelid=e.panelid;var i=za[t.brushtype](0,e.coordsys,t.coordrange),n=t.__rangeoffset;t.range=n?xa[t.brushtype](i.values,n.offset,function(t,e){var i=ja(t),n=ja(e),o=[i[0]/n[0],i[1]/n[1]];return isnan(o[0])&&(o[0]=1),isnan(o[1])&&(o[1]=1),o}(i.xyminmax,n.xyminmax)):i.values}},this)},ba.makepanelopts=function(i,n){return o(this._targetinfolist,function(t){var e=t.getpanelrect();return{panelid:t.panelid,defaultbrushtype:n&&n(t),clippath:hs(e),istargetbycursor:ds(e,i,t.coordsysmodel),getlinearbrushotherextent:cs(e)}})},ba.controlseries=function(t,e,i){var n=this.findtargetinfo(t,i);return!0===n||n&&0<=na(n.coordsyses,e.coordinatesystem)},ba.findtargetinfo=function(t,e){for(var i=this._targetinfolist,n=ga(e,t),o=0;on[1]&&(n[1]=e[1])})}),n[1]c[1];if(r&&!s&&!l)return!0;r&&(n=!0),s&&(e=!0),l&&(i=!0)}return n&&e&&i}):rd(h,function(t){if("empty"===o)i.setdata(u=u.map(t,function(t){return function(t){return t>=c[0]&&t<=c[1]}(t)?t:nan}));else{var e={};e[t]=c,u.selectrange(e)}}),rd(h,function(t){u.setapproximateextent(c,t)}))})}}};var ud=r,hd=nd,cd=tf({type:"datazoom",dependencies:["xaxis","yaxis","zaxis","radiusaxis","angleaxis","singleaxis","series"],defaultoption:{zlevel:0,z:4,orient:null,xaxisindex:null,yaxisindex:null,filtermode:"filter",throttle:null,start:0,end:100,startvalue:null,endvalue:null,minspan:null,maxspan:null,minvaluespan:null,maxvaluespan:null,rangemode:null},init:function(t,e,i){this._dataintervalbyaxis={},this._datainfo={},this._axisproxies={},this.textstylemodel,this._autothrottle=!0,this._rangepropmode=["percent","percent"];var n=dd(t);this.settledoption=n,this.mergedefaultandtheme(t,i),this.doinit(n)},mergeoption:function(t){var e=dd(t);m(this.option,t,!0),m(this.settledoption,e,!0),this.doinit(e)},doinit:function(t){var i=this.option;v.canvassupported||(i.realtime=!1),this._setdefaultthrottle(t),fd(this,t);var n=this.settledoption;ud([["start","startvalue"],["end","endvalue"]],function(t,e){"value"===this._rangepropmode[e]&&(i[t[0]]=n[t[0]]=null)},this),this.textstylemodel=this.getmodel("textstyle"),this._resettarget(),this._giveaxisproxies()},_giveaxisproxies:function(){var r=this._axisproxies;this.eachtargetaxis(function(t,e,i,n){var o=this.dependentmodels[t.axis][e],a=o.__dzaxisproxy||(o.__dzaxisproxy=new ad(t.name,e,this,n));r[t.name+"_"+e]=a},this)},_resettarget:function(){var i=this.option,t=this._judgeautomode();hd(function(t){var e=t.axisindex;i[e]=vo(i[e])},this),"axisindex"===t?this._autosetaxisindex():"orient"===t&&this._autosetorient()},_judgeautomode:function(){var e=this.option,i=!1;hd(function(t){null!=e[t.axisindex]&&(i=!0)},this);var t=e.orient;return null==t&&i?"orient":i?void 0:(null==t&&(e.orient="horizontal"),"axisindex")},_autosetaxisindex:function(){var a=!0,e=this.get("orient",!0),r=this.option,t=this.dependentmodels;if(a){var i="vertical"===e?"y":"x";t[i+"axis"].length?(r[i+"axisindex"]=[0],a=!1):ud(t.singleaxis,function(t){a&&t.get("orient",!0)===e&&(r.singleaxisindex=[t.componentindex],a=!1)})}a&&hd(function(t){if(a){var e=[],i=this.dependentmodels[t.axis];if(i.length&&!e.length)for(var n=0,o=i.length;ne[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&ec(e)}};function ec(t){return new di(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var ic=["#ddd"];tf({type:"brush",dependencies:["geo","grid","xaxis","yaxis","parallel","series"],defaultoption:{toolbox:null,brushlink:null,seriesindex:"all",geoindex:null,xaxisindex:null,yaxisindex:null,brushtype:"rect",brushmode:"single",transformable:!0,brushstyle:{borderwidth:1,color:"rgba(120,140,180,0.3)",bordercolor:"rgba(120,140,180,0.8)"},throttletype:"fixrate",throttledelay:0,removeonclick:!0,z:1e4},areas:[],brushtype:null,brushoption:{},coordinfolist:[],optionupdated:function(t,e){var i=this.option;e||wd(i,t,["inbrush","outofbrush"]);var n=i.inbrush=i.inbrush||{};i.outofbrush=i.outofbrush||{color:ic},n.hasownproperty("liftz")||(n.liftz=5)},setareas:function(t){t&&(this.areas=o(t,function(t){return nc(this.option,t)},this))},setbrushoption:function(t){this.brushoption=nc(this.option,t),this.brushtype=this.brushoption.brushtype}});function nc(t,e){return m({brushtype:t.brushtype,brushmode:t.brushmode,transformable:t.transformable,brushstyle:new cl(t.brushstyle).getitemstyle(),removeonclick:t.removeonclick,z:t.z},e,!0)}function oc(t,e,i,n){n&&n.$from===t.id||this._brushcontroller.setpanels(t.brushtargetmanager.makepanelopts(i)).enablebrush(t.brushoption).updatecovers(t.areas.slice())}af({type:"brush",init:function(t,e){this.ecmodel=t,this.api=e,this.model,(this._brushcontroller=new ob(e.getzr())).on("brush",a(this._onbrush,this)).mount()},render:function(t){return this.model=t,oc.apply(this,arguments)},updatetransform:function(t,e){return kd(e),oc.apply(this,arguments)},updateview:oc,dispose:function(){this._brushcontroller.dispose()},_onbrush:function(t,e){var i=this.model.id;this.model.brushtargetmanager.setoutputranges(t,this.ecmodel),e.isend&&!e.removeonclick||this.api.dispatchaction({type:"brush",brushid:i,areas:k(t),$from:i}),e.isend&&this.api.dispatchaction({type:"brushend",brushid:i,areas:k(t),$from:i})}}),_f({type:"brush",event:"brush"},function(e,t){t.eachcomponent({maintype:"brush",query:e},function(t){t.setareas(e.areas)})}),_f({type:"brushselect",event:"brushselected",update:"none"},function(){}),_f({type:"brushend",event:"brushend",update:"none"},function(){});var ac=oc.toolbox.brush;function rc(t,e,i){this.model=t,this.ecmodel=e,this.api=i,this._brushtype,this._brushmode}rc.defaultoption={show:!0,type:["rect","polygon","linex","liney","keep","clear"],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:k(ac.title)};var sc=rc.prototype;sc.render=sc.updateview=function(e,t,i){var n,o,a;t.eachcomponent({maintype:"brush"},function(t){n=t.brushtype,o=t.brushoption.brushmode||"single",a|=t.areas.length}),this._brushtype=n,this._brushmode=o,r(e.get("type",!0),function(t){e.seticonstatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===n)?"emphasis":"normal")})},sc.geticons=function(){var t=this.model,e=t.get("icon",!0),i={};return r(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},sc.onclick=function(t,e,i){var n=this._brushtype,o=this._brushmode;"clear"===i?(e.dispatchaction({type:"axisareaselect",intervals:[]}),e.dispatchaction({type:"brush",command:"clear",areas:[]})):e.dispatchaction({type:"takeglobalcursor",key:"brush",brushoption:{brushtype:"keep"===i?n:n!==i&&i,brushmode:"keep"===i?"multiple"===o?"single":"multiple":o}})},da("brush",rc),yf(function(t,e){var i=t&&t.brush;if(l(i)||(i=i?[i]:[]),i.length){var n=[];r(i,function(t){var e=t.hasownproperty("toolbox")?t.toolbox:[];e instanceof array&&(n=n.concat(e))});var o=t&&t.toolbox;l(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,n),function(i){var e={};r(i,function(t){e[t]=1}),i.length=0,r(e,function(t,e){i.push(e)})}(s),e&&!s.length&&s.push.apply(s,bd)}}),tf({type:"title",layoutmode:{type:"box",ignoresize:!0},defaultoption:{zlevel:0,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:"bolder",color:"#333"},subtextstyle:{color:"#aaa"}}}),af({type:"title",render:function(t,e,i){if(this.group.removeall(),t.get("show")){var n=this.group,o=t.getmodel("textstyle"),a=t.getmodel("subtextstyle"),r=t.get("textalign"),s=h(t.get("textbaseline"),t.get("textverticalalign")),l=new ur({style:nl({},o,{text:t.get("text"),textfill:o.gettextcolor()},{disablebox:!0}),z2:10}),u=l.getboundingrect(),h=t.get("subtext"),c=new ur({style:nl({},a,{text:h,textfill:a.gettextcolor(),y:u.height+t.get("itemgap"),textverticalalign:"top"},{disablebox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerevent",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on("click",function(){gu(d,"_"+t.get("target"))}),f&&c.on("click",function(){gu(f,"_"+t.get("subtarget"))}),l.eventdata=c.eventdata=p?{componenttype:"title",componentindex:t.componentindex}:null,n.add(l),h&&n.add(c);var g=n.getboundingrect(),m=t.getboxlayoutparams();m.width=g.width,m.height=g.height;var v=bu(m,{width:i.getwidth(),height:i.getheight()},t.get("padding"));r||("middle"===(r=t.get("left")||t.get("right"))&&(r="center"),"right"===r?v.x+=v.width:"center"===r&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),n.attr("position",[v.x,v.y]);var y={textalign:r,textverticalalign:s};l.setstyle(y),c.setstyle(y),g=n.getboundingrect();var x=v.margin,_=t.getitemstyle(["color","opacity"]);_.fill=t.get("backgroundcolor");var w=new rs({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderradius")},style:_,subpixeloptimize:!0,silent:!0});n.add(w)}}});function lc(t){var e=t.itemstyle||(t.itemstyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},o=n.normal||(n.normal={}),a={normal:1,emphasis:1};r(n,function(t,e){a[e]||uc(o,e)||(o[e]=t)}),i.label&&!uc(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function uc(t,e){return t.hasownproperty(e)}ku.registersubtypedefaulter("timeline",function(){return"slider"}),_f({type:"timelinechange",event:"timelinechanged",update:"prepareandupdate"},function(t,e){var i=e.getcomponent("timeline");return i&&null!=t.currentindex&&(i.setcurrentindex(t.currentindex),!i.get("loop",!0)&&i.isindexmax()&&i.setplaystate(!1)),e.resetoption("timeline"),d({currentindex:i.option.currentindex},t)}),_f({type:"timelineplaychange",event:"timelineplaychanged",update:"update"},function(t,e){var i=e.getcomponent("timeline");i&&null!=t.playstate&&i.setplaystate(t.playstate)});var hc=ku.extend({type:"timeline",layoutmode:"box",defaultoption:{zlevel:0,z:4,show:!0,axistype:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlposition:"left",autoplay:!1,rewind:!1,loop:!0,playinterval:2e3,currentindex:0,itemstyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergedefaultandtheme(t,i),this._initdata()},mergeoption:function(t){hc.superapply(this,"mergeoption",arguments),this._initdata()},setcurrentindex:function(t){null==t&&(t=this.option.currentindex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(e<=t&&(t=e-1),t<0&&(t=0)),this.option.currentindex=t},getcurrentindex:function(){return this.option.currentindex},isindexmax:function(){return this.getcurrentindex()>=this._data.count()-1},setplaystate:function(t){this.option.autoplay=!!t},getplaystate:function(){return!!this.option.autoplay},_initdata:function(){var t=this.option,e=t.data||[],i=t.axistype,o=this._names=[];if("category"===i){var a=[];r(e,function(t,e){var i,n=wo(t);z(t)?(i=k(t)).value=e:i=e,a.push(i),e(n)||null!=n&&!isnan(n)||(n=""),o.push(n+"")}),e=a}var n={category:"ordinal",time:"time"}[i]||"number";(this._data=new yf([{name:"value",type:n}],this)).initdata(e,o)},getdata:function(){return this._data},getcategories:function(){if("category"===this.get("axistype"))return this._names.slice()}});b(hc.extend({type:"timeline.slider",defaultoption:{backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderwidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptycircle",symbolsize:10,linestyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemstyle:{color:"#304654",borderwidth:1},checkpointstyle:{symbol:"circle",symbolsize:13,color:"#c23531",borderwidth:5,bordercolor:"rgba(194,53,49, 0.5)",animation:!0,animationduration:300,animationeasing:"quinticinout"},controlstyle:{show:!0,showplaybtn:!0,showprevbtn:!0,shownextbtn:!0,itemsize:22,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:"path://m18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7l18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1l19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8c18.4,51.2,18.5,51,18.6,50.8z",previcon:"path://m43,52.8l20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7l42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3l18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1l41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8c43.2,53.2,43.1,53,43,52.8z",color:"#304654",bordercolor:"#304654",borderwidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemstyle:{color:"#c23531"},controlstyle:{color:"#c23531",bordercolor:"#c23531",borderwidth:2}},data:[]}}),xh);function cc(t,e,i,n){gg.call(this,t,e,i),this.type=n||"value",this.model=null}var dc=gc.extend({type:"timeline"});cc.prototype={constructor:cc,getlabelmodel:function(){return this.model.getmodel("label")},ishorizontal:function(){return"horizontal"===this.model.get("orient")}},w(cc,gg);var fc=a,pc=r,gc=math.pi;function mc(t,e,i,n,o,a){var r=e.get("color");o?(o.setcolor(r),i.add(o),a&&a.onupdate(o)):((o=wg(t.get("symbol"),-1,-1,2,2,r)).setstyle("strokenoscale",!0),i.add(o),a&&a.oncreate(o));var s=e.getitemstyle(["color","symbol","symbolsize"]);o.setstyle(s),n=m({recthover:!0,z2:100},n,!0);var l=t.get("symbolsize");(l=l instanceof array?l.slice():[+l,+l])[0]/=2,l[1]/=2,n.scale=l;var u=t.get("symboloffset");if(u){var h=n.position=n.position||[0,0];h[0]+=el(u[0],l[0]),h[1]+=el(u[1],l[1])}var c=t.get("symbolrotate");return n.rotation=(c||0)*math.pi/180||0,o.attr(n),o.updatetransform(),o}function vc(t,e,i,n,o){if(!t.dragging){var a=n.getmodel("checkpointstyle"),r=i.datatocoord(n.getdata().get(["value"],e));o||!a.get("animation",!0)?t.attr({position:[r,0]}):(t.stopanimation(!0),t.animateto({position:[r,0]},a.get("animationduration",!0),a.get("animationeasing",!0)))}}dc.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewrect,this._timer,this._currentpointer,this._maingroup,this._labelgroup},render:function(e,t,i,n){if(this.model=e,this.api=i,this.ecmodel=t,this.group.removeall(),e.get("show",!0)){var o=this._layout(e,i),a=this._creategroup("maingroup"),r=this._creategroup("labelgroup"),s=this._axis=this._createaxis(o,e);e.formattooltip=function(t){return au(s.scale.getlabel(t))},pc(["axisline","axistick","control","currentpointer"],function(t){this["_render"+t](o,a,s,e)},this),this._renderaxislabel(o,r,s,e),this._position(o,e)}this._doplaystop()},remove:function(){this._cleartimer(),this.group.removeall()},dispose:function(){this._cleartimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),o=function(t,e){return bu(t.getboxlayoutparams(),{width:e.getwidth(),height:e.getheight()},t.get("padding"))}(t,e);null==i||"auto"===i?i="horizontal"===n?o.y+o.height/2n[1]&&(i=n[1]),i":"\n"),s&&(l+=xc(s),null!=a&&(l+=" : ")),null!=a&&(l+=xc(r)),l},getdata:function(){return this._data},setdata:function(t){this._data=t}});b(wc,xh),wc.extend({type:"markpoint",defaultoption:{zlevel:0,z:5,symbol:"pin",symbolsize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemstyle:{borderwidth:2},emphasis:{label:{show:!0}}}});var bc=_;function sc(t,e,i,n,o,a){var r=[],s=fp(e,n)?e.getcalculationinfo("stackresultdimension"):n,l=lc(e,s,t),u=e.indicesofnearest(s,l)[0];r[o]=e.get(i,u),r[a]=e.get(s,u);var h=e.get(n,u),c=vl(e.get(n,u));return 0<=(c=math.min(c,20))&&(r[a]=+r[a].tofixed(c)),[r,h]}var mc=t,ic={min:mc(sc,"min"),max:mc(sc,"max"),average:mc(sc,"average")};function tc(t,e){var i=t.getdata(),n=t.coordinatesystem;if(e&&!function(t){return!isnan(parsefloat(t.x))&&!isnan(parsefloat(t.y))}(e)&&!l(e.coord)&&n){var o=n.dimensions,a=ac(e,i,n,t);if((e=k(e)).type&&ic[e.type]&&a.baseaxis&&a.valueaxis){var r=bc(o,a.baseaxis.dim),s=bc(o,a.valueaxis.dim),l=ic[e.type](i,a.basedatadim,a.valuedatadim,r,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xaxis?e.xaxis:e.radiusaxis,null!=e.yaxis?e.yaxis:e.angleaxis],h=0;h<2;h++)ic[u[h]]&&(u[h]=lc(i,i.mapdimension(o[h]),u[h]));e.coord=u}}return e}function ac(t,e,i,n){var o={};return null!=t.valueindex||null!=t.valuedim?(o.valuedatadim=null!=t.valueindex?e.getdimension(t.valueindex):t.valuedim,o.valueaxis=i.getaxis(function(t,e){var i=t.getdata(),n=i.dimensions;e=i.getdimension(e);for(var o=0;oi[o],f=[-h.x,-h.y];e||(f[n]=s.position[n]);var p=[0,0],g=[-c.x,-c.y],m=h(t.get("pagebuttongap",!0),t.get("itemgap",!0));d&&("end"===t.get("pagebuttonposition",!0)?g[n]+=i[o]-c[o]:p[n]+=c[o]+m);g[1-n]+=h[a]/2-c[a]/2,s.attr("position",f),l.attr("position",p),u.attr("position",g);var v={x:0,y:0};if(v[o]=d?i[o]:h[o],v[a]=math.max(h[a],c[a]),v[r]=math.min(0,c[r]+g[1-n]),l.__rectsize=i[o],d){var y={x:0,y:0};y[o]=math.max(i[o]-c[o]-m,0),y[a]=v[a],l.setclippath(new rs({shape:y})),l.__rectsize=y[o]}else u.eachchild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getpageinfo(t);return null!=x.pageindex&&cl(s,{position:x.contentposition},d&&t),this._updatepageinfoview(t,x),v},_pagego:function(t,e,i){var n=this._getpageinfo(e)[t];null!=n&&i.dispatchaction({type:"legendscroll",scrolldataindex:n,legendid:e.id})},_updatepageinfoview:function(n,o){var a=this._controllergroup;r(["pageprev","pagenext"],function(t){var e=null!=o[t+"dataindex"],i=a.childofname(t);i&&(i.setstyle("fill",e?n.get("pageiconcolor",!0):n.get("pageiconinactivecolor",!0)),i.cursor=e?"pointer":"default")});var t=a.childofname("pagetext"),e=n.get("pageformatter"),i=o.pageindex,r=null!=i?i+1:0,s=o.pagecount;t&&e&&t.setstyle("text",e(e)?e.replace("{current}",r).replace("{total}",s):e({current:r,total:s}))},_getpageinfo:function(t){var e=t.get("scrolldataindex",!0),i=this.getcontentgroup(),n=this._containergroup.__rectsize,o=t.getorient().index,a=al[o],r=rl[o],s=this._findtargetitemindex(e),l=i.children(),u=l[s],h=l.length,c=h?1:0,d={contentposition:i.position.slice(),pagecount:c,pageindex:c-1,pageprevdataindex:null,pagenextdataindex:null};if(!u)return d;var f=y(u);d.contentposition[o]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=h;++p)(!(v=y(l[p]))&&m.e>g.s+n||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pagenextdataindex&&(d.pagenextdataindex=g.i),++d.pagecount),m=v;for(p=s-1,g=f,m=f,v=null;-1<=p;--p)(v=y(l[p]))&&x(m,v.s)||!(g.i=e&&t.s<=e+n}},_findtargetitemindex:function(n){return this._showcontroller?(this.getcontentgroup().eachchild(function(t,e){var i=t.__legenddataindex;null==a&&null!=i&&(a=e),i===n&&(o=e)}),null!=o?o:a):0;var o,a}});_f("legendscroll","legendscroll",function(t,e){var i=t.scrolldataindex;null!=i&&e.eachcomponent({maintype:"legend",subtype:"scroll",query:t},function(t){t.setscrolldataindex(i)})});cd.extend({type:"datazoom.slider",layoutmode:"box",defaultoption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundcolor:"rgba(47,69,84,0)",databackground:{linestyle:{color:"#2f4554",width:.5,opacity:.3},areastyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},bordercolor:"#ddd",fillercolor:"rgba(167,183,204,0.4)",handleicon:"m8.2,13.6v3.9h6.3v9.7h3.1v14.9h3.3v9.7h1.8v-9.7h3.3v13.6h8.2z m9.7,24.4h4.8v-1.4h4.9v24.4z m9.7,19.1h4.8v-1.4h4.9v19.1z",handlesize:"100%",handlestyle:{color:"#a7b7cc"},labelprecision:null,labelformatter:null,showdetail:!0,showdatashadow:"auto",realtime:!0,zoomlock:!1,textstyle:{color:"#333"}}});var ll=rs,ul=rl,hl=bl,cl=a,dl=r,fl="horizontal",pl="vertical",gl=["line","bar","candlestick","scatter"],ml=pd.extend({type:"datazoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleends,this._size,this._handlewidth,this._handleheight,this._location,this._dragging,this._datashadowinfo,this.api=e},render:function(t,e,i,n){ml.superapply(this,"render",arguments),kc(this,"_dispatchzoomaction",this.datazoommodel.get("throttle"),"fixrate"),this._orient=t.get("orient"),!1!==this.datazoommodel.get("show")?(n&&"datazoom"===n.type&&n.from===this.uid||this._buildview(),this._updateview()):this.group.removeall()},remove:function(){ml.superapply(this,"remove",arguments),pc(this,"_dispatchzoomaction")},dispose:function(){ml.superapply(this,"dispose",arguments),pc(this,"_dispatchzoomaction")},_buildview:function(){var t=this.group;t.removeall(),this._resetlocation(),this._resetinterval();var e=this._displayables.bargroup=new ci;this._renderbackground(),this._renderhandle(),this._renderdatashadow(),t.add(e),this._positiongroup()},_resetlocation:function(){var t=this.datazoommodel,e=this.api,i=this._findcoordrect(),n={width:e.getwidth(),height:e.getheight()},o=this._orient===fl?{right:n.width-i.x-i.width,top:n.height-30-7,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=iu(t.option);r(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var r=bu(a,n,t.padding);this._location={x:r.x,y:r.y},this._size=[r.width,r.height],this._orient===pl&&this._size.reverse()},_positiongroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.datazoommodel.getfirsttargetaxismodel(),o=n&&n.get("inverse"),a=this._displayables.bargroup,r=(this._datashadowinfo||{}).otheraxisinverse;a.attr(i!==fl||o?i===fl&&o?{scale:r?[-1,1]:[-1,-1]}:i!==pl||o?{scale:r?[-1,-1]:[-1,1],rotation:math.pi/2}:{scale:r?[1,-1]:[1,1],rotation:math.pi/2}:{scale:r?[1,1]:[1,-1]});var s=t.getboundingrect([a]);t.attr("position",[e.x-s.x,e.y-s.y])},_getviewextent:function(){return[0,this._size[0]]},_renderbackground:function(){var t=this.datazoommodel,e=this._size,i=this._displayables.bargroup;i.add(new ll({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundcolor")},z2:-40})),i.add(new ll({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:a(this._onclickpanelclick,this)}))},_renderdatashadow:function(){var t=this._datashadowinfo=this._preparedatashadowinfo();if(t){var e=this._size,i=t.series,n=i.getrawdata(),o=i.getshadowdim?i.getshadowdim():t.otherdim;if(null!=o){var a=n.getdataextent(o),r=.3*(a[1]-a[0]);a=[a[0]-r,a[1]+r];var s,l=[0,e[1]],u=[0,e[0]],h=[[e[0],0],[0,0]],c=[],d=u[1]/(n.count()-1),f=0,p=math.round(n.count()/e[0]);n.each([o],function(t,e){if(0e[0]||i[1]<0||i[1]>e[1])){var n=this._handleends,o=(n[0]+n[1])/2,a=this._updateinterval("all",i[0]-o);this._updateview(),a&&this._dispatchzoomaction()}},_dispatchzoomaction:function(){var t=this._range;this.api.dispatchaction({type:"datazoom",from:this.uid,datazoomid:this.datazoommodel.id,start:t[0],end:t[1]})},_findcoordrect:function(){var i;if(dl(this.gettargetcoordinfo(),function(t){if(!i&&t.length){var e=t[0].model.coordinatesystem;i=e.getrect&&e.getrect()}}),!i){var t=this.api.getwidth(),e=this.api.getheight();i={x:.2*t,y:.2*e,width:.6*t,height:.6*e}}return i}});function vl(t){return"vertical"===t?"ns-resize":"ew-resize"}cd.extend({type:"datazoom.inside",defaultoption:{disabled:!1,zoomlock:!1,zoomonmousewheel:!0,moveonmousemove:!0,moveonmousewheel:!1,preventdefaultmousemove:!0}});var yl="\0_ec_datazoom_roams";function xl(t,n){var e=wl(t),o=n.datazoomid,a=n.coordid;r(e,function(t,e){var i=t.datazoominfos;i[o]&&_(n.allcoordids,a)<0&&(delete i[o],t.count--)}),bl(e);var i=e[a];i||((i=e[a]={coordid:a,datazoominfos:{},count:0}).controller=function(t,r){var e=new vy(t.getzr());return r(["pan","zoom","scrollmove"],function(a){e.on(a,function(n){var o=[];r(r.datazoominfos,function(t){if(n.isavailablebehavior(t.datazoommodel.option)){var e=(t.getrange||{})[a],i=e&&e(r.controller,n);!t.datazoommodel.get("disabled",!0)&&i&&o.push({datazoomid:t.datazoomid,start:i[0],end:i[1]})}}),o.length&&r.dispatchaction(o)})}),e}(t,i),i.dispatchaction=t(sl,t)),i.datazoominfos[o]||i.count++,i.datazoominfos[o]=n;var r=function(t){var n,o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r(t,function(t){var e=t.datazoommodel,i=!e.get("disabled",!0)&&(!e.get("zoomlock",!0)||"move");o["type_"+n]"],l(t)&&(t=t.slice(),n=!0),o=e?t:n?[u(t[0]),u(t[1])]:u(t),e(l)?l.replace("{value}",n?o[0]:o).replace("{value2}",n?o[1]:o):c(l)?n?l(t[0],t[1]):l(t):n?t[0]===s[0]?i[0]+" "+o[1]:t[1]===s[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o;function u(t){return t===s[0]?"min":t===s[1]?"max":(+t).tofixed(math.min(r,20))}},resetextent:function(){var t=this.option,e=gl([t.min,t.max]);this._dataextent=e},getdatadimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getdimension(e);for(var n=t.dimensions,o=n.length-1;0<=o;o--){var a=n[o];if(!t.getdimensioninfo(a).iscalculationcoord)return a}}},getextent:function(){return this._dataextent.slice()},completevisualoption:function(){var t=this.ecmodel,e=this.option,i={inrange:e.inrange,outofrange:e.outofrange},n=e.target||(e.target={}),o=e.controller||(e.controller={});m(n,i),m(o,i);var u=this.iscategory();function a(n){bl(e.color)&&!n.inrange&&(n.inrange={color:e.color.slice().reverse()}),n.inrange=n.inrange||{color:t.get("gradientcolor")},vl(this.statelist,function(t){var e=n[t];if(e(e)){var i=ol(e,"active",u);i?(n[t]={},n[t][e]=i):delete n[t]}},this)}a.call(this,n),a.call(this,o),function(t,e,i){var n=t[e],o=t[i];n&&!o&&(o=t[i]={},vl(n,function(t,e){if(g_.isvalidtype(e)){var i=ol(e,"inactive",u);null!=i&&(o[e]=i,"color"!==e||o.hasownproperty("opacity")||o.hasownproperty("coloralpha")||(o.opacity=[0,0]))}}))}.call(this,n,"inrange","outofrange"),function(a){var r=(a.inrange||{}).symbol||(a.outofrange||{}).symbol,s=(a.inrange||{}).symbolsize||(a.outofrange||{}).symbolsize,l=this.get("inactivecolor");vl(this.statelist,function(t){var e=this.itemsize,i=a[t];null==(i=i||(a[t]={color:u?l:[l]})).symbol&&(i.symbol=r&&k(r)||(u?"roundrect":["roundrect"])),null==i.symbolsize&&(i.symbolsize=s&&k(s)||(u?e[0]:[e[0],e[0]])),i.symbol=el(i.symbol,function(t){return"none"===t||"square"===t?"roundrect":t});var n=i.symbolsize;if(null!=n){var o=-1/0;zl(n,function(t){oe[1]&&e.reverse(),e[0]=math.max(e[0],t[0]),e[1]=math.min(e[1],t[1]))},completevisualoption:function(){wl.prototype.completevisualoption.apply(this,arguments),r(this.statelist,function(t){var e=this.option.controller[t].symbolsize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setselected:function(t){this.option.range=t.slice(),this._resetrange()},getselected:function(){var t=this.getextent(),e=bl((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inrange":"outofrange"},findtargetdataindices:function(n){var o=[];return this.eachtargetseries(function(t){var i=[],e=t.getdata();e.each(this.getdatadimension(e),function(t,e){n[0]<=t&&t<=n[1]&&i.push(e)},this),o.push({seriesid:t.id,dataindex:i})},this),o},getvisualmeta:function(i){var t=ul(this,"outofrange",this.getextent()),e=ul(this,"inrange",this.option.range.slice()),n=[];function o(t,e){n.push({value:t,color:i(t,e)})}for(var a=0,r=0,s=e.length,l=t.length;rt[1])break;i.push({color:this.getcontrollervisual(a,"color",e),offset:o/100})}return i.push({color:this.getcontrollervisual(t[1],"color",e),offset:1}),i},_createbarpoints:function(t,e){var i=this.visualmapmodel.itemsize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createbargroup:function(t){var e=this._orient,i=this.visualmapmodel.get("inverse");return new ci("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-math.pi/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:math.pi/2})},_updatehandle:function(n,o){if(this._usehandle){var a=this._shapes,r=this.visualmapmodel,s=a.handlethumbs,l=a.handlelabels;kl([0,1],function(t){var e=s[t];e.setstyle("fill",o.handlescolor[t]),e.position[1]=n[t];var i=pl(a.handlelabelpoints[t],fl(e,this.group));l[t].setstyle({x:i[0],y:i[1],text:r.formatvaluetext(this._datainterval[t]),textverticalalign:"middle",textalign:this._applytransform("horizontal"===this._orient?0===t?"bottom":"top":"left",a.bargroup)})},this)}},_showindicator:function(t,e,i,n){var o=this.visualmapmodel,a=o.getextent(),r=o.itemsize,s=[0,r[1]],l=ql(t,a,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setshape("points",function(t,e,i,n){return t?[[0,-$l(e,jl(i,0))],[6,0],[0,$l(e,jl(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,l,r[1]));var c=this.getcontrollervisual(t,"color",{convertopacitytoalpha:!0});h.setstyle("fill",c);var d=pl(u.indicatorlabelpoint,fl(h,this.group)),f=u.indicatorlabel;f.attr("invisible",!1);var p=this._applytransform("left",u.bargroup),g=this._orient;f.setstyle({text:(i||"")+o.formatvaluetext(e),textverticalalign:"horizontal"===g?p:"middle",textalign:"horizontal"===g?"center":p,x:d[0],y:d[1]})}},_enablehoverlinktoseries:function(){var n=this;this._shapes.bargroup.on("mousemove",function(t){if(n._hovering=!0,!n._dragging){var e=n.visualmapmodel.itemsize,i=n._applytransform([t.offsetx,t.offsety],n._shapes.bargroup,!0,!0);i[1]=$l(jl(0,i[1]),e[1]),n._dohoverlinktoseries(i[1],0<=i[0]&&i[0]<=e[0])}}).on("mouseout",function(){n._hovering=!1,n._dragging||n._clearhoverlinktoseries()})},_enablehoverlinkfromseries:function(){var t=this.api.getzr();this.visualmapmodel.option.hoverlink?(t.on("mouseover",this._hoverlinkfromseriesmouseover,this),t.on("mouseout",this._hideindicator,this)):this._clearhoverlinkfromseries()},_dohoverlinktoseries:function(t,e){var i=this.visualmapmodel,n=i.itemsize;if(i.option.hoverlink){var o=[0,n[1]],a=i.getextent();t=$l(jl(o[0],t),o[1]);var r=function(t,e,i){var n=6,o=t.get("hoverlinkdatasize");o&&(n=ql(o,e,i,!0)/2);return n}(i,a,o),s=[t-r,t+r],l=ql(t,o,a,!0),u=[ql(s[0],o,a,!0),ql(s[1],o,a,!0)];s[0] ",r):this._showindicator(l,l,"≈ ",r));var h=this._hoverlinkdataindices,c=[];(e||ek(i))&&(c=this._hoverlinkdataindices=i.findtargetdataindices(u));var d=function(t,e){var i={},n={};return o(t||[],i),o(e||[],n,i),[a(i),a(n)];function o(t,e,i){for(var n=0,o=t.length;ni&&n([i,e[0]],"outofrange"),n(e.slice()),i=e[1])},this),{stops:a,outercolors:r}}function n(t,e){var i=s.getrepresentvalue({interval:t});e=e||s.getvaluestate(i);var n=o(i,e);t[0]===-1/0?r[0]=n:t[1]===1/0?r[1]=n:a.push({value:t[0],color:n},{value:t[1],color:n})}}}),ok={splitnumber:function(){var t=this.option,e=this._piecelist,i=math.min(t.precision,20),n=this.getextent(),o=t.splitnumber;o=math.max(parseint(o,10),1),t.splitnumber=o;for(var a=(n[1]-n[0])/o;+a.tofixed(i)!==a&&i<5;)i++;t.precision=i,a=+a.tofixed(i),t.minopen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var r=0,s=n[0];r","≥"][e[0]]];t.text=t.text||this.formatvaluetext(null!=t.value?t.value:t.interval,!1,i)},this)}};function ak(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}xl.extend({type:"visualmap.piecewise",dorender:function(){var a=this.group;a.removeall();var r=this.visualmapmodel,s=r.get("textgap"),t=r.textstylemodel,l=t.getfont(),u=t.gettextcolor(),h=this._getitemalign(),c=r.itemsize,e=this._getviewdata(),i=e.endstext,d=w(r.get("showlabel",!0),!i);i&&this._renderendstext(a,i[0],c,d,h),r(e.viewpiecelist,function(t){var e=t.piece,i=new ci;i.onclick=a(this._onitemclick,this,e),this._enablehoverlink(i,t.indexinmodelpiecelist);var n=r.getrepresentvalue(e);if(this._createitemsymbol(i,n,[0,0,c[0],c[1]]),d){var o=this.visualmapmodel.getvaluestate(n);i.add(new ur({style:{x:"right"===h?-s:c[0]+s,y:c[1]/2,text:e.text,textverticalalign:"middle",textalign:h,textfont:l,textfill:u,opacity:"outofrange"===o?.5:1}}))}a.add(i)},this),i&&this._renderendstext(a,i[1],c,d,h),wu(r.get("orient"),a,r.get("itemgap")),this.renderbackground(a),this.positiongroup(a)},_enablehoverlink:function(t,i){function e(t){var e=this.visualmapmodel;e.option.hoverlink&&this.api.dispatchaction({type:t,batch:jl(e.findtargetdataindices(i),e)})}t.on("mouseover",a(e,this,"highlight")).on("mouseout",a(e,this,"downplay"))},_getitemalign:function(){var t=this.visualmapmodel,e=t.option;if("vertical"===e.orient)return yl(t,this.api,t.itemsize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderendstext:function(t,e,i,n,o){if(e){var a=new ci,r=this.visualmapmodel.textstylemodel;a.add(new ur({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textverticalalign:"middle",textalign:n?o:"center",text:e,textfont:r.getfont(),textfill:r.gettextcolor()}})),t.add(a)}},_getviewdata:function(){var t=this.visualmapmodel,e=o(t.getpiecelist(),function(t,e){return{piece:t,indexinmodelpiecelist:e}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return("horizontal"===n?o:!o)?e.reverse():i=i&&i.slice().reverse(),{viewpiecelist:e,endstext:i}},_createitemsymbol:function(t,e,i){t.add(wg(this.getcontrollervisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getcontrollervisual(e,"color")))},_onitemclick:function(t){var e=this.visualmapmodel,i=e.option,n=k(i.selected),o=e.getselectedmapkey(t);"single"===i.selectedmode?(n[o]=!0,r(n,function(t,e){n[e]=e===o})):n[o]=!n[o],this.api.dispatchaction({type:"selectdatarange",from:this.uid,visualmapid:this.visualmapmodel.id,selected:n})}});yf(dl);var rk,sk="urn:schemas-microsoft-com:vml",lk="undefined"==typeof window?null:window,uk=!1,hk=lk&&lk.document;function ck(t){return rk(t)}if(hk&&!v.canvassupported)try{hk.namespaces.zrvml||hk.namespaces.add("zrvml",sk),rk=function(t){return hk.createelement("')}}catch(t){rk=function(t){return hk.createelement("<"+t+' xmlns="'+sk+'" class="zrvml">')}}var dk,fk=rr.cmd,pk=math.round,gk=math.sqrt,mk=math.abs,vk=math.cos,yk=math.sin,xk=math.max;if(!v.canvassupported){var _k=",",wk="progid:dximagetransform.microsoft",bk=21600,sk=bk/2,mk=function(t){t.style.csstext="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=bk+","+bk,t.coordorigin="0,0"},ik=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},tk=function(t,e){e&&t&&e.parentnode!==t&&t.appendchild(e)},ak=function(t,e){e&&t&&e.parentnode===t&&t.removechild(e)},dk=function(t,e,i){return 1e5*(parsefloat(t)||0)+1e3*(parsefloat(e)||0)+i},ck=yn,lk=function(t,e,i){var n=fe(e);i=+i,isnan(i)&&(i=1),n&&(t.color=ik(n[0],n[1],n[2]),t.opacity=i*n[3])},kk=function(t,e,i,n){var o="fill"===e,a=t.getelementsbytagname(e)[0];null!=i[e]&&"none"!==i[e]&&(o||!o&&i.linewidth)?(t[o?"filled":"stroked"]="true",i[e]instanceof cs&&ak(t,a),a=a||ck(e),o?function(t,e,i){var n,o,a=e.fill;if(null!=a)if(a instanceof cs){var r,s=0,l=[0,0],u=0,h=1,c=i.getboundingrect(),d=c.width,f=c.height;if("linear"===a.type){r="gradient";var p=i.transform,g=[a.x*d,a.y*f],m=[a.x2*d,a.y2*f];p&&(bt(g,g,p),bt(m,m,p));var v=m[0]-g[0],y=m[1]-g[1];(s=180*math.atan2(v,y)/math.pi)<0&&(s+=360),s<1e-6&&(s=0)}else{r="gradientradial";g=[a.x*d,a.y*f],p=i.transform;var x=i.scale,_=d,w=f;l=[(g[0]-c.x)/_,(g[1]-c.y)/w],p&&bt(g,g,p),_/=x[0]*bk,w/=x[1]*bk;var b=xk(_,w);u=0/b,h=2*a.r/b-u}var s=a.colorstops.slice();s.sort(function(t,e){return t.offset-e.offset});for(var m=s.length,i=[],t=[],a=0;a=c&&d<=i+1){for(var n=[],o=0;o=c&&d<=o+1)return _p(h,e.components,u,l);p[t]=e}else p[t]=void 0}var s;f++}for(;f<=e;){var r=a();if(r)return r}},pushcomponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractcommon:function(t,e,i,n){for(var o=e.length,a=i.length,r=t.newpos,s=r-n,l=0;r+1\n\r<"))}},r(["getlayer","insertlayer","eachlayer","eachbuiltinlayer","eachotherlayer","getlayers","modlayer","dellayer","clearlayer","pathtoimage"],function(t){op.prototype[t]=function(t){return function(){vi('in svg mode painter not support method "'+t+'"')}}(t)}),po("svg",op),t.version="4.9.0",t.dependencies={zrender:"4.3.2"},t.priority=ld,t.init=function(t,e,i){var n=mf(t);if(n)return n;var o=new ed(t,e,i);return o.id="ec_"+cf++,uf[o.id]=o,jo(t,ff,o.id),function(n){var o="__connectupdatestatus";function a(t,e){for(var i=0;i