vue-echarts-w
Version:
Vue.js(v2.x+) component wrap for ECharts.js(v3.x+), Some improvement by will.
1 lines • 711 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("IEcharts",[],e):"object"==typeof exports?exports.IEcharts=e():t.IEcharts=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=159)}([function(t,e){function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=G.call(t);if("[object Array]"===i){e=[];for(var o=0,r=t.length;o<r;o++)e[o]=n(t[o])}else if(B[i]){var a=t.constructor;if(t.constructor.from)e=a.from(t);else{e=new a(t.length);for(var o=0,r=t.length;o<r;o++)e[o]=n(t[o])}}else if(!V[i]&&!O(t)&&!I(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]))}return e}function i(t,e,o){if(!S(e)||!S(t))return o?n(e):t;for(var r in e)if(e.hasOwnProperty(r)){var a=t[r],s=e[r];!S(s)||!S(a)||_(s)||_(a)||I(s)||I(a)||M(s)||M(a)||O(s)||O(a)?!o&&r in t||(t[r]=n(e[r],!0)):i(a,s,o)}return t}function o(t,e){for(var n=t[0],o=1,r=t.length;o<r;o++)n=i(n,t[o],e);return n}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function a(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function s(){return document.createElement("canvas")}function l(){return N||(N=X.createCanvas().getContext("2d")),N}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function c(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var o in i)t.prototype[o]=i[o];t.prototype.constructor=t,t.superClass=e}function h(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,a(t,e,n)}function d(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===W)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function p(t,e,n){if(t&&e){if(t.map&&t.map===j)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===q)return t.reduce(e,n,i);for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function m(t,e,n){if(t&&e){if(t.filter&&t.filter===F)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}}function v(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]}function y(t,e){var n=Z.call(arguments,2);return function(){return t.apply(e,n.concat(Z.call(arguments)))}}function x(t){var e=Z.call(arguments,1);return function(){return t.apply(this,e.concat(Z.call(arguments)))}}function _(t){return"[object Array]"===G.call(t)}function b(t){return"function"==typeof t}function w(t){return"[object String]"===G.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function M(t){return!!V[G.call(t)]}function I(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function T(t){return t!==t}function A(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]}function C(t,e){return null!=t?t:e}function D(t,e,n){return null!=t?t:null!=e?e:n}function L(){return Function.call.apply(Z,arguments)}function P(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function k(t,e){if(!t)throw new Error(e)}function E(t){t[U]=!0}function O(t){return t[U]}function z(t){t&&f(t,function(t,e){this.set(e,t)},this)}function R(t){return new z(t)}var N,V={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},B={"[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},G=Object.prototype.toString,H=Array.prototype,W=H.forEach,F=H.filter,Z=H.slice,j=H.map,q=H.reduce,U="__ec_primitive__";z.prototype={constructor:z,get:function(t){return this["_ec_"+t]},set:function(t,e){return this["_ec_"+t]=e,e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var n in this)this.hasOwnProperty(n)&&t(this[n],n.slice(4))},removeKey:function(t){delete this["_ec_"+t]}};var X={inherits:c,mixin:h,clone:n,merge:i,mergeAll:o,extend:r,defaults:a,getContext:l,createCanvas:s,indexOf:u,slice:L,find:v,isArrayLike:d,each:f,map:p,reduce:g,filter:m,bind:y,curry:x,isArray:_,isString:w,isObject:S,isFunction:b,isBuiltInObject:M,isDom:I,eqNaN:T,retrieve:A,retrieve2:C,retrieve3:D,assert:k,setAsPrimitive:E,createHashMap:R,normalizeCssArray:P,noop:function(){}};t.exports=X},function(t,e,n){(function(e){function i(t){return function(e,n,i){e=e&&e.toLowerCase(),V.prototype[t].call(this,e,n,i)}}function o(){V.call(this)}function r(t,e,n){function i(t,e){return t.prio-e.prio}n=n||{},"string"==typeof e&&(e=tt[e]),this.id,this.group,this._dom=t;var r=this._zr=z.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=O.throttle(R.bind(r.flush,r),17),this._theme=R.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new T,this._api=b(this),V.call(this),this._messageCenter=new o,this._initEvents(),this.resize=R.bind(this.resize,this),this._pendingActions=[],B(Q,i),B($,i),r.animation.on("frame",this._onframe,this),R.setAsPrimitive(this)}function a(t,e,n){var i,o=this._model,r=this._coordSysMgr.getCoordinateSystems();e=E.parseFinder(o,e);for(var a=0;a<r.length;a++){var s=r[a];if(s[t]&&null!=(i=s[t](o,e,n)))return i}__DEV__&&console.warn("No coordinate system that supports "+t+" found by the given finder.")}function s(t,e,n,i,o){function r(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}var a=t._model;if(!i)return void G(t._componentsViews.concat(t._chartsViews),r);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};o&&(l.subType=o),a&&a.eachComponent(l,function(e,n){r(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function l(t,e){var n=t.type,i=t.escapeConnect,o=X[n],r=o.actionInfo,a=(r.update||"update").split(":"),l=a.pop();a=null!=a[0]&&H(a[0]),this[W]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=R.map(t.batch,function(e){return e=R.defaults(R.extend({},e),t),e.batch=null,e}));var h,d=[],f="highlight"===n||"downplay"===n;G(u,function(t){h=o.action(t,this._model,this._api),h=h||R.extend({},t),h.type=r.event||h.type,d.push(h),f?s(this,l,t,"series"):a&&s(this,l,t,a.main,a.sub)},this),"none"===l||f||a||(this[F]?(q.prepareAndUpdate.call(this,t),this[F]=!1):q[l].call(this,t)),h=c?{type:r.event||n,escapeConnect:i,batch:d}:d[0],this[W]=!1,!e&&this._messageCenter.trigger(h.type,h)}function u(t){for(var e=this._pendingActions;e.length;){var n=e.shift();l.call(this,n,t)}}function c(t){!t&&this.trigger("updated")}function h(t,e,n){var i=this._api;G(this._componentsViews,function(o){var r=o.__model;o[t](r,e,i,n),_(r,o)},this),e.eachSeries(function(o,r){var a=this._chartsMap[o.__viewId];a[t](o,e,i,n),_(o,a),x(o,a)},this),y(this._zr,e),G(J,function(t){t(e,i)})}function d(t,e){for(var n="component"===t,i=n?this._componentsViews:this._chartsViews,o=n?this._componentsMap:this._chartsMap,r=this._zr,a=0;a<i.length;a++)i[a].__alive=!1;e[n?"eachComponent":"eachSeries"](function(t,a){if(n){if("series"===t)return}else a=t;var s="_ec_"+a.id+"_"+a.type,l=o[s];if(!l){var u=H(a.type),c=n?L.getClass(u.main,u.sub):P.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),o[s]=l,i.push(l),r.add(l.group)}a.__viewId=l.__id=s,l.__alive=!0,l.__model=a,l.group.__ecComponentInfo={mainType:a.mainType,index:a.componentIndex}},this);for(var a=0;a<i.length;){var s=i[a];s.__alive?a++:(r.remove(s.group),s.dispose(e,this._api),i.splice(a,1),delete o[s.__id],s.__id=s.group.__ecComponentInfo=null)}}function f(t,e){G($,function(n){n.func(t,e)})}function p(t){var e={};t.eachSeries(function(t){var n=t.get("stack"),i=t.getData();if(n&&"list"===i.type){var o=e[n];e.hasOwnProperty(n)&&o&&(i.stackedOn=o),e[n]=i}})}function g(t,e){var n=this._api;G(Q,function(i){i.isLayout&&i.func(t,n,e)})}function m(t,e,n){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),G(Q,function(o){(!n||!o.isLayout)&&o.func(t,i,e)})}function v(t,e){var n=this._api;G(this._componentsViews,function(i){var o=i.__model;i.render(o,t,n,e),_(o,i)},this),G(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(i,o){var r=this._chartsMap[i.__viewId];r.__alive=!0,r.render(i,t,n,e),r.group.silent=!!i.get("silent"),_(i,r),x(i,r)},this),y(this._zr,t),G(this._chartsViews,function(e){e.__alive||e.remove(t,n)},this)}function y(t,e){var n=t.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!S.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function x(t,e){var n=0;e.group.traverse(function(t){"group"===t.type||t.ignore||n++});var i=+t.get("progressive"),o=n>t.get("progressiveThreshold")&&i&&!S.node;o&&e.group.traverse(function(t){t.isGroup||(t.progressive=o?Math.floor(n++/i):-1,o&&t.stopAnimation(!0))});var r=t.get("blendMode")||null;__DEV__&&!S.canvasSupported&&r&&"source-over"!==r&&console.warn("Only canvas support blendMode"),e.group.traverse(function(t){t.isGroup||t.setStyle("blend",r)})}function _(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function b(t){var e=t._coordSysMgr;return R.extend(new I(t),{getCoordinateSystems:R.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function w(t){function e(t,e){for(var i=0;i<t.length;i++)t[i][n]=e}var n="__connectUpdateStatus";R.each(Y,function(i,o){t._messageCenter.on(o,function(i){if(it[t.group]&&0!==t[n]){if(i&&i.escapeConnect)return;var o=t.makeActionFromEvent(i),r=[];R.each(nt,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),G(r,function(t){1!==t[n]&&t.dispatchAction(o)}),e(r,2)}})})}"undefined"==typeof __DEV__&&("undefined"!=typeof window?window.__DEV__=!0:void 0!==e&&(e.__DEV__=!0));var S=n(12),M=n(402),I=n(172),T=n(19),A=n(403),C=n(11),D=n(13),L=n(78),P=n(27),k=n(2),E=n(4),O=n(36),z=n(157),R=n(0),N=n(23),V=n(32),B=n(83),G=R.each,H=C.parseClassType,W="__flagInMainProcess",F="__optionUpdated",Z=/^[a-zA-Z0-9_]+$/;o.prototype.on=i("on"),o.prototype.off=i("off"),o.prototype.one=i("one"),R.mixin(o,V);var j=r.prototype;j._onframe=function(){if(this[F]){var t=this[F].silent;this[W]=!0,q.prepareAndUpdate.call(this),this[W]=!1,this[F]=!1,u.call(this,t),c.call(this,t)}},j.getDom=function(){return this._dom},j.getZr=function(){return this._zr},j.setOption=function(t,e,n){__DEV__&&R.assert(!this[W],"`setOption` should not be called during main process.");var i;if(R.isObject(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[W]=!0,!this._model||e){var o=new A(this._api),r=this._theme;(this._model=new M(null,null,r,o)).init(null,null,r,o)}this._model.setOption(t,K),n?(this[F]={silent:i},this[W]=!1):(q.prepareAndUpdate.call(this),this._zr.flush(),this[F]=!1,this[W]=!1,u.call(this,i),c.call(this,i))},j.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},j.getModel=function(){return this._model},j.getOption=function(){return this._model&&this._model.getOption()},j.getWidth=function(){return this._zr.getWidth()},j.getHeight=function(){return this._zr.getHeight()},j.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},j.getRenderedCanvas=function(t){if(S.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return R.each(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},j.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],o=this;G(e,function(t){n.eachComponent({mainType:t},function(t){var e=o._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var r=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return G(i,function(t){t.group.ignore=!1}),r},j.getConnectedDataURL=function(t){if(S.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(it[e]){var o=1/0,r=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;R.each(nt,function(u,c){if(u.group===e){var h=u.getRenderedCanvas(R.clone(t)),d=u.getDom().getBoundingClientRect();o=n(d.left,o),r=n(d.top,r),a=i(d.right,a),s=i(d.bottom,s),l.push({dom:h,left:d.left,top:d.top})}}),o*=u,r*=u,a*=u,s*=u;var c=a-o,h=s-r,d=R.createCanvas();d.width=c,d.height=h;var f=z.init(d);return G(l,function(t){var e=new k.Image({style:{x:t.left*u-o,y:t.top*u-r,image:t.dom}});f.add(e)}),f.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},j.convertToPixel=R.curry(a,"convertToPixel"),j.convertFromPixel=R.curry(a,"convertFromPixel"),j.containPixel=function(t,e){var n,i=this._model;return t=E.parseFinder(i,t),R.each(t,function(t,i){i.indexOf("Models")>=0&&R.each(t,function(t){var o=t.coordinateSystem;if(o&&o.containPoint)n|=!!o.containPoint(e);else if("seriesModels"===i){var r=this._chartsMap[t.__viewId];r&&r.containPoint?n|=r.containPoint(e,t):__DEV__&&console.warn(i+": "+(r?"The found component do not support containPoint.":"No view mapping to the found component."))}else __DEV__&&console.warn(i+": containPoint is not supported")},this)},this),!!n},j.getVisual=function(t,e){var n=this._model;t=E.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel;__DEV__&&(i||console.warn("There is no specified seires model"));var o=i.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?o.indexOfRawIndex(t.dataIndex):null;return null!=r?o.getItemVisual(r,e):o.getVisual(e)},j.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},j.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var q={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr,o=this._zr;if(e){e.restoreData(),i.create(this._model,this._api),f.call(this,e,n),p.call(this,e),i.update(e,n),m.call(this,e,t),v.call(this,e,t);var r=e.get("backgroundColor")||"transparent",a=o.painter;if(a.isSingleCanvas&&a.isSingleCanvas())o.configLayer(0,{clearColor:r});else{if(!S.canvasSupported){var s=N.parse(r);r=N.stringify(s,"rgb"),0===s[3]&&(r="transparent")}r.colorStops||r.image?(o.configLayer(0,{clearColor:r}),this.__hasGradientOrPatternBg=!0,this._dom.style.background="transparent"):(this.__hasGradientOrPatternBg&&o.configLayer(0,{clearColor:null}),this.__hasGradientOrPatternBg=!1,this._dom.style.background=r)}G(J,function(t){t(e,n)})}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),m.call(this,e,t),h.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),m.call(this,e,t,!0),h.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(g.call(this,e,t),h.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;d.call(this,"component",e),d.call(this,"chart",e),q.update.call(this,t)}};j.resize=function(t){__DEV__&&R.assert(!this[W],"`resize` should not be called during main process."),this[W]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media");q[e?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[W]=!1;var n=t&&t.silent;u.call(this,n),c.call(this,n)},j.showLoading=function(t,e){if(R.isObject(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),!et[t])return void(__DEV__&&console.warn("Loading effects "+t+" not exists."));var n=et[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)},j.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},j.makeActionFromEvent=function(t){var e=R.extend({},t);return e.type=Y[t.type],e},j.dispatchAction=function(t,e){if(R.isObject(e)||(e={silent:!!e}),X[t.type]&&this._model){if(this[W])return void this._pendingActions.push(t);l.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&S.browser.weChat&&this._throttledZrFlush(),u.call(this,e.silent),c.call(this,e.silent)}},j.on=i("on"),j.off=i("off"),j.one=i("one");var U=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];j._initEvents=function(){G(U,function(t){this._zr.on(t,function(e){var n,i=this.getModel(),o=e.target;if("globalout"===t)n={};else if(o&&null!=o.dataIndex){var r=o.dataModel||i.getSeriesByIndex(o.seriesIndex);n=r&&r.getDataParams(o.dataIndex,o.dataType)||{}}else o&&o.eventData&&(n=R.extend({},o.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),G(Y,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},j.isDisposed=function(){return this._disposed},j.clear=function(){this.setOption({series:[]},!0)},j.dispose=function(){if(this._disposed)return void(__DEV__&&console.warn("Instance "+this.id+" has been disposed"));this._disposed=!0;var t=this._api,e=this._model;G(this._componentsViews,function(n){n.dispose(e,t)}),G(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete nt[this.id]},R.mixin(r,V);var X={},Y={},$=[],K=[],J=[],Q=[],tt={},et={},nt={},it={},ot=new Date-0,rt=new Date-0,at={version:"3.7.0",dependencies:{zrender:"3.6.0"}};at.init=function(t,e,n){if(__DEV__){if(z.version.replace(".","")-0<at.dependencies.zrender.replace(".","")-0)throw new Error("ZRender "+z.version+" is too old for ECharts "+at.version+". Current version need ZRender "+at.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.")}var i=at.getInstanceByDom(t);if(i)return __DEV__&&console.warn("There is a chart instance already initialized on the dom."),i;__DEV__&&(!R.isDom(t)||"CANVAS"===t.nodeName.toUpperCase()||(t.clientWidth||n&&null!=n.width)&&(t.clientHeight||n&&null!=n.height)||console.warn("Can't get dom width or height"));var o=new r(t,e,n);return o.id="ec_"+ot++,nt[o.id]=o,t.setAttribute?t.setAttribute("_echarts_instance_",o.id):t._echarts_instance_=o.id,w(o),o},at.connect=function(t){if(R.isArray(t)){var e=t;t=null,R.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+rt++,R.each(e,function(e){e.group=t})}return it[t]=!0,t},at.disConnect=function(t){it[t]=!1},at.disconnect=at.disConnect,at.dispose=function(t){"string"==typeof t?t=nt[t]:t instanceof r||(t=at.getInstanceByDom(t)),t instanceof r&&!t.isDisposed()&&t.dispose()},at.getInstanceByDom=function(t){var e;return e=t.getAttribute?t.getAttribute("_echarts_instance_"):t._echarts_instance_,nt[e]},at.getInstanceById=function(t){return nt[t]},at.registerTheme=function(t,e){tt[t]=e},at.registerPreprocessor=function(t){K.push(t)},at.registerProcessor=function(t,e){if("function"==typeof t&&(e=t,t=1e3),__DEV__&&isNaN(t))throw new Error("Unkown processor priority");$.push({prio:t,func:e})},at.registerPostUpdate=function(t){J.push(t)},at.registerAction=function(t,e,n){"function"==typeof e&&(n=e,e="");var i=R.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,R.assert(Z.test(i)&&Z.test(e)),X[i]||(X[i]={action:n,actionInfo:t}),Y[e]=i},at.registerCoordinateSystem=function(t,e){T.register(t,e)},at.getCoordinateSystemDimensions=function(t){var e=T.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},at.registerLayout=function(t,e){if("function"==typeof t&&(e=t,t=1e3),__DEV__&&isNaN(t))throw new Error("Unkown layout priority");Q.push({prio:t,func:e,isLayout:!0})},at.registerVisual=function(t,e){if("function"==typeof t&&(e=t,t=3e3),__DEV__&&isNaN(t))throw new Error("Unkown visual priority");Q.push({prio:t,func:e})},at.registerLoading=function(t,e){et[t]=e},at.extendComponentModel=function(t){return C.extend(t)},at.extendComponentView=function(t){return L.extend(t)},at.extendSeriesModel=function(t){return D.extend(t)},at.extendChartView=function(t){return P.extend(t)},at.setCanvasCreator=function(t){R.createCanvas=t},at.registerVisual(2e3,n(417)),at.registerPreprocessor(n(410)),at.registerLoading("default",n(401)),at.registerAction({type:"highlight",event:"highlight",update:"highlight"},R.noop),at.registerAction({type:"downplay",event:"downplay",update:"downplay"},R.noop),at.zrender=z,at.List=n(10),at.Model=n(8),at.Axis=n(26),at.graphic=n(2),at.number=n(3),at.format=n(7),at.throttle=O.throttle,at.matrix=n(18),at.vector=n(6),at.color=n(23),at.util={},G(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){at.util[t]=R[t]}),at.helper=n(399),at.PRIORITY={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},t.exports=at}).call(e,n(80))},function(t,e,n){"use strict";function i(t){return null!=t&&"none"!=t}function o(t){return"string"==typeof t?M.lift(t,-.1):t}function r(t){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,r=t.__hoverStl;r.fill=r.fill||(i(n)?o(n):null),r.stroke=r.stroke||(i(e)?o(e):null);var a={};for(var s in r)null!=r[s]&&(a[s]=t.style[s]);t.__normalStl=a,t.__hoverStlDirty=!1}}function a(t){t.__isHover||(r(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.style.extendFrom(t.__hoverStl),t.dirty(!1),t.z2+=1),t.__isHover=!0)}function s(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function l(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&a(t)}):a(t)}function u(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t)}):s(t)}function c(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&r(t)}function h(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&l(this)}function d(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&u(this)}function f(){this.__isEmphasis=!0,l(this)}function p(){this.__isEmphasis=!1,u(this)}function g(t,e){return e&&e.indexOf("inside")>=0}function m(t,e,n){if(n=n||k,n.isRectText){var i=e.getShallow("position")||(n.forMerge?null:"inside");"outside"===i&&(i="top"),t.textPosition=i,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=b.retrieve2(e.getShallow("distance"),n.forMerge?null:5)}var r,a=e.ecModel,s=a&&a.option.textStyle,l=v(e);if(l){r={};for(var u in l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);y(r[u]={},c,s,n)}}return t.rich=r,y(t,e,s,n,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function v(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||k).rich;if(n){e=e||{};for(var i in n)n.hasOwnProperty(i)&&(e[i]=1)}t=t.parentModel}return e}function y(t,e,n,i,o){var r=i.forMerge;n=!r&&n||k;var a=x(e.getShallow("color")),s=x(e.getShallow("textBorderColor")),l=e.getShallow("textBorderWidth");r||(null==a&&(a=n.color),null==s&&(s=n.textBorderColor),null==l&&(l=n.textBorderWidth),null==a&&i.checkInside&&i.checkInside(e,t.textPosition)&&(a="#fff",null==s&&(s=i.defaultTextColor,null==l&&(l=2))),null==a&&(a=i.defaultTextColor)),t.textFill=a,t.textStroke=s,t.textLineWidth=l,t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.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&&i.disableBox||(t.textBackgroundColor=x(e.getShallow("backgroundColor"),i),t.textPadding=e.getShallow("padding"),t.textBorderColor=x(e.getShallow("borderColor"),i),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")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function x(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function _(t,e,n,i,o,r){if("function"==typeof o&&(r=o,o=null),i&&i.isAnimationEnabled()){var a=t?"Update":"",s=i.getShallow("animationDuration"+a),l=i.getShallow("animationEasing"+a),u=i.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(o,i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null)),"function"==typeof s&&(s=s(o)),s>0?e.animateTo(n,s,u||0,l,r,!!r):(e.stopAnimation(),e.attr(n),r&&r())}else e.stopAnimation(),e.attr(n),r&&r()}var b=n(0),w=n(460),S=n(14),M=n(23),I=n(18),T=n(6),A=n(86),C=n(9),D=Math.round,L=Math.max,P=Math.min,k={},E={};E.Group=n(57),E.Image=n(84),E.Text=n(151),E.Circle=n(451),E.Sector=n(457),E.Ring=n(456),E.Polygon=n(453),E.Polyline=n(454),E.Rect=n(455),E.Line=n(452),E.BezierCurve=n(450),E.Arc=n(449),E.CompoundPath=n(445),E.LinearGradient=n(148),E.RadialGradient=n(446),E.BoundingRect=C,E.extendShape=function(t){return S.extend(t)},E.extendPath=function(t,e){return w.extendFromString(t,e)},E.makePath=function(t,e,n,i){var o=w.createFromString(t,e),r=o.getBoundingRect();if(n){var a=r.width/r.height;if("center"===i){var s,l=n.height*a;l<=n.width?s=n.height:(l=n.width,s=l/a);var u=n.x+n.width/2,c=n.y+n.height/2;n.x=u-l/2,n.y=c-s/2,n.width=l,n.height=s}E.resizePath(o,n)}return o},E.mergePath=w.mergePath,E.resizePath=function(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}},E.subPixelOptimizeLine=function(t){var e=E.subPixelOptimize,n=t.shape,i=t.style.lineWidth;return D(2*n.x1)===D(2*n.x2)&&(n.x1=n.x2=e(n.x1,i,!0)),D(2*n.y1)===D(2*n.y2)&&(n.y1=n.y2=e(n.y1,i,!0)),t},E.subPixelOptimizeRect=function(t){var e=E.subPixelOptimize,n=t.shape,i=t.style.lineWidth,o=n.x,r=n.y,a=n.width,s=n.height;return n.x=e(n.x,i,!0),n.y=e(n.y,i,!0),n.width=Math.max(e(o+a,i,!1)-n.x,0===a?0:1),n.height=Math.max(e(r+s,i,!1)-n.y,0===s?0:1),t},E.subPixelOptimize=function(t,e,n){var i=D(2*t);return(i+D(e))%2==0?i/2:(i+(n?1:-1))/2},E.setHoverStyle=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t,e)}):c(t,e),t.on("mouseover",h).on("mouseout",d),t.on("emphasis",f).on("normal",p)},E.setTextStyle=function(t,e,n,i){return m(t,e,i),n&&b.extend(t,n),t.host&&t.host.dirty&&t.host.dirty(!1),t},E.setText=function(t,e,n){var i={isRectText:!0};!1===n?i.forMerge=!0:(i.defaultTextColor=i.autoColor=n,i.checkInside=g),m(t,e,i),t.host&&t.host.dirty&&t.host.dirty(!1)},E.getFont=function(t,e){var n=e||e.getModel("textStyle");return[t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" ")},E.updateProps=function(t,e,n,i,o){_(!0,t,e,n,i,o)},E.initProps=function(t,e,n,i,o){_(!1,t,e,n,i,o)},E.getTransform=function(t,e){for(var n=I.identity([]);t&&t!==e;)I.mul(n,t.getLocalTransform(),n),t=t.parent;return n},E.applyTransform=function(t,e,n){return e&&!b.isArrayLike(e)&&(e=A.getLocalTransform(e)),n&&(e=I.invert([],e)),T.applyTransform([],t,e)},E.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0];return r=E.applyTransform(r,e,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},E.groupTransition=function(t,e,n,i){function o(t){var e={position:T.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=b.extend({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),E.updateProps(t,i,n,t.dataIndex)}}})}},E.clipPointsByRect=function(t,e){return b.map(t,function(t){var n=t[0];n=L(n,e.x),n=P(n,e.x+e.width);var i=t[1];return i=L(i,e.y),i=P(i,e.y+e.height),[n,i]})},E.clipRectByRect=function(t,e){var n=L(t.x,e.x),i=P(t.x+t.width,e.x+e.width),o=L(t.y,e.y),r=P(t.y+t.height,e.y+e.height);if(i>=n&&r>=o)return{x:n,y:o,width:i-n,height:r-o}},E.createIcon=function(t,e,n){e=b.extend({rectHover:!0},e);var i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),b.defaults(i,n),new E.Image(e)):E.makePath(t.replace("path://",""),e,n,"center")},t.exports=E},function(t,e,n){function i(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function o(t){return Math.floor(Math.log(t)/Math.LN10)}var r=n(0),a={};a.linearMap=function(t,e,n,i){var o=e[1]-e[0],r=n[1]-n[0];if(0===o)return 0===r?n[0]:(n[0]+n[1])/2;if(i)if(o>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/o*r+n[0]},a.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?i(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},a.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},a.asc=function(t){return t.sort(function(t,e){return t-e}),t},a.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},a.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var o=e.indexOf(".");return o<0?0:e.length-1-o},a.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,o=Math.floor(n(t[1]-t[0])/i),r=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20},a.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var i=r.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),a=r.map(t,function(t){return(isNaN(t)?0:t)/i*o*100}),s=100*o,l=r.map(a,function(t){return Math.floor(t)}),u=r.reduce(l,function(t,e){return t+e},0),c=r.map(a,function(t,e){return t-l[e]});u<s;){for(var h=Number.NEGATIVE_INFINITY,d=null,f=0,p=c.length;f<p;++f)c[f]>h&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/o},a.MAX_SAFE_INTEGER=9007199254740991,a.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},a.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4};var s=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;a.getTimezoneOffset=function(){return(new Date).getTimezoneOffset()},a.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=s.exec(t);if(!e)return new Date(NaN);var n=a.getTimezoneOffset(),i=e[8]?"Z"===e[8].toUpperCase()?n:60*+e[8].slice(0,3)+n:0;return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0)-i,+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},a.quantity=function(t){return Math.pow(10,o(t))},a.nice=function(t,e){var n,i=o(t),r=Math.pow(10,i),a=t/r;return n=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t},a.reformIntervals=function(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]==(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,o=0;o<t.length;){for(var r=t[o].interval,a=t[o].close,s=0;s<2;s++)r[s]<=n&&(r[s]=n,a[s]=s?1:1-i),n=r[s],i=a[s];r[0]===r[1]&&a[0]*a[1]!=1?t.splice(o,1):o++}return t},a.isNumeric=function(t){return t-parseFloat(t)>=0},t.exports=a},function(t,e,n){function i(t,e){return t&&t.hasOwnProperty(e)}var o=n(7),r=n(3),a=n(8),s=n(0),l=s.each,u=s.isObject,c={};c.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},c.defaultEmphasis=function(t,e){if(t)for(var n=t.emphasis=t.emphasis||{},i=t.normal=t.normal||{},o=0,r=e.length;o<r;o++){var a=e[o];!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}},c.TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],c.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},c.isDataItemOption=function(t){return u(t)&&!(t instanceof Array)},c.converDataValue=function(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+r.parseDate(t)),null==t||""===t?NaN:+t)},c.createDataFormatModel=function(t,e){var n=new a;return s.mixin(n,c.dataFormatMixin),n.seriesIndex=e.seriesIndex,n.name=e.name||"",n.mainType=e.mainType,n.subType=e.subType,n.getData=function(){return t},n},c.dataFormatMixin={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t,!0),s=n.getRawDataItem(t),l=n.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:a,dataIndex:r,data:s,dataType:e,value:i,color:l,marker:o.getTooltipMarker(l),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,r){e=e||"normal";var a=this.getData(n),s=a.getItemModel(t),l=this.getDataParams(t,n);null!=i&&l.value instanceof Array&&(l.value=l.value[i]);var u=s.get([r||"label",e,"formatter"]);return"function"==typeof u?(l.status=e,u(l)):"string"==typeof u?o.formatTpl(u,l):void 0},getRawValue:function(t,e){var n=this.getData(e),i=n.getRawDataItem(t);if(null!=i)return!u(i)||i instanceof Array?i:i.value},formatTooltip:s.noop},c.mappingToExists=function(t,e){e=(e||[]).slice();var n=s.map(t||[],function(t,e){return{exist:t}});return l(e,function(t,i){if(u(t)){for(var o=0;o<n.length;o++)if(!n[o].option&&null!=t.id&&n[o].exist.id===t.id+"")return n[o].option=t,void(e[i]=null);for(var o=0;o<n.length;o++){var r=n[o].exist;if(!(n[o].option||null!=r.id&&null!=t.id||null==t.name||c.isIdInner(t)||c.isIdInner(r)||r.name!==t.name+""))return n[o].option=t,void(e[i]=null)}}}),l(e,function(t,e){if(u(t)){for(var i=0;i<n.length;i++){var o=n[i].exist;if(!n[i].option&&!c.isIdInner(o)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}}),n},c.makeIdAndName=function(t){var e=s.createHashMap();l(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),l(t,function(t,n){var i=t.option;s.assert(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),l(t,function(t,n){var i=t.exist,o=t.option,r=t.keyInfo;if(u(o)){if(r.name=null!=o.name?o.name+"":i?i.name:"\0-",i)r.id=i.id;else if(null!=o.id)r.id=o.id+"";else{var a=0;do{r.id="\0"+r.name+"\0"+a++}while(e.get(r.id))}e.set(r.id,t)}})},c.isIdInner=function(t){return u(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")},c.compressBatches=function(t,e){function n(t,e,n){for(var i=0,o=t.length;i<o;i++)for(var r=t[i].seriesId,a=c.normalizeToArray(t[i].dataIndex),s=n&&n[r],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}function i(t,e){var n=[];for(var o in t)if(t.hasOwnProperty(o)&&null!=t[o])if(e)n.push(+o);else{var r=i(t[o],!0);r.length&&n.push({seriesId:o,dataIndex:r})}return n}var o={},r={};return n(t||[],o),n(e||[],r,o),[i(o),i(r)]},c.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?s.isArray(e.dataIndex)?s.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?s.isArray(e.name)?s.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},c.makeGetter=function(){var t=0;return function(){var e="\0__ec_prop_getter_"+t++;return function(t){return t[e]||(t[e]={})}}}(),c.parseFinder=function(t,e,n){if(s.isString(e)){var o={};o[e+"Index"]=0,e=o}var r=n&&n.defaultMainType;!r||i(e,r+"Index")||i(e,r+"Id")||i(e,r+"Name")||(e[r+"Index"]=0);var a={};return l(e,function(i,o){var i=e[o];if("dataIndex"===o||"dataIndexInside"===o)return void(a[o]=i);var r=o.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();if(!(!l||!u||null==i||"index"===u&&"none"===i||n&&n.includeMainTypes&&s.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===i||(c[u]=i);var h=t.queryComponents(c);a[l+"Models"]=h,a[l+"Model"]=h[0]}}),a},c.dataDimToCoordDim=function(t,e){var n=t.dimensions;e=t.getDimension(e);for(var i=0;i<n.length;i++){var o=t.getDimensionInfo(n[i]);if(o.name===e)return o.coordDim}},c.coordDimToDataDim=function(t,e){var n=[];return l(t.dimensions,function(i){var o=t.getDimensionInfo(i);o.coordDim===e&&(n[o.coordDimIndex]=o.name)}),n},c.otherDimToDataDim=function(t,e){var n=[];return l(t.dimensions,function(i){var o=t.getDimensionInfo(i),r=o.otherDims,a=r[e];null!=a&&!1!==a&&(n[a]=o.name)}),n},t.exports=c},function(t,e,n){"use strict";function i(t,e,n,i,o){var r=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);c=r+m,c>i||l.newline?(r=0,c=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);h=a+v,h>o||l.newline?(r+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=r,d[1]=a,"horizontal"===t?r=c+n:a=h+n)})}var o=n(0),r=n(9),a=n(3),s=n(7),l=a.parsePercent,u=o.each,c={},h=c.LOCATION_PARAMS=["left","right","top","bottom","width","height"],d=c.HV_NAMES=[["width","left","right"],["height","top","bottom"]];c.box=i,c.vbox=o.curry(i,"vertical"),c.hbox=o.curry(i,"horizontal"),c.getAvailableSize=function(t,e,n){var i=e.width,o=e.height,r=l(t.x,i),a=l(t.y,o),u=l(t.x2,i),c=l(t.y2,o);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=o),n=s.normalizeCssArray(n||0),{width:Math.max(u-r-n[1]-n[3],0),height:Math.max(c-a-n[0]-n[2],0)}},c.getLayoutRect=function(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,o=e.height,a=l(t.left,i),u=l(t.top,o),c=l(t.right,i),h=l(t.bottom,o),d=l(t.width,i),f=l(t.height,o),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-a),isNaN(f)&&(f=o-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/o?d=.8*i:f=.8*o),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(a)&&(a=i-c-d-g),isNaN(u)&&(u=o-h-f-p),t.left||t.right){case"center":a=i/2-d/2-n[3];break;case"right":a=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=o/2-f/2-n[0];break;case"bottom":u=o-f-p}a=a||0,u=u||0,isNaN(d)&&(d=i-g-a-(c||0)),isNaN(f)&&(f=o-p-u-(h||0));var v=new r(a+n[3],u+n[0],d,f);return v.margin=n,v},c.positionElement=function(t,e,n,i,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.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 d=t.getLocalTransform();h=h.clone(),h.applyTransform(d)}e=c.getLayoutRect(o.defaults({width:h.width,height:h.height},e),n,i);var f=t.position,p=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[p,g]:[f[0]+p,f[1]+g])}},c.sizeCalculable=function(t,e){return null!=t[d[e][0]]||null!=t[d[e][1]]&&null!=t[d[e][2]]},c.mergeLayoutParam=function(t,e,n){function i(n,i){var o={},s=0,c={},h=0;if(u(n,function(e){c[e]=t[e]}),u(n,function(t){r(e,t)&&(o[t]=c[t]=e[t]),a(o,t)&&s++,a(c,t)&&h++}),l[i])return a(e,n[1])?c[n[2]]=null:a(e,n[2])&&(c[n[1]]=null),c;if(2!==h&&s){if(s>=2)return o;for(var d=0;d<n.length;d++){var f=n[d];if(!r(o,f)&&r(t,f)){o[f]=t[f];break}}return o}return c}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function s(t,e,n){u(t,function(t){e[t]=n[t]})}!o.isObject(n)&&(n={});var l=n.ignoreSize;!o.isArray(l)&&(l=[l,l]);var c=i(d[0],0),h=i(d[1],1);s(d[0],t,c),s(d[1],t,h)},c.getLayoutParams=function(t){return c.copyLayoutParams({},t)},c.copyLayoutParams=function(t,e){return e&&t&&u(h,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t},t.exports=c},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,e){var n=i.len(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},applyTransform:function(t,e,n){var i=e[0],o=e[1];return t[0]=n[0]*i+n[2]*o+n[4],t[1]=n[1]*i+n[3]*o+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}};i.length=i.len,i.lengthSquare=i.lenSquare,i.dist=i.distance,i.distSquare=i.distanceSquare,t.exports=i},function(t,e,n){var i=n(0),o=n(3),r=n(21),a={};a.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))},a.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},a.normalizeCssArray=i.normalizeCssArray;var s=a.encodeHTML=function(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"};a.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var r=e[0].$vars||[],a=0;a<r.length;a++){var c=l[a],h=u(c,0);t=t.replace(u(c),n?s(h):h)}for(var d=0;d<o;d++)for(var f=0;f<r.length;f++){var h=e[d][r[f]];t=t.replace(u(l[f],d),n?s(h):h)}return t},a.formatTplSimple=function(t,e,n){return i.each(e,function(e,i){t=t.replace("{"+i+"}",n?s(e):e)}),t},a.getTooltipMarker=function(t,e){return t?'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+a.encodeHTML(t)+";"+(e||"")+'"></span>':""};var c=function(t){return t<10?"0"+t:t};a.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=o.parseDate(e),r=n?"UTC":"",a=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),u=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),d=i["get"+r+"Seconds"]();return t=t.replace("MM",c(s)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",c(l)).replace("d",l).replace("hh",c(u)).replace("h",u).replace("mm",c(h)).replace("m",h).replace("ss",c(d)).replace("s",d)},a.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},a.truncateText=r.truncateText,a.getTextRect=r.getBoundingRect,t.exports=a},function(t,e,n){function i(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function o(t,e,n){for(var i=0;i<e.length&&(!e[i]||null!=(t=t&&"object"==typeof t?t[e[i]]:null));i++);return null==t&&n&&(t=n.get(e)),t}function r(t,e){var n=s.get(t,"getParent");return n?n.call(t,e):t.parentModel}var a=n(0),s=n(20),l=n(12);i.prototype={constructor:i,init:null,mergeOption:function(t){a.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:o(this.option,this.parsePath(t),!e&&r(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],o=!e&&r(this,t);return null==i&&o&&(i=o.getShallow(t)),i},getModel:function(t,e){var n,a=null==t?this.option:o(this.option,t=this.parsePath(t));return e=e||(n=r(this,t))&&n.getModel(t),new i(a,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(a.clone(this.option))},setReadOnly:function(t){s.setReadOnly(this,t)},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){s.set(this,"getParent",t)},isAnimationEnabled:function(){if(!l.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s.enableClassExtend(i);var u=a.mixin;u(i,n(408)),u(i,n(405)),u(i,n(409)),u(i,n(407)),t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}var o=n(6),r=n(18),a=o.applyTransform,s=Math.min,l=Math.max;i.prototype={constructor:i,union:function(t){var e=s(t.x,this.x),n=s(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this.height=l(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(o){if(o){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,a(t,t,o),a(e,e,o),a(n,n,o),a(i,i,o),this.x=s(t[0],e[0],n[0],i[0]),this.y=s(t[1],e[1],n[1],i[1]);var r=l(t[0],e[0],n[0],i[0]),u=l(t[1],e[1],n[1],i[1]);this.width=r-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=r.create();return r.translate(o,o,[-e.x,-e.y]),r.scale(o,o,[n,i]),r.translate(o,o,[t.x,t.y]),o},intersect:function(t){if(!t)return!1;t instanceof i||(t=i.create(t));var e=this,n=e.x,o=e.x+e.width,r=e.y,a=e.y+e.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height;return!(o<s||l<n||a<u||c<r)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new i(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}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)},t.exports=i},function(t,e,n){(function(e){function i(t,e){f.each(m.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods}function o(t){this._array=t||[]}function r(t){return f.isArray(t)||(t=[t]),t}function a(t,e){var n=t.dimensions,o=new v(f.map(n,t.getDimensionInfo,t),t.hostModel);i(o,t);for(var r=o._storage={},a=t._storage,s=0;s<n.length;s++){var l=n[s],u=a[l];f.indexOf(e,l)>=0?r[l]=new u.constructor(a[l].length):r[l]=a[l]}return o}var s="undefined"==typeof window?e:window,l=void 0===s.Float64Array?Array:s.Float64Array,u=void 0===s.Int32Array?Array:s.Int32Array,c={float:l,int:u,ordinal:Array,number:Array,time:Array},h=n(8),d=n(35),f=n(0),p=n(4),g=f.isObject,m=["stackedOn","hasItemOption","_nameList","_idList","_rawData"];o.prototype.pure=!1,o.prototype.count=function(){return this._array.length},o.prototype.getItem=function(t){return this._array[t]};var v=function(t,e){t=t||["x","y"];for(var n={},i=[],o=0;o<t.length;o++){var r,a={};"string"==typeof t[o]?(r=t[o],a={name:r,coordDim:r,coordDimIndex:0,stackable:!1,type:"number"}):(a=t[o],r=a.name,a.type=a.type||"number",a.coordDim||(a.coordDim=r,a.coordDimIndex=0)),a.otherDims=a.otherDims||{},i.push(r),n[r]=a}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},y=v.prototype;y.type="list",y.hasItemOption=!0,y.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},y.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},y.initData=function(t,e,n){t=t||[];var i=f.isArray(t);if(i&&(t=new o(t)),__DEV__&&!i&&("function"!=typeof t.getItem||"function"!=typeof t.count))throw new Error("Inavlid data provider.");this._rawData=t;var r,a=this._storage={},s=this.indices=[],l=this.dimensions,u=this._dimensionInfos,h=t.count(),d=[],g={};e=e||[];for(var m=0;m<l.length;m++){var v=u[l[m]];0===v.otherDims.itemName&&(r=m);var y=c[v.type];a[l[m]]=new y(h)}var x=this;n||(x.hasItemOption=!1),n=n||function(t,e,n,i){var o=p.getDataItemValue(t);return p.isDataItemOption(t)&&(x.hasItemOption=!0),p.converDataValue(o i