diff --git a/dist/js/chart.js b/dist/js/chart.js new file mode 100644 index 0000000..0a56339 --- /dev/null +++ b/dist/js/chart.js @@ -0,0 +1 @@ +!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=259)}([function(t,e){var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,u=a.map,h=a.reduce,c={};function d(t){if(null==t||"object"!=typeof t)return t;var e=t,a=r.call(t);if("[object Array]"===a){if(!S(t)){e=[];for(var o=0,s=t.length;o=i.length&&i.push({option:t})}})),i},e.makeIdAndName=function(t){var e=n.createHashMap();a(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),a(t,(function(t,i){var r=t.option;n.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),a(t,(function(t,i){var n=t.exist,r=t.option,a=t.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":n?n.name:"series\0"+i,n)a.id=n.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf("series\0"))},e.isIdInner=u,e.compressBatches=function(t,e){var i={},n={};return r(t||[],i),r(e||[],n,i),[a(i),a(n)];function r(t,e,i){for(var n=0,r=t.length;n0&&t.unfinished);t.unfinished||this._zr.flush()}}},V.getDom=function(){return this._dom},V.getZr=function(){return this._zr},V.setOption=function(t,e,i){if(this._disposed)this.id;else{var n;if(P(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[E]=!0,!this._model||e){var r=new d(this._api),a=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,ot),i?(this.__optionUpdated={silent:n},this[E]=!1):(G(this),W.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this[E]=!1,X.call(this,n),q.call(this,n))}},V.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},V.getModel=function(){return this._model},V.getOption=function(){return this._model&&this._model.getOption()},V.getWidth=function(){return this._zr.getWidth()},V.getHeight=function(){return this._zr.getHeight()},V.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},V.getRenderedCanvas=function(t){if(o.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},V.getSvgDataURL=function(){if(o.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return r.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},V.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,i=this._model,n=[],r=this;k(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return k(n,(function(t){t.group.ignore=!1})),a}this.id},V.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(o.canvasSupported){var e="svg"===t.type,i=this.group,a=Math.min,s=Math.max;if(dt[i]){var l=1/0,u=1/0,h=-1/0,c=-1/0,d=[],f=t&&t.pixelRatio||1;r.each(ct,(function(n,o){if(n.group===i){var f=e?n.getZr().painter.getSvgDom().innerHTML:n.getRenderedCanvas(r.clone(t)),p=n.getDom().getBoundingClientRect();l=a(p.left,l),u=a(p.top,u),h=s(p.right,h),c=s(p.bottom,c),d.push({dom:f,left:p.left,top:p.top})}}));var p=(h*=f)-(l*=f),g=(c*=f)-(u*=f),v=r.createCanvas(),m=n.init(v,{renderer:e?"svg":"canvas"});if(m.resize({width:p,height:g}),e){var y="";return k(d,(function(t){var e=t.left-l,i=t.top-u;y+=''+t.dom+""})),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new _.Rect({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),k(d,(function(t){var e=new _.Image({style:{x:t.left*f-l,y:t.top*f-u,image:t.dom}});m.add(e)})),m.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},V.convertToPixel=r.curry(H,"convertToPixel"),V.convertFromPixel=r.curry(H,"convertFromPixel"),V.containPixel=function(t,e){if(!this._disposed){var i,n=this._model;return t=x.parseFinder(n,t),r.each(t,(function(t,n){n.indexOf("Models")>=0&&r.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}}),this)}),this),!!i}this.id},V.getVisual=function(t,e){var i=this._model,n=(t=x.parseFinder(i,t,{defaultMainType:"series"})).seriesModel.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=r?n.getItemVisual(r,e):n.getVisual(e)},V.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},V.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var W={prepareAndUpdate:function(t){G(this),W.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,s=this._scheduler;if(e){s.restoreData(e,t),s.performSeriesTasks(e),r.create(e,i),s.performDataProcessorTasks(e,t),Y(this,e),r.update(e,i),K(e),s.performVisualTasks(e,t),$(this,e,i,t);var l=e.get("backgroundColor")||"transparent";if(o.canvasSupported)n.setBackgroundColor(l);else{var u=a.parse(l);l=a.stringify(u,"rgb"),0===u[3]&&(l="transparent")}J(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var a=[];e.eachComponent((function(r,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,n,t);l&&l.update&&a.push(s)}else a.push(s)}));var o=r.createHashMap();e.eachSeries((function(r){var a=i._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),K(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),Q(i,e,n,t,o),J(e,this._api)}},updateView:function(t){var e=this._model;e&&(y.markUpdateMethod(t,"updateView"),K(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),$(this,this._model,this._api,t),J(e,this._api))},updateVisual:function(t){W.update.call(this,t)},updateLayout:function(t){W.update.call(this,t)}};function G(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),Z(t,"component",e,i),Z(t,"chart",e,i),i.plan()}function U(t,e,i,n,a){var o=t._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};a&&(l.subType=a);var u=i.excludeSeriesId;null!=u&&(u=r.createHashMap(x.normalizeToArray(u))),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||h(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else k(t._componentsViews.concat(t._chartsViews),h);function h(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}}function Y(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))}function j(t,e){var i=t.type,n=t.escapeConnect,a=nt[i],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&L(s[0]),this[E]=!0;var u=[t],h=!1;t.batch&&(h=!0,u=r.map(t.batch,(function(e){return(e=r.defaults(r.extend({},e),t)).batch=null,e})));var c,d=[],f="highlight"===i||"downplay"===i;k(u,(function(t){(c=(c=a.action(t,this._model,this._api))||r.extend({},t)).type=o.event||c.type,d.push(c),f?U(this,l,t,"series"):s&&U(this,l,t,s.main,s.sub)}),this),"none"===l||f||s||(this.__optionUpdated?(G(this),W.update.call(this,t),this.__optionUpdated=!1):W[l].call(this,t)),c=h?{type:o.event||i,escapeConnect:n,batch:d}:d[0],this[E]=!1,!e&&this._messageCenter.trigger(c.type,c)}function X(t){for(var e=this._pendingActions;e.length;){var i=e.shift();j.call(this,i,t)}}function q(t){!t&&this.trigger("updated")}function Z(t,e,i,n){for(var r="component"===e,a=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;ue.get("hoverLayerThreshold")&&!o.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),S(t._zr.dom,e)}function J(t,e){k(st,(function(i){i(t,e)}))}V.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[E]=!0,i&&G(this),W.update.call(this),this[E]=!1,X.call(this,n),q.call(this,n)}}},V.showLoading=function(t,e){if(this._disposed)this.id;else if(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ht[t]){var i=ht[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},V.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},V.makeActionFromEvent=function(t){var e=r.extend({},t);return e.type=rt[t.type],e},V.dispatchAction=function(t,e){this._disposed?this.id:(P(e)||(e={silent:!!e}),nt[t.type]&&this._model&&(this[E]?this._pendingActions.push(t):(j.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&o.browser.weChat&&this._throttledZrFlush(),X.call(this,e.silent),q.call(this,e.silent))))},V.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},V.on=B("on",!1),V.off=B("off",!1),V.one=B("one",!1);var tt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function et(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 it(){this.eventInfo}V._initEvents=function(){k(tt,(function(t){var e=function(e){var i,n=this.getModel(),a=e.target;if("globalout"===t)i={};else if(a&&null!=a.dataIndex){var o=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=o&&o.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(i=r.extend({},a.eventData));if(i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&n.getComponent(s,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:h},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),k(rt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},V.isDisposed=function(){return this._disposed},V.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},V.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,x.setAttribute(this.getDom(),gt,"");var t=this._api,e=this._model;k(this._componentsViews,(function(i){i.dispose(e,t)})),k(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete ct[this.id]}},r.mixin(F,l),it.prototype={constructor:it,normalizeQuery:function(t){var e={},i={},n={};if(r.isString(t)){var a=L(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var a=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(i[r]=t,a=!0),a||(n[r]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(u,a,"name")&&h(u,a,"dataIndex")&&h(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a));function h(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},afterTrigger:function(){this.eventInfo=null}};var nt={},rt={},at=[],ot=[],st=[],lt=[],ut={},ht={},ct={},dt={},ft=new Date-0,pt=new Date-0,gt="_echarts_instance_";function vt(t){dt[t]=!1}var mt=vt;function yt(t){return ct[x.getAttribute(t,gt)]}function _t(t,e){ut[t]=e}function xt(t){ot.push(t)}function wt(t,e){Mt(at,t,e,1e3)}function bt(t,e,i){"function"==typeof e&&(i=e,e="");var n=P(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,A(z.test(n)&&z.test(e)),nt[n]||(nt[n]={action:i,actionInfo:t}),rt[e]=n}function St(t,e){Mt(lt,t,e,3e3,"visual")}function Mt(t,e,i,n,r){(O(e)||P(e))&&(i=e,e=n);var a=T.wrapStageHandler(i,r);return a.__prio=e,a.__raw=i,t.push(a),a}function Tt(t,e){ht[t]=e}St(2e3,b),xt(f),wt(900,p),Tt("default",M),bt({type:"highlight",event:"highlight",update:"highlight"},r.noop),bt({type:"downplay",event:"downplay",update:"downplay"},r.noop),_t("light",I),_t("dark",C);e.version="4.9.0",e.dependencies={zrender:"4.3.2"},e.PRIORITY=R,e.init=function(t,e,i){var n=yt(t);if(n)return n;var r=new F(t,e,i);return r.id="ec_"+ft++,ct[r.id]=r,x.setAttribute(t,gt,r.id),function(t){var e="__connectUpdateStatus";function i(t,i){for(var n=0;n=10&&e++,e}e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>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])/r*a+i[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var i},e.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},e.asc=function(t){return t.sort((function(t,e){return t-e})),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.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 r=e.indexOf(".");return r<0?0:e.length-1-r},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,i){if(!t[e])return 0;var r=n.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var a=Math.pow(10,i),o=n.map(t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=n.map(o,(function(t){return Math.floor(t)})),u=n.reduce(l,(function(t,e){return t+e}),0),h=n.map(o,(function(t,e){return t-l[e]}));uc&&(c=h[f],d=f);++l[d],h[d]=0,++u}return l[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4},e.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=r.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,a(t))},e.quantityExponent=a,e.nice=function(t,e){var i=a(t),n=Math.pow(10,i),r=t/n;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*n,i>=-20?+t.toFixed(i<0?-i:0):t},e.quantile=function(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],a=i-n;return a?r+a*(t[n]-r):r},e.reformIntervals=function(t){t.sort((function(t,e){return function t(e,i,n){return e.interval[n]=0}},function(t,e,i){var n=i(0),r=i(80),a=i(20),o=i(18),s=i(7),l=i(8),u=i(70),h=i(47);e.Image=h;var c=i(25);e.Group=c;var d=i(50);e.Text=d;var f=i(84);e.Circle=f;var p=i(149);e.Sector=p;var g=i(151);e.Ring=g;var v=i(85);e.Polygon=v;var m=i(87);e.Polyline=m;var y=i(88);e.Rect=y;var _=i(89);e.Line=_;var x=i(154);e.BezierCurve=x;var w=i(155);e.Arc=w;var b=i(156);e.CompoundPath=b;var S=i(52);e.LinearGradient=S;var M=i(157);e.RadialGradient=M;var T=i(11);e.BoundingRect=T;var I=i(158);e.IncrementalDisplayable=I;var C=i(51),D=Math.max,A=Math.min,k={},O=1,P={},L={};function R(t,e){L[t]=e}function E(t,e,i,n){var a=r.createFromString(t,e);return i&&("center"===n&&(i=z(i,a.getBoundingRect())),N(a,i)),a}function z(t,e){var i,n=e.width/e.height,r=t.height*n;return i=r<=t.width?t.height:(r=t.width)/n,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}var B=r.mergePath;function N(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}var F=C.subPixelOptimize;function V(t){return null!=t&&"none"!==t}var H=n.createHashMap(),W=0;function G(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.__zr,n=t.useHoverLayer&&i&&"canvas"===i.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!i&&t.useHoverLayer)){var r=t,a=t.style;n&&(a=(r=i.addHover(t)).style),at(a),n||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var r in e)null!=e[r]&&(i[r]=n[r]);i.fill=n.fill,i.stroke=n.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(r),a.extendFrom(e),U(a,e,"fill"),U(a,e,"stroke"),rt(a),n||(t.dirty(!1),t.z2+=1)}}}function U(t,e,i){!V(e[i])&&V(t[i])&&(t[i]=function(t){if("string"!=typeof t)return t;var e=H.get(t);return e||(e=a.lift(t,-.1),W<1e4&&(H.set(t,e),W++)),e}(t[i]))}function Y(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var i=t.style,n=t.__cachedNormalStl;n&&(at(i),t.setStyle(n),rt(i));var r=t.__cachedNormalZ2;null!=r&&t.z2-r==1&&(t.z2=r)}}function j(t,e,i){var n,r="normal",a="normal";t.__highlighted&&(r="emphasis",n=!0),e(t,i),t.__highlighted&&(a="emphasis",n=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,i)})),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,a)}function X(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,Y(t),G(t))}function q(t){!Q(this,t)&&!this.__highByOuter&&j(this,G)}function Z(t){!Q(this,t)&&!this.__highByOuter&&j(this,Y)}function K(t){this.__highByOuter|=1<<(t||0),j(this,G)}function $(t){!(this.__highByOuter&=~(1<<(t||0)))&&j(this,Y)}function Q(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function J(t,e){var i=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!i||t.__highDownDispatcher){var n=i?"off":"on";t[n]("mouseover",q)[n]("mouseout",Z),t[n]("emphasis",K)[n]("normal",$),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i}}function tt(t,e,i,r,a){return et(t,e,r,a),i&&n.extend(t,i),t}function et(t,e,i,r){if((i=i||k).isRectText){var a;i.getTextPosition?a=i.getTextPosition(e,r):"outside"===(a=e.getShallow("position")||(r?null:"inside"))&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=n.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,h=function(t){var e;for(;t&&t!==t.ecModel;){var i=(t.option||k).rich;if(i)for(var n in e=e||{},i)i.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}(e);if(h)for(var c in s={},h)if(h.hasOwnProperty(c)){var d=e.getModel(["rich",c]);it(s[c]={},d,u,i,r)}return t.rich=s,it(t,e,u,i,r,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function it(t,e,i,r,a,o){i=!a&&i||k,t.textFill=nt(e.getShallow("color"),r)||i.color,t.textStroke=nt(e.getShallow("textBorderColor"),r)||i.textBorderColor,t.textStrokeWidth=n.retrieve2(e.getShallow("textBorderWidth"),i.textBorderWidth),a||(o&&(t.insideRollbackOpt=r,rt(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&r.disableBox||(t.textBackgroundColor=nt(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=nt(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function nt(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function rt(t){var e,i=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var r=n.autoColor,a=n.isRectText,o=n.useInsideStyle,s=!1!==o&&(!0===o||a&&i&&"string"==typeof i&&i.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function at(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function ot(t,e,i,n,r,a){if("function"==typeof r&&(a=r,r=null),n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),u=n.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(i,s,u||0,l,a,!!a):(e.stopAnimation(),e.attr(i),a&&a())}else e.stopAnimation(),e.attr(i),a&&a()}function st(t,e,i,n,r){ot(!0,t,e,i,n,r)}function lt(t,e,i){return e&&!n.isArrayLike(e)&&(e=u.getLocalTransform(e)),i&&(e=o.invert([],e)),s.applyTransform([],t,e)}function ut(t,e,i,n,r,a,o,s){var l,u=i-t,h=n-e,c=o-r,d=s-a,f=ht(c,d,u,h);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=t-r,g=e-a,v=ht(p,g,u,h)/f;if(v<0||v>1)return!1;var m=ht(p,g,c,d)/f;return!(m<0||m>1)}function ht(t,e,i,n){return t*n-i*e}R("circle",f),R("sector",p),R("ring",g),R("polygon",v),R("polyline",m),R("rect",y),R("line",_),R("bezierCurve",x),R("arc",w),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return r.extendFromString(t,e)},e.registerShape=R,e.getShapeClass=function(t){if(L.hasOwnProperty(t))return L[t]},e.makePath=E,e.makeImage=function(t,e,i){var n=new h({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(z(e,r))}}});return n},e.mergePath=B,e.resizePath=N,e.subPixelOptimizeLine=function(t){return C.subPixelOptimizeLine(t.shape,t.shape,t.style),t},e.subPixelOptimizeRect=function(t){return C.subPixelOptimizeRect(t.shape,t.shape,t.style),t},e.subPixelOptimize=F,e.setElementHoverStyle=X,e.setHoverStyle=function(t,e){J(t,!0),j(t,X,e)},e.setAsHighDownDispatcher=J,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=P[t];return null==e&&O<=32&&(e=P[t]=O++),e},e.setLabelStyle=function(t,e,i,r,a,o,s){var l,u=(a=a||k).labelFetcher,h=a.labelDataIndex,c=a.labelDimIndex,d=a.labelProp,f=i.getShallow("show"),p=r.getShallow("show");(f||p)&&(u&&(l=u.getFormattedLabel(h,"normal",null,c,d)),null==l&&(l=n.isFunction(a.defaultText)?a.defaultText(h,a):a.defaultText));var g=f?l:null,v=p?n.retrieve2(u?u.getFormattedLabel(h,"emphasis",null,c,d):null,l):null;null==g&&null==v||(tt(t,i,o,a),tt(e,r,s,a,!0)),t.text=g,e.text=v},e.modifyLabelStyle=function(t,e,i){var r=t.style;e&&(at(r),t.setStyle(e),rt(r)),r=t.__hoverStl,i&&r&&(at(r),n.extend(r,i),rt(r))},e.setTextStyle=tt,e.setText=function(t,e,i){var n,r={isRectText:!0};!1===i?n=!0:r.autoColor=i,et(t,e,r,n)},e.getFont=function(t,e){var i=e&&e.getModel("textStyle");return n.trim([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=st,e.initProps=function(t,e,i,n,r){ot(!1,t,e,i,n,r)},e.getTransform=function(t,e){for(var i=o.identity([]);t&&t!==e;)o.mul(i,t.getLocalTransform(),i),t=t.parent;return i},e.applyTransform=lt,e.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=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?-r:"bottom"===t?r:0];return a=lt(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},e.groupTransition=function(t,e,i,r){if(t&&e){var a,o=(a={},t.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=l(t);t.attr(l(e)),st(t,n,i,t.dataIndex)}}}))}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return n.map(t,(function(t){var i=t[0];i=D(i,e.x),i=A(i,e.x+e.width);var n=t[1];return n=D(n,e.y),[i,n=A(n,e.y+e.height)]}))},e.clipRectByRect=function(t,e){var i=D(t.x,e.x),n=A(t.x+t.width,e.x+e.width),r=D(t.y,e.y),a=A(t.y+t.height,e.y+e.height);if(n>=i&&a>=r)return{x:i,y:r,width:n-i,height:a-r}},e.createIcon=function(t,e,i){var r=(e=n.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),n.defaults(r,i),new h(e)):E(t.replace("path://",""),e,i,"center")},e.linePolygonIntersect=function(t,e,i,n,r){for(var a=0,o=r[r.length-1];a=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);t.exports=i},function(t,e){var i="undefined"==typeof Float32Array?Array:Float32Array;function n(t){return Math.sqrt(a(t))}var r=n;function a(t){return t[0]*t[0]+t[1]*t[1]}var o=a;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var h=u;e.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},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new i(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,i){return t[0]=e,t[1]=i,t},e.add=function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},e.scaleAndAdd=function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},e.sub=function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},e.len=n,e.length=r,e.lenSquare=a,e.lengthSquare=o,e.mul=function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},e.div=function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},e.normalize=function(t,e){var i=n(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t},e.distance=s,e.dist=l,e.distanceSquare=u,e.distSquare=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.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},e.applyTransform=function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},e.min=function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},e.max=function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}},function(t,e,i){var n=i(36),r=i(0),a=i(37),o=i(143),s=i(75).prototype.getCanvasPattern,l=Math.abs,u=new a(!0);function h(t){n.call(this,t),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var i,n=this.style,r=this.path||u,a=n.hasStroke(),o=n.hasFill(),l=n.fill,h=n.stroke,c=o&&!!l.colorStops,d=a&&!!h.colorStops,f=o&&!!l.image,p=a&&!!h.image;(n.bind(t,this,e),this.setTransform(t),this.__dirty)&&(c&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(t,l,i)),d&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,h,i)));c?t.fillStyle=this._fillGradient:f&&(t.fillStyle=s.call(l,t)),d?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=s.call(h,t));var g=n.lineDash,v=n.lineDashOffset,m=!!t.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!m&&a?(r.beginPath(t),g&&!m&&(r.setLineDash(g),r.setLineDashOffset(v)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o)if(null!=n.fillOpacity){var _=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,r.fill(t),t.globalAlpha=_}else r.fill(t);if(g&&m&&(t.setLineDash(g),t.lineDashOffset=v),a)if(null!=n.strokeOpacity){_=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,r.stroke(t),t.globalAlpha=_}else r.stroke(t);g&&m&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new a),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!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):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r.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&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},h.extend=function(t){var e=function(e){h.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var r in i)!n.hasOwnProperty(r)&&i.hasOwnProperty(r)&&(n[r]=i[r])}t.init&&t.init.call(this,e)};for(var i in r.inherits(e,h),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},r.inherits(h,n);var c=h;t.exports=c},function(t,e,i){var n=i(0),r=i(12),a=i(3);var o=n.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"};function u(t){return null==t?"":(t+"").replace(s,(function(t,e){return l[e]}))}var h=["a","b","c","d","e","f","g"],c=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e){return"0000".substr(0,e-(t+="").length)+t}var f=r.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.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},e.normalizeCssArray=o,e.encodeHTML=u,e.formatTpl=function(t,e,i){n.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o':'':{renderMode:a,content:"{marker"+o+"|} ",style:{color:i}}:""},e.formatTime=function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=a.parseDate(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),s=n["get"+r+"Month"]()+1,l=n["get"+r+"Date"](),u=n["get"+r+"Hours"](),h=n["get"+r+"Minutes"](),c=n["get"+r+"Seconds"](),f=n["get"+r+"Milliseconds"]();return t=t.replace("MM",d(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",d(l,2)).replace("d",l).replace("hh",d(u,2)).replace("h",u).replace("mm",d(h,2)).replace("m",h).replace("ss",d(c,2)).replace("s",c).replace("SSS",d(f,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=f,e.getTextBoundingRect=function(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(t,e,i,n,a,o,s,l){return r.getBoundingRect(t,e,i,n,a,l,o,s)},e.windowOpen=function(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}},function(t,e,i){var n=i(0),r=i(11),a=i(3).parsePercent,o=i(9),s=n.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);(h=a+v)>n||l.newline?(a=0,h=v,o+=s+i,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);(c=o+m)>r||l.newline?(a+=s+i,o=0,c=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=h+i:o=c+i)}))}var c=h,d=n.curry(h,"vertical"),f=n.curry(h,"horizontal");function p(t,e,i){i=o.normalizeCssArray(i||0);var n=e.width,s=e.height,l=a(t.left,n),u=a(t.top,s),h=a(t.right,n),c=a(t.bottom,s),d=a(t.width,n),f=a(t.height,s),p=i[2]+i[0],g=i[1]+i[3],v=t.aspect;switch(isNaN(d)&&(d=n-h-g-l),isNaN(f)&&(f=s-c-p-u),null!=v&&(isNaN(d)&&isNaN(f)&&(v>n/s?d=.8*n:f=.8*s),isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=n-h-d-g),isNaN(u)&&(u=s-c-f-p),t.left||t.right){case"center":l=n/2-d/2-i[3];break;case"right":l=n-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-i[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=n-g-l-(h||0)),isNaN(f)&&(f=s-p-u-(c||0));var m=new r(l+i[3],u+i[0],d,f);return m.margin=i,m}function g(t,e){return e&&t&&s(l,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=c,e.vbox=d,e.hbox=f,e.getAvailableSize=function(t,e,i){var n=e.width,r=e.height,s=a(t.x,n),l=a(t.y,r),u=a(t.x2,n),h=a(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=r),i=o.normalizeCssArray(i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(h-l-i[0]-i[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,i,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(h=h.clone()).applyTransform(c)}e=p(n.defaults({width:h.width,height:h.height},e),i,a);var d=t.position,f=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[f,g]:[d[0]+f,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,i){!n.isObject(i)&&(i={});var r=i.ignoreSize;!n.isArray(r)&&(r=[r,r]);var a=l(u[0],0),o=l(u[1],1);function l(i,n){var a={},o=0,l={},u=0;if(s(i,(function(e){l[e]=t[e]})),s(i,(function(t){h(e,t)&&(a[t]=l[t]=e[t]),c(a,t)&&o++,c(l,t)&&u++})),r[n])return c(e,i[1])?l[i[2]]=null:c(e,i[2])&&(l[i[1]]=null),l;if(2!==u&&o){if(o>=2)return a;for(var d=0;d=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new d(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}}},d.create=function(t){return new d(t.x,t.y,t.width,t.height)};var f=d;t.exports=f},function(t,e,i){var n=i(11),r=i(48),a=i(0),o=a.getContext,s=a.extend,l=a.retrieve2,u=a.retrieve3,h=a.trim,c={},d=0,f=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,p={};function g(t,e){var i=t+":"+(e=e||"12px sans-serif");if(c[i])return c[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n.length;a5e3&&(d=0,c={}),d++,c[i]=r,r}function v(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function m(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function y(t,e,i){var n=e.textPosition,r=e.textDistance,a=i.x,o=i.y;r=r||0;var s=i.height,l=i.width,u=s/2,h="left",c="top";switch(n){case"left":a-=r,o+=u,h="right",c="middle";break;case"right":a+=r+l,o+=u,c="middle";break;case"top":a+=l/2,o-=r,h="center",c="bottom";break;case"bottom":a+=l/2,o+=s+r,h="center";break;case"inside":a+=l/2,o+=u,h="center",c="middle";break;case"insideLeft":a+=r,o+=u,c="middle";break;case"insideRight":a+=l-r,o+=u,h="right",c="middle";break;case"insideTop":a+=l/2,o+=r,h="center";break;case"insideBottom":a+=l/2,o+=s-r,h="center",c="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,h="right";break;case"insideBottomLeft":a+=r,o+=s-r,c="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,h="right",c="bottom"}return(t=t||{}).x=a,t.y=o,t.textAlign=h,t.textVerticalAlign=c,t}function _(t,e,i,n,r){if(!e)return"";var a=(t+"").split("\n");r=x(e,i,n,r);for(var o=0,s=a.length;o=a;u++)o-=a;var h=g(i,e);return h>o&&(i="",h=0),o=t-h,n.ellipsis=i,n.ellipsisWidth=h,n.contentWidth=o,n.containerWidth=t,n}function w(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var a=g(t,n);if(a<=i)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?b(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;a=g(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function b(t,e,i,n){for(var r=0,a=0,o=t.length;ac)t="",o=[];else if(null!=d)for(var f=x(d-(i?i[1]+i[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=o.length;pa&&C(i,t.substring(a,o)),C(i,n[2],n[1]),a=f.lastIndex}ay)return{lines:[],width:0,height:0};B.textWidth=g(B.text,A);var O=I.textWidth,P=null==O||"auto"===O;if("string"==typeof O&&"%"===O.charAt(O.length-1))B.percentWidth=O,d.push(B),O=0;else{if(P){O=B.textWidth;var L=I.textBackgroundColor,R=L&&L.image;R&&(R=r.findExistImage(R),r.isImageReady(R)&&(O=Math.max(O,R.width*k/R.height)))}var E=D?D[1]+D[3]:0;O+=E;var z=null!=m?m-M:null;null!=z&&z=0;o--)a=n.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});s(f,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(f),a.enableTopologicalTravel(f,(function(t){var e=[];n.each(f.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=n.map(e,(function(t){return l(t).main})),"dataset"!==t&&n.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),n.mixin(f,c);var p=f;t.exports=p},function(t,e,i){t.exports=!i(33)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,i){var n=i(24);e.Dispatcher=n;var r=i(6),a=i(68),o=a.isCanvasEl,s=a.transformCoordWithViewport,l="undefined"!=typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,h=[];function c(t,e,i,n){return i=i||{},n||!r.canvasSupported?d(t,e,i):r.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):d(t,e,i),i}function d(t,e,i){if(r.domSupported&&t.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(o(t)){var l=t.getBoundingClientRect();return i.zrX=n-l.left,void(i.zrY=a-l.top)}if(s(h,t,n,a))return i.zrX=h[0],void(i.zrY=h[1])}i.zrX=i.zrY=0}function f(t){return t||window.event}var p=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=c,e.getNativeEvent=f,e.normalizeEvent=function(t,e,i){if(null!=(e=f(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&c(t,r,e,i)}else c(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&u.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e},e.addEventListener=function(t,e,i,n){l?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)},e.removeEventListener=function(t,e,i,n){l?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)},e.stop=p,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return t.which>1}},function(t,e){var i="undefined"==typeof Float32Array?Array:Float32Array;function n(){var t=new i(6);return r(t),t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}e.create=n,e.identity=r,e.copy=a,e.mul=function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},e.translate=function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},e.rotate=function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+o*u,t[1]=-n*u+o*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*a+u*l,t[5]=h*l-u*a,t},e.scale=function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},e.invert=function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null},e.clone=function(t){var e=n();return a(e,t),e}},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e,i){var n=i(72),r={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]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return t<0?0:t>1?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(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 h(t,e,i){return t+(e-t)*i}function c(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new n(20),p=null;function g(t,e){p&&d(p,e),p=f.put(t,p||e.slice())}function v(t,e){if(t){e=e||[];var i=f.get(t);if(i)return d(e,i);var n,a=(t+="").replace(/ /g,"").toLowerCase();if(a in r)return d(e,r[a]),g(t,e),e;if("#"===a.charAt(0))return 4===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=4095?(c(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),g(t,e),e):void c(e,0,0,0,1):7===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=16777215?(c(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),g(t,e),e):void c(e,0,0,0,1):void 0;var o=a.indexOf("("),u=a.indexOf(")");if(-1!==o&&u+1===a.length){var h=a.substr(0,o),p=a.substr(o+1,u-(o+1)).split(","),v=1;switch(h){case"rgba":if(4!==p.length)return void c(e,0,0,0,1);v=l(p.pop());case"rgb":return 3!==p.length?void c(e,0,0,0,1):(c(e,s(p[0]),s(p[1]),s(p[2]),v),g(t,e),e);case"hsla":return 4!==p.length?void c(e,0,0,0,1):(p[3]=l(p[3]),m(p,e),g(t,e),e);case"hsl":return 3!==p.length?void c(e,0,0,0,1):(m(p,e),g(t,e),e);default:return}}c(e,0,0,0,1)}}function m(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=l(t[1]),r=l(t[2]),o=r<=.5?r*(n+1):r+n-r*n,s=2*r-o;return c(e=e||[],a(255*u(s,o,i+1/3)),a(255*u(s,o,i)),a(255*u(s,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),r=Math.floor(n),s=Math.ceil(n),l=e[r],u=e[s],c=n-r;return i[0]=a(h(l[0],u[0],c)),i[1]=a(h(l[1],u[1],c)),i[2]=a(h(l[2],u[2],c)),i[3]=o(h(l[3],u[3],c)),i}}var _=y;function x(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),s=Math.ceil(n),l=v(e[r]),u=v(e[s]),c=n-r,d=b([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),o(h(l[3],u[3],c))],"rgba");return i?{color:d,leftIndex:r,rightIndex:s,value:n}:d}}var w=x;function b(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+")"}}e.parse=v,e.lift=function(t,e){var i=v(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return b(i,4===i.length?"rgba":"rgb")}},e.toHex=function(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=y,e.fastMapToColor=_,e.lerp=x,e.mapToColor=w,e.modifyHSL=function(t,e,i,n){if(t=v(t))return t=function(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-c:r===s?e=1/3+h-d:a===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=i&&(t[1]=l(i)),null!=n&&(t[2]=l(n)),b(m(t),"rgba");var r},e.modifyAlpha=function(t,e){if((t=v(t))&&null!=e)return t[3]=o(e),b(t,"rgba")},e.stringify=b},function(t,e,i){var n=i(7),r=n.create,a=n.distSquare,o=Math.pow,s=Math.sqrt,l=s(3),u=r(),h=r(),c=r();function d(t){return t>-1e-8&&t<1e-8}function f(t){return t>1e-8||t<-1e-8}function p(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function g(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}e.cubicAt=p,e.cubicDerivativeAt=function(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)},e.cubicRootAt=function(t,e,i,n,r,a){var u=n+3*(e-i)-t,h=3*(i-2*e+t),c=3*(e-t),f=t-r,p=h*h-3*u*c,g=h*c-9*u*f,v=c*c-3*h*f,m=0;if(d(p)&&d(g)){if(d(h))a[0]=0;else(D=-c/h)>=0&&D<=1&&(a[m++]=D)}else{var y=g*g-4*p*v;if(d(y)){var _=g/p,x=-_/2;(D=-h/u+_)>=0&&D<=1&&(a[m++]=D),x>=0&&x<=1&&(a[m++]=x)}else if(y>0){var w=s(y),b=p*h+1.5*u*(-g+w),S=p*h+1.5*u*(-g-w);(D=(-h-((b=b<0?-o(-b,1/3):o(b,1/3))+(S=S<0?-o(-S,1/3):o(S,1/3))))/(3*u))>=0&&D<=1&&(a[m++]=D)}else{var M=(2*p*h-3*u*g)/(2*s(p*p*p)),T=Math.acos(M)/3,I=s(p),C=Math.cos(T),D=(-h-2*I*C)/(3*u),A=(x=(-h+I*(C+l*Math.sin(T)))/(3*u),(-h+I*(C-l*Math.sin(T)))/(3*u));D>=0&&D<=1&&(a[m++]=D),x>=0&&x<=1&&(a[m++]=x),A>=0&&A<=1&&(a[m++]=A)}}return m},e.cubicExtrema=function(t,e,i,n,r){var a=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,l=3*e-3*t,u=0;if(d(o)){if(f(a))(c=-l/a)>=0&&c<=1&&(r[u++]=c)}else{var h=a*a-4*o*l;if(d(h))r[0]=-a/(2*o);else if(h>0){var c,p=s(h),g=(-a-p)/(2*o);(c=(-a+p)/(2*o))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u},e.cubicSubdivide=function(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,h=(l-s)*r+s,c=(h-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=h,a[6]=l,a[7]=n},e.cubicProjectPoint=function(t,e,i,n,r,o,l,d,f,g,v){var m,y,_,x,w,b=.005,S=1/0;u[0]=f,u[1]=g;for(var M=0;M<1;M+=.05)h[0]=p(t,i,r,l,M),h[1]=p(e,n,o,d,M),(x=a(u,h))=0&&x=0&&c<=1&&(r[u++]=c)}else{var h=o*o-4*a*l;if(d(h))(c=-o/(2*a))>=0&&c<=1&&(r[u++]=c);else if(h>0){var c,p=s(h),g=(-o-p)/(2*a);(c=(-o+p)/(2*a))>=0&&c<=1&&(r[u++]=c),g>=0&&g<=1&&(r[u++]=g)}}return u},e.quadraticExtremum=function(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n},e.quadraticSubdivide=function(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i},e.quadraticProjectPoint=function(t,e,i,n,r,o,l,d,f){var p,v=.005,m=1/0;u[0]=l,u[1]=d;for(var y=0;y<1;y+=.05){h[0]=g(t,i,r,y),h[1]=g(e,n,o,y),(b=a(u,h))=0&&b3&&(r=i.call(r,1));for(var o=e.length,s=0;s4&&(r=i.call(r,1,r.length-1));for(var o=r[r.length-1],s=e.length,l=0;l=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 o&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,r=this._children,a=n.indexOf(r,t);return a<0||(r.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e0&&d>0&&!p&&(l=0),l<0&&d<0&&!g&&(d=0));var v=e.ecModel;if(v&&"time"===o){var m,y=u("bar",v);if(n.each(y,(function(t){m|=t.getBaseAxis()===e.axis})),m){var _=h(y),x=function(t,e,i,r){var a=i.axis.getExtent(),o=a[1]-a[0],s=c(r,i.axis);if(void 0===s)return{min:t,max:e};var l=1/0;n.each(s,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;n.each(s,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var h=l+u,d=e-t,f=d/(1-(l+u)/o)-d;return{min:t-=f*(l/h),max:e+=f*(u/h)}}(l,d,e,_);l=x.min,d=x.max}}return{extent:[l,d],fixMin:p,fixMax:g}}function p(t){var e,i=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof i?(e=i,i=function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}):"function"==typeof i?function(e,r){return null!=n&&(r=e-n),i(g(t,e),r)}:function(e){return t.scale.getLabel(e)}}function g(t,e){return"category"===t.type?t.scale.getLabel(e):e}function v(t){var e=t.get("interval");return null==e?"auto":e}i(184),i(185),e.getScaleExtent=f,e.niceScaleExtent=function(t,e){var i=f(t,e),n=i.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(o.getClass(e)||a).create(t)}},e.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},e.makeLabelFormatter=p,e.getAxisRawValue=g,e.estimateLabelUnionRect=function(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,r,a="category"===t.type,o=i.getExtent();r=a?i.count():(n=i.getTicks()).length;var s,l,u,h,c,f,g,v,m,y=t.getLabelModel(),_=p(t),x=1;r>40&&(x=Math.ceil(r/40));for(var w=0;w=0;s--)null==i[s]&&(delete r[e[s]],e.pop())}(r):h(r,!0):(n.assert("linear"!==e||r.dataExtent),h(r))};l.prototype={constructor:l,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return n.bind(this._normalizeData,this)}};var u=l.visualHandlers={color:{applyVisual:f("color"),getColorMapper:function(){var t=this.option;return n.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),p.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=r.fastLerp(e,t.parsedVisual,n),a?n:r.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")},category:p,piecewise:function(t,e){var i=m.call(this,e);return null==i&&(i=r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:g}},colorHue:c((function(t,e){return r.modifyHSL(t,e)})),colorSaturation:c((function(t,e){return r.modifyHSL(t,null,e)})),colorLightness:c((function(t,e){return r.modifyHSL(t,null,null,e)})),colorAlpha:c((function(t,e){return r.modifyAlpha(t,e)})),opacity:{applyVisual:f("opacity"),_doMap:v([0,1])},liftZ:{applyVisual:f("liftZ"),_doMap:{linear:g,category:g,piecewise:g,fixed:g}},symbol:{applyVisual:function(t,e,i){var r=this.mapValueToVisual(t);if(n.isString(r))i("symbol",r);else if(s(r))for(var a in r)r.hasOwnProperty(a)&&i(a,r[a])},_doMap:{linear:d,category:p,piecewise:function(t,e){var i=m.call(this,e);return null==i&&(i=d.call(this,t)),i},fixed:g}},symbolSize:{applyVisual:f("symbolSize"),_doMap:v([0,1])}};function h(t,e){var i=t.visual,r=[];n.isObject(i)?o(i,(function(t){r.push(t)})):null!=i&&r.push(i);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),y(t,r)}function c(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:v([0,1])}}function d(t){var e=this.option.visual;return e[Math.round(a(t,[0,1],[0,e.length-1],!0))]||{}}function f(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function p(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function g(){return this.option.visual[0]}function v(t){return{linear:function(e){return a(e,t,this.option.visual,!0)},category:p,piecewise:function(e,i){var n=m.call(this,i);return null==n&&(n=a(e,t,this.option.visual,!0)),n},fixed:g}}function m(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[l.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function y(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=n.map(e,(function(t){return r.parse(t)}))),e}var _={linear:function(t){return a(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=l.findPieceIndex(t,e,!0);if(null!=i)return a(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:n.noop};function x(t,e,i){return t?e<=i:ethis._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,r,a){return this.addData(l.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,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,r,a){return this.addData(l.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=g(r)*i+t,this._yi=v(r)*i+e,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),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||h<0&&g>=t||0===h&&(c>0&&v<=e||c<0&&v>=e);)g+=h*(i=o[n=this._dashIdx]),v+=c*i,this._dashIdx=(n+1)%y,h>0&&gl||c>0&&vu||s[n%2?"moveTo":"lineTo"](h>=0?f(g,t):p(g,t),c>=0?f(v,e):p(v,e));h=g-t,c=v-e,this._dashOffset=-m(h*h+c*c)},_dashedBezierTo:function(t,e,i,r,a,o){var s,l,u,h,c,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,y=this._yi,_=n.cubicAt,x=0,w=this._dashIdx,b=p.length,S=0;for(f<0&&(f=d+f),f%=d,s=0;s<1;s+=.1)l=_(v,t,i,a,s+.1)-_(v,t,i,a,s),u=_(y,e,r,o,s+.1)-_(y,e,r,o,s),x+=m(l*l+u*u);for(;wf);w++);for(s=(S-f)/x;s<=1;)h=_(v,t,i,a,s),c=_(y,e,r,o,s),w%2?g.moveTo(h,c):g.lineTo(h,c),s+=p[w]/x,w=(w+1)%b;w%2!=0&&g.lineTo(a,o),l=a-h,u=o-c,this._dashOffset=-m(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var r=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,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=c[0]=c[1]=Number.MAX_VALUE,h[0]=h[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(o-r)>h||d===c-1)&&(t.lineTo(a,o),n=a,r=o);break;case l.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case l.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],r=s[d-1];break;case l.A:var p=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++],S=s[d++],M=s[d++],T=_>x?_:x,I=_>x?1:_/x,C=_>x?x/_:1,D=w+b;Math.abs(_-x)>.001?(t.translate(p,m),t.rotate(S),t.scale(I,C),t.arc(0,0,T,w,D,1-M),t.scale(1/I,1/C),t.rotate(-S),t.translate(-p,-m)):t.arc(p,m,T,w,D,1-M),1===d&&(e=g(w)*_+p,i=v(w)*x+m),n=g(D)*_+p,r=v(D)*x+m;break;case l.R:e=n=s[d],i=r=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:t.closePath(),n=e,r=i}}}},x.CMD=l;var w=x;t.exports=w},function(t,e,i){var n=i(0),r=i(14).parseClassType,a=0;e.getUID=function(t){return[t||"",a++,Math.random().toFixed(5)].join("_")},e.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=r(t),e[t.main]=i},t.determineSubType=function(i,n){var a=n.type;if(!a){var o=r(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](n))}return a},t},e.enableTopologicalTravel=function(t,e){function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,a,o){if(t.length){var s=function(t){var r={},a=[];return n.each(t,(function(o){var s=i(r,o),l=function(t,e){var i=[];return n.each(t,(function(t){n.indexOf(e,t)>=0&&i.push(t)})),i}(s.originalDeps=e(o),t);s.entryCount=l.length,0===s.entryCount&&a.push(o),n.each(l,(function(t){n.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(r,t);n.indexOf(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:a}}(r),l=s.graph,u=s.noEntryList,h={};for(n.each(t,(function(t){h[t]=!0}));u.length;){var c=u.pop(),d=l[c],f=!!h[c];f&&(a.call(o,c,d.originalDeps.slice()),delete h[c]),n.each(d.successor,f?g:p)}n.each(h,(function(){throw new Error("Circle dependency may exists")}))}function p(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,p(t)}}}},function(t,e,i){var n=i(0),r={};function a(){this._coordinateSystems=[]}a.prototype={constructor:a,create:function(t,e){var i=[];n.each(r,(function(n,r){var a=n.create(t,e);i=i.concat(a||[])})),this._coordinateSystems=i},update:function(t,e){n.each(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},a.register=function(t,e){r[t]=e},a.get=function(t){return r[t]};var o=a;t.exports=o},function(t,e,i){var n=i(14);function r(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(t){return t},r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0});var a=r;t.exports=a},function(t,e,i){var n=i(0),r=i(4),a=i(11),o=i(12).calculateTextPosition,s=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),l=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),u=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),h=Math.cos(u)*o,c=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;t.moveTo(i-h,l+s),t.arc(i,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-h+c*f,l+s+d*f,i-h,l+s),t.closePath()}}),h=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),c={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:l,pin:u,arrow:h,triangle:s},d={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},f={};n.each(c,(function(t,e){f[e]=new t}));var p=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=o(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=f[n];r||(r=f[n="rect"]),d[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}});function g(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,i,n,o,s,l){var u,h=0===t.indexOf("empty");return h&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?r.makeImage(t.slice(8),new a(e,i,n,o),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new a(e,i,n,o),l?"center":"cover"):new p({shape:{symbolType:t,x:e,y:i,width:n,height:o}})).__isEmptyBrush=h,u.setColor=g,u.setColor(s),u}},function(t,e,i){var n=i(0),r=i(13),a=n.each,o=n.curry;function s(t,e){return"all"===t||n.isArray(t)&&n.indexOf(t,e)>=0||t===e}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[h(t)]}function u(t){return!!t.get("handle.show")}function h(t){return t.type+"||"+t.id}e.collect=function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var l=e.getComponent("tooltip"),c=e.getComponent("axisPointer"),d=c.get("link",!0)||[],f=[];a(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var p=h(i.model),g=t.coordSysAxesInfo[p]={};t.coordSysMap[p]=i;var v=i.model.getModel("tooltip",l);if(a(i.getAxes(),o(x,!1,null)),i.getTooltipAxes&&l&&v.get("show")){var m="axis"===v.get("trigger"),y="cross"===v.get("axisPointer.type"),_=i.getTooltipAxes(v.get("axisPointer.axis"));(m||y)&&a(_.baseAxes,o(x,!y||"cross",m)),y&&a(_.otherAxes,o(x,"cross",!1))}}function x(o,l,p){var m=p.model.getModel("axisPointer",c),y=m.get("show");if(y&&("auto"!==y||o||u(m))){null==l&&(l=m.get("triggerTooltip"));var _=(m=o?function(t,e,i,o,s,l){var u=e.getModel("axisPointer"),h={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){h[t]=n.clone(u.get(t))})),h.snap="category"!==t.type&&!!l,"cross"===u.get("type")&&(h.type="line");var c=h.label||(h.label={});if(null==c.show&&(c.show=!1),"cross"===s){var d=u.get("label.show");if(c.show=null==d||d,!l){var f=h.lineStyle=u.get("crossStyle");f&&n.defaults(c,f.textStyle)}}return t.model.getModel("axisPointer",new r(h,i,o))}(p,v,c,e,o,l):m).get("snap"),x=h(p.model),w=l||_||"category"===p.type,b=t.axesInfo[x]={key:x,axis:p,coordSys:i,axisPointerModel:m,triggerTooltip:l,involveSeries:w,snap:_,useHandle:u(m),seriesModels:[]};g[x]=b,t.seriesInvolved|=w;var S=function(t,e){for(var i=e.model,n=e.dim,r=0;rh[1]&&h.reverse(),(null==o||o>h[1])&&(o=h[1]),o=0;)r++;return r-e}function n(t,e,i,n,r){for(n===e&&n++;n>>1])<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]=o}}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o>>1);a(t,e[i+h])>0?o=h+1:l=h}return l}function a(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;ls&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=n-r;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o>>1);a(t,e[i+h])<0?l=h:o=h+1}return l}function o(t,e){var i,n,o,s=7,l=0;i=t.length;var u=[];function h(i){var h=n[i],c=o[i],d=n[i+1],f=o[i+1];o[i]=c+f,i===l-3&&(n[i+1]=n[i+2],o[i+1]=o[i+2]),l--;var p=a(t[d],t,h,c,0,e);h+=p,0!==(c-=p)&&0!==(f=r(t[h+c-1],t,d,f,f-1,e))&&(c<=f?function(i,n,o,l){var h=0;for(h=0;h=7||g>=7);if(v)break;m<0&&(m=0),m+=2}if((s=m)<1&&(s=1),1===n){for(h=0;h=0;h--)t[g+h]=t[p+h];return void(t[f]=u[d])}var v=s;for(;;){var m=0,y=0,_=!1;do{if(e(u[d],t[c])<0){if(t[f--]=t[c--],m++,y=0,0==--n){_=!0;break}}else if(t[f--]=u[d--],y++,m=0,1==--l){_=!0;break}}while((m|y)=0;h--)t[g+h]=t[p+h];if(0===n){_=!0;break}}if(t[f--]=u[d--],1==--l){_=!0;break}if(0!==(y=l-r(t[c],u,0,l,l-1,e))){for(l-=y,g=(f-=y)+1,p=(d-=y)+1,h=0;h=7||y>=7);if(_)break;v<0&&(v=0),v+=2}(s=v)<1&&(s=1);if(1===l){for(g=(f-=n)+1,p=(c-=n)+1,h=n-1;h>=0;h--)t[g+h]=t[p+h];t[f]=u[d]}else{if(0===l)throw new Error;for(p=f-(l-1),h=0;h1;){var t=l-2;if(t>=1&&o[t-1]<=o[t]+o[t+1]||t>=2&&o[t-2]<=o[t]+o[t-1])o[t-1]o[t+1])break;h(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&o[t-1]=32;)e|=1&t,t>>=1;return t+e}(s);do{if((l=i(t,r,a,e))h&&(c=h),n(t,r,r+c,r+l,e),l=c}u.pushRun(r,l),u.mergeRuns(),s-=l,r+=l}while(0!==s);u.forceMergeRuns()}}}},function(t,e,i){var n=i(74),r=i(35).ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],o=function(t){this.extendFrom(t,!1)};function s(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o,t.createLinearGradient(n,a,r,o)}function l(t,e,i){var n=i.width,r=i.height,a=Math.min(n,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+i.x,s=s*r+i.y,l*=a),t.createRadialGradient(o,s,0,o,s,l)}for(var u=o.prototype={constructor:o,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){var o=i&&i.style,s=!o||t.__attrCachedBy!==r.STYLE_BIND;t.__attrCachedBy=r.STYLE_BIND;for(var l=0;l0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},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,i){for(var n=("radial"===e.type?l:s)(t,e,i),r=e.colorStops,a=0;a=0||r&&n.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}},function(t,e,i){var n=i(36),r=i(0),a=i(12),o=i(77),s=i(35).ContextCachedBy,l=function(t){n.call(this,t)};l.prototype={constructor:l,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&o.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),o.needDrawText(n,i)?(this.setTransform(t),o.renderText(this,t,n,i,null,e),this.restoreTransform(t)):t.__attrCachedBy=s.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var i=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},r.inherits(l,n);var u=l;t.exports=u},function(t,e){var i=Math.round;function n(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}e.subPixelOptimizeLine=function(t,e,r){if(e){var a=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=a,t.x2=o,t.y1=s,t.y2=l;var u=r&&r.lineWidth;u&&(i(2*a)===i(2*o)&&(t.x1=t.x2=n(a,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=n(s,u,!0)))}},e.subPixelOptimizeRect=function(t,e,i){if(e){var r=e.x,a=e.y,o=e.width,s=e.height;t.x=r,t.y=a,t.width=o,t.height=s;var l=i&&i.lineWidth;l&&(t.x=n(r,l,!0),t.y=n(a,l,!0),t.width=Math.max(n(r+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(n(a+s,l,!1)-t.y,0===s?0:1))}},e.subPixelOptimize=n},function(t,e,i){var n=i(0),r=i(53),a=function(t,e,i,n,a,o){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=o||!1,r.call(this,a)};a.prototype={constructor:a},n.inherits(a,r);var o=a;t.exports=o},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})}};var n=i;t.exports=n},function(t,e,i){var n=i(0),r=(n.assert,n.isArray);i(5).__DEV__;function a(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var o=a.prototype;o.perform=function(t){var e,i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var a=this.context;a.data=a.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var o,s=d(this._modBy),u=this._modDataCount||0,h=d(t&&t.modBy),c=t&&t.modDataCount||0;function d(t){return!(t>=1)&&(t=1),t}s===h&&u===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=function(t,e){var i,n;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((i=t._reset(t.context))&&i.progress&&(n=i.forceFirstProgress,i=i.progress),r(i)&&!i.length&&(i=null));t._progress=i,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),n}(this,n)),this._modBy=h,this._modDataCount=c;var f=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,g=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(o||p1&&n>0?s:o}};return a;function o(){return e=t?null:a=0?c():h=setTimeout(c,-r),l=n};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}e.throttle=r,e.createOrUpdate=function(t,e,a,o){var s=t[e];if(s){var l=s[i]||s,u=s["\0__throttleType"];if(s[n]!==a||u!==o){if(null==a||!o)return t[e]=l;(s=t[e]=r(l,a,"debounce"===o))[i]=l,s["\0__throttleType"]=o,s[n]=a}return s}},e.clear=function(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])}},function(t,e,i){i(5).__DEV__;var n=i(0),r=i(13),a=i(179),o=i(26),s=i(28),l=s.defaultDimValueGetters,u=s.DefaultDataProvider,h=i(57).summarizeDimensions,c=i(98),d=n.isObject,f={float:"undefined"==typeof Float64Array?Array:Float64Array,int:"undefined"==typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},p="undefined"==typeof Uint32Array?Array:Uint32Array,g="undefined"==typeof Int32Array?Array:Int32Array,v="undefined"==typeof Uint16Array?Array:Uint16Array;function m(t){return t._rawCount>65535?p:v}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],_=["_extent","_approximateExtent","_rawExtent"];function x(t,e){n.each(y.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,n.each(_,(function(i){t[i]=n.clone(e[i])})),t._calculationInfo=n.extend(e._calculationInfo)}var w=function(t,e){t=t||["x","y"];for(var i={},r=[],a={},o=0;o=0?this._indices[t]:-1}function D(t,e){var i=t._idList[e];return null==i&&(i=T(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i}function A(t){return n.isArray(t)||(t=[t]),t}function k(t,e){var i=t.dimensions,r=new w(n.map(i,t.getDimensionInfo,t),t.hostModel);x(r,t);for(var a=r._storage={},o=t._storage,s=0;s=0?(a[l]=O(o[l]),r._rawExtent[l]=P(),r._extent[l]=null):a[l]=o[l])}return r}function O(t){for(var e,i,n=new Array(t.length),r=0;r_[1]&&(_[1]=y)}e&&(this._nameList[d]=e[f])}this._rawCount=this._count=l,this._extent={},M(this)},b._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pI[1]&&(I[1]=T)}if(!r.pure){var C=u[m];if(v&&null==C)if(null!=v.name)u[m]=C=v.name;else if(null!=i){var D=o[i],A=a[D][y];if(A){C=A[_];var k=l[D].ordinalMeta;k&&k.categories.length&&(C=k.categories[C])}}var O=null==v?null:v.id;null==O&&null!=C&&(d[C]=d[C]||0,O=C,d[C]>0&&(O+="__ec__"+d[C]),d[C]++),null!=O&&(h[m]=O)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},M(this)}},b.count=function(){return this._count},b.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array){r=new e(i);for(var n=0;n=0&&e=0&&eo&&(o=l)}return n=[a,o],this._extent[t]=n,n},b.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},b.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},b.getCalculationInfo=function(t){return this._calculationInfo[t]},b.setCalculationInfo=function(t,e){d(t)?n.extend(this._calculationInfo,t):this._calculationInfo[t]=e},b.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&it))return a;r=a-1}}return-1},b.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var r=1/0,a=-1,o=0,s=0,l=this.count();s=0&&a<0)&&(r=h,a=u,o=0),u===a&&(n[o++]=s))}return n.length=o,n},b.getRawIndex=I,b.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i=l&&b<=u||isNaN(b))&&(a[o++]=c),c++}h=!0}else if(2===n){d=this._storage[s];var y=this._storage[e[1]],_=t[e[1]][0],x=t[e[1]][1];for(f=0;f=l&&b<=u||isNaN(b))&&(S>=_&&S<=x||isNaN(S))&&(a[o++]=c),c++}}h=!0}}if(!h)if(1===n)for(v=0;v=l&&b<=u||isNaN(b))&&(a[o++]=M)}else for(v=0;vt[D][1])&&(T=!1)}T&&(a[o++]=this.getRawIndex(v))}return ob[1]&&(b[1]=w)}}}return a},b.downSample=function(t,e,i,n){for(var r=k(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(m(this))(u),f=0,p=0;pu-p&&(s=u-p,o.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=w}return r._count=f,r._indices=d,r.getRawIndex=C,r},b.getItemModel=function(t){var e=this.hostModel;return new r(this.getRawDataItem(t),e,e&&e.ecModel)},b.diff=function(t){var e=this;return new a(t?t.getIndices():[],this.getIndices(),(function(e){return D(t,e)}),(function(t){return D(e,t)}))},b.getVisual=function(t){var e=this._visual;return e&&e[t]},b.setVisual=function(t,e){if(d(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},b.setLayout=function(t,e){if(d(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},b.getLayout=function(t){return this._layout[t]},b.getItemLayout=function(t){return this._itemLayouts[t]},b.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?n.extend(this._itemLayouts[t]||{},e):e},b.clearItemLayouts=function(){this._itemLayouts.length=0},b.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},b.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,d(e))for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a],r[a]=!0);else n[e]=i,r[e]=!0},b.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var L=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};b.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(L,e)),this._graphicEls[t]=e},b.getItemGraphicEl=function(t){return this._graphicEls[t]},b.eachItemGraphicEl=function(t,e){n.each(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},b.cloneShallow=function(t){if(!t){var e=n.map(this.dimensions,this.getDimensionInfo,this);t=new w(e,this.hostModel)}if(t._storage=this._storage,x(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?C:I,t},b.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(n.slice(arguments)))})},b.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],b.CHANGABLE_METHODS=["filterSelf","selectRange"];var R=w;t.exports=R},function(t,e,i){var n=i(0),r=n.each,a=n.createHashMap,o=(n.assert,i(5).__DEV__,a(["tooltip","label","itemName","itemId","seriesName"]));function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}e.OTHER_DIMENSIONS=o,e.summarizeDimensions=function(t){var e={},i=e.encode={},n=a(),l=[],u=[],h=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};r(t.dimensions,(function(e){var r,a=t.getDimensionInfo(e),c=a.coordDim;if(c){var d=a.coordDimIndex;s(i,c)[d]=e,a.isExtraCoord||(n.set(c,1),"ordinal"!==(r=a.type)&&"time"!==r&&(l[0]=e),s(h.encode,c)[d]=a.index),a.defaultTooltip&&u.push(e)}o.each((function(t,e){var n=s(i,e),r=a.otherDims[e];null!=r&&!1!==r&&(n[r]=a.name)}))}));var c=[],d={};n.each((function(t,e){var n=i[e];d[e]=n[0],c=c.concat(n)})),e.dataDimsOnCoord=c,e.encodeFirstDimNotExtra=d;var f=i.label;f&&f.length&&(l=f.slice());var p=i.tooltip;return p&&p.length?u=p.slice():u.length||(u=l.slice()),i.defaultedLabel=l,i.defaultedTooltip=u,e},e.getDimensionTypeByAxis=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},function(t,e,i){var n=i(99);t.exports=function(t,e){return n((e=e||{}).coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}},function(t,e,i){var n=i(0),r=n.each,a=n.isString;function o(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}e.enableDataStack=function(t,e,i){var n,o,s,l,u=(i=i||{}).byIndex,h=i.stackedCoordDimension,c=!(!t||!t.get("stack"));if(r(e,(function(t,i){a(t)&&(e[i]=t={name:t}),c&&!t.isExtraCoord&&(u||n||!t.ordinalMeta||(n=t),o||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(o=t))})),!o||u||n||(u=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var d=o.coordDim,f=o.type,p=0;r(e,(function(t){t.coordDim===d&&p++})),e.push({name:s,coordDim:d,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:n&&n.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}},e.isDimensionStacked=o,e.getStackedDimension=function(t,e){return o(t,e)?t.getCalculationInfo("stackResultDimension"):e}},function(t,e,i){var n=i(3),r=i(9),a=i(40),o=i(100),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},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;i[0]1e4)return[];var l=a.length?a[a.length-1]:n[1];return i[1]>l&&(t?a.push(s(l+e,r)):a.push(i[1])),a},getMinorTicks:function(t){for(var e=this.getTicks(!0),i=[],r=this.getExtent(),a=1;ar[0]&&c>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(o),i.push(o)}return i}(e,l),l,o);if(u)return u(t,i,a),!0}return!1}function s(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,i,n,r){return o(a,e,n,r,!0)&&o(t,i,a[0],a[1])},e.transformCoordWithViewport=o,e.isCanvasEl=s},function(t,e,i){var n=i(67),r=i(24),a=i(70),o=i(132),s=i(0),l=function(t){a.call(this,t),r.call(this,t),o.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,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;i5e-5||t<-5e-5}var s=function(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},l=s.prototype;l.transform=null,l.needLocalTransform=function(){return o(this.rotation)||o(this.position[0])||o(this.position[1])||o(this.scale[0]-1)||o(this.scale[1]-1)};var u=[];l.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),r=this.transform;if(i||e){r=r||n.create(),i?this.getLocalTransform(r):a(r),e&&(i?n.mul(r,t.transform,r):n.copy(r,t.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,h=((u[0]-s)*o+s)/u[0]||0,c=((u[1]-l)*o+l)/u[1]||0;r[0]*=h,r[1]*=h,r[2]*=c,r[3]*=c}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,r)}else r&&a(r)},l.getLocalTransform=function(t){return s.getLocalTransform(this,t)},l.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)},l.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var h=[],c=n.create();l.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,r=this.scale;o(e-1)&&(e=Math.sqrt(e)),o(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],r[0]=e,r[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},l.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(h,t.invTransform,e),e=h);var i=this.origin;i&&(i[0]||i[1])&&(c[4]=i[0],c[5]=i[1],n.mul(h,e,c),h[4]-=i[0],h[5]-=i[1],e=h),this.setLocalTransform(e)}},l.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},l.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&r.applyTransform(i,i,n),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&r.applyTransform(i,i,n),i},s.getLocalTransform=function(t,e){a(e=e||[]);var i=t.origin,r=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),n.scale(e,e,r),o&&n.rotate(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var d=s;t.exports=d},function(t,e,i){var n=i(133),r=i(20),a=i(0).isArrayLike,o=Array.prototype.slice;function s(t,e){return t[e]}function l(t,e,i){t[e]=i}function u(t,e,i){return(e-t)*i+t}function h(t,e,i){return i>.5?e:t}function c(t,e,i,n,r){var a=t.length;if(1===r)for(var o=0;or)t.length=r;else for(var a=n;a=0&&!(C[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=V;ie);i++);i=Math.min(i-1,x-2)}V=i,H=e;var n=C[i+1]-C[i];if(0!==n)if(E=(e-C[i])/n,_)if(B=D[i],z=D[0===i?i:i-1],N=D[i>x-2?x-1:i+1],F=D[i>x-3?x-1:i+2],S)p(z,B,N,F,E,E*E,E*E*E,v(t,s),I);else{if(M)r=p(z,B,N,F,E,E*E,E*E*E,W,1),r=m(W);else{if(T)return h(B,N,E);r=g(z,B,N,F,E,E*E,E*E*E)}y(t,s,r)}else if(S)c(D[i],D[i+1],E,v(t,s),I);else{var r;if(M)c(D[i],D[i+1],E,W,1),r=m(W);else{if(T)return h(D[i],D[i+1],E);r=u(D[i],D[i+1],E)}y(t,s,r)}},ondestroy:i});return e&&"spline"!==e&&(G.easing=e),G}}}var _=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||s,this._setter=n||l,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 r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:v(r)})}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&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,i.insertEntry(s),n[t]=s}return a},o.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},o.clear=function(){this._list.clear(),this._map={}};var s=a;t.exports=s},function(t,e,i){var n=function(){};1===i(34).debugMode&&(n=console.error);var r=n;t.exports=r},function(t,e){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};t.exports=function(t,e,n){return i.hasOwnProperty(e)?n*t.dpr:n}},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")};var n=i;t.exports=n},function(t,e){var i="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=i},function(t,e,i){var n=i(0),r=n.retrieve2,a=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,u=n.isObject,h=i(12),c=i(78),d=i(48),f=i(74),p=i(35),g=p.ContextCachedBy,v=p.WILL_BE_RESTORED,m=h.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},x=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],w={},b={};function S(t){if(t){t.font=h.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||_[i]?i:"top",t.textPadding&&(t.textPadding=s(t.textPadding))}}function M(t,e,i,n,r){if(i&&e.textRotation){var a=e.textOrigin;"center"===a?(n=i.width/2+i.x,r=i.height/2+i.y):a&&(n=a[0]+i.x,r=a[1]+i.y),t.translate(n,r),t.rotate(-e.textRotation),t.translate(-n,-r)}}function T(t,e,i,n,o,s,l,u){var h=n.rich[i.styleName]||{};h.text=i.text;var c=i.textVerticalAlign,d=s+o/2;"top"===c?d=s+i.height/2:"bottom"===c&&(d=s+o-i.height/2),!i.isLineHolder&&I(h)&&C(t,e,h,"right"===u?l-i.width:"center"===u?l-i.width/2:l,d-i.height/2,i.width,i.height);var f=i.textPadding;f&&(l=R(l,u,f),d-=i.height/2-f[2]-i.textHeight/2),k(e,"shadowBlur",a(h.textShadowBlur,n.textShadowBlur,0)),k(e,"shadowColor",h.textShadowColor||n.textShadowColor||"transparent"),k(e,"shadowOffsetX",a(h.textShadowOffsetX,n.textShadowOffsetX,0)),k(e,"shadowOffsetY",a(h.textShadowOffsetY,n.textShadowOffsetY,0)),k(e,"textAlign",u),k(e,"textBaseline","middle"),k(e,"font",i.font||m);var p=O(h.textStroke||n.textStroke,v),g=P(h.textFill||n.textFill),v=r(h.textStrokeWidth,n.textStrokeWidth);p&&(k(e,"lineWidth",v),k(e,"strokeStyle",p),e.strokeText(i.text,l,d)),g&&(k(e,"fillStyle",g),e.fillText(i.text,l,d))}function I(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function C(t,e,i,n,r,a,o){var s=i.textBackgroundColor,h=i.textBorderWidth,f=i.textBorderColor,p=l(s);if(k(e,"shadowBlur",i.textBoxShadowBlur||0),k(e,"shadowColor",i.textBoxShadowColor||"transparent"),k(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),k(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||h&&f){e.beginPath();var g=i.textBorderRadius;g?c.buildPath(e,{x:n,y:r,width:a,height:o,r:g}):e.rect(n,r,a,o),e.closePath()}if(p)if(k(e,"fillStyle",s),null!=i.fillOpacity){var v=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=v}else e.fill();else if(u(s)){var m=s.image;(m=d.createOrUpdateImage(m,null,t,D,s))&&d.isImageReady(m)&&e.drawImage(m,n,r,a,o)}if(h&&f)if(k(e,"lineWidth",h),k(e,"strokeStyle",f),null!=i.strokeOpacity){v=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=v}else e.stroke()}function D(t,e){e.image=t}function A(t,e,i,n){var r=i.x||0,a=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)r=n.x+L(l[0],n.width),a=n.y+L(l[1],n.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(w,i,n):h.calculateTextPosition(w,i,n);r=u.x,a=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var c=i.textOffset;c&&(r+=c[0],a+=c[1])}return(t=t||{}).baseX=r,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function k(t,e,i){return t[e]=f(t,e,i),t[e]}function O(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function P(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function L(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function R(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}e.normalizeTextStyle=function(t){return S(t),o(t.rich,S),t},e.renderText=function(t,e,i,n,r,a){n.rich?function(t,e,i,n,r,a){a!==v&&(e.__attrCachedBy=g.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=h.parseRichText(i,n));!function(t,e,i,n,r){var a=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=A(b,t,n,r),c=u.baseX,d=u.baseY,f=u.textAlign,p=u.textVerticalAlign;M(e,n,r,c,d);var g=h.adjustTextX(c,o,f),v=h.adjustTextY(d,s,p),m=g,y=v;l&&(m+=l[3],y+=l[0]);var _=m+a;I(n)&&C(t,e,n,g,v,o,s);for(var x=0;x=0&&"right"===(w=D[z]).textAlign;)T(t,e,w,n,O,y,E,"right"),P-=w.width,E-=w.width,z--;for(R+=(a-(R-m)-(_-E)-P)/2;L<=z;)w=D[L],T(t,e,w,n,O,y,R+w.width/2,"center"),R+=w.width,L++;y+=O}}(t,e,o,n,r)}(t,e,i,n,r,a):function(t,e,i,n,r,a){"use strict";var o,s=I(n),l=!1,u=e.__attrCachedBy===g.PLAIN_TEXT;a!==v?(a&&(o=a.style,l=!s&&u&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(e.__attrCachedBy=g.NONE);var c=n.font||m;l&&c===(o.font||m)||(e.font=c);var d=t.__computedFont;t.__styleFont!==c&&(t.__styleFont=c,d=t.__computedFont=e.font);var p=n.textPadding,y=n.textLineHeight,_=t.__textCotentBlock;_&&!t.__dirtyText||(_=t.__textCotentBlock=h.parsePlainText(i,d,p,y,n.truncate));var w=_.outerHeight,S=_.lines,T=_.lineHeight,D=A(b,t,n,r),k=D.baseX,L=D.baseY,E=D.textAlign||"left",z=D.textVerticalAlign;M(e,n,r,k,L);var B=h.adjustTextY(L,w,z),N=k,F=B;if(s||p){var V=h.getWidth(i,d);p&&(V+=p[1]+p[3]);var H=h.adjustTextX(k,V,E);s&&C(t,e,n,H,B,V,w),p&&(N=R(k,E,p),F+=p[0])}e.textAlign=E,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var W=0;Wu&&(i*=u/(o=i+n),n*=u/o),r+a>u&&(r*=u/(o=r+a),a*=u/o),n+r>h&&(n*=h/(o=n+r),r*=h/o),i+a>h&&(i*=h/(o=i+a),a*=h/o),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+a,l+h),0!==a&&t.arc(s+a,l+h-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}},function(t,e,i){i(5).__DEV__;var n=i(0),r=n.each,a=n.filter,o=n.map,s=n.isArray,l=n.indexOf,u=n.isObject,h=n.isString,c=n.createHashMap,d=n.assert,f=n.clone,p=n.merge,g=n.extend,v=n.mixin,m=i(1),y=i(13),_=i(15),x=i(161),w=i(90),b=i(22).resetSourceDefaulter,S=y.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new y(i),this._optionManager=n},setOption:function(t,e){d(!("\0_ec_inner"in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):M.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&r(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,n=[];b(this),r(t,(function(t,i){null!=t&&(_.hasClass(i)?i&&n.push(i):e[i]=null==e[i]?f(t):p(e[i],t,!0))})),_.topologicalTravel(n,_.getAllClassMainTypes(),(function(n,a){var o=m.normalizeToArray(t[n]),l=m.mappingToExists(i.get(n),o);m.makeIdAndName(l),r(l,(function(t,e){var i=t.option;u(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=function(t,e,i){return e.type?e.type:i?i.subType:_.determineSubType(t,e)}(n,i,t.exist))}));var h=function(t,e){s(e)||(e=e?[e]:[]);var i={};return r(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}(i,a);e[n]=[],i.set(n,[]),r(l,(function(t,r){var a=t.exist,o=t.option;if(d(u(o)||a,"Empty component definition"),o){var s=_.getClass(n,t.keyInfo.subType,!0);if(a&&a.constructor===s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var l=g({dependentModels:h,componentIndex:r},t.keyInfo);a=new s(o,this,this,l),g(a,l),a.init(o,this,this,l),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);i.get(n)[r]=a,e[n][r]=a.option}),this),"series"===n&&T(this,i.get("series"))}),this),this._seriesIndicesMap=c(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=f(this.option);return r(t,(function(e,i){if(_.hasClass(i)){for(var n=(e=m.normalizeToArray(e)).length-1;n>=0;n--)m.isIdInner(e[n])&&e.splice(n,1);t[i]=e}})),delete t["\0_ec_inner"],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,r=t.id,u=t.name,h=this._componentsMap.get(e);if(!h||!h.length)return[];if(null!=n)s(n)||(n=[n]),i=a(o(n,(function(t){return h[t]})),(function(t){return!!t}));else if(null!=r){var c=s(r);i=a(h,(function(t){return c&&l(r,t.id)>=0||!c&&t.id===r}))}else if(null!=u){var d=s(u);i=a(h,(function(t){return d&&l(u,t.name)>=0||!d&&t.name===u}))}else i=h.slice();return I(i,t)},findComponents:function(t){var e,i,n,r,o,s=t.query,l=t.mainType,u=(i=l+"Index",n=l+"Id",r=l+"Name",!(e=s)||null==e[i]&&null==e[n]&&null==e[r]?null:{mainType:l,index:e[i],id:e[n],name:e[r]}),h=u?this.queryComponents(u):this._componentsMap.get(l);return o=I(h,t),t.filter?a(o,t.filter):o},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each((function(t,n){r(t,(function(t,r){e.call(i,n,t,r)}))}));else if(h(t))r(n.get(t),e,i);else if(u(t)){var a=this.findComponents(t);r(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){r(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){r(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){r(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)}),this)},eachRawSeriesByType:function(t,e,i){return r(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){T(this,a(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;T(this,e.get("series"));var i=[];e.each((function(t,e){i.push(e)})),_.topologicalTravel(i,_.getAllClassMainTypes(),(function(i,n){r(e.get(i),(function(e){("series"!==i||!function(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}(e,t))&&e.restoreData()}))}))}});function M(t){var e,i,n;t=t,this.option={},this.option["\0_ec_inner"]=1,this._componentsMap=c({series:[]}),this._seriesIndices,this._seriesIndicesMap,e=t,i=this._theme.option,n=e.color&&!e.colorLayer,r(i,(function(t,i){"colorLayer"===i&&n||_.hasClass(i)||("object"==typeof t?e[i]=e[i]?p(e[i],t,!1):f(t):null==e[i]&&(e[i]=t))})),p(t,x,!1),this.mergeOption(t)}function T(t,e){t._seriesIndicesMap=c(t._seriesIndices=o(e,(function(t){return t.componentIndex}))||[])}function I(t,e){return e.hasOwnProperty("subType")?a(t,(function(t){return t.subType===e.subType})):t}v(S,w);var C=S;t.exports=C},function(t,e,i){var n=i(8),r=i(37),a=i(148),o=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,h=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},c=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(h(t)*h(e))},d=function(t,e){return(t[0]*e[1]1&&(h*=o(x),f*=o(x));var w=(r===a?-1:1)*o((h*h*(f*f)-h*h*(_*_)-f*f*(y*y))/(h*h*(_*_)+f*f*(y*y)))||0,b=w*h*_/f,S=w*-f*y/h,M=(t+i)/2+l(m)*b-s(m)*S,T=(e+n)/2+s(m)*b+l(m)*S,I=d([1,0],[(y-b)/h,(_-S)/f]),C=[(y-b)/h,(_-S)/f],D=[(-1*y-b)/h,(-1*_-S)/f],A=d(C,D);c(C,D)<=-1&&(A=u),c(C,D)>=1&&(A=0),0===a&&A>0&&(A-=2*u),1===a&&A<0&&(A+=2*u),v.addData(g,M,T,h,f,I,A,m,a)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function v(t,e){var i=function(t){if(!t)return new r;for(var e,i=0,n=0,a=i,o=n,s=new r,l=r.CMD,u=t.match(p),h=0;h1e-4)return p[0]=t-i,p[1]=e-r,g[0]=t+i,void(g[1]=e+r);if(h[0]=l(a)*i+t,h[1]=s(a)*r+e,c[0]=l(o)*i+t,c[1]=s(o)*r+e,v(p,h,c),m(g,h,c),(a%=u)<0&&(a+=u),(o%=u)<0&&(o+=u),a>o&&!f?o+=u:aa&&(d[0]=l(x)*i+t,d[1]=s(x)*r+e,v(p,d,p),m(g,d,g))}},function(t,e){var i=2*Math.PI;e.normalizeRadian=function(t){return(t%=i)<0&&(t+=i),t}},function(t,e){t.exports=function(t,e,i,n,r,a){if(a>e&&a>n||ar?o:0}},function(t,e,i){var n=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)}});t.exports=n},function(t,e,i){var n=i(8),r=i(86),a=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=a},function(t,e,i){var n=i(152),r=i(153);e.buildPath=function(t,e,i){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=r(a,o,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 h=s[2*u],c=s[2*u+1],d=a[(u+1)%l];t.bezierCurveTo(h[0],h[1],c[0],c[1],d[0],d[1])}}else{"spline"===o&&(a=n(a,i)),t.moveTo(a[0][0],a[0][1]);u=1;for(var f=a.length;ue)return t[n];return t[i-1]}(u,i):l;if((h=h||l)&&h.length){var c=h[r];return t&&(s[t]=c),n.colorIdx=(r+1)%h.length,c}}};t.exports=s},function(t,e,i){var n=i(0),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var a=function(t){n.each(r,(function(e){this[e]=n.bind(t[e],t)}),this)};t.exports=a},function(t,e,i){i(5).__DEV__;var n=i(0),r=i(6),a=i(9),o=a.formatTime,s=a.encodeHTML,l=a.addCommas,u=a.getTooltipMarker,h=i(1),c=i(15),d=i(90),f=i(166),p=i(10),g=p.getLayoutParams,v=p.mergeLayoutParam,m=i(54).createTask,y=i(22),_=y.prepareSource,x=y.getSource,w=i(28).retrieveRawValue,b=h.makeInner(),S=c.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=m({count:T,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),_(this);var r=this.getInitialData(t,i);D(r,this),this.dataTask.context.data=r,b(this).dataBeforeProcessed=r,M(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?g(t):{},a=this.subType;c.hasClass(a)&&(a+="Series"),n.merge(t,e.getTheme().get(this.subType)),n.merge(t,this.getDefaultOption()),h.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&v(t,r,i)},mergeOption:function(t,e){t=n.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&v(this.option,t,i),_(this);var r=this.getInitialData(t,e);D(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,b(this).dataBeforeProcessed=r,M(this)},fillDataTextStyle:function(t){if(t&&!n.isTypedArray(t))for(var e=["show"],i=0;i":"\n",d="richText"===r,f={},p=0;function g(t){return{renderMode:r,content:s(l(t)),style:f}}var v=this.getData(),m=v.mapDimension("defaultedTooltip",!0),y=m.length,_=this.getRawValue(t),x=n.isArray(_),b=v.getItemVisual(t,"color");n.isObject(b)&&b.colorStops&&(b=(b.colorStops[0]||{}).color),b=b||"transparent";var S=(y>1||x&&!y?function(i){var h=n.reduce(i,(function(t,e,i){var n=v.getDimensionInfo(i);return t|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),c=[];function g(t,i){var n=v.getDimensionInfo(i);if(n&&!1!==n.otherDims.tooltip){var g=n.type,m="sub"+a.seriesIndex+"at"+p,y=u({color:b,type:"subItem",renderMode:r,markerId:m}),_="string"==typeof y?y:y.content,x=(h?_+s(n.displayName||"-")+": ":"")+s("ordinal"===g?t+"":"time"===g?e?"":o("yyyy/MM/dd hh:mm:ss",t):l(t));x&&c.push(x),d&&(f[m]=b,++p)}}m.length?n.each(m,(function(e){g(w(v,t,e),e)})):n.each(i,g);var y=h?d?"\n":"
":"",_=y+c.join(y||", ");return{renderMode:r,content:_,style:f}}(_):g(y?w(v,t,m[0]):x?_[0]:_)).content,M=a.seriesIndex+"at"+p,T=u({color:b,type:"item",renderMode:r,markerId:M});f[M]=b,++p;var I=v.getName(t),C=this.name;h.isNameSpecified(this)||(C=""),C=C?s(C)+(e?": ":c):"";var D="string"==typeof T?T:T.content;return{html:e?D+C+S:C+D+(I?s(I)+": "+S:S),markers:f}},isAnimationEnabled:function(){if(r.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,r=d.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function M(t){var e=t.name;h.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),r=[];return n.each(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&r.push(i.displayName)})),r.join(" ")}(t)||e)}function T(t){return t.model.getRawData().count()}function I(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),C}function C(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function D(t,e){n.each(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,n.curry(A,e))}))}function A(t){var e=k(t);e&&e.setOutputEnd(this.count())}function k(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}n.mixin(S,f),n.mixin(S,d);var O=S;t.exports=O},function(t,e,i){var n=i(25),r=i(38),a=i(14),o=function(){this.group=new n,this.uid=r.getUID("viewComponent")},s=o.prototype={constructor:o,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},function(t,e,i){var n=i(0).each,r=i(25),a=i(38),o=i(14),s=i(1),l=i(4),u=i(54).createTask,h=i(95),c=s.makeInner(),d=h();function f(){this.group=new r,this.uid=a.getUID("viewChart"),this.renderTask=u({plan:m,reset:y}),this.renderTask.context={view:this}}f.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){v(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){v(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var p=f.prototype;function g(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!l.isHighDownDispatcher(t)))for(var n=0,r=t.childCount();nt[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,i,o){var l={},u=t[1]-t[0],h=l.interval=n.nice(u/e,!0);null!=i&&ho&&(h=l.interval=o);var c=l.intervalPrecision=a(h);return s(l.niceTickExtent=[r(Math.ceil(t[0]/h)*h,c),r(Math.floor(t[1]/h)*h,c)],t),l},e.getIntervalPrecision=a,e.fixExtent=s},function(t,e,i){var n=i(0),r=n.each;function a(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=function(t){var e=t&&t.visualMap;n.isArray(e)||(e=e?[e]:[]),r(e,(function(t){if(t){a(t,"splitList")&&!a(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&n.isArray(e)&&r(e,(function(t){n.isObject(t)&&(a(t,"start")&&!a(t,"min")&&(t.min=t.start),a(t,"end")&&!a(t,"max")&&(t.max=t.end))}))}}))}},function(t,e,i){i(15).registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}))},function(t,e,i){var n=i(2),r=i(0),a=i(104),o=i(30),s=n.PRIORITY.VISUAL.COMPONENT;function l(t,e,i,n){for(var r=e.targetVisuals[n],a=o.prepareVisualTypes(r),s={color:t.getData().getVisual("color")},l=0,u=a.length;l"],r.isArray(t)&&(t=t.slice(),n=!0),a=e?t:n?[h(t[0]),h(t[1])]:h(t),r.isString(u)?u.replace("{value}",n?a[0]:a).replace("{value2}",n?a[1]:a):r.isFunction(u)?n?u(t[0],t[1]):u(t):n?t[0]===l[0]?i[0]+" "+a[1]:t[1]===l[1]?i[1]+" "+a[0]:a[0]+" - "+a[1]:a;function h(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var a=n[r];if(!t.getDimensionInfo(a).isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,i={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),a=e.controller||(e.controller={});r.merge(n,i),r.merge(a,i);var l=this.isCategory();function u(i){f(e.color)&&!i.inRange&&(i.inRange={color:e.color.slice().reverse()}),i.inRange=i.inRange||{color:t.get("gradientColor")},p(this.stateList,(function(t){var e=i[t];if(r.isString(e)){var n=o.get(e,"active",l);n?(i[t]={},i[t][e]=n):delete i[t]}}),this)}u.call(this,n),u.call(this,a),function(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},p(n,(function(t,e){if(s.isValidType(e)){var i=o.get(e,"inactive",l);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,n,"inRange","outOfRange"),function(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 o=this.itemSize,s=t[a];s||(s=t[a]={color:l?n:[n]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&r.clone(i)||(l?o[0]:[o[0],o[0]])),s.symbol=c(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var h=-1/0;d(u,(function(t){t>h&&(h=t)})),s.symbolSize=c(u,(function(t){return v(t,[0,h],[0,o[0]],!0)}))}}),this)}.call(this,a)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m});t.exports=y},function(t,e,i){var n=i(0),r={get:function(t,e,i){var r=n.clone((a[t]||{})[e]);return i&&n.isArray(r)?r[r.length-1]:r}},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]}},o=r;t.exports=o},function(t,e,i){var n=i(2),r=i(0),a=i(4),o=i(9),s=i(10),l=i(30),u=n.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){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,i=o.normalizeCssArray(e.get("padding")||0),n=t.getBoundingRect();t.add(new a.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){var n=(i=i||{}).forceState,a=this.visualMapModel,o={};if("symbol"===e&&(o.symbol=a.get("itemSymbol")),"color"===e){var s=a.get("contentColor");o.color=s}function u(t){return o[t]}function h(t,e){o[t]=e}var c=a.controllerVisuals[n||a.getValueState(t)],d=l.prepareVisualTypes(c);return r.each(d,(function(n){var r=c[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",r=c.__alphaForOpacity),l.dependsOn(n,e)&&r&&r.applyVisual(t,u,h)})),o[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;s.positionElement(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:r.noop});t.exports=u},function(t,e,i){var n=i(0),r=i(10).getLayoutRect;e.getItemAlign=function(t,e,i){var n=t.option,a=n.align;if(null!=a&&"auto"!==a)return a;for(var o={width:e.getWidth(),height:e.getHeight()},s="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],h=[0,null,10],c={},d=0;d<3;d++)c[l[1-s][d]]=h[d],c[u[d]]=2===d?i[0]:n[u[d]];var f=[["x","width",3],["y","height",0]][s],p=r(c,o,n.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*o[f[1]]?0:1]},e.makeHighDownBatch=function(t,e){return n.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},function(t,e,i){i(2).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}))},function(t,e,i){var n=i(0),r=i(1);t.exports=function(t,e){var i,a=[],o=t.seriesIndex;if(null==o||!(i=e.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=r.queryDataIndex(s,t);if(null==l||l<0||n.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),h=i.coordinateSystem;if(i.getTooltipPosition)a=i.getTooltipPosition(l)||[];else if(h&&h.dataToPoint)a=h.dataToPoint(s.getValues(n.map(h.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var c=u.getBoundingRect().clone();c.applyTransform(u.transform),a=[c.x+c.width/2,c.y+c.height/2]}return{point:a,el:u}}},function(t,e,i){var n=i(0),r=i(6),a=(0,i(1).makeInner)(),o=n.each;function s(t,e,i){t.handler("leave",null,i)}function l(t,e,i,n){e.handler(t,i,n)}e.register=function(t,e,i){if(!r.node){var u=e.getZr();a(u).records||(a(u).records={}),function(t,e){if(a(t).initialized)return;function i(i,n){t.on(i,(function(i){var r=function(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}(e);o(a(t).records,(function(t){t&&n(t,i,r.dispatchAction)})),function(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]);i&&(i.dispatchAction=null,e.dispatchAction(i))}(r.pendings,e)}))}a(t).initialized=!0,i("click",n.curry(l,"click")),i("mousemove",n.curry(l,"mousemove")),i("globalout",s)}(u,e),(a(u).records[t]||(a(u).records[t]={})).handler=i}},e.unregister=function(t,e){if(!r.node){var i=e.getZr();(a(i).records||{})[t]&&(a(i).records[t]=null)}}},function(t,e,i){var n=i(0),r=i(4),a=i(12),o=i(9),s=i(18),l=i(29),u=i(233);function h(t,e,i,n,r){var s=c(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),l=i.getModel("label"),u=o.normalizeCssArray(l.get("padding")||0),h=l.getFont(),d=a.getBoundingRect(s,h),f=r.position,p=d.width+u[1]+u[3],g=d.height+u[0]+u[2],v=r.align;"right"===v&&(f[0]-=p),"center"===v&&(f[0]-=p/2);var m=r.verticalAlign;"bottom"===m&&(f[1]-=g),"middle"===m&&(f[1]-=g/2),function(t,e,i,n){var r=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,a)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(f,p,g,n);var y=l.get("backgroundColor");y&&"auto"!==y||(y=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:p,height:g,r:l.get("borderRadius")},position:f.slice(),style:{text:s,textFont:h,textFill:l.getTextColor(),textPosition:"inside",textPadding:u,fill:y,stroke:l.get("borderColor")||"transparent",lineWidth:l.get("borderWidth")||0,shadowBlur:l.get("shadowBlur"),shadowColor:l.get("shadowColor"),shadowOffsetX:l.get("shadowOffsetX"),shadowOffsetY:l.get("shadowOffsetY")},z2:10}}function c(t,e,i,r,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),s=a.formatter;if(s){var u={value:l.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};n.each(r,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&u.seriesData.push(r)})),n.isString(s)?o=s.replace("{value}",o):n.isFunction(s)&&(o=s(u))}return o}function d(t,e,i){var n=s.create();return s.rotate(n,n,i.rotation),s.translate(n,n,i.position),r.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}e.buildElStyle=function(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e},e.buildLabelElOption=h,e.getValueLabel=c,e.getTransformedPosition=d,e.buildCartesianSingleLabelElOption=function(t,e,i,n,r,a){var o=u.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get("label.margin"),h(e,n,r,a,{position:d(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})},e.makeLineShape=function(t,e,i){return{x1:t[i=i||0],y1:t[1-i],x2:e[i],y2:e[1-i]}},e.makeRectShape=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},e.makeSectorShape=function(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var n=i(243);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){var n=i(244),r=i(116),a=i(61),o=i(44),s=i(43),l=i(64),u=Object.getOwnPropertyDescriptor;e.f=i(16)?u:function(t,e){if(t=a(t),e=o(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!n.f.call(t,e),t[e])}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(43),r=i(61),a=i(247)(!1),o=i(120)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,u=[];for(i in s)i!=o&&n(s,i)&&u.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~a(u,i)||u.push(i));return u}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(121)("keys"),r=i(122);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t,e,i){var n=i(62),r=i(19),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(250)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(31),r=i(116);t.exports=i(16)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(19),r=i(123),a=i(43),o=i(122)("src"),s=i(253),l=(""+s).split("toString");i(62).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,i,s){var u="function"==typeof i;u&&(a(i,"name")||r(i,"name",e)),t[e]!==i&&(u&&(a(i,o)||r(i,o,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},function(t,e,i){var n=i(31).f,r=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in r||i(16)&&n(r,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n=i(0),r=i(7),a=i(128),o=i(24),s=i(17),l=i(130);function u(){s.stop(this.event)}function h(){}h.prototype.dispose=function(){};var c=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(t,e,i,n){o.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new h,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,a.call(this),this.setHandlerProxy(i)};function f(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,i))return!1;r.silent&&(n=!0),r=r.parent}return!n||"silent"}return!1}function p(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}d.prototype={constructor:d,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(n.each(c,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=p(this,e,i),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=n?{x:e,y:i}:this.findHover(e,i),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,i=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!i&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var r="on"+e,a=function(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:u}}(e,t,i);n&&(n[r]&&(a.cancelBubble=n[r].call(n,a)),n.trigger(e,a),n=n.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r={x:t,y:e},a=n.length-1;a>=0;a--){var o;if(n[a]!==i&&!n[a].ignore&&(o=f(n[a],t,e))&&(!r.topTarget&&(r.topTarget=n[a]),"silent"!==o)){r.target=n[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r,this.dispatchToElement({target:n.target},r,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){d.prototype[t]=function(e){var i,n,a=e.zrX,o=e.zrY,s=p(this,a,o);if("mouseup"===t&&s||(n=(i=this.findHover(a,o)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),n.mixin(d,o),n.mixin(d,a);var g=d;t.exports=g},function(t,e){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(t,e){return{target:t,topTarget:e&&e.topTarget}}i.prototype={constructor:i,_dragStart:function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(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,r=t.offsetY,a=i-this._x,o=r-this._y;this._x=i,this._y=r,e.drift(a,o,t),this.dispatchToElement(n(e,t),"drag",t.event);var s=this.findHover(i,r,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}};var r=i;t.exports=r},function(t,e){var i=Math.log(2);function n(t,e,r,a,o,s){var l=a+"-"+o,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var h=Math.round(Math.log((1<1&&r&&r.length>1){var s=a(r)/a(o);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((n=r)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},s=r;t.exports=s},function(t,e,i){var n=i(0),r=i(6),a=i(25),o=i(45);function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var i=0;i=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;t.exports=u},function(t,e,i){var n=i(71),r=i(73),a=i(0),o=a.isString,s=a.isFunction,l=a.isObject,u=a.isArrayLike,h=a.indexOf,c=function(){this.animators=[]};function d(t,e,i,n,r,a,h,c){o(n)?(a=r,r=n,n=0):s(r)?(a=r,r="linear",n=0):s(n)?(a=n,n=0):s(i)?(a=i,i=500):i||(i=500),t.stopAnimation(),function t(e,i,n,r,a,o,s){var h={},c=0;for(var d in r)r.hasOwnProperty(d)&&(null!=n[d]?l(r[d])&&!u(r[d])?t(e,i?i+"."+d:d,n[d],r[d],a,o,s):(s?(h[d]=n[d],f(e,i,d,r[d])):h[d]=r[d],c++):null==r[d]||s||f(e,i,d,r[d]));c>0&&e.animate(i,!1).when(null==a?500:a,h).delay(o||0)}(t,"",t,e,i,n,c);var d=t.animators.slice(),p=d.length;function g(){--p||a&&a()}p||a&&a();for(var v=0;v=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i15)break}l.__drawIndex=m,l.__drawIndex0&&t>n[0]){for(s=0;st);s++);o=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(o){var u=o.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)}else a("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n0?.01:0),this._needsManuallyCompositing),l.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+l.id),l!==r&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,e(i),r=l),s.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?r.merge(i[t],e,!0):i[t]=e;for(var n=0;n=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;ie&&h>n&&h>a&&h>s||h1&&(c=void 0,c=p[0],p[0]=p[1],p[1]=c),g=u.cubicAt(e,n,a,s,p[0]),y>1&&(v=u.cubicAt(e,n,a,s,p[1]))),2===y?xe&&s>n&&s>a||s=0&&h<=1){for(var c=0,d=u.quadraticAt(e,n,a,h),p=0;pi||s<-i)return 0;var u=Math.sqrt(i*i-s*s);f[0]=-u,f[1]=u;var h=Math.abs(n-r);if(h<1e-4)return 0;if(h%d<1e-4){n=0,r=d;var c=a?1:-1;return o>=f[0]+t&&o<=f[1]+t?c:0}if(a){u=n;n=l(r),r=l(u)}else n=l(n),r=l(r);n>r&&(r+=d);for(var p=0,g=0;g<2;g++){var v=f[g];if(v+t>o){var m=Math.atan2(s,v);c=a?1:-1;m<0&&(m=d+m),(m>=n&&m<=r||m+d>=n&&m+d<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),p+=c)}}return p}function y(t,e,i,n,l){for(var u,d,f=0,p=0,y=0,_=0,x=0,w=0;w1&&(i||(f+=h(p,y,_,x,n,l))),1===w&&(_=p=t[w],x=y=t[w+1]),b){case c.M:p=_=t[w++],y=x=t[w++];break;case c.L:if(i){if(r.containStroke(p,y,t[w],t[w+1],e,n,l))return!0}else f+=h(p,y,t[w],t[w+1],n,l)||0;p=t[w++],y=t[w++];break;case c.C:if(i){if(a.containStroke(p,y,t[w++],t[w++],t[w++],t[w++],t[w],t[w+1],e,n,l))return!0}else f+=g(p,y,t[w++],t[w++],t[w++],t[w++],t[w],t[w+1],n,l)||0;p=t[w++],y=t[w++];break;case c.Q:if(i){if(o.containStroke(p,y,t[w++],t[w++],t[w],t[w+1],e,n,l))return!0}else f+=v(p,y,t[w++],t[w++],t[w],t[w+1],n,l)||0;p=t[w++],y=t[w++];break;case c.A:var S=t[w++],M=t[w++],T=t[w++],I=t[w++],C=t[w++],D=t[w++];w+=1;var A=1-t[w++],k=Math.cos(C)*T+S,O=Math.sin(C)*I+M;w>1?f+=h(p,y,k,O,n,l):(_=k,x=O);var P=(n-S)*I/T+S;if(i){if(s.containStroke(S,M,I,C,C+D,A,e,P,l))return!0}else f+=m(S,M,I,C,C+D,A,P,l);p=Math.cos(C+D)*T+S,y=Math.sin(C+D)*I+M;break;case c.R:_=p=t[w++],x=y=t[w++];k=_+t[w++],O=x+t[w++];if(i){if(r.containStroke(_,x,k,x,e,n,l)||r.containStroke(k,x,k,O,e,n,l)||r.containStroke(k,O,_,O,e,n,l)||r.containStroke(_,O,_,x,e,n,l))return!0}else f+=h(k,x,k,O,n,l),f+=h(_,O,_,x,n,l);break;case c.Z:if(i){if(r.containStroke(p,y,_,x,e,n,l))return!0}else f+=h(p,y,_,x,n,l);p=_,y=x}}return i||(u=y,d=x,Math.abs(u-d)<1e-4)||(f+=h(p,y,_,x,n,l)||0),0!==f}e.contain=function(t,e,i){return y(t,0,!1,e,i)},e.containStroke=function(t,e,i,n){return y(t,e,!0,i,n)}},function(t,e){e.containStroke=function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0;if(o>e+s&&o>n+s||ot+s&&a>i+s||ae+d&&c>r+d&&c>o+d&&c>l+d||ct+d&&h>i+d&&h>a+d&&h>s+d||he+h&&u>r+h&&u>o+h||ut+h&&l>i+h&&l>a+h||li||d+co&&(o+=r);var p=Math.atan2(h,u);return p<0&&(p+=r),p>=a&&p<=o||p+r>=a&&p+r<=o}},function(t,e,i){var n=i(37),r=i(7).applyTransform,a=n.CMD,o=[[],[],[]],s=Math.sqrt,l=Math.atan2;t.exports=function(t,e){var i,n,u,h,c,d=t.data,f=a.M,p=a.C,g=a.L,v=a.R,m=a.A,y=a.Q;for(u=0,h=0;u=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;ai-2?i-1:f+1],c=t[f>i-3?i-1:f+2]);var v=p*p,m=p*v;a.push([r(u[0],g[0],h[0],c[0],p,v,m),r(u[1],g[1],h[1],c[1],p,v,m)])}return a}},function(t,e,i){var n=i(7),r=n.min,a=n.max,o=n.scale,s=n.distance,l=n.add,u=n.clone,h=n.sub;t.exports=function(t,e,i,n){var c,d,f,p,g=[],v=[],m=[],y=[];if(n){f=[1/0,1/0],p=[-1/0,-1/0];for(var _=0,x=t.length;_=e:"max"===i?t<=e:t===e})(r[o],t,n)||(a=!1)}})),a}c.prototype={constructor:c,setOption:function(t,e){t&&n.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&n.isTypedArray(t.data)&&n.setAsPrimitive(t.data)})),t=s(t);var i,h,c=this._optionBackup,f=d.call(this,t,e,!c);this._newBaseOption=f.baseOption,c?(i=c.baseOption,h=f.baseOption,o(h=h||{},(function(t,e){if(null!=t){var n=i[e];if(a.hasClass(e)){t=r.normalizeToArray(t),n=r.normalizeToArray(n);var o=r.mappingToExists(n,t);i[e]=l(o,(function(t){return t.option&&t.exist?u(t.exist,t.option,!0):t.exist||t.option}))}else i[e]=u(n,t,!0)}})),f.timelineOptions.length&&(c.timelineOptions=f.timelineOptions),f.mediaList.length&&(c.mediaList=f.mediaList),f.mediaDefault&&(c.mediaDefault=f.mediaDefault)):this._optionBackup=f},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=s(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,i,n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,u=[],h=[];if(!a.length&&!o)return h;for(var c=0,d=a.length;c=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var v=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&v>0||d<=0&&v<0){d+=v,f=v;break}}}return n[0]=d,n[1]=f,n}));o.hostModel.setData(l),e.data=l}))}t.exports=function(t){var e=r();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}})),e.each(o)}},function(t,e,i){var n=i(28).retrieveRawValue,r=i(9),a=r.getTooltipMarker,o=r.formatTpl,s=i(1).getTooltipRenderMode,l=/\{@(.+?)\}/g,u={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),l=i.getRawDataItem(t),u=i.getItemVisual(t,"color"),h=i.getItemVisual(t,"borderColor"),c=this.ecModel.getComponent("tooltip"),d=c&&c.get("renderMode"),f=s(d),p=this.mainType,g="series"===p,v=i.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:r,data:l,dataType:e,value:n,color:u,borderColor:h,dimensionNames:v?v.dimensionNames:null,encode:v?v.encode:null,marker:a({color:u,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,r,a){e=e||"normal";var s=this.getData(i),u=s.getItemModel(t),h=this.getDataParams(t,i);null!=r&&h.value instanceof Array&&(h.value=h.value[r]);var c=u.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);return"function"==typeof c?(h.status=e,h.dimensionIndex=r,c(h)):"string"==typeof c?o(c,h).replace(l,(function(e,i){var r=i.length;return"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1)),n(s,t,i)})):void 0},getRawValue:function(t,e){return n(this.getData(e),t)},formatTooltip:function(){}};t.exports=u},function(t,e,i){var n=i(53),r=i(0).isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),a=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(a),s=!r(o)||o instanceof n?null:o;o&&!s||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount())),i.setVisual("color",o);var l=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=t.get(l);if(i.setVisual("borderColor",u),!e.isSeriesFiltered(t)){s&&i.each((function(e){i.setItemVisual(e,"color",s(t.getDataParams(e)))}));return{dataEach:i.hasItemOption?function(t,e){var i=t.getItemModel(e),n=i.get(a,!0),r=i.get(l,!0);null!=n&&t.setItemVisual(e,"color",n),null!=r&&t.setItemVisual(e,"borderColor",r)}:null}}}};t.exports=a},function(t,e,i){var n=i(0),r=i(96),a=i(28).retrieveRawValue;t.exports=function(t,e){var i=e.getModel("aria");if(i.get("show"))if(i.get("description"))t.setAttribute("aria-label",i.get("description"));else{var o=0;e.eachSeries((function(t,e){++o}),this);var s,l=i.get("data.maxCount")||10,u=i.get("series.maxCount")||10,h=Math.min(o,u);if(!(o<1)){var c=function(){var t=e.getModel("title").option;t&&t.length&&(t=t[0]);return t&&t.text}();s=c?f(p("general.withTitle"),{title:c}):p("general.withoutTitle");var d=[];s+=f(p(o>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:o}),e.eachSeries((function(t,e){if(e1?"multiple":"single")+".";i=f(i=p(n?s+"withName":s+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(y=t.subType,r.series.typeNames[y]||"自定义图")});var u=t.getData();window.data=u,u.count()>l?i+=f(p("data.partialData"),{displayCnt:l}):i+=p("data.allData");for(var c=[],g=0;gi.blockIndex?i.step:null,a=n&&n.modDataCount;return{step:r,modBy:null!=a?Math.ceil(a/r):null,modDataCount:a}}},g.getPipeline=function(t){return this._pipelineMap.get(t)},g.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),r=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,a=t.get("large")&&n>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:r,modDataCount:o,large:a}},g.restorePipelines=function(t){var e=this,i=e._pipelineMap=s();t.eachSeries((function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),C(e,t,t.dataTask)}))},g.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;r(this._allHandlers,(function(n){var a=t.get(n.uid)||t.set(n.uid,[]);n.reset&&function(t,e,i,n,r){var a=i.seriesTaskMap||(i.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(h):o?n.eachRawSeriesByType(o,h):l&&l(n,r).each(h);function h(i){var o=i.uid,s=a.get(o)||a.set(o,u({plan:b,reset:S,count:I}));s.context={model:i,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},C(t,i,s)}var c=t._pipelineMap;a.each((function(t,e){c.get(e)||(t.dispose(),a.removeKey(e))}))}(this,n,a,e,i),n.overallReset&&function(t,e,i,n,a){var o=i.overallTask=i.overallTask||u({reset:y});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),h=e.seriesType,c=e.getTargetSeries,d=!0,f=e.modifyOutputEnd;h?n.eachRawSeriesByType(h,p):c?c(n,a).each(p):(d=!1,r(n.getSeries(),p));function p(e){var i=e.uid,n=l.get(i);n||(n=l.set(i,u({reset:_,onDirty:w})),o.dirty()),n.context={model:e,overallProgress:d,modifyOutputEnd:f},n.agent=o,n.__block=d,C(t,e,n)}var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}(this,n,a,e,i)}),this)},g.prepareView=function(t,e,i,n){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=i,a.api=n,r.__block=!t.incrementalPrepareRender,C(this,e,r)},g.performDataProcessorTasks=function(t,e){v(this,this._dataProcessorHandlers,t,e,{block:!0})},g.performVisualTasks=function(t,e,i){v(this,this._visualHandlers,t,e,i)},g.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},g.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var m=g.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function y(t){t.overallReset(t.ecModel,t.api,t.payload)}function _(t,e){return t.overallProgress&&x}function x(){this.agent.dirty(),this.getDownstream().dirty()}function w(){this.agent&&this.agent.dirty()}function b(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function S(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=f(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?a(e,(function(t,e){return T(e)})):M}var M=T(0);function T(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a=4&&(u={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(u&&null!=o&&null!=l&&(h=z(u,o,l),!e.ignoreViewBox)){var f=r;(r=new n).add(f),f.scale=h.scale.slice(),f.position=h.position.slice()}return e.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:u,viewBoxTransform:h}},T.prototype._parseNode=function(t,e){var i,n,r=t.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(n=C[r]){var a=n.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else(n=I[r])&&(i=n.call(this,t,e),e.add(i));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},T.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var r=new a({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});D(e,r),O(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var I={g:function(t,e){var i=new n;return D(e,i),O(t,i,this._defs),i},rect:function(t,e){var i=new s;return D(e,i),O(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new o;return D(e,i),O(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new u;return D(e,i),O(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new l;return D(e,i),O(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=A(i));var n=new c({shape:{points:i||[]}});return D(e,n),O(t,n,this._defs),n},polyline:function(t,e){var i=new h;D(e,i),O(t,i,this._defs);var n=t.getAttribute("points");return n&&(n=A(n)),new d({shape:{points:n||[]}})},image:function(t,e){var i=new r;return D(e,i),O(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,r=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new n;return D(e,s),O(t,s,this._defs),s},tspan:function(t,e){var i=t.getAttribute("x"),r=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=r&&(this._textY=parseFloat(r));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new n;return D(e,s),O(t,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(t,e){var i=t.getAttribute("d")||"",n=v(i);return D(e,n),O(t,n,this._defs),n}},C={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new f(e,i,n,r);return function(t,e){var i=t.firstChild;for(;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var r=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,r)}i=i.nextSibling}}(t,a),a},radialgradient:function(t){}};function D(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),x(e.__inheritedStyle,t.__inheritedStyle))}function A(t){for(var e=w(t).split(S),i=[],n=0;n0;a-=2){var o=r[a],s=r[a-1];switch(n=n||g.create(),s){case"translate":o=w(o).split(S),g.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=w(o).split(S),g.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=w(o).split(S),g.rotate(n,n,parseFloat(o[0]));break;case"skew":o=w(o).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":o=w(o).split(S);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5])}}e.setLocalTransform(n)}}(t,e),_(r,function(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n,r={};E.lastIndex=0;for(;null!=(n=E.exec(e));)r[n[1]]=n[2];for(var a in k)k.hasOwnProperty(a)&&null!=r[a]&&(i[k[a]]=r[a]);return i}(t)),!n))for(var o in k)if(k.hasOwnProperty(o)){var s=t.getAttribute(o);null!=s&&(r[k[o]]=s)}var l=a?"textFill":"fill",u=a?"textStroke":"stroke";e.style=e.style||new p;var h=e.style;null!=r.fill&&h.set(l,L(r.fill,i)),null!=r.stroke&&h.set(u,L(r.stroke,i)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&h.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&h.set(t,r[t])})),r.lineDash&&(e.style.lineDash=w(r.lineDash).split(S)),h[u]&&"none"!==h[u]&&(e[u]=!0),e.__inheritedStyle=r}var P=/url\(\s*#(.*?)\)/;function L(t,e){var i=e&&t&&t.match(P);return i?e[w(i[1])]:t}var R=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var E=/([^\s:;]+)\s*:\s*([^:;]+)/g;function z(t,e,i){var n=e/t.width,r=i/t.height,a=Math.min(n,r);return{scale:[a,a],position:[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+i/2]}}e.parseXML=M,e.makeViewBoxTransform=z,e.parseSVG=function(t,e){return(new T).parse(t,e)}},function(t,e,i){var n=i(8).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*i,l=o*i;t.moveTo(n-a,r),t.bezierCurveTo(n-a,r-l,n-s,r-o,n,r-o),t.bezierCurveTo(n+s,r-o,n+a,r-l,n+a,r),t.bezierCurveTo(n+a,r+l,n+s,r+o,n,r+o),t.bezierCurveTo(n-s,r+o,n-a,r+l,n-a,r),t.closePath()}});t.exports=n},function(t,e,i){var n=i(66);e.zrender=n;var r=i(18);e.matrix=r;var a=i(7);e.vector=a;var o=i(0),s=i(20);e.color=s;var l=i(4),u=i(3);e.number=u;var h=i(9);e.format=h;var c=i(55);c.throttle;e.throttle=c.throttle;var d=i(178);e.helper=d;var f=i(187);e.parseGeoJSON=f;var p=i(56);e.List=p;var g=i(13);e.Model=g;var v=i(190);e.Axis=v;var m=i(6);e.env=m;var y=f,_={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){_[t]=o[t]}));var x={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){x[t]=l[t]})),e.parseGeoJson=y,e.util=_,e.graphic=x},function(t,e,i){var n=i(0),r=i(97),a=i(29),o=i(186),s=i(13),l=i(10);l.getLayoutRect;e.getLayoutRect=l.getLayoutRect;var u=i(59),h=u.enableDataStack,c=u.isDimensionStacked,d=u.getStackedDimension,f=i(99);e.completeDimensions=f;var p=i(58);e.createDimensions=p;var g=i(41);e.createSymbol=g.createSymbol;var v={isDimensionStacked:c,enableDataStack:h,getStackedDimension:d};e.createList=function(t){return r(t.getSource(),t)},e.dataStack=v,e.createScale=function(t,e){var i=e;s.isInstance(e)||(i=new s(e),n.mixin(i,o));var r=a.createScaleByModel(i);return r.setExtent(t[0],t[1]),a.niceScaleExtent(r,i),r},e.mixinAxisModelCommonMethods=function(t){n.mixin(t,o)}},function(t,e){function i(t){return t}function n(t,e,n,r,a){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=a}function r(t,e,i,n,r){for(var a=0;a0&&(o=null===o?l:Math.min(o,l))}i[r]=o}}return i}(t),i=[];return n.each(t,(function(t){var n,a=t.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)n=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,h=e[s],c=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),f=Math.abs(d[1]-d[0]);n=h?c/f*h:c}else{var p=t.getData();n=Math.abs(o[1]-o[0])/p.count()}var g=r(t.get("barWidth"),n),v=r(t.get("barMaxWidth"),n),m=r(t.get("barMinWidth")||1,n),y=t.get("barGap"),_=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:y,barCategoryGap:_,axisKey:u(a),stackId:l(t)})})),d(i)}function d(t){var e={};n.each(t,(function(t,i){var n=t.axisKey,r=t.bandWidth,a=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[n]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var h=t.barMinWidth;h&&(o[s].minWidth=h);var c=t.barGap;null!=c&&(a.gap=c);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var i={};return n.each(e,(function(t,e){i[e]={};var a=t.stacks,o=t.bandWidth,s=r(t.categoryGap,o),l=r(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),n.each(a,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,h--}else{var n=c;e&&en&&(n=i),n!==c&&(t.width=n,u-=n+l*n,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var d,f=0;n.each(a,(function(t,e){t.width||(t.width=c),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(a,(function(t,n){i[e][n]=i[e][n]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+l)}))})),i}function f(t,e,i){if(t&&e){var n=t[u(e)];return null!=n&&null!=i&&(n=n[l(i)]),n}}var p={seriesType:"bar",plan:o(),reset:function(t){if(g(t)&&v(t)){var e=t.getData(),i=t.coordinateSystem,n=i.grid.getRect(),r=i.getBaseAxis(),a=i.getOtherAxis(r),o=e.mapDimension(a.dim),l=e.mapDimension(r.dim),u=a.isHorizontal(),h=u?0:1,d=f(c([t]),r,t).width;return d>.5||(d=.5),{progress:function(t,e){var c,f=t.count,p=new s(2*f),g=new s(2*f),v=new s(f),y=[],_=[],x=0,w=0;for(;null!=(c=t.next());)_[h]=e.get(o,c),_[1-h]=e.get(l,c),y=i.dataToPoint(_,null,y),g[x]=u?n.x+n.width:y[0],p[x++]=y[0],g[x]=u?y[1]:n.y+n.height,p[x++]=y[1],v[w++]=c;e.setLayout({largePoints:p,largeDataIndices:v,largeBackgroundPoints:g,barWidth:d,valueAxisStart:m(r,a,!1),backgroundStart:u?n.x:n.y,valueAxisHorizontal:u})}}}}};function g(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function v(t){return t.pipelineContext&&t.pipelineContext.large}function m(t,e,i){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=function(t){var e=[],i=t.axis;if("category"===i.type){for(var r=i.getBandWidth(),a=0;a=0?"p":"n",P=w;if(_&&(o[h][k]||(o[h][k]={p:w,n:w}),P=o[h][k][O]),x)M=P,T=(D=i.dataToPoint([A,k]))[1]+d,I=D[0]-w,C=f,Math.abs(I)i&&(s=i);var l=f.length,c=function(t,e,i,n){for(;i>>1;t[r][1]0;)n*=10;var r=[a.round(d(e[0]/n)*n),a.round(c(e[1]/n)*n)];this._interval=n,this._niceExtent=r}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function v(t,e){return h(t,u(e))}n.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var m=g;t.exports=m},function(t,e,i){var n=i(0),r={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!n.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&&"function"!=typeof i&&!n.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:n.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};t.exports=r},function(t,e,i){var n=i(0),r=i(188);function a(t,e,i){for(var n=[],r=e[0],a=e[1],o=0;o>1^-(1&s),l=l>>1^-(1&l),r=s+=r,a=l+=a,n.push([s/i,l/i])}return n}t.exports=function(t,e){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n0})),(function(t){var i=t.properties,a=t.geometry,o=a.coordinates,s=[];"Polygon"===a.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===a.type&&n.each(o,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new r(i[e||"name"],s,i.cp);return l.properties=i,l}))}},function(t,e,i){var n=i(11),r=i(81),a=i(7),o=i(189);function s(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],o=[-e,-e],s=[],l=[],u=this.geometries,h=0;h=i&&t<=n},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(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,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&v(i=i.slice(),n.count()),s(t,p,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&v(i=i.slice(),n.count());var r=s(t,i,p,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=c(this,e).ticks,n=a(i,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,e,i,n){var a=e.length;if(!t.onBand||i||!a)return;var o,s,l=t.getExtent();if(1===a)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var h=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/h;r(e,(function(t){t.coord-=c/2}));var d=t.scale.getExtent();s=1+d[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*s},e.push(o)}var f=l[0]>l[1];p(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift());n&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]});p(l[1],o.coord)&&(n?o.coord=l[1]:e.pop());n&&p(o.coord,l[1])&&e.push({coord:l[1]});function p(t,e){return t=u(t),e=u(e),f?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return a(e,(function(t){return a(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var m=g;t.exports=m},function(t,e,i){var n=i(0),r=i(12),a=i(1).makeInner,o=i(29),s=o.makeLabelFormatter,l=o.getOptionCategoryInterval,u=o.shouldShowAllLabels,h=a();function c(t,e){var i,r,a=d(t,"labels"),o=l(e),s=f(a,o);return s||(n.isFunction(o)?i=v(t,o):(r="auto"===o?function(t){var e=h(t).autoInterval;return null!=e?e:h(t).autoInterval=t.calculateCategoryInterval()}(t):o,i=g(t,r)),p(a,o,{labels:i,labelCategoryInterval:r}))}function d(t,e){return h(t)[e]||(h(t)[e]=[])}function f(t,e){for(var i=0;i1&&d/h>2&&(c=Math.round(Math.ceil(c/h)*h));var f=u(t),p=o.get("showMinLabel")||f,g=o.get("showMaxLabel")||f;p&&c!==a[0]&&m(a[0]);for(var v=c;v<=a[1];v+=h)m(v);function m(t){l.push(i?t:{formattedLabel:n(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&v-h!==a[1]&&m(a[1]),l}function v(t,e,i){var r=t.scale,a=s(t),o=[];return n.each(r.getTicks(),(function(t){var n=r.getLabel(t);e(t,n)&&o.push(i?t:{formattedLabel:a(t),rawLabel:n,tickValue:t})})),o}e.createAxisLabels=function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),i=c(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(t):function(t){var e=t.scale.getTicks(),i=s(t);return{labels:n.map(e,(function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}(t)},e.createAxisTicks=function(t,e){return"category"===t.type?function(t,e){var i,r,a=d(t,"ticks"),o=l(e),s=f(a,o);if(s)return s;e.get("show")&&!t.scale.isBlank()||(i=[]);if(n.isFunction(o))i=v(t,o,!0);else if("auto"===o){var u=c(t,t.getLabelModel());r=u.labelCategoryInterval,i=n.map(u.labels,(function(t){return t.tickValue}))}else i=g(t,r=o,!0);return p(a,o,{ticks:i,tickCategoryInterval:r})}(t,e):{ticks:t.scale.getTicks()}},e.calculateCategoryInterval=function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=s(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),l=a.count();if(o[1]-o[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=o[0],d=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(d*Math.cos(n)),p=Math.abs(d*Math.sin(n)),g=0,v=0;c<=o[1];c+=u){var m,y,_=r.getBoundingRect(i(c),e.font,"center","top");m=1.3*_.width,y=1.3*_.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var x=g/f,w=v/p;isNaN(x)&&(x=1/0),isNaN(w)&&(w=1/0);var b=Math.max(0,Math.floor(Math.min(x,w))),S=h(t.model),M=t.getExtent(),T=S.lastAutoInterval,I=S.lastTickCount;return null!=T&&null!=I&&Math.abs(T-b)<=1&&Math.abs(I-l)<=1&&T>b&&S.axisExtend0===M[0]&&S.axisExtend1===M[1]?b=T:(S.lastTickCount=l,S.lastAutoInterval=b,S.axisExtend0=M[0],S.axisExtend1=M[1]),b}},function(t,e,i){var n=i(2),r=i(0);i(193),i(197);var a=i(198),o=i(199),s=i(200),l=i(202);a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(o("pie")),n.registerLayout(r.curry(s,"pie")),n.registerProcessor(l("pie"))},function(t,e,i){var n=i(2),r=i(194),a=i(0),o=i(1),s=i(3).getPercentWithPrecision,l=i(195),u=i(28).retrieveRawAttr,h=i(22).makeSeriesEncodeForNameBased,c=i(196),d=n.extendSeriesModel({type:"series.pie",init:function(t){d.superApply(this,"init",arguments),this.legendVisualProvider=new c(a.bind(this.getData,this),a.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){d.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(h,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();n=0},this.indexOfName=function(e){return t().indexOfName(e)},this.getItemVisual=function(e,i){return t().getItemVisual(e,i)}};t.exports=i},function(t,e,i){var n=i(0),r=i(4),a=i(94);function o(t,e,i,n){var r=e.getData(),a=this.dataIndex,o=r.getName(a),l=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),r.each((function(t){s(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),l,i)}))}function s(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=i?n:0,s=[Math.cos(a)*o,Math.sin(a)*o];r?t.animate().when(200,{position:s}).start("bounceOut"):t.attr("position",s)}function l(t,e){r.Group.call(this);var i=new r.Sector({z2:2}),n=new r.Polyline,a=new r.Text;this.add(i),this.add(n),this.add(a),this.updateData(t,e,!0)}var u=l.prototype;u.updateData=function(t,e,i){var a=this.childAt(0),o=this.childAt(1),l=this.childAt(2),u=t.hostModel,h=t.getItemModel(e),c=t.getItemLayout(e),d=n.extend({},c);d.label=null;var f=u.getShallow("animationTypeUpdate");i?(a.setShape(d),"scale"===u.getShallow("animationType")?(a.shape.r=c.r0,r.initProps(a,{shape:{r:c.r}},u,e)):(a.shape.endAngle=c.startAngle,r.updateProps(a,{shape:{endAngle:c.endAngle}},u,e))):"expansion"===f?a.setShape(d):r.updateProps(a,{shape:d},u,e);var p=t.getItemVisual(e,"color");a.useStyle(n.defaults({lineJoin:"bevel",fill:p},h.getModel("itemStyle").getItemStyle())),a.hoverStyle=h.getModel("emphasis.itemStyle").getItemStyle();var g=h.getShallow("cursor");g&&a.attr("cursor",g),s(this,t.getItemLayout(e),u.isSelected(t.getName(e)),u.get("selectedOffset"),u.get("animation"));var v=!i&&"transition"===f;this._updateLabel(t,e,v),this.highDownOnUpdate=u.get("silent")?null:function(t,e){var i=u.isAnimationEnabled()&&h.get("hoverAnimation");"emphasis"===e?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,i&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r+u.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,i&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r}},300,"elasticOut")))},r.setHoverStyle(this)},u._updateLabel=function(t,e,i){var n=this.childAt(1),a=this.childAt(2),o=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e).label,u=t.getItemVisual(e,"color");if(!l||isNaN(l.x)||isNaN(l.y))a.ignore=a.normalIgnore=a.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0;else{var h={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},c={x:l.x,y:l.y};i?(r.updateProps(n,{shape:h},o,e),r.updateProps(a,{style:c},o,e)):(n.attr({shape:h}),a.attr({style:c})),a.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var d=s.getModel("label"),f=s.getModel("emphasis.label"),p=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=t.getItemVisual(e,"color");r.setLabelStyle(a.style,a.hoverStyle={},d,f,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:l.text,autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),a.ignore=a.normalIgnore=!d.get("show"),a.hoverIgnore=!f.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!g.get("show"),n.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(p.getModel("lineStyle").getLineStyle()),n.hoverStyle=g.getModel("lineStyle").getLineStyle();var v=p.get("smooth");v&&!0===v&&(v=.4),n.setShape({smooth:v})}},n.inherits(l,r.Group);var h=a.extend({type:"pie",init:function(){var t=new r.Group;this._sectorGroup=t},render:function(t,e,i,r){if(!r||r.from!==this.uid){var a=t.getData(),s=this._data,u=this.group,h=e.get("animation"),c=!s,d=t.get("animationType"),f=t.get("animationTypeUpdate"),p=n.curry(o,this.uid,t,h,i),g=t.get("selectedMode");if(a.diff(s).add((function(t){var e=new l(a,t);c&&"scale"!==d&&e.eachChild((function(t){t.stopAnimation(!0)})),g&&e.on("click",p),a.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){var i=s.getItemGraphicEl(e);c||"transition"===f||i.eachChild((function(t){t.stopAnimation(!0)})),i.updateData(a,t),i.off("click"),g&&i.on("click",p),u.add(i),a.setItemGraphicEl(t,i)})).remove((function(t){var e=s.getItemGraphicEl(t);u.remove(e)})).execute(),h&&a.count()>0&&(c?"scale"!==d:"transition"!==f)){for(var v=a.getItemLayout(0),m=1;isNaN(v.startAngle)&&m=i.r0}}});t.exports=h},function(t,e,i){var n=i(2),r=i(0);t.exports=function(t,e){r.each(e,(function(e){e.update="updateView",n.registerAction(e,(function(i,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:i},(function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each((function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1}))})),{name:i.name,selected:r,seriesId:i.seriesId}}))}))}},function(t,e,i){var n=i(0).createHashMap;t.exports=function(t){return{getTargetSeries:function(e){var i={},r=n();return e.eachSeriesByType(t,(function(t){t.__paletteScope=i,r.set(t.uid,t)})),r},reset:function(t,e){var i=t.getRawData(),n={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),i.each((function(e){var a,o=n[e],s=null!=o&&r.getItemVisual(o,"color",!0),l=null!=o&&r.getItemVisual(o,"borderColor",!0);if(s&&l||(a=i.getItemModel(e)),!s){var u=a.get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());null!=o&&r.setItemVisual(o,"color",u)}if(!l){var h=a.get("itemStyle.borderColor");null!=o&&r.setItemVisual(o,"borderColor",h)}}))}}}},function(t,e,i){var n=i(3),r=n.parsePercent,a=n.linearMap,o=i(10),s=i(201),l=i(0),u=2*Math.PI,h=Math.PI/180;t.exports=function(t,e,i,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),c=function(t,e){return o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,i),d=t.get("center"),f=t.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(d)||(d=[d,d]);var p=r(c.width,i.getWidth()),g=r(c.height,i.getHeight()),v=Math.min(p,g),m=r(d[0],p)+c.x,y=r(d[1],g)+c.y,_=r(f[0],v/2),x=r(f[1],v/2),w=-t.get("startAngle")*h,b=t.get("minAngle")*h,S=0;e.each(n,(function(t){!isNaN(t)&&S++}));var M=e.getSum(n),T=Math.PI/(M||S)*2,I=t.get("clockwise"),C=t.get("roseType"),D=t.get("stillShowZeroSum"),A=e.getDataExtent(n);A[0]=0;var k=u,O=0,P=w,L=I?1:-1;if(e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:I,cx:m,cy:y,r0:_,r:C?NaN:x,viewRect:c});else{(n="area"!==C?0===M&&D?T:t*T:u/S)l+o);a++)if(t[a].y+=n,a>e&&a+1t[a].y+t[a].height)return void c(a,n/2);c(i-1,n/2)}function c(e,i){for(var n=e;n>=0&&!(t[n].y-i0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function d(t,e,i,n,r,a){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var f,p=0,g=t.length,v=[],m=[],y=0;y=i?m.push(t[y]):v.push(t[y]);d(v,!1,e,i,n,r),d(m,!0,e,i,n,r)}function s(t){return"center"===t.position}t.exports=function(t,e,i,l,u,h){var c,d,f=t.getData(),p=[],g=!1,v=(t.get("minShowLabelAngle")||0)*a;f.each((function(a){var o=f.getItemLayout(a),s=f.getItemModel(a),l=s.getModel("label"),h=l.get("position")||s.get("emphasis.label.position"),m=l.get("distanceToLabelLine"),y=l.get("alignTo"),_=r(l.get("margin"),i),x=l.get("bleedMargin"),w=l.getFont(),b=s.getModel("labelLine"),S=b.get("length");S=r(S,i);var M=b.get("length2");if(M=r(M,i),!(o.angle0?"right":"left":k>0?"left":"right"}var H=l.get("rotate");P="number"==typeof H?H*(Math.PI/180):H?k<0?-A+Math.PI:-A:0,g=!!P,o.label={x:T,y:I,position:h,height:R.height,len:S,len2:M,linePoints:C,textAlign:D,verticalAlign:"middle",rotation:P,inside:E,labelDistance:m,labelAlignTo:y,labelMargin:_,bleedMargin:x,textRect:R,text:L,font:w},E||p.push(o.label)}})),!g&&t.get("avoidLabelOverlap")&&function(t,e,i,r,a,l,u,h){for(var c=[],d=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g=e[0]&&t<=e[1]}}(w,i.option.range):function(t,e,i){var n=t[1]-t[0],r=(e=o.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}))).length,a=0;return function(t){for(var n=a;n=0;n--){var o;if((o=e[n].interval)[0]<=t&&t<=o[1]){a=n;break}}return n>=0&&n0){var T=a(m)?s:l;m>0&&(m=m*S+b),_[x++]=T[M],_[x++]=T[M+1],_[x++]=T[M+2],_[x++]=T[M+3]*m*256}else x+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=n.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var r=t.getContext("2d");return r.clearRect(0,0,i,i),r.shadowOffsetX=i,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,r=n[i]||(n[i]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}};var a=r;t.exports=a},function(t,e,i){i(208),i(212)},function(t,e,i){var n=i(2),r=i(101);i(102),i(103),i(209),i(210),i(109),n.registerPreprocessor(r)},function(t,e,i){var n=i(0),r=i(105),a=i(3),o=[20,140],s=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=o[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=o[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):n.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),n.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=a.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=[],r=i.getData();r.each(this.getDataDimension(r),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getVisualMeta:function(t){var e=l(this,"outOfRange",this.getExtent()),i=l(this,"inRange",this.option.range.slice()),n=[];function r(e,i){n.push({value:e,color:t(e,i)})}for(var a=0,o=0,s=i.length,u=e.length;ot[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:r/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new s.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,r=i.handleThumbs,a=i.handleLabels;f([0,1],(function(o){var l=r[o];l.setStyle("fill",e.handlesColor[o]),l.position[1]=t[o];var u=s.applyTransform(i.handleLabelPoints[o],s.getTransform(l,this.group));a[o].setStyle({x:u[0],y:u[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(t,e,i,n){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,l=[0,o[1]],u=d(t,a,l,!0),h=this._shapes,c=h.indicator;if(c){c.position[1]=u,c.attr("invisible",!1),c.setShape("points",function(t,e,i,n){return t?[[0,-p(e,g(i,0))],[6,0],[0,p(e,g(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,u,o[1]));var f=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});c.setStyle("fill",f);var v=s.applyTransform(h.indicatorLabelPoint,s.getTransform(c,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",h.barGroup),_=this._orient;m.setStyle({text:(i||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===_?y:"middle",textAlign:"horizontal"===_?"center":y,x:v[0],y:v[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]=p(g(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 r=[0,n[1]],a=i.getExtent();t=p(g(r[0],t),r[1]);var o=function(t,e,i){var n=6,r=t.get("hoverLinkDataSize");r&&(n=d(r,e,i,!0)/2);return n}(i,a,r),s=[t-o,t+o],l=d(t,r,a,!0),u=[d(s[0],r,a,!0),d(s[1],r,a,!0)];s[0]r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var f=this._hoverLinkDataIndices,v=[];(e||y(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var m=c.compressBatches(f,v);this._dispatchHighDown("downplay",h.makeHighDownBatch(m[0],i)),this._dispatchHighDown("highlight",h.makeHighDownBatch(m[1],i))}},_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 r=n.getData(e.dataType),a=r.get(i.getDataDimension(r),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_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",h.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,r){var a=s.getTransform(e,r?null:this.group);return s[n.isArray(t)?"applyTransform":"transformDirection"](t,a,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()}});function m(t,e,i,n){return new s.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){a.stop(t.event)},ondragend:n})}function y(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function _(t){return"vertical"===t?"ns-resize":"ew-resize"}var x=v;t.exports=x},function(t,e){function i(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function n(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}t.exports=function(t,e,r,a,o,s){t=t||0;var l=r[1]-r[0];if(null!=o&&(o=n(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===a){var u=Math.abs(e[1]-e[0]);u=n(u,[0,l]),o=s=n(u,[o,s]),a=0}e[0]=n(e[0],r),e[1]=n(e[1],r);var h=i(e,a);e[a]+=t;var c=o||0,d=r.slice();h.sign<0?d[0]+=c:d[1]-=c,e[a]=n(e[a],d);var f=i(e,a);return null!=o&&(f.sign!==h.sign||f.spans&&(e[1-a]=e[a]+f.sign*s),e}},function(t,e,i){var n=i(2),r=i(101);i(102),i(103),i(213),i(214),i(109),n.registerPreprocessor(r)},function(t,e,i){i(5).__DEV__;var n=i(0),r=i(105),a=i(30),o=i(106),s=i(3).reformIntervals,l=r.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){l.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();u[this._mode].call(this),this._resetSelected(t,e);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=n.clone(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=n.map(this._pieceList,(function(t){t=n.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},i=a.listVisualTypes(),s=this.isCategory();function l(t,e,i){return t&&t[e]&&(n.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}n.each(t.pieces,(function(t){n.each(i,(function(i){t.hasOwnProperty(i)&&(e[i]=1)}))})),n.each(e,(function(e,i){var r=0;n.each(this.stateList,(function(e){r|=l(t,e,i)||l(t.target,e,i)}),this),!r&&n.each(this.stateList,(function(e){(t[e]||(t[e]={}))[i]=o.get(i,"inRange"===e?"active":"inactive",s)}))}),this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,r=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,n.each(r,(function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)}),this),"single"===i.selectedMode){var o=!1;n.each(r,(function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(o?a[i]=!1:o=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=n.clone(t)},getValueState:function(t){var e=a.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=[],r=i.getData();r.each(this.getDataDimension(r),(function(e,i){a.findPieceIndex(e,this._pieceList)===t&&n.push(i)}),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){if(!this.isCategory()){var e=[],i=[],r=this,a=this._pieceList.slice();if(a.length){var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),(o=a[a.length-1].interval[1])!==1/0&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return n.each(a,(function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])}),this),{stops:e,outerColors:i}}function l(n,a){var o=r.getRepresentValue({interval:n});a||(a=r.getValueState(o));var s=t(o,a);n[0]===-1/0?i[0]=s:n[1]===1/0?i[1]=s:e.push({value:n[0],color:s},{value:n[1],color:s})}}}),u={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var o=(r[1]-r[0])/a;+o.toFixed(i)!==o&&i<5;)i++;t.precision=i,o=+o.toFixed(i),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var l=0,u=r[0];l","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function h(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var c=l;t.exports=c},function(t,e,i){var n=i(0),r=i(107),a=i(4),o=i(41).createSymbol,s=i(10),l=i(108),u=r.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),r=e.textStyleModel,o=r.getFont(),l=r.getTextColor(),u=this._getItemAlign(),h=e.itemSize,c=this._getViewData(),d=c.endsText,f=n.retrieve(e.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],h,f,u),n.each(c.viewPieceList,(function(r){var s=r.piece,c=new a.Group;c.onclick=n.bind(this._onItemClick,this,s),this._enableHoverLink(c,r.indexInModelPieceList);var d=e.getRepresentValue(s);if(this._createItemSymbol(c,d,[0,0,h[0],h[1]]),f){var p=this.visualMapModel.getValueState(d);c.add(new a.Text({style:{x:"right"===u?-i:h[0]+i,y:h[1]/2,text:s.text,textVerticalAlign:"middle",textAlign:u,textFont:o,textFill:l,opacity:"outOfRange"===p?.5:1}}))}t.add(c)}),this),d&&this._renderEndsText(t,d[1],h,f,u),s.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.makeHighDownBatch(i.findTargetDataIndices(e),i)})}t.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.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,r){if(e){var o=new a.Group,s=this.visualMapModel.textStyleModel;o.add(new a.Text({style:{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?r:"center",text:e,textFont:s.getFont(),textFill:s.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=n.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),r=t.get("orient"),a=t.get("inverse");return("horizontal"===r?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(o(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,r=n.clone(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(r[a]=!0,n.each(r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});t.exports=u},function(t,e,i){i(216),i(217),i(218)},function(t,e,i){var n=i(0),r=i(10),a=i(3),o=i(39);function s(t,e,i){this._model=t}function l(t,e,i,n){var r=i.calendarModel,a=i.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem:null;return o===this?o[t](n):null}s.prototype={constructor:s,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=a.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getDay();return{y:e,m:i,d:n,day:r=Math.abs((r+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[i,7]:[7,i];n.each([0,1],(function(t){c(o,t)&&(s[a[t]]=o[t]*l[t])}));var u={width:e.getWidth(),height:e.getHeight()},h=this._rect=r.getLayoutRect(s,u);function c(t,e){return null!=t[e]&&"auto"!==t[e]}n.each([0,1],(function(t){c(o,t)||(o[t]=h[a[t]]/l[t])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){n.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),r=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=r.start.time&&i.timeo.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),r=n.getDate(),a=t[1].date.getDate();n.setDate(r+i-1);var o=n.getDate();if(o!==a)for(var s=n.getTime()-t[1].time>0?1:-1;(o=n.getDate())!==a&&(n.getTime()-t[1].time)*s>0;)i-=s,n.setDate(o-s);var l=Math.floor((i+t[0].day+6)/7),u=e?1-l:l-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var r=7*(t-1)-n.fweek+e,a=new Date(n.start.time);return a.setDate(n.start.d+r),this.getDateInfo(a)}},s.dimensions=s.prototype.dimensions,s.getDimensionsInfo=s.prototype.getDimensionsInfo,s.create=function(t,e){var i=[];return t.eachComponent("calendar",(function(n){var r=new s(n,t,e);i.push(r),n.coordinateSystem=r})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},o.register("calendar",s);var u=s;t.exports=u},function(t,e,i){var n=i(0),r=i(15),a=i(10),o=a.getLayoutParams,s=a.sizeCalculable,l=a.mergeLayoutParam,u=r.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var r=o(t);u.superApply(this,"init",arguments),h(t,r)},mergeOption:function(t,e){u.superApply(this,"mergeOption",arguments),h(this.option,t)}});function h(t,e){var i=t.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var r=n.map([0,1],(function(t){return s(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));l(t,e,{type:"box",ignoreSize:r})}var c=u;t.exports=c},function(t,e,i){var n=i(2),r=i(0),a=i(4),o=i(9),s=i(3),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},h=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient();this._renderDayRect(t,a,n),this._renderLines(t,a,o,n),this._renderYearText(t,a,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,a,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),s=n.getCellHeight(),l=e.start.time;l<=e.end.time;l=n.getNextNDay(l,1).time){var u=n.dataToRect([l],!1).tl,h=new a.Rect({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:r});i.add(h)}},_renderLines:function(t,e,i,n){var r=this,a=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=a.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=a.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,i);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,n)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,i),o,n),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,i),o,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-e/2,n[1][r]=n[1][r]+e/2,n},_drawSplitline:function(t,e,i){var n=new a.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 r=[],a=0;a<7;a++){var o=n.getNextNDay(e.time,a),s=n.dataToRect([o.time],!1);r[2*o.day]=s.tl,r[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?o.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,r){e=e.slice();var a=["center","bottom"];"bottom"===n?(e[1]+=r,a=["center","top"]):"left"===n?e[0]-=r:"right"===n?(e[0]+=r,a=["center","top"]):e[1]-=r;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,i,n){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,h=(l[0][1]+l[1][1])/2,c="horizontal"===i?0:1,d={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],h],right:[l[c][0],h]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var p=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:f},v=this._formatterLabel(p,g),m=new a.Text({z2:30});a.setTextStyle(m.style,r,{text:v}),m.attr(this._yearTextPositionControl(m,d[s],i,s,o)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=r,e&&(a="center"),"start"===n&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===n&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),u=n.get("position"),h=n.get("align"),c=[this._tlpoints,this._blpoints];r.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===u?0:1,f="horizontal"===e?0:1;s="start"===u?-s:s;for(var p="center"===h,g=0;g=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),h=u;t.exports=h},function(t,e,i){var n=i(2),r=i(0);function a(t,e,i){var n,a={},o="toggleSelected"===t;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var s=i.getData();r.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&n:a[e]=n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:a}:{name:e.name,selected:a}}n.registerAction("legendToggleSelect","legendselectchanged",r.curry(a,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",r.curry(a,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",r.curry(a,"inverseSelect")),n.registerAction("legendSelect","legendselected",r.curry(a,"select")),n.registerAction("legendUnSelect","legendunselected",r.curry(a,"unSelect"))},function(t,e,i){i(5).__DEV__;var n=i(2),r=i(0),a=i(41).createSymbol,o=i(4),s=i(224).makeBackground,l=i(10),u=r.curry,h=r.each,c=o.Group,d=n.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new c),this._backgroundEl,this.group.add(this._selectorGroup=new c),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var a=t.get("align"),o=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===o?"right":"left");var u=t.get("selector",!0),h=t.get("selectorPosition",!0);!u||h&&"auto"!==h||(h="horizontal"===o?"end":"start"),this.renderInner(a,t,e,i,u,o,h);var c=t.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},f=t.get("padding"),p=l.getLayoutRect(c,d,f),g=this.layoutInner(t,a,p,n,u,h),v=l.getLayoutRect(r.defaults({width:g.width,height:g.height},c),d,f);this.group.attr("position",[v.x-g.x,v.y-g.y]),this.group.add(this._backgroundEl=s(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,i,n,a,o,s){var l=this.getContentGroup(),d=r.createHashMap(),f=e.get("selectedMode"),m=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&m.push(t.id)})),h(e.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=i.getSeriesByName(o)[0];if(!d.get(o))if(s){var h=s.getData(),y=h.getVisual("color"),_=h.getVisual("borderColor");"function"==typeof y&&(y=y(s.getDataParams(0))),"function"==typeof _&&(_=_(s.getDataParams(0)));var x=h.getVisual("legendSymbol")||"roundRect",w=h.getVisual("symbol");this._createItem(o,a,r,e,x,w,t,y,_,f).on("click",u(p,o,null,n,m)).on("mouseover",u(g,s.name,null,n,m)).on("mouseout",u(v,s.name,null,n,m)),d.set(o,!0)}else i.eachRawSeries((function(i){if(!d.get(o)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),h=s.getItemVisual(l,"color"),c=s.getItemVisual(l,"borderColor");this._createItem(o,a,r,e,"roundRect",null,t,h,c,f).on("click",u(p,null,o,n,m)).on("mouseover",u(g,null,o,n,m)).on("mouseout",u(v,null,o,n,m)),d.set(o,!0)}}),this)}else l.add(new c({newline:!0}))}),this),a&&this._createSelector(a,e,n,o,s)},_createSelector:function(t,e,i,n,r){var a=this.getSelectorGroup();h(t,(function(t){!function(t){var n=t.type,r=new o.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var s=e.getModel("selectorLabel"),l=e.getModel("emphasis.selectorLabel");o.setLabelStyle(r.style,r.hoverStyle={},s,l,{defaultText:t.title,isRectText:!1}),o.setHoverStyle(r)}(t)}))},_createItem:function(t,e,i,n,s,l,u,h,d,p){var g=n.get("itemWidth"),v=n.get("itemHeight"),m=n.get("inactiveColor"),y=n.get("inactiveBorderColor"),_=n.get("symbolKeepAspect"),x=n.getModel("itemStyle"),w=n.isSelected(t),b=new c,S=i.getModel("textStyle"),M=i.get("icon"),T=i.getModel("tooltip"),I=T.parentModel,C=a(s=M||s,0,0,g,v,w?h:m,null==_||_);if(b.add(f(C,s,x,d,y,w)),!M&&l&&(l!==s||"none"===l)){var D=.8*v;"none"===l&&(l="circle");var A=a(l,(g-D)/2,(v-D)/2,D,D,w?h:m,null==_||_);b.add(f(A,l,x,d,y,w))}var k="left"===u?g+5:-5,O=u,P=n.get("formatter"),L=t;"string"==typeof P&&P?L=P.replace("{name}",null!=t?t:""):"function"==typeof P&&(L=P(t)),b.add(new o.Text({style:o.setTextStyle({},S,{text:L,x:k,y:v/2,textFill:w?S.getTextColor():m,textAlign:O,textVerticalAlign:"middle"})}));var R=new o.Rect({shape:b.getBoundingRect(),invisible:!0,tooltip:T.get("show")?r.extend({content:t,formatter:I.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},T.option):null});return b.add(R),b.eachChild((function(t){t.silent=!0})),R.silent=!p,this.getContentGroup().add(b),o.setHoverStyle(b),b.__legendDataIndex=e,b},layoutInner:function(t,e,i,n,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();l.box(t.get("orient"),o,t.get("itemGap"),i.width,i.height);var u=o.getBoundingRect(),h=[-u.x,-u.y];if(r){l.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===a?d[p]+=u[g]+f:h[p]+=c[g]+f,d[1-p]+=u[v]/2-c[v]/2,s.attr("position",d),o.attr("position",h);var y={x:0,y:0};return y[g]=u[g]+f+c[g],y[v]=Math.max(u[v],c[v]),y[m]=Math.min(0,c[m]+d[1-p]),y}return o.attr("position",h),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function f(t,e,i,n,r,a){var o;return"line"!==e&&e.indexOf("empty")<0?(o=i.getItemStyle(),t.style.stroke=n,a||(o.stroke=r)):o=i.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function p(t,e,i,n){v(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),g(t,e,i,n)}function g(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function v(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}t.exports=d},function(t,e,i){var n=i(10),r=n.getLayoutRect,a=n.box,o=n.positionElement,s=i(9),l=i(4);e.layout=function(t,e,i){var n=e.getBoxLayoutParams(),s=e.get("padding"),l={width:i.getWidth(),height:i.getHeight()},u=r(n,l,s);a(e.get("orient"),t,e.get("itemGap"),u.width,u.height),o(t,n,l,s)},e.makeBackground=function(t,e){var i=s.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new l.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}},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&&l<0)&&(o=g,l=p,r=h,a.length=0),s(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}(e,t),u=l.payloadBatch,h=l.snapToValue;u[0]&&null==a.seriesIndex&&n.extend(a,u[0]),!r&&t.snap&&o.containData(h)&&null!=h&&(e=h),i.showPointer(t,e,u,a),i.showTooltip(t,l,h)}else i.showPointer(t,e)}function c(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function d(t,e,i,n){var r=i.payloadBatch,o=e.axis,s=o.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var u=e.coordSys.model,h=a.makeKey(u),c=t.map[h];c||(c=t.map[h]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}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!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=function(t,e,i){var r=t.currTrigger,a=[t.x,t.y],g=t,v=t.dispatchAction||n.bind(i.dispatchAction,i),m=e.getComponent("axisPointer").coordSysAxesInfo;if(m){p(a)&&(a=o({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var y=p(a),_=g.axesInfo,x=m.axesInfo,w="leave"===r||p(a),b={},S={},M={list:[],map:{}},T={showPointer:l(c,S),showTooltip:l(d,M)};s(m.coordSysMap,(function(t,e){var i=y||t.containPoint(a);s(m.coordSysAxesInfo[e],(function(t,e){var n=t.axis,r=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(_,t);if(!w&&i&&(!_||r)){var o=r&&r.value;null!=o||y||(o=n.pointToData(a)),null!=o&&h(t,o,T,!1,b)}}))}));var I={};return s(x,(function(t,e){var i=t.linkGroup;i&&!S[e]&&s(i.axesInfo,(function(e,n){var r=S[n];if(e!==t&&r){var a=r.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,f(e),f(t)))),I[t.key]=a}}))})),s(I,(function(t,e){h(x[e],t,T,!0,b)})),function(t,e,i){var n=i.axesInfo=[];s(e,(function(e,i){var r=e.axisPointerModel.option,a=t[i];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(S,x,b),function(t,e,i,n){if(p(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(M,a,t,v),function(t,e,i){var r=i.getZr(),a=u(r).axisPointerLastHighlights||{},o=u(r).axisPointerLastHighlights={};s(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&s(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var l=[],h=[];n.each(a,(function(t,e){!o[e]&&h.push(t)})),n.each(o,(function(t,e){!a[e]&&l.push(t)})),h.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),l.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:l})}(x,0,i),b}}},function(t,e,i){var n=i(2).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,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=n},function(t,e,i){var n=i(2),r=i(111),a=n.extendComponentView({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),a=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";r.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){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},function(t,e,i){var n=i(232),r=i(112),a=i(234),o=i(235),s=n.extend({makeElOption:function(t,e,i,n,o){var s=i.axis,h=s.grid,c=n.get("type"),d=l(h,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(e,!0));if(c&&"none"!==c){var p=r.buildElStyle(n),g=u[c](s,f,d);g.style=p,t.graphicKey=g.type,t.pointer=g}var v=a.layout(h.model,i);r.buildCartesianSingleLabelElOption(e,t,v,i,n,o)},getHandleTransform:function(t,e,i){var n=a.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var r=i.axis,a=r.grid,o=r.getGlobalExtent(!0),s=l(a,r).getOtherAxis(r).getGlobalExtent(),u="x"===r.dim?0:1,h=t.position;h[u]+=e[u],h[u]=Math.min(o[1],h[u]),h[u]=Math.max(o[0],h[u]);var c=(s[1]+s[0])/2,d=[c,c];d[u]=h[u];return{position:h,rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}}});function l(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var u={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:r.makeLineShape([e,i[0]],[e,i[1]],h(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),a=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([e-n/2,i[0]],[n,a],h(t))}}};function h(t){return"x"===t.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var c=s;t.exports=c},function(t,e,i){var n=i(0),r=i(14),a=i(4),o=i(42),s=i(17),l=i(55),u=(0,i(1).makeInner)(),h=n.clone,c=n.bind;function d(){}function f(t,e,i,r){(function t(e,i){if(n.isObject(e)&&n.isObject(i)){var r=!0;return n.each(i,(function(i,n){r=r&&t(e[n],i)})),!!r}return e===i})(u(i).lastProp,r)||(u(i).lastProp=r,e?a.updateProps(i,r,t):(i.stopAnimation(),i.attr(r)))}function p(t,e){t[e.get("label.show")?"show":"hide"]()}function g(t){return{position:t.position.slice(),rotation:t.rotation||0}}function v(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)}))}d.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,r){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var h={};this.makeElOption(h,o,t,e,i);var c=h.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(t,e);if(l){var p=n.curry(f,e,d);this.updatePointerEl(l,h,p,e),this.updateLabelEl(l,h,p,e)}else l=this._group=new a.Group,this.createPointerEl(l,h,t,e),this.createLabelEl(l,h,t,e),i.getZr().add(l);v(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(r&&n.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===i},makeElOption:function(t,e,i,n,r){},createPointerEl:function(t,e,i,n){var r=e.pointer;if(r){var o=u(t).pointerEl=new a[r.type](h(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var r=u(t).labelEl=new a.Rect(h(e.label));t.add(r),p(r,n)}},updatePointerEl:function(t,e,i){var n=u(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var r=u(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{shape:e.label.shape,position:e.label.position}),p(r,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,r=this._api.getZr(),o=this._handle,u=i.getModel("handle"),h=i.get("status");if(!u.get("show")||!h||"hide"===h)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:c(this._onHandleDragMove,this,0,0),drift:c(this._onHandleDragMove,this),ondragend:c(this._onHandleDragEnd,this)}),r.add(o)),v(o,i,!1);o.setStyle(u.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var d=u.get("size");n.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){f(this._axisPointerModel,!e&&this._moveAnimation,this._handle,g(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(g(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(g(n)),u(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}}},d.prototype.constructor=d,r.enableClassExtend(d);var m=d;t.exports=m},function(t,e,i){var n=i(0),r=n.retrieve,a=n.defaults,o=n.extend,s=n.each,l=i(9),u=i(4),h=i(13),c=i(3),d=c.isRadianAroundZero,f=c.remRadian,p=i(41).createSymbol,g=i(18),v=i(7).applyTransform,m=i(29).shouldShowAllLabels,y=Math.PI,_=function(t,e){this.opt=e,this.axisModel=t,a(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var i=new u.Group({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};_.prototype={constructor:_,hasBuilder:function(t){return!!x[t]},add:function(t){x[t].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(v(r,r,n),v(a,a,n));var l=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var h=e.get("axisLine.symbol"),c=e.get("axisLine.symbolSize"),d=e.get("axisLine.symbolOffset")||0;if("number"==typeof d&&(d=[d,d]),null!=h){"string"==typeof h&&(h=[h,h]),"string"!=typeof c&&"number"!=typeof c||(c=[c,c]);var f=c[0],g=c[1];s([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],(function(e,i){if("none"!==h[i]&&null!=h[i]){var n=p(h[i],-f/2,-g/2,f,g,l.stroke,!0),a=e.r+e.offset,o=[r[0]+a*Math.cos(t.rotation),r[1]-a*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=function(t,e,i){var n=e.axis,r=e.getModel("axisTick");if(!r.get("show")||n.scale.isBlank())return;for(var o=r.getModel("lineStyle"),s=i.tickDirection*r.get("length"),l=C(n.getTicksCoords(),t._transform,s,a(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),u=0;ug[1]?-1:1,m=["start"===s?g[0]-v*p:"end"===s?g[1]+v*p:(g[0]+g[1])/2,I(s)?t.labelOffset+h*p:0],_=e.get("nameRotate");null!=_&&(_=_*y/180),I(s)?n=b(t.rotation,null!=_?_:t.rotation,h):(n=function(t,e,i,n){var r,a,o=f(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;d(o-y/2)?(a=l?"bottom":"top",r="center"):d(o-1.5*y)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*y&&o>y/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:r,textVerticalAlign:a}}(t,s,_||0,g),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(n.rotation)),!isFinite(a)&&(a=null)));var x=c.getFont(),M=e.get("nameTruncate",!0)||{},T=M.ellipsis,C=r(t.nameTruncateMaxWidth,M.maxWidth,a),D=null!=T&&null!=C?l.truncateText(i,C,x,T,{minChar:2,placeholder:M.placeholder}):i,A=e.get("tooltip",!0),k=e.mainType,O={componentType:k,name:i,$vars:["name"]};O[k+"Index"]=e.componentIndex;var P=new u.Text({anid:"name",__fullText:i,__truncatedText:D,position:m,rotation:n.rotation,silent:S(e),z2:1,tooltip:A&&A.show?o({content:i,formatter:function(){return i},formatterParams:O},A):null});u.setTextStyle(P.style,c,{text:D,textFont:x,textFill:c.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:c.get("align")||n.textAlign,textVerticalAlign:c.get("verticalAlign")||n.textVerticalAlign}),e.get("triggerEvent")&&(P.eventData=w(e),P.eventData.targetType="axisName",P.eventData.name=i),this._dumbGroup.add(P),P.updateTransform(),this.group.add(P),P.decomposeTransform()}}},w=_.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},b=_.innerTextLayout=function(t,e,i){var n,r,a=f(e-t);return d(a)?(r=i>0?"top":"bottom",n="center"):d(a-y)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=a>0&&a0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:r}};var S=_.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function M(t){t&&(t.ignore=!0)}function T(t,e,i){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var a=g.identity([]);return g.rotate(a,a,-t.rotation),n.applyTransform(g.mul([],a,t.getLocalTransform())),r.applyTransform(g.mul([],a,e.getLocalTransform())),n.intersect(r)}}function I(t){return"middle"===t||"center"===t}function C(t,e,i,n,r){for(var a=[],o=[],s=[],l=0;l=0?this._tryShow(i,n):"leave"===e&&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(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!a.node){var r=M(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=w;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=c(n,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,position:n.position,target:l.el},r)}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},r))}},manuallyHideTip:function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(M(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var r=n.seriesIndex,a=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s)if("axis"===(t=S([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,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=r.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],u=S([e.tooltipOption,n]),h=this._renderMode,c=this._newLine,d={};_(t,(function(t){_(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var u=v.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(o){var l=i.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,f=l&&l.getDataParams(c);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=g.getAxisRawValue(e.axis,n),f.axisValueLabel=u,f){s.push(f);var p,v=l.formatTooltip(c,!0,null,h);if(r.isObject(v)){p=v.html;var m=v.markers;r.merge(d,m)}else p=v;a.push(p)}}));var f=u;"html"!==h?o.push(a.join(c)):o.push((f?l.encodeHTML(f)+c:"")+a.join(c))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,f,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(u,o,s,Math.random(),a[0],a[1],f,void 0,d)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,o=n.getSeriesByIndex(a),s=e.dataModel||o,l=e.dataIndex,u=e.dataType,h=s.getData(u),c=S([h.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var f,p,g=s.getDataParams(l,u),v=s.formatTooltip(l,!1,u,this._renderMode);r.isObject(v)?(f=v.html,p=v.markers):(f=v,p=null);var m="item_"+s.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,f,g,m,t.offsetX,t.offsetY,t.position,t.target,p)})),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){n={content:n,formatter:n}}var r=new f(n,this._tooltipModel,this._ecModel),a=r.get("content"),o=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},o,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,r,a,o,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,c=t.get("formatter");o=o||t.get("position");var d=e;if(c&&"string"==typeof c)d=l.formatTpl(c,i,!0);else if("function"==typeof c){var f=y((function(e,n){e===this._ticket&&(h.setContent(n,u,t),this._updatePosition(t,o,r,a,h,i,s))}),this);this._ticket=n,d=c(i,n,f)}h.setContent(d,u,t),h.show(t),this._updatePosition(t,o,r,a,h,i,s)}},_updatePosition:function(t,e,i,n,a,o,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var h=a.getSize(),c=t.get("align"),f=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"==typeof e&&(e=e([i,n],o,a.el,p,{viewSize:[l,u],contentSize:h.slice()})),r.isArray(e))i=x(e[0],l),n=x(e[1],u);else if(r.isObject(e)){e.width=h[0],e.height=h[1];var g=d.getLayoutRect(e,{width:l,height:u});i=g.x,n=g.y,c=null,f=null}else if("string"==typeof e&&s){var v=function(t,e,i){var n=i[0],r=i[1],a=0,o=0,s=e.width,l=e.height;switch(t){case"inside":a=e.x+s/2-n/2,o=e.y+l/2-r/2;break;case"top":a=e.x+s/2-n/2,o=e.y-r-5;break;case"bottom":a=e.x+s/2-n/2,o=e.y+l+5;break;case"left":a=e.x-n-5,o=e.y+l/2-r/2;break;case"right":a=e.x+s+5,o=e.y+l/2-r/2}return[a,o]}(e,p,h);i=v[0],n=v[1]}else{v=function(t,e,i,n,r,a,o){var s=i.getOuterSize(),l=s.width,u=s.height;null!=a&&(t+l+a>n?t-=l+a:t+=a);null!=o&&(e+u+o>r?e-=u+o:e+=o);return[t,e]}(i,n,a,l,u,c?null:20,f?null:20);i=v[0],n=v[1]}if(c&&(i-=T(c)?h[0]/2:"right"===c?h[0]:0),f&&(n-=T(f)?h[1]/2:"bottom"===f?h[1]:0),t.get("confine")){v=function(t,e,i,n,r){var a=i.getOuterSize(),o=a.width,s=a.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,a,l,u);i=v[0],n=v[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&_(e,(function(e,n){var r=e.dataByAxis||{},a=(t[n]||{}).dataByAxis||[];(i&=r.length===a.length)&&_(r,(function(t,e){var n=a[e]||{},r=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===o.length)&&_(r,(function(t,e){var n=o[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){a.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",e))}});function S(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(f.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new f(i,e,e.ecModel))}return e}function M(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function T(t){return"center"===t||"middle"===t}t.exports=b},function(t,e,i){var n=i(0),r=i(20),a=i(17),o=i(68),s=i(6),l=i(9),u=n.each,h=l.toCamelCase,c=["","-webkit-","-moz-","-o-"];function d(t){var e,i,a=[],o=t.get("transitionDuration"),d=t.get("backgroundColor"),f=t.getModel("textStyle"),p=t.get("padding");return o&&a.push((i="left "+(e=o)+"s cubic-bezier(0.23, 1, 0.32, 1),top "+e+"s cubic-bezier(0.23, 1, 0.32, 1)",n.map(c,(function(t){return t+"transition:"+i})).join(";"))),d&&(s.canvasSupported?a.push("background-Color:"+d):(a.push("background-Color:#"+r.toHex(d)),a.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(e){var i="border-"+e,n=h(i),r=t.get(n);null!=r&&a.push(i+":"+r+("color"===e?"":"px"))})),a.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*i/2)),i&&e.push("line-height:"+r+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),u(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}(f)),null!=p&&a.push("padding:"+l.normalizeCssArray(p).join("px ")+"px"),a.join(";")+";"}function f(t,e,i,n,r){var a=e&&e.painter;if(i){var s=a&&a.getViewportRoot();s&&o.transformLocalCoord(t,s,document.body,n,r)}else{t[0]=n,t[1]=r;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function p(t,e,i){if(s.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],f(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=r.handler,i=r.painter.getViewportRoot();a.normalizeEvent(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}p.prototype={constructor:p,_enterable:!0,update:function(t){var e=this._container,i=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,i=this._styleCoord;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+d(t)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"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=this._styleCoord;f(i,this._zr,this._appendToBody,t,e);var n=this.el.style;n.left=i[0]+"px",n.top=i[1]+"px"},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(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}};var g=p;t.exports=g},function(t,e,i){var n=i(0),r=i(50),a=i(4);function o(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function s(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],o(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);for(var n={},o=t,s=o.indexOf("{marker");s>=0;){var l=o.indexOf("|}"),u=o.substr(s+"{marker".length,l-s-"{marker".length);u.indexOf("sub")>-1?n["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:n["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},s=(o=o.substr(l+1)).indexOf("{marker")}var h=i.getModel("textStyle"),c=h.get("fontSize"),d=i.get("textLineHeight");null==d&&(d=Math.round(3*c/2)),this.el=new r({style:a.setTextStyle({},h,{rich:n,text:t,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding"),textLineHeight:d}),z:i.get("z")}),this._zr.add(this.el);var f=this;this.el.on("mouseover",(function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0})),this.el.on("mouseout",(function(){f._enterable&&f._show&&f.hideLater(f._hideDelay),f._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var i=this._styleCoord;o(i,this._zr,t,e),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var l=s;t.exports=l},function(t,e,i){"use strict";var n=i(19),r=i(43),a=i(113),o=i(241),s=i(44),l=i(33),u=i(246).f,h=i(115).f,c=i(31).f,d=i(251).trim,f=n.Number,p=f,g=f.prototype,v="Number"==a(i(255)(g)),m="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var i,n,r,a=(e=m?e.trim():d(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var o,l=e.slice(2),u=0,h=l.length;ur)return NaN;return parseInt(l,n)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof f&&(v?l((function(){g.valueOf.call(i)})):"Number"!=a(i))?o(new p(y(e)),i,f):y(e)};for(var _,x=i(16)?u(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)r(p,_=x[w])&&!r(f,_)&&c(f,_,h(p,_));f.prototype=g,g.constructor=f,i(124)(n,"Number",f)}},function(t,e,i){var n=i(23),r=i(242).set;t.exports=function(t,e,i){var a,o=e.constructor;return o!==i&&"function"==typeof o&&(a=o.prototype)!==i.prototype&&n(a)&&r&&r(t,a),t}},function(t,e,i){var n=i(23),r=i(32),a=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=i(114)(Function.call,i(115).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return a(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:a}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(113);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,i){var n=i(118),r=i(63).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){var n=i(61),r=i(248),a=i(249);t.exports=function(t){return function(e,i,o){var s,l=n(e),u=r(l.length),h=a(o,u);if(t&&i!=i){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},function(t,e,i){var n=i(119),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e,i){var n=i(119),r=Math.max,a=Math.min;t.exports=function(t,e){return(t=n(t))<0?r(t+e,0):a(t,e)}},function(t,e){t.exports=!1},function(t,e,i){var n=i(252),r=i(117),a=i(33),o=i(254),s="["+o+"]",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),h=function(t,e,i){var r={},s=a((function(){return!!o[t]()||"​…"!="​…"[t]()})),l=r[t]=s?e(c):o[t];i&&(r[i]=l),n(n.P+n.F*s,"String",r)},c=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=h},function(t,e,i){var n=i(19),r=i(62),a=i(123),o=i(124),s=i(114),l=function(t,e,i){var u,h,c,d,f=t&l.F,p=t&l.G,g=t&l.S,v=t&l.P,m=t&l.B,y=p?n:g?n[e]||(n[e]={}):(n[e]||{}).prototype,_=p?r:r[e]||(r[e]={}),x=_.prototype||(_.prototype={});for(u in p&&(i=e),i)c=((h=!f&&y&&void 0!==y[u])?y:i)[u],d=m&&h?s(c,n):v&&"function"==typeof c?s(Function.call,c):c,y&&o(y,u,c,t&l.U),_[u]!=c&&a(_,u,d),v&&x[u]!=c&&(x[u]=c)};n.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,i){t.exports=i(121)("native-function-to-string",Function.toString)},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,i){var n=i(32),r=i(256),a=i(63),o=i(120)("IE_PROTO"),s=function(){},l=function(){var t,e=i(65)("iframe"),n=a.length;for(e.style.display="none",i(258).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(" + + + + +need('footer.php'); ?> \ No newline at end of file diff --git a/post.php b/post.php index 9cf6de5..6cacc85 100644 --- a/post.php +++ b/post.php @@ -38,7 +38,7 @@

title() ?>

content(); ?>
- + options->donate): ?>