efview
Version:
A high quality Service UI components Library with Vue.js
3 lines • 6.9 MB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("efview",["vue"],t):"object"==typeof exports?exports.efview=t(require("vue")):e.efview=t(e.Vue)}("undefined"!=typeof self?self:this,function(__WEBPACK_EXTERNAL_MODULE_141__){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=612)}([function(e,t){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[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,c=a.map,u=a.reduce,f={};function h(e){if(null==e||"object"!=typeof e)return e;var t=e,a=r.call(e);if("[object Array]"===a){if(!A(e)){t=[];for(var o=0,s=e.length;o<s;o++)t[o]=h(e[o])}}else if(i[a]){if(!A(e)){var l=e.constructor;if(e.constructor.from)t=l.from(e);else{t=new l(e.length);for(o=0,s=e.length;o<s;o++)t[o]=h(e[o])}}}else if(!n[a]&&!A(e)&&!x(e))for(var c in t={},e)e.hasOwnProperty(c)&&(t[c]=h(e[c]));return t}function d(e,t,n){if(!C(t)||!C(e))return n?h(t):e;for(var i in t)if(t.hasOwnProperty(i)){var r=e[i],a=t[i];!C(a)||!C(r)||y(a)||y(r)||x(a)||x(r)||w(a)||w(r)||A(a)||A(r)?!n&&i in e||(e[i]=h(t[i])):d(r,a,n)}return e}function p(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n?null!=t[i]:null==e[i])&&(e[i]=t[i]);return e}var m,g=function(){return f.createCanvas()};function v(e,t,n){if(e&&t)if(e.forEach&&e.forEach===o)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function b(e,t){var n=l.call(arguments,2);return function(){return e.apply(t,n.concat(l.call(arguments)))}}function y(e){return"[object Array]"===r.call(e)}function C(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function w(e){return!!n[r.call(e)]}function x(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}f.createCanvas=function(){return document.createElement("canvas")};var _="__ec_primitive__";function A(e){return e[_]}function S(e){var t=y(e);this.data={};var n=this;function i(e,i){t?n.set(e,i):n.set(i,e)}e instanceof S?e.each(i):e&&v(e,i)}S.prototype={constructor:S,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var n in void 0!==t&&(e=b(e,t)),this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}},t.$override=function(e,t){"createCanvas"===e&&(m=null),f[e]=t},t.clone=h,t.merge=d,t.mergeAll=function(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=d(n,e[i],t);return n},t.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},t.defaults=p,t.createCanvas=g,t.getContext=function(){return m||(m=g().getContext("2d")),m},t.indexOf=function(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1},t.inherits=function(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t},t.mixin=function(e,t,n){p(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,n)},t.isArrayLike=function(e){if(e)return"string"!=typeof e&&"number"==typeof e.length},t.each=v,t.map=function(e,t,n){if(e&&t){if(e.map&&e.map===c)return e.map(t,n);for(var i=[],r=0,a=e.length;r<a;r++)i.push(t.call(n,e[r],r,e));return i}},t.reduce=function(e,t,n,i){if(e&&t){if(e.reduce&&e.reduce===u)return e.reduce(t,n,i);for(var r=0,a=e.length;r<a;r++)n=t.call(i,n,e[r],r,e);return n}},t.filter=function(e,t,n){if(e&&t){if(e.filter&&e.filter===s)return e.filter(t,n);for(var i=[],r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}},t.find=function(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]},t.bind=b,t.curry=function(e){var t=l.call(arguments,1);return function(){return e.apply(this,t.concat(l.call(arguments)))}},t.isArray=y,t.isFunction=function(e){return"function"==typeof e},t.isString=function(e){return"[object String]"===r.call(e)},t.isObject=C,t.isBuiltInObject=w,t.isTypedArray=function(e){return!!i[r.call(e)]},t.isDom=x,t.eqNaN=function(e){return e!=e},t.retrieve=function(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]},t.retrieve2=function(e,t){return null!=e?e:t},t.retrieve3=function(e,t,n){return null!=e?e:null!=t?t:n},t.slice=function(){return Function.call.apply(l,arguments)},t.normalizeCssArray=function(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e},t.assert=function(e,t){if(!e)throw new Error(t)},t.trim=function(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},t.setAsPrimitive=function(e){e[_]=!0},t.isPrimitive=A,t.createHashMap=function(e){return new S(e)},t.concatArray=function(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n},t.noop=function(){}},function(e,t,n){"use strict";t.a=function(e,t,n,i,r,a,o,s){var l=typeof(e=e||{}).default;"object"!==l&&"function"!==l||(e=e.default);var c,u="function"==typeof e?e.options:e;t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0);i&&(u.functional=!0);a&&(u._scopeId=a);o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r);if(c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(e,t){return c.call(t),f(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:u}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}},function(e,t,n){n(11).__DEV__;var i=n(157),r=n(0),a=n(48),o=n(20),s=n(233),l=n(76),c=n(461),u=n(474),f=n(42),h=n(1035),d=n(1036),p=n(1038),m=n(24),g=n(25),v=n(163),b=n(49),y=n(5),C=n(8),w=n(65).throttle,x=n(1039),_=n(1040),A=n(1041),S=n(1042),M=n(1043),k=n(1044);n(475);var E=n(242),B=r.assert,D=r.each,T=r.isFunction,z=r.isObject,O=m.parseClassType,I=1e3,P=1e3,L=3e3,N={PROCESSOR:{FILTER:I,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:P,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:L,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},R="__flagInMainProcess",q="__optionUpdated",F=/^[a-zA-Z0-9_]+$/;function V(e,t){return function(n,i,r){t||!this._disposed?(n=n&&n.toLowerCase(),l.prototype[e].call(this,n,i,r)):this.id}}function H(){l.call(this)}function j(e,t,n){n=n||{},"string"==typeof t&&(t=de[t]),this.id,this.group,this._dom=e;var a=this._zr=i.init(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=w(r.bind(a.flush,a),17),(t=r.clone(t))&&d(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new f;var o=this._api=function(e){var t=e._coordSysMgr;return r.extend(new u(e),{getCoordinateSystems:r.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}(this);function c(e,t){return e.__prio-t.__prio}s(he,c),s(ce,c),this._scheduler=new S(this,o,ce,he),l.call(this,this._ecEventProcessor=new oe),this._messageCenter=new H,this._initEvents(),this.resize=r.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),function(e,t){e.on("rendered",function(){t.trigger("rendered"),!e.animation.isFinished()||t[q]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})}(a,this),r.setAsPrimitive(this)}H.prototype.on=V("on",!0),H.prototype.off=V("off",!0),H.prototype.one=V("one",!0),r.mixin(H,l);var $=j.prototype;function U(e,t,n){if(this._disposed)this.id;else{var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();t=C.parseFinder(r,t);for(var o=0;o<a.length;o++){var s=a[o];if(s[e]&&null!=(i=s[e](r,t,n)))return i}}}$._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[q]){var t=this[q].silent;this[R]=!0,G(this),W.update.call(this),this[R]=!1,this[q]=!1,K.call(this,t),Q.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Z(this,i),e.performVisualTasks(i),ne(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},$.getDom=function(){return this._dom},$.getZr=function(){return this._zr},$.setOption=function(e,t,n){if(this._disposed)this.id;else{var i;if(z(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[R]=!0,!this._model||t){var r=new h(this._api),a=this._theme,o=this._model=new c;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(e,ue),n?(this[q]={silent:i},this[R]=!1):(G(this),W.update.call(this),this._zr.flush(),this[q]=!1,this[R]=!1,K.call(this,i),Q.call(this,i))}},$.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},$.getModel=function(){return this._model},$.getOption=function(){return this._model&&this._model.getOption()},$.getWidth=function(){return this._zr.getWidth()},$.getHeight=function(){return this._zr.getHeight()},$.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},$.getRenderedCanvas=function(e){if(o.canvasSupported)return(e=e||{}).pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},$.getSvgDataURL=function(){if(o.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return r.each(t,function(e){e.stopAnimation(!0)}),e.painter.toDataURL()}},$.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],r=this;D(t,function(e){n.eachComponent({mainType:e},function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return D(i,function(e){e.group.ignore=!1}),a}this.id},$.getConnectedDataURL=function(e){if(this._disposed)this.id;else if(o.canvasSupported){var t="svg"===e.type,n=this.group,a=Math.min,s=Math.max;if(ge[n]){var l=1/0,c=1/0,u=-1/0,f=-1/0,h=[],d=e&&e.pixelRatio||1;r.each(me,function(i,o){if(i.group===n){var d=t?i.getZr().painter.getSvgDom().innerHTML:i.getRenderedCanvas(r.clone(e)),p=i.getDom().getBoundingClientRect();l=a(p.left,l),c=a(p.top,c),u=s(p.right,u),f=s(p.bottom,f),h.push({dom:d,left:p.left,top:p.top})}});var p=(u*=d)-(l*=d),m=(f*=d)-(c*=d),g=r.createCanvas(),v=i.init(g,{renderer:t?"svg":"canvas"});if(v.resize({width:p,height:m}),t){var b="";return D(h,function(e){var t=e.left-l,n=e.top-c;b+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=b,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new y.Rect({shape:{x:0,y:0,width:p,height:m},style:{fill:e.connectedBackgroundColor}})),D(h,function(e){var t=new y.Image({style:{x:e.left*d-l,y:e.top*d-c,image:e.dom}});v.add(t)}),v.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},$.convertToPixel=r.curry(U,"convertToPixel"),$.convertFromPixel=r.curry(U,"convertFromPixel"),$.containPixel=function(e,t){if(!this._disposed){var n,i=this._model;return e=C.parseFinder(i,e),r.each(e,function(e,i){i.indexOf("Models")>=0&&r.each(e,function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(t);else if("seriesModels"===i){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n|=a.containPoint(t,e))}},this)},this),!!n}this.id},$.getVisual=function(e,t){var n=this._model,i=(e=C.parseFinder(n,e,{defaultMainType:"series"})).seriesModel.getData(),r=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?i.indexOfRawIndex(e.dataIndex):null;return null!=r?i.getItemVisual(r,t):i.getVisual(t)},$.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},$.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var W={prepareAndUpdate:function(e){G(this),W.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,s=this._scheduler;if(t){s.restoreData(t,e),s.performSeriesTasks(t),r.create(t,n),s.performDataProcessorTasks(t,e),Z(this,t),r.update(t,n),ee(t),s.performVisualTasks(t,e),te(this,t,n,e);var l=t.get("backgroundColor")||"transparent";if(o.canvasSupported)i.setBackgroundColor(l);else{var c=a.parse(l);l=a.stringify(c,"rgb"),0===c[3]&&(l="transparent")}ie(t,n)}},updateTransform:function(e){var t=this._model,n=this,i=this._api;if(t){var a=[];t.eachComponent(function(r,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,t,i,e);l&&l.update&&a.push(s)}else a.push(s)});var o=r.createHashMap();t.eachSeries(function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,t,i,e);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),ee(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:o}),ne(n,t,i,e,o),ie(t,this._api)}},updateView:function(e){var t=this._model;t&&(b.markUpdateMethod(e,"updateView"),ee(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),te(this,this._model,this._api,e),ie(t,this._api))},updateVisual:function(e){W.update.call(this,e)},updateLayout:function(e){W.update.call(this,e)}};function G(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),J(e,"component",t,n),J(e,"chart",t,n),n.plan()}function X(e,t,n,i,a){var o=e._model;if(i){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};a&&(l.subType=a);var c=n.excludeSeriesId;null!=c&&(c=r.createHashMap(C.normalizeToArray(c))),o&&o.eachComponent(l,function(t){c&&null!=c.get(t.id)||u(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else D(e._componentsViews.concat(e._chartsViews),u);function u(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}}function Z(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries(function(e){i.updateStreamModes(e,n[e.__viewId])})}function Y(e,t){var n=e.type,i=e.escapeConnect,a=se[n],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&O(s[0]),this[R]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=r.map(e.batch,function(t){return(t=r.defaults(r.extend({},t),e)).batch=null,t}));var f,h=[],d="highlight"===n||"downplay"===n;D(c,function(e){(f=(f=a.action(e,this._model,this._api))||r.extend({},e)).type=o.event||f.type,h.push(f),d?X(this,l,e,"series"):s&&X(this,l,e,s.main,s.sub)},this),"none"===l||d||s||(this[q]?(G(this),W.update.call(this,e),this[q]=!1):W[l].call(this,e)),f=u?{type:o.event||n,escapeConnect:i,batch:h}:h[0],this[R]=!1,!t&&this._messageCenter.trigger(f.type,f)}function K(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Y.call(this,n,e)}}function Q(e){!e&&this.trigger("updated")}function J(e,t,n,i){for(var r="component"===t,a=r?e._componentsViews:e._chartsViews,o=r?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;c<a.length;c++)a[c].__alive=!1;function u(e){var t="_ec_"+e.id+"_"+e.type,c=o[t];if(!c){var u=O(e.type);(c=new(r?v.getClass(u.main,u.sub):b.getClass(u.sub))).init(n,l),o[t]=c,a.push(c),s.add(c.group)}e.__viewId=c.__id=t,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!r&&i.prepareView(c,e,n,l)}r?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(c=0;c<a.length;){var f=a[c];f.__alive?c++:(!r&&f.renderTask.dispose(),s.remove(f.group),f.dispose(n,l),a.splice(c,1),delete o[f.__id],f.__id=f.group.__ecComponentInfo=null)}}function ee(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function te(e,t,n,i){!function(e,t,n,i,r){D(r||e._componentsViews,function(e){var r=e.__model;e.render(r,t,n,i),ae(r,e)})}(e,t,n,i),D(e._chartsViews,function(e){e.__alive=!1}),ne(e,t,n,i),D(e._chartsViews,function(e){e.__alive||e.remove(t,n)})}function ne(e,t,n,i,r){var a,s=e._scheduler;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var o=n.renderTask;s.updatePayload(o,i),r&&r.get(t.uid)&&o.dirty(),a|=o.perform(s.getPerformArgs(o)),n.group.silent=!!t.get("silent"),ae(t,n),function(e,t){var n=e.get("blendMode")||null;t.group.traverse(function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable(function(e){e.setStyle("blend",n)})})}(t,n)}),s.unfinished|=a,function(e,t){var n=0;e._zr.storage.traverse(function(e){n++}),n>t.get("hoverLayerThreshold")&&!o.node&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse(function(e){e.useHoverLayer=!0})}})}(e,t),_(e._zr.dom,t)}function ie(e,t){D(fe,function(n){n(e,t)})}$.resize=function(e){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[R]=!0,n&&G(this),W.update.call(this),this[R]=!1,K.call(this,i),Q.call(this,i)}}},$.showLoading=function(e,t){if(this._disposed)this.id;else if(z(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pe[e]){var n=pe[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},$.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},$.makeActionFromEvent=function(e){var t=r.extend({},e);return t.type=le[e.type],t},$.dispatchAction=function(e,t){this._disposed?this.id:(z(t)||(t={silent:!!t}),se[e.type]&&this._model&&(this[R]?this._pendingActions.push(e):(Y.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&o.browser.weChat&&this._throttledZrFlush(),K.call(this,t.silent),Q.call(this,t.silent))))},$.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0}},$.on=V("on",!1),$.off=V("off",!1),$.one=V("one",!1);var re=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ae(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse(function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i))})}function oe(){this.eventInfo}$._initEvents=function(){D(re,function(e){var t=function(t){var n,i=this.getModel(),a=t.target;if("globalout"===e)n={};else if(a&&null!=a.dataIndex){var o=a.dataModel||i.getSeriesByIndex(a.seriesIndex);n=o&&o.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(n=r.extend({},a.eventData));if(n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var c=s&&null!=l&&i.getComponent(s,l),u=c&&this["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:n,model:c,view:u},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)},this),D(le,function(e,t){this._messageCenter.on(t,function(e){this.trigger(t,e)},this)},this)},$.isDisposed=function(){return this._disposed},$.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},$.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,C.setAttribute(this.getDom(),ye,"");var e=this._api,t=this._model;D(this._componentsViews,function(n){n.dispose(t,e)}),D(this._chartsViews,function(n){n.dispose(t,e)}),this._zr.dispose(),delete me[this.id]}},r.mixin(j,l),oe.prototype={constructor:oe,normalizeQuery:function(e){var t={},n={},i={};if(r.isString(e)){var a=O(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(e,function(e,r){for(var a=!1,l=0;l<o.length;l++){var c=o[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var f=r.slice(0,u);"data"!==f&&(t.mainType=f,t[c.toLowerCase()]=e,a=!0)}}s.hasOwnProperty(r)&&(n[r]=e,a=!0),a||(i[r]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},filter:function(e,t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,a,"name")&&u(c,a,"dataIndex")&&u(c,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,a));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var se={},le={},ce=[],ue=[],fe=[],he=[],de={},pe={},me={},ge={},ve=new Date-0,be=new Date-0,ye="_echarts_instance_";function Ce(e){ge[e]=!1}var we=Ce;function xe(e){return me[C.getAttribute(e,ye)]}function _e(e,t){de[e]=t}function Ae(e){ue.push(e)}function Se(e,t){Ee(ce,e,t,I)}function Me(e,t,n){"function"==typeof t&&(n=t,t="");var i=z(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,B(F.test(i)&&F.test(t)),se[i]||(se[i]={action:n,actionInfo:e}),le[t]=i}function ke(e,t){Ee(he,e,t,L,"visual")}function Ee(e,t,n,i,r){(T(t)||z(t))&&(n=t,t=i);var a=S.wrapStageHandler(n,r);return a.__prio=t,a.__raw=n,e.push(a),a}function Be(e,t){pe[e]=t}ke(2e3,x),Ae(d),Se(900,p),Be("default",A),Me({type:"highlight",event:"highlight",update:"highlight"},r.noop),Me({type:"downplay",event:"downplay",update:"downplay"},r.noop),_e("light",M),_e("dark",k);t.version="4.9.0",t.dependencies={zrender:"4.3.2"},t.PRIORITY=N,t.init=function(e,t,n){var i=xe(e);if(i)return i;var r=new j(e,t,n);return r.id="ec_"+ve++,me[r.id]=r,C.setAttribute(e,ye,r.id),function(e){var t="__connectUpdateStatus";function n(e,n){for(var i=0;i<e.length;i++)e[i][t]=n}D(le,function(i,r){e._messageCenter.on(r,function(i){if(ge[e.group]&&0!==e[t]){if(i&&i.escapeConnect)return;var r=e.makeActionFromEvent(i),a=[];D(me,function(t){t!==e&&t.group===e.group&&a.push(t)}),n(a,0),D(a,function(e){1!==e[t]&&e.dispatchAction(r)}),n(a,2)}})})}(r),r},t.connect=function(e){if(r.isArray(e)){var t=e;e=null,D(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+be++,D(t,function(t){t.group=e})}return ge[e]=!0,e},t.disConnect=Ce,t.disconnect=we,t.dispose=function(e){"string"==typeof e?e=me[e]:e instanceof j||(e=xe(e)),e instanceof j&&!e.isDisposed()&&e.dispose()},t.getInstanceByDom=xe,t.getInstanceById=function(e){return me[e]},t.registerTheme=_e,t.registerPreprocessor=Ae,t.registerProcessor=Se,t.registerPostUpdate=function(e){fe.push(e)},t.registerAction=Me,t.registerCoordinateSystem=function(e,t){f.register(e,t)},t.getCoordinateSystemDimensions=function(e){var t=f.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.registerLayout=function(e,t){Ee(he,e,t,P,"layout")},t.registerVisual=ke,t.registerLoading=Be,t.extendComponentModel=function(e){return m.extend(e)},t.extendComponentView=function(e){return v.extend(e)},t.extendSeriesModel=function(e){return g.extend(e)},t.extendChartView=function(e){return b.extend(e)},t.setCanvasCreator=function(e){r.$override("createCanvas",e)},t.registerMap=function(e,t,n){E.registerMap(e,t,n)},t.getMap=function(e){var t=E.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}},t.dataTool={};var De=n(477);!function(){for(var e in De)De.hasOwnProperty(e)&&(t[e]=De[e])}()},function(e,t,n){e.exports={default:n(618),__esModule:!0}},function(e,t,n){var i=n(0),r=n(462),a=n(48),o=n(31),s=n(15),l=n(19),c=n(158),u=n(91);t.Image=u;var f=n(77);t.Group=f;var h=n(78);t.Text=h;var d=n(467);t.Circle=d;var p=n(1024);t.Sector=p;var m=n(1025);t.Ring=m;var g=n(469);t.Polygon=g;var v=n(471);t.Polyline=v;var b=n(236);t.Rect=b;var y=n(472);t.Line=y;var C=n(1028);t.BezierCurve=C;var w=n(1029);t.Arc=w;var x=n(1030);t.CompoundPath=x;var _=n(238);t.LinearGradient=_;var A=n(1031);t.RadialGradient=A;var S=n(16);t.BoundingRect=S;var M=n(239);t.IncrementalDisplayable=M;var k=n(237),E=Math.max,B=Math.min,D={},T=1,z="emphasis",O="normal",I=1,P={},L={};function N(e,t){L[e]=t}function R(e,t,n,i){var a=r.createFromString(e,t);return n&&("center"===i&&(n=q(n,a.getBoundingRect())),V(a,n)),a}function q(e,t){var n,i=t.width/t.height,r=e.height*i;return n=r<=e.width?e.height:(r=e.width)/i,{x:e.x+e.width/2-r/2,y:e.y+e.height/2-n/2,width:r,height:n}}var F=r.mergePath;function V(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}var H=k.subPixelOptimize;function j(e){return null!=e&&"none"!==e}var $=i.createHashMap(),U=0;function W(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,i=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=i?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var r=e,a=e.style;i&&(a=(r=n.addHover(e)).style),le(a),i||function(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var i=e.style;for(var r in t)null!=t[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}(r),a.extendFrom(t),G(a,t,"fill"),G(a,t,"stroke"),se(a),i||(e.dirty(!1),e.z2+=T)}}}function G(e,t,n){!j(t[n])&&j(e[n])&&(e[n]=function(e){if("string"!=typeof e)return e;var t=$.get(e);return t||(t=a.lift(e,-.1),U<1e4&&($.set(e,t),U++)),t}(e[n]))}function X(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var n=e.style,i=e.__cachedNormalStl;i&&(le(n),e.setStyle(i),se(n));var r=e.__cachedNormalZ2;null!=r&&e.z2-r===T&&(e.z2=r)}}function Z(e,t,n){var i,r=O,a=O;e.__highlighted&&(r=z,i=!0),t(e,n),e.__highlighted&&(a=z,i=!0),e.isGroup&&e.traverse(function(e){!e.isGroup&&t(e,n)}),i&&e.__highDownOnUpdate&&e.__highDownOnUpdate(r,a)}function Y(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,X(e),W(e))}function K(e){!te(this,e)&&!this.__highByOuter&&Z(this,W)}function Q(e){!te(this,e)&&!this.__highByOuter&&Z(this,X)}function J(e){this.__highByOuter|=1<<(e||0),Z(this,W)}function ee(e){!(this.__highByOuter&=~(1<<(e||0)))&&Z(this,X)}function te(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function ne(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var i=n?"off":"on";e[i]("mouseover",K)[i]("mouseout",Q),e[i]("emphasis",J)[i]("normal",ee),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function ie(e,t,n,r,a){return re(e,t,r,a),n&&i.extend(e,n),e}function re(e,t,n,r){if((n=n||D).isRectText){var a;n.getTextPosition?a=n.getTextPosition(t,r):"outside"===(a=t.getShallow("position")||(r?null:"inside"))&&(a="top"),e.textPosition=a,e.textOffset=t.getShallow("offset");var o=t.getShallow("rotate");null!=o&&(o*=Math.PI/180),e.textRotation=o,e.textDistance=i.retrieve2(t.getShallow("distance"),r?null:5)}var s,l=t.ecModel,c=l&&l.option.textStyle,u=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||D).rich;if(n)for(var i in t=t||{},n)n.hasOwnProperty(i)&&(t[i]=1);e=e.parentModel}return t}(t);if(u)for(var f in s={},u)if(u.hasOwnProperty(f)){var h=t.getModel(["rich",f]);ae(s[f]={},h,c,n,r)}return e.rich=s,ae(e,t,c,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function ae(e,t,n,r,a,o){n=!a&&n||D,e.textFill=oe(t.getShallow("color"),r)||n.color,e.textStroke=oe(t.getShallow("textBorderColor"),r)||n.textBorderColor,e.textStrokeWidth=i.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),a||(o&&(e.insideRollbackOpt=r,se(e)),null==e.textFill&&(e.textFill=r.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),o&&r.disableBox||(e.textBackgroundColor=oe(t.getShallow("backgroundColor"),r),e.textPadding=t.getShallow("padding"),e.textBorderColor=oe(t.getShallow("borderColor"),r),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function oe(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function se(e){var t,n=e.textPosition,i=e.insideRollbackOpt;if(i&&null==e.textFill){var r=i.autoColor,a=i.isRectText,o=i.useInsideStyle,s=!1!==o&&(!0===o||a&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=r,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=r)}e.insideRollback=t}function le(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function ce(e,t,n,i,r,a){if("function"==typeof r&&(a=r,r=null),i&&i.isAnimationEnabled()){var o=e?"Update":"",s=i.getShallow("animationDuration"+o),l=i.getShallow("animationEasing"+o),c=i.getShallow("animationDelay"+o);"function"==typeof c&&(c=c(r,i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null)),"function"==typeof s&&(s=s(r)),s>0?t.animateTo(n,s,c||0,l,a,!!a):(t.stopAnimation(),t.attr(n),a&&a())}else t.stopAnimation(),t.attr(n),a&&a()}function ue(e,t,n,i,r){ce(!0,e,t,n,i,r)}function fe(e,t,n){return t&&!i.isArrayLike(t)&&(t=c.getLocalTransform(t)),n&&(t=o.invert([],t)),s.applyTransform([],e,t)}function he(e,t,n,i,r,a,o,s){var l=n-e,c=i-t,u=o-r,f=s-a,h=de(u,f,l,c);if(function(e){return e<=1e-6&&e>=-1e-6}(h))return!1;var d=e-r,p=t-a,m=de(d,p,l,c)/h;if(m<0||m>1)return!1;var g=de(d,p,u,f)/h;return!(g<0||g>1)}function de(e,t,n,i){return e*i-n*t}N("circle",d),N("sector",p),N("ring",m),N("polygon",g),N("polyline",v),N("rect",b),N("line",y),N("bezierCurve",C),N("arc",w),t.Z2_EMPHASIS_LIFT=T,t.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},t.extendShape=function(e){return l.extend(e)},t.extendPath=function(e,t){return r.extendFromString(e,t)},t.registerShape=N,t.getShapeClass=function(e){if(L.hasOwnProperty(e))return L[e]},t.makePath=R,t.makeImage=function(e,t,n){var i=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(q(t,r))}}});return i},t.mergePath=F,t.resizePath=V,t.subPixelOptimizeLine=function(e){return k.subPixelOptimizeLine(e.shape,e.shape,e.style),e},t.subPixelOptimizeRect=function(e){return k.subPixelOptimizeRect(e.shape,e.shape,e.style),e},t.subPixelOptimize=H,t.setElementHoverStyle=Y,t.setHoverStyle=function(e,t){ne(e,!0),Z(e,Y,t)},t.setAsHighDownDispatcher=ne,t.isHighDownDispatcher=function(e){return!(!e||!e.__highDownDispatcher)},t.getHighlightDigit=function(e){var t=P[e];return null==t&&I<=32&&(t=P[e]=I++),t},t.setLabelStyle=function(e,t,n,r,a,o,s){var l,c=(a=a||D).labelFetcher,u=a.labelDataIndex,f=a.labelDimIndex,h=a.labelProp,d=n.getShallow("show"),p=r.getShallow("show");(d||p)&&(c&&(l=c.getFormattedLabel(u,"normal",null,f,h)),null==l&&(l=i.isFunction(a.defaultText)?a.defaultText(u,a):a.defaultText));var m=d?l:null,g=p?i.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,f,h):null,l):null;null==m&&null==g||(ie(e,n,o,a),ie(t,r,s,a,!0)),e.text=m,t.text=g},t.modifyLabelStyle=function(e,t,n){var r=e.style;t&&(le(r),e.setStyle(t),se(r)),r=e.__hoverStl,n&&r&&(le(r),i.extend(r,n),se(r))},t.setTextStyle=ie,t.setText=function(e,t,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,re(e,t,r,i)},t.getFont=function(e,t){var n=t&&t.getModel("textStyle");return i.trim([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},t.updateProps=ue,t.initProps=function(e,t,n,i,r){ce(!1,e,t,n,i,r)},t.getTransform=function(e,t){for(var n=o.identity([]);e&&e!==t;)o.mul(n,e.getLocalTransform(),n),e=e.parent;return n},t.applyTransform=fe,t.transformDirection=function(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return a=fe(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},t.groupTransition=function(e,t,n,r){if(e&&t){var a=function(e){var t={};return e.traverse(function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)}),t}(e);t.traverse(function(e){if(!e.isGroup&&e.anid){var t=a[e.anid];if(t){var i=o(e);e.attr(o(t)),ue(e,i,n,e.dataIndex)}}})}function o(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=i.extend({},e.shape)),t}},t.clipPointsByRect=function(e,t){return i.map(e,function(e){var n=e[0];n=E(n,t.x),n=B(n,t.x+t.width);var i=e[1];return i=E(i,t.y),[n,i=B(i,t.y+t.height)]})},t.clipRectByRect=function(e,t){var n=E(e.x,t.x),i=B(e.x+e.width,t.x+t.width),r=E(e.y,t.y),a=B(e.y+e.height,t.y+t.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}},t.createIcon=function(e,t,n){var r=(t=i.extend({rectHover:!0},t)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),i.defaults(r,n),new u(t)):R(e.replace("path://",""),t,n,"center")},t.linePolygonIntersect=function(e,t,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(he(e,t,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}},t.lineLineIntersect=he},function(e,t,n){var i=n(0),r=1e-4;var a=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}t.linearMap=function(e,t,n,i){var r=t[1]-t[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/r*a+n[0]},t.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?function(e){return e.replace(/^\s+|\s+$/g,"")}(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e},t.round=function(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e},t.asc=function(e){return e.sort(function(e,t){return e-t}),e},t.getPrecision=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n},t.getPrecisionSafe=function(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var i=+t.slice(n+1);return i<0?-i:0}var r=t.indexOf(".");return r<0?0:t.length-1-r},t.getPixelPrecision=function(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),a=Math.round(n(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},t.getPercentWithPrecision=function(e,t,n){if(!e[t])return 0;var r=i.reduce(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===r)return 0;for(var a=Math.pow(10,n),o=i.map(e,function(e){return(isNaN(e)?0:e)/r*a*100}),s=100*a,l=i.map(o,function(e){return Math.floor(e)}),c=i.reduce(l,function(e,t){return e+t},0),u=i.map(o,function(e,t){return e-l[t]});c<s;){for(var f=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>f&&(f=u[d],h=d);++l[h],u[h]=0,++c}return l[t]/a},t.MAX_SAFE_INTEGER=9007199254740991,t.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},t.isRadianAroundZero=function(e){return e>-r&&e<r},t.parseDate=function(e){if(e instanceof Date)return e;if("string"==typeof e){var t=a.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))},t.quantity=function(e){return Math.pow(10,o(e))},t.quantityExponent=o,t.nice=function(e,t){var n=o(e),i=Math.pow(10,n),r=e/i;return e=(t?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)*i,n>=-20?+e.toFixed(n<0?-n:0):e},t.quantile=function(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],a=n-i;return a?r+a*(e[i]-r):r},t.reformIntervals=function(e){e.sort(function(e,t){return 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))}(e,t,0)?-1:1});for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,a=e[i].close,o=0;o<2;o++)r[o]<=t&&(r[o]=t,a[o]=o?1:1-n),t=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!=1?e.splice(i,1):i++}return e},t.isNumeric=function(e){return e-parseFloat(e)>=0}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var i=n(0),r=n(20),a=i.each,o=i.isObject,s=i.isArray,l="series\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function u(e){return o(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}var f=0;function h(e,t){return e&&e.hasOwnProperty(t)}t.normalizeToArray=c,t.defaultEmphasis=function(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}},t.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"],t.getDataItemValue=function(e){return!o(e)||s(e)||e instanceof Date?e:e.value},t.isDataItemOption=function(e){return o(e)&&!(e instanceof Array)},t.mappingToExists=function(e,t){t=(t||[]).slice();var n=i.map(e||[],function(e,t){return{exist:e}});return a(t,function(e,i){if(o(e)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=e.id&&n[r].exist.id===e.id+"")return n[r].option=e,void(t[i]=null);for(r=0;r<n.length;r++){var a=n[r].exist;if(!(n[r].option||null!=a.id&&null!=e.id||null==e.name||u(e)||u(a)||a.name!==e.name+""))return n[r].option=e,void(t[i]=null)}}}),a(t,function(e,t){if(o(e)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!u(r)&&null==e.id){n[i].option=e;break}}i>=n.length&&n.push({option:e})}}),n},t.makeIdAndName=function(e){var t=i.createHashMap();a(e,function(e,n){var i=e.exist;i&&t.set(i.id,e)}),a(e,function(e,n){var r=e.option;i.assert(!r||null==r.id||!t.get(r.id)||t.get(r.id)===e,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&t.set(r.id,e),!e.keyInfo&&(e.keyInfo={})}),a(e,function(e,n){var i=e.exist,r=e.option,a=e.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":i?i.name:l+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(t.get(a.id))}t.set(a.id,e)}})},t.isNameSpecified=function(e){var t=e.name;return!(!t||!t.indexOf(l))},t.isIdInner=u,t.compressBatches=function(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[a(n),a(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++)for(var a=e[i].seriesId,o=c(e[i].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var f=o[l];s&&s[f]?s[f]=null:(t[a]||(t[a]={}))[f]=1}}function a(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=a(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}},t.queryDataIndex=function(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?i.isArray(t.dataIndex)?i.map(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?i.isArray(t.name)?i.map(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0},t.makeInner=function(){var e="__\0ec_inner_"+f+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}},t.parseFinder=function(e,t,n){if(i.isString(t)){var r={};r[t+"Index"]=0,t=r}var o=n&&n.defaultMainType;!o||h(t,o+"Index")||h(t,o+"Id")||h(t,o+"Name")||(t[o+"Index"]=0);var s={};return a(t,function(r,a){if(r=t[a],"dataIndex"!==a&&"dataIndexInside"!==a){var o=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],c=(o[2]||"").toLowerCase();if(!(!l||!c||null==r||"index"===c&&"none"===r||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var u={mainType:l};"index"===c&&"all"===r||(u[c]=r);var f=e.queryComponents(u);s[l+"Models"]=f,s[l+"Model"]=f[0]}}else s[a]=r}),s},t.setAttribute=function(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n},t.getAttribute=function(e,t){return e.getAttribute?e.getAttribute(t):e[t]},t.getTooltipRenderMode=function(e){return"auto"===e?r.domSupported?"html":"richText":e||"html"},t.groupData=function(e,t){var n=i.createHashMap(),r=[];return i.each(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}},function(e,t,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var i=n(17),r=i.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),o.prototype=Object.create(r.prototype),a(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),a=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<e.length;r++){var o=e[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){(function(e){var n;"undefined"!=typeof window?n=window.__DEV__:void 0!==e&&(n=e.__DEV__),void 0===n&&(n=!0);var i=n;t.__DEV__=i}).call(t,n(23))},function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=a[0],s={id:e+":"+r,css:a[1],media:a[2],sourceMap:a[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]})}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){c=n,f=r||{};var o=i(e,t);return p(o),function(t){for(var n=[],r=0;r<o.length;r++){var s=o[r];(l=a[s.id]).refs--,n.push(l)}for(t?p(o=i(e,t)):o=[],r=0;r<n.length;r++){var l;if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}};var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},f=null,h="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e){for(var t=0;t<e.length;t++){var n=e[t],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(g(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r<n.parts.length;r++)o.push(g(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:o}}}}function m(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function g(e){var t,n,i=document.querySelector("style["+h+'~="'+e.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(d){var r=l++;i=s||(s=m()),t=b.bind(null,i,r,!1),n=b.bind(null,i,r,!0)}else i=m(),t=function(e,t){var n=t.css,i=t.media,r=t.sourceMap;i&&e.setAttribute("media",i);f.ssrId&&e.setAttribute(h,t.id);r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=v(t,r);else{var a=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}},function(e,t,n){var i=n(0),r=n(16),a=n(6).parsePercent,o=n(14),s=i.each,l=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function u(e,t,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild(function(l,c){var u,f,h=l.position,d=l.getBoundingRect(),p=t.childAt(c+1),m=p&&p.getBoundingRect();if("horizontal"===e){var g=d.width+(m?-m.x+d.x:0);(u=a+g)>i||l.newline?(a=0,u=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(m?-m.y+d.y:0);(f=o+v)>r||l.newline?(a+=s+n,o=0,f=v,s=d.width):s=Math.max(s,d.width)}l.newline||(h[0]=a,h[1]=o,"horizontal"===e?a=u+n:o=f+n)})}var f=u,h=i.curry(u,"vertical"),d=i.curry(u,"horizontal");function p(e,t,n){n=o.normalizeCssArray(n||0);var i=t.width,s=t.height,l=a(e.left,i),c=a(e.top,s),u=a(e.right,i),f=a(e.bottom,s),h=a(e.width,i),d=a(e.height,s),p=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(h)&&(h=i-u-m-l),isNaN(d)&&(d=s-f-p-c),null!=g&&(isNaN(h)&&isNaN(d)&&(g>i/s?h=.8*i:d=.8*s),isNaN(h)&&(h=g*d),isNaN(d)&&(d=h/g)),isNaN(l)&&(l=i-u-h-m),isNaN(c)&&(c=s-f-d-p),e.left||e.right){case"center":l=i/2-h/2-n[3];break;case"right":l=i-h-m}switch(e.top||e.bottom){case"middle":case"center":c=s/2-d/2-n[0];break;case"bottom":c=s-d-p}l=l||0,c=c||0,isNaN(h)&&(h=i-m-l-(u||0)),isNaN(d)&&(d=s-p-c-(f||0));var v=new r(l+n[3],c+n[0],h,d);return v.margin=n,v}function m(e,t){return t&&e&&s(l,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}t.LOCATION_PARAMS=l,t.HV_NAMES=c,t.box=f,t.vbox=h,t.hbox=d,t.getAvailableSize=function(e,t,n){var i=t.width,r=t.height,s=a(e.x,i),l=a(e.y,r),c=a(e.x2,i),u=a(e.y2,r);return(isNaN(s)||isNaN(parseFloat(e.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(e.x2)))&&(c=i),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(e.y2)))&&(u=r),n=o.normalizeCssArray(n||0),{width:Math.max(c-s-n[1]-n[3],0),height:Math.max(u-l-n[0]-n[2],0)}},t.getLayoutRect=p,t.positionElement=function(e,t,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||l){var u;if("raw"===c)u="group"===e.type?new r(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();(u=u.clone()).applyTransform(f)}t=p(i.defaults({width:u.width,height:u.height},t),n,a);var h=e.position,d=s?t.x-u.x:0,m=l?t.y-u.y:0;e.attr("position","raw"===c?[d,m]:[h[0]+d,h[1]+m])}},t.sizeCalculable=function(e,t){return null!=e[c[t][0]]||null!=e[c[t][1]]&&null!=e[c[t][2]]},t.mergeLayoutParam=function(e,t,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=l(c[0],0),o=l(c[1],1);function l(n,i){var a={},o=0,l={},c=0;if(s(n,function(t){l[t]=e[t]}),s(n,function(e){u(t,e)&&(a[e]=l