!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.echarts=e():t.echarts=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){t.exports=i(2),i(107),i(101),i(111),i(191),i(330),i(318),i(345),i(292),i(288),i(284),i(325),i(335),i(270),i(275),i(281),i(313),i(305),i(329),i(340),i(207),i(208),i(209),i(232),i(55),i(372),i(369),i(251),i(252),i(360),i(367),i(223),i(197),i(386),i(216),i(215),i(214),i(376),i(224),i(239)},function(t,e){function i(t){if(null==t||"object"!=typeof t)return t;var e=t,n=z.call(t);if("[object array]"===n){e=[];for(var o=0,a=t.length;oe.get("hoverlayerthreshold")&&!s.node&&i.traverse(function(t){t.isgroup||(t.usehoverlayer=!0)})}function x(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t.ignore||i++});var n=+t.get("progressive"),o=i>t.get("progressivethreshold")&&n&&!s.node;o&&e.group.traverse(function(t){t.isgroup||(t.progressive=o?math.floor(i++/n):-1,o&&t.stopanimation(!0))});var a=t.get("blendmode")||null;e.group.traverse(function(t){t.isgroup||t.setstyle("blend",a)})}function _(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 b(t){var e=t._coordsysmgr;return r.extend(new i(t),{getcoordinatesystems:r.bind(e.getcoordinatesystems,e),getcomponentbyelement:function(e){for(;e;){var i=e.__eccomponentinfo;if(null!=i)return t._model.getcomponent(i.maintype,i.index);e=e.parent}}})}function w(t){function e(t,e){for(var i=0;i=0&&r.each(t,function(t){var o=t.coordinatesystem;if(o&&o.containpoint)i|=!!o.containpoint(e);else if("seriesmodels"===n){var a=this._chartsmap[t.__viewid];a&&a.containpoint&&(i|=a.containpoint(e,t))}},this)},this),!!i},q.getvisual=function(t,e){var i=this._model;t=o.parsefinder(i,t,{defaultmaintype:"series"});var n=t.seriesmodel,o=n.getdata(),a=t.hasownproperty("dataindexinside")?t.dataindexinside:t.hasownproperty("dataindex")?o.indexofrawindex(t.dataindex):null;return null!=a?o.getitemvisual(a,e):o.getvisual(e)},q.getviewofcomponentmodel=function(t){return this._componentsmap[t.__viewid]},q.getviewofseriesmodel=function(t){return this._chartsmap[t.__viewid]};var tt={update:function(t){var e=this._model,i=this._api,n=this._coordsysmgr,o=this._zr;if(e){e.restoredata(),n.create(this._model,this._api),f.call(this,e,i),p.call(this,e),n.update(e,i),m.call(this,e,t),v.call(this,e,t);var a=e.get("backgroundcolor")||"transparent",r=o.painter;if(r.issinglecanvas&&r.issinglecanvas())o.configlayer(0,{clearcolor:a});else{if(!s.canvassupported){var s=n.parse(a);a=n.stringify(s,"rgb"),0===s[3]&&(a="transparent")}a.colorstops||a.image?(o.configlayer(0,{clearcolor:a}),this[$]=!0,this._dom.style.background="transparent"):(this[$]&&o.configlayer(0,{clearcolor:null}),this[$]=!1,this._dom.style.background=a)}g(rt,function(t){t(e,i)})}},updateview:function(t){var e=this._model;e&&(e.eachseries(function(t){t.getdata().clearallvisual()}),m.call(this,e,t),h.call(this,"updateview",e,t))},updatevisual:function(t){var e=this._model;e&&(e.eachseries(function(t){t.getdata().clearallvisual()}),m.call(this,e,t,!0),h.call(this,"updatevisual",e,t))},updatelayout:function(t){var e=this._model;e&&(g.call(this,e,t),h.call(this,"updatelayout",e,t))},prepareandupdate:function(t){var e=this._model;d.call(this,"component",e),d.call(this,"chart",e),this.__lastonlygraphic?(g(this._componentsviews,function(i){var n=i.__model;n&&"graphic"===n.maintype&&(i.render(n,e,this._api,t),_(n,i))},this),this.__lastonlygraphic=!1):tt.update.call(this,t)}};q.resize=function(t){this[y]=!0,this._zr.resize(t);var e=this._model&&this._model.resetoption("media"),i=e?"prepareandupdate":"update";tt[i].call(this),this._loadingfx&&this._loadingfx.resize(),this[y]=!1;var n=t&&t.silent;u.call(this,n),c.call(this,n)},q.showloading=function(t,e){if(r.isobject(t)&&(e=t,t=""),t=t||"default",this.hideloading(),ut[t]){var i=ut[t](this._api,e),n=this._zr;this._loadingfx=i,n.add(i)}},q.hideloading=function(){this._loadingfx&&this._zr.remove(this._loadingfx),this._loadingfx=null},q.makeactionfromevent=function(t){var e=r.extend({},t);return e.type=nt[t.type],e},q.dispatchaction=function(t,e){if(r.isobject(e)||(e={silent:!!e}),it[t.type]){if(this[y])return void this._pendingactions.push(t);l.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&s.browser.wechat&&this._throttledzrflush(),u.call(this,e.silent),c.call(this,e.silent)}},q.on=n("on"),q.off=n("off"),q.one=n("one");var et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];q._initevents=function(){g(et,function(t){this._zr.on(t,function(e){var i,n=this.getmodel(),o=e.target;if("globalout"===t)i={};else if(o&&null!=o.dataindex){var a=o.datamodel||n.getseriesbyindex(o.seriesindex);i=a&&a.getdataparams(o.dataindex,o.datatype)||{}}else o&&o.eventdata&&(i=r.extend({},o.eventdata));i&&(i.event=e,i.type=t,this.trigger(t,i))},this)},this),g(nt,function(t,e){this._messagecenter.on(e,function(t){this.trigger(e,t)},this)},this)},q.isdisposed=function(){return this._disposed},q.clear=function(){this.setoption({series:[]},!0)},q.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;g(this._componentsviews,function(i){i.dispose(e,t)}),g(this._chartsviews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete ct[this.id]}},r.mixin(a,v);var it={},nt={},ot=[],at=[],rt=[],st=[],lt={},ut={},ct={},ht={},dt=new date-0,ft=new date-0,pt="_echarts_instance_",gt={version:"3.5.3",dependencies:{zrender:"3.4.3"}};gt.init=function(t,e,i){var n=new a(t,e,i);return n.id="ec_"+dt++,ct[n.id]=n,t.setattribute&&t.setattribute(pt,n.id),w(n),n},gt.connect=function(t){if(r.isarray(t)){var e=t;t=null,r.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+ft++,r.each(e,function(e){e.group=t})}return ht[t]=!0,t},gt.disconnect=function(t){ht[t]=!1},gt.disconnect=gt.disconnect,gt.dispose=function(t){r.isdom(t)?t=gt.getinstancebydom(t):"string"==typeof t&&(t=ct[t]),t instanceof a&&!t.isdisposed()&&t.dispose()},gt.getinstancebydom=function(t){var e=t.getattribute(pt);return ct[e]},gt.getinstancebyid=function(t){return ct[t]},gt.registertheme=function(t,e){lt[t]=e},gt.registerpreprocessor=function(t){at.push(t)},gt.registerprocessor=function(t,e){"function"==typeof t&&(e=t,t=h),ot.push({prio:t,func:e})},gt.registerpostupdate=function(t){rt.push(t)},gt.registeraction=function(t,e,i){"function"==typeof e&&(i=e,e="");var n=r.isobject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).tolowercase(),e=t.event,r.assert(j.test(n)&&j.test(e)),it[n]||(it[n]={action:i,actioninfo:t}),nt[e]=n},gt.registercoordinatesystem=function(t,e){t.register(t,e)},gt.registerlayout=function(t,e){"function"==typeof t&&(e=t,t=z),st.push({prio:t,func:e,islayout:!0})},gt.registervisual=function(t,e){"function"==typeof t&&(e=t,t=j),st.push({prio:t,func:e})},gt.registerloading=function(t,e){ut[t]=e},gt.extendcomponentmodel=function(t){return c.extend(t)},gt.extendcomponentview=function(t){return d.extend(t)},gt.extendseriesmodel=function(t){return l.extend(t)},gt.extendchartview=function(t){return p.extend(t)},gt.setcanvascreator=function(t){r.createcanvas=t},gt.registervisual(q,i(151)),gt.registerpreprocessor(i(145)),gt.registerloading("default",i(136)),gt.registeraction({type:"highlight",event:"highlight",update:"highlight"},r.noop),gt.registeraction({type:"downplay",event:"downplay",update:"downplay"},r.noop),gt.zrender=z,gt.list=i(14),gt.model=i(10),gt.axis=i(33),gt.graphic=i(3),gt.number=i(4),gt.format=i(7),gt.throttle=e.throttle,gt.matrix=i(16),gt.vector=i(5),gt.color=i(22),gt.util={},g(["map","each","filter","indexof","inherits","reduce","filter","bind","curry","isarray","isstring","isobject","isfunction","extend","defaults","clone","merge"],function(t){gt.util[t]=r[t]}),gt.helper=i(135),gt.priority={processor:{filter:h,statistic:w},visual:{layout:z,global:q,chart:j,component:u,brush:x}},t.exports=gt},function(t,e,i){"use strict";function n(t){return null!=t&&"none"!=t}function o(t){return"string"==typeof t?_.lift(t,-.1):t}function a(t){if(t.__hoverstldirty){var e=t.style.stroke,i=t.style.fill,a=t.__hoverstl;a.fill=a.fill||(n(i)?o(i):null),a.stroke=a.stroke||(n(e)?o(e):null);var r={};for(var s in a)a.hasownproperty(s)&&(r[s]=t.style[s]);t.__normalstl=r,t.__hoverstldirty=!1}}function r(t){t.__ishover||(a(t),t.usehoverlayer?t.__zr&&t.__zr.addhover(t,t.__hoverstl):(t.setstyle(t.__hoverstl),t.z2+=1),t.__ishover=!0)}function s(t){if(t.__ishover){var e=t.__normalstl;t.usehoverlayer?t.__zr&&t.__zr.removehover(t):(e&&t.setstyle(e),t.z2-=1),t.__ishover=!1}}function l(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&r(t)}):r(t)}function u(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t)}):s(t)}function c(t,e){t.__hoverstl=t.hoverstyle||e||{},t.__hoverstldirty=!0,t.__ishover&&a(t)}function h(t){this.__hoversilentontouch&&t.zrbytouch||!this.__isemphasis&&l(this)}function d(t){this.__hoversilentontouch&&t.zrbytouch||!this.__isemphasis&&u(this)}function f(){this.__isemphasis=!0,l(this)}function p(){this.__isemphasis=!1,u(this)}function g(t,e,i,n,o,a){"function"==typeof o&&(a=o,o=null);var r=n&&n.isanimationenabled();if(r){var s=t?"update":"",l=n.getshallow("animationduration"+s),u=n.getshallow("animationeasing"+s),c=n.getshallow("animationdelay"+s);"function"==typeof c&&(c=c(o,n.getanimationdelayparams?n.getanimationdelayparams(e,o):null)),"function"==typeof l&&(l=l(o)),l>0?e.animateto(i,l,c||0,u,a):(e.stopanimation(),e.attr(i),a&&a())}else e.stopanimation(),e.attr(i),a&&a()}var m=i(1),v=i(180),y=math.round,x=i(8),_=i(22),b=i(16),w=i(5),s=i(57),m=i(11),i={};i.group=i(36),i.image=i(53),i.text=i(85),i.circle=i(171),i.sector=i(177),i.ring=i(176),i.polygon=i(173),i.polyline=i(174),i.rect=i(175),i.line=i(172),i.beziercurve=i(170),i.arc=i(169),i.compoundpath=i(164),i.lineargradient=i(99),i.radialgradient=i(165),i.boundingrect=m,i.extendshape=function(t){return x.extend(t)},i.extendpath=function(t,e){return v.extendfromstring(t,e)},i.makepath=function(t,e,i,n){var o=v.createfromstring(t,e),a=o.getboundingrect();if(i){var r=a.width/a.height;if("center"===n){var s,l=i.height*r;l<=i.width?s=i.height:(l=i.width,s=l/r);var u=i.x+i.width/2,c=i.y+i.height/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i.height=s}i.resizepath(o,i)}return o},i.mergepath=v.mergepath,i.resizepath=function(t,e){if(t.applytransform){var i=t.getboundingrect(),n=i.calculatetransform(e);t.applytransform(n)}},i.subpixeloptimizeline=function(t){var e=i.subpixeloptimize,i=t.shape,n=t.style.linewidth;return y(2*i.x1)===y(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),y(2*i.y1)===y(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},i.subpixeloptimizerect=function(t){var e=i.subpixeloptimize,i=t.shape,n=t.style.linewidth,o=i.x,a=i.y,r=i.width,s=i.height;return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=math.max(e(o+r,n,!1)-i.x,0===r?0:1),i.height=math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},i.subpixeloptimize=function(t,e,i){var n=y(2*t);return(n+y(e))%2===0?n/2:(n+(i?1:-1))/2},i.sethoverstyle=function(t,e,i){t.__hoversilentontouch=i&&i.hoversilentontouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t,e)}):c(t,e),t.on("mouseover",h).on("mouseout",d),t.on("emphasis",f).on("normal",p)},i.settext=function(t,e,i){var n=e.getshallow("position")||"inside",o=e.getshallow("offset"),a=n.indexof("inside")>=0?"white":i,r=e.getmodel("textstyle");m.extend(t,{textdistance:e.getshallow("distance")||5,textfont:r.getfont(),textposition:n,textoffset:o,textfill:r.gettextcolor()||a})},i.updateprops=function(t,e,i,n,o){g(!0,t,e,i,n,o)},i.initprops=function(t,e,i,n,o){g(!1,t,e,i,n,o)},i.gettransform=function(t,e){for(var i=b.identity([]);t&&t!==e;)b.mul(i,t.getlocaltransform(),i),t=t.parent;return i},i.applytransform=function(t,e,i){return e&&!m.isarraylike(e)&&(e=s.getlocaltransform(e)),i&&(e=b.invert([],e)),w.applytransform([],t,e)},i.transformdirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0];return a=i.applytransform(a,e,i),math.abs(a[0])>math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},i.grouptransition=function(t,e,i,n){function o(t){var e={};return t.traverse(function(t){!t.isgroup&&t.anid&&(e[t.anid]=t)}),e}function a(t){var e={position:w.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=m.extend({},t.shape)),e}if(t&&e){var r=o(t);e.traverse(function(t){if(!t.isgroup&&t.anid){var e=r[t.anid];if(e){var n=a(t);t.attr(a(e)),i.updateprops(t,n,i,t.dataindex)}}})}},t.exports=i},function(t,e){function i(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function n(t){return math.floor(math.log(t)/math.ln10)}var o={},a=1e-4;o.linearmap=function(t,e,i,n){var o=e[1]-e[0],a=i[1]-i[0];if(0===o)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(o>0){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]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/o*a+i[0]},o.parsepercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?i(t).match(/%$/)?parsefloat(t)/100*e:parsefloat(t):null==t?nan:+t},o.round=function(t,e,i){return null==e&&(e=10),e=math.min(math.max(0,e),20),t=(+t).tofixed(e),i?t:+t},o.asc=function(t){return t.sort(function(t,e){return t-e}),t},o.getprecision=function(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},o.getprecisionsafe=function(t){var e=t.tostring(),i=e.indexof("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var o=e.indexof(".");return o<0?0:e.length-1-o},o.getpixelprecision=function(t,e){var i=math.log,n=math.ln10,o=math.floor(i(t[1]-t[0])/n),a=math.round(i(math.abs(e[1]-e[0]))/n),r=math.min(math.max(-o+a,0),20);return isfinite(r)?r:20},o.max_safe_integer=9007199254740991,o.remradian=function(t){var e=2*math.pi;return(t%e+e)%e},o.isradianaroundzero=function(t){return t>-a&&t=-20?+t.tofixed(o<0?-o:0):t},o.reformintervals=function(t){function e(t,i,n){return t.interval[n]=0},t.exports=o},function(t,e){var i="undefined"==typeof float32array?array:float32array,n={create:function(t,e){var n=new i(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new i(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleandadd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return math.sqrt(this.lensquare(t))},lensquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,e){var i=n.len(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t},distance:function(t,e){return math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distancesquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applytransform:function(t,e,i){var n=e[0],o=e[1];return t[0]=i[0]*n+i[2]*o+i[4],t[1]=i[1]*n+i[3]*o+i[5],t},min:function(t,e,i){return t[0]=math.min(e[0],i[0]),t[1]=math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=math.max(e[0],i[0]),t[1]=math.max(e[1],i[1]),t}};n.length=n.len,n.lengthsquare=n.lensquare,n.dist=n.distance,n.distsquare=n.distancesquare,t.exports=n},function(t,e,i){function n(t,e){return t&&t.hasownproperty(e)}var o=i(7),a=i(4),r=i(10),s=i(1),l=s.each,u=s.isobject,c={};c.normalizetoarray=function(t){return t instanceof array?t:null==t?[]:[t]},c.defaultemphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t.normal=t.normal||{};l(e,function(t){var e=s.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},c.label_options=["position","offset","show","textstyle","distance","formatter"],c.getdataitemvalue=function(t){return t&&(null==t.value?t:t.value)},c.isdataitemoption=function(t){return u(t)&&!(t instanceof array)},c.converdatavalue=function(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+a.parsedate(t)),null==t||""===t?nan:+t)},c.createdataformatmodel=function(t,e){var i=new r;return s.mixin(i,c.dataformatmixin),i.seriesindex=e.seriesindex,i.name=e.name||"",i.maintype=e.maintype,i.subtype=e.subtype,i.getdata=function(){return t},i},c.dataformatmixin={getdataparams:function(t,e){var i=this.getdata(e),n=this.getrawvalue(t,e),o=i.getrawindex(t),a=i.getname(t,!0),r=i.getrawdataitem(t);return{componenttype:this.maintype,componentsubtype:this.subtype,seriestype:"series"===this.maintype?this.subtype:null,seriesindex:this.seriesindex,seriesid:this.id,seriesname:this.name,name:a,dataindex:o,data:r,datatype:e,value:n,color:i.getitemvisual(t,"color"),$vars:["seriesname","name","value"]}},getformattedlabel:function(t,e,i,n){e=e||"normal";var a=this.getdata(i),r=a.getitemmodel(t),s=this.getdataparams(t,i);null!=n&&s.value instanceof array&&(s.value=s.value[n]);var l=r.get(["label",e,"formatter"]);return"function"==typeof l?(s.status=e,l(s)):"string"==typeof l?o.formattpl(l,s):void 0},getrawvalue:function(t,e){var i=this.getdata(e),n=i.getrawdataitem(t);if(null!=n)return!u(n)||n instanceof array?n:n.value},formattooltip:s.noop},c.mappingtoexists=function(t,e){e=(e||[]).slice();var i=s.map(t||[],function(t,e){return{exist:t}});return l(e,function(t,n){if(u(t)){for(var o=0;o=i.length&&i.push({option:t})}}),i},c.makeidandname=function(t){var e={};l(t,function(t,i){var n=t.exist;n&&(e[n.id]=t)}),l(t,function(t,i){var n=t.option;s.assert(!n||null==n.id||!e[n.id]||e[n.id]===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(e[n.id]=t),!t.keyinfo&&(t.keyinfo={})}),l(t,function(t,i){var n=t.exist,o=t.option,a=t.keyinfo;if(u(o)){if(a.name=null!=o.name?o.name+"":n?n.name:"\0-",n)a.id=n.id;else if(null!=o.id)a.id=o.id+"";else{var r=0;do a.id="\0"+a.name+"\0"+r++;while(e[a.id])}e[a.id]=t}})},c.isidinner=function(t){return u(t)&&t.id&&0===(t.id+"").indexof("\0_ec_\0")},c.compressbatches=function(t,e){function i(t,e,i){for(var n=0,o=t.length;n1?"."+t[1]:""))},r.tocamelcase=function(t,e){return t=(t||"").tolowercase().replace(/-(.)/g,function(t,e){return e.touppercase()}),e&&t&&(t=t.charat(0).touppercase()+t.slice(1)),t},r.normalizecssarray=function(t){var e=t.length;return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t};var s=r.encodehtml=function(t){return string(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formattpl=function(t,e,i){n.isarray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],r=0;r1e-10&&(o.width+=a/s,o.height+=a/s,o.x-=a/s/2,o.y-=a/s/2)}return o}return t},contain:function(t,e){var i=this.transformcoordtolocal(t,e),n=this.getboundingrect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var a=this.path.data;if(o.hasstroke()){var r=o.linewidth,l=o.strokenoscale?this.getlinescale():1;if(l>1e-10&&(o.hasfill()||(r=math.max(r,this.strokecontainthreshold)),s.containstroke(a,r/l,t,e)))return!0}if(o.hasfill())return s.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtypath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__cliptarget&&this.__cliptarget.dirty()},animateshape:function(t){return this.animate("shape",t)},attrkv:function(t,e){"shape"===t?(this.setshape(e),this.__dirtypath=!0,this._rect=null):o.prototype.attrkv.call(this,t,e)},setshape:function(t,e){var i=this.shape;if(i){if(a.isobject(t))for(var n in t)t.hasownproperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getlinescale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},n.extend=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendfrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var o=this.shape;for(var a in i)!o.hasownproperty(a)&&i.hasownproperty(a)&&(o[a]=i[a])}t.init&&t.init.call(this,e)};a.inherits(e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},a.inherits(n,o),t.exports=n},function(t,e){function i(t){var e={},i={},n=t.match(/firefox\/([\d.]+)/),o=t.match(/msie\s([\d.]+)/)||t.match(/trident\/.+?rv:(([\d.]+))/),a=t.match(/edge\/([\d.]+)/),r=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),o&&(i.ie=!0,i.version=o[1]),a&&(i.edge=!0,i.version=a[1]),r&&(i.wechat=!0),{browser:i,os:e,node:!1,canvassupported:!!document.createelement("canvas").getcontext,toucheventssupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointereventssupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11)}}var n={};n="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvassupported:!0}:i(navigator.useragent),t.exports=n},function(t,e,i){function n(t,e,i){this.parentmodel=e,this.ecmodel=i,this.option=t}function o(t,e,i){for(var n=0;n=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new n(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}}},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n,o){var a=0,r=0;null==n&&(n=1/0),null==o&&(o=1/0);var s=0;e.eachchild(function(l,u){var c,h,d=l.position,f=l.getboundingrect(),p=e.childat(u+1),g=p&&p.getboundingrect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);c=a+m,c>n||l.newline?(a=0,c=m,r+=s+i,s=f.height):s=math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);h=r+v,h>o||l.newline?(a+=s+i,r=0,h=v,s=f.width):s=math.max(s,f.width)}l.newline||(d[0]=a,d[1]=r,"horizontal"===t?a=c+i:r=h+i)})}var o=i(1),a=i(11),r=i(4),s=i(7),l=r.parsepercent,u=o.each,c={},h=c.location_params=["left","right","top","bottom","width","height"],d=c.hv_names=[["width","left","right"],["height","top","bottom"]]; c.box=n,c.vbox=o.curry(n,"vertical"),c.hbox=o.curry(n,"horizontal"),c.getavailablesize=function(t,e,i){var n=e.width,o=e.height,a=l(t.x,n),r=l(t.y,o),u=l(t.x2,n),c=l(t.y2,o);return(isnan(a)||isnan(parsefloat(t.x)))&&(a=0),(isnan(u)||isnan(parsefloat(t.x2)))&&(u=n),(isnan(r)||isnan(parsefloat(t.y)))&&(r=0),(isnan(c)||isnan(parsefloat(t.y2)))&&(c=o),i=s.normalizecssarray(i||0),{width:math.max(u-a-i[1]-i[3],0),height:math.max(c-r-i[0]-i[2],0)}},c.getlayoutrect=function(t,e,i){i=s.normalizecssarray(i||0);var n=e.width,o=e.height,r=l(t.left,n),u=l(t.top,o),c=l(t.right,n),h=l(t.bottom,o),d=l(t.width,n),f=l(t.height,o),p=i[2]+i[0],g=i[1]+i[3],m=t.aspect;switch(isnan(d)&&(d=n-c-g-r),isnan(f)&&(f=o-h-p-u),isnan(d)&&isnan(f)&&(m>n/o?d=.8*n:f=.8*o),null!=m&&(isnan(d)&&(d=m*f),isnan(f)&&(f=d/m)),isnan(r)&&(r=n-c-d-g),isnan(u)&&(u=o-h-f-p),t.left||t.right){case"center":r=n/2-d/2-i[3];break;case"right":r=n-d-g}switch(t.top||t.bottom){case"middle":case"center":u=o/2-f/2-i[0];break;case"bottom":u=o-f-p}r=r||0,u=u||0,isnan(d)&&(d=n-r-(c||0)),isnan(f)&&(f=o-u-(h||0));var v=new a(r+i[3],u+i[0],d,f);return v.margin=i,v},c.positionelement=function(t,e,i,n,r){var s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingmode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new a(0,0,+e.width||0,+e.height||0):t.getboundingrect();else if(h=t.getboundingrect(),t.needlocaltransform()){var d=t.getlocaltransform();h=h.clone(),h.applytransform(d)}e=c.getlayoutrect(o.defaults({width:h.width,height:h.height},e),i,n);var f=t.position,p=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[p,g]:[f[0]+p,f[1]+g])}},c.sizecalculable=function(t,e){return null!=t[d[e][0]]||null!=t[d[e][1]]&&null!=t[d[e][2]]},c.mergelayoutparam=function(t,e,i){function n(i,n){var o={},s=0,c={},h=0,d=2;if(u(i,function(e){c[e]=t[e]}),u(i,function(t){a(e,t)&&(o[t]=c[t]=e[t]),r(o,t)&&s++,r(c,t)&&h++}),l[n])return r(e,i[1])?c[i[2]]=null:r(e,i[2])&&(c[i[1]]=null),c;if(h!==d&&s){if(s>=d)return o;for(var f=0;f=0;o--)n=a.merge(n,t[o],!0);l.set(this,"__defaultoption",n)}return l.get(this,"__defaultoption")},getreferringcomponents:function(t){return this.ecmodel.querycomponents({maintype:t,index:this.get(t+"index",!0),id:this.get(t+"id",!0)})}});l.enableclassmanagement(c,{registerwhenextend:!0}),s.enablesubtypedefaulter(c),s.enabletopologicaltravel(c,n),a.mixin(c,i(141)),t.exports=c},function(t,e,i){(function(e){function n(t){return d.isarray(t)||(t=[t]),t}function o(t,e){var i=t.dimensions,n=new v(d.map(i,t.getdimensioninfo,t),t.hostmodel);m(n,t);for(var o=n._storage={},a=t._storage,r=0;r=0?o[s]=new l.constructor(a[s].length):o[s]=a[s]}return n}var a="undefined",r="undefined"==typeof window?e:window,s=typeof r.float64array===a?array:r.float64array,l=typeof r.int32array===a?array:r.int32array,u={"float":s,"int":l,ordinal:array,number:array,time:array},c=i(10),h=i(48),d=i(1),f=i(6),p=d.isobject,g=["stackedon","hasitemoption","_namelist","_idlist","_rawdata"],m=function(t,e){d.each(g.concat(e.__wrappedmethods||[]),function(i){e.hasownproperty(i)&&(t[i]=e[i])}),t.__wrappedmethods=e.__wrappedmethods},v=function(t,e){t=t||["x","y"];for(var i={},n=[],o=0;o0&&(w+="__ec__"+c[b]),c[b]++),w&&(l[h]=w)}this._namelist=e,this._idlist=l},y.count=function(){return this.indices.length},y.get=function(t,e,i){var n=this._storage,o=this.indices[e];if(null==o)return nan;var a=n[t]&&n[t][o];if(i){var r=this._dimensioninfos[t];if(r&&r.stackable)for(var s=this.stackedon;s;){var l=s.get(t,e);(a>=0&&l>0||a<=0&&l<0)&&(a+=l),s=s.stackedon}}return a},y.getvalues=function(t,e,i){var n=[];d.isarray(t)||(i=e,e=t,t=this.dimensions);for(var o=0,a=t.length;ol&&(l=a));return this._extent[t+!!e]=[s,l]}return[1/0,-(1/0)]},y.getsum=function(t,e){var i=this._storage[t],n=0;if(i)for(var o=0,a=this.count();ot))return a;o=a-1}}return-1},y.indicesofnearest=function(t,e,i,n){var o=this._storage,a=o[t],r=[];if(!a)return r;null==n&&(n=1/0);for(var s=number.max_value,l=-1,u=0,c=this.count();u=0&&l<0)&&(s=d,l=h,r.length=0),r.push(u))}return r},y.getrawindex=function(t){var e=this.indices[t];return null==e?-1:e},y.getrawdataitem=function(t){return this._rawdata[this.getrawindex(t)]},y.getname=function(t){return this._namelist[this.indices[t]]||""},y.getid=function(t){return this._idlist[this.indices[t]]||this.getrawindex(t)+""},y.each=function(t,e,i,o){"function"==typeof t&&(o=i,i=e,e=t,t=[]),t=d.map(n(t),this.getdimension,this);var a=[],r=t.length,s=this.indices;o=o||this;for(var l=0;lp-g&&(d=p-g,c.length=d);for(var m=0;mc&&(u=0,l={}),u++,l[i]=o,o}function o(t,e,i,o){var a=((t||"")+"").split("\n").length,r=n(t,e),s=n("国",e),l=a*s,u=new d(0,0,r,l);switch(u.lineheight=s,o){case"bottom":case"alphabetic":u.y-=s;break;case"middle":u.y-=s/2}switch(i){case"end":case"right":u.x-=u.width;break;case"center":u.x-=u.width/2}return u}function a(t,e,i,n){var o=e.x,a=e.y,r=e.height,s=e.width,l=i.height,u=i.lineheight,c=r/2-l/2+u,h="left";switch(t){case"left":o-=n,a+=c,h="right";break;case"right":o+=n+s,a+=c,h="left";break;case"top":o+=s/2,a-=n+l-u,h="center";break;case"bottom":o+=s/2,a+=r+n+u,h="center";break;case"inside":o+=s/2,a+=c,h="center";break;case"insideleft":o+=n,a+=c,h="left";break;case"insideright":o+=s-n,a+=c,h="right";break;case"insidetop":o+=s/2,a+=n,h="center";break;case"insidebottom":o+=s/2,a+=r-l-n+u,h="center";break;case"insidetopleft":o+=n,a+=n,h="left";break;case"insidetopright":o+=s-n,a+=n,h="right";break;case"insidebottomleft":o+=n,a+=r-l-n+u;break;case"insidebottomright":o+=s-n,a+=r-l-n+u,h="right"}return{x:o,y:a,textalign:h,textbaseline:"alphabetic"}}function r(t,e,i,o,a){if(!e)return"";a=a||{},o=f(o,"...");for(var r=f(a.maxiterations,2),l=f(a.minchar,0),u=n("国",i),c=n("a",i),h=f(a.placeholder,""),d=e=math.max(0,e-1),p=0;p=c;p++)d-=c;var g=n(o);g>d&&(o="",g=0),d=e-g;for(var m=(t+"").split("\n"),p=0,v=m.length;p=r){y+=o;break}var b=0===_?s(y,d,c,u):x>0?math.floor(y.length*d/x):0;y=y.substr(0,b),x=n(y,i)}""===y&&(y=h),m[p]=y}}return m.join("\n")}function s(t,e,i,n){for(var o=0,a=0,r=t.length;a0&&u>0&&!c&&(l=0),l<0&&u<0&&!h&&(u=0)),[l,u]},u.nicescaleextent=function(t,e){var i=u.getscaleextent(t,e),n=null!=e.getmin(),o=null!=e.getmax(),a=e.get("splitnumber");"log"===t.type&&(t.base=e.get("logbase")),t.setextent(i[0],i[1]),t.niceextent(a,n,o);var r=e.get("mininterval");if(isfinite(r)&&!n&&!o&&"interval"===t.type){var s=t.getinterval(),l=math.max(math.abs(s),r)/s;i=t.getextent();var c=(i[1]+i[0])/2;t.setextent(l*(i[0]-c)+c,l*(i[1]-c)+c),t.niceextent(a)}var s=e.get("interval");null!=s&&t.setinterval&&t.setinterval(s)},u.createscalebymodel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new n(t.getcategories(),[1/0,-(1/0)]);case"value":return new o;default:return(a.getclass(e)||o).create(t)}},u.ifaxiscrosszero=function(t){var e=t.scale.getextent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},u.getaxislabelinterval=function(t,e,i,n){var o,a=0,r=0,s=1;e.length>40&&(s=math.floor(e.length/40));for(var u=0;u1?s:(a+1)*s-1},u.getformattedlabels=function(t,e){var i=t.scale,n=i.gettickslabels(),o=i.getticks();return"string"==typeof e?(e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e),s.map(n,e)):"function"==typeof e?s.map(o,function(i,n){return e(u.getaxisrawvalue(t,i),n)},this):n},u.getaxisrawvalue=function(t,e){return"category"===t.type?t.scale.getlabel(e):e},t.exports=u},function(t,e,i){"use strict";var n=i(1),o=i(7),a=i(15),r=i(6),s=i(13),l=i(61),u=i(9),c=i(12),h=a.set,d=a.get,f=o.encodehtml,p=o.addcommas,g=s.extend({type:"series.__base__",seriesindex:0,coordinatesystem:null,defaultoption:null,legenddataprovider:null,visualcoloraccesspath:"itemstyle.normal.color",layoutmode:null,init:function(t,e,i,n){this.seriesindex=this.componentindex,this.mergedefaultandtheme(t,i);var o=this.getinitialdata(t,i);h(this,"databeforeprocessed",o),this.restoredata()},mergedefaultandtheme:function(t,e){var i=this.layoutmode,o=i?c.getlayoutparams(t):{};n.merge(t,e.gettheme().get(this.subtype)),n.merge(t,this.getdefaultoption()),r.defaultemphasis(t.label,r.label_options),this.filldatatextstyle(t.data),i&&c.mergelayoutparam(t,o,i)},mergeoption:function(t,e){t=n.merge(this.option,t,!0),this.filldatatextstyle(t.data);var i=this.layoutmode;i&&c.mergelayoutparam(this.option,t,i);var o=this.getinitialdata(t,e);o&&(h(this,"data",o),h(this,"databeforeprocessed",o.cloneshallow()))},filldatatextstyle:function(t){if(t)for(var e=0;e',g=this.name;return"\0-"===g&&(g=""),e?h+f(this.name)+" : "+l:(g&&f(g)+"
")+h+(u?f(u)+" : "+l:l)},isanimationenabled:function(){if(u.node)return!1;var t=this.getshallow("animation");return t&&this.getdata().count()>this.getshallow("animationthreshold")&&(t=!1),t},restoredata:function(){h(this,"data",d(this,"databeforeprocessed").cloneshallow())},getcolorfrompalette:function(t,e){var i=this.ecmodel,n=l.getcolorfrompalette.call(this,t,e);return n||(n=i.getcolorfrompalette(t,e)),n},getaxistooltipdata:null,gettooltipposition:null});n.mixin(g,r.dataformatmixin),n.mixin(g,l),t.exports=g},function(t,e,i){"use strict";function n(t){return t>-w&&tw||t<-w}function a(t,e,i,n,o){var a=1-o;return a*a*(a*t+3*o*e)+o*o*(o*n+3*a*i)}function r(t,e,i,n,o){var a=1-o;return 3*(((e-t)*a+2*(i-e)*o)*a+(n-i)*o*o)}function s(t,e,i,o,a,r){var s=o+3*(e-i)-t,l=3*(i-2*e+t),u=3*(e-t),c=t-a,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(n(h)&&n(d))if(n(l))r[0]=0;else{var g=-u/l;g>=0&&g<=1&&(r[p++]=g)}else{var m=d*d-4*h*f;if(n(m)){var v=d/h,g=-l/s+v,y=-v/2;g>=0&&g<=1&&(r[p++]=g),y>=0&&y<=1&&(r[p++]=y)}else if(m>0){var x=b(m),w=h*l+1.5*s*(-d+x),s=h*l+1.5*s*(-d-x);w=w<0?-_(-w,i):_(w,i),s=s<0?-_(-s,i):_(s,i);var g=(-l-(w+s))/(3*s);g>=0&&g<=1&&(r[p++]=g)}else{var t=(2*h*l-3*s*d)/(2*b(h*h*h)),a=math.acos(t)/3,c=b(h),l=math.cos(a),g=(-l-2*c*l)/(3*s),y=(-l+c*(l+m*math.sin(a)))/(3*s),d=(-l+c*(l-m*math.sin(a)))/(3*s);g>=0&&g<=1&&(r[p++]=g),y>=0&&y<=1&&(r[p++]=y),d>=0&&d<=1&&(r[p++]=d)}}return p}function l(t,e,i,a,r){var s=6*i-12*e+6*t,l=9*e+3*a-3*t-9*i,u=3*e-3*t,c=0;if(n(l)){if(o(s)){var h=-u/s;h>=0&&h<=1&&(r[c++]=h)}}else{var d=s*s-4*l*u;if(n(d))r[0]=-s/(2*l);else if(d>0){var f=b(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&h<=1&&(r[c++]=h),p>=0&&p<=1&&(r[c++]=p)}}return c}function u(t,e,i,n,o,a){var r=(e-t)*o+t,s=(i-e)*o+e,l=(n-i)*o+i,u=(s-r)*o+r,c=(l-s)*o+s,h=(c-u)*o+u;a[0]=t,a[1]=r,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function c(t,e,i,n,o,r,s,l,u,c,h){var d,f,p,g,m,v=.005,y=1/0;t[0]=u,t[1]=c;for(var _=0;_<1;_+=.05)a[0]=a(t,i,o,s,_),a[1]=a(e,n,r,l,_),g=x(t,a),g=0&&g=0&&h<=1&&(r[c++]=h)}}else{var d=l*l-4*s*u;if(n(d)){var h=-l/(2*s);h>=0&&h<=1&&(r[c++]=h)}else if(d>0){var f=b(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&h<=1&&(r[c++]=h),p>=0&&p<=1&&(r[c++]=p)}}return c}function p(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function g(t,e,i,n,o){var a=(e-t)*n+t,r=(i-e)*n+e,s=(r-a)*n+a;o[0]=t,o[1]=a,o[2]=s,o[3]=s,o[4]=r,o[5]=i}function m(t,e,i,n,o,a,r,s,l){var u,c=.005,d=1/0;t[0]=r,t[1]=s;for(var f=0;f<1;f+=.05){a[0]=h(t,i,o,f),a[1]=h(e,n,a,f);var p=x(t,a);p=0&&p=0;if(a){var r="touchend"!=n?e.targettouches[0]:e.changedtouches[0];r&&o(t,r,e,i)}else o(t,e,e,i),e.zrdelta=e.wheeldelta?e.wheeldelta/120:-(e.detail||0)/3;return e}function s(t,e,i){h?t.addeventlistener(e,i):t.attachevent("on"+e,i)}function l(t,e,i){h?t.removeeventlistener(e,i):t.detachevent("on"+e,i)}var u=i(23),c=i(9),h="undefined"!=typeof window&&!!window.addeventlistener,d=h?function(t){t.preventdefault(),t.stoppropagation(),t.cancelbubble=!0}:function(t){t.returnvalue=!1,t.cancelbubble=!0};t.exports={clienttolocal:o,normalizeevent:r,addeventlistener:s,removeeventlistener:l,stop:d,dispatcher:u}},function(t,e,i){function n(t){return t=math.round(t),t<0?0:t>255?255:t}function o(t){return t=math.round(t),t<0?0:t>360?360:t}function a(t){return t<0?0:t>1?1:t}function r(t){return n(t.length&&"%"===t.charat(t.length-1)?parsefloat(t)/100*255:parseint(t,10))}function s(t){return a(t.length&&"%"===t.charat(t.length-1)?parsefloat(t)/100:parsefloat(t))}function l(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function u(t,e,i){return t+(e-t)*i}function c(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function d(t,e){t&&h(t,e),t=i.put(t,t||e.slice())}function f(t,e){if(t){e=e||[];var i=i.get(t);if(i)return h(e,i);t+="";var n=t.replace(/ /g,"").tolowercase();if(n in m)return h(e,m[n]),d(t,e),e;if("#"!==n.charat(0)){var o=n.indexof("("),a=n.indexof(")");if(o!==-1&&a+1===n.length){var l=n.substr(0,o),u=n.substr(o+1,a-(o+1)).split(","),f=1;switch(l){case"rgba":if(4!==u.length)return void c(e,0,0,0,1);f=s(u.pop());case"rgb":return 3!==u.length?void c(e,0,0,0,1):(c(e,r(u[0]),r(u[1]),r(u[2]),f),d(t,e),e);case"hsla":return 4!==u.length?void c(e,0,0,0,1):(u[3]=s(u[3]),p(u,e),d(t,e),e);case"hsl":return 3!==u.length?void c(e,0,0,0,1):(p(u,e),d(t,e),e);default:return}}c(e,0,0,0,1)}else{if(4===n.length){var g=parseint(n.substr(1),16);return g>=0&&g<=4095?(c(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(t,e),e):void c(e,0,0,0,1)}if(7===n.length){var g=parseint(n.substr(1),16);return g>=0&&g<=16777215?(c(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(t,e),e):void c(e,0,0,0,1)}}}}function p(t,e){var i=(parsefloat(t[0])%360+360)%360/360,o=s(t[1]),a=s(t[2]),r=a<=.5?a*(o+1):a+o-a*o,u=2*a-r;return e=e||[],c(e,n(255*l(u,r,i+1/3)),n(255*l(u,r,i)),n(255*l(u,r,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function g(t){if(t){var e,i,n=t[0]/255,o=t[1]/255,a=t[2]/255,r=math.min(n,o,a),s=math.max(n,o,a),l=s-r,u=(s+r)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+r):l/(2-s-r);var c=((s-n)/6+l/2)/l,h=((s-o)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:o===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function m(t,e){var i=f(t);if(i){for(var n=0;n<3;n++)e<0?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0;return w(i,4===i.length?"rgba":"rgb")}}function v(t,e){var i=f(t);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).tostring(16).slice(1)}function y(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var o=t*(e.length-1),r=math.floor(o),s=math.ceil(o),l=e[r],c=e[s],h=o-r;return i[0]=n(u(l[0],c[0],h)),i[1]=n(u(l[1],c[1],h)),i[2]=n(u(l[2],c[2],h)),i[3]=a(u(l[3],c[3],h)),i}}function x(t,e,i){if(e&&e.length&&t>=0&&t<=1){var o=t*(e.length-1),r=math.floor(o),s=math.ceil(o),l=f(e[r]),c=f(e[s]),h=o-r,d=w([n(u(l[0],c[0],h)),n(u(l[1],c[1],h)),n(u(l[2],c[2],h)),a(u(l[3],c[3],h))],"rgba");return i?{color:d,leftindex:r,rightindex:s,value:o}:d}}function _(t,e,i,n){if(t=f(t))return t=g(t),null!=e&&(t[0]=o(e)),null!=i&&(t[1]=s(i)),null!=n&&(t[2]=s(n)),w(p(t),"rgba")}function b(t,e){if(t=f(t),t&&null!=e)return t[3]=a(e),w(t,"rgba")}function w(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}var s=i(69),m={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1], moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},i=new s(20),t=null;t.exports={parse:f,lift:m,tohex:v,fastmaptocolor:y,maptocolor:x,modifyhsl:_,modifyalpha:b,stringify:w}},function(t,e){var i=array.prototype.slice,n=function(){this._$handlers={}};n.prototype={constructor:n,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var o=0;o3&&(e=i.call(e,1));for(var o=this._$handlers[t],a=o.length,r=0;r4&&(e=i.call(e,1,e.length-1));for(var o=e[e.length-1],a=this._$handlers[t],r=a.length,s=0;sthis._ux||y(e-this._yi)>this._uy||this._len<5;return this.adddata(l.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(l.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(l.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(l.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=g(o)*i+t,this._yi=m(o)*i+t,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(l.r,t,e,i,n),this},closepath:function(){this.adddata(l.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,this._dashidx=0;for(var e=0,i=0;ie.length&&(this._expanddata(),e=this.data);for(var i=0;i0&&g<=t||c<0&&g>=t||0==c&&(h>0&&m<=e||h<0&&m>=e);)n=this._dashidx,i=r[n],g+=c*i,m+=h*i,this._dashidx=(n+1)%y,c>0&&gl||h>0&&mu||s[n%2?"moveto":"lineto"](c>=0?f(g,t):p(g,t),h>=0?f(m,e):p(m,e));c=g-t,h=m-e,this._dashoffset=-v(c*c+h*h)},_dashedbezierto:function(t,e,i,o,a,r){var s,l,u,c,h,d=this._dashsum,f=this._dashoffset,p=this._linedash,g=this._ctx,m=this._xi,y=this._yi,x=n.cubicat,_=0,b=this._dashidx,w=p.length,s=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=x(m,t,i,a,s+.1)-x(m,t,i,a,s),u=x(y,e,o,r,s+.1)-x(y,e,o,r,s),_+=v(l*l+u*u);for(;bf));b++);for(s=(s-f)/_;s<=1;)c=x(m,t,i,a,s),h=x(y,e,o,r,s),b%2?g.moveto(c,h):g.lineto(c,h),s+=p[b]/_,b=(b+1)%w;b%2!==0&&g.lineto(a,r),l=a-c,u=r-h,this._dashoffset=-v(l*l+u*u)},_dashedquadraticto:function(t,e,i,n){var o=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedbezierto(t,e,i,n,o,a)},tostatic:function(){var t=this.data;t instanceof array&&(t.length=this._len,x&&(this.data=new float32array(t)))},getboundingrect:function(){u[0]=u[1]=h[0]=h[1]=number.max_value,c[0]=c[1]=d[0]=d[1]=-number.max_value;for(var t=this.data,e=0,i=0,n=0,s=0,f=0;fu||y(r-o)>c||d===h-1)&&(t.lineto(a,r),n=a,o=r);break;case l.c:t.beziercurveto(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],o=s[d-1];break;case l.q:t.quadraticcurveto(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],o=s[d-1];break;case l.a:var p=s[d++],v=s[d++],x=s[d++],_=s[d++],b=s[d++],w=s[d++],s=s[d++],m=s[d++],i=x>_?x:_,t=x>_?1:x/_,a=x>_?_/x:1,c=math.abs(x-_)>.001,l=b+w;c?(t.translate(p,v),t.rotate(s),t.scale(t,a),t.arc(0,0,i,b,l,1-m),t.scale(1/t,1/a),t.rotate(-s),t.translate(-p,-v)):t.arc(p,v,i,b,l,1-m),1==d&&(e=g(b)*x+p,i=m(b)*_+v),n=g(l)*x+p,o=m(l)*_+v;break;case l.r:e=n=s[d],i=o=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.z:t.closepath(),n=e,o=i}}}},_.cmd=l,t.exports=_},function(t,e,i){"use strict";function n(t){for(var e=0;e=0&&o(t)?function(t,e,i,n){return d.isdataitemoption(t)&&(x.hasitemoption=!0),n===y?i:g(p(t),v[n])}:function(t,e,i,n){var o=p(t),a=g(o&&o[n],v[n]);d.isdataitemoption(t)&&(x.hasitemoption=!0);var r=s&&s.categoryaxesmodels;return r&&r[e]&&"string"==typeof a&&(b[e]=b[e]||r[e].getcategories(),a=h.indexof(b[e],a),a<0&&!isnan(a)&&(a=+a)),a};return x.hasitemoption=!1,x.initdata(t,_,w),x}function r(t){return"category"!==t&&"time"!==t}function s(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function l(t,e){var i,n=[],o=t&&t.dimensions[t.categoryindex];if(o&&(i=t.categoryaxesmodels[o.name]),i){var a=i.getcategories();if(a){var r=e.length;if(h.isarray(e[0])&&e[0].length>1){n=[];for(var s=0;s=0||i&&n.indexof(i,r)<0)){var s=this.getshallow(r);null!=s&&(o[t[a][0]]=s)}}return o}}},function(t,e,i){"use strict";var n=i(3),o=i(1),a=i(2);i(56),i(116),a.extendcomponentview({type:"grid",render:function(t,e){this.group.removeall(),t.get("show")&&this.group.add(new n.rect({shape:t.coordinatesystem.getrect(),style:o.defaults({fill:t.get("backgroundcolor")},t.getitemstyle()),silent:!0,z2:-1}))}}),a.registerpreprocessor(function(t){t.xaxis&&t.yaxis&&!t.grid&&(t.grid={})})},function(t,e,i){function n(t,e){var i=t[1]-t[0],n=e,o=i/n/2;t[0]+=o,t[1]-=o}var o=i(4),a=o.linearmap,r=i(1),s=[0,1],l=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onband=!1};l.prototype={constructor:l,contain:function(t){var e=this._extent,i=math.min(e[0],e[1]),n=math.max(e[0],e[1]);return t>=i&&t<=n},containdata:function(t){return this.contain(this.datatocoord(t))},getextent:function(){var t=this._extent.slice();return t},getpixelprecision:function(t){return o.getpixelprecision(t||this.scale.getextent(),this._extent)},setextent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},datatocoord:function(t,e){var i=this._extent,o=this.scale;return t=o.normalize(t),this.onband&&"ordinal"===o.type&&(i=i.slice(),n(i,o.count())),a(t,s,i,e)},coordtodata:function(t,e){var i=this._extent,o=this.scale;this.onband&&"ordinal"===o.type&&(i=i.slice(),n(i,o.count()));var r=a(t,i,s,e);return this.scale.scale(r)},pointtodata:function(t,e){},gettickscoords:function(t){if(this.onband&&!t){for(var e=this.getbands(),i=[],n=0;n=e[0]&&t<=e[1]},a.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},a.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},a.unionextent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},a.unionextentfromdata=function(t,e){this.unionextent(t.getdataextent(e,!0))},a.getextent=function(){return this._extent.slice()},a.setextent=function(t,e){var i=this._extent;isnan(t)||(i[0]=t),isnan(e)||(i[1]=e)},a.gettickslabels=function(){for(var t=[],e=this.getticks(),i=0;i=0&&(i.splice(n,0,t),this._doadd(t))}return this},_doadd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addtostorage(t),t instanceof r&&t.addchildrentostorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,o=this._children,a=n.indexof(o,t);return a<0?this:(o.splice(a,1),t.parent=null,i&&(i.delfromstorage(t),t instanceof r&&t.delchildrenfromstorage(i)),e&&e.refresh(),this)},removeall:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e=0?n():h=settimeout(n,-a),u=o};return d.clear=function(){h&&(cleartimeout(h),h=null)},d.debouncenextcall=function(t){l=t},d},i.createorupdate=function(t,e,r,s){var l=t[e];if(l){var u=l[n]||l,c=l[a],h=l[o];if(h!==r||c!==s){if(null==r||!s)return t[e]=u;l=t[e]=i.throttle(u,r,"debounce"===s),l[n]=u,l[a]=s,l[o]=r}return l}},i.clear=function(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])},t.exports=i},function(t,e,i){function n(t){t=t||{},r.call(this,t);for(var e in t)t.hasownproperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new a(t.style),this._rect=null,this.__clippaths=[]}var o=i(1),a=i(72),r=i(65),s=i(86);n.prototype={constructor:n,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",recthover:!1,progressive:-1,beforebrush:function(t){},afterbrush:function(t){},brush:function(t,e){},getboundingrect:function(){},contain:function(t,e){return this.rectcontain(t,e)},traverse:function(t,e){t.call(e,this)},rectcontain:function(t,e){var i=this.transformcoordtolocal(t,e),n=this.getboundingrect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animatestyle:function(t){return this.animate("style",t)},attrkv:function(t,e){"style"!==t?r.prototype.attrkv.call(this,t,e):this.style.set(e)},setstyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},usestyle:function(t){return this.style=new a(t),this.dirty(!1),this}},o.inherits(n,r),o.mixin(n,s),t.exports=n},function(t,e){var i=function(t){this.colorstops=t||[]};i.prototype={constructor:i,addcolorstop:function(t,e){this.colorstops.push({offset:t,color:e})}},t.exports=i},function(t,e,i){function n(t){var e={componenttype:t.maintype};return e[t.maintype+"index"]=t.componentindex,e}function o(t,e,i,n){var o,a,r=f(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return p(r-x/2)?(a=l?"bottom":"top",o="center"):p(r-1.5*x)?(a=l?"top":"bottom",o="center"):(a="middle",o=r<1.5*x&&r>x/2?l?"left":"right":l?"right":"left"),{rotation:r,textalign:o,textverticalalign:a}}function a(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerevent")||e&&e.show)}function r(t,e){var i=t.get("axislabel.showminlabel"),n=t.get("axislabel.showmaxlabel"),o=e[0],a=e[1],r=e[e.length-1],l=e[e.length-2];i===!1?o.ignore=!0:null!=t.getmin()&&s(o,a)&&(i?a.ignore=!0:o.ignore=!0),n===!1?r.ignore=!0:null!=t.getmax()&&s(l,r)&&(n?l.ignore=!0:r.ignore=!0)}function s(t,e,i){var n=t&&t.getboundingrect().clone(),o=e&&e.getboundingrect().clone();if(n&&o){var a=m.identity([]);return m.rotate(a,a,-t.rotation),n.applytransform(m.mul([],a,t.getlocaltransform())),o.applytransform(m.mul([],a,e.getlocaltransform())),n.intersect(o)}}var l=i(1),u=i(7),c=i(3),h=i(10),d=i(4),f=d.remradian,p=d.isradianaroundzero,g=i(5),m=i(16),v=g.applytransform,y=l.retrieve,x=math.pi,_=function(t,e){this.opt=e,this.axismodel=t,l.defaults(e,{labeloffset:0,namedirection:1,tickdirection:1,labeldirection:1,silent:!0}),this.group=new c.group;var i=new c.group({position:e.position.slice(),rotation:e.rotation});i.updatetransform(),this._transform=i.transform,this._dumbgroup=i};_.prototype={constructor:_,hasbuilder:function(t){return!!b[t]},add:function(t){b[t].call(this)},getgroup:function(){return this.group}};var b={axisline:function(){var t=this.opt,e=this.axismodel;if(e.get("axisline.show")){var i=this.axismodel.axis.getextent(),n=this._transform,o=[i[0],0],a=[i[1],0];n&&(v(o,o,n),v(a,a,n)),this.group.add(new c.line(c.subpixeloptimizeline({anid:"line",shape:{x1:o[0],y1:o[1],x2:a[0],y2:a[1]},style:l.extend({linecap:"round"},e.getmodel("axisline.linestyle").getlinestyle()),strokecontainthreshold:t.strokecontainthreshold||5,silent:!0,z2:1})))}},axistick:function(){var t=this.axismodel,e=t.axis;if(t.get("axistick.show")&&!e.scale.isblank())for(var i=t.getmodel("axistick"),n=this.opt,o=i.getmodel("linestyle"),a=i.get("length"),r=m(i,n.labelinterval),s=e.gettickscoords(i.get("alignwithlabel")),u=e.scale.getticks(),h=[],d=[],f=this._transform,p=0;pp[1]?-1:1,m=["start"===s?p[0]-g*f:"end"===s?p[1]+g*f:(p[0]+p[1])/2,"middle"===s?t.labeloffset+h*f:0],v=e.get("namerotate");null!=v&&(v=v*x/180);var _;"middle"===s?r=w(t.rotation,null!=v?v:t.rotation,h):(r=o(t,s,v||0,p),_=t.axisnameavailablewidth,null!=_&&(_=math.abs(_/math.sin(r.rotation)),!isfinite(_)&&(_=null)));var b=d.getfont(),s=e.get("nametruncate",!0)||{},m=s.ellipsis,i=y(t.nametruncatemaxwidth,s.maxwidth,_),t=null!=m&&null!=i?u.truncatetext(i,i,b,m,{minchar:2,placeholder:s.placeholder}):i,a=e.get("tooltip",!0),c=e.maintype,l={componenttype:c,name:i,$vars:["name"]};l[c+"index"]=e.componentindex;var d=new c.text({anid:"name",__fulltext:i,__truncatedtext:t,style:{text:t,textfont:b,fill:d.gettextcolor()||e.get("axisline.linestyle.color"),textalign:r.textalign,textverticalalign:r.textverticalalign},position:m,rotation:r.rotation,silent:a(e),z2:1,tooltip:a&&a.show?l.extend({content:i,formatter:function(){return i},formatterparams:l},a):null});e.get("triggerevent")&&(d.eventdata=n(e),d.eventdata.targettype="axisname",d.eventdata.name=i),this._dumbgroup.add(d),d.updatetransform(),this.group.add(d),d.decomposetransform()}}},w=_.innertextlayout=function(t,e,i){var n,o,a=f(e-t);return p(a)?(o=i>0?"top":"bottom",n="center"):p(a-x)?(o=i>0?"bottom":"top",n="center"):(o="middle",n=a>0&&a0?"right":"left":i>0?"left":"right"),{rotation:a,textalign:n,textverticalalign:o}},s=_.ifignoreontick=function(t,e,i){var n,o=t.scale;return"ordinal"===o.type&&("function"==typeof i?(n=o.getticks()[e],!i(n,o.getlabel(n))):e%(i+1))},m=_.getinterval=function(t,e){var i=t.get("interval");return null!=i&&"auto"!=i||(i=e),i};t.exports=_},function(t,e,i){function n(t,e,i,n,s,l){var u=r.getaxispointerclass(t.axispointerclass);if(u){var c=a.getaxispointermodel(e);c?(t._axispointer||(t._axispointer=new u)).render(e,c,n,l):o(t,n)}}function o(t,e,i){var n=t._axispointer;n&&n.dispose(e,i),t._axispointer=null}var a=i(45),r=i(2).extendcomponentview({type:"axis",_axispointer:null,axispointerclass:null,render:function(t,e,i,o){this.axispointerclass&&a.fixvalue(t),r.superapply(this,"render",arguments),n(this,t,e,i,o,!0)},updateaxispointer:function(t,e,i,o,a){n(this,t,e,i,o,!1)},remove:function(t,e){var i=this._axispointer;i&&i.remove(e),r.superapply(this,"remove",arguments)},dispose:function(t,e){o(this,e),r.superapply(this,"dispose",arguments)}}),s=[];r.registeraxispointerclass=function(t,e){s[t]=e},r.getaxispointerclass=function(t){return t&&s[t]},t.exports=r},function(t,e,i){function n(t){return o.isobject(t)&&null!=t.value?t.value:t}var o=i(1),a=i(18);t.exports={getformattedlabels:function(){return a.getformattedlabels(this.axis,this.get("axislabel.formatter"))},getcategories:function(){return"category"===this.get("type")&&o.map(this.get("data"),n)},getmin:function(t){var e=this.option,i=t||null==e.rangestart?e.min:e.rangestart;return this.axis&&null!=i&&"datamin"!==i&&!o.eqnan(i)&&(i=this.axis.scale.parse(i)),i},getmax:function(t){var e=this.option,i=t||null==e.rangeend?e.max:e.rangeend;return this.axis&&null!=i&&"datamax"!==i&&!o.eqnan(i)&&(i=this.axis.scale.parse(i)),i},getneedcrosszero:function(){var t=this.option;return null==t.rangestart&&null==t.rangeend&&!t.scale},getcoordsysmodel:o.noop,setrange:function(t,e){this.option.rangestart=t,this.option.rangeend=e},resetrange:function(){this.option.rangestart=this.option.rangeend=null}}},function(t,e,i){var n=i(4),o=i(7),a=i(34),r=i(63),s=n.round,l=a.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]),l.prototype.setextent.call(this,e[0],e[1])},getinterval:function(){return this._interval||this.niceticks(),this._interval},setinterval:function(t){this._interval=t,this._niceextent=this._extent.slice()},getticks:function(){return this._interval||this.niceticks(),r.intervalscalegetticks(this._interval,this._extent,this._niceextent,this._intervalprecision)},gettickslabels:function(){for(var t=[],e=this.getticks(),i=0;i=0||t===e}function l(t){return!!t.get("handle.show")}var u=i(1),c=i(10),h=u.each,d=u.curry,f={};f.collect=function(t,e){var i={axesinfo:{},seriesinvolved:!1,coordsysaxesinfo:{},coordsysmap:{}};return n(i,t,e),i.seriesinvolved&&a(i,t),i},f.fixvalue=function(t){var e=f.getaxisinfo(t);if(e){var i=e.axispointermodel,n=e.axis.scale,o=i.option,a=i.get("status"),r=i.get("value");null!=r&&(r=n.parse(r));var s=l(i);null==a&&(o.status=s?"show":"hide");var u=n.getextent().slice();u[0]>u[1]&&u.reverse(),(null==r||r>u[1])&&(r=u[1]),r0?100:20}},getfirsttargetaxismodel:function(){var t;return d(function(e){if(null==t){var i=this.get(e.axisindex);i.length&&(t=this.dependentmodels[e.axis][i[0]])}},this),t},eachtargetaxis:function(t,e){var i=this.ecmodel;d(function(n){h(this.get(n.axisindex),function(o){t.call(e,n,o,this,i)},this)},this)},getaxisproxy:function(t,e){return this._axisproxies[t+"_"+e]},getaxismodel:function(t,e){var i=this.getaxisproxy(t,e);return i&&i.getaxismodel()},setrawrange:function(t,e){h(["start","end","startvalue","endvalue"],function(e){this.option[e]=t[e]},this),!e&&o(this,t)},getpercentrange:function(){var t=this.findrepresentativeaxisproxy();if(t)return t.getdatapercentwindow()},getvaluerange:function(t,e){if(null!=t||null!=e)return this.getaxisproxy(t,e).getdatavaluewindow();var i=this.findrepresentativeaxisproxy();return i?i.getdatavaluewindow():void 0},findrepresentativeaxisproxy:function(){var t=this._axisproxies;for(var e in t)if(t.hasownproperty(e)&&t[e].hostedby(this))return t[e];for(var e in t)if(t.hasownproperty(e)&&!t[e].hostedby(this))return t[e]},getrangepropmode:function(){return this._rangepropmode.slice()}});t.exports=f},function(t,e,i){var n=i(64);t.exports=n.extend({type:"datazoom",render:function(t,e,i,n){this.datazoommodel=t,this.ecmodel=e,this.api=i},gettargetcoordinfo:function(){function t(t,e,i,n){for(var o,a=0;a=0&&i.push(t)}),i}t.topologicaltravel=function(t,e,o,a){function r(t){u[t].entrycount--,0===u[t].entrycount&&c.push(t)}function s(t){h[t]=!0,r(t)}if(t.length){var l=i(e),u=l.graph,c=l.noentrylist,h={};for(n.each(t,function(t){h[t]=!0});c.length;){var d=c.pop(),f=u[d],p=!!h[d];p&&(o.call(a,d,f.originaldeps.slice()),delete h[d]),n.each(f.successor,p?s:r)}n.each(h,function(){throw new error("circle dependency may exists")})}}},t.exports=s},function(t,e){t.exports=function(t,e,i,n,o){n.eachrawseriesbytype(t,function(t){var o=t.getdata(),a=t.get("symbol")||e,r=t.get("symbolsize");o.setvisual({legendsymbol:i||a,symbol:a,symbolsize:r}),n.isseriesfiltered(t)||("function"==typeof r&&o.each(function(e){var i=t.getrawvalue(e),n=t.getdataparams(e);o.setitemvisual(e,"symbolsize",r(i,n))}),o.each(function(t){var e=o.getitemmodel(t),i=e.getshallow("symbol",!0),n=e.getshallow("symbolsize",!0);null!=i&&o.setitemvisual(t,"symbol",i),null!=n&&o.setitemvisual(t,"symbolsize",n)}))})}},function(t,e){function i(t){for(var e=0;t>=c;)e|=1&t,t>>=1;return t+e}function n(t,e,i,n){var a=e+1;if(a===i)return 1;if(n(t[a++],t[e])<0){for(;a=0;)a++;return a-e}function o(t,e,i){for(i--;e>>1,o(r,t[a])<0?l=a:s=a+1;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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=r}}function r(t,e,i,n,o,a){var r=0,s=0,l=1;if(a(t,e[i+o])>0){for(s=n-o;l0;)r=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),r+=o,l+=o}else{for(s=o+1;ls&&(l=s);var u=r;r=o-l,l=o-u}for(r++;r>>1);a(t,e[i+c])>0?r=c+1:l=c}return l}function s(t,e,i,n,o,a){var r=0,s=0,l=1;if(a(t,e[i+o])<0){for(s=o+1;ls&&(l=s);var u=r;r=o-l,l=o-u}else{for(s=n-o;l=0;)r=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),r+=o,l+=o}for(r++;r>>1);a(t,e[i+c])<0?l=c:r=c+1}return l}function l(t,e){function i(t,e){c[y]=t,f[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&f[t-1]<=f[t]+f[t+1]||t>=2&&f[t-2]<=f[t]+f[t-1])f[t-1]f[t+1])break;a(t)}}function o(){for(;y>1;){var t=y-2;t>0&&f[t-1]=h||g>=h);if(m)break;v<0&&(v=0),v+=2}if(p=v,p<1&&(p=1),1===n){for(l=0;l=0;l--)t[g+l]=t[f+l];return void(t[d]=x[c])}for(var m=p;;){var v=0,y=0,_=!1;do if(e(x[c],t[u])<0){if(t[d--]=t[u--],v++,y=0,0===--n){_=!0;break}}else if(t[d--]=x[c--],y++,v=0,1===--a){_=!0;break}while((v|y)=0;l--)t[g+l]=t[f+l];if(0===n){_=!0;break}}if(t[d--]=x[c--],1===--a){_=!0;break}if(y=a-r(t[u],x,0,a,a-1,e),0!==y){for(d-=y,c-=y,a-=y,g=d+1,f=c+1,l=0;l=h||y>=h);if(_)break;m<0&&(m=0),m+=2}if(p=m,p<1&&(p=1),1===a){for(d-=n,u-=n,g=d+1,f=u+1,l=n-1;l>=0;l--)t[g+l]=t[f+l];t[d]=x[c]}else{if(0===a)throw new error;for(f=d-(a-1),l=0;l>>1);var x=[];v=g<120?5:g<1542?10:g<119151?19:40,c=[],f=[],this.mergeruns=n,this.forcemergeruns=o,this.pushrun=i}function u(t,e,o,r){o||(o=0),r||(r=t.length);var s=r-o;if(!(s<2)){var u=0;if(sd&&(f=d),a(t,o,o+f,o+u,e),u=f}h.pushrun(o,u),h.mergeruns(),s-=u,o+=u}while(0!==s);h.forcemergeruns()}}var c=32,h=7,d=256;t.exports=u},function(t,e,i){var n=i(35);t.exports=function(){if(0!==n.debugmode)if(1==n.debugmode)for(var t in arguments)throw new error(arguments[t]);else if(n.debugmode>1)for(var t in arguments)console.log(arguments[t])}},function(t,e,i){function n(t){o.call(this,t)}var o=i(38),a=i(11),r=i(1),s=i(69),l=new s(50);n.prototype={constructor:n,type:"image",brush:function(t,e){var i,n=this.style,o=n.image;if(n.bind(t,this,e),i="string"==typeof o?this._image:o,!i&&o){var a=l.get(o);if(!a)return i=new image,i.onload=function(){i.onload=null;for(var t=0;t40&&(a=math.ceil(r/40));for(var s=0;ss||t<-s}var o=i(16),a=i(5),r=o.identity,s=5e-5,l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needlocaltransform=function(){return n(this.rotation)||n(this.position[0])||n(this.position[1])||n(this.scale[0]-1)||n(this.scale[1]-1)},u.updatetransform=function(){var t=this.parent,e=t&&t.transform,i=this.needlocaltransform(),n=this.transform;return i||e?(n=n||o.create(),i?this.getlocaltransform(n):r(n),e&&(i?o.mul(n,t.transform,n):o.copy(n,t.transform)),this.transform=n,this.invtransform=this.invtransform||o.create(),void o.invert(this.invtransform,n)):void(n&&r(n))},u.getlocaltransform=function(t){return l.getlocaltransform(this,t)},u.settransform=function(t){var e=this.transform,i=t.dpr||1;e?t.settransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.settransform(i,0,0,i,0,0)},u.restoretransform=function(t){var e=t.dpr||1;t.settransform(e,0,0,e,0,0)};var c=[];u.decomposetransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(o.mul(c,t.invtransform,e),e=c);var i=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],r=this.position,s=this.scale;n(i-1)&&(i=math.sqrt(i)),n(a-1)&&(a=math.sqrt(a)),e[0]<0&&(i=-i),e[3]<0&&(a=-a),r[0]=e[4],r[1]=e[5],s[0]=i,s[1]=a,this.rotation=math.atan2(-e[1]/a,e[0]/i)}},u.getglobalscale=function(){var t=this.transform;if(!t)return[1,1];var e=math.sqrt(t[0]*t[0]+t[1]*t[1]),i=math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},u.transformcoordtolocal=function(t,e){var i=[t,e],n=this.invtransform;return n&&a.applytransform(i,i,n),i},u.transformcoordtoglobal=function(t,e){var i=[t,e],n=this.transform;return n&&a.applytransform(i,i,n),i},l.getlocaltransform=function(t,e){e=e||[],r(e);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),o.scale(e,e,n),a&&o.rotate(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e},t.exports=l},function(t,e,i){var n=i(94),o=i(1),a=i(13),r=i(12),s=["value","category","time","log"];t.exports=function(t,e,i,l){o.each(s,function(a){e.extend({type:t+"axis."+a,mergedefaultandtheme:function(e,n){var s=this.layoutmode,l=s?r.getlayoutparams(e):{},u=n.gettheme();o.merge(e,u.get(a+"axis")),o.merge(e,this.getdefaultoption()),e.type=i(t,e),s&&r.mergelayoutparam(e,l,s)},defaultoption:o.mergeall([{},n[a+"axis"],l],!0)})}),a.registersubtypedefaulter(t+"axis",o.curry(i,t))}},function(t,e,i){"use strict";function n(t,e){return e.type||(e.data?"category":"value")}var o=i(13),a=i(1),r=i(58),s=o.extend({type:"cartesian2daxis",axis:null,init:function(){s.superapply(this,"init",arguments),this.resetrange()},mergeoption:function(){s.superapply(this,"mergeoption",arguments),this.resetrange()},restoredata:function(){s.superapply(this,"restoredata",arguments),this.resetrange()},getcoordsysmodel:function(){return this.ecmodel.querycomponents({maintype:"grid",index:this.option.gridindex,id:this.option.gridid})[0]}});a.merge(s.prototype,i(42));var l={offset:0};r("x",s,n,l),r("y",s,n,l),t.exports=s},function(t,e){t.exports=function(t,e){e.eachseriesbytype(t,function(t){var e=t.getdata(),i=t.coordinatesystem;if(i){var n=i.dimensions;1===n.length?e.each(n[0],function(t,n){e.setitemlayout(n,isnan(t)?[nan,nan]:i.datatopoint(t))}):2===n.length&&e.each(n,function(t,n,o){e.setitemlayout(o,isnan(t)||isnan(n)?[nan,nan]:i.datatopoint([t,n]))},!0)}})}},function(t,e,i){var n=i(15),o=n.set,a=n.get;t.exports={clearcolorpalette:function(){o(this,"coloridx",0),o(this,"colornamemap",{})},getcolorfrompalette:function(t,e){e=e||this;var i=a(e,"coloridx")||0,n=a(e,"colornamemap")||o(e,"colornamemap",{});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r.length){var s=r[i];return t&&(n[t]=s),o(e,"coloridx",(i+1)%r.length),s}}}},function(t,e){t.exports=function(t,e){var i=e.findcomponents({maintype:"legend"});i&&i.length&&e.eachseriesbytype(t,function(t){var e=t.getdata();e.filterself(function(t){for(var n=e.getname(t),o=0;ot[1]&&(t[0]=t[1])},r.intervalscalegetticks=function(t,e,i,n){var o=[];if(!t)return o;var r=1e4;e[0]r)return[];return e[1]>(o.length?o[o.length-1]:i[1])&&o.push(e[1]),o},t.exports=r},function(t,e,i){var n=i(36),o=i(49),a=i(15),r=function(){this.group=new n,this.uid=o.getuid("viewcomponent")};r.prototype={constructor:r,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};var s=r.prototype;s.updateview=s.updatelayout=s.updatevisual=function(t,e,i,n){},a.enableclassextend(r),a.enableclassmanagement(r,{registerwhenextend:!0}),t.exports=r},function(t,e,i){"use strict";var n=i(70),o=i(23),a=i(57),r=i(178),s=i(1),l=function(t){a.call(this,t),o.call(this,t),r.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clippath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposetransform(),this.dirty(!1)},beforeupdate:function(){},afterupdate:function(){},update:function(){this.updatetransform()},traverse:function(t,e){},attrkv:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrkv(t,e);else if(s.isobject(t))for(var i in t)t.hasownproperty(i)&&this.attrkv(i,t[i]);return this.dirty(!1),this},setclippath:function(t){var e=this.__zr;e&&t.addselftozr(e),this.clippath&&this.clippath!==t&&this.removeclippath(),this.clippath=t,t.__zr=e,t.__cliptarget=this,this.dirty(!1)},removeclippath:function(){var t=this.clippath;t&&(t.__zr&&t.removeselffromzr(t.__zr),t.__zr=null,t.__cliptarget=null,this.clippath=null,this.dirty(!1))},addselftozr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i.5?e:t}function s(t,e,i,n,o){var r=t.length;if(1==o)for(var s=0;so;if(a)t.length=o;else for(var r=n;r=0&&!(t[i]<=e);i--);i=math.min(i,x-2)}else{for(i=g;ie);i++);i=math.min(i-1,x-2)}g=i,f=e;var n=t[i+1]-t[i];if(0!==n)if(z=(e-t[i])/n,v)if(n=a[i],r=a[0===i?i:i-1],v=a[i>x-2?x-1:i+1],b=a[i>x-3?x-1:i+2],w)c(r,n,v,b,z,z*z,z*z*z,d(t,o),i);else{var l;if(s)l=c(r,n,v,b,z,z*z,z*z*z,h,1),l=f(h);else{if(m)return r(n,v,z);l=h(r,n,v,b,z,z*z,z*z*z)}p(t,o,l)}else if(w)s(a[i],a[i+1],z,d(t,o),i);else{var l;if(s)s(a[i],a[i+1],z,h,1),l=f(h);else{if(m)return r(a[i],a[i+1],z);l=a(a[i],a[i+1],z)}p(t,o,l)}},z=new g({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:w,ondestroy:i});return e&&"spline"!==e&&(z.easing=e),z}}}var g=i(157),m=i(22),v=i(1),y=v.isarraylike,x=array.prototype.slice,_=function(t,e,i,a){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||n,this._setter=a||o,this._clipcount=0,this._delay=0,this._donelist=[],this._onframelist=[],this._cliplist=[]};_.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasownproperty(n)){if(!i[n]){i[n]=[];var o=this._getter(this._target,n);if(null==o)continue;0!==t&&i[n].push({time:0,value:d(o)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframelist.push(t),this},pause:function(){for(var t=0;t=this._maxsize&&r>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastremovedentry=l}s?s.value=e:s=new o(e),s.key=t,i.insertentry(s),n[t]=s}return a},r.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertentry(e)),e.value},r.clear=function(){this._list.clear(),this._map={}},t.exports=a},function(t,e){var i=2311;t.exports=function(){return i++}},function(t,e){var i=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};i.prototype.getcanvaspattern=function(t){return t.createpattern(this.image,this.repeat||"repeat")},t.exports=i},function(t,e){function i(t,e,i){var n=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,r=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,o=o*i.width+i.x,a=a*i.height+i.y,r=r*i.height+i.y);var s=t.createlineargradient(n,a,o,r);return s}function n(t,e,i){var n=i.width,o=i.height,a=math.min(n,o),r=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(r=r*n+i.x,s=s*o+i.y,l*=a);var u=t.createradialgradient(r,s,0,r,s,l);return u}var o=[["shadowblur",0],["shadowoffsetx",0],["shadowoffsety",0],["shadowcolor","#000"],["linecap","butt"],["linejoin","miter"],["miterlimit",10]],a=function(t){this.extendfrom(t)};a.prototype={constructor:a,fill:"#000000",stroke:null,opacity:1,linedash:null,linedashoffset:0,shadowblur:0,shadowoffsetx:0,shadowoffsety:0,linewidth:1,strokenoscale:!1,text:null,textfill:"#000",textstroke:null,textposition:"inside",textoffset:null,textbaseline:null,textalign:null,textverticalalign:null,textdistance:5,textshadowblur:0,textshadowoffsetx:0,textshadowoffsety:0,texttransform:!1,textrotation:0,blend:null,bind:function(t,e,i){for(var n=this,a=i&&i.style,r=!a,s=0;s0},extendfrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasownproperty(n)||!e&&i.hasownproperty(n)||(i[n]=t[n])}},set:function(t,e){"string"==typeof t?this[t]=e:this.extendfrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendfrom(this,!0),t},getgradient:function(t,e,o){for(var a="radial"===e.type?n:i,r=a(t,e,o),s=e.colorstops,l=0;l=2){if(r&&"spline"!==r){var s=o(a,r,i,e.smoothconstraint);t.moveto(a[0][0],a[0][1]);for(var l=a.length,u=0;u<(i?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=a[(u+1)%l];t.beziercurveto(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===r&&(a=n(a,i)),t.moveto(a[0][0],a[0][1]);for(var u=1,f=a.length;u=0},a.createnameeach=function(t,e){t=t.slice();var i=o.map(t,n.capitalfirst);e=(e||[]).slice();var a=o.map(e,n.capitalfirst);return function(n,r){o.each(t,function(t,o){for(var s={name:t,capital:i[o]},l=0;l=0}function a(t,n){var a=!1;return e(function(e){o.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function r(t,n){n.nodes.push(t),e(function(e){o.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function o(t){!n(t,s)&&a(t,s)&&(r(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;r(i,s);var l;do l=!1,t(o);while(l);return s}},t.exports=a},function(t,e,i){var n=i(1);t.exports={updateselectedmap:function(t){this._selecttargetmap=n.reduce(t||[],function(t,e){return t[e.name]=e,t},{})},select:function(t){var e=this._selecttargetmap,i=e[t],o=this.get("selectedmode");"single"===o&&n.each(e,function(t){t.selected=!1}),i&&(i.selected=!0)},unselect:function(t){var e=this._selecttargetmap[t];e&&(e.selected=!1)},toggleselected:function(t){var e=this._selecttargetmap[t];if(null!=e)return this[e.selected?"unselect":"select"](t),e.selected},isselected:function(t){var e=this._selecttargetmap[t];return e&&e.selected}}},function(t,e){t.exports=function(t,e,i,n,o){function a(t,e,i){var n=e.length?e.slice():[e,e];return e[0]>e[1]&&n.reverse(),t<0&&n[0]+t0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=a(t,e,i),e[0]+=t,e[1]+=t):(t=a(t,e[o],i),e[o]+=t,"push"===n&&e[0]>e[1]&&(e[1-o]=e[o])),e):e}},function(t,e,i){function n(t){o.defaultemphasis(t.label,o.label_options)}var o=i(6),a=i(1),r=i(9),s=i(7),l=s.addcommas,u=s.encodehtml,c=i(2).extendcomponentmodel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergedefaultandtheme(t,i),this.mergeoption(t,i,n.createdbyself,!0)},isanimationenabled:function(){if(r.node)return!1;var t=this.__hostseries;return this.getshallow("animation")&&t&&t.isanimationenabled()},mergeoption:function(t,e,i,o){var r=this.constructor,s=this.maintype+"model";i||e.eachseries(function(t){var i=t.get(this.maintype),l=t[s];return i&&i.data?(l?l.mergeoption(i,e,!0):(o&&n(i),a.each(i.data,function(t){t instanceof array?(n(t[0]),n(t[1])):n(t)}),l=new r(i,this,e),a.extend(l,{maintype:this.maintype,seriesindex:t.seriesindex,name:t.name,createdbyself:!0}),l.__hostseries=t),void(t[s]=l)):void(t[s]=null)},this)},formattooltip:function(t){var e=this.getdata(),i=this.getrawvalue(t),n=a.isarray(i)?a.map(i,l).join(", "):l(i),o=e.getname(t),r=u(this.name);return(null!=i||o)&&(r+="
"),o&&(r+=u(o),null!=i&&(r+=" : ")),null!=i&&(r+=u(n)),r},getdata:function(){return this._data},setdata:function(t){this._data=t}});a.mixin(c,o.dataformatmixin),t.exports=c},function(t,e,i){t.exports=i(2).extendcomponentview({type:"marker",init:function(){this.markergroupmap={}},render:function(t,e,i){var n=this.markergroupmap;for(var o in n)n.hasownproperty(o)&&(n[o].__keep=!1);var a=this.type+"model";e.eachseries(function(t){var n=t[a];n&&this.renderseries(t,n,e,i)},this);for(var o in n)n.hasownproperty(o)&&!n[o].__keep&&this.group.remove(n[o].group)},renderseries:function(){}})},function(t,e,i){function n(t){return!(isnan(parsefloat(t.x))&&isnan(parsefloat(t.y)))}function o(t){return!isnan(parsefloat(t.x))&&!isnan(parsefloat(t.y))}function a(t,e,i){var n=-1;do n=math.max(l.getprecision(t.get(e,i)),n),t=t.stackedon;while(t);return n}function r(t,e,i,n,o,r){var s=[],l=m(e,n,t),u=e.indicesofnearest(n,l,!0)[0];s[o]=e.get(i,u,!0),s[r]=e.get(n,u,!0);var c=a(e,n,u);return c>=0&&(s[r]=+s[r].tofixed(c)),s}var s=i(1),l=i(4),u=s.indexof,c=s.curry,h={min:c(r,"min"),max:c(r,"max"),average:c(r,"average")},d=function(t,e){var i=t.getdata(),n=t.coordinatesystem;if(e&&!o(e)&&!s.isarray(e.coord)&&n){var a=n.dimensions,r=f(e,i,n,t);if(e=s.clone(e),e.type&&h[e.type]&&r.baseaxis&&r.valueaxis){var l=u(a,r.baseaxis.dim),c=u(a,r.valueaxis.dim);e.coord=h[e.type](i,r.basedatadim,r.valuedatadim,l,c),e.value=e.coord[c]}else{for(var d=[null!=e.xaxis?e.xaxis:e.radiusaxis,null!=e.yaxis?e.yaxis:e.angleaxis],p=0;p<2;p++)if(h[d[p]]){var g=t.coorddimtodatadim(a[p])[0];d[p]=m(i,g,d[p])}e.coord=d}}return e},f=function(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(n.datadimtocoorddim(o.valuedatadim)),o.baseaxis=i.getotheraxis(o.valueaxis),o.basedatadim=n.coorddimtodatadim(o.baseaxis.dim)[0]):(o.baseaxis=n.getbaseaxis(),o.valueaxis=i.getotheraxis(o.baseaxis),o.basedatadim=n.coorddimtodatadim(o.baseaxis.dim)[0],o.valuedatadim=n.coorddimtodatadim(o.valueaxis.dim)[0]),o},p=function(t,e){return!(t&&t.containdata&&e.coord&&!n(e))||t.containdata(e.coord)},g=function(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value},m=function(t,e,i){if("average"===i){var n=0,o=0;return t.each(e,function(t,e){isnan(t)||(n+=t,o++)},!0),n/o}return t.getdataextent(e,!0)["max"===i?1:0]};t.exports={datatransform:d,datafilter:p,dimvaluegetter:g,getaxisinfo:f,numcalculate:m}},function(t,e,i){function n(t){var e=t.piecelist;t.hasspecialvisual=!1,g.each(e,function(e,i){e.originindex=i,null!=e.visual&&(t.hasspecialvisual=!0)})}function o(t){var e=t.categories,i=t.visual,n=t.categorymap={};if(y(e,function(t,e){n[t]=e}),!g.isarray(i)){var o=[];g.isobject(i)?y(i,function(t,e){var i=n[e];o[null!=i?i:_]=t}):o[_]=i,i=f(t,o)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function a(t,e){var i=t.visual,n=[];g.isobject(i)?y(i,function(t){n.push(t)}):null!=i&&n.push(i);var o={color:1,symbol:1};e||1!==n.length||o.hasownproperty(t.type)||(n[1]=n[0]),f(t,n)}function r(t){return{applyvisual:function(e,i,n){e=this.mapvaluetovisual(e),n("color",t(i("color"),e))},_domap:h([0,1])}}function s(t){var e=this.option.visual;return e[math.round(v(t,[0,1],[0,e.length-1],!0))]||{}}function l(t){return function(e,i,n){n(t,this.mapvaluetovisual(e))}}function u(t){var e=this.option.visual;return e[this.option.loop&&t!==_?t%e.length:t]}function c(){return this.option.visual[0]}function h(t){return{linear:function(e){return v(e,t,this.option.visual,!0)},category:u,piecewise:function(e,i){var n=d.call(this,i);return null==n&&(n=v(e,t,this.option.visual,!0)),n},fixed:c}}function d(t){var e=this.option,i=e.piecelist;if(e.hasspecialvisual){var n=b.findpieceindex(t,i),o=i[n];if(o&&o.visual)return o.visual[this.type]}}function f(t,e){return t.visual=e,"color"===t.type&&(t.parsedvisual=g.map(e,function(t){return m.parse(t)})),e}function p(t,e,i){return t?e<=i:e1e-4)return p[0]=t-i,p[1]=e-o,g[0]=t+i,void(g[1]=e+o);if(c[0]=u(a)*i+t,c[1]=l(a)*o+e,h[0]=u(r)*i+t,h[1]=l(r)*o+e,m(p,c,h),v(g,c,h),a%=f,a<0&&(a+=f),r%=f,r<0&&(r+=f),a>r&&!s?r+=f:aa&&(d[0]=u(_)*i+t,d[1]=l(_)*o+e,m(p,d,p),v(g,d,g))},t.exports=a},function(t,e,i){var n=i(38),o=i(1),a=i(17),r=function(t){n.call(this,t)};r.prototype={constructor:r,type:"text",brush:function(t,e){var i=this.style,n=i.x||0,o=i.y||0,r=i.text;if(null!=r&&(r+=""),i.bind(t,this,e),r){this.settransform(t);var s,l=i.textalign,u=i.textfont||i.font;if(i.textverticalalign){var c=a.getboundingrect(r,u,i.textalign,"top");switch(s="middle",i.textverticalalign){case"middle":o-=c.height/2-c.lineheight/2;break;case"bottom":o-=c.height-c.lineheight/2;break;default:o+=c.lineheight/2}}else s=i.textbaseline;t.font=u||"12px sans-serif",t.textalign=l||"left",t.textalign!==l&&(t.textalign="left"),t.textbaseline=s||"alphabetic",t.textbaseline!==s&&(t.textbaseline="alphabetic");for(var h=a.measuretext("国",t.font).width,d=r.split("\n"),f=0;f=0?parsefloat(t)/100*e:parsefloat(t):t}var o=i(17),a=i(11),r=new a,s=function(){};s.prototype={constructor:s,drawrecttext:function(t,e,i){var a=this.style,s=a.text;if(null!=s&&(s+=""),s){t.save();var l,u,c=a.textposition,h=a.textoffset,d=a.textdistance,f=a.textalign,p=a.textfont||a.font,g=a.textbaseline,m=a.textverticalalign;i=i||o.getboundingrect(s,p,f,g);var v=this.transform;if(a.texttransform?this.settransform(t):v&&(r.copy(e),r.applytransform(v),e=r),c instanceof array){if(l=e.x+n(c[0],e.width),u=e.y+n(c[1],e.height),f=f||"left",g=g||"top",m){switch(m){case"middle":u-=i.height/2-i.lineheight/2;break;case"bottom":u-=i.height-i.lineheight/2;break;default:u+=i.lineheight/2}g="middle"}}else{var y=o.adjusttextpositiononrect(c,e,i,d);l=y.x,u=y.y,f=f||y.textalign,g=g||y.textbaseline}h&&(l+=h[0],u+=h[1]),t.textalign=f||"left",t.textbaseline=g||"alphabetic";var x=a.textfill,_=a.textstroke;x&&(t.fillstyle=x),_&&(t.strokestyle=_),t.font=p||"12px sans-serif",t.shadowblur=a.textshadowblur,t.shadowcolor=a.textshadowcolor||"transparent",t.shadowoffsetx=a.textshadowoffsetx,t.shadowoffsety=a.textshadowoffsety;var b=s.split("\n");a.textrotation&&(v&&t.translate(v[4],v[5]),t.rotate(a.textrotation),v&&t.translate(-v[4],-v[5]));for(var w=0;w=a||b<0)break;if(n(s)){if(x){b+=r;continue}break}if(b===i)t[r>0?"moveto":"lineto"](s[0],s[1]),h(f,s);else if(v>0){var m=b+r,i=e[m];if(x)for(;i&&n(e[m]);)m+=r,i=e[m];var t=.5,a=e[_],i=e[m];if(!i||n(i))h(p,s);else{n(i)&&!x&&(i=s),s.sub(d,i,a);var c,l;if("x"===y||"y"===y){var d="x"===y?0:1;c=math.abs(s[d]-a[d]),l=math.abs(s[d]-i[d])}else c=s.dist(s,a),l=s.dist(s,i);t=l/(l+c),c(p,s,d,-v*(1-t))}l(f,f,m),u(f,f,g),l(p,p,m),u(p,p,g),t.beziercurveto(f[0],f[1],p[0],p[1],s[0],s[1]),c(f,s,d,v*t)}else t.lineto(s[0],s[1]);_=b,b+=r}return w}function a(t,e){var i=[1/0,1/0],n=[-(1/0),-(1/0)];if(e)for(var o=0;on[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var r=i(8),s=i(5),l=s.min,u=s.max,c=s.scaleandadd,h=s.copy,d=[],f=[],p=[];t.exports={polyline:r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothconstraint:!0,smoothmonotone:null,connectnulls:!1},style:{fill:null,stroke:"#000"},buildpath:function(t,e){var i=e.points,r=0,s=i.length,l=a(i,e.smoothconstraint);if(e.connectnulls){for(;s>0&&n(i[s-1]);s--);for(;r0&&n(i[l-1]);l--);for(;s=0},wraptreepathinfo:function(t,e){for(var i=[];t;){var n=t.dataindex;i.push({name:t.name,dataindex:n,value:e.getrawvalue(n)}),t=t.parentnode}return i.reverse(),i}};t.exports=o},function(t,e,i){function n(t){this.pointerchecker,this._zr=t;var e=h.bind,i=e(o,this),n=e(a,this),u=e(r,this),d=e(s,this),f=e(l,this);c.call(this),this.setpointerchecker=function(t){this.pointerchecker=t},this.enable=function(e){this.disable(),null==e&&(e=!0),e!==!0&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",u)),e!==!0&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",d),t.on("pinch",f))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",u),t.off("mousewheel",d),t.off("pinch",f)},this.dispose=this.disable,this.isdragging=function(){return this._dragging},this.ispinching=function(){return this._pinching}}function o(t){if(!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 a(t){if(this._dragging&&(d.stop(t.event),"pinch"!==t.gestureevent)){if(f.istaken(this._zr,"globalpan"))return;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,d.stop(t.event),this.trigger("pan",a,r,n,o,e,i)}}function r(t){this._dragging=!1}function s(t){if(0!==t.wheeldelta){var e=t.wheeldelta>0?1.1:1/1.1;u.call(this,t,e,t.offsetx,t.offsety)}}function l(t){if(!f.istaken(this._zr,"globalpan")){var e=t.pinchscale>1?1.1:1/1.1;u.call(this,t,e,t.pinchx,t.pinchy)}}function u(t,e,i,n){this.pointerchecker&&this.pointerchecker(t,i,n)&&(d.stop(t.event),this.trigger("zoom",e,i,n))}var c=i(23),h=i(1),d=i(21),f=i(128);h.mixin(n,c),t.exports=n},function(t,e,i){var n=i(1),o={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,linestyle:{color:"#333",width:1,type:"solid"}},axistick:{show:!0,inside:!1,length:5,linestyle:{width:1}},axislabel:{show:!0,inside:!1,rotate:0,showminlabel:null,showmaxlabel:null,margin:8,textstyle:{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)"]}}},a=n.merge({boundarygap:!0,splitline:{show:!1},axistick:{alignwithlabel:!1,interval:"auto"},axislabel:{interval:"auto"}},o),r=n.merge({boundarygap:[0,0],splitnumber:5},o),s=n.defaults({scale:!0,min:"datamin",max:"datamax"},r),l=n.defaults({logbase:10},r);l.scale=!0,t.exports={categoryaxis:a,valueaxis:r,timeaxis:s,logaxis:l}},function(t,e,i){"use strict";function n(t){return t.get("stack")||"__ec_stack_"+t.seriesindex}function o(t){return t.dim+t.index}function a(t,e){var i={};s.each(t,function(t,e){var a=t.getdata(),r=t.coordinatesystem,s=r.getbaseaxis(),l=s.getextent(),c="category"===s.type?s.getbandwidth():math.abs(l[1]-l[0])/a.count(),h=i[o(s)]||{bandwidth:c,remainedwidth:c,autowidthcount:0,categorygap:"20%",gap:"30%",stacks:{}},d=h.stacks;i[o(s)]=h;var f=n(t);d[f]||h.autowidthcount++,d[f]=d[f]||{width:0,maxwidth:0};var p=u(t.get("barwidth"),c),g=u(t.get("barmaxwidth"),c),m=t.get("bargap"),v=t.get("barcategorygap");p&&!d[f].width&&(p=math.min(h.remainedwidth,p),d[f].width=p,h.remainedwidth-=p),g&&(d[f].maxwidth=g),null!=m&&(h.gap=m),null!=v&&(h.categorygap=v)});var a={};return s.each(i,function(t,e){a[e]={};var i=t.stacks,n=t.bandwidth,o=u(t.categorygap,n),r=u(t.gap,1),l=t.remainedwidth,c=t.autowidthcount,h=(l-o)/(c+(c-1)*r);h=math.max(h,0),s.each(i,function(t,e){var i=t.maxwidth;i&&i=0?"p":"n",v=m[i],y=l[s][i][c],x=u[s][i][c];f.ishorizontal()?(n=y,o=v[1]+h,a=v[0]-x,r=d,u[s][i][c]+=a,math.abs(a)e+s&&r>n+s||rt+s&&a>i+s||ae+c&&u>o+c&&u>r+c||ut+c&&l>i+c&&l>a+c||le&&a>n||ao?r:0}},function(t,e,i){"use strict";var n=i(1),o=i(39),a=function(t,e,i,n,a,r){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=r||!1,o.call(this,a)};a.prototype={constructor:a},n.inherits(a,o),t.exports=a},function(t,e,i){"use strict";function n(t){o.each(a,function(e){this[e]=o.bind(t[e],t)},this)}var o=i(1),a=["getdom","getzr","getwidth","getheight","getdevicepixelratio","dispatchaction","isdisposed","on","off","getdataurl","getconnecteddataurl","getmodel","getoption","getviewofcomponentmodel","getviewofseriesmodel"];t.exports=n},function(t,e,i){var n=i(1);i(56),i(102),i(103);var o=i(95),a=i(2);a.registerlayout(n.curry(o,"bar")),a.registervisual(function(t){t.eachseriesbytype("bar",function(t){var e=t.getdata();e.setvisual("legendsymbol","roundrect")})}),i(32)},function(t,e,i){t.exports=i(89).extend({type:"series.bar",dependencies:["grid","polar"],brushselector:"rect"})},function(t,e,i){"use strict";function n(t,e,i,n,o,a,r){var s=new u.rect({shape:l.extend({},n)});if(a){var c=s.shape,h=o?"height":"width",d={};c[h]=0,d[h]=n[h],u[r?"updateprops":"initprops"](s,{shape:d},a,e)}return s}function o(t,e,i){i.style.text="",u.updateprops(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function a(t,e,i){var n=t.getitemlayout(e),o=s(i,n),a=n.width>0?1:-1,r=n.height>0?1:-1;return{x:n.x+a*o/2,y:n.y+r*o/2,width:n.width-a*o,height:n.height-r*o}}function r(t,e,i,n,o,a,r){var s=e.getitemvisual(i,"color"),h=e.getitemvisual(i,"opacity"),d=n.getmodel("itemstyle.normal"),f=n.getmodel("itemstyle.emphasis").getbaritemstyle();t.setshape("r",d.get("barborderradius")||0),t.usestyle(l.defaults({fill:s,opacity:h},d.getbaritemstyle()));var p=r?o.height>0?"bottom":"top":o.width>0?"left":"right";c.setlabel(t.style,f,n,s,a,i,p),u.sethoverstyle(t,f)}function s(t,e){var i=t.get(h)||0;return math.min(i,math.abs(e.width),math.abs(e.height))}var l=i(1),u=i(3),c=i(90),h=["itemstyle","normal","barborderwidth"];l.extend(i(10).prototype,i(104));var d=i(2).extendchartview({type:"bar",render:function(t,e,i){var n=t.get("coordinatesystem");return"cartesian2d"===n&&this._renderoncartesian(t,e,i),this.group},dispose:l.noop,_renderoncartesian:function(t,e,i){var s=this.group,l=t.getdata(),c=this._data,h=t.coordinatesystem,d=h.getbaseaxis(),f=d.ishorizontal(),p=t.isanimationenabled()?t:null;l.diff(c).add(function(e){if(l.hasvalue(e)){var i=l.getitemmodel(e),o=a(l,e,i),u=n(l,e,i,o,f,p);l.setitemgraphicel(e,u),s.add(u),r(u,l,e,i,o,t,f)}}).update(function(e,i){var o=c.getitemgraphicel(i);if(!l.hasvalue(e))return void s.remove(o);var h=l.getitemmodel(e),d=a(l,e,h);o?u.updateprops(o,{shape:d},p,e):o=n(l,e,h,d,f,p,!0),l.setitemgraphicel(e,o),s.add(o),r(o,l,e,h,d,t,f)}).remove(function(t){var e=c.getitemgraphicel(t);e&&o(t,p,e)}).execute(),this._data=l},remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachitemgraphicel(function(e){o(e.dataindex,t,e)}):i.removeall()}});t.exports=d},function(t,e,i){var n=i(31)([["fill","color"],["stroke","bordercolor"],["linewidth","borderwidth"],["stroke","barbordercolor"],["linewidth","barborderwidth"],["opacity"],["shadowblur"],["shadowoffsetx"],["shadowoffsety"],["shadowcolor"]]);t.exports={getbaritemstyle:function(t){var e=n.call(this,t);if(this.getborderlinedash){var i=this.getborderlinedash();i&&(e.linedash=i)}return e}}},function(t,e,i){function n(t){return"_"+t+"type"}function o(t,e,i){var n=e.getitemvisual(i,"color"),o=e.getitemvisual(i,t),a=e.getitemvisual(i,t+"size");if(o&&"none"!==o){f.isarray(a)||(a=[a,a]);var r=u.createsymbol(o,-a[0]/2,-a[1]/2,a[0],a[1],n);return r.name=t,r}}function a(t){var e=new h({name:"line"});return r(e.shape,t),e}function r(t,e){var i=e[0],n=e[1],o=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,o?(t.cpx1=o[0],t.cpy1=o[1]):(t.cpx1=nan,t.cpy1=nan)}function s(){var t=this,e=t.childofname("fromsymbol"),i=t.childofname("tosymbol"),n=t.childofname("label");if(e||i||!n.ignore){for(var o=1,a=this.parent;a;)a.scale&&(o/=a.scale[0]),a=a.parent;var r=t.childofname("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointat(0),u=r.pointat(s),h=c.sub([],u,l);if(c.normalize(h,h),e){e.attr("position",l);var d=r.tangentat(0);e.attr("rotation",math.pi/2-math.atan2(d[1],d[0])),e.attr("scale",[o*s,o*s])}if(i){i.attr("position",u);var d=r.tangentat(1);i.attr("rotation",-math.pi/2-math.atan2(d[1],d[0])),i.attr("scale",[o*s,o*s])}if(!n.ignore){n.attr("position",u);var f,p,g,m=5*o;if("end"===n.__position)f=[h[0]*m+u[0],h[1]*m+u[1]],p=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var v=s/2,d=r.tangentat(v),y=[d[1],-d[0]],x=r.pointat(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),f=[x[0]+y[0]*m,x[1]+y[1]*m],p="center",g="bottom";var _=-math.atan2(d[1],d[0]);u[0].8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textverticalalign:n.__verticalalign||g,textalign:n.__textalign||p},position:f,scale:[o,o]})}}}}function l(t,e,i){d.group.call(this),this._createline(t,e,i)}var u=i(24),c=i(5),h=i(190),d=i(3),f=i(1),p=i(4),g=["fromsymbol","tosymbol"],m=l.prototype;m.beforeupdate=s,m._createline=function(t,e,i){var r=t.hostmodel,s=t.getitemlayout(e),l=a(s);l.shape.percent=0,d.initprops(l,{shape:{percent:1}},r,e),this.add(l);var u=new d.text({name:"label"});this.add(u),f.each(g,function(i){var a=o(i,t,e);this.add(a),this[n(i)]=t.getitemvisual(e,i)},this),this._updatecommonstl(t,e,i)},m.updatedata=function(t,e,i){var a=t.hostmodel,s=this.childofname("line"),l=t.getitemlayout(e),u={shape:{}};r(u.shape,l),d.updateprops(s,u,a,e),f.each(g,function(i){var a=t.getitemvisual(e,i),r=n(i);if(this[r]!==a){this.remove(this.childofname(i));var s=o(i,t,e);this.add(s)}this[r]=a},this),this._updatecommonstl(t,e,i)},m._updatecommonstl=function(t,e,i){var n=t.hostmodel,o=this.childofname("line"),a=i&&i.linestyle,r=i&&i.hoverlinestyle,s=i&&i.labelmodel,l=i&&i.hoverlabelmodel;if(!i||t.hasitemoption){var u=t.getitemmodel(e);a=u.getmodel("linestyle.normal").getlinestyle(),r=u.getmodel("linestyle.emphasis").getlinestyle(),s=u.getmodel("label.normal"),l=u.getmodel("label.emphasis")}var c=t.getitemvisual(e,"color"),h=f.retrieve(t.getitemvisual(e,"opacity"),a.opacity,1);o.usestyle(f.defaults({strokenoscale:!0,fill:"none",stroke:c,opacity:h},a)),o.hoverstyle=r,f.each(g,function(t){var e=this.childofname(t);e&&(e.setcolor(c),e.setstyle({opacity:h}))},this);var m,v,y=s.getshallow("show"),x=l.getshallow("show"),_=this.childofname("label");if(y||x){var b=n.getrawvalue(e);v=null==b?v=t.getname(e):isfinite(b)?p.round(b):b,m=c||"#000"}if(y){var w=s.getmodel("textstyle");_.setstyle({text:f.retrieve(n.getformattedlabel(e,"normal",t.datatype),v),textfont:w.getfont(),fill:w.gettextcolor()||m}),_.__textalign=w.get("align"),_.__verticalalign=w.get("baseline"),_.__position=s.get("position")}else _.setstyle("text","");if(x){var s=l.getmodel("textstyle");_.hoverstyle={text:f.retrieve(n.getformattedlabel(e,"emphasis",t.datatype),v),textfont:s.getfont(),fill:s.gettextcolor()||m}}else _.hoverstyle={text:""};_.ignore=!y&&!x,d.sethoverstyle(this)},m.updatelayout=function(t,e){this.setlinepoints(t.getitemlayout(e))},m.setlinepoints=function(t){var e=this.childofname("line");r(e.shape,t),e.dirty()},f.inherits(l,d.group),t.exports=l},function(t,e,i){function n(t){return isnan(t[0])||isnan(t[1])}function o(t){return!n(t[0])&&!n(t[1])}function a(t){this._ctor=t||s,this.group=new r.group}var r=i(3),s=i(105),l=a.prototype;l.updatedata=function(t){var e=this._linedata,i=this.group,n=this._ctor,a=t.hostmodel,r={linestyle:a.getmodel("linestyle.normal").getlinestyle(),hoverlinestyle:a.getmodel("linestyle.emphasis").getlinestyle(),labelmodel:a.getmodel("label.normal"),hoverlabelmodel:a.getmodel("label.emphasis")};t.diff(e).add(function(e){if(o(t.getitemlayout(e))){var a=new n(t,e,r);t.setitemgraphicel(e,a),i.add(a)}}).update(function(a,s){var l=e.getitemgraphicel(s);return o(t.getitemlayout(a))?(l?l.updatedata(t,a,r):l=new n(t,a,r),t.setitemgraphicel(a,l),void i.add(l)):void i.remove(l)}).remove(function(t){i.remove(e.getitemgraphicel(t))}).execute(),this._linedata=t},l.updatelayout=function(){var t=this._linedata;t.eachitemgraphicel(function(e,i){e.updatelayout(t,i)},this)},l.remove=function(){this.group.removeall()},t.exports=a},function(t,e,i){var n=i(1),o=i(2),a=o.priority;i(108),i(109),o.registervisual(n.curry(i(50),"line","circle","line")),o.registerlayout(n.curry(i(60),"line")),o.registerprocessor(a.processor.statistic,n.curry(i(147),"line")),i(32)},function(t,e,i){"use strict";var n=i(28),o=i(19);t.exports=o.extend({type:"series.line",dependencies:["grid","polar"],getinitialdata:function(t,e){return n(t.data,this,e)},defaultoption:{zlevel:0,z:2,coordinatesystem:"cartesian2d",legendhoverlink:!0,hoveranimation:!0,clipoverflow:!0,label:{normal:{position:"top"}},linestyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothmonotone:null,symbol:"emptycircle",symbolsize:4,symbolrotate:null,showsymbol:!0,showallsymbol:!1,connectnulls:!1,sampling:"none",animationeasing:"linear",progressive:0,hoverlayerthreshold:1/0}})},function(t,e,i){"use strict";function n(t,e){if(t.length===e.length){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function s(t,e){var i=t.getbaseaxis(),n=t.getotheraxis(i),o=i.onzero?0:n.scale.getextent()[0],a=n.dim,s="x"===a||"radius"===a?1:0;return e.maparray([a],function(n,l){for(var u,c=e.stackedon;c&&r(c.get(a,l))===r(n);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(a,l,!0):o,t.datatopoint(h)},!0)}function l(t,e,i){var n=a(t.getaxis("x")),o=a(t.getaxis("y")),r=t.getbaseaxis().ishorizontal(),s=math.min(n[0],n[1]),l=math.min(o[0],o[1]),u=math.max(n[0],n[1])-s,c=math.max(o[0],o[1])-l,h=i.get("linestyle.normal.width")||2,d=i.get("clipoverflow")?h/2:math.max(u,c);r?(l-=d,c+=2*d):(s-=d,u+=2*d);var f=new v.rect({shape:{x:s,y:l,width:u,height:c}});return e&&(f.shape[r?"width":"height"]=0,v.initprops(f,{shape:{width:u,height:c}},i)),f}function u(t,e,i){var n=t.getangleaxis(),o=t.getradiusaxis(),a=o.getextent(),r=n.getextent(),s=math.pi/180,l=new v.sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startangle:-r[0]*s,endangle:-r[1]*s,clockwise:n.inverse}});return e&&(l.shape.endangle=-r[0]*s,v.initprops(l,{shape:{endangle:-r[1]*s}},i)),l}function c(t,e,i){return"polar"===t.type?u(t,e,i):l(t,e,i)}function h(t,e,i){for(var n=e.getbaseaxis(),o="x"===n.dim||"radius"===n.dim?0:1,a=[],r=0;r=0;o--)if(i[o].dimension<2){n=i[o];break}if(n&&"cartesian2d"===e.type){var a=n.dimension,r=t.dimensions[a],s=e.getaxis(r),l=f.map(n.stops,function(t){return{coord:s.toglobalcoord(s.datatocoord(t.value)),color:t.color}}),u=l.length,c=n.outercolors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=10,d=l[0].coord-h,p=l[u-1].coord+h,g=p-d;if(g<.001)return"transparent";f.each(l,function(t){t.offset=(t.coord-d)/g}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var m=new v.lineargradient(0,0,0,0,l,(!0));return m[r]=d,m[r+"2"]=p,m}}}var f=i(1),p=i(44),g=i(54),m=i(110),v=i(3),y=i(6),x=i(91),_=i(30);t.exports=_.extend({type:"line",init:function(){var t=new v.group,e=new p;this.group.add(e.group),this._symboldraw=e,this._linegroup=t},render:function(t,e,i){var a=t.coordinatesystem,r=this.group,l=t.getdata(),u=t.getmodel("linestyle.normal"),p=t.getmodel("areastyle.normal"),g=l.maparray(l.getitemlayout,!0),m="polar"===a.type,v=this._coordsys,y=this._symboldraw,x=this._polyline,_=this._polygon,b=this._linegroup,w=t.get("animation"),s=!p.isempty(),m=s(a,l),i=t.get("showsymbol"),t=i&&!m&&!t.get("showallsymbol")&&this._getsymbolignorefunc(l,a),a=this._data;a&&a.eachitemgraphicel(function(t,e){t.__temp&&(r.remove(t),a.setitemgraphicel(e,null))}),i||y.remove(),r.add(b);var c=!m&&t.get("step");x&&v.type===a.type&&c===this._step?(s&&!_?_=this._newpolygon(g,m,a,w):_&&!s&&(b.remove(_),_=this._polygon=null),b.setclippath(c(a,!1,t)),i&&y.updatedata(l,t),l.eachitemgraphicel(function(t){t.stopanimation(!0)}),n(this._stackedonpoints,m)&&n(this._points,g)||(w?this._updateanimation(l,m,a,i,c):(c&&(g=h(g,a,c),m=h(m,a,c)),x.setshape({points:g}),_&&_.setshape({points:g,stackedonpoints:m})))):(i&&y.updatedata(l,t),c&&(g=h(g,a,c),m=h(m,a,c)),x=this._newpolyline(g,a,w),s&&(_=this._newpolygon(g,m,a,w)),b.setclippath(c(a,!0,t)));var l=d(l,a)||l.getvisual("color");x.usestyle(f.defaults(u.getlinestyle(),{fill:"none",stroke:l,linejoin:"bevel"}));var d=t.get("smooth");if(d=o(t.get("smooth")),x.setshape({smooth:d,smoothmonotone:t.get("smoothmonotone"),connectnulls:t.get("connectnulls")}),_){var p=l.stackedon,k=0;if(_.usestyle(f.defaults(p.getareastyle(),{fill:l,opacity:.7,linejoin:"bevel"})),p){var o=p.hostmodel;k=o(o.get("smooth"))}_.setshape({smooth:d,stackedonsmooth:k,smoothmonotone:t.get("smoothmonotone"),connectnulls:t.get("connectnulls")})}this._data=l,this._coordsys=a,this._stackedonpoints=m,this._points=g,this._step=c},dispose:function(){},highlight:function(t,e,i,n){var o=t.getdata(),a=y.querydataindex(o,n);if(!(a instanceof array)&&null!=a&&a>=0){var r=o.getitemgraphicel(a);if(!r){var s=o.getitemlayout(a);if(!s)return;r=new g(o,a),r.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 _.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var o=t.getdata(),a=y.querydataindex(o,n);if(null!=a&&a>=0){var r=o.getitemgraphicel(a);r&&(r.__temp?(o.setitemgraphicel(a,null),this.group.remove(r)):r.downplay())}else _.prototype.downplay.call(this,t,e,i,n)},_newpolyline:function(t){var e=this._polyline;return e&&this._linegroup.remove(e),e=new x.polyline({shape:{points:t},silent:!0,z2:10}),this._linegroup.add(e),this._polyline=e,e},_newpolygon:function(t,e){var i=this._polygon;return i&&this._linegroup.remove(i),i=new x.polygon({shape:{points:t,stackedonpoints:e},silent:!0}),this._linegroup.add(i),this._polygon=i,i},_getsymbolignorefunc:function(t,e){var i=e.getaxesbyscale("ordinal")[0];if(i&&i.islabelignored)return f.bind(i.islabelignored,i)},_updateanimation:function(t,e,i,n,o){var a=this._polyline,r=this._polygon,s=t.hostmodel,l=m(this._data,t,this._stackedonpoints,e,this._coordsys,i),u=l.current,c=l.stackedoncurrent,d=l.next,f=l.stackedonnext;o&&(u=h(l.current,i,o),c=h(l.stackedoncurrent,i,o),d=h(l.next,i,o),f=h(l.stackedonnext,i,o)),a.shape.__points=l.current,a.shape.points=u,v.updateprops(a,{shape:{points:d}},s),r&&(r.setshape({points:u,stackedonpoints:c}),v.updateprops(r,{shape:{points:d,stackedonpoints:f}},s));for(var p=[],g=l.status,y=0;y=0?1:-1}function n(t,e,n){for(var o,a=t.getbaseaxis(),r=t.getotheraxis(a),s=a.onzero?0:r.scale.getextent()[0],l=r.dim,u="x"===l||"radius"===l?1:0,c=e.stackedon,h=e.get(l,n);c&&i(c.get(l,n))===i(h);){o=c;break}var d=[];return d[u]=e.get(a.dim,n),d[1-u]=o?o.get(l,n,!0):s,t.datatopoint(d)}function o(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.exports=function(t,e,i,a,r,s){for(var l=o(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=s.dimensions,v=0;v0&&"scale"!==d){var g=r.getitemlayout(0),m=math.max(i.getwidth(),i.getheight())/2,v=l.bind(u.removeclippath,u);u.setclippath(this._createclippath(g.cx,g.cy,m,g.startangle,g.clockwise,v,t))}this._data=r}},dispose:function(){},_createclippath:function(t,e,i,n,o,a,r){var l=new s.sector({shape:{cx:t,cy:e,r0:0,r:i,startangle:n,endangle:n,clockwise:o}});return s.initprops(l,{shape:{endangle:n+(o?1:-1)*math.pi*2}},r,a),l},containpoint:function(t,e){var i=e.getdata(),n=i.getitemlayout(0);if(n){var o=t[0]-n.cx,a=t[1]-n.cy,r=math.sqrt(o*o+a*a);return r<=n.r&&r>=n.r0}}});t.exports=c},function(t,e,i){"use strict";function n(t,e,i,n,o,a,r){function s(e,i,n,o){for(var a=e;ae&&a+1t[a].y+t[a].height)return void l(a,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function u(t,e,i,n,o,a){for(var r=a>0?e?number.max_value:0:e?number.max_value:0,s=0,l=t.length;s=r&&(d=r-10),!e&&d<=r&&(d=r+10),t[s].x=i+d*a,r=d}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,d=t.length,f=[],p=[],g=0;g=i?p.push(t[g]):f.push(t[g]);u(f,!1,e,i,n,o),u(p,!0,e,i,n,o)}function o(t,e,i,o,a,r){for(var s=[],l=[],u=0;u0?"left":"right"}var d=g.getmodel("textstyle").getfont(),p=g.get("rotate")?b<0?-_+math.pi:-_:0,k=t.getformattedlabel(i,"normal")||l.getname(i),o=a.getboundingrect(k,d,d,"top");c=!!p,f.label={x:n,y:o,position:m,height:o.height,len:y,len2:x,linepoints:h,textalign:d,verticalalign:"middle",font:d,rotation:p},s||u.push(f.label)}),!c&&t.get("avoidlabeloverlap")&&o(u,r,s,e,i,n)}},function(t,e,i){var n=i(4),o=n.parsepercent,a=i(114),r=i(1),s=2*math.pi,l=math.pi/180;t.exports=function(t,e,i,u){e.eachseriesbytype(t,function(t){var e=t.get("center"),u=t.get("radius");r.isarray(u)||(u=[0,u]),r.isarray(e)||(e=[e,e]);var c=i.getwidth(),h=i.getheight(),d=math.min(c,h),f=o(e[0],c),p=o(e[1],h),g=o(u[0],d/2),m=o(u[1],d/2),v=t.getdata(),y=-t.get("startangle")*l,x=t.get("minangle")*l,_=v.getsum("value"),b=math.pi/(_||v.count())*2,w=t.get("clockwise"),s=t.get("rosetype"),m=t.get("stillshowzerosum"),i=v.getdataextent("value");i[0]=0;var t=s,a=0,c=y,l=w?1:-1;if(v.each("value",function(t,e){var i;if(isnan(t))return void v.setitemlayout(e,{angle:nan,startangle:nan,endangle:nan,clockwise:w,cx:f,cy:p,r0:g,r:s?nan:m});i="area"!==s?0===_&&m?b:t*b:s/(v.count()||1),ir)return!0;if(a){var s=p.getaxisinfo(t).seriesdatacount,l=n.getextent();return math.abs(l[0]-l[1])/s>r}return!1}return i===!0},makeeloption:function(t,e,i,n,o){},createpointerel:function(t,e,i,n){var o=e.pointer;if(o){var a=f(t).pointerel=new d[o.type](v(e.pointer));t.add(a)}},createlabelel:function(t,e,i,n){if(e.label){var o=f(t).labelel=new d.rect(v(e.label));t.add(o),r(o,n)}},updatepointerel:function(t,e,i){var n=f(t).pointerel;n&&(n.setstyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updatelabelel:function(t,e,i,n){var o=f(t).labelel;o&&(o.setstyle(e.label.style),i(o,{shape:e.label.shape,position:e.label.position}),r(o,n))},_renderhandle:function(t){if(!this._dragging&&this.updatehandletransform){var e=this._axispointermodel,i=this._api.getzr(),n=this._handle,o=e.getmodel("handle"),a=e.get("status");if(!o.get("show")||!a||"hide"===a)return n&&i.remove(n),void(this._handle=null);var r;this._handle||(r=!0,n=this._handle=l(o,{onmousemove:function(t){g.stop(t.event)},onmousedown:y(this._onhandledragmove,this,0,0),drift:y(this._onhandledragmove,this),ondragend:y(this._onhandledragend,this)}),i.add(n)),u(n,e,!1);var s=["color","bordercolor","borderwidth","opacity","shadowcolor","shadowblur","shadowoffsetx","shadowoffsety"];n.setstyle(o.getitemstyle(null,s));var h=o.get("size");c.isarray(h)||(h=[h,h]),n.attr("scale",[h[0]/2,h[1]/2]),m.createorupdate(this,"_dodispatchaxispointer",o.get("throttle")||0,"fixrate"),this._movehandletovalue(t,r)}},_movehandletovalue:function(t,e){o(this._axispointermodel,!e&&this._moveanimation,this._handle,s(this.gethandletransform(t,this._axismodel,this._axispointermodel)))},_onhandledragmove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updatehandletransform(s(i),[t,e],this._axismodel,this._axispointermodel);this._payloadinfo=n,i.stopanimation(),i.attr(s(n)),f(i).lastprop=null,this._dodispatchaxispointer()}},_dodispatchaxispointer:function(){var t=this._handle;if(t){var e=this._payloadinfo,i={type:"updateaxispointer",x:e.cursorpoint[0],y:e.cursorpoint[1],tooltipoption:e.tooltipoption,highdownkey:"axispointerhandle"},n=this._axismodel.axis;i[n.dim+"axisid"]=this._axismodel.id,this._api.dispatchaction(i)}},_onhandledragend:function(t){this._dragging=!1;var e=this._handle;if(e){var i=this._axispointermodel.get("value");this._movehandletovalue(i),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 i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},n.prototype.constructor=n,h.enableclassextend(n),t.exports=n},function(t,e,i){"use strict";function n(t,e){var i={};return i[e.dim+"axisindex"]=e.index,t.getcartesian(i)}function o(t){return"x"===t.dim?0:1}var a=i(3),r=i(118),s=i(75),l=i(74),u=i(41),c=r.extend({makeeloption:function(t,e,i,o,a){var r=i.axis,u=r.grid,c=o.get("type"),d=n(u,r).getotheraxis(r).getglobalextent(),f=r.toglobalcoord(r.datatocoord(e,!0));if(c&&"none"!==c){var p=s.buildelstyle(o),g=h[c](r,f,d,p);g.style=p,t.graphickey=g.type,t.pointer=g}var m=l.layout(u.model,i);s.buildcartesiansinglelabeleloption(e,t,m,i,o,a)},gethandletransform:function(t,e,i){var n=l.layout(e.axis.grid.model,e,{labelinside:!1});return n.labelmargin=i.get("handle.margin"),{position:s.gettransformedposition(e.axis,t,n),rotation:n.rotation+(n.labeldirection<0?math.pi:0)}},updatehandletransform:function(t,e,i,o){var a=i.axis,r=a.grid,s=a.getglobalextent(!0),l=n(r,a).getotheraxis(a).getglobalextent(),u="x"===a.dim?0:1,c=t.position;c[u]+=e[u],c[u]=math.min(s[1],c[u]),c[u]=math.max(s[0],c[u]);var h=(l[1]+l[0])/2,d=[h,h];d[u]=c[u];var f=[{verticalalign:"middle"},{align:"center"}];return{position:c,rotation:t.rotation,cursorpoint:d,tooltipoption:f[u]}}}),h={line:function(t,e,i,n){var r=s.makelineshape([e,i[0]],[e,i[1]],o(t));return a.subpixeloptimizeline({shape:r,style:n}),{type:"line",shape:r}},shadow:function(t,e,i,n){var a=t.getbandwidth(),r=i[1]-i[0];return{type:"rect",shape:s.makerectshape([e-a/2,i[0]],[a,r],o(t))}}};u.registeraxispointerclass("cartesianaxispointer",c),t.exports=c},function(t,e,i){var n=i(1),o=i(6);t.exports=function(t,e){var i,a=[],r=t.seriesindex;if(null==r||!(i=e.getseriesbyindex(r)))return{point:[]};var s=i.getdata(),l=o.querydataindex(s,t);if(null==l||n.isarray(l))return{point:[]};var u=s.getitemgraphicel(l),c=i.coordinatesystem;if(i.gettooltipposition)a=i.gettooltipposition(l)||[];else if(c&&c.datatopoint)a=c.datatopoint(s.getvalues(n.map(c.dimensions,function(t){return i.coorddimtodatadim(t)[0]}),l,!0))||[];else if(u){var h=u.getboundingrect().clone();h.applytransform(u.transform),a=[h.x+h.width/2,h.y+h.height/2]}return{point:a,el:u}}},function(t,e,i){function n(t,e){function i(i,n){t.on(i,function(i){var a=s(e);h(c(t).records,function(t){t&&n(t,i,a.dispatchaction)}),o(a.pendings,e)})}c(t).initialized||(c(t).initialized=!0,i("click",u.curry(r,"click")),i("mousemove",u.curry(r,"mousemove")),i("globalout",a))}function o(t,e){var i,n=t.showtip.length,o=t.hidetip.length;n?i=t.showtip[n-1]:o&&(i=t.hidetip[o-1]),i&&(i.dispatchaction=null,e.dispatchaction(i))}function a(t,e,i){t.handler("leave",null,i)}function r(t,e,i,n){e.handler(t,i,n)}function s(t){var e={showtip:[],hidetip:[]},i=function(n){var o=e[n.type];o?o.push(n):(n.dispatchaction=i,t.dispatchaction(n))};return{dispatchaction:i,pendings:e}}var l=i(9),u=i(1),c=i(6).makegetter(),h=u.each,d={};d.register=function(t,e,i){if(!l.node){var o=e.getzr();c(o).records||(c(o).records={}),n(o,e);var a=c(o).records[t]||(c(o).records[t]={});a.handler=i}},d.unregister=function(t,e){if(!l.node){var i=e.getzr(),n=(c(i).records||{})[t];n&&(c(i).records[t]=null)}},t.exports=d},function(t,e,i){var n=i(1),o=i(76),a=i(2);a.registeraction("datazoom",function(t,e){var i=o.createlinkednodesfinder(n.bind(e.eachcomponent,e,"datazoom"),o.eachaxisdim,function(t,e){return t.get(e.axisindex)}),a=[];e.eachcomponent({maintype:"datazoom",query:t},function(t,e){a.push.apply(a,i(t).nodes)}),n.each(a,function(e,i){e.setrawrange({start:t.start,end:t.end,startvalue:t.startvalue,endvalue:t.endvalue})})})},function(t,e,i){function n(t,e,i){i.getaxisproxy(t.name,e).reset(i)}function o(t,e,i){i.getaxisproxy(t.name,e).filterdata(i)}var a=i(2);a.registerprocessor(function(t,e){t.eachcomponent("datazoom",function(t){t.eachtargetaxis(n),t.eachtargetaxis(o)}),t.eachcomponent("datazoom",function(t){var e=t.findrepresentativeaxisproxy(),i=e.getdatapercentwindow(),n=e.getdatavaluewindow();t.setrawrange({start:i[0],end:i[1],startvalue:n[0],endvalue:n[1]},!0)})})},function(t,e,i){function n(t){var e=t[r];return e||(e=t[r]=[{}]),e}var o=i(1),a=o.each,r="\0_ec_hist_store",s={push:function(t,e){var i=n(t);a(e,function(e,n){for(var o=i.length-1;o>=0;o--){var a=i[o];if(a[n])break}if(o<0){var r=t.querycomponents({maintype:"datazoom",subtype:"select",id:n})[0];if(r){var s=r.getpercentrange();i[0][n]={datazoomid:n,start:s[0],end:s[1]}}}}),i.push(e)},pop:function(t){var e=n(t),i=e[e.length-1];e.length>1&&e.pop();var o={};return a(i,function(t,i){for(var n=e.length-1;n>=0;n--){var t=e[n][i];if(t){o[i]=t;break}}}),o},clear:function(t){t[r]=null},count:function(t){return n(t).length}};t.exports=s},function(t,e,i){i(13).registersubtypedefaulter("datazoom",function(t){return"slider"})},function(t,e,i){function n(t){v.call(this),this._zr=t,this.group=new g.group,this._brushtype,this._brushoption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingcover,this._creatingpanel,this._enableglobalpan,this._uid="brushcontroller_"+it++,this._handlers={},z(nt,function(t,e){this._handlers[e]=b.bind(t,this)},this)}function o(t,e){var i=t._zr;t._enableglobalpan||f.take(i,j,t._uid),z(t._handlers,function(t,e){i.on(e,t)}),t._brushtype=e.brushtype,t._brushoption=b.merge(b.clone(et),e,!0)}function a(t){var e=t._zr;f.release(e,j,t._uid),z(t._handlers,function(t,i){e.off(i,t)}),t._brushtype=t._brushoption=null}function r(t,e){var i=ot[e.brushtype].createcover(t,e);return i.__brushoption=e,u(i,e),t.group.add(i),i}function s(t,e){var i=h(e);return i.endcreating&&(i.endcreating(t,e),u(e,e.__brushoption)),e}function l(t,e){var i=e.__brushoption;h(e).updatecovershape(t,e,i.range,i)}function u(t,e){var i=e.z;null==i&&(i=y),t.traverse(function(t){t.z=i,t.z2=i})}function c(t,e){h(e).updatecommon(t,e),l(t,e)}function h(t){return ot[t.__brushoption.brushtype]}function d(t,e,i){var n=t._panels;if(!n)return!0;var o,a=t._transform;return z(n,function(t){t.istargetbycursor(e,i,a)&&(o=t)}),o}function f(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushoption.panelid;return null==n||i[n]}function p(t){var e=t._covers,i=e.length;return z(e,function(e){t.group.remove(e)},t),e.length=0,!!i}function g(t,e){var i=q(t._covers,function(t){var e=t.__brushoption,i=b.clone(e.range);return{brushtype:e.brushtype,panelid:e.panelid,range:i}});t.trigger("brush",i,{isend:!!e.isend,removeonclick:!!e.removeonclick})}function m(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],o=i[0]-n[0],a=i[1]-n[1],r=x(o*o+a*a,.5);return r>$}function v(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function y(t,e,i,n){var o=new g.group;return o.add(new g.rect({name:"main",style:w(i),silent:!0,draggable:!0,cursor:"move",drift:w(t,e,o,"nswe"),ondragend:w(g,e,{isend:!0})})),z(n,function(i){o.add(new g.rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:w(t,e,o,i),ondragend:w(g,e,{isend:!0})}))}),o}function x(t,e,i,n){var o=n.brushstyle.linewidth||0,a=u(o,k),r=i[0][0],s=i[1][0],l=r-o/2,u=s-o/2,c=i[0][1],h=i[1][1],d=c-a+o/2,f=h-a+o/2,p=c-r,g=h-s,m=p+o,v=g+o;b(t,e,"main",r,s,p,g),n.transformable&&(b(t,e,"w",l,u,a,v),b(t,e,"e",d,u,a,v),b(t,e,"n",l,u,m,a),b(t,e,"s",l,f,m,a),b(t,e,"nw",l,u,a,a),b(t,e,"ne",d,u,a,a),b(t,e,"sw",l,f,a,a),b(t,e,"se",d,f,a,a))}function _(t,e){var i=e.__brushoption,n=i.transformable,o=e.childat(0);o.usestyle(w(i)),o.attr({silent:!n,cursor:n?"move":"default"}),z(["w","e","n","s","se","sw","ne","nw"],function(i){var o=e.childofname(i),a=i(t,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?tt[a]+"-resize":null})})}function b(t,e,i,n,o,a,r){var s=e.childofname(i);s&&s.setshape(d(l(t,e,[[n,o],[n+a,o+r]])))}function w(t){return b.defaults({strokenoscale:!0},t.brushstyle)}function s(t,e,i,n){var o=[j(t,i),j(e,n)],a=[u(t,i),u(e,n)];return[[o[0],a[0]],[o[1],a[1]]]}function m(t){return g.gettransform(t.group)}function i(t,e){if(e.length>1){e=e.split("");var i=[i(t,e[0]),i(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},i=g.transformdirection(n[e],m(t));return o[i]}function t(t,e,i,n,o,a,r,s){var l=n.__brushoption,u=t(l.range),h=c(i,a,r);z(o.split(""),function(t){var e=q[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(s(u[0][0],u[1][0],u[0][1],u[1][1])),c(i,n),g(i,{isend:!1})}function a(t,e,i,n,o){var a=e.__brushoption.range,r=c(t,i,n);z(a,function(t){t[0]+=r[0],t[1]+=r[1]}),c(t,e),g(t,{isend:!1})}function c(t,e,i){var n=t.group,o=n.transformcoordtolocal(e,i),a=n.transformcoordtolocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function l(t,e,i){var n=f(t,e);return n&&n!==!0?n.clippath(i,t._transform):b.clone(i)}function d(t){var e=j(t[0][0],t[1][0]),i=j(t[0][1],t[1][1]),n=u(t[0][0],t[1][0]),o=u(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:o-i}}function p(t,e,i){if(t._brushtype){var n=t._zr,o=t._covers,a=d(t,e,i);if(!t._dragging)for(var r=0;re[1]&&e.reverse(),e},getotheraxis:function(){this.grid.getotheraxis()},getlabelinterval:function(){var t=this._labelinterval;return t||(t=this._labelinterval=a(this)),t},islabelignored:function(t){if("category"===this.type){var e=this.getlabelinterval();return"function"==typeof e&&!e(t,this.scale.getlabel(t))||t%(e+1)}},pointtodata:function(t,e){return this.coordtodata(this.tolocalcoord(t["x"===this.dim?0:1]),e)},tolocalcoord:null,toglobalcoord:null},n.inherits(r,o),t.exports=r},function(t,e,i){"use strict";function n(t){return this._axes[t]}var o=i(1),a=function(t){this._axes={},this._dimlist=[],this.name=t||""};a.prototype={constructor:a,type:"cartesian",getaxis:function(t){return this._axes[t]},getaxes:function(){return o.map(this._dimlist,n,this)},getaxesbyscale:function(t){return t=t.tolowercase(),o.filter(this.getaxes(),function(e){return e.scale.type===t})},addaxis:function(t){var e=t.dim;this._axes[e]=t,this._dimlist.push(e)},datatocoord:function(t){return this._datacoordconvert(t,"datatocoord")},coordtodata:function(t){return this._datacoordconvert(t,"coordtodata")},_datacoordconvert:function(t,e){for(var i=this._dimlist,n=t instanceof array?[]:{},o=0;o=0;n--)h.isidinner(e[n])&&e.splice(n,1);t[i]=e}}),delete t[b],t},gettheme:function(){return this._theme},getcomponent:function(t,e){var i=this._componentsmap[t];if(i)return i[e||0]},querycomponents:function(t){var e=t.maintype;if(!e)return[];var i=t.index,n=t.id,o=t.name,a=this._componentsmap[e];if(!a||!a.length)return[];var r;if(null!=i)m(i)||(i=[i]),r=p(g(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var s=m(n);r=p(a,function(t){return s&&v(n,t.id)>=0||!s&&t.id===n})}else if(null!=o){var u=m(o);r=p(a,function(t){return u&&v(o,t.name)>=0||!u&&t.name===o})}else r=a.slice();return l(r,t)},findcomponents:function(t){function e(t){var e=o+"index",i=o+"id",n=o+"name";return!t||null==t[e]&&null==t[i]&&null==t[n]?null:{maintype:o,index:t[e],id:t[i],name:t[n]}}function i(e){return t.filter?p(e,t.filter):e}var n=t.query,o=t.maintype,a=e(n),r=a?this.querycomponents(a):this._componentsmap[o];return i(l(r,t))},eachcomponent:function(t,e,i){var n=this._componentsmap;if("function"==typeof t)i=e,e=t,f(n,function(t,n){f(t,function(t,o){e.call(i,n,t,o)})});else if(c.isstring(t))f(n[t],e,i);else if(y(t)){var o=this.findcomponents(t);f(o,e,i)}},getseriesbyname:function(t){var e=this._componentsmap.series;return p(e,function(e){return e.name===t})},getseriesbyindex:function(t){return this._componentsmap.series[t]},getseriesbytype:function(t){var e=this._componentsmap.series;return p(e,function(e){return e.subtype===t})},getseries:function(){return this._componentsmap.series.slice()},eachseries:function(t,e){u(this),f(this._seriesindices,function(i){var n=this._componentsmap.series[i];t.call(e,n,i)},this)},eachrawseries:function(t,e){f(this._componentsmap.series,t,e)},eachseriesbytype:function(t,e,i){u(this),f(this._seriesindices,function(n){var o=this._componentsmap.series[n];o.subtype===t&&e.call(i,o,n)},this)},eachrawseriesbytype:function(t,e,i){return f(this.getseriesbytype(t),e,i)},isseriesfiltered:function(t){return u(this),c.indexof(this._seriesindices,t.componentindex)<0},filterseries:function(t,e){u(this);var i=p(this._componentsmap.series,t,e);this._seriesindices=s(i)},restoredata:function(){var t=this._componentsmap;this._seriesindices=s(t.series);var e=[];f(t,function(t,i){e.push(i)}),x.topologicaltravel(e,x.getallclassmaintypes(),function(e,i){f(t[e],function(t){t.restoredata()})})}});c.mixin(w,i(61)),t.exports=w},function(t,e,i){function n(t){this._api=t,this._timelineoptions=[],this._medialist=[],this._mediadefault,this._currentmediaindices=[],this._optionbackup,this._newbaseoption}function o(t,e,i){var n,o,a=[],r=[],s=t.timeline;if(t.baseoption&&(o=t.baseoption),(s||t.options)&&(o=o||{},a=(t.options||[]).slice()),t.media){o=o||{};var l=t.media;d(l,function(t){t&&t.option&&(t.query?r.push(t):n||(n=t))})}return o||(o=t),o.timeline||(o.timeline=s),d([o].concat(a).concat(u.map(r,function(t){return t.option})),function(t){d(e,function(e){e(t,i)})}),{baseoption:o,timelineoptions:a,mediadefault:n,medialist:r}}function a(t,e,i){var n={width:e,height:i,aspectratio:e/i},o=!0;return u.each(t,function(t,e){var i=e.match(m);if(i&&i[1]&&i[2]){var a=i[1],s=i[2].tolowercase();r(n[s],t,a)||(o=!1)}}),o}function r(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e}function s(t,e){return t.join(",")===e.join(",")}function l(t,e){e=e||{},d(e,function(e,i){if(null!=e){var n=t[i];if(h.hasclass(i)){e=c.normalizetoarray(e),n=c.normalizetoarray(n);var o=c.mappingtoexists(n,e);t[i]=p(o,function(t){return t.option&&t.exist?g(t.exist,t.option,!0):t.exist||t.option})}else t[i]=g(n,e,!0)}})}var u=i(1),c=i(6),h=i(13),d=u.each,f=u.clone,p=u.map,g=u.merge,m=/^(min|max)?(.+)$/;n.prototype={constructor:n,setoption:function(t,e){t=f(t,!0);var i=this._optionbackup,n=o.call(this,t,e,!i);this._newbaseoption=n.baseoption,i?(l(i.baseoption,n.baseoption),n.timelineoptions.length&&(i.timelineoptions=n.timelineoptions),n.medialist.length&&(i.medialist=n.medialist),n.mediadefault&&(i.mediadefault=n.mediadefault)):this._optionbackup=n},mountoption:function(t){var e=this._optionbackup;return this._timelineoptions=p(e.timelineoptions,f),this._medialist=p(e.medialist,f),this._mediadefault=f(e.mediadefault),this._currentmediaindices=[],f(t?e.baseoption:this._newbaseoption)},gettimelineoption:function(t){var e,i=this._timelineoptions;if(i.length){var n=t.getcomponent("timeline");n&&(e=f(i[n.getcurrentindex()],!0))}return e},getmediaoption:function(t){var e=this._api.getwidth(),i=this._api.getheight(),n=this._medialist,o=this._mediadefault,r=[],l=[];if(!n.length&&!o)return l;for(var u=0,c=n.length;ue&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i1){var h;"string"==typeof o?h=i[o]:"function"==typeof o&&(h=o),h&&(e=e.downsample(s.dim,1/c,h,n),t.setdata(e))}}},this)}},function(t,e,i){function n(t,e){return h(t,c(e))}var o=i(1),a=i(34),r=i(4),s=i(43),l=a.prototype,u=s.prototype,c=r.getprecisionsafe,h=r.round,d=math.floor,f=math.ceil,p=math.pow,g=math.log,m=a.extend({type:"log",base:10,$constructor:function(){a.apply(this,arguments),this._originalscale=new s},getticks:function(){var t=this._originalscale,e=this._extent,i=t.getextent();return o.map(u.getticks.call(this),function(o){var a=r.round(p(this.base,o));return a=o===e[0]&&t.__fixmin?n(a,i[0]):a,a=o===e[1]&&t.__fixmax?n(a,i[1]):a},this)},getlabel:u.getlabel,scale:function(t){return t=l.scale.call(this,t),p(this.base,t)},setextent:function(t,e){var i=this.base;t=g(t)/g(i),e=g(e)/g(i),u.setextent.call(this,t,e)},getextent:function(){var t=this.base,e=l.getextent.call(this);e[0]=p(t,e[0]),e[1]=p(t,e[1]);var i=this._originalscale,o=i.getextent();return i.__fixmin&&(e[0]=n(e[0],o[0])),i.__fixmax&&(e[1]=n(e[1],o[1])),e},unionextent:function(t){this._originalscale.unionextent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.unionextent.call(this,t)},unionextentfromdata:function(t,e){this.unionextent(t.getdataextent(e,!0,function(t){return t>0}))},niceticks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=r.quantity(i),o=t/i*n;for(o<=.5&&(n*=10);!isnan(n)&&math.abs(n)<1&&math.abs(n)>0;)n*=10;var a=[r.round(f(e[0]/n)*n),r.round(d(e[1]/n)*n)];this._interval=n,this._niceextent=a}},niceextent:function(t,e,i){u.niceextent.call(this,t,e,i);var n=this._originalscale;n.__fixmin=e,n.__fixmax=i}});o.each(["contain","normalize"],function(t){m.prototype[t]=function(e){return e=g(e)/g(this.base),l[t].call(this,e)}}),m.create=function(){return new m},t.exports=m},function(t,e,i){var n=i(1),o=i(34),a=o.prototype,r=o.extend({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t.length-1]},parse:function(t){return"string"==typeof t?n.indexof(this._data,t):math.round(t)},contain:function(t){return t=this.parse(t),a.contain.call(this,t)&&null!=this._data[t]},normalize:function(t){return a.normalize.call(this,this.parse(t))},scale:function(t){return math.round(a.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){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionextentfromdata:function(t,e){this.unionextent(t.getdataextent(e,!1))},niceticks:n.noop,niceextent:n.noop});r.create=function(){return new r},t.exports=r},function(t,e,i){var n=i(1),o=i(4),a=i(7),r=i(63),s=i(43),l=s.prototype,u=math.ceil,c=math.floor,h=1e3,d=60*h,f=60*d,p=24*f,g=function(t,e,i,n){for(;i>>1;t[o][2]=0;r--){var s;if(n[r]!==i&&!n[r].ignore&&(s=a(n[r],t,e))&&(!o.toptarget&&(o.toptarget=n[r]),s!==u)){o.target=n[r];break}}return o}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){h.prototype[t]=function(e){var i=this.findhover(e.zrx,e.zry),n=i.target;if("mousedown"===t)this._downel=n,this._upel=n;else if("mosueup"===t)this._upel=n;else if("click"===t&&this._downel!==this._upel)return;this.dispatchtoelement(i,t,e)}}),r.mixin(h,l),r.mixin(h,s),t.exports=h},function(t,e,i){function n(){return!1}function o(t,e,i,n){var o=document.createelement(e),a=i.getwidth(),r=i.getheight(),s=o.style;return s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=r+"px",o.width=a*n,o.height=r*n,o.setattribute("data-zr-dom-id",t),o}var a=i(1),r=i(35),s=i(72),l=i(71),u=function(t,e,i){var s;i=i||r.devicepixelratio,"string"==typeof t?s=o(t,"canvas",e,i):a.isobject(t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=n,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domback=null,this.ctxback=null,this.painter=e,this.config=null,this.clearcolor=0,this.motionblur=!1,this.lastframealpha=.7,this.dpr=i};u.prototype={constructor:u,elcount:0,__dirty:!0,initcontext:function(){this.ctx=this.dom.getcontext("2d"),this.ctx.dpr=this.dpr},createbackbuffer:function(){var t=this.dpr;this.domback=o("back-"+this.id,"canvas",this.painter,t),this.ctxback=this.domback.getcontext("2d"),1!=t&&this.ctxback.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,o=n.style,a=this.domback;o.width=t+"px",o.height=e+"px",n.width=t*i,n.height=e*i,a&&(a.width=t*i,a.height=e*i,1!=i&&this.ctxback.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,o=e.height,a=this.clearcolor,r=this.motionblur&&!t,u=this.lastframealpha,c=this.dpr;if(r&&(this.domback||this.createbackbuffer(),this.ctxback.globalcompositeoperation="copy",this.ctxback.drawimage(e,0,0,n/c,o/c)),i.clearrect(0,0,n,o),a){var h;a.colorstops?(h=a.__canvasgradient||s.getgradient(i,a,{x:0,y:0,width:n,height:o}),a.__canvasgradient=h):a.image&&(h=l.prototype.getcanvaspattern.call(a,i)),i.save(),i.fillstyle=h||a,i.fillrect(0,0,n,o),i.restore()}if(r){var d=this.domback;i.save(),i.globalalpha=u,i.drawimage(d,0,0,n,o),i.restore()}}},t.exports=u},function(t,e,i){"use strict";function n(t){return parseint(t,10)}function o(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function a(t){t.__unusedcount++}function r(t){1==t.__unusedcount&&t.clear()}function s(t,e,i){return x.copy(t.getboundingrect()),t.transform&&x.applytransform(t.transform),_.width=e,_.height=i,!x.intersect(_)}function l(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i=0&&i.splice(n,1),t.__hovermir=null},clearhover:function(t){for(var e=this._hoverelements,i=0;i=0){if(!s){if(s=this._progressivelayers[math.min(u++,y-1)],s.ctx.save(),s.renderscope={},s&&s.__progress>s.__maxprogress){g=s.__nextidxnotprog-1;continue}l=s.__progress,s.__dirty||(p=l),s.__progress=p+1}_===p&&this._dopaintel(v,s,!0,s.renderscope)}else this._dopaintel(v,n,e,r);v.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherprogressive=!1,d.each(this._progressivelayers,function(t){t.__maxprogress>=t.__progress&&(this._furtherprogressive=!0)},this)},_dopaintel:function(t,e,i,n){var o=e.ctx,a=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!a||a[0]||a[3])&&(!t.culling||!s(t,this._width,this._height))){var r=t.__clippaths;(n.prevcliplayer!==e||l(r,n.prevelclippaths))&&(n.prevelclippaths&&(n.prevcliplayer.ctx.restore(),n.prevcliplayer=n.prevelclippaths=null,n.prevel=null),r&&(o.save(),u(r,o),n.prevcliplayer=e,n.prevelclippaths=r)),t.beforebrush&&t.beforebrush(o),t.brush(o,n.prevel||null),n.prevel=t,t.afterbrush&&t.afterbrush(o)}},getlayer:function(t){if(this._singlecanvas)return this._layers[0];var e=this._layers[t];return e||(e=new m("zr_"+t,this,this.dpr),e.__builtin__=!0,this._layerconfig[t]&&d.merge(e,this._layerconfig[t],!0),this.insertlayer(t,e),e.initcontext()),e},insertlayer:function(t,e){var i=this._layers,n=this._zlevellist,a=n.length,r=null,s=-1,l=this._domroot;if(i[t])return void f("zlevel "+t+" has been used already");if(!o(e))return void f("layer of zlevel "+t+" is not valid");if(a>0&&t>n[0]){for(s=0;st);s++);r=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(r){var u=r.dom;u.nextsibling?l.insertbefore(e.dom,u.nextsibling):l.appendchild(e.dom)}else l.firstchild?l.insertbefore(e.dom,l.firstchild):l.appendchild(e.dom)},eachlayer:function(t,e){var i,n,o=this._zlevellist;for(n=0;n=0){r!==g&&(r=g,l++);var v=h.__frame=l-1;if(!a){var x=math.min(s,y-1);a=i[x],a||(a=i[x]=new m("progressive",this,this.dpr),a.initcontext()),a.__maxprogress=0}a.__dirty=a.__dirty||h.__dirty,a.elcount++,a.__maxprogress=math.max(a.__maxprogress,v),a.__maxprogress>=a.__progress&&(p.__dirty=!0)}else h.__frame=-1,a&&(a.__nextidxnotprog=u,s++,a=null)}a&&(s++,a.__nextidxnotprog=u),this.eachbuiltinlayer(function(t,e){n[e]!==t.elcount&&(t.__dirty=!0)}),i.length=math.min(s,y),d.each(i,function(t,e){o[e]!==t.elcount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachbuiltinlayer(this._clearlayer),this},_clearlayer:function(t){t.clear()},configlayer:function(t,e){if(e){var i=this._layerconfig;i[t]?d.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&d.merge(n,i[t],!0)}},dellayer:function(t){var e=this._layers,i=this._zlevellist,n=e[t];n&&(n.dom.parentnode.removechild(n.dom),delete e[t],i.splice(d.indexof(i,t),1))},resize:function(t,e){var i=this._domroot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getsize(0),e=this._getsize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasownproperty(o)&&this._layers[o].resize(t,e);d.each(this._progressivelayers,function(i){i.resize(t,e)}),this.refresh(!0)}return this._width=t,this._height=e,this},clearlayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerhtml="",this.root=this.storage=this._domroot=this._layers=null},getrenderedcanvas:function(t){if(t=t||{},this._singlecanvas)return this._layers[0].dom;var e=new m("image",this,t.pixelratio||this.dpr);e.initcontext(),e.clearcolor=t.backgroundcolor,e.clear();for(var i=this.storage.getdisplaylist(!0),n={},o=0;o=0&&(this.delfromstorage(t),this._roots.splice(a,1),t instanceof r&&t.delchildrenfromstorage(this))}},addtostorage:function(t){return t.__storage=this,t.dirty(!1),this},delfromstorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderlist=this._roots=null},displayablesortfunc:n},t.exports=l},function(t,e,i){"use strict";var n=i(1),o=i(21).dispatcher,a=i(67),r=i(66),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedtime,this._pausestart,this._paused=!1,o.call(this)};s.prototype={constructor:s,addclip:function(t){this._clips.push(t)},addanimator:function(t){t.animation=this;for(var e=t.getclips(),i=0;i=0&&this._clips.splice(e,1)},removeanimator:function(t){for(var e=t.getclips(),i=0;ii||d+hr&&(r+=o);var p=math.atan2(c,u);return p<0&&(p+=o),p>=a&&p<=r||p+o>=a&&p+o<=r}}},function(t,e,i){var n=i(20);t.exports={containstroke:function(t,e,i,o,a,r,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>e+d&&h>o+d&&h>r+d&&h>l+d||ht+d&&c>i+d&&c>a+d&&c>s+d||ce&&c>n&&c>r&&c>l||c1&&o(),d=g.cubicat(e,n,r,l,b[0]),m>1&&(f=g.cubicat(e,n,r,l,b[1]))),p+=2==m?ye&&s>n&&s>a||s=0&&u<=1){for(var c=0,h=g.quadraticat(e,n,a,u),d=0;di||s<-i)return 0;var l=math.sqrt(i*i-s*s);_[0]=-l,_[1]=l;var u=math.abs(n-o);if(u<1e-4)return 0;if(u%y<1e-4){n=0,o=y;var c=a?1:-1;return r>=_[0]+t&&r<=_[1]+t?c:0}if(a){var l=n;n=p(o),o=p(l)}else n=p(n),o=p(o);n>o&&(o+=y);for(var h=0,d=0;d<2;d++){var f=_[d];if(f+t>r){var g=math.atan2(s,f),c=a?1:-1;g<0&&(g=y+g),(g>=n&&g<=o||g+y>=n&&g+y<=o)&&(g>math.pi/2&&g<1.5*math.pi&&(c=-c),h+=c)}}return h}function l(t,e,i,o,l){for(var c=0,p=0,g=0,y=0,x=0,_=0;_1&&(i||(c+=m(p,g,y,x,o,l))),1==_&&(p=t[_],g=t[_+1],y=p,x=g),b){case u.m:y=t[_++],x=t[_++],p=y,g=x;break;case u.l:if(i){if(v(p,g,t[_],t[_+1],e,o,l))return!0}else c+=m(p,g,t[_],t[_+1],o,l)||0;p=t[_++],g=t[_++];break;case u.c:if(i){if(h.containstroke(p,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],e,o,l))return!0}else c+=a(p,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],o,l)||0;p=t[_++],g=t[_++];break;case u.q:if(i){if(d.containstroke(p,g,t[_++],t[_++],t[_],t[_+1],e,o,l))return!0}else c+=r(p,g,t[_++],t[_++],t[_],t[_+1],o,l)||0;p=t[_++],g=t[_++];break;case u.a:var w=t[_++],s=t[_++],m=t[_++],i=t[_++],t=t[_++],a=t[_++],c=(t[_++],1-t[_++]),l=math.cos(t)*m+w,d=math.sin(t)*i+s;_>1?c+=m(p,g,l,d,o,l):(y=l,x=d);var p=(o-w)*i/m+w;if(i){if(f.containstroke(w,s,i,t,t+a,c,e,p,l))return!0}else c+=s(w,s,i,t,t+a,c,p,l);p=math.cos(t+a)*m+w,g=math.sin(t+a)*i+s;break;case u.r:y=p=t[_++],x=g=t[_++];var k=t[_++],o=t[_++],l=y+k,d=x+o;if(i){if(v(y,x,l,x,e,o,l)||v(l,x,l,d,e,o,l)||v(l,d,y,d,e,o,l)||v(y,d,y,x,e,o,l))return!0}else c+=m(l,x,l,d,o,l),c+=m(y,d,y,x,o,l);break;case u.z:if(i){if(v(p,g,y,x,e,o,l))return!0}else c+=m(p,g,y,x,o,l);p=y,g=x}}return i||n(g,x)||(c+=m(p,g,y,x,o,l)||0),0!==c}var u=i(27).cmd,c=i(96),h=i(160),d=i(97),f=i(159),p=i(68).normalizeradian,g=i(20),m=i(98),v=c.containstroke,y=2*math.pi,x=1e-4,_=[-1,-1,-1],b=[-1,-1];t.exports={contain:function(t,e,i){return l(t,0,!1,e,i)},containstroke:function(t,e,i,n){return l(t,e,!0,i,n)}}},function(t,e,i){"use strict";function n(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return math.sqrt(e*e+i*i)}function o(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var a=i(21),r=function(){this._track=[]};r.prototype={constructor:r,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},r=0,s=n.length;r1&&a&&a.length>1){var s=n(a)/n(r);!isfinite(s)&&(s=1),e.pinchscale=s;var l=o(a);return e.pinchx=l[0],e.pinchy=l[1],{type:"pinch",target:t[0].target,event:e}}}}};t.exports=r},function(t,e,i){function n(t){return"mousewheel"===t&&d.browser.firefox?"dommousescroll":t}function o(t,e,i){var n=t._gesturemgr;"start"===i&&n.clear();var o=n.recognize(e,t.handler.findhover(e.zrx,e.zry,null).target,t.dom);if("end"===i&&n.clear(),o){var a=o.type;e.gestureevent=a,t.handler.dispatchtoelement({target:o.target},a,o.event)}}function a(t){t._touching=!0,cleartimeout(t._touchtimer),t._touchtimer=settimeout(function(){t._touching=!1},700)}function r(t){var e=t.pointertype;return"pen"===e||"touch"===e}function s(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}c.each(x,function(e){t._handlers[e]=c.bind(w[e],t)}),c.each(b,function(e){t._handlers[e]=c.bind(w[e],t)}),c.each(y,function(i){t._handlers[i]=e(w[i],t)})}function l(t){function e(e,i){c.each(e,function(e){p(t,n(e),i._handlers[e])},i)}h.call(this),this.dom=t,this._touching=!1,this._touchtimer,this._gesturemgr=new f,this._handlers={},s(this),d.pointereventssupported?e(b,this):(d.toucheventssupported&&e(x,this),e(y,this))}var u=i(21),c=i(1),h=i(23),d=i(9),f=i(162),p=u.addeventlistener,g=u.removeeventlistener,m=u.normalizeevent,v=300,y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=["touchstart","touchend","touchmove"],_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=c.map(y,function(t){var e=t.replace("mouse","pointer");return _[e]?e:t}),w={mousemove:function(t){t=m(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=m(this.dom,t);var e=t.toelement||t.relatedtarget;if(e!=this.dom)for(;e&&9!=e.nodetype;){if(e===this.dom)return;e=e.parentnode}this.trigger("mouseout",t)},touchstart:function(t){t=m(this.dom,t),t.zrbytouch=!0,this._lasttouchmoment=new date,o(this,t,"start"),w.mousemove.call(this,t),w.mousedown.call(this,t),a(this)},touchmove:function(t){t=m(this.dom,t),t.zrbytouch=!0,o(this,t,"change"),w.mousemove.call(this,t),a(this)},touchend:function(t){t=m(this.dom,t),t.zrbytouch=!0,o(this,t,"end"),w.mouseup.call(this,t),+new date-this._lasttouchmomentl&&(h=i+n,i*=l/h,n*=l/h),o+a>l&&(h=o+a,o*=l/h,a*=l/h),n+o>u&&(h=n+o,n*=u/h,o*=u/h),i+a>u&&(h=i+a,i*=u/h,a*=u/h),t.moveto(r+i,s),t.lineto(r+l-n,s),0!==n&&t.quadraticcurveto(r+l,s,r+l,s+n),t.lineto(r+l,s+u-o),0!==o&&t.quadraticcurveto(r+l,s+u,r+l-o,s+u),t.lineto(r+a,s+u),0!==a&&t.quadraticcurveto(r,s+u,r,s+u-a),t.lineto(r,s+i),0!==i&&t.quadraticcurveto(r,s,r+i,s)}}},function(t,e,i){var n=i(5),o=n.min,a=n.max,r=n.scale,s=n.distance,l=n.add;t.exports=function(t,e,i,u){var c,h,d,f,p=[],g=[],m=[],v=[];if(u){d=[1/0,1/0],f=[-(1/0),-(1/0)];for(var y=0,x=t.length;yi-2?i-1:f+1],h=t[f>i-3?i-1:f+2]);var m=p*p,v=p*m;a.push([n(u[0],g[0],c[0],h[0],p,m,v),n(u[1],g[1],c[1],h[1],p,m,v)])}return a}},function(t,e,i){t.exports=i(8).extend({type:"arc",shape:{cx:0,cy:0,r:0,startangle:0,endangle:2*math.pi,clockwise:!0},style:{stroke:"#000",fill:null},buildpath:function(t,e){var i=e.cx,n=e.cy,o=math.max(e.r,0),a=e.startangle,r=e.endangle,s=e.clockwise,l=math.cos(a),u=math.sin(a);t.moveto(l*o+i,u*o+n),t.arc(i,n,o,a,r,!s)}})},function(t,e,i){"use strict";function n(t,e,i){var n=t.cpx2,o=t.cpy2;return null===n||null===o?[(i?h:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?h:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?c:l)(t.x1,t.cpx1,t.x2,e),(i?c:l)(t.y1,t.cpy1,t.y2,e)]}var o=i(20),a=i(5),r=o.quadraticsubdivide,s=o.cubicsubdivide,l=o.quadraticat,u=o.cubicat,c=o.quadraticderivativeat,h=o.cubicderivativeat,d=[];t.exports=i(8).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildpath:function(t,e){var i=e.x1,n=e.y1,o=e.x2,a=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,f=e.percent;0!==f&&(t.moveto(i,n),null==c||null==h?(f<1&&(r(i,l,o,f,d),l=d[1],o=d[2],r(n,u,a,f,d),u=d[1],a=d[2]),t.quadraticcurveto(l,u,o,a)):(f<1&&(s(i,l,c,o,f,d),l=d[1],c=d[2],o=d[3],s(n,u,h,a,f,d),u=d[1],h=d[2],a=d[3]),t.beziercurveto(l,u,c,h,o,a)))},pointat:function(t){return n(this.shape,t,!1)},tangentat:function(t){var e=n(this.shape,t,!0);return a.normalize(e,e)}})},function(t,e,i){"use strict";t.exports=i(8).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildpath:function(t,e,i){i&&t.moveto(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*math.pi,!0)}})},function(t,e,i){t.exports=i(8).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildpath:function(t,e){var i=e.x1,n=e.y1,o=e.x2,a=e.y2,r=e.percent;0!==r&&(t.moveto(i,n),r<1&&(o=i*(1-r)+o*r,a=n*(1-r)+a*r),t.lineto(o,a))},pointat:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})},function(t,e,i){var n=i(73);t.exports=i(8).extend({type:"polygon",shape:{points:null,smooth:!1,smoothconstraint:null},buildpath:function(t,e){n.buildpath(t,e,!0)}})},function(t,e,i){var n=i(73);t.exports=i(8).extend({type:"polyline",shape:{points:null,smooth:!1,smoothconstraint:null},style:{stroke:"#000",fill:null},buildpath:function(t,e){n.buildpath(t,e,!1)}})},function(t,e,i){var n=i(166);t.exports=i(8).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildpath:function(t,e){var i=e.x,o=e.y,a=e.width,r=e.height;e.r?n.buildpath(t,e):t.rect(i,o,a,r),t.closepath()}})},function(t,e,i){t.exports=i(8).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildpath:function(t,e){var i=e.cx,n=e.cy,o=2*math.pi;t.moveto(i+e.r,n),t.arc(i,n,e.r,0,o,!1),t.moveto(i+e.r0,n),t.arc(i,n,e.r0,0,o,!0)}})},function(t,e,i){var n=i(9),o=i(8),a=[["shadowblur",0],["shadowcolor","#000"],["shadowoffsetx",0],["shadowoffsety",0]];t.exports=o.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startangle:0,endangle:2*math.pi,clockwise:!0},brush:n.browser.ie&&n.browser.version>=11?function(){var t,e=this.__clippaths,i=this.style;if(e)for(var n=0;n0&&this.animate(t,!1).when(null==n?500:n,r).delay(a||0),this}},t.exports=u},function(t,e){function i(){this.on("mousedown",this._dragstart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragend,this),this.on("globalout",this._dragend,this)}function n(t,e){return{target:t,toptarget:e&&e.toptarget}}i.prototype={constructor:i,_dragstart:function(t){var e=t.target;e&&e.draggable&&(this._draggingtarget=e,e.dragging=!0,this._x=t.offsetx,this._y=t.offsety,this.dispatchtoelement(n(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingtarget;if(e){var i=t.offsetx,o=t.offsety,a=i-this._x,r=o-this._y;this._x=i,this._y=o,e.drift(a,r,t),this.dispatchtoelement(n(e,t),"drag",t.event);var s=this.findhover(i,o,e).target,l=this._droptarget;this._droptarget=s,e!==s&&(l&&s!==l&&this.dispatchtoelement(n(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchtoelement(n(s,t),"dragenter",t.event))}},_dragend:function(t){var e=this._draggingtarget;e&&(e.dragging=!1),this.dispatchtoelement(n(e,t),"dragend",t.event),this._droptarget&&this.dispatchtoelement(n(this._droptarget,t),"drop",t.event),this._draggingtarget=null,this._droptarget=null}},t.exports=i},function(t,e,i){function n(t,e,i,n,o,a,r,s,l,u,c){var g=l*(p/180),y=f(g)*(t-i)/2+d(g)*(e-n)/2,x=-1*d(g)*(t-i)/2+f(g)*(e-n)/2,_=y*y/(r*r)+x*x/(s*s);_>1&&(r*=h(_),s*=h(_));var b=(o===a?-1:1)*h((r*r*(s*s)-r*r*(x*x)-s*s*(y*y))/(r*r*(x*x)+s*s*(y*y)))||0,w=b*r*x/s,s=b*-s*y/r,m=(t+i)/2+f(g)*w-d(g)*s,i=(e+n)/2+d(g)*w+f(g)*s,t=v([1,0],[(y-w)/r,(x-s)/s]),a=[(y-w)/r,(x-s)/s],c=[(-1*y-w)/r,(-1*x-s)/s],l=v(a,c);m(a,c)<=-1&&(l=p),m(a,c)>=1&&(l=0),0===a&&l>0&&(l-=2*p),1===a&&l<0&&(l+=2*p),c.adddata(u,m,i,r,s,t,l,g,a)}function o(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===m[0]&&m.shift();for(var v=0;v')}}catch(l){n=function(t){return r.createelement("<"+t+' xmlns="'+o+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=r.stylesheets;t.length<31?r.createstylesheet().addrule(".zrvml","behavior:url(#default#vml)"):t[0].addrule(".zrvml","behavior:url(#default#vml)")}};t.exports={doc:r,initvml:u,createnode:n}}},function(t,e,i){"use strict";function n(t){return null==t.value?t:t.value}var o=i(14),a=i(25),r=i(312),s=i(1),l={_baseaxisdim:null,getinitialdata:function(t,e){var i,r,s=e.getcomponent("xaxis",this.get("xaxisindex")),l=e.getcomponent("yaxis",this.get("yaxisindex")),u=s.get("type"),c=l.get("type");"category"===u?(t.layout="horizontal",i=s.getcategories(),r=!0):"category"===c?(t.layout="vertical",i=l.getcategories(),r=!0):t.layout=t.layout||"horizontal",this._baseaxisdim="horizontal"===t.layout?"x":"y";var h=t.data,d=this.dimensions=["base"].concat(this.valuedimensions);a(d,h);var f=new o(d,this);return f.initdata(h,i?i.slice():null,function(t,e,i,o){var a=n(t);return r?"base"===e?i:a[o-1]:a[o]}),f},coorddimtodatadim:function(t){var e=this.valuedimensions.slice(),i=["base"],n={horizontal:{x:i,y:e},vertical:{x:e,y:i}};return n[this.get("layout")][t]},datadimtocoorddim:function(t){var e;return s.each(["x","y"],function(i,n){var o=this.coorddimtodatadim(i);s.indexof(o,t)>=0&&(e=i)},this),e},getbaseaxis:function(){var t=this._baseaxisdim;return this.ecmodel.getcomponent(t+"axis",this.get(t+"axisindex")).axis}},u={init:function(){var t=this._whiskerboxdraw=new r(this.getstyleupdater());this.group.add(t.group)},render:function(t,e,i){this._whiskerboxdraw.updatedata(t.getdata())},remove:function(t){this._whiskerboxdraw.remove()}};t.exports={seriesmodelmixin:l,viewmixin:u}},function(t,e,i){function n(t,e,i){var n=this._targetinfolist=[],o={},r=a(e,t);p(_,function(t,e){(!i||!i.include||g(i.include,e)>=0)&&t(r,n,o)})}function o(t){return t[0]>t[1]&&t.reverse(),t}function a(t,e){return d.parsefinder(t,e,{includemaintypes:y})}function r(t,e,i,n){var a=i.getaxis(["x","y"][t]),r=o(c.map([0,1],function(t){return e?a.coordtodata(a.tolocalcoord(n[t])):a.toglobalcoord(a.datatocoord(n[t]))})),s=[];return s[t]=r,s[1-t]=[nan,nan],{values:r,xyminmax:s}}function s(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function l(t,e){var i=u(t),n=u(e),o=[i[0]/n[0],i[1]/n[1]];return isnan(o[0])&&(o[0]=1),isnan(o[1])&&(o[1]=1),o}function u(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[nan,nan]}var c=i(1),h=i(3),d=i(6),f=i(185),p=c.each,g=c.indexof,m=c.curry,v=["datatopoint","pointtodata"],y=["grid","xaxis","yaxis","geo","graph","polar","radiusaxis","angleaxis","bmap"],x=n.prototype;x.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=s[t.brushtype](0,i,e);t.__rangeoffset={offset:m[t.brushtype](n.values,t.range,[1,1]),xyminmax:n.xyminmax}}})},x.matchoutputranges=function(t,e,i){p(t,function(t){var n=this.findtargetinfo(t,e);n&&n!==!0&&c.each(n.coordsyses,function(n){var o=s[t.brushtype](1,n,t.range);i(t,o.values,n,e)})},this)},x.setinputranges=function(t,e){p(t,function(t){var i=this.findtargetinfo(t,e);if(t.range=t.range||[],i&&i!==!0){t.panelid=i.panelid;var n=s[t.brushtype](0,i.coordsys,t.coordrange),o=t.__rangeoffset;t.range=o?m[t.brushtype](n.values,o.offset,l(n.xyminmax,o.xyminmax)):n.values}},this)},x.makepanelopts=function(t,e){return c.map(this._targetinfolist,function(i){var n=i.getpanelrect();return{panelid:i.panelid,defaultbrushtype:e&&e(i),clippath:f.makerectpanelclippath(n),istargetbycursor:f.makerectistargetbycursor(n,t,i.coordsysmodel),getlinearbrushotherextent:f.makelinearbrushotherextent(n)}})},x.controlseries=function(t,e,i){var n=this.findtargetinfo(t,i);return n===!0||n&&g(n.coordsyses,e.coordinatesystem)>=0},x.findtargetinfo=function(t,e){for(var i=this._targetinfolist,n=a(e,t),o=0;o=0||g(n,t.getaxis("y").model)>=0)&&a.push(t); }),e.push({panelid:"grid--"+t.id,gridmodel:t,coordsysmodel:t,coordsys:a[0],coordsyses:a,getpanelrect:w.grid,xaxisdeclared:r[t.id],yaxisdeclared:s[t.id]})}))},geo:function(t,e){p(t.geomodels,function(t){var i=t.coordinatesystem;e.push({panelid:"geo--"+t.id,geomodel:t,coordsysmodel:t,coordsys:i,coordsyses:[i],getpanelrect:w.geo})})}},b=[function(t,e){var i=t.xaxismodel,n=t.yaxismodel,o=t.gridmodel;return!o&&i&&(o=i.axis.grid.model),!o&&n&&(o=n.axis.grid.model),o&&o===e.gridmodel},function(t,e){var i=t.geomodel;return i&&i===e.geomodel}],w={grid:function(){return this.coordsys.grid.getrect().clone()},geo:function(){var t=this.coordsys,e=t.getboundingrect().clone();return e.applytransform(h.gettransform(t)),e}},s={linex:m(r,0),liney:m(r,1),rect:function(t,e,i){var n=e[v[t]]([i[0][0],i[1][0]]),a=e[v[t]]([i[0][1],i[1][1]]),r=[o([n[0],a[0]]),o([n[1],a[1]])];return{values:r,xyminmax:r}},polygon:function(t,e,i){var n=[[1/0,-(1/0)],[1/0,-(1/0)]],o=c.map(i,function(i){var o=e[v[t]](i);return n[0][0]=math.min(n[0][0],o[0]),n[1][0]=math.min(n[1][0],o[1]),n[0][1]=math.max(n[0][1],o[0]),n[1][1]=math.max(n[1][1],o[1]),o});return{values:o,xyminmax:n}}},m={linex:m(s,0),liney:m(s,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return c.map(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}};t.exports=n},function(t,e,i){function n(t){return r.create(t)}var o=i(1),a=i(127),r=i(11),s=math.max,l=math.min,u={};u.makerectpanelclippath=function(t){return t=n(t),function(e,i){return o.map(e,function(e){var i=e[0];i=s(i,t.x),i=l(i,t.x+t.width);var n=e[1];return n=s(n,t.y),n=l(n,t.y+t.height),[i,n]})}},u.makelinearbrushotherextent=function(t,e){return t=n(t),function(i){var n=null!=e?e:i,o=n?t.width:t.height,a=n?t.x:t.y;return[a,a+(o||0)]}},u.makerectistargetbycursor=function(t,e,i){return t=n(t),function(n,o,r){return t.contain(o[0],o[1])&&!a.onirrelevantelement(n,e,i)}},t.exports=u},function(t,e,i){function n(t,e){var i=t.get("boundingcoords");if(null!=i){var n=i[0],o=i[1];isnan(n[0])||isnan(n[1])||isnan(o[0])||isnan(o[1])||this.setboundingrect(n[0],n[1],o[0]-n[0],o[1]-n[1])}var a,s=this.getboundingrect(),u=t.get("layoutcenter"),c=t.get("layoutsize"),h=e.getwidth(),d=e.getheight(),f=t.get("aspectscale")||.75,p=s.width/s.height*f,g=!1;u&&c&&(u=[l.parsepercent(u[0],h),l.parsepercent(u[1],d)],c=l.parsepercent(c,math.min(h,d)),isnan(u[0])||isnan(u[1])||isnan(c)||(g=!0));var m;if(g){var m={};p>1?(m.width=c,m.height=c/p):(m.height=c,m.width=c*p),m.y=u[1]-m.height/2,m.x=u[0]-m.width/2}else a=t.getboxlayoutparams(),a.aspect=p,m=r.getlayoutrect(a,{width:h,height:d});this.setviewrect(m.x,m.y,m.width,m.height),this.setcenter(t.get("center")),this.setzoom(t.get("zoom"))}function o(t,e){s.each(e.get("geocoord"),function(e,i){t.addgeocoord(i,e)})}var a=i(395),r=i(12),s=i(1),l=i(4),u={},c={dimensions:a.prototype.dimensions,create:function(t,e){var i=[];t.eachcomponent("geo",function(t,r){var s=t.get("map"),l=u[s],c=new a(s+r,s,l&&l.geojson,l&&l.specialareas,t.get("namemap"));c.zoomlimit=t.get("scalelimit"),i.push(c),o(c,t),t.coordinatesystem=c,c.model=t,c.resize=n,c.resize(t,e)}),t.eachseries(function(t){var e=t.get("coordinatesystem");if("geo"===e){var n=t.get("geoindex")||0;t.coordinatesystem=i[n]}});var r={};return t.eachseriesbytype("map",function(t){if(!t.gethostgeomodel()){var e=t.getmaptype();r[e]=r[e]||[],r[e].push(t)}}),s.each(r,function(t,r){var l=u[r],c=s.map(t,function(t){return t.get("namemap")}),h=new a(r,r,l&&l.geojson,l&&l.specialareas,s.mergeall(c));h.zoomlimit=s.retrieve.apply(null,s.map(t,function(t){return t.get("scalelimit")})),i.push(h),h.resize=n,h.resize(t[0],e),s.each(t,function(t){t.coordinatesystem=h,o(h,t)})}),i},registermap:function(t,e,i){e.geojson&&!e.features&&(i=e.specialareas,e=e.geojson),"string"==typeof e&&(e="undefined"!=typeof json&&json.parse?json.parse(e):new function("return ("+e+");")()),u[t]={geojson:e,specialareas:i}},getmap:function(t){return u[t]},getfilledregions:function(t,e){var i=(t||[]).slice(),n=c.getmap(e),o=n&&n.geojson;if(!o)return t;for(var a={},r=o.features,s=0;s1)for(var i=1;i=0;a--){var r=n[a],s=o[a],l=r[0]-s[0]/2,u=r[1]-s[1]/2;if(t>=l&&e>=u&&t<=l+s[0]&&e<=u+s[1])return a}return-1}}),s=n.prototype;s.updatedata=function(t){this.group.removeall();var e=this._symbolel,i=t.hostmodel;e.setshape({points:t.maparray(t.getitemlayout),sizes:t.maparray(function(e){var i=t.getitemvisual(e,"symbolsize");return i instanceof array||(i=[i,i]),i})}),e.symbolproxy=a.createsymbol(t.getvisual("symbol"),0,0,0,0),e.setcolor=e.symbolproxy.setcolor,e.usestyle(i.getmodel("itemstyle.normal").getitemstyle(["color"]));var n=t.getvisual("color");n&&e.setcolor(n),e.seriesindex=i.seriesindex,e.on("mousemove",function(t){e.dataindex=null;var i=e.finddataindex(t.offsetx,t.offsety);i>0&&(e.dataindex=i)}),this.group.add(e)},s.updatelayout=function(t){var e=t.getdata();this._symbolel.setshape({points:e.maparray(e.getitemlayout)})},s.remove=function(){this.group.removeall()},t.exports=n},function(t,e,i){function n(t){return isnan(+t.cpx1)||isnan(+t.cpy1)}var o=i(3),a=i(5),r=o.line.prototype,s=o.beziercurve.prototype;t.exports=o.extendshape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildpath:function(t,e){(n(e)?r:s).buildpath(t,e)},pointat:function(t){return n(this.shape)?r.pointat.call(this,t):s.pointat.call(this,t)},tangentat:function(t){var e=this.shape,i=n(e)?[e.x2-e.x1,e.y2-e.y1]:s.tangentat.call(this,t);return a.normalize(i,i)}})},function(t,e,i){var n=i(1),o=i(2);i(192),i(193),o.registervisual(n.curry(i(50),"scatter","circle",null)),o.registerlayout(n.curry(i(60),"scatter")),i(32)},function(t,e,i){"use strict";var n=i(28),o=i(19);t.exports=o.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleaxis"],getinitialdata:function(t,e){var i=n(t.data,this,e);return i},brushselector:"point",defaultoption:{coordinatesystem:"cartesian2d",zlevel:0,z:2,legendhoverlink:!0,hoveranimation:!0,symbolsize:10,large:!1,largethreshold:2e3,itemstyle:{normal:{opacity:.8}}}})},function(t,e,i){var n=i(44),o=i(189);i(2).extendchartview({type:"scatter",init:function(){this._normalsymboldraw=new n,this._largesymboldraw=new o},render:function(t,e,i){var n=t.getdata(),o=this._largesymboldraw,a=this._normalsymboldraw,r=this.group,s=t.get("large")&&n.count()>t.get("largethreshold")?o:a;this._symboldraw=s,s.updatedata(n),r.add(s.group),r.remove(s===o?a.group:o.group)},updatelayout:function(t){this._symboldraw.updatelayout(t)},remove:function(t,e){this._symboldraw&&this._symboldraw.remove(e,!0)},dispose:function(){}})},function(t,e,i){var n=i(2),o=n.extendcomponentmodel({type:"axispointer",coordsysaxesinfo:null,defaultoption:{show:"auto",triggeron:null,zlevel:0,z:50,type:"line",snap:!1,triggertooltip:!0,value:null,status:null,link:[],animation:null,animationdurationupdate:200,linestyle:{color:"#aaa",width:1,type:"solid"},shadowstyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,textstyle:{color:"#fff"},padding:[5,7,5,7],backgroundcolor:"auto",bordercolor:null,borderwidth:0,shadowblur:3,shadowcolor:"#aaa"},handle:{show:!1,icon:"m10.7,11.9v-1.3h9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4c19.5,16.3,15.6,12.2,10.7,11.9z m13.3,24.4h6.7v-1.2h6.6z m13.3,22h6.7v-1.2h6.6z m13.3,19.6h6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowblur:3,shadowcolor:"#aaa",shadowoffsetx:0,shadowoffsety:2,throttle:40}}});t.exports=o},function(t,e,i){var n=i(121),o=i(2).extendcomponentview({type:"axispointer",render:function(t,e,i){var o=e.getcomponent("tooltip"),a=t.get("triggeron")||o&&o.get("triggeron")||"mousemove|click";n.register("axispointer",i,function(t,e,i){"none"!==a&&("leave"===t||a.indexof(t)>=0)&&i({type:"updateaxispointer",currtrigger:t,x:e&&e.offsetx,y:e&&e.offsety})})},remove:function(t,e){n.disopse(e.getzr(),"axispointer"),o.superapply(this._model,"remove",arguments)},dispose:function(t,e){n.unregister("axispointer",e),o.superapply(this._model,"dispose",arguments)}})},function(t,e,i){function n(t,e,i,n,a,g,m,v,b){n=n||{},i&&null!=i[0]&&null!=i[1]||(i=y({seriesindex:n.seriesindex,dataindex:n.dataindex},g).point);var w=t.axesinfo,s="leave"===e||p(i),m={},i={},t={list:[],map:{}},a=[],c={showpointer:_(r,i),showtooltip:_(s,t),highlight:_(l,a)};x(t.coordsysmap,function(e,a){var r=e.containpoint(i);x(t.coordsysaxesinfo[a],function(t,e){var a=t.axis;s||!r||d(n,a)||o(t,a.pointtodata(i),c,!1,m)})});var l={};return x(w,function(t,e){var i=t.linkgroup;i&&!i[e]&&x(i.axesinfo,function(e,n){var o=i[n];if(e!==t&&o){var a=o.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,f(e),f(t)))),l[t.key]=a}})}),x(l,function(t,e){o(w[e],t,c,!0,m)}),u(i,w),c(t,i,v,a),h(a,a,m,b),m}function o(t,e,i,n,o){var r=t.axis;if(!r.scale.isblank()&&r.containdata(e)){if(!t.involveseries)return void i.showpointer(t,e);var s=a(e,t),l=s.payloadbatch,u=s.snaptovalue;l[0]&&null==o.seriesindex&&g.extend(o,l[0]),!n&&t.snap&&r.containdata(u)&&null!=u&&(e=u),i.highlight("highlight",l),i.showpointer(t,e,l),i.showtooltip(t,s,u)}}function a(t,e){var i=e.axis,n=i.dim,o=t,a=[],r=number.max_value,s=-1;return x(e.seriesmodels,function(e,l){var u,c,h=e.coorddimtodatadim(n);if(e.getaxistooltipdata){var d=e.getaxistooltipdata(h,t,i);c=d.dataindices,u=d.nestestvalue}else{if(c=e.getdata().indicesofnearest(h[0],t,!1,"category"===i.type?.5:null),!c.length)return;u=e.getdata().get(h[0],c[0])}if(null!=u&&isfinite(u)){var f=t-u,p=math.abs(f);p<=r&&((p=0&&s<0)&&(r=p,s=f,o=u,a.length=0),x(c,function(t){a.push({seriesindex:e.seriesindex,dataindexinside:t,dataindex:e.getdata().getrawindex(t)})}))}}),{payloadbatch:a,snaptovalue:o}}function r(t,e,i,n){t[e.key]={value:i,payloadbatch:n}}function s(t,e,i,n){var o=i.payloadbatch,a=e.axis,r=a.model,s=e.axispointermodel;if(e.triggertooltip&&o.length){var l=e.coordsys.model,u=v.makekey(l),c=t.map[u];c||(c=t.map[u]={coordsysid:l.id,coordsysindex:l.componentindex,coordsystype:l.type,coordsysmaintype:l.maintype,databyaxis:[]},t.list.push(c)),c.databyaxis.push({axisdim:a.dim,axisindex:r.componentindex,axistype:r.type,axisid:r.id,value:n,valuelabelopt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesdataindices:o.slice()})}}function l(t,e,i){t.push.apply(t,i)}function u(t,e){x(e,function(e,i){var n=e.axispointermodel.option,o=t[i];o?(!e.usehandle&&(n.status="show"),n.value=o.value,n.seriesdataindices=(o.payloadbatch||[]).slice()):!e.usehandle&&(n.status="hide")})}function c(t,e,i,n){if(p(e)||!t.list.length)return void 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,dataindexinside:o.dataindexinside,dataindex:o.dataindex,seriesindex:o.seriesindex,databycoordsys:t.list})}function h(t,e,i,n){var o=i.getzr();n="lasthighlights"+(n||"");var a=b(o)[n]||{},r=b(o)[n]={};g.each(t,function(t){var e=t.seriesindex+" | "+t.dataindex;r[e]=t});var s=[],l=[];g.each(a,function(t,e){!r[e]&&l.push(t)}),g.each(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})}function d(t,e){var i=1;return x(t,function(t,e){i&=!/^.+(axisid|axisname|axisindex)$/.test(e)}),!i&&x([["axisid","id"],["axisindex","componentindex"],["axisname","name"]],function(n){var o=m.normalizetoarray(t[e.dim+n[0]]);i|=g.indexof(o,e.model[n[1]])>=0}),!i}function f(t){var e=t.axis.model,i={},n=i.axisdim=t.axis.dim;return i.axisindex=i[n+"axisindex"]=e.componentindex,i.axisname=i[n+"axisname"]=e.name,i.axisid=i[n+"axisid"]=e.id,i}function p(t){return null==t[0]||isnan(t[0])||null==t[1]||isnan(t[1])}var g=i(1),m=i(6),v=i(45),y=i(120),x=g.each,_=g.curry,b=m.makegetter();t.exports=n},function(t,e,i){i(125),i(46),i(47),i(203),i(204),i(199),i(200),i(123),i(122)},function(t,e,i){function n(t,e,i){var n=[1/0,-(1/0)];return u(i,function(t){var i=t.getdata();i&&u(t.coorddimtodatadim(e),function(t){var e=i.getdataextent(t);e[0]n[1]&&(n[1]=e[1])})}),n[1]0?0:nan);var r=i.getmax(!0);return null!=r&&"datamax"!==r?e[1]=r:o&&(e[1]=a>0?a-1:nan),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function a(t,e){var i=t.getaxismodel(),n=t._percentwindow,o=t._valuewindow;if(n){var a=s.getpixelprecision(o,[0,500]),r=e||0===n[0]&&100===n[1];i.setrange(r?null:+o[0].tofixed(a),r?null:+o[1].tofixed(a))}}var r=i(1),s=i(4),l=i(76),u=r.each,c=s.asc,h=function(t,e,i,n){this._dimname=t,this._axisindex=e,this._valuewindow,this._percentwindow,this._dataextent,this.ecmodel=n,this._datazoommodel=i};h.prototype={constructor:h,hostedby:function(t){return this._datazoommodel===t},getdatavaluewindow:function(){return this._valuewindow.slice()},getdatapercentwindow:function(){return this._percentwindow.slice()},gettargetseriesmodels:function(){var t=[],e=this.ecmodel;return e.eachseries(function(i){if(l.iscoordsupported(i.get("coordinatesystem"))){var n=this._dimname,o=e.querycomponents({maintype:n+"axis",index:i.get(n+"axisindex"),id:i.get(n+"axisid")})[0];this._axisindex===(o&&o.componentindex)&&t.push(i)}},this),t},getaxismodel:function(){return this.ecmodel.getcomponent(this._dimname+"axis",this._axisindex)},getotheraxismodel:function(){var t,e,i=this._dimname,n=this.ecmodel,o=this.getaxismodel(),a="x"===i||"y"===i;a?(e="gridindex",t="x"===i?"y":"x"):(e="polarindex",t="angle"===i?"radius":"angle");var r;return n.eachcomponent(t+"axis",function(t){(t.get(e)||0)===(o.get(e)||0)&&(r=t)}),r},calculatedatawindow:function(t){var e=this._dataextent,i=this.getaxismodel(),n=i.axis.scale,o=this._datazoommodel.getrangepropmode(),a=[0,100],r=[t.start,t.end],l=[];return u(["startvalue","endvalue"],function(e){l.push(null!=t[e]?n.parse(t[e]):null)}),u([0,1],function(t){var i=l[t],u=r[t];"percent"===o[t]?(null==u&&(u=a[t]),i=n.parse(s.linearmap(u,a,e,!0))):u=s.linearmap(i,e,a,!0),l[t]=i,r[t]=u}),{valuewindow:c(l),percentwindow:c(r)}},reset:function(t){if(t===this._datazoommodel){this._dataextent=n(this,this._dimname,this.gettargetseriesmodels());var e=this.calculatedatawindow(t.option);this._valuewindow=e.valuewindow,this._percentwindow=e.percentwindow,a(this)}},restore:function(t){t===this._datazoommodel&&(this._valuewindow=this._percentwindow=null,a(this,!0))},filterdata:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._datazoommodel){var i=this._dimname,n=this.gettargetseriesmodels(),o=t.get("filtermode"),a=this._valuewindow,r=this.getotheraxismodel();t.get("$fromtoolbox")&&r&&"category"===r.get("type")&&(o="empty"),u(n,function(t){var n=t.getdata();n&&u(t.coorddimtodatadim(i),function(i){"empty"===o?t.setdata(n.map(i,function(t){return e(t)?t:nan})):n.filterself(i,e)})})}}},t.exports=h},function(t,e,i){t.exports=i(46).extend({type:"datazoom.inside",defaultoption:{disabled:!1,zoomlock:!1}})},function(t,e,i){function n(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var o=i(47),a=i(1),r=i(78),s=i(205),l=a.bind,u=o.extend({type:"datazoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){u.superapply(this,"render",arguments),s.shouldrecordrange(n,t.id)&&(this._range=t.getpercentrange()),a.each(this.gettargetcoordinfo(),function(e,n){var o=a.map(e,function(t){return s.generatecoordid(t.model)});a.each(e,function(e){var a=e.model;s.register(i,{coordid:s.generatecoordid(a),allcoordids:o,containspoint:function(t,e,i){return a.coordinatesystem.containpoint([e,i])},datazoomid:t.id,throttlerate:t.get("throttle",!0),pangetrange:l(this._onpan,this,e,n),zoomgetrange:l(this._onzoom,this,e,n)})},this)},this)},dispose:function(){s.unregister(this.api,this.datazoommodel.id),u.superapply(this,"dispose",arguments),this._range=null},_onpan:function(t,e,i,n,o,a,s,l,u){if(this.datazoommodel.option.disabled)return this._range;var h=this._range.slice(),d=t.axismodels[0];if(d){var f=c[e]([a,s],[l,u],d,i,t),p=f.signal*(h[1]-h[0])*f.pixel/f.pixellength;return r(p,h,[0,100],"rigid"),this._range=h}},_onzoom:function(t,e,i,o,a,r){var s=this.datazoommodel.option;if(s.disabled||s.zoomlock)return this._range;var l=this._range.slice(),u=t.axismodels[0];if(u){var h=c[e](null,[a,r],u,i,t),d=(h.pixel-h.pixelstart)/h.pixellength*(l[1]-l[0])+l[0];return o=math.max(1/o,0),l[0]=(l[0]-d)*o+d,l[1]=(l[1]-d)*o+d,this._range=n(l)}}}),c={grid:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinatesystem.getrect();return t=t||[0,0],"x"===a.dim?(r.pixel=e[0]-t[0],r.pixellength=s.width,r.pixelstart=s.x,r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixellength=s.height,r.pixelstart=s.y,r.signal=a.inverse?-1:1),r},polar:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinatesystem,l=s.getradiusaxis().getextent(),u=s.getangleaxis().getextent();return t=t?s.pointtocoord(t):[0,0],e=s.pointtocoord(e),"radiusaxis"===i.maintype?(r.pixel=e[0]-t[0],r.pixellength=l[1]-l[0],r.pixelstart=l[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixellength=u[1]-u[0],r.pixelstart=u[0],r.signal=a.inverse?-1:1),r},singleaxis:function(t,e,i,n,o){var a=i.axis,r=o.model.coordinatesystem.getrect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixellength=r.width,s.pixelstart=r.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixellength=r.height,s.pixelstart=r.y,s.signal=a.inverse?-1:1),s}};t.exports=u},function(t,e,i){var n=i(46);t.exports=n.extend({type:"datazoom.select"})},function(t,e,i){t.exports=i(47).extend({type:"datazoom.select"})},function(t,e,i){var n=i(46),o=n.extend({type:"datazoom.slider",layoutmode:"box",defaultoption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundcolor:"rgba(47,69,84,0)",databackground:{linestyle:{color:"#2f4554",width:.5,opacity:.3},areastyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},bordercolor:"#ddd",fillercolor:"rgba(167,183,204,0.4)",handleicon:"m8.2,13.6v3.9h6.3v9.7h3.1v14.9h3.3v9.7h1.8v-9.7h3.3v13.6h8.2z m9.7,24.4h4.8v-1.4h4.9v24.4z m9.7,19.1h4.8v-1.4h4.9v19.1z",handlesize:"100%",handlestyle:{color:"#a7b7cc"},labelprecision:null,labelformatter:null,showdetail:!0,showdatashadow:"auto",realtime:!0,zoomlock:!1,textstyle:{color:"#333"}}});t.exports=o},function(t,e,i){function n(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}var o=i(1),a=i(3),r=i(37),s=i(47),l=a.rect,u=i(4),c=u.linearmap,h=i(12),d=i(78),f=i(21),p=u.asc,g=o.bind,m=o.each,v=7,y=1,x=30,_="horizontal",b="vertical",w=5,s=["line","bar","candlestick","scatter"],m=s.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){return m.superapply(this,"render",arguments),r.createorupdate(this,"_dispatchzoomaction",this.datazoommodel.get("throttle"),"fixrate"),this._orient=t.get("orient"),this.datazoommodel.get("show")===!1?void this.group.removeall():(n&&"datazoom"===n.type&&n.from===this.uid||this._buildview(),void this._updateview())},remove:function(){m.superapply(this,"remove",arguments),r.clear(this,"_dispatchzoomaction")},dispose:function(){m.superapply(this,"dispose",arguments),r.clear(this,"_dispatchzoomaction")},_buildview:function(){var t=this.group;t.removeall(),this._resetlocation(),this._resetinterval();var e=this._displayables.bargroup=new a.group;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()},a=this._orient===_?{right:n.width-i.x-i.width,top:n.height-x-v,width:i.width,height:x}:{right:v,top:i.y,width:x,height:i.height},r=h.getlayoutparams(t.option);o.each(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=a[t])});var s=h.getlayoutrect(r,n,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&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!==_||o?i===_&&o?{scale:r?[-1,1]:[-1,-1]}:i!==b||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;this._displayables.bargroup.add(new l({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundcolor")},z2:-40}))},_renderdatashadow:function(){var t=this._datashadowinfo=this._preparedatashadowinfo();if(t){var e=this._size,i=t.series,n=i.getrawdata(),r=i.getshadowdim?i.getshadowdim():t.otherdim;if(null!=r){var s=n.getdataextent(r),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,h=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],p=[],g=d[1]/(n.count()-1),m=0,v=math.round(n.count()/e[0]);n.each([r],function(t,e){if(v>0&&e%v)return void(m+=g);var i=null==t||isnan(t)||""===t,n=i?0:c(t,s,h,!0);i&&!u&&e?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!i&&u&&(f.push([m,0]),p.push([m,0])),f.push([m,n]),p.push([m,n]),m+=g,u=i});var y=this.datazoommodel;this._displayables.bargroup.add(new a.polygon({shape:{points:f},style:o.defaults({fill:y.get("databackgroundcolor")},y.getmodel("databackground.areastyle").getareastyle()),silent:!0,z2:-20})),this._displayables.bargroup.add(new a.polyline({shape:{points:p},style:y.getmodel("databackground.linestyle").getlinestyle(),silent:!0,z2:-19}))}}},_preparedatashadowinfo:function(){var t=this.datazoommodel,e=t.get("showdatashadow");if(e!==!1){var i,a=this.ecmodel;return t.eachtargetaxis(function(r,s){var l=t.getaxisproxy(r.name,s).gettargetseriesmodels();o.each(l,function(t){if(!(i||e!==!0&&o.indexof(s,t.get("type"))<0)){var l,u=a.getcomponent(r.axis,s).axis,c=n(r.name),h=t.coordinatesystem;null!=c&&h.getotheraxis&&(l=h.getotheraxis(u).inverse),i={thisaxis:u,series:t,thisdim:r.name,otherdim:c,otheraxisinverse:l}}},this)},this),i}},_renderhandle:function(){var t=this._displayables,e=t.handles=[],i=t.handlelabels=[],n=this._displayables.bargroup,o=this._size,r=this.datazoommodel;n.add(t.filler=new l({draggable:!0,cursor:"move",drift:g(this._ondragmove,this,"all"),onmousemove:function(t){f.stop(t.event)},ondragstart:g(this._showdatainfo,this,!0),ondragend:g(this._ondragend,this),onmouseover:g(this._showdatainfo,this,!0),onmouseout:g(this._showdatainfo,this,!1),style:{fill:r.get("fillercolor"),textposition:"inside"}})),n.add(new l(a.subpixeloptimizerect({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:r.get("databackgroundcolor")||r.get("bordercolor"),linewidth:y,fill:"rgba(0,0,0,0)"}})));var s=r.get("handleicon");m([0,1],function(t){var o=a.makepath(s,{style:{strokenoscale:!0},recthover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:g(this._ondragmove,this,t),onmousemove:function(t){f.stop(t.event)},ondragend:g(this._ondragend,this),onmouseover:g(this._showdatainfo,this,!0),onmouseout:g(this._showdatainfo,this,!1)},{x:-.5,y:0,width:1,height:1},"center"),l=o.getboundingrect();this._handleheight=u.parsepercent(r.get("handlesize"),this._size[1]),this._handlewidth=l.width/l.height*this._handleheight,o.setstyle(r.getmodel("handlestyle").getitemstyle());var c=r.get("handlecolor");null!=c&&(o.style.fill=c),n.add(e[t]=o);var h=r.textstylemodel;this.group.add(i[t]=new a.text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textverticalalign:"middle",textalign:"center",fill:h.gettextcolor(),textfont:h.getfont()},z2:10}))},this)},_resetinterval:function(){var t=this._range=this.datazoommodel.getpercentrange(),e=this._getviewextent();this._handleends=[c(t[0],[0,100],e,!0),c(t[1],[0,100],e,!0)]},_updateinterval:function(t,e){var i=this._handleends,n=this._getviewextent();d(e,i,n,"all"===t||this.datazoommodel.get("zoomlock")?"rigid":"cross",t),this._range=p([c(i[0],n,[0,100],!0),c(i[1],n,[0,100],!0)])},_updateview:function(t){var e=this._displayables,i=this._handleends,n=p(i.slice()),o=this._size;m([0,1],function(t){var n=e.handles[t],a=this._handleheight;n.attr({scale:[a,a],position:[i[t],o[1]/2-a/2]})},this),e.filler.setshape({x:n[0],y:0,width:n[1]-n[0],height:o[1]}),this._updatedatainfo(t)},_updatedatainfo:function(t){function e(t){var e=a.gettransform(n.handles[t].parent,this.group),i=a.transformdirection(0===t?"right":"left",e),l=this._handlewidth/2+w,u=a.applytransform([d[t]+(0===t?-l:l),this._size[1]/2],e);o[t].setstyle({x:u[0],y:u[1],textverticalalign:r===_?"middle":i,textalign:r===_?i:"center",text:s[t]})}var i=this.datazoommodel,n=this._displayables,o=n.handlelabels,r=this._orient,s=["",""];if(i.get("showdetail")){var l=i.findrepresentativeaxisproxy();if(l){var u=l.getaxismodel().axis,c=this._range,h=t?l.calculatedatawindow({start:c[0],end:c[1]}).valuewindow:l.getdatavaluewindow();s=[this._formatlabel(h[0],u),this._formatlabel(h[1],u)]}}var d=p(this._handleends.slice());e.call(this,0),e.call(this,1)},_formatlabel:function(t,e){var i=this.datazoommodel,n=i.get("labelformatter"),a=i.get("labelprecision");null!=a&&"auto"!==a||(a=e.getpixelprecision());var r=null==t||isnan(t)?"":"category"===e.type||"time"===e.type?e.scale.getlabel(math.round(t)):t.tofixed(math.min(a,20));return o.isfunction(n)?n(t,r):o.isstring(n)?n.replace("{value}",r):r},_showdatainfo:function(t){t=this._dragging||t;var e=this._displayables.handlelabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_ondragmove:function(t,e,i){this._dragging=!0;var n=this._applybartransform([e,i],!0);this._updateinterval(t,n[0]);var o=this.datazoommodel.get("realtime");this._updateview(!o),o&&o&&this._dispatchzoomaction()},_ondragend:function(){this._dragging=!1,this._showdatainfo(!1),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]})},_applybartransform:function(t,e){var i=this._displayables.bargroup.getlocaltransform();return a.applytransform(t,i,e)},_findcoordrect:function(){var t;if(m(this.gettargetcoordinfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinatesystem;t=i.getrect&&i.getrect()}}),!t){var e=this.api.getwidth(),i=this.api.getheight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});t.exports=m},function(t,e,i){function n(t){var e=t.getzr();return e[p]||(e[p]={})}function o(t,e,i){var n=new h(t.getzr());return n.enable(),n.on("pan",f(r,i)),n.on("zoom",f(s,i)),n}function a(t){c.each(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function r(t,e,i,n,o,a,r){l(t,function(s){return s.pangetrange(t.controller,e,i,n,o,a,r)})}function s(t,e,i,n){l(t,function(o){return o.zoomgetrange(t.controller,e,i,n)})}function l(t,e){var i=[];c.each(t.datazoominfos,function(t){var n=e(t);n&&i.push({datazoomid:t.datazoomid,start:n[0],end:n[1]})}),t.dispatchaction(i)}function u(t,e){t.dispatchaction({type:"datazoom",batch:e})}var c=i(1),h=i(93),d=i(37),f=c.curry,p="\0_ec_datazoom_roams",g={register:function(t,e){var i=n(t),r=e.datazoomid,s=e.coordid;c.each(i,function(t,i){var n=t.datazoominfos;n[r]&&c.indexof(e.allcoordids,s)<0&&(delete n[r],t.count--)}),a(i);var l=i[s];l||(l=i[s]={coordid:s,datazoominfos:{},count:0},l.controller=o(t,e,l),l.dispatchaction=c.curry(u,t)),l.controller.setpointerchecker(e.containspoint),d.createorupdate(l,"dispatchaction",e.throttlerate,"fixrate"),!l.datazoominfos[r]&&l.count++,l.datazoominfos[r]=e},unregister:function(t,e){var i=n(t);c.each(i,function(t){t.controller.dispose();var i=t.datazoominfos;i[e]&&(delete i[e],t.count--)}),a(i)},shouldrecordrange:function(t,e){if(t&&"datazoom"===t.type&&t.batch)for(var i=0,n=t.batch.length;i=0;f--)null==o[f]?o.splice(f,1):delete o[f].$action},_flatten:function(t,e,i){h.each(t,function(t){if(t){i&&(t.parentoption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useeloptionstoupdate:function(){var t=this._eloptionstoupdate;return this._eloptionstoupdate=null,t}});c.extendcomponentview({type:"graphic",init:function(t,e){this._elmap={},this._lastgraphicmodel},render:function(t,e,i){t!==this._lastgraphicmodel&&this._clear(),this._lastgraphicmodel=t,this._updateelements(t,i),this._relocate(t,i)},_updateelements:function(t,e){var i=t.useeloptionstoupdate();if(i){var r=this._elmap,s=this.group;h.each(i,function(t){var e=t.$action,i=t.id,l=r[i],u=t.parentid,c=null!=u?r[u]:s;t.hv&&t.hv[1]&&"text"===t.type&&(t.style=h.defaults({textbaseline:"middle"},t.style),t.style.textverticalalign=null);var d=a(t);e&&"merge"!==e?"replace"===e?(o(l,r),n(i,c,d,r)):"remove"===e&&o(l,r):l?l.attr(d):n(i,c,d,r),r[i]&&(r[i].__ecgraphicwidth=t.width,r[i].__ecgraphicheight=t.height)})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,o=this._elmap,a=i.length-1;a>=0;a--){var r=i[a],s=o[r.id];if(s){var l=s.parent,u=l===n?{width:e.getwidth(),height:e.getheight()}:{width:l.__ecgraphicwidth||0,height:l.__ecgraphicheight||0};p.positionelement(s,r,u,null,{hv:r.hv,boundingmode:r.bounding})}}},_clear:function(){var t=this._elmap;h.each(t,function(e){o(e,t)}),this._elmap={}},dispose:function(){this._clear()}})},function(t,e,i){i(32),i(119),i(55)},function(t,e,i){i(210),i(212),i(211);var n=i(2);n.registerprocessor(i(213))},function(t,e,i){"use strict";var n=i(1),o=i(10),a=i(2).extendcomponentmodel({type:"legend",dependencies:["series"],layoutmode:{type:"box",ignoresize:!0},init:function(t,e,i){this.mergedefaultandtheme(t,i),t.selected=t.selected||{}},mergeoption:function(t){a.supercall(this,"mergeoption",t)},optionupdated:function(){this._updatedata(this.ecmodel);var t=this._data;if(t[0]&&"single"===this.get("selectedmode")){for(var e=!1,i=0;i=0},defaultoption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderwidth:0,padding:5,itemgap:10,itemwidth:25,itemheight:14,inactivecolor:"#ccc",textstyle:{color:"#333"},selectedmode:!0,tooltip:{show:!1}}});t.exports=a},function(t,e,i){function n(t,e){e.dispatchaction({type:"legendtoggleselect",name:t})}function o(t,e,i){var n=i.getzr().storage.getdisplaylist()[0];n&&n.usehoverlayer||t.get("legendhoverlink")&&i.dispatchaction({type:"highlight",seriesname:t.name,name:e})}function a(t,e,i){var n=i.getzr().storage.getdisplaylist()[0];n&&n.usehoverlayer||t.get("legendhoverlink")&&i.dispatchaction({type:"downplay",seriesname:t.name,name:e})}var r=i(1),s=i(24),l=i(3),u=i(129),c=r.curry;t.exports=i(2).extendcomponentview({type:"legend",init:function(){this._symboltypestore={}},render:function(t,e,i){var s=this.group;if(s.removeall(),t.get("show")){var h=t.get("selectedmode"),d=t.get("align");"auto"===d&&(d="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var f={};r.each(t.getdata(),function(r){var u=r.get("name");if(""===u||"\n"===u)return void s.add(new l.group({newline:!0}));var p=e.getseriesbyname(u)[0];if(!f[u])if(p){var g=p.getdata(),m=g.getvisual("color");"function"==typeof m&&(m=m(p.getdataparams(0)));var v=g.getvisual("legendsymbol")||"roundrect",y=g.getvisual("symbol"),x=this._createitem(u,r,t,v,y,d,m,h);x.on("click",c(n,u,i)).on("mouseover",c(o,p,null,i)).on("mouseout",c(a,p,null,i)),f[u]=!0}else e.eachrawseries(function(e){if(!f[u]&&e.legenddataprovider){var s=e.legenddataprovider(),l=s.indexofname(u);if(l<0)return;var p=s.getitemvisual(l,"color"),g="roundrect",m=this._createitem(u,r,t,g,null,d,p,h);m.on("click",c(n,u,i)).on("mouseover",c(o,e,u,i)).on("mouseout",c(a,e,u,i)),f[u]=!0}},this)},this),u.layout(s,t,i),u.addbackground(s,t)}},_createitem:function(t,e,i,n,o,a,u,c){var h=i.get("itemwidth"),d=i.get("itemheight"),f=i.get("inactivecolor"),p=i.isselected(t),g=new l.group,m=e.getmodel("textstyle"),v=e.get("icon"),y=e.getmodel("tooltip"),x=y.parentmodel;if(n=v||n,g.add(s.createsymbol(n,0,0,h,d,p?u:f)),!v&&o&&(o!==n||"none"==o)){var _=.8*d;"none"===o&&(o="circle"),g.add(s.createsymbol(o,(h-_)/2,(d-_)/2,_,_,p?u:f))}var b="left"===a?h+5:-5,w=a,s=i.get("formatter"),m=t;"string"==typeof s&&s?m=s.replace("{name}",null!=t?t:""):"function"==typeof s&&(m=s(t));var i=new l.text({style:{text:m,x:b,y:d/2,fill:p?m.gettextcolor():f,textfont:m.getfont(),textalign:w,textverticalalign:"middle"}});g.add(i);var t=new l.rect({shape:g.getboundingrect(),invisible:!0,tooltip:y.get("show")?r.extend({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterparams:{componenttype:"legend",legendindex:i.componentindex,name:t,$vars:["name"]}},y.option):null});return g.add(t),g.eachchild(function(t){t.silent=!0}),t.silent=!c,this.group.add(g),l.sethoverstyle(g),g}})},function(t,e,i){function n(t,e,i){var n,o={},r="toggleselected"===t;return i.eachcomponent("legend",function(i){r&&null!=n?i[n?"select":"unselect"](e.name):(i[t](e.name),n=i.isselected(e.name));var s=i.getdata();a.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isselected(e);e in o?o[e]=o[e]&&n:o[e]=n}})}),{name:e.name,selected:o}}var o=i(2),a=i(1);o.registeraction("legendtoggleselect","legendselectchanged",a.curry(n,"toggleselected")),o.registeraction("legendselect","legendselected",a.curry(n,"select")),o.registeraction("legendunselect","legendunselected",a.curry(n,"unselect"))},function(t,e){t.exports=function(t){var e=t.findcomponents({maintype:"legend"});e&&e.length&&t.filterseries(function(t){for(var i=0;i=0&&"number"==typeof u&&(u=+u.tofixed(m)),p.coord[d]=g.coord[d]=u,n=[p,g,{type:a,valueindex:n.valueindex,value:u}]}return n=[h.datatransform(t,n[0]),h.datatransform(t,n[1]),l.extend({},n[2])],n[2].type=n[2].type||"",l.merge(n[2],n[0]),l.merge(n[2],n[1]),n};i(80).extend({type:"markline",updatelayout:function(t,e,i){e.eachseries(function(t){var e=t.marklinemodel;if(e){var n=e.getdata(),o=e.__from,a=e.__to;o.each(function(e){r(o,e,!0,t,i),r(a,e,!1,t,i)}),n.each(function(t){n.setitemlayout(t,[o.getitemlayout(t),a.getitemlayout(t)])}),this.markergroupmap[t.name].updatelayout()}},this)},renderseries:function(t,e,i,n){function o(e,i,o){var a=e.getitemmodel(i);r(e,i,o,t,n),e.setitemvisual(i,{symbolsize:a.get("symbolsize")||x[o?0:1],symbol:a.get("symbol",!0)||y[o?0:1],color:a.get("itemstyle.normal.color")||c.getvisual("color")})}var a=t.coordinatesystem,u=t.name,c=t.getdata(),h=this.markergroupmap,f=h[u];f||(f=h[u]=new d),this.group.add(f.group);var p=s(a,t,e),g=p.from,m=p.to,v=p.line;e.__from=g,e.__to=m,e.setdata(v);var y=e.get("symbol"),x=e.get("symbolsize");l.isarray(y)||(y=[y,y]),"number"==typeof x&&(x=[x,x]),p.from.each(function(t){o(g,t,!0),o(m,t,!1)}),v.each(function(t){var e=v.getitemmodel(t).get("linestyle.normal.color");v.setitemvisual(t,{color:e||g.getitemvisual(t,"color")}),v.setitemlayout(t,[g.getitemlayout(t),m.getitemlayout(t)]),v.setitemvisual(t,{fromsymbolsize:g.getitemvisual(t,"symbolsize"),fromsymbol:g.getitemvisual(t,"symbol"),tosymbolsize:m.getitemvisual(t,"symbolsize"),tosymbol:m.getitemvisual(t,"symbol")})}),f.updatedata(v),p.line.eachitemgraphicel(function(t,i){t.traverse(function(t){t.datamodel=e})}),f.__keep=!0,f.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,i){t.exports=i(79).extend({type:"markpoint",defaultoption:{zlevel:0,z:5,symbol:"pin",symbolsize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemstyle:{normal:{borderwidth:2}}}})},function(t,e,i){function n(t,e,i){var n=e.coordinatesystem;t.each(function(o){var a,r=t.getitemmodel(o),l=s.parsepercent(r.get("x"),i.getwidth()),u=s.parsepercent(r.get("y"),i.getheight());if(isnan(l)||isnan(u)){if(e.getmarkerposition)a=e.getmarkerposition(t.getvalues(t.dimensions,o));else if(n){var c=t.get(n.dimensions[0],o),h=t.get(n.dimensions[1],o);a=n.datatopoint([c,h])}}else a=[l,u];isnan(l)||(a[0]=l),isnan(u)||(a[1]=u),t.setitemlayout(o,a)})}function o(t,e,i){var n;n=t?r.map(t&&t.dimensions,function(t){var i=e.getdata().getdimensioninfo(e.coorddimtodatadim(t)[0])||{};return i.name=t,i}):[{name:"value",type:"float"}];var o=new l(n,i),a=r.map(i.get("data"),r.curry(u.datatransform,e));return t&&(a=r.filter(a,r.curry(u.datafilter,t))),o.initdata(a,null,t?u.dimvaluegetter:function(t){return t.value}),o}var a=i(44),r=i(1),s=i(4),l=i(14),u=i(81);i(80).extend({type:"markpoint",updatelayout:function(t,e,i){e.eachseries(function(t){var e=t.markpointmodel;e&&(n(e.getdata(),t,i),this.markergroupmap[t.name].updatelayout(e))},this)},renderseries:function(t,e,i,r){var s=t.coordinatesystem,l=t.name,u=t.getdata(),c=this.markergroupmap,h=c[l];h||(h=c[l]=new a);var d=o(s,t,e);e.setdata(d),n(e.getdata(),t,r),d.each(function(t){var i=d.getitemmodel(t),n=i.getshallow("symbolsize");"function"==typeof n&&(n=n(e.getrawvalue(t),e.getdataparams(t))),d.setitemvisual(t,{symbolsize:n,color:i.get("itemstyle.normal.color")||u.getvisual("color"),symbol:i.getshallow("symbol")})}),h.updatedata(d),this.group.add(h.group),d.eachitemgraphicel(function(t){t.traverse(function(t){t.datamodel=e})}),h.__keep=!0,h.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,i){"use strict";var n=i(2),o=i(3),a=i(12);n.extendcomponentmodel({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"}}}),n.extendcomponentview({type:"title",render:function(t,e,i){if(this.group.removeall(),t.get("show")){var n=this.group,r=t.getmodel("textstyle"),s=t.getmodel("subtextstyle"),l=t.get("textalign"),u=t.get("textbaseline"),c=new o.text({style:{text:t.get("text"),textfont:r.getfont(),fill:r.gettextcolor()},z2:10}),h=c.getboundingrect(),d=t.get("subtext"),f=new o.text({style:{text:d,textfont:s.getfont(),fill:s.gettextcolor(),y:h.height+t.get("itemgap"),textbaseline:"top"},z2:10}),p=t.get("link"),g=t.get("sublink");c.silent=!p,f.silent=!g,p&&c.on("click",function(){window.open(p,"_"+t.get("target"))}),g&&f.on("click",function(){window.open(g,"_"+t.get("subtarget"))}),n.add(c),d&&n.add(f);var m=n.getboundingrect(),v=t.getboxlayoutparams();v.width=m.width,v.height=m.height;var y=a.getlayoutrect(v,{width:i.getwidth(),height:i.getheight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?y.y+=y.height:"middle"===u&&(y.y+=y.height/2),u=u||"top"),n.attr("position",[y.x,y.y]);var x={textalign:l,textverticalalign:u};c.setstyle(x),f.setstyle(x),m=n.getboundingrect();var _=y.margin,b=t.getitemstyle(["color","opacity"]);b.fill=t.get("backgroundcolor");var w=new o.rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2]},style:b,silent:!0});o.subpixeloptimizerect(w),n.add(w)}}})},function(t,e,i){i(225),i(226),i(231),i(229),i(227),i(228),i(230)},function(t,e,i){var n=i(29),o=i(1),a=i(2).extendcomponentmodel({type:"toolbox",layoutmode:{type:"box",ignoresize:!0},mergedefaultandtheme:function(t){a.superapply(this,"mergedefaultandtheme",arguments),o.each(this.option.feature,function(t,e){var i=n.get(e);i&&o.merge(t,i.defaultoption)})},defaultoption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundcolor:"transparent",bordercolor:"#ccc",borderwidth:0,padding:5,itemsize:15,itemgap:8,showtitle:!0,iconstyle:{normal:{bordercolor:"#666",color:"none"},emphasis:{bordercolor:"#3e98c5"}}}});t.exports=a},function(t,e,i){(function(e){function n(t){return 0===t.indexof("my")}var o=i(29),a=i(1),r=i(3),s=i(10),l=i(48),u=i(129),c=i(17);t.exports=i(2).extendcomponentview({type:"toolbox",render:function(t,e,i,h){function d(a,r){var l,u=y[a],c=y[r],d=m[u],p=new s(d,t,t.ecmodel);if(u&&!c){if(n(u))l={model:p,onclick:p.option.onclick,featurename:u};else{var g=o.get(u);if(!g)return;l=new g(p,e,i)}v[u]=l}else{if(l=v[c],!l)return;l.model=p,l.ecmodel=e,l.api=i}return!u&&c?void(l.dispose&&l.dispose(e,i)):!p.get("show")||l.unusable?void(l.remove&&l.remove(e,i)):(f(p,l,u),p.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)},void(l.render&&l.render(p,e,i,h)))}function f(n,o,s){var l=n.getmodel("iconstyle"),u=o.geticons?o.geticons():n.get("icon"),c=n.get("title")||{};if("string"==typeof u){var h=u,d=c;u={},c={},u[s]=h,c[s]=d}var f=n.iconpaths={};a.each(u,function(s,u){var h=l.getmodel("normal").getitemstyle(),d=l.getmodel("emphasis").getitemstyle(),m={x:-g/2,y:-g/2,width:g,height:g},v=0===s.indexof("image://")?(m.image=s.slice(8),new r.image({style:m})):r.makepath(s.replace("path://",""),{style:h,hoverstyle:d,recthover:!0},m,"center");r.sethoverstyle(v),t.get("showtitle")&&(v.__title=c[u],v.on("mouseover",function(){var t=l.getmodel("emphasis").getitemstyle();v.setstyle({text:c[u],textposition:t.textposition||"bottom",textfill:t.fill||t.stroke||"#000",textalign:t.textalign||"center"})}).on("mouseout",function(){v.setstyle({textfill:null})})),v.trigger(n.get("iconstatus."+u)||"normal"),p.add(v),v.on("click",a.bind(o.onclick,o,e,i,u)),f[u]=v})}var p=this.group;if(p.removeall(),t.get("show")){var g=+t.get("itemsize"),m=t.get("feature")||{},v=this._features||(this._features={}),y=[];a.each(m,function(t,e){y.push(e)}),new l(this._featurenames||[],y).add(d).update(d).remove(a.curry(d,null)).execute(),this._featurenames=y,u.layout(p,t,i),u.addbackground(p,t),p.eachchild(function(t){var e=t.__title,n=t.hoverstyle;if(n&&e){var o=c.getboundingrect(e,n.font),a=t.position[0]+p.position[0],r=t.position[1]+p.position[1]+g,s=!1;r+o.height>i.getheight()&&(n.textposition="top",s=!0);var l=s?-5-o.height:g+8;a+o.width/2>i.getwidth()?(n.textposition=["100%",l],n.textalign="right"):a-o.width/2<0&&(n.textposition=[0,l],n.textalign="left")}})}},updateview:function(t,e,i,n){a.each(this._features,function(t){t.updateview&&t.updateview(t.model,e,i,n)})},updatelayout:function(t,e,i,n){a.each(this._features,function(t){t.updatelayout&&t.updatelayout(t.model,e,i,n)})},remove:function(t,e){a.each(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeall()},dispose:function(t,e){a.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}})}).call(e,i(188))},function(t,e,i){function n(t){var e={},i=[],n=[];return t.eachrawseries(function(t){var o=t.coordinatesystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)i.push(t);else{var a=o.getbaseaxis();if("category"===a.type){var r=a.dim+"_"+a.index;e[r]||(e[r]={categoryaxis:a,valueaxis:o.getotheraxis(a),series:[]},n.push({axisdim:a.dim,axisindex:a.index})),e[r].series.push(t)}else i.push(t)}}),{seriesgroupbycategoryaxis:e,other:i,meta:n}}function o(t){var e=[];return p.each(t,function(t,i){var n=t.categoryaxis,o=t.valueaxis,a=o.dim,r=[" "].concat(p.map(t.series,function(t){return t.name})),s=[n.model.getcategories()];p.each(t.series,function(t){s.push(t.getrawdata().maparray(a,function(t){return t}))});for(var l=[r.join(v)],u=0;u=0)return!0}function u(t){for(var e=t.split(/\n+/g),i=s(e.shift()).split(y),n=[],o=p.map(i,function(t){return{name:t,data:[]}}),a=0;a1?"emphasis":"normal")}function r(t,e,i,n,a){var r=i._iszoomactive;n&&"takeglobalcursor"===n.type&&(r="datazoomselect"===n.key&&n.datazoomselectactive),i._iszoomactive=r,t.seticonstatus("zoom",r?"emphasis":"normal");var s=new u(o(t.option),e,{include:["grid"]});i._brushcontroller.setpanels(s.makepanelopts(a,function(t){return t.xaxisdeclared&&!t.yaxisdeclared?"linex":!t.xaxisdeclared&&t.yaxisdeclared?"liney":"rect"})).enablebrush(!!r&&{brushtype:"auto",brushstyle:{linewidth:0,fill:"rgba(0,0,0,0.2)"}})}var s=i(1),l=i(126),u=i(184),c=i(124),h=s.each;i(206);var d="\0_ec_\0toolbox-datazoom_";n.defaultoption={show:!0,icon:{zoom:"m0,13.5h26.9 m13.5,26.9v0 m32.1,13.5h58v58h13.5 v32.1",back:"m22,1.4l9.9,13.5l12.3,12.3 m10.3,13.5h54.9v44.6 h10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var f=n.prototype;f.render=function(t,e,i,n){this.model=t,this.ecmodel=e,this.api=i,r(t,e,this,n,i),a(t,e)},f.onclick=function(t,e,i){p[i].call(this)},f.remove=function(t,e){this._brushcontroller.unmount()},f.dispose=function(t,e){this._brushcontroller.dispose()};var p={zoom:function(){var t=!this._iszoomactive;this.api.dispatchaction({type:"takeglobalcursor",key:"datazoomselect",datazoomselectactive:t})},back:function(){this._dispatchzoomaction(c.pop(this.ecmodel))}};f._onbrush=function(t,e){function i(t,e,i){var o=n(t,e.getaxis(t).model,r);o&&(a[o.id]={datazoomid:o.id,startvalue:i[0],endvalue:i[1]})}function n(t,e,i){var n;return i.eachcomponent({maintype:"datazoom",subtype:"select"},function(i){var o=i.getaxismodel(t,e.componentindex);o&&(n=i)}),n}if(e.isend&&t.length){var a={},r=this.ecmodel;this._brushcontroller.updatecovers([]);var s=new u(o(this.model.option),r,{include:["grid"]});s.matchoutputranges(t,r,function(t,e,n){if("cartesian2d"===n.type){var o=t.brushtype;"rect"===o?(i("x",n,e[0]),i("y",n,e[1])):i({linex:"x",liney:"y"}[o],n,e)}}),c.push(r,a),this._dispatchzoomaction(a)}},f._dispatchzoomaction=function(t){var e=[];h(t,function(t,i){e.push(s.clone(t))}),e.length&&this.api.dispatchaction({type:"datazoom",from:this.uid,batch:e})},i(29).register("datazoom",n),i(2).registerpreprocessor(function(t){function e(t,e){if(e){var o=t+"index",a=e[o];null==a||"all"==a||s.isarray(a)||(a=a===!1||"none"===a?[]:[a]),i(t,function(e,i){if(null==a||"all"==a||s.indexof(a,i)!==-1){var r={type:"select",$fromtoolbox:!0,id:d+t+i};r[o]=i,n.push(r)}})}}function i(e,i){var n=t[e];s.isarray(n)||(n=n?[n]:[]), h(n,i)}if(t){var n=t.datazoom||(t.datazoom=[]);s.isarray(n)||(t.datazoom=n=[n]);var o=t.toolbox;if(o&&(s.isarray(o)&&(o=o[0]),o&&o.feature)){var a=o.feature.datazoom;e("xaxis",a),e("yaxis",a)}}}),t.exports=n},function(t,e,i){"use strict";function n(t){this.model=t}var o=i(1);n.defaultoption={show:!0,type:[],icon:{line:"m4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9m4.1,58h51.4",bar:"m6.7,22.9h10v48h-10v22.9zm24.9,13h10v35h-10v13zm43.2,2h10v46h-10v2zm3.1,58h53.7",stack:"m8.2,38.4l-8.4,4.1l30.6,15.3l60,42.5l-8.1-4.1l-21.5,11l8.2,38.4z m51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9l8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2l51.9,30z m51.9,21.7l-8.1,4.2l35.7,30l-5.3,2.8l24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2l8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1l51.9,21.7zm30.4,2.2l-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1l30.4,2.2z",tiled:"m2.3,2.2h22.8v25h2.3v2.2z m35,2.2h22.8v25h35v2.2zm2.3,35h22.8v22.8h2.3v35z m35,35h22.8v22.8h35v35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesindex:{}};var a=n.prototype;a.geticons=function(){var t=this.model,e=t.get("icon"),i={};return o.each(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var r={line:function(t,e,i,n){if("bar"===t)return o.merge({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 o.merge({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){if("line"===t||"bar"===t)return o.merge({id:e,stack:"__ec_magictype_stack__"},n.get("option.stack")||{},!0)},tiled:function(t,e,i,n){if("line"===t||"bar"===t)return o.merge({id:e,stack:""},n.get("option.tiled")||{},!0)}},s=[["line","bar"],["stack","tiled"]];a.onclick=function(t,e,i){var n=this.model,a=n.get("seriesindex."+i);if(r[i]){var l={series:[]},u=function(e){var a=e.subtype,s=e.id,u=r[i](a,s,e,n);u&&(o.defaults(u,e.option),l.series.push(u));var c=e.coordinatesystem;if(c&&"cartesian2d"===c.type&&("line"===i||"bar"===i)){var h=c.getaxesbyscale("ordinal")[0];if(h){var d=h.dim,f=d+"axis",p=t.querycomponents({maintype:f,index:e.get(name+"index"),id:e.get(name+"id")})[0],g=p.componentindex;l[f]=l[f]||[];for(var m=0;m<=g;m++)l[f][g]=l[f][g]||{};l[f][g].boundarygap="bar"===i}}};o.each(s,function(t){o.indexof(t,i)>=0&&o.each(t,function(t){n.seticonstatus(t,"normal")})}),n.seticonstatus(i,"emphasis"),t.eachcomponent({maintype:"series",query:null==a?null:{seriesindex:a}},u),e.dispatchaction({type:"changemagictype",currenttype:i,newoption:l})}};var l=i(2);l.registeraction({type:"changemagictype",event:"magictypechanged",update:"prepareandupdate"},function(t,e){e.mergeoption(t.newoption)}),i(29).register("magictype",n),t.exports=n},function(t,e,i){"use strict";function n(t){this.model=t}var o=i(124);n.defaultoption={show:!0,icon:"m3.8,33.4 m47,18.9h9.8v8.7 m56.3,20.1 c52.1,9,40.5,0.6,26.8,2.1c12.6,3.7,1.6,16.2,2.1,30.6 m13,41.1h3.1v10.2 m3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var a=n.prototype;a.onclick=function(t,e,i){o.clear(t),e.dispatchaction({type:"restore",from:this.uid})},i(29).register("restore",n),i(2).registeraction({type:"restore",event:"restore",update:"prepareandupdate"},function(t,e){e.resetoption("recreate")}),t.exports=n},function(t,e,i){function n(t){this.model=t}var o=i(9);n.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:"保存为图片",type:"png",name:"",excludecomponents:["toolbox"],pixelratio:1,lang:["右键另存为图片"]},n.prototype.unusable=!o.canvassupported;var a=n.prototype;a.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",a=document.createelement("a"),r=i.get("type",!0)||"png";a.download=n+"."+r,a.target="_blank";var s=e.getconnecteddataurl({type:r,backgroundcolor:i.get("backgroundcolor",!0)||t.get("backgroundcolor")||"#fff",excludecomponents:i.get("excludecomponents"),pixelratio:i.get("pixelratio")});if(a.href=s,"function"!=typeof mouseevent||o.browser.ie||o.browser.edge){var l=i.get("lang"),u='',c=window.open();c.document.write(u)}else{var h=new mouseevent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchevent(h)}},i(29).register("saveasimage",n),t.exports=n},function(t,e,i){i(55),i(234),i(235),i(2).registeraction({type:"showtip",event:"showtip",update:"tooltip:manuallyshowtip"},function(){}),i(2).registeraction({type:"hidetip",event:"hidetip",update:"tooltip:manuallyhidetip"},function(){})},function(t,e,i){function n(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(p,function(t){return t+"transition:"+i}).join(";")}function o(t){var e=[],i=t.get("fontsize"),n=t.gettextcolor();return n&&e.push("color:"+n),e.push("font:"+t.getfont()),i&&e.push("line-height:"+math.round(3*i/2)+"px"),h(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function a(t){var e=[],i=t.get("transitionduration"),a=t.get("backgroundcolor"),r=t.getmodel("textstyle"),s=t.get("padding");return i&&e.push(n(i)),a&&(f.canvassupported?e.push("background-color:"+a):(e.push("background-color:#"+l.tohex(a)),e.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(i){var n="border-"+i,o=d(n),a=t.get(o);null!=a&&e.push(n+":"+a+("color"===i?"":"px"))}),e.push(o(r)),null!=s&&e.push("padding:"+c.normalizecssarray(s).join("px ")+"px"),e.join(";")+";"}function r(t,e){var i=document.createelement("div"),n=this._zr=e.getzr();this.el=i,this._x=e.getwidth()/2,this._y=e.getheight()/2,t.appendchild(i),this._container=t,this._show=!1,this._hidetimeout;var o=this;i.onmouseenter=function(){o._enterable&&(cleartimeout(o._hidetimeout),o._show=!0),o._incontent=!0},i.onmousemove=function(e){if(e=e||window.event,!o._enterable){var i=n.handler;u.normalizeevent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){o._enterable&&o._show&&o.hidelater(o._hidedelay),o._incontent=!1}}var s=i(1),l=i(22),u=i(21),c=i(7),h=s.each,d=c.tocamelcase,f=i(9),p=["","-webkit-","-moz-","-o-"],g="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";r.prototype={constructor:r,_enterable:!0,update:function(){var t=this._container,e=t.currentstyle||document.defaultview.getcomputedstyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){cleartimeout(this._hidetimeout);var e=this.el;e.style.csstext=g+a(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extracsstext")||""),e.style.display=e.innerhtml?"block":"none",this._show=!0},setcontent:function(t){this.el.innerhtml=null==t?"":t},setenterable:function(t){this._enterable=t},getsize:function(){var t=this.el;return[t.clientwidth,t.clientheight]},moveto:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getviewportroot())&&(t+=i.offsetleft||0,e+=i.offsettop||0);var o=this.el.style;o.left=t+"px",o.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hidelater:function(t){!this._show||this._incontent&&this._enterable||(t?(this._hidedelay=t,this._show=!1,this._hidetimeout=settimeout(s.bind(this.hide,this),t)):this.hide())},isshow:function(){return this._show}},t.exports=r},function(t,e,i){i(2).extendcomponentmodel({type:"tooltip",dependencies:["axispointer"],defaultoption:{zlevel:0,z:8,show:!0,showcontent:!0,trigger:"item",triggeron:"mousemove|click",alwaysshowcontent:!1,displaymode:"single",confine:!1,showdelay:0,hidedelay:100,transitionduration:.4,enterable:!1,backgroundcolor:"rgba(50,50,50,0.7)",bordercolor:"#333",borderradius:4,borderwidth:0,padding:5,extracsstext:"",axispointer:{type:"line",axis:"auto",animation:"auto",animationdurationupdate:200,animationeasingupdate:"exponentialout",crossstyle:{color:"#999",width:1,type:"dashed",textstyle:{}}},textstyle:{color:"#fff",fontsize:14}}})},function(t,e,i){function n(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(i instanceof v&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new v(i,e,e.ecmodel))}return e}function o(t,e){return t.dispatchaction||c.bind(e.dispatchaction,e)}function a(t,e,i,n,o,a,r){var s=i.clientwidth,l=i.clientheight;return null!=a&&(t+s+a>n?t-=s+a:t+=a),null!=r&&(e+l+r>o?e-=l+r:e+=r),[t,e]}function r(t,e,i,n,o){var a=i.clientwidth,r=i.clientheight;return t=math.min(t+a,n)-a,e=math.min(e+r,o)-r,t=math.max(t,0),e=math.max(e,0),[t,e]}function s(t,e,i){var n=i[0],o=i[1],a=5,r=0,s=0,l=e.width,u=e.height;switch(t){case"inside":r=e.x+l/2-n/2,s=e.y+u/2-o/2;break;case"top":r=e.x+l/2-n/2,s=e.y-o-a;break;case"bottom":r=e.x+l/2-n/2,s=e.y+u+a;break;case"left":r=e.x-n-a,s=e.y+u/2-o/2;break;case"right":r=e.x+l+a,s=e.y+u/2-o/2}return[r,s]}function l(t){return"center"===t||"middle"===t}var u=i(233),c=i(1),h=i(7),d=i(4),f=i(3),p=i(120),g=i(12),m=i(9),v=i(10),y=i(121),x=i(18),_=i(75),b=c.bind,w=c.each,s=d.parsepercent,m=new f.rect({shape:{x:-1,y:-1,width:2,height:2}});i(2).extendcomponentview({type:"tooltip",init:function(t,e){if(!m.node){var i=new u(e.getdom(),e);this._tooltipcontent=i}},render:function(t,e,i){if(!m.node){this.group.removeall(),this._tooltipmodel=t,this._ecmodel=e,this._api=i,this._lastdatabycoordsys=null,this._alwaysshowcontent=t.get("alwaysshowcontent");var n=this._tooltipcontent;n.update(),n.setenterable(t.get("enterable")),this._initgloballistener(),this._keepshow()}},_initgloballistener:function(){var t=this._tooltipmodel,e=t.get("triggeron");y.register("itemtooltip",this._api,b(function(t,i,n){"none"!==e&&(e.indexof(t)>=0?this._tryshow(i,n):"leave"===t&&this._hide(n))},this))},_keepshow:function(){var t=this._tooltipmodel,e=this._ecmodel,i=this._api;if(null!=this._lastx&&null!=this._lasty&&"none"!==t.get("triggeron")){var n=this;cleartimeout(this._refreshupdatetimeout),this._refreshupdatetimeout=settimeout(function(){n.manuallyshowtip(t,e,i,{x:n._lastx,y:n._lasty})})}},manuallyshowtip:function(t,e,i,n){if(n.from!==this.uid&&!m.node){var a=o(n,i);this._ticket="";var r=n.databycoordsys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=m;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryshow({offsetx:n.x,offsety:n.y,target:s},a)}else if(r)this._tryshow({offsetx:n.x,offsety:n.y,position:n.position,event:{},databycoordsys:n.databycoordsys,tooltipoption:n.tooltipoption},a);else if(null!=n.seriesindex){if(this._manuallyaxisshowtip(t,e,i,n))return;var l=p(n,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryshow({offsetx:u,offsety:c,position:n.position,target:l.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchaction({type:"updateaxispointer",x:n.x,y:n.y}),this._tryshow({offsetx:n.x,offsety:n.y,position:n.position,target:i.getzr().findhover(n.x,n.y).target,event:{}},a))}},manuallyhidetip:function(t,e,i,n){var a=this._tooltipcontent;this._alwaysshowcontent||a.hidelater(this._tooltipmodel.get("hidedelay")),this._lastx=this._lasty=null,n.from!==this.uid&&this._hide(o(n,i))},_manuallyaxisshowtip:function(t,e,i,o){var a=o.seriesindex,r=o.dataindex,s=e.getcomponent("axispointer").coordsysaxesinfo;if(null!=a&&null!=r&&null!=s){var l=e.getseriesbyindex(a);if(l){var u=l.getdata(),t=n([u.getitemmodel(r),l,(l.coordinatesystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchaction({type:"updateaxispointer",seriesindex:a,dataindex:r}),!0}}},_tryshow:function(t,e){var i=t.target,n=this._tooltipmodel;if(n){this._lastx=t.offsetx,this._lasty=t.offsety;var o=t.databycoordsys;o&&o.length?this._showaxistooltip(o,t):i&&null!=i.dataindex?(this._lastdatabycoordsys=null,this._showseriesitemtooltip(t,i,e)):i&&i.tooltip?(this._lastdatabycoordsys=null,this._showcomponentitemtooltip(t,i,e)):(this._lastdatabycoordsys=null,this._hide(e))}},_showormove:function(t,e){var i=t.get("showdelay");e=c.bind(e,this),cleartimeout(this._showtimout),i>0?this._showtimout=settimeout(e,i):e()},_showaxistooltip:function(t,e){var i=this._ecmodel,o=this._tooltipmodel,a=[e.offsetx,e.offsety],r=[],s=[],l=n([e.tooltipoption,o]);w(t,function(t){w(t.databyaxis,function(t){var e=i.getcomponent(t.axisdim+"axis",t.axisindex),n=t.value,o=[];if(e&&null!=n){var a=_.getvaluelabel(n,e.axis,i,t.seriesdataindices,t.valuelabelopt);c.each(t.seriesdataindices,function(r){var l=i.getseriesbyindex(r.seriesindex),u=r.dataindexinside,c=l&&l.getdataparams(u);c.axisdim=t.axisdim,c.axisindex=t.axisindex,c.axistype=t.axistype,c.axisid=t.axisid,c.axisvalue=x.getaxisrawvalue(e.axis,n),c.axisvaluelabel=a,c&&(s.push(c),o.push(l.formattooltip(u,!0)))});var l=a;r.push((l?h.encodehtml(l)+"
":"")+o.join("
"))}})},this),r.reverse(),r=r.join("

");var u=e.position;this._showormove(l,function(){this._updatecontentnotchangedonaxis(t)?this._updateposition(l,u,a[0],a[1],this._tooltipcontent,s):this._showtooltipcontent(l,r,s,math.random(),a[0],a[1],u)})},_showseriesitemtooltip:function(t,e,i){var o=this._ecmodel,a=e.seriesindex,r=o.getseriesbyindex(a),s=e.datamodel||r,l=e.dataindex,u=e.datatype,c=s.getdata(),h=n([c.getitemmodel(l),s,r&&(r.coordinatesystem||{}).model,this._tooltipmodel]),d=h.get("trigger");if(null==d||"item"===d){var f=s.getdataparams(l,u),p=s.formattooltip(l,!1,u),g="item_"+s.name+"_"+l;this._showormove(h,function(){this._showtooltipcontent(h,p,f,g,t.offsetx,t.offsety,t.position,t.target)}),i({type:"showtip",dataindexinside:l,dataindex:c.getrawindex(l),seriesindex:a,from:this.uid})}},_showcomponentitemtooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var o=n;n={content:o,formatter:o}}var a=new v(n,this._tooltipmodel,this._ecmodel),r=a.get("content"),s=math.random();this._showormove(a,function(){this._showtooltipcontent(a,r,a.get("formatterparams")||{},s,t.offsetx,t.offsety,t.position,e)}),i({type:"showtip",from:this.uid})},_showtooltipcontent:function(t,e,i,n,o,a,r,s){if(this._ticket="",t.get("showcontent")&&t.get("show")){var l=this._tooltipcontent,u=t.get("formatter");r=r||t.get("position");var c=e;if(u&&"string"==typeof u)c=h.formattpl(u,i,!0);else if("function"==typeof u){var d=b(function(e,n){e===this._ticket&&(l.setcontent(n),this._updateposition(t,r,o,a,l,i,s))},this);this._ticket=n,c=u(i,n,d)}l.setcontent(c),l.show(t),this._updateposition(t,r,o,a,l,i,s)}},_updateposition:function(t,e,i,n,o,u,h){var d=this._api.getwidth(),f=this._api.getheight();e=e||t.get("position");var p=o.getsize(),m=t.get("align"),v=t.get("verticalalign"),y=h&&h.getboundingrect().clone();if(h&&y.applytransform(h.transform),"function"==typeof e&&(e=e([i,n],u,o.el,y,{viewsize:[d,f],contentsize:p.slice()})),c.isarray(e))i=s(e[0],d),n=s(e[1],f);else if(c.isobject(e)){e.width=p[0],e.height=p[1];var x=g.getlayoutrect(e,{width:d,height:f});i=x.x,n=x.y,m=null,v=null}else if("string"==typeof e&&h){var _=s(e,y,p);i=_[0],n=_[1]}else{var _=a(i,n,o.el,d,f,m?null:20,v?null:20);i=_[0],n=_[1]}if(m&&(i-=l(m)?p[0]/2:"right"===m?p[0]:0),v&&(n-=l(v)?p[1]/2:"bottom"===v?p[1]:0),t.get("confine")){var _=r(i,n,o.el,d,f);i=_[0],n=_[1]}o.moveto(i,n)},_updatecontentnotchangedonaxis:function(t){var e=this._lastdatabycoordsys,i=!!e&&e.length===t.length;return w(e,function(e,n){var o=e.databyaxis||{},a=t[n]||{},r=a.databyaxis||[];i&=o.length===r.length,w(o,function(t,e){var n=r[e]||{},o=t.seriesdataindices||[],a=n.seriesdataindices||[];i&=t.value===n.value&&t.axistype===n.axistype&&t.axisid===n.axisid&&o.length===a.length,w(o,function(t,e){var n=a[e];i&=t.seriesindex===n.seriesindex&&t.dataindex===n.dataindex})})}),this._lastdatabycoordsys=t,!!i},_hide:function(t){this._lastdatabycoordsys=null,t({type:"hidetip",from:this.uid})},dispose:function(t,e){m.node||(this._tooltipcontent.hide(),y.unregister("itemtooltip",e))}})},function(t,e,i){function n(t,e){var i=t.get("center"),n=t.get("radius"),o=e.getwidth(),a=e.getheight(),r=s.parsepercent;this.cx=r(i[0],o),this.cy=r(i[1],a);var l=this.getradiusaxis(),u=math.min(o,a)/2;l.setextent(0,r(n,u))}function o(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();o.scale.unionextentfromdata(e,"radius"),n.scale.unionextentfromdata(e,"angle")}}),u(n.scale,n.model),u(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 a(t,e){if(t.type=e.get("type"),t.scale=l.createscalebymodel(e),t.onband=e.get("boundarygap")&&"category"===t.type,"angleaxis"===e.maintype){var i=e.get("startangle");t.inverse=e.get("inverse")^e.get("clockwise"),t.setextent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}var r=i(407),s=i(4),l=(i(1),i(18)),u=l.nicescaleextent;i(408);var c={dimensions:r.prototype.dimensions,create:function(t,e){var i=[];return t.eachcomponent("polar",function(t,s){var l=new r(s);l.resize=n,l.update=o;var u=l.getradiusaxis(),c=l.getangleaxis(),h=t.findaxismodel("radiusaxis"),d=t.findaxismodel("angleaxis");a(u,h),a(c,d),l.resize(t,e),i.push(l),t.coordinatesystem=l,l.model=t}),t.eachseries(function(e){if("polar"===e.get("coordinatesystem")){var i=t.querycomponents({maintype:"polar",index:e.get("polarindex"),id:e.get("polarid")})[0];e.coordinatesystem=i.coordinatesystem}}),i}};i(26).register("polar",c)},function(t,e,i){function n(t){return parseint(t,10)}function o(t,e){s.initvml(),this.root=t,this.storage=e;var i=document.createelement("div"),n=document.createelement("div");i.style.csstext="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.csstext="position:absolute;left:0;top:0;",t.appendchild(i),this._vmlroot=n,this._vmlviewport=i,this.resize();var o=e.delfromstorage,a=e.addtostorage;e.delfromstorage=function(t){o.call(e,t),t&&t.onremove&&t.onremove(n)},e.addtostorage=function(t){t.onadd&&t.onadd(n),a.call(e,t)},this._firstpaint=!0}function a(t){return function(){r('in ie8.0 vml mode painter not support method "'+t+'"')}}var r=i(52),s=i(182);o.prototype={constructor:o,getviewportroot:function(){return this._vmlviewport},refresh:function(){var t=this.storage.getdisplaylist(!0,!0);this._paintlist(t)},_paintlist:function(t){for(var e=this._vmlroot,i=0;i=0?parsefloat(t)/100*e:parsefloat(t):t},r=function(t,e,i){var n=r.parse(e);i=+i,isnan(i)&&(i=1),n&&(t.color=p(n[0],n[1],n[2]),t.opacity=i*n[3])},n=function(t){var e=r.parse(t);return[p(e[0],e[1],e[2]),e[3]]},v=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof p){var o,a=0,r=[0,0],s=0,l=1,u=i.getboundingrect(),c=u.width,h=u.height;if("linear"===n.type){o="gradient";var d=i.transform,f=[n.x*c,n.y*h],g=[n.x2*c,n.y2*h];d&&(w(f,f,d),w(g,g,d));var m=g[0]-f[0],v=g[1]-f[1];a=180*math.atan2(m,v)/math.pi,a<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial";var f=[n.x*c,n.y*h],d=i.transform,y=i.scale,x=c,_=h;r=[(f[0]-u.x)/x,(f[1]-u.y)/_],d&&w(f,f,d),x/=y[0]*i,_/=y[1]*i;var s=b(x,_);s=0/s,l=2*n.r/s-s}var m=n.colorstops.slice();m.sort(function(t,e){return t.offset-e.offset});for(var t=m.length,a=[],c=[],l=0;l=2){var k=a[0][0],o=a[1][0],e=a[0][1]*e.opacity,z=a[1][1]*e.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=k,t.color2=o,t.colors=c.join(","),t.opacity=z,t.opacity2=e}"radial"===o&&(t.focusposition=r.join(","))}else r(t,n,e.opacity)},b=function(t,e){null!=e.linedash&&(t.dashstyle=e.linedash.join(" ")),null==e.stroke||e.stroke instanceof p||r(t,e.stroke,e.opacity)},g=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 p&&o(t,a),a||(a=g.createnode(e)),o?v(a,i,n):b(a,i),k(t,a)):(t[o?"filled":"stroked"]="false",o(t,a))},f=[[],[],[]],h=function(t,e){var i,n,o,r,s,l,u=a.m,c=a.c,h=a.l,d=a.a,f=a.q,p=[];for(r=0;r.01?g&&(h+=270/i):math.abs(w-z)<1e-4?g&&he?m-=270/i:m+=270/i:g&&wz?b+=270/i:b-=270/i),p.push(z,m(((e-r)*p+l)*i-t),s,m(((z-n)*k+d)*i-t),s,m(((e+r)*p+l)*i-t),s,m(((z+n)*k+d)*i-t),s,m((h*p+l)*i-t),s,m((w*k+d)*i-t),s,m((b*p+l)*i-t),s,m((m*k+d)*i-t)),s=b,l=m;break;case a.r:var q=f[0],j=f[1];q[0]=t[r++],q[1]=t[r++],j[0]=q[0]+t[r++],j[1]=q[1]+t[r++],e&&(w(q,q,e),w(j,j,e)),q[0]=m(q[0]*i-t),j[0]=m(j[0]*i-t),q[1]=m(q[1]*i-t),j[1]=m(j[1]*i-t),p.push(" m ",q[0],s,q[1]," l ",j[0],s,q[1]," l ",j[0],s,j[1]," l ",q[0],s,j[1]);break;case a.z:p.push(" x ")}if(i>0){p.push(n);for(var u=0;ux&&(u=0,j={});var i,n=y.style;try{n.font=t,i=n.fontfamily.split(",")[0]}catch(o){}e={style:n.fontstyle||q,variant:n.fontvariant||q,weight:n.fontweight||q,size:0|parsefloat(n.fontsize||12),family:i||"microsoft yahei"},j[t]=e,u++}return e};s.measuretext=function(t,e){var i=g.doc;z||(z=i.createelement("div"),z.style.csstext="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",g.doc.body.appendchild(z));try{z.style.font=e}catch(n){}return z.innerhtml="",z.appendchild(i.createtextnode(t)),{width:z.offsetwidth}};for(var k=new o,j=function(t,e,i,n){var o=this.style,a=o.text;if(null!=a&&(a+=""),a){var r,l,u=o.textalign,c=$(o.textfont),h=c.style+" "+c.variant+" "+c.weight+" "+c.size+'px "'+c.family+'"',d=o.textbaseline,f=o.textverticalalign;i=i||s.getboundingrect(a,h,u,d);var p=this.transform;if(p&&!n&&(k.copy(e),k.applytransform(p),e=k),n)r=e.x,l=e.y;else{var v=o.textposition,y=o.textdistance;if(v instanceof array)r=e.x+z(v[0],e.width),l=e.y+z(v[1],e.height),u=u||"left",d=d||"top";else{var x=s.adjusttextpositiononrect(v,e,i,y);r=x.x,l=x.y,u=u||x.textalign,d=d||x.textbaseline}}if(f){switch(f){case"middle":l-=i.height/2;break;case"bottom":l-=i.height}d="top"}var _=c.size;switch(d){case"hanging":case"top":l+=_/1.75;break;case"middle":break;default:l-=_/2.25}switch(u){case"left":break;case"center":r-=i.width/2;break;case"right":r-=i.width}var b,m,i,t=g.createnode,a=this._textvmlel;a?(i=a.firstchild,b=i.nextsibling,m=b.nextsibling):(a=t("line"),b=t("path"),m=t("textpath"),i=t("skew"),m.style["v-text-align"]="left",l(a),b.textpathok=!0,m.on=!0,a.from="0 0",a.to="1000 0.05",k(a,i),k(a,b),k(a,m),this._textvmlel=a);var c=[r,l],p=a.style;p&&n?(w(c,c,p),i.on=!0,i.matrix=p[0].tofixed(3)+s+p[2].tofixed(3)+s+p[1].tofixed(3)+s+p[3].tofixed(3)+",0,0",i.offset=(m(c[0])||0)+","+(m(c[1])||0),i.origin="0 0",p.left="0px",p.top="0px"):(i.on=!1,p.left=m(r)+"px",p.top=m(l)+"px"),m.string=d(a);try{m.style.font=h}catch(o){}g(a,"fill",{fill:n?o.fill:o.textfill,opacity:o.opacity},this),g(a,"stroke",{stroke:n?o.stroke:o.textstroke,opacity:o.opacity,linedash:o.linedash},this),a.style.zindex=e(this.zlevel,this.z,this.z2),k(t,a)}},q=function(t){o(t,this._textvmlel),this._textvmlel=null},tt=function(t){k(t,this._textvmlel)},et=[l,u,c,d,h],it=0;it0&&(s=this.getlinelength(n)/u*1e3),s!==this._period||l!==this._loop){n.stopanimation();var d=c;h&&(d=c(i)),n.__t>0&&(d=-s*n.__t),n.__t=0;var f=n.animate("",l).when(s,{__t:1}).delay(d).during(function(){o.updatesymbolposition(n)});l||f.done(function(){o.remove(n)}),f.start()}this._period=s,this._loop=l}},c.getlinelength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},c.updateanimationpoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updatedata=function(t,e,i){this.childat(0).updatedata(t,e,i),this._updateeffectsymbol(t,e)},c.updatesymbolposition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t,a=t.position,r=u.quadraticat,s=u.quadraticderivativeat;a[0]=r(e[0],n[0],i[0],o),a[1]=r(e[1],n[1],i[1],o);var l=s(e[0],n[0],i[0],o),c=s(e[1],n[1],i[1],o);t.rotation=-math.atan2(c,l)-math.pi/2,t.ignore=!1},c.updatelayout=function(t,e){this.childat(0).updatelayout(t,e);var i=t.getitemmodel(e).getmodel("effect");this._updateeffectanimation(t,i,e)},r.inherits(n,o.group),t.exports=n},function(t,e,i){function n(t,e,i){o.group.call(this),this._createpolyline(t,e,i)}var o=i(3),a=i(1),r=n.prototype;r._createpolyline=function(t,e,i){var n=t.getitemlayout(e),a=new o.polyline({shape:{points:n}});this.add(a),this._updatecommonstl(t,e,i)},r.updatedata=function(t,e,i){var n=t.hostmodel,a=this.childat(0),r={shape:{points:t.getitemlayout(e)}};o.updateprops(a,r,n,e),this._updatecommonstl(t,e,i)},r._updatecommonstl=function(t,e,i){var n=this.childat(0),r=t.getitemmodel(e),s=t.getitemvisual(e,"color"),l=i&&i.linestyle,u=i&&i.hoverlinestyle;i&&!t.hasitemoption||(l=r.getmodel("linestyle.normal").getlinestyle(),u=r.getmodel("linestyle.emphasis").getlinestyle()),n.usestyle(a.defaults({strokenoscale:!0,fill:"none",stroke:s},l)),n.hoverstyle=u,o.sethoverstyle(this)},r.updatelayout=function(t,e){var i=this.childat(0);i.setshape("points",t.getitemlayout(e))},a.inherits(n,o.group),t.exports=n},function(t,e,i){var n=i(14),o=i(417),a=i(264),r=i(25),s=i(26),l=i(1),u=i(28);t.exports=function(t,e,i,c,h){for(var d=new o(c),f=0;f "+x)),m++)}var _,b=i.get("coordinatesystem");if("cartesian2d"===b||"polar"===b)_=u(t,i,i.ecmodel);else{var w=s.get(b),s=r((w&&"view"!==w.type?w.dimensions||[]:[]).concat(["value"]),t);_=new n(s,i),_.initdata(t)}var m=new n(["value"],i);return m.initdata(g,p),h&&h(_,m),a({maindata:_,struct:d,structattr:"graph",datas:{node:_,edge:m},datasattr:{node:"data",edge:"edgedata"}}),d.update(),d}},function(t,e,i){var n=i(1),o={};o.layout=function(t,e){e=e||{};var i=t.coordinatesystem,o=t.axis,a={},r=o.position,s=o.orient,l=i.getrect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};a.position=["vertical"===s?c.vertical[r]:u[0],"horizontal"===s?c.horizontal[r]:u[3]];var h={horizontal:0,vertical:1};a.rotation=math.pi/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};a.labeldirection=a.tickdirection=a.namedirection=d[r],t.get("axistick.inside")&&(a.tickdirection=-a.tickdirection),n.retrieve(e.labelinside,t.get("axislabel.inside"))&&(a.labeldirection=-a.labeldirection);var f=e.rotate;return null==f&&(f=t.get("axislabel.rotate")),a.labelrotation="top"===r?-f:f,a.labelinterval=o.getlabelinterval(),a.z2=1,a},t.exports=o},function(t,e,i){function n(t,e){var i=t.getitemstyle(),n=t.get("areacolor");return null!=n&&(i.fill=n),i}function o(t,e,i,n,o){i.off("click"),i.off("mousedown"),e.get("selectedmode")&&(i.on("mousedown",function(){t._mousedownflag=!0}),i.on("click",function(r){if(t._mousedownflag){t._mousedownflag=!1;for(var s=r.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===e.maintype?"geo":"map")+"toggleselect",batch:h.map(s.__regions,function(t){return{name:t.name,from:o.uid}})};l[e.maintype+"id"]=e.id,n.dispatchaction(l),a(e,i)}}}))}function a(t,e){e.eachchild(function(e){h.each(e.__regions,function(i){e.trigger(t.isselected(i.name)?"emphasis":"normal")})})}function r(t,e){var i=new c.group;this._controller=new s(t.getzr()),this._controllerhost={target:e?i:null},this.group=i,this._updategroup=e,this._mousedownflag}var s=i(93),l=i(250),u=i(127),c=i(3),h=i(1);r.prototype={constructor:r,draw:function(t,e,i,r,s){var l="geo"===t.maintype,u=t.getdata&&t.getdata();l&&e.eachcomponent({maintype:"series",subtype:"map"},function(e){u||e.gethostgeomodel()!==t||(u=e.getdata())});var d=t.coordinatesystem,f=this.group,p=d.scale,g={position:d.position,scale:p};!f.childat(0)||s?f.attr(g):c.updateprops(f,g,t),f.removeall();var m=["itemstyle","normal"],v=["itemstyle","emphasis"],y=["label","normal"],x=["label","emphasis"],_={};h.each(d.regions,function(e){var i=_[e.name]||(_[e.name]=new c.group),o=new c.compoundpath({shape:{paths:[]}});i.add(o);var a,r=t.getregionmodel(e.name)||t,s=r.getmodel(m),d=r.getmodel(v),g=n(s,p),b=n(d,p),w=r.getmodel(y),s=r.getmodel(x);if(u){a=u.indexofname(e.name);var m=u.getitemvisual(a,"color",!0);m&&(g.fill=m)}var i=w.getmodel("textstyle"),t=s.getmodel("textstyle");h.each(e.geometries,function(t){if("polygon"===t.type){o.shape.paths.push(new c.polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)o.shape.paths.push(new c.polygon({shape:{points:t.interiors[e]}}))}}),o.setstyle(g),o.style.strokenoscale=!0,o.culling=!0;var a=w.get("show"),c=s.get("show"),l=u&&isnan(u.get("value",a)),d=u&&u.getitemlayout(a);if(l||l&&(a||c)||d&&d.showlabel){var p=u?a:e.name,k=t.getformattedlabel(p,"normal"),o=t.getformattedlabel(p,"emphasis"),e=new c.text({style:{text:a?k||e.name:"",fill:i.gettextcolor(),textfont:i.getfont(),textalign:"center",textverticalalign:"middle"},hoverstyle:{text:c?o||e.name:"",fill:t.gettextcolor(),textfont:t.getfont()},position:e.center.slice(),scale:[1/p[0],1/p[1]],z2:10,silent:!0});i.add(e)}if(u)u.setitemgraphicel(a,i);else{var r=t.getregionmodel(e.name);o.eventdata={componenttype:"geo",geoindex:t.componentindex,name:e.name,region:r&&r.option||{}}}var z=i.__regions||(i.__regions=[]);z.push(e),c.sethoverstyle(i,b,{hoversilentontouch:!!t.get("selectedmode")}),f.add(i)}),this._updatecontroller(t,e,i),o(this,t,f,i,r),a(t,f)},remove:function(){this.group.removeall(),this._controller.dispose(),this._controllerhost={}},_updatecontroller:function(t,e,i){function n(){var e={type:"georoam",componenttype:s};return e[s+"id"]=t.id,e}var o=t.coordinatesystem,a=this._controller,r=this._controllerhost;r.zoomlimit=t.get("scalelimit"),r.zoom=o.getzoom(),a.enable(t.get("roam")||!1);var s=t.maintype;a.off("pan").on("pan",function(t,e){this._mousedownflag=!1,l.updateviewonpan(r,t,e),i.dispatchaction(h.extend(n(),{dx:t,dy:e}))},this),a.off("zoom").on("zoom",function(t,e,o){if(this._mousedownflag=!1,l.updateviewonzoom(r,t,e,o),i.dispatchaction(h.extend(n(),{zoom:t,originx:e,originy:o})),this._updategroup){var a=this.group,s=a.scale;a.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),a.setpointerchecker(function(e,n,a){return o.getviewrectafterroam().contain(n,a)&&!u.onirrelevantelement(e,i,t)})}},t.exports=r},function(t,e){var i={};i.updateviewonpan=function(t,e,i){var n=t.target,o=n.position;o[0]+=e,o[1]+=i,n.dirty()},i.updateviewonzoom=function(t,e,i,n){var o=t.target,a=t.zoomlimit,r=o.position,s=o.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var u=a.min||0,c=a.max||1/0;l=math.max(math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,r[0]-=(i-r[0])*(h-1),r[1]-=(n-r[1])*(h-1),s[0]*=h,s[1]*=h,o.dirty()},t.exports=i},function(t,e,i){function n(t,e){var i=t._model;return i.get("axisexpandable")&&i.get("axisexpandtriggeron")===e}i(263),i(403),i(371);var o=i(2),a=i(1),r=i(37),s=5;o.extendcomponentview({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},a.each(l,function(t,e){i.getzr().on(e,this._handlers[e]=a.bind(t,this))},this)),r.createorupdate(this,"_throttleddispatchexpand",t.get("axisexpandrate"),"fixrate")},dispose:function(t,e){a.each(this._handlers,function(t,i){e.getzr().off(i,t)}),this._handlers=null},_throttleddispatchexpand:function(t){this._dispatchexpand(t)},_dispatchexpand:function(t){t&&this._api.dispatchaction(a.extend({type:"parallelaxisexpand"},t))}});var l={mousedown:function(t){n(this,"click")&&(this._mousedownpoint=[t.offsetx,t.offsety])},mouseup:function(t){var e=this._mousedownpoint;if(n(this,"click")&&e){var i=[t.offsetx,t.offsety],o=math.pow(e[0]-i[0],2)+math.pow(e[1]-i[1],2);if(o>s)return;var a=this._model.coordinatesystem.getslidedaxisexpandwindow([t.offsetx,t.offsety]);"none"!==a.behavior&&this._dispatchexpand({axisexpandwindow:a.axisexpandwindow})}this._mousedownpoint=null},mousemove:function(t){if(!this._mousedownpoint&&n(this,"mousemove")){var e=this._model,i=e.coordinatesystem.getslidedaxisexpandwindow([t.offsetx,t.offsety]),o=i.behavior;"jump"===o&&this._throttleddispatchexpand.debouncenextcall(e.get("axisexpanddebounce")),this._throttleddispatchexpand("none"===o?null:{axisexpandwindow:i.axisexpandwindow,animation:"jump"===o&&null})}}};o.registerpreprocessor(i(404))},function(t,e,i){i(416),i(356),i(413),i(55),i(359);var n=i(2);n.extendcomponentview({type:"single"})},function(t,e,i){var n=i(2),o=i(1),a=i(9),r=i(266),s=i(82),l=i(187),u=s.mapvisual,c=i(6),h=s.eachvisual,d=i(4),f=o.isarray,p=o.each,g=d.asc,m=d.linearmap,v=o.noop,y=["#f6efa6","#d88273","#bf444c"],x=n.extendcomponentmodel({type:"visualmap",dependencies:["series"],statelist:["inrange","outofrange"],replacableoptionkeys:["inrange","outofrange","target","controller","color"],databound:[-(1/0),1/0],layoutmode:{type:"box",ignoresize:!0},defaultoption:{show:!0,zlevel:0,z:4,seriesindex:null,min:0,max:200,dimension:null,inrange:null,outofrange:null,left:0,right:null,top:null,bottom:0,itemwidth:null,itemheight:null,inverse:!1,orient:"vertical",backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",contentcolor:"#5793f3",inactivecolor:"#aaa",borderwidth:0,padding:5,textgap:10,precision:0,color:null,formatter:null,text:null,textstyle:{color:"#333"}},init:function(t,e,i){this._dataextent,this.targetvisuals={},this.controllervisuals={},this.textstylemodel,this.itemsize,this.mergedefaultandtheme(t,i)},optionupdated:function(t,e){var i=this.option;a.canvassupported||(i.realtime=!1),!e&&l.replacevisualoption(i,t,this.replacableoptionkeys),this.textstylemodel=this.getmodel("textstyle"),this.resetitemsize(),this.completevisualoption()},resetvisual:function(t){var e=this.statelist;t=o.bind(t,this),this.controllervisuals=l.createvisualmappings(this.option.controller,e,t),this.targetvisuals=l.createvisualmappings(this.option.target,e,t)},resettargetseries:function(){var t=this.option,e=null==t.seriesindex;t.seriesindex=e?[]:c.normalizetoarray(t.seriesindex),e&&this.ecmodel.eachseries(function(e,i){t.seriesindex.push(i)})},eachtargetseries:function(t,e){o.each(this.option.seriesindex,function(i){t.call(e,this.ecmodel.getseriesbyindex(i))},this)},istargetseries:function(t){var e=!1;return this.eachtargetseries(function(i){i===t&&(e=!0)}),e},formatvaluetext:function(t,e,i){function n(t){return t===u[0]?"min":t===u[1]?"max":(+t).tofixed(l)}var a,r,s=this.option,l=s.precision,u=this.databound,c=s.formatter;return i=i||["<",">"],o.isarray(t)&&(t=t.slice(),a=!0),r=e?t:a?[n(t[0]),n(t[1])]:n(t),o.isstring(c)?c.replace("{value}",a?r[0]:r).replace("{value2}",a?r[1]:r):o.isfunction(c)?a?c(t[0],t[1]):c(t):a?t[0]===u[0]?i[0]+" "+r[1]:t[1]===u[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r},resetextent:function(){var t=this.option,e=g([t.min,t.max]);this._dataextent=e},getdatadimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getextent:function(){return this._dataextent.slice()},completevisualoption:function(){function t(t){f(n.color)&&!t.inrange&&(t.inrange={color:n.color.slice().reverse()}),t.inrange=t.inrange||{color:y},p(this.statelist,function(e){var i=t[e];if(o.isstring(i)){var n=r.get(i,"active",d);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}function e(t,e,i){var n=t[e],o=t[i];n&&!o&&(o=t[i]={},p(n,function(t,e){if(s.isvalidtype(e)){var i=r.get(e,"inactive",d);null!=i&&(o[e]=i,"color"!==e||o.hasownproperty("opacity")||o.hasownproperty("coloralpha")||(o.opacity=[0,0]))}}))}function i(t){var e=(t.inrange||{}).symbol||(t.outofrange||{}).symbol,i=(t.inrange||{}).symbolsize||(t.outofrange||{}).symbolsize,n=this.get("inactivecolor");p(this.statelist,function(a){var r=this.itemsize,s=t[a];s||(s=t[a]={color:d?n:[n]}),null==s.symbol&&(s.symbol=e&&o.clone(e)||(d?"roundrect":["roundrect"])),null==s.symbolsize&&(s.symbolsize=i&&o.clone(i)||(d?r[0]:[r[0],r[0]])),s.symbol=u(s.symbol,function(t){return"none"===t||"square"===t?"roundrect":t});var l=s.symbolsize;if(null!=l){var c=-(1/0);h(l,function(t){t>c&&(c=t)}),s.symbolsize=u(l,function(t){return m(t,[0,c],[0,r[0]],!0)})}},this)}var n=this.option,a={inrange:n.inrange,outofrange:n.outofrange},l=n.target||(n.target={}),c=n.controller||(n.controller={});o.merge(l,a),o.merge(c,a);var d=this.iscategory();t.call(this,l),t.call(this,c),e.call(this,l,"inrange","outofrange"),i.call(this,c)},resetitemsize:function(){this.itemsize=[parsefloat(this.get("itemwidth")),parsefloat(this.get("itemheight"))]},iscategory:function(){return!!this.option.categories},setselected:v,getvaluestate:v,getvisualmeta:v});t.exports=x},function(t,e,i){var n=i(1),o=i(3),a=i(7),r=i(12),s=i(2),l=i(82);t.exports=s.extendcomponentview({type:"visualmap",autopositionvalues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecmodel=t,this.api=e,this.visualmapmodel},render:function(t,e,i,n){return this.visualmapmodel=t,t.get("show")===!1?void this.group.removeall():void this.dorender.apply(this,arguments)},renderbackground:function(t){var e=this.visualmapmodel,i=a.normalizecssarray(e.get("padding")||0),n=t.getboundingrect();t.add(new o.rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundcolor"),stroke:e.get("bordercolor"),linewidth:e.get("borderwidth")}}))},getcontrollervisual:function(t,e,i){function o(t){return u[t]}function a(t,e){u[t]=e}i=i||{};var r=i.forcestate,s=this.visualmapmodel,u={};if("symbol"===e&&(u.symbol=s.get("itemsymbol")),"color"===e){var c=s.get("contentcolor");u.color=c}var h=s.controllervisuals[r||s.getvaluestate(t)],d=l.preparevisualtypes(h);return n.each(d,function(n){var r=h[n];i.convertopacitytoalpha&&"opacity"===n&&(n="coloralpha",r=h.__alphaforopacity),l.dependson(n,e)&&r&&r.applyvisual(t,o,a)}),u[e]},positiongroup:function(t){var e=this.visualmapmodel,i=this.api;r.positionelement(t,e.getboxlayoutparams(),{width:i.getwidth(),height:i.getheight()})},dorender:n.noop})},function(t,e,i){var n=i(1),o=i(12),a={getitemalign:function(t,e,i){var n=t.option,a=n.align;if(null!=a&&"auto"!==a)return a;for(var r={width:e.getwidth(),height:e.getheight()},s="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?i[0]:n[u[d]];var f=[["x","width",3],["y","height",0]][s],p=o.getlayoutrect(h,r,n.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*r[f[1]]?0:1]},convertdataindex:function(t){return n.each(t||[],function(e){null!=t.dataindex&&(t.dataindexinside=t.dataindex,t.dataindex=null)}),t}};t.exports=a},function(t,e,i){function n(t,e){return t&&t.hasownproperty&&t.hasownproperty(e)}var o=i(1),a=o.each;t.exports=function(t){var e=t&&t.visualmap;o.isarray(e)||(e=e?[e]:[]),a(e,function(t){if(t){n(t,"splitlist")&&!n(t,"pieces")&&(t.pieces=t.splitlist,delete t.splitlist);var e=t.pieces;e&&o.isarray(e)&&a(e,function(t){o.isobject(t)&&(n(t,"start")&&!n(t,"min")&&(t.min=t.start),n(t,"end")&&!n(t,"max")&&(t.max=t.end))})}})}},function(t,e,i){i(13).registersubtypedefaulter("visualmap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitnumber>0)&&!t.calculable?"piecewise":"continuous"})},function(t,e,i){function n(t,e){t.eachtargetseries(function(e){var i=e.getdata();s.applyvisual(t.statelist,t.targetvisuals,i,t.getvaluestate,t,t.getdatadimension(i))})}function o(t){t.eachseries(function(e){var i=e.getdata(),n=[];t.eachcomponent("visualmap",function(t){if(t.istargetseries(e)){var o=t.getvisualmeta(u.bind(a,null,e,t))||{stops:[],outercolors:[]};o.dimension=t.getdatadimension(i),n.push(o)}}),e.getdata().setvisual("visualmeta",n)})}function a(t,e,i,n){function o(t){return u[t]}function a(t,e){u[t]=e}for(var r=e.targetvisuals[n],s=l.preparevisualtypes(r),u={color:t.getdata().getvisual("color")},c=0,h=s.length;c>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=a,o=s,a=l,n.push([s/i,l/i])}return n}var a=i(1),r=i(261);t.exports=function(t){return n(t),a.map(a.filter(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,i=t.geometry,n=i.coordinates,o=[];"polygon"===i.type&&o.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"multipolygon"===i.type&&a.each(n,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var s=new r(e.name,o,e.cp);return s.properties=e,s})}},function(t,e,i){function n(t,e){var i=[];return t.eachcomponent("parallel",function(n,a){var r=new o(n,t,e);r.name="parallel_"+a,r.resize(n,e),n.coordinatesystem=r,r.model=n,i.push(r)}),t.eachseries(function(e){if("parallel"===e.get("coordinatesystem")){var i=t.querycomponents({maintype:"parallel",index:e.get("parallelindex"),id:e.get("parallelid")})[0];e.coordinatesystem=i.coordinatesystem}}),i}var o=i(401);i(26).register("parallel",{create:n})},function(t,e,i){function n(t){var e=t.maindata,i=t.datas;i||(i={main:e},t.datasattr={main:"data"}),t.datas=t.maindata=null,u(e,i,t),d(i,function(i){d(e.transferable_methods,function(e){i.wrapmethod(e,h.curry(o,t))})}),e.wrapmethod("cloneshallow",h.curry(r,t)),d(e.changable_methods,function(i){e.wrapmethod(i,h.curry(a,t))}),h.assert(i[e.datatype]===e)}function o(t,e){if(l(this)){var i=h.extend({},this[f]);i[this.datatype]=e,u(e,i,t)}else c(e,this.datatype,this[p],t);return e}function a(t,e){return t.struct&&t.struct.update(this),e}function r(t,e){return d(e[f],function(i,n){i!==e&&c(i.cloneshallow(),n,e,t)}),e}function s(t){var e=this[p];return null==t||null==e?e:e[f][t]}function l(t){return t[p]===t}function u(t,e,i){t[f]={},d(e,function(e,n){c(e,n,t,i)})}function c(t,e,i,n){i[f][e]=t,t[p]=i,t.datatype=e,n.struct&&(t[n.structattr]=n.struct,n.struct[n.datasattr[e]]=t),t.getlinkeddata=s}var h=i(1),d=h.each,f="\0__link_datas",p="\0__link_maindata";t.exports=n},function(t,e,i){function n(){function t(e,n){if(n>=i.length)return e;for(var a=-1,r=e.length,s=i[n++],l={},u={};++a=i.length)return t;var r=[],s=n[a++];return o.each(t,function(t,i){r.push({key:i,values:e(t,a)})}),s?r.sort(function(t,e){return s(t.key,e.key)}):r}var i=[],n=[];return{key:function(t){return i.push(t),this},sortkeys:function(t){return n[i.length-1]=t,this},entries:function(i){return e(t(i,0),0)}}}var o=i(1);t.exports=n},function(t,e,i){var n=i(1),o={get:function(t,e,i){var o=n.clone((a[t]||{})[e]);return i&&n.isarray(o)?o[o.length-1]:o}},a={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorhue:{active:[0,360],inactive:[0,0]},colorsaturation:{active:[.3,1],inactive:[0,0]},colorlightness:{active:[.9,.5],inactive:[0,0]},coloralpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundrect","diamond"],inactive:["none"]},symbolsize:{active:[10,50],inactive:[0,0]}};t.exports=o},function(t,e,i){function n(t,e){return math.abs(t-e)0?1:u<0?-1:0}function a(t,e,i,n,o,a,r,s,l,u){var c=l.valuedim,h=l.categorydim,d=math.abs(i[h.wh]),f=t.getitemvisual(e,"symbolsize");i.isarray(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[h.index]=d(f[h.index],d),f[c.index]=d(f[c.index],n?d:math.abs(a)),u.symbolsize=f;var p=u.symbolscale=[f[0]/s,f[1]/s];p[c.index]*=(l.ishorizontal?-1:1)*r}function r(t,e,i,n,o){var a=t.get(p)||0;a&&(o.attr({scale:e.slice(),rotation:i}),o.updatetransform(),a/=o.getlinescale(),a*=e[n.valuedim.index]),o.valuelinewidth=a}function s(t,e,i,n,o,a,r,s,l,u,c,h){var d=c.categorydim,f=c.valuedim,p=h.pxsign,g=math.max(e[f.index]+s,0),m=g;if(n){var v=math.abs(l),y=i.retrieve(t.get("symbolmargin"),"15%")+"",x=!1;y.lastindexof("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=d(y,e[f.index]);var _=math.max(g+2*y,0),b=x?0:2*y,w=c.isnumeric(n),s=w?n:m((v+b)/_),t=v-s*g;y=t/2/(x?s:s-1),_=g+2*y,b=x?0:2*y,w||"fixed"===n||(s=u?m((math.abs(u)+b)/_):0),m=s*_-b,h.repeattimes=s,h.symbolmargin=y}var a=p*(m/2),l=h.pathposition=[];l[d.index]=i[d.wh]/2,l[f.index]="start"===r?a:"end"===r?l-a:l/2,a&&(l[0]+=a[0],l[1]+=a[1]);var p=h.bundleposition=[];p[d.index]=i[d.xy],p[f.index]=i[f.xy];var k=h.barrectshape=i.extend({},i);k[f.wh]=p*math.max(math.abs(i[f.wh]),math.abs(l[f.index]+a)),k[d.wh]=i[d.wh];var o=h.clipshape={};o[d.xy]=-i[d.xy],o[d.wh]=c.ecsize[d.wh],o[f.xy]=0,o[f.wh]=i[f.wh]}function l(t){var e=t.symbolpatternsize,i=a.createsymbol(t.symboltype,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setstyle({strokenoscale:!0}),i}function u(t,e,i,n){function o(t){var e=h.slice(),n=i.pxsign,o=t;return("start"===i.symbolrepeatdirection?n>0:n<0)&&(o=f-1-t),e[d.index]=g*(o-f/2+.5)+h[d.index],{position:e,scale:i.symbolscale.slice(),rotation:i.rotation}}function a(){b(t,function(t){t.trigger("emphasis")})}function r(){b(t,function(t){t.trigger("normal")})}var s=t.__pictorialbundle,u=i.symbolsize,c=i.valuelinewidth,h=i.pathposition,d=e.valuedim,f=i.repeattimes||0,p=0,g=u[e.valuedim.index]+c+2*i.symbolmargin;for(b(t,function(t){t.__pictorialanimationindex=p,t.__pictorialrepeattimes=f,p0)],c=t.__pictorialbarrect;l.setlabel(c.style,l,a,n,e.seriesmodel,o,u),t.sethoverstyle(c,l)}function m(t){var e=math.round(t);return math.abs(t-e)<1e-4?e:math.ceil(t)}var i=i(1),t=i(3),a=i(24),c=i(4),l=i(90),d=c.parsepercent,p=["itemstyle","normal","borderwidth"],k=[{xy:"x",wh:"width",index:0,posdesc:["left","right"]},{xy:"y",wh:"height",index:1,posdesc:["top","bottom"]}],o=new t.circle,e=i(2).extendchartview({type:"pictorialbar",render:function(t,e,i){var o=this.group,a=t.getdata(),r=this._data,s=t.coordinatesystem,l=s.getbaseaxis(),u=!!l.ishorizontal(),c=s.grid.getrect(),h={ecsize:{width:i.getwidth(),height:i.getheight()},seriesmodel:t,coordsys:s,coordsysextent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],ishorizontal:u,valuedim:k[+u],categorydim:k[1-u]};return a.diff(r).add(function(t){if(a.hasvalue(t)){var e=f(a,t),i=n(a,t,e,h),r=v(a,h,i);a.setitemgraphicel(t,r),o.add(r),s(r,h,i)}}).update(function(t,e){var i=r.getitemgraphicel(e);if(!a.hasvalue(t))return void o.remove(i);var s=f(a,t),l=n(a,t,s,h),u=_(a,l);i&&u!==i.__pictorialshapestr&&(o.remove(i),a.setitemgraphicel(t,null),i=null),i?y(i,h,l):i=v(a,h,l,!0),a.setitemgraphicel(t,i),i.__pictorialsymbolmeta=l,o.add(i),s(i,h,l)}).remove(function(t){var e=r.getitemgraphicel(t);e&&x(r,t,e.__pictorialsymbolmeta.animationmodel,e)}).execute(),this._data=a,this.group},dispose:i.noop,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachitemgraphicel(function(e){x(n,e.dataindex,t,e)}):i.removeall()}});t.exports=e},function(t,e,i){var n=i(2);i(271),i(272),n.registervisual(i(274)),n.registerlayout(i(273))},function(t,e,i){"use strict";var n=i(1),o=i(19),a=i(183),r=o.extend({type:"series.boxplot",dependencies:["xaxis","yaxis","grid"],valuedimensions:["min","q1","median","q3","max"],dimensions:null,defaultoption:{zlevel:0,z:2,coordinatesystem:"cartesian2d",legendhoverlink:!0,hoveranimation:!0,layout:null,boxwidth:[7,50],itemstyle:{normal:{color:"#fff",borderwidth:1},emphasis:{borderwidth:2,shadowblur:5,shadowoffsetx:2,shadowoffsety:2,shadowcolor:"rgba(0,0,0,0.4)"}},animationeasing:"elasticout",animationduration:800}});n.mixin(r,a.seriesmodelmixin,!0),t.exports=r},function(t,e,i){"use strict";function n(t,e,i){var n=e.getitemmodel(i),o=n.getmodel(u),a=e.getitemvisual(i,"color"),s=o.getitemstyle(["bordercolor"]),l=t.childat(t.whiskerindex);l.style.set(s),l.style.stroke=a,l.dirty();var h=t.childat(t.bodyindex);h.style.set(s),h.style.stroke=a,h.dirty();var d=n.getmodel(c).getitemstyle();r.sethoverstyle(t,d)}var o=i(1),a=i(30),r=i(3),s=i(183),l=a.extend({type:"boxplot",getstyleupdater:function(){return n},dispose:o.noop});o.mixin(l,s.viewmixin,!0);var u=["itemstyle","normal"],c=["itemstyle","emphasis"];t.exports=l},function(t,e,i){function n(t){var e=[],i=[];return t.eachseriesbytype("boxplot",function(t){var n=t.getbaseaxis(),o=r.indexof(i,n);o<0&&(o=i.length,i[o]=n,e[o]={axis:n,seriesmodels:[]}),e[o].seriesmodels.push(t)}),e}function o(t){var e,i,n=t.axis,o=t.seriesmodels,a=o.length,s=t.boxwidthlist=[],c=t.boxoffsetlist=[],h=[];if("category"===n.type)i=n.getbandwidth();else{var d=0;u(o,function(t){d=math.max(d,t.getdata().count())}),e=n.getextent(),math.abs(e[1]-e[0])/d}u(o,function(t){var e=t.get("boxwidth");r.isarray(e)||(e=[e,e]),h.push([l(e[0],i)||0,l(e[1],i)||0])});var f=.8*i-2,p=f/a*.3,g=(f-p*(a-1))/a,m=g/2-f/2;u(o,function(t,e){c.push(m),m+=p+g,s.push(math.min(math.max(g,h[e][0]),h[e][1]))})}function a(t,e,i){var n=t.coordinatesystem,o=t.getdata(),a=t.dimensions,r=t.get("layout"),s=i/2;o.each(a,function(){function t(t){var i=[];i[f]=h,i[p]=t;var o;return isnan(h)||isnan(t)?o=[nan,nan]:(o=n.datatopoint(i),o[f]+=e),o}function i(t,e){var i=t.slice(),n=t.slice();i[f]+=s,n[f]-=s,e?x.push(i,n):x.push(n,i)}function l(t){var e=[t.slice(),t.slice()];e[0][f]-=s,e[1][f]+=s,y.push(e)}var u=arguments,c=a.length,h=u[0],d=u[c],f="horizontal"===r?0:1,p=1-f,g=t(u[3]),m=t(u[1]),v=t(u[5]),y=[[m,t(u[2])],[v,t(u[4])]];l(m),l(v),l(g);var x=[];i(y[0][1],0),i(y[1][1],1),o.setitemlayout(d,{chartlayout:r,initbaseline:g[p],median:g,bodyends:x,whiskerends:y})})}var r=i(1),s=i(4),l=s.parsepercent,u=r.each;t.exports=function(t){var e=n(t);u(e,function(t){var e=t.seriesmodels;e.length&&(o(t),u(e,function(e,i){a(e,t.boxoffsetlist[i],t.boxwidthlist[i])}))})}},function(t,e){var i=["itemstyle","normal","bordercolor"];t.exports=function(t,e){var n=t.get("color");t.eachrawseriesbytype("boxplot",function(e){var o=n[e.seriesindex%n.length],a=e.getdata();a.setvisual({legendsymbol:"roundrect",color:e.get(i)||o}),t.isseriesfiltered(e)||a.each(function(t){var e=a.getitemmodel(t);a.setitemvisual(t,{color:e.get(i,!0)})})})}},function(t,e,i){var n=i(2);i(276),i(277),n.registerpreprocessor(i(280)),n.registervisual(i(279)),n.registerlayout(i(278))},function(t,e,i){"use strict";var n=i(1),o=i(19),a=i(183),r=i(7),s=r.encodehtml,l=r.addcommas,u=o.extend({type:"series.candlestick",dependencies:["xaxis","yaxis","grid"],valuedimensions:["open","close","lowest","highest"],dimensions:null,defaultoption:{zlevel:0,z:2,coordinatesystem:"cartesian2d",legendhoverlink:!0,hoveranimation:!0,layout:null,itemstyle:{normal:{color:"#c23531",color0:"#314656",borderwidth:1,bordercolor:"#c23531",bordercolor0:"#314656"},emphasis:{borderwidth:2}},barmaxwidth:null,barminwidth:null,barwidth:null,animationupdate:!1,animationeasing:"linear",animationduration:300},getshadowdim:function(){return"open"},formattooltip:function(t,e){var i=n.map(this.valuedimensions,function(e){return s(e+": "+l(this.getdata().get(e,t)))},this).join("
"),o=[];return null!=this.name&&o.push(s(this.name)),null!=i&&o.push(i),o.join("
")},brushselector:function(t,e,i){var n=e.getitemlayout(t);return i.rect(n.brushrect)}});n.mixin(u,a.seriesmodelmixin,!0),t.exports=u},function(t,e,i){"use strict";function n(t,e,i){var n=e.getitemmodel(i),o=n.getmodel(u),a=e.getitemvisual(i,"color"),s=e.getitemvisual(i,"bordercolor")||a,l=o.getitemstyle(["color","color0","bordercolor","bordercolor0"]),h=t.childat(t.whiskerindex);h.usestyle(l),h.style.stroke=s;var d=t.childat(t.bodyindex);d.usestyle(l),d.style.fill=a,d.style.stroke=s;var f=n.getmodel(c).getitemstyle();r.sethoverstyle(t,f)}var o=i(1),a=i(30),r=i(3),s=i(183),l=a.extend({type:"candlestick",getstyleupdater:function(){return n},dispose:o.noop});o.mixin(l,s.viewmixin,!0);var u=["itemstyle","normal"],c=["itemstyle","emphasis"];t.exports=l},function(t,e,i){function n(t,e){var i,n=t.getbaseaxis(),r="category"===n.type?n.getbandwidth():(i=n.getextent(),math.abs(i[1]-i[0])/e.count()),s=a(o(t.get("barmaxwidth"),r),r),l=a(o(t.get("barminwidth"),1),r),u=t.get("barwidth");return null!=u?a(u,r):math.max(math.min(r/2,s),l)}var o=i(1).retrieve,a=i(4).parsepercent;t.exports=function(t){t.eachseriesbytype("candlestick",function(t){var e=t.coordinatesystem,i=t.getdata(),o=t.dimensions,a=t.get("layout"),r=n(t,i);i.each(o,function(){function t(t){var i=[];return i[d]=c,i[f]=t,isnan(c)||isnan(t)?[nan,nan]:e.datatopoint(i)}function n(t,e){var i=t.slice(),n=t.slice();i[d]+=r/2,n[d]-=r/2,e?i.push(i,n):i.push(n,i)}function s(){var e=t(math.min(p,g,m,v)),i=t(math.max(p,g,m,v));return e[d]-=r/2,i[d]-=r/2,{x:e[0],y:e[1],width:f?r:i[0]-e[0],height:f?i[1]-e[1]:r}}var l=arguments,u=o.length,c=l[0],h=l[u],d="horizontal"===a?0:1,f=1-d,p=l[1],g=l[2],m=l[3],v=l[4],y=math.min(p,g),x=math.max(p,g),_=t(y),b=t(x),w=t(m),s=t(v),m=[[s,b],[w,_]],i=[];n(b,0),n(_,1),i.setitemlayout(h,{chartlayout:a,sign:p>g?-1:pg?b[f]:_[f],bodyends:i,whiskerends:m,brushrect:s()})},!0)})}},function(t,e){var i=["itemstyle","normal","bordercolor"],n=["itemstyle","normal","bordercolor0"],o=["itemstyle","normal","color"],a=["itemstyle","normal","color0"];t.exports=function(t,e){t.eachrawseriesbytype("candlestick",function(e){var r=e.getdata();r.setvisual({legendsymbol:"roundrect"}),t.isseriesfiltered(e)||r.each(function(t){var e=r.getitemmodel(t),s=r.getitemlayout(t).sign;r.setitemvisual(t,{color:e.get(s>0?o:a),bordercolor:e.get(s>0?i:n)})})})}},function(t,e,i){var n=i(1);t.exports=function(t){t&&n.isarray(t.series)&&n.each(t.series,function(t){n.isobject(t)&&"k"===t.type&&(t.type="candlestick")})}},function(t,e,i){var n=i(1),o=i(2);i(282),i(283),o.registervisual(n.curry(i(50),"effectscatter","circle",null)),o.registerlayout(n.curry(i(60),"effectscatter"))},function(t,e,i){"use strict";var n=i(28),o=i(19);t.exports=o.extend({type:"series.effectscatter",dependencies:["grid","polar"],getinitialdata:function(t,e){var i=n(t.data,this,e);return i},brushselector:"point",defaultoption:{coordinatesystem:"cartesian2d",zlevel:0,z:2,legendhoverlink:!0,effecttype:"ripple",progressive:0,showeffecton:"render",rippleeffect:{period:4,scale:2.5,brushtype:"fill"},symbolsize:10}})},function(t,e,i){var n=i(44),o=i(310);i(2).extendchartview({type:"effectscatter",init:function(){this._symboldraw=new n(o)},render:function(t,e,i){var n=t.getdata(),o=this._symboldraw;o.updatedata(n),this.group.add(o.group)},updatelayout:function(){this._symboldraw.updatelayout()},remove:function(t,e){this._symboldraw&&this._symboldraw.remove(e)},dispose:function(){}})},function(t,e,i){var n=i(1),o=i(2);i(285),i(286),o.registervisual(n.curry(i(83),"funnel")),o.registerlayout(i(287)),o.registerprocessor(n.curry(i(62),"funnel"))},function(t,e,i){"use strict";var n=i(14),o=i(6),a=i(25),r=i(2).extendseriesmodel({type:"series.funnel",init:function(t){r.superapply(this,"init",arguments),this.legenddataprovider=function(){return this.getrawdata()},this._defaultlabelline(t)},getinitialdata:function(t,e){var i=a(["value"],t.data),o=new n(i,this);return o.initdata(t.data),o},_defaultlabelline:function(t){o.defaultemphasis(t.labelline,["show"]);var e=t.labelline.normal,i=t.labelline.emphasis;e.show=e.show&&t.label.normal.show,i.show=i.show&&t.label.emphasis.show},getdataparams:function(t){var e=this.getdata(),i=r.supercall(this,"getdataparams",t),n=e.getsum("value");return i.percent=n?+(e.get("value",t)/n*100).tofixed(2):0,i.$vars.push("percent"),i},defaultoption:{zlevel:0,z:2,legendhoverlink:!0,left:80,top:60,right:80,bottom:60,minsize:"0%",maxsize:"100%",sort:"descending",gap:0,funnelalign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelline:{normal:{show:!0,length:20,linestyle:{width:1,type:"solid"}},emphasis:{}},itemstyle:{normal:{bordercolor:"#fff",borderwidth:1},emphasis:{}}}});t.exports=r},function(t,e,i){function n(t,e){function i(){r.ignore=r.hoverignore,s.ignore=s.hoverignore}function n(){r.ignore=r.normalignore,s.ignore=s.normalignore}a.group.call(this);var o=new a.polygon,r=new a.polyline,s=new a.text;this.add(o),this.add(r),this.add(s),this.updatedata(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function o(t,e,i,n){var o=n.getmodel("textstyle"),a=n.get("position"),s="inside"===a||"inner"===a||"center"===a;return{fill:o.gettextcolor()||(s?"#fff":t.getitemvisual(e,"color")),textfont:o.getfont(),text:r.retrieve(t.hostmodel.getformattedlabel(e,i),t.getname(e))}}var a=i(3),r=i(1),s=n.prototype,l=["itemstyle","normal","opacity"];s.updatedata=function(t,e,i){var n=this.childat(0),o=t.hostmodel,s=t.getitemmodel(e),u=t.getitemlayout(e),c=t.getitemmodel(e).get(l);c=null==c?1:c,n.usestyle({}),i?(n.setshape({points:u.points}),n.setstyle({opacity:0}),a.initprops(n,{style:{opacity:c}},o,e)):a.updateprops(n,{style:{opacity:c},shape:{points:u.points}},o,e);var h=s.getmodel("itemstyle"),d=t.getitemvisual(e,"color");n.setstyle(r.defaults({linejoin:"round",fill:d},h.getmodel("normal").getitemstyle(["opacity"]))),n.hoverstyle=h.getmodel("emphasis").getitemstyle(),this._updatelabel(t,e),a.sethoverstyle(this)},s._updatelabel=function(t,e){var i=this.childat(1),n=this.childat(2),r=t.hostmodel,s=t.getitemmodel(e),l=t.getitemlayout(e),u=l.label,c=t.getitemvisual(e,"color");a.updateprops(i,{shape:{points:u.linepoints||u.linepoints}},r,e),a.updateprops(n,{style:{x:u.x,y:u.y}},r,e),n.attr({style:{textalign:u.textalign,textverticalalign:u.verticalalign,textfont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=s.getmodel("label.normal"),d=s.getmodel("label.emphasis"),f=s.getmodel("labelline.normal"),p=s.getmodel("labelline.emphasis");n.setstyle(o(t,e,"normal",h)),n.ignore=n.normalignore=!h.get("show"),n.hoverignore=!d.get("show"),i.ignore=i.normalignore=!f.get("show"),i.hoverignore=!p.get("show"),i.setstyle({stroke:c}),i.setstyle(f.getmodel("linestyle").getlinestyle()),n.hoverstyle=o(t,e,"emphasis",d),i.hoverstyle=p.getmodel("linestyle").getlinestyle()},r.inherits(n,a.group);var u=i(30).extend({type:"funnel",render:function(t,e,i){var o=t.getdata(),a=this._data,r=this.group;o.diff(a).add(function(t){var e=new n(o,t);o.setitemgraphicel(t,e),r.add(e)}).update(function(t,e){var i=a.getitemgraphicel(e);i.updatedata(o,t),r.add(i),o.setitemgraphicel(t,i)}).remove(function(t){var e=a.getitemgraphicel(t);r.remove(e)}).execute(),this._data=o},remove:function(){this.group.removeall(),this._data=null},dispose:function(){}});t.exports=u},function(t,e,i){function n(t,e){return r.getlayoutrect(t.getboxlayoutparams(),{width:e.getwidth(),height:e.getheight()})}function o(t,e){for(var i=t.maparray("value",function(t){return t}),n=[],o="ascending"===e,a=0,r=t.count();a=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textalign:k<-.4?"left":k>.4?"right":"center"},silent:!0});"auto"===n.style.fill&&n.setstyle({fill:n(p/b)}),d.add(n)}if(x.get("show")&&p!==b){for(var v=0;v<=w;v++){var k=math.cos(i),o=math.sin(i),b=new r.line({shape:{x1:k*g+f,y1:o*g+p,x2:k*(g-m)+f,y2:o*(g-m)+p},silent:!0,style:l});"auto"===l.stroke&&b.setstyle({stroke:n((p+v/w)/b)}),d.add(b),i+=a}i-=a}else i+=t}},_renderpointer:function(t,e,i,n,o,u,c,h){var d=this.group,f=this._data;if(!t.get("pointer.show"))return void(f&&f.eachitemgraphicel(function(t){d.remove(t)}));var p=[+t.get("min"),+t.get("max")],g=[u,c],m=t.getdata();m.diff(f).add(function(e){var i=new a({shape:{angle:u}});r.initprops(i,{shape:{angle:s.linearmap(m.get("value",e),p,g,!0)}},t),d.add(i),m.setitemgraphicel(e,i)}).update(function(e,i){var n=f.getitemgraphicel(i);r.updateprops(n,{shape:{angle:s.linearmap(m.get("value",e),p,g,!0)}},t),d.add(n),m.setitemgraphicel(e,n)}).remove(function(t){var e=f.getitemgraphicel(t);d.remove(e)}).execute(),m.eachitemgraphicel(function(t,e){var i=m.getitemmodel(e),a=i.getmodel("pointer");t.setshape({x:o.cx,y:o.cy,width:l(a.get("width"),o.r),r:l(a.get("length"),o.r)}),t.usestyle(i.getmodel("itemstyle.normal").getitemstyle()),"auto"===t.style.fill&&t.setstyle("fill",n(s.linearmap(m.get("value",e),p,[0,1],!0))),r.sethoverstyle(t,i.getmodel("itemstyle.emphasis").getitemstyle())}),this._data=m},_rendertitle:function(t,e,i,n,o){var a=t.getmodel("title");if(a.get("show")){var u=a.getmodel("textstyle"),c=a.get("offsetcenter"),h=o.cx+l(c[0],o.r),d=o.cy+l(c[1],o.r),f=new r.text({style:{x:h,y:d,text:t.getdata().getname(0),fill:u.gettextcolor(),textfont:u.getfont(),textalign:"center",textverticalalign:"middle"}});if("auto"===f.style.fill){var p=+t.get("min"),g=+t.get("max"),m=t.getdata().get("value",0);f.setstyle("fill",n(s.linearmap(m,[p,g],[0,1],!0)))}this.group.add(f)}},_renderdetail:function(t,e,i,n,a){var u=t.getmodel("detail"),c=+t.get("min"),h=+t.get("max");if(u.get("show")){var d=u.getmodel("textstyle"),f=u.get("offsetcenter"),p=a.cx+l(f[0],a.r),g=a.cy+l(f[1],a.r),m=l(u.get("width"),a.r),v=l(u.get("height"),a.r),y=t.getdata().get("value",0),x=new r.rect({shape:{x:p-m/2,y:g-v/2,width:m,height:v},style:{text:o(y,u.get("formatter")),fill:u.get("backgroundcolor"),textfill:d.gettextcolor(),textfont:d.getfont()}});"auto"===x.style.textfill&&x.setstyle("textfill",n(s.linearmap(y,[c,h],[0,1],!0))),x.setstyle(u.getitemstyle(["color"])),this.group.add(x)}}});t.exports=c},function(t,e,i){t.exports=i(8).extend({type:"echartsgaugepointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildpath:function(t,e){var i=math.cos,n=math.sin,o=e.r,a=e.width,r=e.angle,s=e.x-i(r)*a*(a>=o/3?1:2),l=e.y-n(r)*a*(a>=o/3?1:2);r=e.angle-math.pi/2,t.moveto(s,l),t.lineto(e.x+i(r)*a,e.y+n(r)*a),t.lineto(e.x+i(e.angle)*o,e.y+n(e.angle)*o),t.lineto(e.x-i(r)*a,e.y-n(r)*a),t.lineto(s,l)}})},function(t,e,i){var n=i(2),o=i(1);i(293),i(294),i(303),n.registerprocessor(i(296)),n.registervisual(o.curry(i(50),"graph","circle",null)),n.registervisual(i(297)),n.registervisual(i(300)),n.registerlayout(i(304)),n.registerlayout(i(298)),n.registerlayout(i(302)),n.registercoordinatesystem("graphview",{create:i(299)})},function(t,e,i){"use strict";var n=i(14),o=i(1),a=i(6),r=i(10),s=i(7),l=i(247),u=i(2).extendseriesmodel({type:"series.graph",init:function(t){u.superapply(this,"init",arguments),this.legenddataprovider=function(){return this._categoriesdata},this.filldatatextstyle(t.edges||t.links),this._updatecategoriesdata()},mergeoption:function(t){u.superapply(this,"mergeoption",arguments),this.filldatatextstyle(t.edges||t.links),this._updatecategoriesdata()},mergedefaultandtheme:function(t){u.superapply(this,"mergedefaultandtheme",arguments),a.defaultemphasis(t.edgelabel,a.label_options)},getinitialdata:function(t,e){function i(t,i){function n(t){return t=this.parsepath(t),t&&"label"===t[0]?s:this.parentmodel}t.wrapmethod("getitemmodel",function(t){var e=a._categoriesmodels,i=t.getshallow("category"),n=e[i];return n&&(n.parentmodel=t.parentmodel,t.parentmodel=n),t});var o=a.getmodel("edgelabel"),s=new r({label:o.option},o.parentmodel,e);i.wrapmethod("getitemmodel",function(t){return t.customizegetparent(n),t})}var n=t.edges||t.links||[],o=t.data||t.nodes||[],a=this;if(o&&n)return l(o,n,this,!0,i).data},getgraph:function(){return this.getdata().graph},getedgedata:function(){return this.getgraph().edgedata},getcategoriesdata:function(){return this._categoriesdata},formattooltip:function(t,e,i){if("edge"===i){var n=this.getdata(),o=this.getdataparams(t,i),a=n.graph.getedgebyindex(t),r=n.getname(a.node1.dataindex),l=n.getname(a.node2.dataindex),c=[];return null!=r&&c.push(r),null!=l&&c.push(l),c=s.encodehtml(c.join(" > ")),o.value&&(c+=" : "+s.encodehtml(o.value)),c}return u.superapply(this,"formattooltip",arguments)},_updatecategoriesdata:function(){var t=o.map(this.option.categories||[],function(t){return null!=t.value?t:o.extend({value:0},t)}),e=new n(["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 u.supercall(this,"isanimationenabled")&&!("force"===this.get("layout")&&this.get("force.layoutanimation"))},defaultoption:{zlevel:0,z:2,coordinatesystem:"view",legendhoverlink:!0,hoveranimation:!0,layout:null,focusnodeadjacency:!1,circular:{rotatelabel:!1},force:{initlayout:null,repulsion:[0,50],gravity:.1,edgelength:30,layoutanimation:!0},left:"center",top:"center",symbol:"circle",symbolsize:10,edgesymbol:["none","none"],edgesymbolsize:10,edgelabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodescaleratio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemstyle:{normal:{},emphasis:{}},linestyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}});t.exports=u},function(t,e,i){function n(t,e){return t.getvisual("opacity")||t.getmodel().get(e)}var o=i(44),a=i(106),r=i(93),s=i(250),l=i(127),u=i(3),c=i(295),h=i(1),d=["itemstyle","normal","opacity"],f=["linestyle","normal","opacity"];i(2).extendchartview({type:"graph",init:function(t,e){var i=new o,n=new a,s=this.group;this._controller=new r(e.getzr()),this._controllerhost={target:s},s.add(i.group),s.add(n.group),this._symboldraw=i,this._linedraw=n,this._firstrender=!0},render:function(t,e,i){var n=t.coordinatesystem;this._model=t,this._nodescaleratio=t.get("nodescaleratio");var o=this._symboldraw,a=this._linedraw,r=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstrender?r.attr(s):u.updateprops(r,s,t)}c(t.getgraph(),this._getnodeglobalscale(t));var l=t.getdata();o.updatedata(l);var h=t.getedgedata();a.updatedata(h),this._updatenodeandlinkscale(),this._updatecontroller(t,e,i),cleartimeout(this._layouttimeout);var d=t.forcelayout,f=t.get("force.layoutanimation");d&&this._startforcelayoutiteration(d,f),l.eachitemgraphicel(function(e,n){var o=l.getitemmodel(n);e.off("drag").off("dragend");var a=l.getitemmodel(n).get("draggable");a&&e.on("drag",function(){d&&(d.warmup(),!this._layouting&&this._startforcelayoutiteration(d,f),d.setfixed(n),l.setitemlayout(n,e.position))},this).on("dragend",function(){d&&d.setunfixed(n)},this),e.setdraggable(a&&d),e.off("mouseover",e.__focusnodeadjacency),e.off("mouseout",e.__unfocusnodeadjacency),o.get("focusnodeadjacency")&&(e.on("mouseover",e.__focusnodeadjacency=function(){i.dispatchaction({type:"focusnodeadjacency",seriesid:t.id,dataindex:e.dataindex})}),e.on("mouseout",e.__unfocusnodeadjacency=function(){i.dispatchaction({type:"unfocusnodeadjacency",seriesid:t.id})}))},this);var p="circular"===t.get("layout")&&t.get("circular.rotatelabel"),g=l.getlayout("cx"),m=l.getlayout("cy");l.eachitemgraphicel(function(t,e){var i=t.getsymbolpath();if(p){var n=l.getitemlayout(e),o=math.atan2(n[1]-m,n[0]-g);o<0&&(o=2*math.pi+o);var a=n[0]=0?n+=g:n-=g:_>=0?n-=g:n+=g}return n}var o=i(20),a=i(5),r=[],s=[],l=[],u=o.quadraticat,c=a.distsquare,h=math.abs;t.exports=function(t,e){function i(t){var e=t.getvisual("symbolsize");return e instanceof array&&(e=(e[0]+e[1])/2),e}var r=[],s=o.quadraticsubdivide,l=[[],[],[]],u=[[],[]],c=[];e/=2,t.eachedge(function(t,o){var h=t.getlayout(),d=t.getvisual("fromsymbol"),f=t.getvisual("tosymbol");h.__original||(h.__original=[a.clone(h[0]),a.clone(h[1])],h[2]&&h.__original.push(a.clone(h[2])));var p=h.__original;if(null!=h[2]){if(a.copy(l[0],p[0]),a.copy(l[1],p[2]),a.copy(l[2],p[1]),d&&"none"!=d){var g=i(t.node1),m=n(l,p[0],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[0][0]=r[3],l[1][0]=r[4],s(l[0][1],l[1][1],l[2][1],m,r),l[0][1]=r[3],l[1][1]=r[4]}if(f&&"none"!=f){var g=i(t.node2),m=n(l,p[1],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[1][0]=r[1],l[2][0]=r[2],s(l[0][1],l[1][1],l[2][1],m,r),l[1][1]=r[1],l[2][1]=r[2]}a.copy(h[0],l[0]),a.copy(h[1],l[2]),a.copy(h[2],l[1])}else{if(a.copy(u[0],p[0]),a.copy(u[1],p[1]),a.sub(c,u[1],u[0]),a.normalize(c,c),d&&"none"!=d){var g=i(t.node1);a.scaleandadd(u[0],u[0],c,g*e)}if(f&&"none"!=f){var g=i(t.node2);a.scaleandadd(u[1],u[1],c,-g*e)}a.copy(h[0],u[0]),a.copy(h[1],u[1])}})}},function(t,e){t.exports=function(t){var e=t.findcomponents({maintype:"legend"});e&&e.length&&t.eachseriesbytype("graph",function(t){var i=t.getcategoriesdata(),n=t.getgraph(),o=n.data,a=i.maparray(i.getname);o.filterself(function(t){var i=o.getitemmodel(t),n=i.getshallow("category");if(null!=n){"number"==typeof n&&(n=a[n]);for(var r=0;r0){var c=r(x)?l:u;x>0&&(x=x*t+m),b[w++]=c[a],b[w++]=c[a+1],b[w++]=c[a+2],b[w++]=c[a+3]*x*256}else w+=4}return d.putimagedata(_,0,0),h},_getbrush:function(){var t=this._brushcanvas||(this._brushcanvas=a.createcanvas()),e=this.pointsize+this.blursize,i=2*e;t.width=i,t.height=i;var n=t.getcontext("2d");return n.clearrect(0,0,i,i),n.shadowoffsetx=i,n.shadowblur=this.blursize,n.shadowcolor="#000",n.beginpath(),n.arc(-e,e,this.pointsize,0,2*math.pi,!0),n.closepath(),n.fill(),t},_getgradient:function(t,e,i){for(var n=this._gradientpixels,o=n[i]||(n[i]=new uint8clampedarray(1024)),a=[0,0,0,0],r=0,s=0;s<256;s++)e[i](s/255,!0,a),o[r++]=a[0],o[r++]=a[1],o[r++]=a[2],o[r++]=a[3];return o}},t.exports=n},function(t,e,i){var n=i(19),o=i(28);t.exports=n.extend({type:"series.heatmap",getinitialdata:function(t,e){return o(t.data,this,e)},defaultoption:{coordinatesystem:"cartesian2d",zlevel:0,z:2,geoindex:0,blursize:30,pointsize:20,maxopacity:1,minopacity:0}})},function(t,e,i){function n(t,e,i){var n=t[1]-t[0];e=l.map(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}});var o=e.length,a=0;return function(t){for(var n=a;n=0;n--){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){a=n;break}}return n>=0&&n=e[0]&&t<=e[1]}}function a(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var r=i(3),s=i(306),l=i(1);t.exports=i(2).extendchartview({type:"heatmap",render:function(t,e,i){var n;e.eachcomponent("visualmap",function(e){e.eachtargetseries(function(i){i===t&&(n=e)})}),this.group.removeall();var o=t.coordinatesystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderoncartesianandcalendar(o,t,i):a(o)&&this._renderongeo(o,t,n,i)},dispose:function(){},_renderoncartesianandcalendar:function(t,e,i){if("cartesian2d"===t.type)var n=t.getaxis("x"),o=t.getaxis("y"),a=n.getbandwidth(),s=o.getbandwidth();var u=this.group,c=e.getdata(),h="itemstyle.normal",d="itemstyle.emphasis",f="label.normal",p="label.emphasis",g=e.getmodel(h).getitemstyle(["color"]),m=e.getmodel(d).getitemstyle(),v=e.getmodel("label.normal"),y=e.getmodel("label.emphasis");c.each("cartesian2d"===t.type?["x","y","z"]:["time","value"],function(i,n,o,x){var _;if("cartesian2d"===t.type){if(isnan(o))return;var b=t.datatopoint([i,n]);_=new r.rect({shape:{x:b[0]-a/2,y:b[1]-s/2,width:a,height:s},style:{fill:c.getitemvisual(x,"color"),opacity:c.getitemvisual(x,"opacity")}})}else{if(isnan(n))return;x=o,_=new r.rect({z2:1,shape:t.datatorect([i,n]).contentshape,style:{fill:c.getitemvisual(x,"color"),opacity:c.getitemvisual(x,"opacity")}})}var w=c.getitemmodel(x);c.hasitemoption&&(g=w.getmodel(h).getitemstyle(["color"]),m=w.getmodel(d).getitemstyle(),v=w.getmodel(f),y=w.getmodel(p));var s=e.getrawvalue(x),m="-";s&&null!=s[2]&&(m=s[2]),v.getshallow("show")&&(r.settext(g,v),g.text=e.getformattedlabel(x,"normal")||m),y.getshallow("show")&&(r.settext(m,y),m.text=e.getformattedlabel(x,"emphasis")||m),_.setstyle(g),r.sethoverstyle(_,c.hasitemoption?m:l.extend({},m)),u.add(_),c.setitemgraphicel(x,_)})},_renderongeo:function(t,e,i,a){var l=i.targetvisuals.inrange,u=i.targetvisuals.outofrange,c=e.getdata(),h=this._hmlayer||this._hmlayer||new s;h.blursize=e.get("blursize"),h.pointsize=e.get("pointsize"),h.minopacity=e.get("minopacity"),h.maxopacity=e.get("maxopacity");var d=t.getviewrect().clone(),f=t.getroamtransform().transform;d.applytransform(f);var p=math.max(d.x,0),g=math.max(d.y,0),m=math.min(d.width+d.x,a.getwidth()),v=math.min(d.height+d.y,a.getheight()),y=m-p,x=v-g,_=c.maparray(["lng","lat","value"],function(e,i,n){var o=t.datatopoint([e,i]);return o[0]-=p,o[1]-=g,o.push(n),o}),b=i.getextent(),w="visualmap.continuous"===i.type?o(b,i.option.range):n(b,i.getpiecelist(),i.option.selected);h.update(_,y,x,l.color.getnormalizer(),{inrange:l.color.getcolormapper(),outofrange:u.color.getcolormapper()},w);var s=new r.image({style:{width:y,height:x,x:p,y:g,image:h.canvas},silent:!0});this.group.add(s)}})},function(t,e,i){function n(t,e,i){r.call(this,t,e,i),this._lastframe=0,this._lastframepercent=0}var o=i(246),a=i(1),r=i(245),s=i(5),l=n.prototype;l.createline=function(t,e,i){return new o(t,e,i)},l.updateanimationpoints=function(t,e){this._points=e;for(var i=[0],n=0,o=1;o=0&&!(n[a]<=e);a--);a=math.min(a,o-2)}else{for(var a=r;ae);a++);a=math.min(a-1,o-2)}s.lerp(t.position,i[a],i[a+1],(e-n[a])/(n[a+1]-n[a]));var u=i[a+1][0]-i[a][0],c=i[a+1][1]-i[a][1];t.rotation=-math.atan2(c,u)-math.pi/2,this._lastframe=a,this._lastframepercent=e,t.ignore=!1}},a.inherits(n,r),t.exports=n},function(t,e,i){function n(t){return r.isarray(t)||(t=[+t,+t]),t}function o(t,e){t.eachchild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushtype?e.color:null,fill:"fill"===e.brushtype?e.color:null}})})}function a(t,e){h.call(this);var i=new c(t,e),n=new h;this.add(i),this.add(n),n.beforeupdate=function(){this.attr(i.getscale())},this.updatedata(t,e)}var r=i(1),s=i(24),l=i(3),u=i(4),c=i(54),h=l.group,d=3,f=a.prototype;f.stopeffectanimation=function(){this.childat(1).removeall()},f.starteffectanimation=function(t){for(var e=t.symboltype,i=t.color,n=this.childat(1),a=0;a2?t.quadraticcurveto(a[2][0],a[2][1],a[1][0],a[1][1]):t.lineto(a[1][0],a[1][1])}},finddataindex:function(t,e){for(var i=this.shape,n=i.segs,o=i.polyline,s=math.max(this.style.linewidth,1),l=0;l2){if(a.containstroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,t,e))return l}else if(r.containstroke(u[0][0],u[0][1],u[1][0],u[1][1],s,t,e))return l}return-1}}),l=n.prototype;l.updatedata=function(t){this.group.removeall();var e=this._lineel,i=t.hostmodel;e.setshape({segs:t.maparray(t.getitemlayout),polyline:i.get("polyline")}),e.usestyle(i.getmodel("linestyle.normal").getlinestyle());var n=t.getvisual("color");n&&e.setstyle("stroke",n),e.setstyle("fill"),e.seriesindex=i.seriesindex,e.on("mousemove",function(t){e.dataindex=null;var i=e.finddataindex(t.offsetx,t.offsety);i>0&&(e.dataindex=i)}),this.group.add(e)},l.updatelayout=function(t){var e=t.getdata();this._lineel.setshape({segs:e.maparray(e.getitemlayout)})},l.remove=function(){this.group.removeall()},t.exports=n},function(t,e,i){function n(t,e,i,n){l.group.call(this),this.bodyindex,this.whiskerindex,this.styleupdater=i,this._createcontent(t,e,n),this.updatedata(t,e,n),this._seriesmodel}function o(t,e,i){return s.map(t,function(t){return t=t.slice(),t[e]=i.initbaseline,t})}function a(t){var e={};return s.each(t,function(t,i){e["ends"+i]=t}),e}function r(t){this.group=new l.group,this.styleupdater=t}var s=i(1),l=i(3),u=i(8),c=u.extend({type:"whiskerinbox",shape:{},buildpath:function(t,e){for(var i in e)if(e.hasownproperty(i)&&0===i.indexof("ends")){var n=e[i];t.moveto(n[0][0],n[0][1]),t.lineto(n[1][0],n[1][1])}}}),h=n.prototype;h._createcontent=function(t,e,i){var n=t.getitemlayout(e),r="horizontal"===n.chartlayout?1:0,u=0;this.add(new l.polygon({shape:{points:i?o(n.bodyends,r,n):n.bodyends},style:{strokenoscale:!0},z2:100})),this.bodyindex=u++;var h=s.map(n.whiskerends,function(t){return i?o(t,r,n):t});this.add(new c({shape:a(h),style:{strokenoscale:!0},z2:100})),this.whiskerindex=u++},h.updatedata=function(t,e,i){var n=this._seriesmodel=t.hostmodel,o=t.getitemlayout(e),r=l[i?"initprops":"updateprops"];r(this.childat(this.bodyindex),{shape:{points:o.bodyends}},n,e),r(this.childat(this.whiskerindex),{shape:a(o.whiskerends)},n,e),this.styleupdater.call(null,this,t,e)},s.inherits(n,l.group);var d=r.prototype;d.updatedata=function(t){var e=this.group,i=this._data,o=this.styleupdater;t.diff(i).add(function(i){if(t.hasvalue(i)){var a=new n(t,i,o,(!0));t.setitemgraphicel(i,a),e.add(a)}}).update(function(a,r){var s=i.getitemgraphicel(r);return t.hasvalue(a)?(s?s.updatedata(t,a):s=new n(t,a,o),e.add(s),void t.setitemgraphicel(a,s)):void e.remove(s)}).remove(function(t){var n=i.getitemgraphicel(t);n&&e.remove(n)}).execute(),this._data=t},d.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachitemgraphicel(function(e){e&&t.remove(e)})},t.exports=r},function(t,e,i){i(314),i(315);var n=i(2);n.registerlayout(i(316)),n.registervisual(i(317))},function(t,e,i){"use strict";function n(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=r.map(e,function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromname=t[0].name),t[1].name&&(i.toname=t[1].name),r.mergeall([i,t[0],t[1]])}))}var o=i(19),a=i(14),r=i(1),s=i(7),l=(i(26),o.extend({type:"series.lines",dependencies:["grid","polar"],visualcoloraccesspath:"linestyle.normal.color",init:function(t){n(t),l.superapply(this,"init",arguments)},mergeoption:function(t){n(t),l.superapply(this,"mergeoption",arguments)},getinitialdata:function(t,e){var i=new a(["value"],this);return i.hasitemoption=!1,i.initdata(t.data,[],function(t,e,n,o){if(t instanceof array)return nan;i.hasitemoption=!0;var a=t.value;return null!=a?a instanceof array?a[o]:a:void 0}),i},formattooltip:function(t){var e=this.getdata(),i=e.getitemmodel(t),n=i.get("name");if(n)return n;var o=i.get("fromname"),a=i.get("toname"),r=[];return null!=o&&r.push(o),null!=a&&r.push(a),s.encodehtml(r.join(" > "))},defaultoption:{coordinatesystem:"geo",zlevel:0,z:2,legendhoverlink:!0,hoveranimation:!0,xaxisindex:0,yaxisindex:0,symbol:["none","none"],symbolsize:[10,10],geoindex:0,effect:{show:!1,period:4,constantspeed:0,symbol:"circle",symbolsize:3,loop:!0,traillength:.2},large:!1,largethreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},linestyle:{normal:{opacity:.5}}}}))},function(t,e,i){var n=i(106),o=i(245),a=i(105),r=i(246),s=i(309),l=i(311);i(2).extendchartview({type:"lines",init:function(){},render:function(t,e,i){var u=t.getdata(),c=this._linedraw,h=t.get("effect.show"),d=t.get("polyline"),f=t.get("large")&&u.count()>=t.get("largethreshold");h===this._haseffet&&d===this._ispolyline&&f===this._islarge||(c&&c.remove(),c=this._linedraw=f?new l:new n(d?h?s:r:h?o:a),this._haseffet=h,this._ispolyline=d,this._islarge=f);var p=t.get("zlevel"),g=t.get("effect.traillength"),m=i.getzr();if(m.painter.getlayer(p).clear(!0),null!=this._lastzlevel&&m.configlayer(this._lastzlevel,{motionblur:!1}),h&&g){m.configlayer(p,{motionblur:!0,lastframealpha:math.max(math.min(g/10+.9,1),0)})}this.group.add(c.group),c.updatedata(u),this._lastzlevel=p},updatelayout:function(t,e,i){this._linedraw.updatelayout(t);var n=i.getzr();n.painter.getlayer(this._lastzlevel).clear(!0)},remove:function(t,e){this._linedraw&&this._linedraw.remove(e,!0)},dispose:function(){}})},function(t,e,i){t.exports=function(t){t.eachseriesbytype("lines",function(t){var e=t.coordinatesystem,i=t.getdata();i.each(function(n){var o=i.getitemmodel(n),a=o.option instanceof array?o.option:o.get("coords"),r=[];if(t.get("polyline"))for(var s=0;s"+l(n+" : "+i)},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:{normal:{show:!1,textstyle:{color:"#000"}},emphasis:{show:!0,textstyle:{color:"rgb(100,0,0)"}}},itemstyle:{normal:{borderwidth:.5,bordercolor:"#444",areacolor:"#eee"},emphasis:{areacolor:"rgba(255,215,0,0.8)"}}}});a.mixin(d,c),t.exports=d},function(t,e,i){var n=i(3),o=i(249);i(2).extendchartview({type:"map",render:function(t,e,i,n){if(!n||"maptoggleselect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeall(),!t.gethostgeomodel()){if(n&&"georoam"===n.type&&"series"===n.componenttype&&n.seriesid===t.id){var r=this._mapdraw;r&&a.add(r.group)}else if(t.needsdrawmap){var r=this._mapdraw||new o(i,(!0));a.add(r.group),r.draw(t,e,i,this,n),this._mapdraw=r}else this._mapdraw&&this._mapdraw.remove(),this._mapdraw=null;t.get("showlegendsymbol")&&e.getcomponent("legend")&&this._rendersymbols(t,e,i)}}},remove:function(){this._mapdraw&&this._mapdraw.remove(),this._mapdraw=null,this.group.removeall()},dispose:function(){this._mapdraw&&this._mapdraw.remove(),this._mapdraw=null},_rendersymbols:function(t,e,i){var o=t.originaldata,a=this.group;o.each("value",function(e,i){if(!isnan(e)){var r=o.getitemlayout(i);if(r&&r.point){var s=r.point,l=r.offset,u=new n.circle({style:{fill:t.getdata().getvisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainseries.getdata(),h=o.getname(i),d=h,f=c.indexofname(h),p=o.getitemmodel(i),g=p.getmodel("label.normal"),m=p.getmodel("label.emphasis"),v=g.getmodel("textstyle"),y=m.getmodel("textstyle"),x=c.getitemgraphicel(f);u.setstyle({textposition:"bottom"});var _=function(){u.setstyle({text:m.get("show")?d:"",textfill:y.gettextcolor(),textfont:y.getfont()})},b=function(){u.setstyle({text:g.get("show")?d:"",textfill:v.gettextcolor(),textfont:v.getfont()})};x.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b),b()}a.add(u)}}})}})},function(t,e,i){var n=i(1);t.exports=function(t){var e=[];n.each(t.series,function(t){"map"===t.type&&e.push(t)}),n.each(e,function(t){t.map=t.map||t.maptype,n.defaults(t,t.maplocation)})}},function(t,e,i){function n(t,e){var i={},n=["value"];return o.each(t,function(t){t.each(n,function(e,n){var o=t.getname(n);i[o]=i[o]||[],isnan(e)||i[o].push(e)})}),t[0].map(n,function(n,o){for(var a=t[0].getname(o),r=0,s=1/0,l=-(1/0),u=i[a].length,c=0;c=0?e:nan}})}function o(t){return+t.replace("dim","")}function a(t,e){var i=0;s.each(t,function(t){var e=o(t);e>i&&(i=e)});var n=e[0];n&&n.length-1>i&&(i=n.length-1);for(var a=[],r=0;r<=i;r++)a.push("dim"+r);return a}var r=i(14),s=i(1),l=i(19),u=i(25);t.exports=l.extend({type:"series.parallel",dependencies:["parallel"],visualcoloraccesspath:"linestyle.normal.color",getinitialdata:function(t,e){var i=e.getcomponent("parallel",this.get("parallelindex")),o=i.parallelaxisindex,l=t.data,c=i.dimensions,h=a(c,l),d=s.map(h,function(t,i){var a=s.indexof(c,t),r=a>=0&&e.getcomponent("parallelaxis",o[a]);return r&&"category"===r.get("type")?(n(r,t,l),{name:t,type:"ordinal"}):a<0&&u.guessordinal(l,i)?{name:t,type:"ordinal"}:t}),f=new r(d,this);return f.initdata(l),this.option.progressive&&(this.option.animation=!1),f},getrawindicesbyactivestate:function(t){var e=this.coordinatesystem,i=this.getdata(),n=[];return e.eachactivestate(i,function(e,o){t===e&&n.push(i.getrawindex(o))}),n},defaultoption:{zlevel:0,z:2,coordinatesystem:"parallel",parallelindex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveopacity:.05,activeopacity:1,linestyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationeasing:"linear"}})},function(t,e,i){function n(t,e,i){var n=t.model,o=t.getrect(),a=new l.rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),r="horizontal"===n.get("layout")?"width":"height";return a.setshape(r,0),l.initprops(a,{shape:{width:o.width,height:o.height}},e,i),a}function o(t,e,i,n){for(var o=[],a=0;a"+r.map(n,function(t,i){return s(t.name+" : "+e[i])}).join("
")},defaultoption:{zlevel:0,z:2,coordinatesystem:"radar",legendhoverlink:!0,radarindex:0,linestyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptycircle",symbolsize:4}});t.exports=l},function(t,e,i){function n(t){return a.isarray(t)||(t=[+t,+t]),t}var o=i(3),a=i(1),r=i(24);t.exports=i(2).extendchartview({type:"radar",render:function(t,e,i){function s(t,e){var i=t.getitemvisual(e,"symbol")||"circle",o=t.getitemvisual(e,"color");if("none"!==i){var a=r.createsymbol(i,-.5,-.5,1,1,o);return a.attr({style:{strokenoscale:!0},z2:100,scale:n(t.getitemvisual(e,"symbolsize"))}),a}}function l(e,i,n,a,r,l){n.removeall();for(var u=0;u0;o--)r*=.99,d(a,r),h(a,n,i),p(a,r),h(a,n,i)}function c(t,e,i,n,o){var a=[];t.each(e,function(t){var e=t.length,i=0;t.each(t,function(t){i+=t.getlayout().value});var r=(n-(e-1)*o)/i;a.push(r)}),a.sort(function(t,e){return t-e});var r=a[0];t.each(e,function(t){t.each(t,function(t,e){t.setlayout({y:e},!0);var i=t.getlayout().value*r;t.setlayout({dy:i},!0)})}),t.each(i,function(t){var e=+t.getvalue()*r;t.setlayout({dy:e},!0)})}function h(t,e,i){t.each(t,function(t){var n,o,a,r=0,s=t.length;for(t.sort(b),a=0;a0){var l=n.getlayout().y+o;n.setlayout({y:l},!0)}r=n.getlayout().y+n.getlayout().dy+e}if(o=r-e-i,o>0){var l=n.getlayout().y-o;for(n.setlayout({y:l},!0),r=n.getlayout().y,a=s-2;a>=0;--a)n=t[a],o=n.getlayout().y+n.getlayout().dy+e-r,o>0&&(l=n.getlayout().y-o,n.setlayout({y:l},!0)),r=n.getlayout().y}})}function d(t,e){t.each(t.slice().reverse(),function(t){t.each(t,function(t){if(t.outedges.length){var i=x(t.outedges,f)/x(t.outedges,s),n=t.getlayout().y+(i-_(t))*e;t.setlayout({y:n},!0)}})})}function f(t){return _(t.node2)*t.getvalue()}function p(t,e){t.each(t,function(t){t.each(t,function(t){if(t.inedges.length){var i=x(t.inedges,g)/x(t.inedges,s),n=t.getlayout().y+(i-_(t))*e;t.setlayout({y:n},!0)}})})}function g(t){return _(t.node1)*t.getvalue()}function m(t){t.each(t,function(t){t.outedges.sort(v),t.inedges.sort(y)}),t.each(t,function(t){var e=0,i=0;t.each(t.outedges,function(t){t.setlayout({sy:e},!0),e+=t.getlayout().dy}),t.each(t.inedges,function(t){t.setlayout({ty:i},!0),i+=t.getlayout().dy})})}function v(t,e){return t.node2.getlayout().y-e.node2.getlayout().y}function y(t,e){return t.node1.getlayout().y-e.node1.getlayout().y}function x(t,e){for(var i=0,n=t.length,o=-1;++oe?1:t===e?0:nan}function s(t){return t.getvalue()}var m=i(12),i=i(265),t=i(1);t.exports=function(t,e,i){t.eachseriesbytype("sankey",function(t){var i=t.get("nodewidth"),r=t.get("nodegap"),s=n(t,e);t.layoutinfo=s;var l=s.width,u=s.height,c=t.getgraph(),h=c.nodes,d=c.edges;a(h);var f=t.filter(h,function(t){return 0===t.getlayout().value}),p=0!==f.length?0:t.get("layoutiterations");o(h,d,i,r,l,u,p)})}},function(t,e,i){var n=i(82),o=i(1);t.exports=function(t,e){t.eachseriesbytype("sankey",function(t){var e=t.getgraph(),i=e.nodes;i.sort(function(t,e){return t.getlayout().value-e.getlayout().value});var a=i[0].getlayout().value,r=i[i.length-1].getlayout().value;o.each(i,function(e){var i=new n({type:"color",mappingmethod:"linear",dataextent:[a,r],visual:t.get("color")}),o=i.mapvaluetovisual(e.getlayout().value);e.setvisual("color",o);var s=e.getmodel(),l=s.get("itemstyle.normal.color");null!=l&&e.setvisual("color",l)})})}},function(t,e,i){var n=i(2),o=i(1);i(252),i(341),i(342),n.registerlayout(i(343)),n.registervisual(i(344)),n.registerprocessor(o.curry(i(62),"themeriver"))},function(t,e,i){"use strict";var n=i(25),o=i(19),a=i(14),r=i(1),s=i(7),l=s.encodehtml,u=i(265),c=2,h=o.extend({type:"series.themeriver",dependencies:["singleaxis"],namemap:null,init:function(t){h.superapply(this,"init",arguments),this.legenddataprovider=function(){return this.getrawdata()}},fixdata:function(t){for(var e=t.length,i=u().key(function(t){return t[2]}).entries(t),n=r.map(i,function(t){return{name:t.key,datalist:t.values}}),o=n.length,a=-1,s=-1,l=0;la&&(a=c,s=l)}for(var h=0;hr&&(r=e),o.push(e)}for(var c=0;cr&&(r=d)}return s.y0=a,s.max=r,s}var a=i(1),r=i(4);t.exports=function(t,e){t.eachseriesbytype("themeriver",function(t){var e=t.getdata(),i=t.coordinatesystem,o={},a=i.getrect();o.rect=a;var s=t.get("boundarygap"),l=i.getaxis();if(o.boundarygap=s,"horizontal"===l.orient){s[0]=r.parsepercent(s[0],a.height),s[1]=r.parsepercent(s[1],a.height);var u=a.height-s[0]-s[1];n(e,t,u)}else{s[0]=r.parsepercent(s[0],a.width),s[1]=r.parsepercent(s[1],a.width);var c=a.width-s[0]-s[1];n(e,t,c)}e.setlayout("layoutinfo",o)})}},function(t,e){t.exports=function(t){t.eachseriesbytype("themeriver",function(t){var e=t.getdata(),i=t.getrawdata(),n=t.get("color");e.each(function(o){var a=e.getname(o),r=n[(t.namemap[a]-1)%n.length];i.setitemvisual(o,"color",r)})})}},function(t,e,i){var n=i(2);i(347),i(348),i(349),n.registervisual(i(351)),n.registerlayout(i(350))},function(t,e,i){function n(t){this.group=new r.group,t.add(this.group)}function o(t,e,i,n,o,a){var r=[[o?t:t-d,e],[t+i,e],[t+i,e+n],[o?t:t-d,e+n]];return!a&&r.splice(2,0,[t+i+d,e+n/2]),!o&&r.push([t,e+n/2]),r}function a(t,e,i){t.eventdata={componenttype:"series",componentsubtype:"treemap",seriesindex:e.componentindex,seriesname:e.name,seriestype:"treemap",selftype:"breadcrumb",nodedata:{dataindex:i&&i.dataindex,name:i&&i.name},treepathinfo:i&&u.wraptreepathinfo(i,e)}}var r=i(3),s=i(12),l=i(1),u=i(92),c=8,h=8,d=5;n.prototype={constructor:n,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.normal"),l=r.getmodel("textstyle"),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getwidth(),height:e.getheight()},emptyitemwidth:o.get("emptyitemwidth"),totalwidth:0,renderlist:[]};this._prepare(i,u,l),this._rendercontent(t,u,r,l,n),s.positionelement(a,u.pos,u.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+2*c,e.emptyitemwidth);e.totalwidth+=r+h,e.renderlist.push({node:n,text:o,width:r})}},_rendercontent:function(t,e,i,n,u){for(var c=0,d=e.emptyitemwidth,f=t.get("breadcrumb.height"),p=s.getavailablesize(e.pos,e.box),g=e.totalwidth,m=e.renderlist,v=m.length-1;v>=0;v--){var y=m[v],x=y.node,_=y.width,b=y.text;g>p.width&&(g-=_-d,_=d,b="");var w=new r.polygon({shape:{points:o(c,0,_,f,v===m.length-1,0===v)},style:l.defaults(i.getitemstyle(),{linejoin:"bevel",text:b,textfill:n.gettextcolor(),textfont:n.getfont()}),z:10,onclick:l.curry(u,x)});this.group.add(w),a(w,t,x),c+=_+h}},remove:function(){this.group.removeall()}},t.exports=n},function(t,e,i){function n(t){var e=0;s.each(t.children,function(t){n(t);var i=t.value;s.isarray(i)&&(i=i[0]),e+=i});var i=t.value;s.isarray(i)&&(i=i[0]),(null==i||isnan(i))&&(i=e),i<0&&(i=0),s.isarray(t.value)?t.value[0]=i:t.value=i}function o(t,e){var i=e.get("color");if(i){t=t||[];var n;if(s.each(t,function(t){var e=new l(t),i=e.get("color");(e.get("itemstyle.normal.color")||i&&"none"!==i)&&(n=!0)}),!n){var o=t[0]||(t[0]={});o.color=i.slice()}return t}}var a=i(19),r=i(418),s=i(1),l=i(10),u=i(7),c=i(92),h=u.encodehtml,d=u.addcommas;t.exports=a.extend({type:"series.treemap",layoutmode:"box",dependencies:["grid","polar"],_viewroot:null,defaultoption:{progressive:0,hoverlayerthreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipwindow:"origin",squareratio:.5*(1+math.sqrt(5)),leafdepth:null,drilldownicon:"▶",zoomtonoderatio:.1024,roam:!0,nodeclick:"zoomtonode",animation:!0,animationdurationupdate:900,animationeasing:"quinticinout",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyitemwidth:25,itemstyle:{normal:{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:{normal:{show:!0,position:"inside",textstyle:{color:"#fff",ellipsis:!0}}},itemstyle:{normal:{color:null,coloralpha:null,colorsaturation:null,borderwidth:0,gapwidth:0,bordercolor:"#fff",bordercolorsaturation:null},emphasis:{}},visualdimension:0,visualmin:null,visualmax:null,color:[],coloralpha:null,colorsaturation:null,colormappingby:"index",visiblemin:10,childrenvisiblemin:null,levels:[]},getinitialdata:function(t,e){var i=t.name;null==i&&(i=t.name);var a={name:i,children:t.data};n(a);var s=t.levels||[];return s=t.levels=o(s,e),r.createtree(a,this,s).data},optionupdated:function(){this.resetviewroot()},formattooltip:function(t){var e=this.getdata(),i=this.getrawvalue(t),n=d(s.isarray(i)?i[0]:i),o=e.getname(t);return h(o+": "+n)},getdataparams:function(t){var e=a.prototype.getdataparams.apply(this,arguments),i=this.getdata().tree.getnodebydataindex(t);return e.treepathinfo=c.wraptreepathinfo(i,this),e},setlayoutinfo:function(t){this.layoutinfo=this.layoutinfo||{},s.extend(this.layoutinfo,t)},mapidtoindex:function(t){var e=this._idindexmap;e||(e=this._idindexmap={},this._idindexmapcount=0);var i=e[t];return null==i&&(e[t]=i=this._idindexmapcount++),i},getviewroot:function(){return this._viewroot},resetviewroot:function(t){t?this._viewroot=t:t=this._viewroot;var e=this.getdata().tree.root;t&&(t===e||e.contains(t))||(this._viewroot=e)}})},function(t,e,i){function n(){return{nodegroup:[],background:[],content:[]}}function o(t,e,i,n,o,l,u,c,h,d){function f(e){z.dataindex=u.dataindex,z.seriesindex=t.seriesindex;var i=t.borderwidth,n=math.max(a-2*i,0),o=math.max(c-2*i,0);z.culling=!0,z.setshape({x:i,y:i,width:n,height:o});var a=u.getvisual("color",!0);p(z,function(){var t={fill:a},e=u.getmodel("itemstyle.emphasis").getitemstyle();g(t,e,a,n,o),z.setstyle(t),s.sethoverstyle(z,e)}),e.add(z)}function p(t,e){l?!t.invisible&&l.push(t):(e(),t.__tmwillvisible||(t.invisible=!1))}function g(e,i,n,o,a){var r=u.getmodel(),s=r.get("name");if(t.isleafroot){var l=t.get("drilldownicon",!0);s=l?l+" "+s:s}y(s,e,r,_,n,o,a),y(s,i,r,b,n,o,a)}function y(t,e,i,n,o,a,r){var l=i.getmodel(n),u=l.getmodel("textstyle");s.settext(e,l,o),e.textalign=u.get("align"),e.textverticalalign=u.get("baseline");var c=u.gettextrect(t);!l.getshallow("show")||c.height>r?e.text="":c.width>a?e.text=u.get("ellipsis")?u.truncatetext(t,a,null,{minchar:2}):"":e.text=t}function x(t,n,r,s){var l=null!=p&&i[t][p],u=o[t];return l?(i[t][p]=null,w(u,l,t)):l||(l=new n({z:a(r,s)}),l.__tmdepth=r,l.__tmstoragename=t,i(u,l,t)),e[t][d]=l}function w(t,e,i){var n=t[d]={};n.old="nodegroup"===i?e.position.slice():r.extend({},e.shape)}function i(t,e,i){var a=t[d]={},r=u.parentnode;if(r&&(!n||"drilldown"===n.direction)){var s=0,l=0,c=o.background[r.getrawindex()];!n&&c&&c.old&&(s=c.old.width,l=c.old.height),a.old="nodegroup"===i?[0,l]:{x:s,y:l,width:0,height:0}}a.fadein="nodegroup"!==i}if(u){var t=u.getlayout();if(t&&t.isinview){var a=t.width,c=t.height,l=t.invisible,d=u.getrawindex(),p=c&&c.getrawindex(),k=x("nodegroup",m);if(k){if(h.add(k),k.attr("position",[t.x||0,t.y||0]),k.__tmnodewidth=a,k.__tmnodeheight=c,t.isaboveviewroot)return k;var o=x("background",v,d,s);o&&(o.setshape({x:0,y:0,width:a,height:c}),p(o,function(){o.setstyle("fill",u.getvisual("bordercolor",!0))}),k.add(o));var e=u.viewchildren;if(!e||!e.length){var z=x("content",v,d,m);z&&f(k)}return k}}}}function a(t,e){var i=t*w+e;return(i-1)/i}var r=i(1),s=i(3),l=i(48),u=i(92),c=i(346),h=i(93),d=i(11),f=i(16),p=i(419),g=r.bind,m=s.group,v=s.rect,y=r.each,x=3,_=["label","normal"],b=["label","emphasis"],w=10,s=1,m=2;t.exports=i(2).extendchartview({type:"treemap",init:function(t,e){this._containergroup,this._storage=n(),this._oldtree,this._breadcrumb,this._controller,this._state="ready",this._mayclick},render:function(t,e,i,n){var o=e.findcomponents({maintype:"series",subtype:"treemap",query:n});if(!(r.indexof(o,t)<0)){this.seriesmodel=t,this.api=i,this.ecmodel=e;var a=u.retrievetargetinfo(n,t),s=n&&n.type,l=t.layoutinfo,c=!this._oldtree,h=this._storage,d="treemaproottonode"===s&&a&&h?{rootnodegroup:h.nodegroup[a.node.getrawindex()],direction:n.direction}:null,f=this._givecontainergroup(l),p=this._dorender(f,t,d);c||s&&"treemapzoomtonode"!==s&&"treemaproottonode"!==s?p.renderfinally():this._doanimation(f,p,t,d),this._resetcontroller(i),this._renderbreadcrumb(t,i,a)}},_givecontainergroup:function(t){var e=this._containergroup;return e||(e=this._containergroup=new m,this._initevents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_dorender:function(t,e,i){function a(t,e,i,n,o){function s(t){return t.getid()}function u(r,s){var l=null!=r?t[r]:null,u=null!=s?e[s]:null,c=m(l,u,i,o);c&&a(l&&l.viewchildren||[],u&&u.viewchildren||[],c,n,o+1)}n?(e=t,y(t,function(t,e){!t.isremoved()&&u(e,e)})):new l(e,t,s,s).add(u).update(u).remove(r.curry(u,null)).execute()}function s(t){var e=n();return t&&y(t,function(t,i){var n=e[i];y(t,function(t){t&&(n.push(t),t.__tmwilldelete=1)})}),e}function u(){y(v,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(g,function(t){t.invisible=!0,t.dirty()})}var c=e.getdata().tree,h=this._oldtree,d=n(),f=n(),p=this._storage,g=[],m=r.curry(o,e,f,p,i,d,g);a(c.root?[c.root]:[],h&&h.root?[h.root]:[],t,c===h||!h,0);var v=s(p);return this._oldtree=c,this._storage=f,{lastsforanimation:d,willdeleteels:v,renderfinally:u}},_doanimation:function(t,e,i,n){if(i.get("animation")){var o=i.get("animationdurationupdate"),a=i.get("animationeasing"),s=p.createwrap();y(e.willdeleteels,function(t,e){y(t,function(t,i){if(!t.invisible){var r,l=t.parent;if(n&&"drilldown"===n.direction)r=l===n.rootnodegroup?{shape:{x:0,y:0,width:l.__tmnodewidth,height:l.__tmnodeheight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmwilldelete||(u=l.__tmnodewidth/2,c=l.__tmnodeheight/2),r="nodegroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,o,a)}})}),y(this._storage,function(t,i){y(t,function(t,n){var l=e.lastsforanimation[i][n],u={};l&&("nodegroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r.extend({},t.shape),t.setshape(l.old)),l.fadein?(t.setstyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,o,a))})},this),this._state="animating",s.done(g(function(){this._state="ready",e.renderfinally()},this)).start()}},_resetcontroller:function(t){var e=this._controller;e||(e=this._controller=new h(t.getzr()),e.enable(this.seriesmodel.get("roam")),e.on("pan",g(this._onpan,this)),e.on("zoom",g(this._onzoom,this)));var i=new d(0,0,t.getwidth(),t.getheight());e.setpointerchecker(function(t,e,n){return i.contain(e,n)})},_clearcontroller:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onpan:function(t,e){if(this._mayclick=!1,"animating"!==this._state&&(math.abs(t)>x||math.abs(e)>x)){var i=this.seriesmodel.getdata().tree.root;if(!i)return;var n=i.getlayout();if(!n)return;this.api.dispatchaction({type:"treemapmove",from:this.uid,seriesid:this.seriesmodel.id,rootrect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})}},_onzoom:function(t,e,i){if(this._mayclick=!1,"animating"!==this._state){var n=this.seriesmodel.getdata().tree.root;if(!n)return;var o=n.getlayout();if(!o)return;var a=new d(o.x,o.y,o.width,o.height),r=this.seriesmodel.layoutinfo;e-=r.x,i-=r.y;var s=f.create();f.translate(s,s,[-e,-i]),f.scale(s,s,[t,t]),f.translate(s,s,[e,i]),a.applytransform(s),this.api.dispatchaction({type:"treemaprender",from:this.uid,seriesid:this.seriesmodel.id,rootrect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initevents:function(t){function e(t){var e=this.seriesmodel.get("nodeclick",!0);if(e){var i=this.findtarget(t.offsetx,t.offsety);if(i){var n=i.node;if(n.getlayout().isleafroot)this._roottonode(i);else if("zoomtonode"===e)this._zoomtonode(i);else if("link"===e){var o=n.hosttree.data.getitemmodel(n.dataindex),a=o.get("link",!0),r=o.get("target",!0)||"blank";a&&window.open(a,r)}}}}t.on("mousedown",function(t){"ready"===this._state&&(this._mayclick=!0)},this),t.on("mouseup",function(t){this._mayclick&&(this._mayclick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderbreadcrumb:function(t,e,i){function n(e){"animating"!==this._state&&(u.aboveviewroot(t.getviewroot(),e)?this._roottonode({node:e}):this._zoomtonode({node:e}))}i||(i=null!=t.get("leafdepth",!0)?{node:t.getviewroot()}:this.findtarget(e.getwidth()/2,e.getheight()/2),i||(i={node:t.getdata().tree.root})),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,i.node,g(n,this))},remove:function(){this._clearcontroller(),this._containergroup&&this._containergroup.removeall(),this._storage=n(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearcontroller()},_zoomtonode:function(t){this.api.dispatchaction({type:"treemapzoomtonode",from:this.uid,seriesid:this.seriesmodel.id,targetnode:t.node})},_roottonode:function(t){this.api.dispatchaction({type:"treemaproottonode",from:this.uid,seriesid:this.seriesmodel.id,targetnode:t.node})},findtarget:function(t,e){var i,n=this.seriesmodel.getviewroot();return n.eachnode({attr:"viewchildren",order:"preorder"},function(n){var o=this._storage.background[n.getrawindex()];if(o){var a=o.transformcoordtolocal(t,e),r=o.shape;if(!(r.x<=a[0]&&a[0]<=r.x+r.width&&r.y<=a[1]&&a[1]<=r.y+r.height))return!1;i={node:n,offsetx:a[0],offsety:a[1]}}},this),i}})},function(t,e,i){for(var n=i(2),o=i(92),a=function(){},r=["treemapzoomtonode","treemaprender","treemapmove"],s=0;s=0;l--){var u=o["asc"===n?r-l-1:l].getvalue();u/i*er[1]&&(r[1]=e)}); }else r=[nan,nan];return{sum:n,dataextent:r}}function u(t,e,i){for(var n,o=0,a=1/0,r=0,s=t.length;ro&&(o=n));var l=t.area*t.area,u=e*e*i;return l?x(u*o/l,l/(u*a)):1/0}function c(t,e,i,n,o){var a=e===i.width?0:1,r=1-a,s=["x","y"],l=["width","height"],u=i[s[a]],c=e?t.area/e:0;(o||c>i[l[r]])&&(c=i[l[r]]);for(var h=0,d=t.length;hg.max_safe_integer&&(u=g.max_safe_integer),a=s}u=u.length||t===u[t.depth]){var o=c(d,x,t,e,s,h);n(t,o,i,s,u,h)}})}else m=a(x,t),t.setvisual("color",m)}}function o(t,e,i,n){var o=f.extend({},e);return f.each(["color","coloralpha","colorsaturation"],function(a){var r=t.get(a,!0);null==r&&i&&(r=i[a]),null==r&&(r=e[a]),null==r&&(r=n.get(a)),null!=r&&(o[a]=r)}),o}function a(t){var e=s(t,"color");if(e){var i=s(t,"coloralpha"),n=s(t,"colorsaturation");return n&&(e=d.modifyhsl(e,null,null,n)),i&&(e=d.modifyalpha(e,i)),e}}function r(t,e){return null!=e?d.modifyhsl(e,null,null,t):null}function s(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function l(t,e,i,n,o,a){if(a&&a.length){var r=u(e,"color")||null!=o.color&&"none"!==o.color&&(u(e,"coloralpha")||u(e,"colorsaturation"));if(r){var s=e.get("visualmin"),l=e.get("visualmax"),c=i.dataextent.slice();null!=s&&sc[1]&&(c[1]=l);var d=e.get("colormappingby"),f={type:r.name,dataextent:c,visual:r.range};"color"!==f.type||"index"!==d&&"id"!==d?f.mappingmethod="linear":(f.mappingmethod="category",f.loop=!0);var p=new h(f);return p.__drcolormappingby=d,p}}}function u(t,e){var i=t.get(e);return p(i)&&i.length?{name:e,range:i}:null}function c(t,e,i,n,o,a){var r=f.extend({},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 h=i(82),d=i(22),f=i(1),p=f.isarray,g="itemstyle.normal";t.exports=function(t,e,i){var o={maintype:"series",subtype:"treemap",query:i};t.eachcomponent(o,function(t){var e=t.getdata().tree,i=e.root,o=t.getmodel(g);if(!i.isremoved()){var a=f.map(e.levelmodels,function(t){return t?t.get(g):null});n(i,{},a,o,t.getviewroot().getancestors(),t)}})}},function(t,e,i){"use strict";i(236),i(353)},function(t,e,i){"use strict";function n(t,e,i,n){var o=t.coordtopoint([e,n]),a=t.coordtopoint([i,n]);return{x1:o[0],y1:o[1],x2:a[0],y2:a[1]}}var o=i(1),a=i(3),r=i(10),s=["axisline","axislabel","axistick","splitline","splitarea"];i(41).extend({type:"angleaxis",axispointerclass:"polaraxispointer",render:function(t,e){if(this.group.removeall(),t.get("show")){var i=t.axis,n=i.polar,a=n.getradiusaxis().getextent(),r=i.gettickscoords();"category"!==i.type&&r.pop(),o.each(s,function(e){!t.get(e+".show")||i.scale.isblank()&&"axisline"!==e||this["_"+e](t,n,r,a)},this)}},_axisline:function(t,e,i,n){var o=t.getmodel("axisline.linestyle"),r=new a.circle({shape:{cx:e.cx,cy:e.cy,r:n[1]},style:o.getlinestyle(),z2:1,silent:!0});r.style.fill=null,this.group.add(r)},_axistick:function(t,e,i,r){var s=t.getmodel("axistick"),l=(s.get("inside")?-1:1)*s.get("length"),u=o.map(i,function(t){return new a.line({shape:n(e,r[1],r[1]+l,t)})});this.group.add(a.mergepath(u,{style:o.defaults(s.getmodel("linestyle").getlinestyle(),{stroke:t.get("axisline.linestyle.color")})}))},_axislabel:function(t,e,i,n){for(var o=t.axis,s=t.get("data"),l=t.getmodel("axislabel"),u=l.getmodel("textstyle"),c=t.getformattedlabels(),h=l.get("margin"),d=o.getlabelscoords(),f=0;fm?"left":"right",x=math.abs(g[1]-v)/p<.3?"middle":g[1]>v?"top":"bottom",_=u;s&&s[f]&&s[f].textstyle&&(_=new r(s[f].textstyle,u)),this.group.add(new a.text({style:{x:g[0],y:g[1],fill:_.gettextcolor()||t.get("axisline.linestyle.color"),text:c[f],textalign:y,textverticalalign:x,textfont:_.getfont()},silent:!0}))}},_splitline:function(t,e,i,r){var s=t.getmodel("splitline"),l=s.getmodel("linestyle"),u=l.get("color"),c=0;u=u instanceof array?u:[u];for(var h=[],d=0;dx?"left":"right",f=math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalalign:f}}var o=i(7),a=i(118),r=i(3),s=i(75),l=i(16),u=i(40),c=i(41),h=a.extend({makeeloption:function(t,e,i,a,r){var l=i.axis;"angle"===l.dim&&(this.animationthreshold=math.pi/18);var u,c=l.polar,h=c.getotheraxis(l),f=h.getextent();u=l["datato"+o.capitalfirst(l.dim)](e);var p=a.get("type");if(p&&"none"!==p){var g=s.buildelstyle(a),m=d[p](l,c,u,f,g);m.style=g,t.graphickey=m.type,t.pointer=m}var v=a.get("label.margin"),y=n(e,i,a,c,v);s.buildlabeleloption(t,i,a,r,y)}}),d={line:function(t,e,i,n,o){return"angle"===t.dim?{type:"line",shape:s.makelineshape(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=t.getbandwidth(),r=math.pi/180;return"angle"===t.dim?{type:"sector",shape:s.makesectorshape(e.cx,e.cy,n[0],n[1],(-i-a/2)*r,(-i+a/2)*r)}:{type:"sector",shape:s.makesectorshape(e.cx,e.cy,i-a/2,i+a/2,0,2*math.pi)}}};c.registeraxispointerclass("polaraxispointer",h),t.exports=h},function(t,e,i){"use strict";function n(t){return t.ishorizontal()?0:1}function o(t,e){var i=t.getrect();return[i[c[e]],i[c[e]]+i[h[e]]]}var a=i(3),r=i(118),s=i(75),l=i(248),u=i(41),c=["x","y"],h=["width","height"],d=r.extend({makeeloption:function(t,e,i,a,r){var u=i.axis,c=u.coordinatesystem,h=o(c,1-n(u)),d=c.datatopoint(e)[0],p=a.get("type");if(p&&"none"!==p){var g=s.buildelstyle(a),m=f[p](u,d,h,g);m.style=g,t.graphickey=m.type,t.pointer=m}var v=l.layout(i);s.buildcartesiansinglelabeleloption(e,t,v,i,a,r)},gethandletransform:function(t,e,i){var n=l.layout(e,{labelinside:!1});return n.labelmargin=i.get("handle.margin"),{position:s.gettransformedposition(e.axis,t,n),rotation:n.rotation+(n.labeldirection<0?math.pi:0)}},updatehandletransform:function(t,e,i,a){var r=i.axis,s=r.coordinatesystem,l=n(r),u=o(s,l),c=t.position;c[l]+=e[l],c[l]=math.min(u[1],c[l]),c[l]=math.max(u[0],c[l]);var h=o(s,1-l),d=(h[1]+h[0])/2,f=[d,d];return f[l]=c[l],{position:c,rotation:t.rotation,cursorpoint:f,tooltipoption:{verticalalign:"middle"}}}}),f={line:function(t,e,i,o){var r=s.makelineshape([e,i[0]],[e,i[1]],n(t));return a.subpixeloptimizeline({shape:r,style:o}),{type:"line",shape:r}},shadow:function(t,e,i,o){var a=t.getbandwidth(),r=i[1]-i[0];return{type:"rect",shape:s.makerectshape([e-a/2,i[0]],[a,r],n(t))}}};u.registeraxispointerclass("singleaxispointer",d),t.exports=d},function(t,e,i){i(2).registerpreprocessor(i(364)),i(366),i(361),i(362),i(363),i(385)},function(t,e,i){function n(t,e){return a.merge({brushtype:t.brushtype,brushmode:t.brushmode,transformable:t.transformable,brushstyle:new s(t.brushstyle).getitemstyle(),removeonclick:t.removeonclick,z:t.z},e,!0)}var o=i(2),a=i(1),r=i(187),s=i(10),l=["#ddd"],u=o.extendcomponentmodel({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&&r.replacevisualoption(i,t,["inbrush","outofbrush"]),i.inbrush=i.inbrush||{},i.outofbrush=i.outofbrush||{color:l}},setareas:function(t){t&&(this.areas=a.map(t,function(t){return n(this.option,t)},this))},setbrushoption:function(t){this.brushoption=n(this.option,t),this.brushtype=this.brushoption.brushtype}});t.exports=u},function(t,e,i){function n(t,e,i,n){(!n||n.$from!==t.id)&&this._brushcontroller.setpanels(t.brushtargetmanager.makepanelopts(i)).enablebrush(t.brushoption).updatecovers(t.areas.slice())}var o=i(1),a=i(126),r=i(2);t.exports=r.extendcomponentview({type:"brush",init:function(t,e){this.ecmodel=t,this.api=e,this.model,(this._brushcontroller=new a(e.getzr())).on("brush",o.bind(this._onbrush,this)).mount()},render:function(t){return this.model=t,n.apply(this,arguments)},updateview:n,updatelayout:n,updatevisual:n,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:o.clone(t),$from:i})}})},function(t,e,i){var n=i(2);n.registeraction({type:"brush",event:"brush",update:"updateview"},function(t,e){e.eachcomponent({maintype:"brush",query:t},function(e){e.setareas(t.areas)})}),n.registeraction({type:"brushselect",event:"brushselected",update:"none"},function(){})},function(t,e,i){function n(t){var e={};o.each(t,function(t){e[t]=1}),t.length=0,o.each(e,function(e,i){t.push(i)})}var o=i(1),a=["rect","polygon","keep","clear"];t.exports=function(t,e){var i=t&&t.brush;if(o.isarray(i)||(i=i?[i]:[]),i.length){var r=[];o.each(i,function(t){var e=t.hasownproperty("toolbox")?t.toolbox:[];e instanceof array&&(r=r.concat(e))});var s=t&&t.toolbox;o.isarray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,r),n(c),e&&!c.length&&c.push.apply(c,a)}}},function(t,e,i){function n(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){var a=n.range,r=e[t];return o(r,a)},rect:function(n,a,r){var s=r.range,l=[n[e[t]],n[e[t]]+n[i[t]]];return l[1]1)return!1;var d=l(i-t,o-t,n-e,a-e)/c;return!(d<0||d>1)}function s(t){return t<=1e-6&&t>=-1e-6}function l(t,e,i,n){return t*n-e*i}var u=i(267).contain,c=i(11),h={linex:n(0),liney:n(1),rect:{point:function(t,e,i){return i.boundingrect.contain(t[0],t[1])},rect:function(t,e,i){return i.boundingrect.intersect(t)}},polygon:{point:function(t,e,i){return i.boundingrect.contain(t[0],t[1])&&u(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(n.length<=1)return!1;var o=t.x,r=t.y,s=t.width,l=t.height,h=n[0];return!!(u(n,o,r)||u(n,o+s,r)||u(n,o,r+l)||u(n,o+s,r+l)||c.create(t).contain(h[0],h[1])||a(o,r,o+s,r,n)||a(o,r,o,r+l,n)||a(o+s,r,o+s,r+l,n)||a(o,r+l,o+s,r+l,n))||void 0}}};t.exports=h},function(t,e,i){function n(t,e,i,n,a){if(a){var r=t.getzr();if(!r[x]){r[y]||(r[y]=o);var s=g.createorupdate(r,y,i,e);s(t,n)}}}function o(t,e){if(!t.isdisposed()){var i=t.getzr();i[x]=!0,t.dispatchaction({type:"brushselect",batch:e}),i[x]=!1}}function a(t,e,i,n){for(var o=0,a=e.length;oe[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&u(e)}}},function(t,e,i){"use strict";i(393),i(394),i(368)},function(t,e,i){"use strict";var n=i(1),o=i(3),a=i(7),r=i(4),s={en:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],cn:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},l={en:["s","m","t","w","t","f","s"],cn:["日","一","二","三","四","五","六"]};t.exports=i(2).extendcomponentview({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.gethandledrangeinfo(),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,a=t.getmodel("itemstyle.normal").getitemstyle(),r=n.getcellwidth(),s=n.getcellheight(),l=e.start.time;l<=e.end.time;l=n.getnextnday(l,1).time){var u=n.datatorect([l],!0).tl,c=new o.rect({shape:{x:u[0],y:u[1],width:r,height:s},style:a});i.add(c)}},_renderlines:function(t,e,i,n){function o(e){a._firstdayofmonth.push(r.getdateinfo(e)),a._firstdaypoints.push(r.datatorect([e],!0).tl);var o=a._getlinepointsofoneweek(t,e,i);a._tlpoints.push(o[0]),a._blpoints.push(o[o.length-1]),l&&a._drawsplitline(o,s,n)}var a=this,r=t.coordinatesystem,s=t.getmodel("splitline.linestyle").getlinestyle(),l=t.get("splitline.show"),u=s.linewidth;this._tlpoints=[],this._blpoints=[],this._firstdayofmonth=[],this._firstdaypoints=[];for(var c=e.start,h=0;c.time<=e.end.time;h++){o(c.formateddate),0===h&&(c=r.getdateinfo(e.start.y+"-"+e.start.m));var d=c.date;d.setmonth(d.getmonth()+1),c=r.getdateinfo(d)}o(r.getnextnday(e.end.time,1).formateddate),l&&this._drawsplitline(a._getedgespoints(a._tlpoints,u,i),s,n),l&&this._drawsplitline(a._getedgespoints(a._blpoints,u,i),s,n)},_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 o.polyline({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],!0);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?a.formattplsimple(t,e):"function"==typeof t?t(e):e.namemap},_yeartextpositioncontrol:function(t,e,i,n){t=t.slice();var o=["center","bottom"];"top"===i&&(t[1]-=n),"bottom"===i&&(t[1]+=n,o=["center","top"]),"left"===i&&(t[0]-=n),"right"===i&&(t[0]+=n,o=["center","top"]);var a=0;return"left"!==i&&"right"!==i||(a=math.pi/2),{rotation:a,origin:t,style:{x:t[0],y:t[1],textalign:o[0],textverticalalign:o[1]}}},_renderyeartext:function(t,e,i,a){var r=t.getmodel("yearlabel");if(r.get("show")){var s=t.getmodel("yearlabel.textstyle"),l=r.get("margin"),u=r.get("position");u||(u="horizontal"!==i?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(c[0][0]+c[1][0])/2,d=(c[0][1]+c[1][1])/2,f="horizontal"===i?0:1,p={top:[h,c[f][1]],bottom:[h,c[1-f][1]],left:[c[1-f][0],d],right:[c[f][0],d]},g=e.start.y;+e.end.y>+e.start.y&&(g=g+"-"+e.end.y);var m=r.get("formatter"),v={start:e.start.y,end:e.end.y,namemap:g},y=this._formatterlabel(m,v),x=new o.text(n.merge({z2:30,style:{text:y,font:s.getfont(),fill:s.gettextcolor()}},this._yeartextpositioncontrol(p[u],i,u,l)));a.add(x)}},_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 a=t.getmodel("monthlabel");if(a.get("show")){var r=t.getmodel("monthlabel.textstyle"),l=a.get("namemap"),u=a.get("margin"),c=a.get("position"),h=a.get("align"),d=[this._tlpoints,this._blpoints];n.isstring(l)&&(l=s[l.touppercase()]||[]);var f="start"===c?0:1,p="horizontal"===e?0:1;u="start"===c?-u:u;for(var g="center"===h,m=0;m=0||"+"===i?"left":"right"},s={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:b/2},u="vertical"===o?a.height:a.width,c=t.getmodel("controlstyle"),h=c.get("show"),d=h?c.get("itemsize"):0,f=h?c.get("itemgap"):0,p=d+f,g=t.get("label.normal.rotate")||0;g=g*b/180;var m,v,y,x,_=c.get("position",!0),h=c.get("show",!0),w=h&&c.get("showplaybtn",!0),s=h&&c.get("showprevbtn",!0),m=h&&c.get("shownextbtn",!0),i=0,t=u;return"left"===_||"bottom"===_?(w&&(m=[0,0],i+=p),s&&(v=[i,0],i+=p),m&&(y=[t-d,0],t-=p)):(w&&(m=[t-d,0],t-=p),s&&(v=[0,0],i+=p),m&&(y=[t-d,0],t-=p)),x=[i,t],t.get("inverse")&&x.reverse(),{viewrect:a,mainlength:u,orient:o,rotation:l[o],labelrotation:g,labelposopt:i,labelalign:r[o],labelbaseline:s[o],playposition:m,prevbtnposition:v,nextbtnposition:y,axisextent:x,controlsize:d,controlgap:f}},_position:function(t,e){function i(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function o(t,e,i,n,o){t[n]+=i[n][o]-e[n][o]}var a=this._maingroup,r=this._labelgroup,s=t.viewrect;if("vertical"===t.orient){var l=g.create(),u=s.x,c=s.y+s.height;g.translate(l,l,[-u,-c]),g.rotate(l,l,-b/2),g.translate(l,l,[u,c]),s=s.clone(),s.applytransform(l)}var h=n(s),d=n(a.getboundingrect()),f=n(r.getboundingrect()),p=a.position,m=r.position;m[0]=p[0]=h[0][0];var v=t.labelposopt;if(isnan(v)){var y="+"===v?0:1;o(p,d,h,1,y),o(m,f,h,1,1-y)}else{var y=v>=0?0:1;o(p,d,h,1,y),m[1]=p[1]+v}a.attr("position",p),r.attr("position",m),a.rotation=r.rotation=t.rotation,i(a),i(r)},_createaxis:function(t,e){var i=e.getdata(),n=e.get("axistype"),o=f.createscalebymodel(e,n),a=i.getdataextent("value");o.setextent(a[0],a[1]),this._customizescale(o,i),o.niceticks();var r=new h("value",o,t.axisextent,n);return r.model=e,r},_customizescale:function(t,e){t.getticks=function(){return e.maparray(["value"],function(t){return t})},t.gettickslabels=function(){return s.map(this.getticks(),t.getlabel,t)}},_creategroup:function(t){var e=this["_"+t]=new l.group;return this.group.add(e),e},_renderaxisline:function(t,e,i,n){var o=i.getextent();n.get("linestyle.show")&&e.add(new l.line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:s.extend({linecap:"round"},n.getmodel("linestyle").getlinestyle()),silent:!0,z2:1}))},_renderaxistick:function(t,e,i,n){var o=n.getdata(),r=i.scale.getticks();_(r,function(t,r){var s=i.datatocoord(t),u=o.getitemmodel(r),c=u.getmodel("itemstyle.normal"),h=u.getmodel("itemstyle.emphasis"),d={position:[s,0],onclick:x(this._changetimeline,this,r)},f=a(u,c,e,d);l.sethoverstyle(f,h.getitemstyle()),u.get("tooltip")?(f.dataindex=r,f.datamodel=n):f.dataindex=f.datamodel=null},this)},_renderaxislabel:function(t,e,i,n){var o=n.getmodel("label.normal");if(o.get("show")){var a=n.getdata(),r=i.scale.getticks(),s=f.getformattedlabels(i,o.get("formatter")),u=i.getlabelinterval();_(r,function(n,o){if(!i.islabelignored(o,u)){var r=a.getitemmodel(o),c=r.getmodel("label.normal.textstyle"),h=r.getmodel("label.emphasis.textstyle"),d=i.datatocoord(n),f=new l.text({style:{text:s[o],textalign:t.labelalign,textverticalalign:t.labelbaseline,textfont:c.getfont(),fill:c.gettextcolor()},position:[d,0],rotation:t.labelrotation-t.rotation,onclick:x(this._changetimeline,this,o),silent:!1});e.add(f),l.sethoverstyle(f,h.getitemstyle())}},this)}},_rendercontrol:function(t,e,i,n){function a(t,i,a,d){if(t){var f={position:t,origin:[r/2,0],rotation:d?-s:0,recthover:!0,style:u,onclick:a},p=o(n,i,h,f);e.add(p),l.sethoverstyle(p,c)}}var r=t.controlsize,s=t.rotation,u=n.getmodel("controlstyle.normal").getitemstyle(),c=n.getmodel("controlstyle.emphasis").getitemstyle(),h=[0,-r/2,r,r],d=n.getplaystate(),f=n.get("inverse",!0);a(t.nextbtnposition,"controlstyle.nexticon",x(this._changetimeline,this,f?"-":"+")),a(t.prevbtnposition,"controlstyle.previcon",x(this._changetimeline,this,f?"+":"-")),a(t.playposition,"controlstyle."+(d?"stopicon":"playicon"),x(this._handleplayclick,this,!d),!0)},_rendercurrentpointer:function(t,e,i,n){var o=n.getdata(),s=n.getcurrentindex(),l=o.getitemmodel(s).getmodel("checkpointstyle"),u=this,c={oncreate:function(t){t.draggable=!0,t.drift=x(u._handlepointerdrag,u),t.ondragend=x(u._handlepointerdragend,u),r(t,s,i,n,!0)},onupdate:function(t){r(t,s,i,n)}};this._currentpointer=a(l,l,this._maingroup,{},this._currentpointer,c)},_handleplayclick:function(t){this._cleartimer(),this.api.dispatchaction({type:"timelineplaychange",playstate:t,from:this.uid})},_handlepointerdrag:function(t,e,i){this._cleartimer(),this._pointerchangetimeline([i.offsetx,i.offsety])},_handlepointerdragend:function(t){this._pointerchangetimeline([t.offsetx,t.offsety],!0)},_pointerchangetimeline:function(t,e){var i=this._toaxiscoord(t)[0],n=this._axis,o=m.asc(n.getextent().slice());i>o[1]&&(i=o[1]),i=e&&(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,n=this._names=[];if("category"===i){var s=[];a.each(e,function(t,e){var i,o=r.getdataitemvalue(t);a.isobject(t)?(i=a.clone(t),i.value=e):i=e,s.push(i),a.isstring(o)||null!=o&&!isnan(o)||(o=""),n.push(o+"")}),e=s}var l={category:"ordinal",time:"time"}[i]||"number",u=this._data=new o([{name:"value",type:l}],this);u.initdata(e,n)},getdata:function(){return this._data},getcategories:function(){if("category"===this.get("axistype"))return this._names.slice()}});t.exports=s},function(t,e,i){var n=i(64);t.exports=n.extend({type:"timeline"})},function(t,e,i){function n(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axistype=i[e],delete t.type),o(t),a(t,"controlposition")){var n=t.controlstyle||(t.controlstyle={});a(n,"position")||(n.position=t.controlposition),"none"!==n.position||a(n,"show")||(n.show=!1,delete n.position),delete t.controlposition}r.each(t.data||[],function(t){r.isobject(t)&&!r.isarray(t)&&(!a(t,"value")&&a(t,"name")&&(t.value=t.name),o(t))})}function o(t){var e=t.itemstyle||(t.itemstyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},o=n.normal||(n.normal={}),s={normal:1,emphasis:1};r.each(n,function(t,e){s[e]||a(o,e)||(o[e]=t)}),i.label&&!a(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function a(t,e){return t.hasownproperty(e)}var r=i(1);t.exports=function(t){var e=t&&t.timeline;r.isarray(e)||(e=e?[e]:[]),r.each(e,function(t){t&&n(t)})}},function(t,e,i){var n=i(2),o=i(1);n.registeraction({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"),o.defaults({currentindex:i.option.currentindex},t)}),n.registeraction({type:"timelineplaychange",event:"timelineplaychanged",update:"update"},function(t,e){var i=e.getcomponent("timeline");i&&null!=t.playstate&&i.setplaystate(t.playstate)})},function(t,e,i){i(13).registersubtypedefaulter("timeline",function(){return"slider"})},function(t,e,i){"use strict";function n(t,e,i){this.model=t,this.ecmodel=e,this.api=i,this._brushtype,this._brushmode}var o=i(29),a=i(1);n.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:{rect:"矩形选择",polygon:"圈选",linex:"横向选择",liney:"纵向选择",keep:"保持选择",clear:"清除选择"}};var r=n.prototype;r.render=r.updateview=r.updatelayout=function(t,e,i){var n,o,r;e.eachcomponent({maintype:"brush"},function(t){n=t.brushtype,o=t.brushoption.brushmode||"single",r|=t.areas.length}),this._brushtype=n,this._brushmode=o,a.each(t.get("type",!0),function(e){t.seticonstatus(e,("keep"===e?"multiple"===o:"clear"===e?r:e===n)?"emphasis":"normal")})},r.geticons=function(){var t=this.model,e=t.get("icon",!0),i={};return a.each(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},r.onclick=function(t,e,i){var e=this.api,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}})},o.register("brush",n),t.exports=n},function(t,e,i){i(391),i(392)},function(t,e,i){function n(t,e,i){if(i[0]===i[1])return i.slice();for(var n=200,o=(i[1]-i[0])/n,a=i[0],r=[],s=0;s<=n&&ae[1]&&e.reverse(),e[0]=math.max(e[0],t[0]),e[1]=math.min(e[1],t[1]))},completevisualoption:function(){o.prototype.completevisualoption.apply(this,arguments),a.each(this.statelist,function(t){var e=this.option.controller[t].symbolsize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setselected:function(t){this.option.range=t.slice(),this._resetrange()},getselected:function(){var t=this.getextent(),e=r.asc((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(t){var e=[];return this.eachtargetseries(function(i){var n=[],o=i.getdata();o.each(this.getdatadimension(o),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},!0,this),e.push({seriesid:i.id,dataindex:n})},this),e},getvisualmeta:function(t){function e(e,i){a.push({value:e,color:t(e,i)})}for(var i=n(this,"outofrange",this.getextent()),o=n(this,"inrange",this.option.range.slice()),a=[],r=0,s=0,l=o.length,u=i.length;st[1])break;n.push({color:this.getcontrollervisual(r,"color",e),offset:a/i})}return n.push({color:this.getcontrollervisual(t[1],"color",e),offset:1}),n},_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 u.group("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(t,e){if(this._usehandle){var i=this._shapes,n=this.visualmapmodel,o=i.handlethumbs,a=i.handlelabels;y([0,1],function(r){var s=o[r];s.setstyle("fill",e.handlescolor[r]),s.position[1]=t[r];var l=u.applytransform(i.handlelabelpoints[r],u.gettransform(s,this.group));a[r].setstyle({x:l[0],y:l[1],text:n.formatvaluetext(this._datainterval[r]),textverticalalign:"middle",textalign:this._applytransform("horizontal"===this._orient?0===r?"bottom":"top":"left",i.bargroup)})},this)}},_showindicator:function(t,e,i,n){var o=this.visualmapmodel,r=o.getextent(),s=o.itemsize,l=[0,s[1]],c=v(t,r,l,!0),h=this._shapes,d=h.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setshape("points",a(!!i,n,c,s[1]));var f={convertopacitytoalpha:!0},p=this.getcontrollervisual(t,"color",f);d.setstyle("fill",p);var g=u.applytransform(h.indicatorlabelpoint,u.gettransform(d,this.group)),m=h.indicatorlabel;m.attr("invisible",!1);var y=this._applytransform("left",h.bargroup),x=this._orient;m.setstyle({text:(i?i:"")+o.formatvaluetext(e),textverticalalign:"horizontal"===x?y:"middle",textalign:"horizontal"===x?"center":y,x:g[0],y:g[1]})}},_enablehoverlinktoseries:function(){var t=this;this._shapes.bargroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualmapmodel.itemsize,n=t._applytransform([e.offsetx,e.offsety],t._shapes.bargroup,!0,!0);n[1]=x(_(0,n[1]),i[1]),t._dohoverlinktoseries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._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=x(_(o[0],t),o[1]);var l=r(i,a,o),u=[t-l,t+l],c=v(t,o,a,!0),h=[v(u[0],o,a,!0),v(u[1],o,a,!0)];u[0]o[1]&&(h[1]=1/0),e&&(h[0]===-(1/0)?this._showindicator(c,h[1],"< ",l):h[1]===1/0?this._showindicator(c,h[0],"> ",l):this._showindicator(c,c,"≈ ",l));var d=this._hoverlinkdataindices,f=[];(e||s(i))&&(f=this._hoverlinkdataindices=i.findtargetdataindices(h));var m=g.compressbatches(d,f);this._dispatchhighdown("downplay",p.convertdataindex(m[0])),this._dispatchhighdown("highlight",p.convertdataindex(m[1]))}},_hoverlinkfromseriesmouseover:function(t){var e=t.target,i=this.visualmapmodel;if(e&&null!=e.dataindex){var n=this.ecmodel.getseriesbyindex(e.seriesindex);if(i.istargetseries(n)){var o=n.getdata(e.datatype),a=o.getdimension(i.getdatadimension(o)),r=o.get(a,e.dataindex,!0);isnan(r)||this._showindicator(r,r)}}},_hideindicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorlabel&&t.indicatorlabel.attr("invisible",!0)},_clearhoverlinktoseries:function(){this._hideindicator();var t=this._hoverlinkdataindices;this._dispatchhighdown("downplay",p.convertdataindex(t)),t.length=0},_clearhoverlinkfromseries:function(){this._hideindicator();var t=this.api.getzr();t.off("mouseover",this._hoverlinkfromseriesmouseover),t.off("mouseout",this._hideindicator)},_applytransform:function(t,e,i,n){var o=u.gettransform(e,n?null:this.group);return u[c.isarray(t)?"applytransform":"transformdirection"](t,o,i)},_dispatchhighdown:function(t,e){e&&e.length&&this.api.dispatchaction({type:t,batch:e})},dispose:function(){this._clearhoverlinkfromseries(),this._clearhoverlinktoseries()},remove:function(){this._clearhoverlinkfromseries(),this._clearhoverlinktoseries()}});t.exports=s},function(t,e,i){function n(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var o=i(253),a=i(1),r=i(82),s=i(266),l=i(4).reformintervals,u=o.extend({type:"visualmap.piecewise",defaultoption:{selected:null,minopen:!1,maxopen:!1,align:"auto",itemwidth:20,itemheight:14,itemsymbol:"roundrect",piecelist:null,categories:null,splitnumber:5,selectedmode:"multiple",itemgap:10,hoverlink:!0,showlabel:null},optionupdated:function(t,e){u.superapply(this,"optionupdated",arguments),this._piecelist=[],this.resettargetseries(),this.resetextent();var i=this._mode=this._determinemode();c[this._mode].call(this),this._resetselected(t,e);var n=this.option.categories;this.resetvisual(function(t,e){"categories"===i?(t.mappingmethod="category",t.categories=a.clone(n)):(t.dataextent=this.getextent(),t.mappingmethod="piecewise",t.piecelist=a.map(this._piecelist,function(t){var t=a.clone(t);return"inrange"!==e&&(t.visual=null),t}))})},completevisualoption:function(){function t(t,e,i){return t&&t[e]&&(a.isobject(t[e])?t[e].hasownproperty(i):t[e]===i)}var e=this.option,i={},n=r.listvisualtypes(),l=this.iscategory();a.each(e.pieces,function(t){a.each(n,function(e){t.hasownproperty(e)&&(i[e]=1)})}),a.each(i,function(i,n){var o=0;a.each(this.statelist,function(i){o|=t(e,i,n)||t(e.target,i,n)},this),!o&&a.each(this.statelist,function(t){(e[t]||(e[t]={}))[n]=s.get(n,"inrange"===t?"active":"inactive",l)})},this),o.prototype.completevisualoption.apply(this,arguments)},_resetselected:function(t,e){var i=this.option,n=this._piecelist,o=(e?i:t).selected||{};if(i.selected=o,a.each(n,function(t,e){var i=this.getselectedmapkey(t);o.hasownproperty(i)||(o[i]=!0)},this),"single"===i.selectedmode){var r=!1;a.each(n,function(t,e){var i=this.getselectedmapkey(t);o[i]&&(r?o[i]=!1:r=!0)},this)}},getselectedmapkey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getpiecelist:function(){return this._piecelist},_determinemode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitnumber"},setselected:function(t){this.option.selected=a.clone(t)},getvaluestate:function(t){var e=r.findpieceindex(t,this._piecelist);return null!=e&&this.option.selected[this.getselectedmapkey(this._piecelist[e])]?"inrange":"outofrange"},findtargetdataindices:function(t){var e=[];return this.eachtargetseries(function(i){var n=[],o=i.getdata();o.each(this.getdatadimension(o),function(e,i){var o=r.findpieceindex(e,this._piecelist);o===t&&n.push(i)},!0,this),e.push({seriesid:i.id,dataindex:n})},this),e},getrepresentvalue:function(t){var e;if(this.iscategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-(1/0)&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getvisualmeta:function(t){function e(e,a){var r=o.getrepresentvalue({interval:e});a||(a=o.getvaluestate(r));var s=t(r,a);e[0]===-(1/0)?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.iscategory()){var i=[],n=[],o=this,r=this._piecelist.slice();if(r.length){var s=r[0].interval[0];s!==-(1/0)&&r.unshift({interval:[-(1/0),s]}),s=r[r.length-1].interval[1],s!==1/0&&r.push({interval:[s,1/0]})}else r.push({interval:[-(1/0),1/0]});var l=-(1/0);return a.each(r,function(t){var i=t.interval;i&&(i[0]>l&&e([l,i[0]],"outofrange"),e(i.slice()),l=i[1])},this),{stops:i,outercolors:n}}}}),c={splitnumber:function(){var t=this.option,e=this._piecelist,i=t.precision,n=this.getextent(),o=t.splitnumber;o=math.max(parseint(o,10),1),t.splitnumber=o;for(var r=(n[1]-n[0])/o;+r.tofixed(i)!==r&&i<5;)i++;t.precision=i,r=+r.tofixed(i);var s=0;t.minopen&&e.push({index:s++,interval:[-(1/0),n[0]],close:[0,0]});for(var u=n[0],c=s+o;s","≥"][e[0]]];t.text=t.text||this.formatvaluetext(null!=t.value?t.value:t.interval,!1,i)},this)}};t.exports=u},function(t,e,i){var n=i(254),o=i(1),a=i(3),r=i(24),s=i(12),l=i(255),u=n.extend({ type:"visualmap.piecewise",dorender:function(){function t(t){var r=t.piece,s=new a.group;s.onclick=o.bind(this._onitemclick,this,r),this._enablehoverlink(s,t.indexinmodelpiecelist);var d=i.getrepresentvalue(r);if(this._createitemsymbol(s,d,[0,0,h[0],h[1]]),p){var f=this.visualmapmodel.getvaluestate(d);s.add(new a.text({style:{x:"right"===c?-n:h[0]+n,y:h[1]/2,text:r.text,textverticalalign:"middle",textalign:c,textfont:l,fill:u,opacity:"outofrange"===f?.5:1}}))}e.add(s)}var e=this.group;e.removeall();var i=this.visualmapmodel,n=i.get("textgap"),r=i.textstylemodel,l=r.getfont(),u=r.gettextcolor(),c=this._getitemalign(),h=i.itemsize,d=this._getviewdata(),f=d.endstext,p=o.retrieve(i.get("showlabel",!0),!f);f&&this._renderendstext(e,f[0],h,p,c),o.each(d.viewpiecelist,t,this),f&&this._renderendstext(e,f[1],h,p,c),s.box(i.get("orient"),e,i.get("itemgap")),this.renderbackground(e),this.positiongroup(e)},_enablehoverlink:function(t,e){function i(t){var i=this.visualmapmodel;i.option.hoverlink&&this.api.dispatchaction({type:t,batch:l.convertdataindex(i.findtargetdataindices(e))})}t.on("mouseover",o.bind(i,this,"highlight")).on("mouseout",o.bind(i,this,"downplay"))},_getitemalign:function(){var t=this.visualmapmodel,e=t.option;if("vertical"===e.orient)return l.getitemalign(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 r=new a.group,s=this.visualmapmodel.textstylemodel;r.add(new a.text({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textverticalalign:"middle",textalign:n?o:"center",text:e,textfont:s.getfont(),fill:s.gettextcolor()}})),t.add(r)}},_getviewdata:function(){var t=this.visualmapmodel,e=o.map(t.getpiecelist(),function(t,e){return{piece:t,indexinmodelpiecelist:e}}),i=t.get("text"),n=t.get("orient"),a=t.get("inverse");return("horizontal"===n?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewpiecelist:e,endstext:i}},_createitemsymbol:function(t,e,i){t.add(r.createsymbol(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=o.clone(i.selected),a=e.getselectedmapkey(t);"single"===i.selectedmode?(n[a]=!0,o.each(n,function(t,e){n[e]=e===a})):n[a]=!n[a],this.api.dispatchaction({type:"selectdatarange",from:this.uid,visualmapid:this.visualmapmodel.id,selected:n})}});t.exports=u},function(t,e,i){i(2).registerpreprocessor(i(256)),i(257),i(258),i(387),i(388),i(259)},function(t,e,i){i(2).registerpreprocessor(i(256)),i(257),i(258),i(389),i(390),i(259)},function(t,e,i){"use strict";function n(t,e,i){this._model=t}function o(t,e,i,n){var o=i.calendarmodel,a=i.seriesmodel,r=o?o.coordinatesystem:a?a.coordinatesystem:null;return r===this?r[t](n):null}var a=i(12),r=i(4),s=i(1),l=864e5;n.prototype={constructor:n,type:"calendar",dimensions:["time","value"],getdimensionsinfo:function(){return[{name:"time",type:"time"}]},gethandledrangeinfo:function(){return this._rangeinfo},getmodel:function(){return this._model},getrect:function(){return this._rect},getcellwidth:function(){return this._sw},getcellheight:function(){return this._sh},getorient:function(){return this._orient},getfirstdayofweek:function(){return this._firstdayofweek},getdateinfo:function(t){t=r.parsedate(t);var e=t.getfullyear(),i=t.getmonth()+1;i=i<10?"0"+i:i;var n=t.getdate();n=n<10?"0"+n:n;var o=t.getday();return o=math.abs((o+7-this.getfirstdayofweek())%7),{y:e,m:i,d:n,day:o,time:t.gettime(),formateddate:e+"-"+i+"-"+n,date:t}},getnextnday:function(t,e){if(e=e||0,0===e)return this.getdateinfo(t);var i=this.getdateinfo(t).time;return this.getdateinfo(i+l*e)},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstdayofweek=this._model.getmodel("daylabel").get("firstday"),this._orient=this._model.get("orient"),this._linewidth=this._model.getmodel("itemstyle.normal").getitemstyle().linewidth||0,this._rangeinfo=this._getrangeinfo(this._initrangeoption());var n=this._rangeinfo.weeks||1,o=["width","height"],r=this._model.get("cellsize").slice(),l=this._model.getboxlayoutparams(),u="horizontal"===this._orient?[n,7]:[7,n];s.each([0,1],function(t){i(r,t)&&(l[o[t]]=r[t]*u[t])});var c={width:e.getwidth(),height:e.getheight()},h=this._rect=a.getlayoutrect(l,c);s.each([0,1],function(t){i(r,t)||(r[t]=h[o[t]]/u[t])}),this._sw=r[0],this._sh=r[1]},datatopoint:function(t,e){var i=this.getdateinfo(t[0]),n=this._rangeinfo,o=i.formateddate;if(!(e||i.time>=n.start.time&&i.time<=n.end.time))return[nan,nan];var a=i.day,r=this._getrangeinfo([n.start.time,o]).weeks;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+(r-1)*this._sh+this._sh/2]:[this._rect.x+(r-1)*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointtodata:function(t){var e=this.pointtodate(t);return e&&e.time},datatorect:function(t,e){var i=this.datatopoint(t,e);return{contentshape:{x:i[0]-(this._sw-this._linewidth)/2,y:i[1]-(this._sh-this._linewidth)/2,width:this._sw-this._linewidth,height:this._sh-this._linewidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointtodate:function(t){var e=math.floor((t[0]-this._rect.x)/this._sw)+1,i=math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeinfo.range;return"vertical"===this._orient?this._getdatebyweeksandday(i,e-1,n):this._getdatebyweeksandday(e,i-1,n)},converttopixel:s.curry(o,"datatopoint"),convertfrompixel:s.curry(o,"pointtodata"),_initrangeoption:function(){var t=this._model.get("range"),e=t;if(s.isarray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getdateinfo(e),n=i.date;n.setmonth(n.getmonth()+1);var o=this.getnextnday(n,-1);t=[i.formateddate,o.formateddate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var a=this._getrangeinfo(t);return a.start.time>a.end.time&&t.reverse(),t},_getrangeinfo:function(t){var e=this.getdateinfo(t[0]),i=this.getdateinfo(t[1]),n=math.floor(i.time/l)-math.floor(e.time/l)+1,o=math.floor((n+e.day+6)/7);return{range:[e.formateddate,i.formateddate],start:e,end:i,allday:n,weeks:o,fweek:e.day,lweek:i.day}},_getdatebyweeksandday:function(t,e,i){var n=this._getrangeinfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var o=7*(t-1)-n.fweek+e,a=n.start.time+o*l;return this.getdateinfo(a)}},n.dimensions=n.prototype.dimensions,n.getdimensionsinfo=n.prototype.getdimensionsinfo,n.create=function(t,e){var i=[];return t.eachcomponent("calendar",function(o){var a=new n(o,t,e);i.push(a),o.coordinatesystem=a}),t.eachseries(function(t){"calendar"===t.get("coordinatesystem")&&(t.coordinatesystem=i[t.get("calendarindex")||0])}),i},i(26).register("calendar",n),t.exports=n},function(t,e,i){"use strict";function n(t,e){var i=t.cellsize;a.isarray(i)?1===i.length&&(i[1]=i[0]):i=t.cellsize=[i,i];var n=a.map([0,1],function(t){return r.sizecalculable(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});r.mergelayoutparam(t,e,{type:"box",ignoresize:n})}var o=i(13),a=i(1),r=i(12),s=o.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:{normal:{color:"#fff",borderwidth:1,bordercolor:"#ccc"}},daylabel:{show:!0,firstday:0,position:"start",margin:"50%",namemap:"en",textstyle:{color:"#000"}},monthlabel:{show:!0,position:"start",margin:5,align:"center",namemap:"en",formatter:null,textstyle:{color:"#000"}},yearlabel:{show:!0,position:null,margin:30,formatter:null,textstyle:{color:"#ccc",fontfamily:"sans-serif",fontweight:"bolder",fontsize:20}}},init:function(t,e,i,o){var a=r.getlayoutparams(t);s.superapply(this,"init",arguments),n(t,a)},mergeoption:function(t,e){s.superapply(this,"mergeoption",arguments),n(this.option,t)}});t.exports=s},function(t,e,i){function n(t,e,i,n,o){l.call(this,t),this.map=e,this._namecoordmap={},this.loadgeojson(i,n,o)}function o(t,e,i,n){var o=i.geomodel,a=i.seriesmodel,r=o?o.coordinatesystem:a?a.coordinatesystem||(a.getreferringcomponents("geo")[0]||{}).coordinatesystem:null;return r===this?r[t](n):null}var a=i(262),r=i(1),s=i(11),l=i(260),u=[i(398),i(399),i(397)];n.prototype={constructor:n,type:"geo",dimensions:["lng","lat"],containcoord:function(t){for(var e=this.regions,i=0;i=0;i--)l.asc(e[i])},getactivestate:function(t){var e=this.activeintervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var i=0,n=e.length;i=i&&a<=i+e.axislength&&r>=n&&r<=n+e.layoutlength},_updateaxesfromseries:function(t,e){e.eachseries(function(i){if(t.contains(i,e)){var n=i.getdata();g(this.dimensions,function(t){var e=this._axesmap[t];e.scale.unionextentfromdata(n,t),l.nicescaleextent(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=s.getlayoutrect(t.getboxlayoutparams(),{width:e.getwidth(),height:e.getheight()}),this._layoutaxes()},getrect:function(){return this._rect},_makelayoutinfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=e.get("layout"),s="horizontal"===r?0:1,l=i[a[s]],u=[0,l],c=this.dimensions.length,h=o(e.get("axisexpandwidth"),u),d=o(e.get("axisexpandcount")||0,[0,c]),f=e.get("axisexpandable")&&c>3&&c>d&&d>1&&h>0&&l>0,p=e.get("axisexpandwindow");if(p)t=o(p[1]-p[0],u),p[1]=p[0]+t;else{t=o(h*(d-1),u);var g=e.get("axisexpandcenter")||y(c/2);p=[h*g-t/2],p[1]=p[0]+t}var m=(l-t)/(c-d);m<3&&(m=0);var v=[y(_(p[0]/h,1))+1,x(_(p[1]/h,1))-1],b=m/h*p[0];return{layout:r,pixeldimindex:s,layoutbase:i[n[s]],layoutlength:l,axisbase:i[n[1-s]],axislength:i[a[1-s]],axisexpandable:f,axisexpandwidth:h,axiscollapsewidth:m,axisexpandwindow:p,axiscount:c,wininnerindices:v,axisexpandwindow0pos:b}},_layoutaxes:function(){var t=this._rect,e=this._axesmap,i=this.dimensions,n=this._makelayoutinfo(),o=n.layout;g(e,function(t){var e=[0,n.axislength],i=t.inverse?1:0;t.setextent(e[i],e[1-i])}),g(i,function(e,i){var s=(n.axisexpandable?r:a)(i,n),l={horizontal:{x:s.position,y:n.axislength},vertical:{x:0,y:s.position}},u={horizontal:b/2,vertical:0},c=[l[o].x+t.x,l[o].y+t.y],h=u[o],f=d.create();d.rotate(f,f,h),d.translate(f,f,c),this._axeslayout[e]={position:c,rotation:h,transform:f,axisnameavailablewidth:s.axisnameavailablewidth,axislabelshow:s.axislabelshow,nametruncatemaxwidth:s.nametruncatemaxwidth,tickdirection:1,labeldirection:1}},this)},getaxis:function(t){return this._axesmap[t]},datatopoint:function(t,e){return this.axiscoordtopoint(this._axesmap[e].datatocoord(t),e)},eachactivestate:function(t,e,i){for(var n=this.dimensions,o=this._axesmap,a=this.hasaxisbrushed(),r=0,s=t.count();ro*(1-c[0])?(l="jump",r=s-o*(1-c[2])):(r=s-o*c[1])>=0&&(r=s-o*(1-c[1]))<=0&&(r=0),r*=e.axisexpandwidth/u,r?p(r,n,a,"rigid"):l="none";else{var o=n[1]-n[0],d=a[1]*s/o;n=[v(0,d-o/2)],n[1]=m(a[1],n[0]+o),n[0]=n[1]-o}return{axisexpandwindow:n,behavior:l}}},t.exports=n},function(t,e,i){var n=i(1),o=i(33),a=function(t,e,i,n,a){o.call(this,t,e,i),this.type=n||"value",this.axisindex=a};a.prototype={constructor:a,model:null},n.inherits(a,o),t.exports=a},function(t,e,i){var n=i(1),o=i(13);i(400),o.extend({type:"parallel",dependencies:["parallelaxis"],coordinatesystem:null,dimensions:null,parallelaxisindex:null,layoutmode:"box",defaultoption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisexpandable:!1,axisexpandcenter:null,axisexpandcount:0,axisexpandwidth:50,axisexpandrate:17,axisexpanddebounce:50,axisexpandslidetriggerarea:[-.15,.05,.4],axisexpandtriggeron:"click",parallelaxisdefault:null},init:function(){o.prototype.init.apply(this,arguments),this.mergeoption({})},mergeoption:function(t){var e=this.option;t&&n.merge(e,t,!0),this._initdimensions()},contains:function(t,e){var i=t.get("parallelindex");return null!=i&&e.getcomponent("parallel",i)===this},setaxisexpand:function(t){n.each(["axisexpandable","axisexpandcenter","axisexpandcount","axisexpandwidth","axisexpandwindow"],function(e){t.hasownproperty(e)&&(this.option[e]=t[e])},this)},_initdimensions:function(){var t=this.dimensions=[],e=this.parallelaxisindex=[],i=n.filter(this.dependentmodels.parallelaxis,function(t){return t.get("parallelindex")===this.componentindex});n.each(i,function(i){t.push("dim"+i.get("dim")),e.push(i.componentindex)})}})},function(t,e,i){function n(t){if(!t.parallel){var e=!1;a.each(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function o(t){var e=r.normalizetoarray(t.parallelaxis);a.each(e,function(e){if(a.isobject(e)){var i=e.parallelindex||0,n=r.normalizetoarray(t.parallel)[i];n&&n.parallelaxisdefault&&a.merge(e,n.parallelaxisdefault,!1)}})}var a=i(1),r=i(6);t.exports=function(t){n(t),o(t)}},function(t,e,i){"use strict";function n(t,e){e=e||[0,360],a.call(this,"angle",t,e),this.type="category"}var o=i(1),a=i(33);n.prototype={constructor:n,pointtodata:function(t,e){return this.polar.pointtodata(t,e)["radius"===this.dim?0:1]},datatoangle:a.prototype.datatocoord,angletodata:a.prototype.coordtodata},o.inherits(n,a),t.exports=n},function(t,e,i){"use strict";function n(t,e){return e.type||(e.data?"category":"value")}var o=i(1),a=i(13),r=i(58),s=a.extend({type:"polaraxis",axis:null,getcoordsysmodel:function(){return this.ecmodel.querycomponents({maintype:"polar",index:this.option.polarindex,id:this.option.polarid})[0]}});o.merge(s.prototype,i(42));var l={angle:{startangle:90,clockwise:!0,splitnumber:12,axislabel:{rotate:!1}},radius:{splitnumber:5}};r("angle",s,n,l.angle),r("radius",s,n,l.radius)},function(t,e,i){"use strict";var n=i(409),o=i(405),a=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusaxis=new n,this._angleaxis=new o,this._radiusaxis.polar=this._angleaxis.polar=this};a.prototype={type:"polar",axispointerenabled:!0,constructor:a,dimensions:["radius","angle"],model:null,containpoint:function(t){var e=this.pointtocoord(t);return this._radiusaxis.contain(e[0])&&this._angleaxis.contain(e[1])},containdata:function(t){return this._radiusaxis.containdata(t[0])&&this._angleaxis.containdata(t[1])},getaxis:function(t){return this["_"+t+"axis"]},getaxes:function(){return[this._radiusaxis,this._angleaxis]},getaxesbyscale:function(t){var e=[],i=this._angleaxis,n=this._radiusaxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getangleaxis:function(){return this._angleaxis},getradiusaxis:function(){return this._radiusaxis},getotheraxis:function(t){var e=this._angleaxis;return t===e?this._radiusaxis:e},getbaseaxis:function(){return this.getaxesbyscale("ordinal")[0]||this.getaxesbyscale("time")[0]||this.getangleaxis()},gettooltipaxes:function(t){var e=null!=t&&"auto"!==t?this.getaxis(t):this.getbaseaxis();return{baseaxes:[e],otheraxes:[this.getotheraxis(e)]}},datatopoints:function(t){return t.maparray(this.dimensions,function(t,e){return this.datatopoint([t,e])},this)},datatopoint:function(t,e){return this.coordtopoint([this._radiusaxis.datatoradius(t[0],e),this._angleaxis.datatoangle(t[1],e)])},pointtodata:function(t,e){var i=this.pointtocoord(t);return[this._radiusaxis.radiustodata(i[0],e),this._angleaxis.angletodata(i[1],e)]},pointtocoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getangleaxis(),o=n.getextent(),a=math.min(o[0],o[1]),r=math.max(o[0],o[1]);n.inverse?a=r-360:r=a+360;var s=math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=math.atan2(-i,e)/math.pi*180,u=lr;)l+=360*u;return[s,l]},coordtopoint:function(t){var e=t[0],i=t[1]/180*math.pi,n=math.cos(i)*e+this.cx,o=-math.sin(i)*e+this.cy;return[n,o]}},t.exports=a},function(t,e,i){"use strict";i(406),i(2).extendcomponentmodel({type:"polar",dependencies:["polaraxis","angleaxis"],coordinatesystem:null,findaxismodel:function(t){var e,i=this.ecmodel;return i.eachcomponent(t,function(t){t.getcoordsysmodel()===this&&(e=t)},this),e},defaultoption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(t,e,i){"use strict";function n(t,e){a.call(this,"radius",t,e),this.type="category"}var o=i(1),a=i(33);n.prototype={constructor:n,pointtodata:function(t,e){return this.polar.pointtodata(t,e)["radius"===this.dim?0:1]},datatoradius:a.prototype.datatocoord,radiustodata:a.prototype.coordtodata},o.inherits(n,a),t.exports=n},function(t,e,i){function n(t,e,i){a.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}var o=i(1),a=i(33);o.inherits(n,a),t.exports=n},function(t,e,i){function n(t,e,i){this._model=t,this.dimensions=[],this._indicatoraxes=o.map(t.getindicatormodels(),function(t,e){var i="indicator_"+e,n=new a(i,new r);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.startangle}var o=i(1),a=i(410),r=i(43),s=i(4),l=i(18);n.prototype.getindicatoraxes=function(){return this._indicatoraxes},n.prototype.datatopoint=function(t,e){var i=this._indicatoraxes[e];return this.coordtopoint(i.datatocoord(t),e)},n.prototype.coordtopoint=function(t,e){var i=this._indicatoraxes[e],n=i.angle,o=this.cx+t*math.cos(n),a=this.cy-t*math.sin(n);return[o,a]},n.prototype.pointtodata=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=math.sqrt(e*e+i*i);e/=n,i/=n;for(var o,a=math.atan2(-i,e),r=1/0,s=-1,l=0;ln[0]&&isfinite(f)&&isfinite(n[0]))}else{var p=a.getticks().length-1;p>r&&(h=i(h));var g=math.round((n[0]+n[1])/2/h)*h,m=math.round(r/2);a.setextent(s.round(g-m*h),s.round(g+(r-m)*h)),a.setinterval(h)}})},n.dimensions=[],n.create=function(t,e){var i=[];return t.eachcomponent("radar",function(o){var a=new n(o,t,e);i.push(a),o.coordinatesystem=a}),t.eachseriesbytype("radar",function(t){"radar"===t.get("coordinatesystem")&&(t.coordinatesystem=i[t.get("radarindex")||0])}),i},i(26).register("radar",n),t.exports=n},function(t,e,i){function n(t,e){return s.defaults({show:e},t)}var o=i(94),a=o.valueaxis,r=i(10),s=i(1),l=i(42),u=i(2).extendcomponentmodel({type:"radar",optionupdated:function(){var t=this.get("boundarygap"),e=this.get("splitnumber"),i=this.get("scale"),n=this.get("axisline"),o=this.get("axistick"),a=this.get("axislabel"),u=this.get("name.textstyle"),c=this.get("name.show"),h=this.get("name.formatter"),d=this.get("namegap"),f=this.get("triggerevent"),p=s.map(this.get("indicator")||[],function(p){if(null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0),p=s.merge(s.clone(p),{boundarygap:t,splitnumber:e,scale:i,axisline:n,axistick:o,axislabel:a,name:p.text,namelocation:"end",namegap:d,nametextstyle:u,triggerevent:f},!1),c||(p.name=""),"string"==typeof h){var g=p.name;p.name=h.replace("{value}",null!=g?g:"")}else"function"==typeof h&&(p.name=h(p.name,p));var m=s.extend(new r(p,null,this.ecmodel),l);return m.maintype="radar",m.componentindex=this.componentindex,m},this);this.getindicatormodels=function(){return p}},defaultoption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startangle:90,name:{show:!0},boundarygap:[0,0],splitnumber:5,namegap:15,scale:!1,shape:"polygon",axisline:s.merge({linestyle:{color:"#bbb"}},a.axisline),axislabel:n(a.axislabel,!1),axistick:n(a.axistick,!1),splitline:n(a.splitline,!0),splitarea:n(a.splitarea,!0),indicator:[]}});t.exports=u},function(t,e,i){function n(t,e){return e.type||(e.data?"category":"value")}var o=i(13),a=i(58),r=i(1),s=o.extend({type:"singleaxis",layoutmode:"box",axis:null,coordinatesystem:null,getcoordsysmodel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisline:{show:!0,linestyle:{width:2,type:"solid"}},tooltip:{show:!0},axistick:{show:!0,length:6,linestyle:{width:2}},axislabel:{show:!0,interval:"auto"},splitline:{show:!0,linestyle:{type:"dashed",opacity:.2}}};r.merge(s.prototype,i(42)),a("single",s,n,l),t.exports=s},function(t,e,i){function n(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}var o=i(415),a=i(18),r=i(12);n.prototype={type:"singleaxis",axispointerenabled:!0,constructor:n,_init:function(t,e,i){var n=this.dimension,r=new o(n,a.createscalebymodel(t),[0,0],t.get("type"),t.get("position")),s="category"===r.type;r.onband=s&&t.get("boundarygap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinatesystem=this,this._axis=r},update:function(t,e){t.eachseries(function(t){if(t.coordinatesystem===this){var e=t.getdata(),i=this.dimension;this._axis.scale.unionextentfromdata(e,t.coorddimtodatadim(i)),a.nicescaleextent(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=r.getlayoutrect({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getwidth(),height:e.getheight()}),this._adjustaxis()},getrect:function(){return this._rect},_adjustaxis:function(){var t=this._rect,e=this._axis,i=e.ishorizontal(),n=i?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setextent(n[o],n[1-o]),this._updateaxistransform(e,i?t.x:t.y)},_updateaxistransform:function(t,e){var i=t.getextent(),n=i[0]+i[1],o=t.ishorizontal();t.toglobalcoord=o?function(t){return t+e}:function(t){return n-t+e},t.tolocalcoord=o?function(t){return t-e}:function(t){return n-t+e}},getaxis:function(){return this._axis},getbaseaxis:function(){return this._axis},getaxes:function(){return[this._axis]},gettooltipaxes:function(){return{baseaxes:[this.getaxis()]}},containpoint:function(t){var e=this.getrect(),i=this.getaxis(),n=i.orient;return"horizontal"===n?i.contain(i.tolocalcoord(t[0]))&&t[1]>=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}},t.exports=n},function(t,e,i){var n=i(1),o=i(33),a=i(18),r=function(t,e,i,n,a){o.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom",this.orient=null,this._labelinterval=null};r.prototype={constructor:r,model:null,ishorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getlabelinterval:function(){var t=this._labelinterval;if(!t){var e=this.model,i=e.getmodel("axislabel"),o=i.get("interval");if("category"!==this.type||"auto"!==o)return t=this._labelinterval="auto"===o?0:o;t=this._labelinterval=a.getaxislabelinterval(n.map(this.scale.getticks(),this.datatocoord,this),e.getformattedlabels(),i.getmodel("textstyle").getfont(),this.ishorizontal())}return t},pointtodata:function(t,e){return this.coordinatesystem.pointtodata(t,e)[0]},toglobalcoord:null,tolocalcoord:null},n.inherits(r,o),t.exports=r},function(t,e,i){function n(t,e){var i=[];return t.eachcomponent("singleaxis",function(n,a){var r=new o(n,t,e);r.name="single_"+a,r.resize(n,e),n.coordinatesystem=r,i.push(r)}),t.eachseries(function(e){if("singleaxis"===e.get("coordinatesystem")){var i=t.querycomponents({maintype:"singleaxis",index:e.get("singleaxisindex"),id:e.get("singleaxisid")})[0];e.coordinatesystem=i&&i.coordinatesystem}}),i}var o=i(414);i(26).register("single",{create:n,dimensions:o.prototype.dimensions})},function(t,e,i){"use strict";function n(t,e){this.id=null==t?"":t,this.inedges=[],this.outedges=[],this.edges=[],this.hostgraph, this.dataindex=null==e?-1:e}function o(t,e,i){this.node1=t,this.node2=e,this.dataindex=null==i?-1:i}var a=i(1),r=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesmap={},this._edgesmap={},this.data,this.edgedata},s=r.prototype;s.type="graph",s.isdirected=function(){return this._directed},s.addnode=function(t,e){t=t||""+e;var i=this._nodesmap;if(!i[t]){var o=new n(t,e);return o.hostgraph=this,this.nodes.push(o),i[t]=o,o}},s.getnodebyindex=function(t){var e=this.data.getrawindex(t);return this.nodes[e]},s.getnodebyid=function(t){return this._nodesmap[t]},s.addedge=function(t,e,i){var a=this._nodesmap,r=this._edgesmap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),t instanceof n||(t=a[t]),e instanceof n||(e=a[e]),t&&e){var s=t.id+"-"+e.id;if(!r[s]){var l=new o(t,e,i);return l.hostgraph=this,this._directed&&(t.outedges.push(l),e.inedges.push(l)),t.edges.push(l),t!==e&&e.edges.push(l),this.edges.push(l),r[s]=l,l}}},s.getedgebyindex=function(t){var e=this.edgedata.getrawindex(t);return this.edges[e]},s.getedge=function(t,e){t instanceof n&&(t=t.id),e instanceof n&&(e=e.id);var i=this._edgesmap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},s.eachnode=function(t,e){for(var i=this.nodes,n=i.length,o=0;o=0&&t.call(e,i[o],o)},s.eachedge=function(t,e){for(var i=this.edges,n=i.length,o=0;o=0&&i[o].node1.dataindex>=0&&i[o].node2.dataindex>=0&&t.call(e,i[o],o)},s.breadthfirsttraverse=function(t,e,i,o){if(e instanceof n||(e=this._nodesmap[e]),e){for(var a="out"===i?"outedges":"in"===i?"inedges":"edges",r=0;r=0&&i.node2.dataindex>=0});for(var o=0,a=n.length;o=0&&this[t][e].setitemvisual(this.dataindex,i,n)},getvisual:function(i,n){return this[t][e].getitemvisual(this.dataindex,i,n)},setlayout:function(i,n){this.dataindex>=0&&this[t][e].setitemlayout(this.dataindex,i,n)},getlayout:function(){return this[t][e].getitemlayout(this.dataindex)},getgraphicel:function(){return this[t][e].getitemgraphicel(this.dataindex)},getrawindex:function(){return this[t][e].getrawindex(this.dataindex)}}};a.mixin(n,l("hostgraph","data")),a.mixin(o,l("hostgraph","edgedata")),r.node=n,r.edge=o,t.exports=r},function(t,e,i){function n(t,e){this.root,this.data,this._nodes=[],this.hostmodel=t,this.levelmodels=a.map(e||[],function(e){return new r(e,t,t.ecmodel)})}function o(t,e){var i=e.children;t.parentnode!==e&&(i.push(t),t.parentnode=e)}var a=i(1),r=i(10),s=i(14),l=i(264),u=i(25),c=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentnode=null,this.dataindex=-1,this.children=[],this.viewchildren=[],this.hosttree=e};c.prototype={constructor:c,isremoved:function(){return this.dataindex<0},eachnode:function(t,e,i){"function"==typeof t&&(i=e,e=t,t=null),t=t||{},a.isstring(t)&&(t={order:t});var n,o=t.order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(n=e.call(i,this));for(var s=0;!n&&se&&(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;e=0&&this.hosttree.data.setitemlayout(this.dataindex,t,e)},getlayout:function(){return this.hosttree.data.getitemlayout(this.dataindex)},getmodel:function(t){if(!(this.dataindex<0)){var e=this.hosttree,i=e.data.getitemmodel(this.dataindex),n=this.getlevelmodel();return i.getmodel(t,(n||e.hostmodel).getmodel(t))}},getlevelmodel:function(){return(this.hosttree.levelmodels||[])[this.depth]},setvisual:function(t,e){this.dataindex>=0&&this.hosttree.data.setitemvisual(this.dataindex,t,e)},getvisual:function(t,e){return this.hosttree.data.getitemvisual(this.dataindex,t,e)},getrawindex:function(){return this.hosttree.data.getrawindex(this.dataindex)},getid:function(){return this.hosttree.data.getid(this.dataindex)}},n.prototype={constructor:n,type:"tree",eachnode:function(t,e,i){this.root.eachnode(t,e,i)},getnodebydataindex:function(t){var e=this.data.getrawindex(t);return this._nodes[e]},getnodebyname:function(t){return this.root.getnodebyname(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i