/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],[function(t,e){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},r={"[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},o=Object.prototype.toString,l=Array.prototype,c=l.forEach,h=l.filter,d=l.slice,f=l.map,v=l.reduce,m={};function y(source){if(null==source||"object"!=typeof source)return source;var t=source,e=o.call(source);if("[object Array]"===e){if(!L(source)){t=[];for(var i=0,l=source.length;i<l;i++)t[i]=y(source[i])}}else if(r[e]){if(!L(source)){var c=source.constructor;if(source.constructor.from)t=c.from(source);else{t=new c(source.length);for(i=0,l=source.length;i<l;i++)t[i]=y(source[i])}}}else if(!n[e]&&!L(source)&&!D(source))for(var h in t={},source)source.hasOwnProperty(h)&&(t[h]=y(source[h]));return t}function x(t,source,e){if(!I(source)||!I(t))return e?y(source):t;for(var n in source)if(source.hasOwnProperty(n)){var r=t[n],o=source[n];!I(o)||!I(r)||A(o)||A(r)||D(o)||D(r)||C(o)||C(r)||L(o)||L(r)?!e&&n in t||(t[n]=y(source[n])):x(r,o,e)}return t}function _(t,source,e){for(var n in source)source.hasOwnProperty(n)&&(e?null!=source[n]:null==t[n])&&(t[n]=source[n]);return t}var w,S=function(){return m.createCanvas()};function M(t,e,n){if(t&&e)if(t.forEach&&t.forEach===c)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function T(t,e){var n=d.call(arguments,2);return function(){return t.apply(e,n.concat(d.call(arguments)))}}function A(t){return"[object Array]"===o.call(t)}function I(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function C(t){return!!n[o.call(t)]}function D(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}m.createCanvas=function(){return document.createElement("canvas")};function L(t){return t.__ec_primitive__}function k(t){var e=A(t);this.data={};var n=this;function r(t,r){e?n.set(t,r):n.set(r,t)}t instanceof k?t.each(r):t&&M(t,r)}k.prototype={constructor:k,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var n in void 0!==e&&(t=T(t,e)),this.data)this.data.hasOwnProperty(n)&&t(this.data[n],n)},removeKey:function(t){delete this.data[t]}},e.$override=function(t,e){"createCanvas"===t&&(w=null),m[t]=e},e.clone=y,e.merge=x,e.mergeAll=function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=x(n,t[i],e);return n},e.extend=function(t,source){for(var e in source)source.hasOwnProperty(e)&&(t[e]=source[e]);return t},e.defaults=_,e.createCanvas=S,e.getContext=function(){return w||(w=S().getContext("2d")),w},e.indexOf=function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1},e.inherits=function(t,e){var n=t.prototype;function r(){}for(var o in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(o)&&(t.prototype[o]=n[o]);t.prototype.constructor=t,t.superClass=e},e.mixin=function(t,source,e){_(t="prototype"in t?t.prototype:t,source="prototype"in source?source.prototype:source,e)},e.isArrayLike=function(data){if(data)return"string"!=typeof data&&"number"==typeof data.length},e.each=M,e.map=function(t,e,n){if(t&&e){if(t.map&&t.map===f)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}},e.reduce=function(t,e,n,r){if(t&&e){if(t.reduce&&t.reduce===v)return t.reduce(e,n,r);for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}},e.filter=function(t,e,n){if(t&&e){if(t.filter&&t.filter===h)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}},e.find=function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},e.bind=T,e.curry=function(t){var e=d.call(arguments,1);return function(){return t.apply(this,e.concat(d.call(arguments)))}},e.isArray=A,e.isFunction=function(t){return"function"==typeof t},e.isString=function(t){return"[object String]"===o.call(t)},e.isObject=I,e.isBuiltInObject=C,e.isTypedArray=function(t){return!!r[o.call(t)]},e.isDom=D,e.eqNaN=function(t){return t!=t},e.retrieve=function(t){for(var i=0,e=arguments.length;i<e;i++)if(null!=arguments[i])return arguments[i]},e.retrieve2=function(t,e){return null!=t?t:e},e.retrieve3=function(t,e,n){return null!=t?t:null!=e?e:n},e.slice=function(){return Function.call.apply(d,arguments)},e.normalizeCssArray=function(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},e.assert=function(t,e){if(!t)throw new Error(e)},e.trim=function(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.setAsPrimitive=function(t){t.__ec_primitive__=!0},e.isPrimitive=L,e.createHashMap=function(t){return new k(t)},e.concatArray=function(a,b){for(var t=new a.constructor(a.length+b.length),i=0;i<a.length;i++)t[i]=a[i];var e=a.length;for(i=0;i<b.length;i++)t[i+e]=b[i];return t},e.noop=function(){}},function(t,e,n){n(7).__DEV__;var r=n(156),o=n(0),l=n(47),c=n(18),h=n(205),d=n(75),f=n(318),v=n(331),m=n(42),y=n(722),x=n(723),_=n(725),w=n(21),S=n(22),M=n(162),T=n(48),A=n(2),I=n(6),C=n(64).throttle,D=n(726),L=n(727),k=n(728),P=n(729),O=n(730),E=n(731);n(332);var N=n(214),R=o.assert,z=o.each,B=o.isFunction,V=o.isObject,H=w.parseClassType,F={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},G="__flagInMainProcess",W=/^[a-zA-Z0-9_]+$/;function j(t,e){return function(n,r,o){e||!this._disposed?(n=n&&n.toLowerCase(),d.prototype[t].call(this,n,r,o)):this.id}}function U(){d.call(this)}function Z(t,e,n){n=n||{},"string"==typeof e&&(e=xt[e]),this.id,this.group,this._dom=t;var l=this._zr=r.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=C(o.bind(l.flush,l),17),(e=o.clone(e))&&x(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new m;var c,f,y=this._api=(f=(c=this)._coordSysMgr,o.extend(new v(c),{getCoordinateSystems:o.bind(f.getCoordinateSystems,f),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return c._model.getComponent(e.mainType,e.index);t=t.parent}}}));function _(a,b){return a.__prio-b.__prio}h(yt,_),h(gt,_),this._scheduler=new P(this,y,gt,yt),d.call(this,this._ecEventProcessor=new ht),this._messageCenter=new U,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],l.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e.__optionUpdated||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}(l,this),o.setAsPrimitive(this)}U.prototype.on=j("on",!0),U.prototype.off=j("off",!0),U.prototype.one=j("one",!0),o.mixin(U,d);var Y=Z.prototype;function X(t,e,n){if(this._disposed)this.id;else{var r,o=this._model,l=this._coordSysMgr.getCoordinateSystems();e=I.parseFinder(o,e);for(var i=0;i<l.length;i++){var c=l[i];if(c[t]&&null!=(r=c[t](o,e,n)))return r}}}Y._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this.__optionUpdated){var e=this.__optionUpdated.silent;this[G]=!0,K(this),$.update.call(this),this[G]=!1,this.__optionUpdated=!1,et.call(this,e),nt.call(this,e)}else if(t.unfinished){var n=1,r=this._model,o=this._api;t.unfinished=!1;do{var l=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),Q(this,r),t.performVisualTasks(r),st(this,this._model,o,"remain"),n-=+new Date-l}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},Y.getDom=function(){return this._dom},Y.getZr=function(){return this._zr},Y.setOption=function(option,t,e){if(this._disposed)this.id;else{var n;if(V(t)&&(e=t.lazyUpdate,n=t.silent,t=t.notMerge),this[G]=!0,!this._model||t){var r=new y(this._api),o=this._theme,l=this._model=new f;l.scheduler=this._scheduler,l.init(null,null,o,r)}this._model.setOption(option,vt),e?(this.__optionUpdated={silent:n},this[G]=!1):(K(this),$.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this[G]=!1,et.call(this,n),nt.call(this,n))}},Y.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Y.getModel=function(){return this._model},Y.getOption=function(){return this._model&&this._model.getOption()},Y.getWidth=function(){return this._zr.getWidth()},Y.getHeight=function(){return this._zr.getHeight()},Y.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Y.getRenderedCanvas=function(t){if(c.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},Y.getSvgDataURL=function(){if(c.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return o.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},Y.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],o=this;z(e,(function(t){n.eachComponent({mainType:t},(function(component){var view=o._componentsMap[component.__viewId];view.group.ignore||(r.push(view),view.group.ignore=!0)}))}));var l="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return z(r,(function(view){view.group.ignore=!1})),l}this.id},Y.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(c.canvasSupported){var e="svg"===t.type,n=this.group,l=Math.min,h=Math.max;if(wt[n]){var d=1/0,f=1/0,v=-1/0,m=-1/0,y=[],x=t&&t.pixelRatio||1;o.each(bt,(function(r,c){if(r.group===n){var canvas=e?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(o.clone(t)),x=r.getDom().getBoundingClientRect();d=l(x.left,d),f=l(x.top,f),v=h(x.right,v),m=h(x.bottom,m),y.push({dom:canvas,left:x.left,top:x.top})}}));var _=(v*=x)-(d*=x),w=(m*=x)-(f*=x),S=o.createCanvas(),M=r.init(S,{renderer:e?"svg":"canvas"});if(M.resize({width:_,height:w}),e){var content="";return z(y,(function(t){var e=t.left-d,n=t.top-f;content+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),M.painter.getSvgRoot().innerHTML=content,t.connectedBackgroundColor&&M.painter.setBackgroundColor(t.connectedBackgroundColor),M.refreshImmediately(),M.painter.toDataURL()}return t.connectedBackgroundColor&&M.add(new A.Rect({shape:{x:0,y:0,width:_,height:w},style:{fill:t.connectedBackgroundColor}})),z(y,(function(t){var img=new A.Image({style:{x:t.left*x-d,y:t.top*x-f,image:t.dom}});M.add(img)})),M.refreshImmediately(),S.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Y.convertToPixel=o.curry(X,"convertToPixel"),Y.convertFromPixel=o.curry(X,"convertFromPixel"),Y.containPixel=function(t,e){if(!this._disposed){var n,r=this._model;return t=I.parseFinder(r,t),o.each(t,(function(t,r){r.indexOf("Models")>=0&&o.each(t,(function(t){var o=t.coordinateSystem;if(o&&o.containPoint)n|=!!o.containPoint(e);else if("seriesModels"===r){var view=this._chartsMap[t.__viewId];view&&view.containPoint&&(n|=view.containPoint(e,t))}}),this)}),this),!!n}this.id},Y.getVisual=function(t,e){var n=this._model,data=(t=I.parseFinder(n,t,{defaultMainType:"series"})).seriesModel.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?data.indexOfRawIndex(t.dataIndex):null;return null!=r?data.getItemVisual(r,e):data.getVisual(e)},Y.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Y.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var $={prepareAndUpdate:function(t){K(this),$.update.call(this,t)},update:function(t){var e=this._model,n=this._api,r=this._zr,o=this._coordSysMgr,h=this._scheduler;if(e){h.restoreData(e,t),h.performSeriesTasks(e),o.create(e,n),h.performDataProcessorTasks(e,t),Q(this,e),o.update(e,n),ot(e),h.performVisualTasks(e,t),at(this,e,n,t);var d=e.get("backgroundColor")||"transparent";if(c.canvasSupported)r.setBackgroundColor(d);else{var f=l.parse(d);d=l.stringify(f,"rgb"),0===f[3]&&(d="transparent")}lt(e,n)}},updateTransform:function(t){var e=this._model,n=this,r=this._api;if(e){var l=[];e.eachComponent((function(o,c){var h=n.getViewOfComponentModel(c);if(h&&h.__alive)if(h.updateTransform){var d=h.updateTransform(c,e,r,t);d&&d.update&&l.push(h)}else l.push(h)}));var c=o.createHashMap();e.eachSeries((function(o){var l=n._chartsMap[o.__viewId];if(l.updateTransform){var h=l.updateTransform(o,e,r,t);h&&h.update&&c.set(o.uid,1)}else c.set(o.uid,1)})),ot(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:c}),st(n,e,r,t,c),lt(e,this._api)}},updateView:function(t){var e=this._model;e&&(T.markUpdateMethod(t,"updateView"),ot(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),at(this,this._model,this._api,t),lt(e,this._api))},updateVisual:function(t){$.update.call(this,t)},updateLayout:function(t){$.update.call(this,t)}};function K(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),it(t,"component",e,n),it(t,"chart",e,n),n.plan()}function J(t,e,n,r,l){var c=t._model;if(r){var h={};h[r+"Id"]=n[r+"Id"],h[r+"Index"]=n[r+"Index"],h[r+"Name"]=n[r+"Name"];var d={mainType:r,query:h};l&&(d.subType=l);var f=n.excludeSeriesId;null!=f&&(f=o.createHashMap(I.normalizeToArray(f))),c&&c.eachComponent(d,(function(e){f&&null!=f.get(e.id)||v(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else z(t._componentsViews.concat(t._chartsViews),v);function v(view){view&&view.__alive&&view[e]&&view[e](view.__model,c,t._api,n)}}function Q(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))}function tt(t,e){var n=t.type,r=t.escapeConnect,l=ft[n],c=l.actionInfo,h=(c.update||"update").split(":"),d=h.pop();h=null!=h[0]&&H(h[0]),this[G]=!0;var f=[t],v=!1;t.batch&&(v=!0,f=o.map(t.batch,(function(e){return(e=o.defaults(o.extend({},e),t)).batch=null,e})));var m,y=[],x="highlight"===n||"downplay"===n;z(f,(function(t){(m=(m=l.action(t,this._model,this._api))||o.extend({},t)).type=c.event||m.type,y.push(m),x?J(this,d,t,"series"):h&&J(this,d,t,h.main,h.sub)}),this),"none"===d||x||h||(this.__optionUpdated?(K(this),$.update.call(this,t),this.__optionUpdated=!1):$[d].call(this,t)),m=v?{type:c.event||n,escapeConnect:r,batch:y}:y[0],this[G]=!1,!e&&this._messageCenter.trigger(m.type,m)}function et(t){for(var e=this._pendingActions;e.length;){var n=e.shift();tt.call(this,n,t)}}function nt(t){!t&&this.trigger("updated")}function it(t,e,n,r){for(var o="component"===e,l=o?t._componentsViews:t._chartsViews,c=o?t._componentsMap:t._chartsMap,h=t._zr,d=t._api,i=0;i<l.length;i++)l[i].__alive=!1;function f(t){var e="_ec_"+t.id+"_"+t.type,view=c[e];if(!view){var f=H(t.type);(view=new(o?M.getClass(f.main,f.sub):T.getClass(f.sub))).init(n,d),c[e]=view,l.push(view),h.add(view.group)}t.__viewId=view.__id=e,view.__alive=!0,view.__model=t,view.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!o&&r.prepareView(view,t,n,d)}o?n.eachComponent((function(t,e){"series"!==t&&f(e)})):n.eachSeries(f);for(i=0;i<l.length;){var view=l[i];view.__alive?i++:(!o&&view.renderTask.dispose(),h.remove(view.group),view.dispose(n,d),l.splice(i,1),delete c[view.__id],view.__id=view.group.__ecComponentInfo=null)}}function ot(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function at(t,e,n,r){!function(t,e,n,r,o){z(o||t._componentsViews,(function(t){var o=t.__model;t.render(o,e,n,r),ct(o,t)}))}(t,e,n,r),z(t._chartsViews,(function(t){t.__alive=!1})),st(t,e,n,r),z(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))}function st(t,e,n,r,o){var l,h=t._scheduler;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var c=n.renderTask;h.updatePayload(c,r),o&&o.get(e.uid)&&c.dirty(),l|=c.perform(h.getPerformArgs(c)),n.group.silent=!!e.get("silent"),ct(e,n),function(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",n)}))}))}(e,n)})),h.unfinished|=l,function(t,e){var n=t._zr.storage,r=0;n.traverse((function(t){r++})),r>e.get("hoverLayerThreshold")&&!c.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),L(t._zr.dom,e)}function lt(t,e){z(mt,(function(n){n(t,e)}))}Y.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[G]=!0,n&&K(this),$.update.call(this),this[G]=!1,et.call(this,r),nt.call(this,r)}}},Y.showLoading=function(t,e){if(this._disposed)this.id;else if(V(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),_t[t]){var n=_t[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},Y.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},Y.makeActionFromEvent=function(t){var e=o.extend({},t);return e.type=pt[t.type],e},Y.dispatchAction=function(t,e){this._disposed?this.id:(V(e)||(e={silent:!!e}),ft[t.type]&&this._model&&(this[G]?this._pendingActions.push(t):(tt.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&c.browser.weChat&&this._throttledZrFlush(),et.call(this,e.silent),nt.call(this,e.silent))))},Y.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},Y.on=j("on",!1),Y.off=j("off",!1),Y.one=j("one",!1);var ut=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ct(t,view){var e=t.get("z"),n=t.get("zlevel");view.group.traverse((function(t){"group"!==t.type&&(null!=e&&(t.z=e),null!=n&&(t.zlevel=n))}))}function ht(){this.eventInfo}Y._initEvents=function(){z(ut,(function(t){var e=function(e){var n,r=this.getModel(),l=e.target;if("globalout"===t)n={};else if(l&&null!=l.dataIndex){var c=l.dataModel||r.getSeriesByIndex(l.seriesIndex);n=c&&c.getDataParams(l.dataIndex,l.dataType,l)||{}}else l&&l.eventData&&(n=o.extend({},l.eventData));if(n){var h=n.componentType,d=n.componentIndex;"markLine"!==h&&"markPoint"!==h&&"markArea"!==h||(h="series",d=n.seriesIndex);var f=h&&null!=d&&r.getComponent(h,d),view=f&&this["series"===f.mainType?"_chartsMap":"_componentsMap"][f.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:l,packedEvent:n,model:f,view:view},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),z(pt,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},Y.isDisposed=function(){return this._disposed},Y.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},Y.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,I.setAttribute(this.getDom(),Tt,"");var t=this._api,e=this._model;z(this._componentsViews,(function(component){component.dispose(e,t)})),z(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete bt[this.id]}},o.mixin(Z,d),ht.prototype={constructor:ht,normalizeQuery:function(t){var e={},n={},r={};if(o.isString(t)){var l=H(t);e.mainType=l.main||null,e.subType=l.sub||null}else{var c=["Index","Name","Id"],h={name:1,dataIndex:1,dataType:1};o.each(t,(function(t,o){for(var l=!1,i=0;i<c.length;i++){var d=c[i],f=o.lastIndexOf(d);if(f>0&&f===o.length-d.length){var v=o.slice(0,f);"data"!==v&&(e.mainType=v,e[d.toLowerCase()]=t,l=!0)}}h.hasOwnProperty(o)&&(n[o]=t,l=!0),l||(r[o]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},filter:function(t,e,n){var r=this.eventInfo;if(!r)return!0;var o=r.targetEl,l=r.packedEvent,c=r.model,view=r.view;if(!c||!view)return!0;var h=e.cptQuery,d=e.dataQuery;return f(h,c,"mainType")&&f(h,c,"subType")&&f(h,c,"index","componentIndex")&&f(h,c,"name")&&f(h,c,"id")&&f(d,l,"name")&&f(d,l,"dataIndex")&&f(d,l,"dataType")&&(!view.filterForExposedEvent||view.filterForExposedEvent(t,e.otherQuery,o,l));function f(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var ft={},pt={},gt=[],vt=[],mt=[],yt=[],xt={},_t={},bt={},wt={},St=new Date-0,Mt=new Date-0,Tt="_echarts_instance_";function At(t){wt[t]=!1}var It=At;function Ct(t){return bt[I.getAttribute(t,Tt)]}function Dt(t,e){xt[t]=e}function Lt(t){vt.push(t)}function kt(t,e){Et(gt,t,e,1e3)}function Pt(t,e,n){"function"==typeof e&&(n=e,e="");var r=V(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,R(W.test(r)&&W.test(e)),ft[r]||(ft[r]={action:n,actionInfo:t}),pt[e]=r}function Ot(t,e){Et(yt,t,e,3e3,"visual")}function Et(t,e,n,r,o){(B(e)||V(e))&&(n=e,e=r);var l=P.wrapStageHandler(n,o);return l.__prio=e,l.__raw=n,t.push(l),l}function Nt(t,e){_t[t]=e}Ot(2e3,D),Lt(x),kt(900,_),Nt("default",k),Pt({type:"highlight",event:"highlight",update:"highlight"},o.noop),Pt({type:"downplay",event:"downplay",update:"downplay"},o.noop),Dt("light",O),Dt("dark",E);e.version="4.8.0",e.dependencies={zrender:"4.3.1"},e.PRIORITY=F,e.init=function(t,e,n){var r=Ct(t);if(r)return r;var o=new Z(t,e,n);return o.id="ec_"+St++,bt[o.id]=o,I.setAttribute(t,Tt,o.id),function(t){var e="__connectUpdateStatus";function n(t,n){for(var i=0;i<t.length;i++){t[i][e]=n}}z(pt,(function(r,o){t._messageCenter.on(o,(function(r){if(wt[t.group]&&0!==t[e]){if(r&&r.escapeConnect)return;var o=t.makeActionFromEvent(r),l=[];z(bt,(function(e){e!==t&&e.group===t.group&&l.push(e)})),n(l,0),z(l,(function(t){1!==t[e]&&t.dispatchAction(o)})),n(l,2)}}))}))}(o),o},e.connect=function(t){if(o.isArray(t)){var e=t;t=null,z(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+Mt++,z(e,(function(e){e.group=t}))}return wt[t]=!0,t},e.disConnect=At,e.disconnect=It,e.dispose=function(t){"string"==typeof t?t=bt[t]:t instanceof Z||(t=Ct(t)),t instanceof Z&&!t.isDisposed()&&t.dispose()},e.getInstanceByDom=Ct,e.getInstanceById=function(t){return bt[t]},e.registerTheme=Dt,e.registerPreprocessor=Lt,e.registerProcessor=kt,e.registerPostUpdate=function(t){mt.push(t)},e.registerAction=Pt,e.registerCoordinateSystem=function(t,e){m.register(t,e)},e.getCoordinateSystemDimensions=function(t){var e=m.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},e.registerLayout=function(t,e){Et(yt,t,e,1e3,"layout")},e.registerVisual=Ot,e.registerLoading=Nt,e.extendComponentModel=function(t){return w.extend(t)},e.extendComponentView=function(t){return M.extend(t)},e.extendSeriesModel=function(t){return S.extend(t)},e.extendChartView=function(t){return T.extend(t)},e.setCanvasCreator=function(t){o.$override("createCanvas",t)},e.registerMap=function(t,e,n){N.registerMap(t,e,n)},e.getMap=function(t){var e=N.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},e.dataTool={};var Rt=n(334);!function(){for(var t in Rt)Rt.hasOwnProperty(t)&&(e[t]=Rt[t])}()},function(t,e,n){var r=n(0),o=n(319),l=n(47),c=n(27),h=n(11),d=n(17),f=n(157),v=n(92);e.Image=v;var m=n(76);e.Group=m;var y=n(77);e.Text=y;var x=n(324);e.Circle=x;var _=n(711);e.Sector=_;var w=n(712);e.Ring=w;var S=n(326);e.Polygon=S;var M=n(328);e.Polyline=M;var T=n(208);e.Rect=T;var A=n(329);e.Line=A;var I=n(715);e.BezierCurve=I;var C=n(716);e.Arc=C;var D=n(717);e.CompoundPath=D;var L=n(210);e.LinearGradient=L;var k=n(718);e.RadialGradient=k;var P=n(14);e.BoundingRect=P;var O=n(211);e.IncrementalDisplayable=O;var E=n(209),N=Math.max,R=Math.min,z={},B=1,V={},H={};function F(t,e){H[t]=e}function G(t,e,rect,n){var path=o.createFromString(t,e);return rect&&("center"===n&&(rect=W(rect,path.getBoundingRect())),U(path,rect)),path}function W(rect,t){var e,n=t.width/t.height,r=rect.height*n;return e=r<=rect.width?rect.height:(r=rect.width)/n,{x:rect.x+rect.width/2-r/2,y:rect.y+rect.height/2-e/2,width:r,height:e}}var j=o.mergePath;function U(path,rect){if(path.applyTransform){var t=path.getBoundingRect().calculateTransform(rect);path.applyTransform(t)}}var Z=E.subPixelOptimize;function Y(t){return null!=t&&"none"!==t}var X=r.createHashMap(),$=0;function K(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,r=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=r?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var o=t,l=t.style;r&&(l=(o=n.addHover(t)).style),gt(l),r||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var r=t.style;for(var o in e)null!=e[o]&&(n[o]=r[o]);n.fill=r.fill,n.stroke=r.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(o),l.extendFrom(e),J(l,e,"fill"),J(l,e,"stroke"),pt(l),r||(t.dirty(!1),t.z2+=1)}}}function J(t,e,n){!Y(e[n])&&Y(t[n])&&(t[n]=function(t){if("string"!=typeof t)return t;var e=X.get(t);return e||(e=l.lift(t,-.1),$<1e4&&(X.set(t,e),$++)),e}(t[n]))}function Q(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var style=t.style,n=t.__cachedNormalStl;n&&(gt(style),t.setStyle(n),pt(style));var r=t.__cachedNormalZ2;null!=r&&t.z2-r==1&&(t.z2=r)}}function tt(t,e,n){var r,o="normal",l="normal";t.__highlighted&&(o="emphasis",r=!0),e(t,n),t.__highlighted&&(l="emphasis",r=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,n)})),r&&t.__highDownOnUpdate&&t.__highDownOnUpdate(o,l)}function et(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,Q(t),K(t))}function nt(t){!st(this,t)&&!this.__highByOuter&&tt(this,K)}function it(t){!st(this,t)&&!this.__highByOuter&&tt(this,Q)}function ot(t){this.__highByOuter|=1<<(t||0),tt(this,K)}function at(t){!(this.__highByOuter&=~(1<<(t||0)))&&tt(this,Q)}function st(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function lt(t,e){var n=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var r=n?"off":"on";t[r]("mouseover",nt)[r]("mouseout",it),t[r]("emphasis",ot)[r]("normal",at),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function ut(t,e,n,o,l){return ct(t,e,o,l),n&&r.extend(t,n),t}function ct(t,e,n,o){if((n=n||z).isRectText){var l;n.getTextPosition?l=n.getTextPosition(e,o):"outside"===(l=e.getShallow("position")||(o?null:"inside"))&&(l="top"),t.textPosition=l,t.textOffset=e.getShallow("offset");var c=e.getShallow("rotate");null!=c&&(c*=Math.PI/180),t.textRotation=c,t.textDistance=r.retrieve2(e.getShallow("distance"),o?null:5)}var h,d=e.ecModel,f=d&&d.option.textStyle,v=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||z).rich;if(n)for(var r in e=e||{},n)n.hasOwnProperty(r)&&(e[r]=1);t=t.parentModel}return e}(e);if(v)for(var m in h={},v)if(v.hasOwnProperty(m)){var y=e.getModel(["rich",m]);ht(h[m]={},y,f,n,o)}return t.rich=h,ht(t,e,f,n,o,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function ht(t,e,n,o,l,c){n=!l&&n||z,t.textFill=ft(e.getShallow("color"),o)||n.color,t.textStroke=ft(e.getShallow("textBorderColor"),o)||n.textBorderColor,t.textStrokeWidth=r.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),l||(c&&(t.insideRollbackOpt=o,pt(t)),null==t.textFill&&(t.textFill=o.autoColor)),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"),c&&o.disableBox||(t.textBackgroundColor=ft(e.getShallow("backgroundColor"),o),t.textPadding=e.getShallow("padding"),t.textBorderColor=ft(e.getShallow("borderColor"),o),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 ft(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function pt(t){var e,n=t.textPosition,r=t.insideRollbackOpt;if(r&&null==t.textFill){var o=r.autoColor,l=r.isRectText,c=r.useInsideStyle,h=!1!==c&&(!0===c||l&&n&&"string"==typeof n&&n.indexOf("inside")>=0),d=!h&&null!=o;(h||d)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),h&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),d&&(t.textFill=o)}t.insideRollback=e}function gt(style){var t=style.insideRollback;t&&(style.textFill=t.textFill,style.textStroke=t.textStroke,style.textStrokeWidth=t.textStrokeWidth,style.insideRollback=null)}function vt(t,e,n,r,o,l){if("function"==typeof o&&(l=o,o=null),r&&r.isAnimationEnabled()){var c=t?"Update":"",h=r.getShallow("animationDuration"+c),d=r.getShallow("animationEasing"+c),f=r.getShallow("animationDelay"+c);"function"==typeof f&&(f=f(o,r.getAnimationDelayParams?r.getAnimationDelayParams(e,o):null)),"function"==typeof h&&(h=h(o)),h>0?e.animateTo(n,h,f||0,d,l,!!l):(e.stopAnimation(),e.attr(n),l&&l())}else e.stopAnimation(),e.attr(n),l&&l()}function mt(t,e,n,r,o){vt(!0,t,e,n,r,o)}function yt(t,e,n){return e&&!r.isArrayLike(e)&&(e=f.getLocalTransform(e)),n&&(e=c.invert([],e)),h.applyTransform([],t,e)}function xt(t,e,n,r,o,l,c,h){var d,f=n-t,v=r-e,m=c-o,y=h-l,x=_t(m,y,f,v);if((d=x)<=1e-6&&d>=-1e-6)return!1;var _=t-o,w=e-l,q=_t(_,w,f,v)/x;if(q<0||q>1)return!1;var p=_t(_,w,m,y)/x;return!(p<0||p>1)}function _t(t,e,n,r){return t*r-n*e}F("circle",x),F("sector",_),F("ring",w),F("polygon",S),F("polyline",M),F("rect",T),F("line",A),F("bezierCurve",I),F("arc",C),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return d.extend(t)},e.extendPath=function(t,e){return o.extendFromString(t,e)},e.registerShape=F,e.getShapeClass=function(t){if(H.hasOwnProperty(t))return H[t]},e.makePath=G,e.makeImage=function(t,rect,e){var path=new v({style:{image:t,x:rect.x,y:rect.y,width:rect.width,height:rect.height},onload:function(img){if("center"===e){var t={width:img.width,height:img.height};path.setStyle(W(rect,t))}}});return path},e.mergePath=j,e.resizePath=U,e.subPixelOptimizeLine=function(param){return E.subPixelOptimizeLine(param.shape,param.shape,param.style),param},e.subPixelOptimizeRect=function(param){return E.subPixelOptimizeRect(param.shape,param.shape,param.style),param},e.subPixelOptimize=Z,e.setElementHoverStyle=et,e.setHoverStyle=function(t,e){lt(t,!0),tt(t,et,e)},e.setAsHighDownDispatcher=lt,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=V[t];return null==e&&B<=32&&(e=V[t]=B++),e},e.setLabelStyle=function(t,e,n,o,l,c,h){var d,f=(l=l||z).labelFetcher,v=l.labelDataIndex,m=l.labelDimIndex,y=l.labelProp,x=n.getShallow("show"),_=o.getShallow("show");(x||_)&&(f&&(d=f.getFormattedLabel(v,"normal",null,m,y)),null==d&&(d=r.isFunction(l.defaultText)?l.defaultText(v,l):l.defaultText));var w=x?d:null,S=_?r.retrieve2(f?f.getFormattedLabel(v,"emphasis",null,m,y):null,d):null;null==w&&null==S||(ut(t,n,c,l),ut(e,o,h,l,!0)),t.text=w,e.text=S},e.modifyLabelStyle=function(t,e,n){var o=t.style;e&&(gt(o),t.setStyle(e),pt(o)),o=t.__hoverStl,n&&o&&(gt(o),r.extend(o,n),pt(o))},e.setTextStyle=ut,e.setText=function(t,e,n){var r,o={isRectText:!0};!1===n?r=!0:o.autoColor=n,ct(t,e,o,r)},e.getFont=function(t,e){var n=e&&e.getModel("textStyle");return r.trim([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=mt,e.initProps=function(t,e,n,r,o){vt(!1,t,e,n,r,o)},e.getTransform=function(t,e){for(var n=c.identity([]);t&&t!==e;)c.mul(n,t.getLocalTransform(),n),t=t.parent;return n},e.applyTransform=yt,e.transformDirection=function(t,e,n){var r=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]),l=["left"===t?-r:"right"===t?r:0,"top"===t?-o:"bottom"===t?o:0];return l=yt(l,e,n),Math.abs(l[0])>Math.abs(l[1])?l[0]>0?"right":"left":l[1]>0?"bottom":"top"},e.groupTransition=function(t,e,n,o){if(t&&e){var l,c=(l={},t.traverse((function(t){!t.isGroup&&t.anid&&(l[t.anid]=t)})),l);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=c[t.anid];if(e){var r=d(t);t.attr(d(e)),mt(t,r,n,t.dataIndex)}}}))}function d(t){var e={position:h.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=r.extend({},t.shape)),e}},e.clipPointsByRect=function(t,rect){return r.map(t,(function(t){var e=t[0];e=N(e,rect.x),e=R(e,rect.x+rect.width);var n=t[1];return n=N(n,rect.y),[e,n=R(n,rect.y+rect.height)]}))},e.clipRectByRect=function(t,rect){var e=N(t.x,rect.x),n=R(t.x+t.width,rect.x+rect.width),r=N(t.y,rect.y),o=R(t.y+t.height,rect.y+rect.height);if(n>=e&&o>=r)return{x:e,y:r,width:n-e,height:o-r}},e.createIcon=function(t,e,rect){var style=(e=r.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(rect=rect||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(style.image=t.slice(8),r.defaults(style,rect),new v(e)):G(t.replace("path://",""),e,rect,"center")},e.linePolygonIntersect=function(t,e,n,r,o){for(var i=0,l=o[o.length-1];i<o.length;i++){var p=o[i];if(xt(t,e,n,r,p[0],p[1],l[0],l[1]))return!0;l=p}},e.lineLineIntersect=xt},,,function(t,e,n){var r=n(0);var o=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function l(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}e.linearMap=function(t,e,n,r){var o=e[1]-e[0],l=n[1]-n[0];if(0===o)return 0===l?n[0]:(n[0]+n[1])/2;if(r)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*l+n[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n},e.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},e.asc=function(t){return t.sort((function(a,b){return a-b})),t},e.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},e.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var r=+e.slice(n+1);return r<0?-r:0}var o=e.indexOf(".");return o<0?0:e.length-1-o},e.getPixelPrecision=function(t,e){var n=Math.log,r=Math.LN10,o=Math.floor(n(t[1]-t[0])/r),l=Math.round(n(Math.abs(e[1]-e[0]))/r),c=Math.min(Math.max(-o+l,0),20);return isFinite(c)?c:20},e.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var o=r.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===o)return 0;for(var l=Math.pow(10,n),c=r.map(t,(function(t){return(isNaN(t)?0:t)/o*l*100})),h=100*l,d=r.map(c,(function(t){return Math.floor(t)})),f=r.reduce(d,(function(t,e){return t+e}),0),v=r.map(c,(function(t,e){return t-d[e]}));f<h;){for(var m=Number.NEGATIVE_INFINITY,y=null,i=0,x=v.length;i<x;++i)v[i]>m&&(m=v[i],y=i);++d[y],v[y]=0,++f}return d[e]/l},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4},e.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=o.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,l(t))},e.quantityExponent=l,e.nice=function(t,e){var n=l(t),r=Math.pow(10,n),o=t/r;return t=(e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t},e.quantile=function(t,p){var e=(t.length-1)*p+1,n=Math.floor(e),r=+t[n-1],o=e-n;return o?r+o*(t[n]-r):r},e.reformIntervals=function(t){t.sort((function(a,b){return function t(a,b,e){return a.interval[e]<b.interval[e]||a.interval[e]===b.interval[e]&&(a.close[e]-b.close[e]==(e?-1:1)||!e&&t(a,b,1))}(a,b,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,l=0;l<2;l++)r[l]<=e&&(r[l]=e,o[l]=l?1:1-n),e=r[l],n=o[l];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t},e.isNumeric=function(t){return t-parseFloat(t)>=0}},function(t,e,n){var r=n(0),o=n(18),l=r.each,c=r.isObject,h=r.isArray;function d(t){return t instanceof Array?t:null==t?[]:[t]}function f(t){return c(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}var v=0;function m(t,e){return t&&t.hasOwnProperty(e)}e.normalizeToArray=d,e.defaultEmphasis=function(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}},e.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"],e.getDataItemValue=function(t){return!c(t)||h(t)||t instanceof Date?t:t.value},e.isDataItemOption=function(t){return c(t)&&!(t instanceof Array)},e.mappingToExists=function(t,e){e=(e||[]).slice();var n=r.map(t||[],(function(t,e){return{exist:t}}));return l(e,(function(t,r){if(c(t)){for(var i=0;i<n.length;i++)if(!n[i].option&&null!=t.id&&n[i].exist.id===t.id+"")return n[i].option=t,void(e[r]=null);for(i=0;i<n.length;i++){var o=n[i].exist;if(!(n[i].option||null!=o.id&&null!=t.id||null==t.name||f(t)||f(o)||o.name!==t.name+""))return n[i].option=t,void(e[r]=null)}}})),l(e,(function(t,e){if(c(t)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!f(r)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}})),n},e.makeIdAndName=function(t){var e=r.createHashMap();l(t,(function(t,n){var r=t.exist;r&&e.set(r.id,t)})),l(t,(function(t,n){var o=t.option;r.assert(!o||null==o.id||!e.get(o.id)||e.get(o.id)===t,"id duplicates: "+(o&&o.id)),o&&null!=o.id&&e.set(o.id,t),!t.keyInfo&&(t.keyInfo={})})),l(t,(function(t,n){var r=t.exist,o=t.option,l=t.keyInfo;if(c(o)){if(l.name=null!=o.name?o.name+"":r?r.name:"series\0"+n,r)l.id=r.id;else if(null!=o.id)l.id=o.id+"";else{var h=0;do{l.id="\0"+l.name+"\0"+h++}while(e.get(l.id))}e.set(l.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf("series\0"))},e.isIdInner=f,e.compressBatches=function(t,e){var n={},r={};return o(t||[],n),o(e||[],r,n),[l(n),l(r)];function o(t,map,e){for(var i=0,n=t.length;i<n;i++)for(var r=t[i].seriesId,o=d(t[i].dataIndex),l=e&&e[r],c=0,h=o.length;c<h;c++){var f=o[c];l&&l[f]?l[f]=null:(map[r]||(map[r]={}))[f]=1}}function l(map,t){var e=[];for(var i in map)if(map.hasOwnProperty(i)&&null!=map[i])if(t)e.push(+i);else{var n=l(map[i],!0);n.length&&e.push({seriesId:i,dataIndex:n})}return e}},e.queryDataIndex=function(data,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?r.isArray(t.dataIndex)?r.map(t.dataIndex,(function(t){return data.indexOfRawIndex(t)})):data.indexOfRawIndex(t.dataIndex):null!=t.name?r.isArray(t.name)?r.map(t.name,(function(t){return data.indexOfName(t)})):data.indexOfName(t.name):void 0},e.makeInner=function(){var t="__\0ec_inner_"+v+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}},e.parseFinder=function(t,e,n){if(r.isString(e)){var o={};o[e+"Index"]=0,e=o}var c=n&&n.defaultMainType;!c||m(e,c+"Index")||m(e,c+"Id")||m(e,c+"Name")||(e[c+"Index"]=0);var h={};return l(e,(function(o,l){o=e[l];if("dataIndex"!==l&&"dataIndexInside"!==l){var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],f=(c[2]||"").toLowerCase();if(!(!d||!f||null==o||"index"===f&&"none"===o||n&&n.includeMainTypes&&r.indexOf(n.includeMainTypes,d)<0)){var v={mainType:d};"index"===f&&"all"===o||(v[f]=o);var m=t.queryComponents(v);h[d+"Models"]=m,h[d+"Model"]=m[0]}}else h[l]=o})),h},e.setAttribute=function(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n},e.getAttribute=function(t,e){return t.getAttribute?t.getAttribute(e):t[e]},e.getTooltipRenderMode=function(t){return"auto"===t?o.domSupported?"html":"richText":t||"html"},e.groupData=function(t,e){var n=r.createHashMap(),o=[];return r.each(t,(function(t){var r=e(t);(n.get(r)||(o.push(r),n.set(r,[]))).push(t)})),{keys:o,buckets:n}}},function(t,e,n){(function(t){var n;"undefined"!=typeof window?n=window.__DEV__:void 0!==t&&(n=t.__DEV__),void 0===n&&(n=!0);var r=n;e.__DEV__=r}).call(this,n(51))},,function(t,e,n){var r=n(0),o=n(14),l=n(5).parsePercent,c=n(10),h=r.each,d=["left","right","top","bottom","width","height"],f=[["width","left","right"],["height","top","bottom"]];function v(t,e,n,r,o){var l=0,c=0;null==r&&(r=1/0),null==o&&(o=1/0);var h=0;e.eachChild((function(d,f){var v,m,y=d.position,rect=d.getBoundingRect(),x=e.childAt(f+1),_=x&&x.getBoundingRect();if("horizontal"===t){var w=rect.width+(_?-_.x+rect.x:0);(v=l+w)>r||d.newline?(l=0,v=w,c+=h+n,h=rect.height):h=Math.max(h,rect.height)}else{var S=rect.height+(_?-_.y+rect.y:0);(m=c+S)>o||d.newline?(l+=h+n,c=0,m=S,h=rect.width):h=Math.max(h,rect.width)}d.newline||(y[0]=l,y[1]=c,"horizontal"===t?l=v+n:c=m+n)}))}var m=v,y=r.curry(v,"vertical"),x=r.curry(v,"horizontal");function _(t,e,n){n=c.normalizeCssArray(n||0);var r=e.width,h=e.height,d=l(t.left,r),f=l(t.top,h),v=l(t.right,r),m=l(t.bottom,h),y=l(t.width,r),x=l(t.height,h),_=n[2]+n[0],w=n[1]+n[3],S=t.aspect;switch(isNaN(y)&&(y=r-v-w-d),isNaN(x)&&(x=h-m-_-f),null!=S&&(isNaN(y)&&isNaN(x)&&(S>r/h?y=.8*r:x=.8*h),isNaN(y)&&(y=S*x),isNaN(x)&&(x=y/S)),isNaN(d)&&(d=r-v-y-w),isNaN(f)&&(f=h-m-x-_),t.left||t.right){case"center":d=r/2-y/2-n[3];break;case"right":d=r-y-w}switch(t.top||t.bottom){case"middle":case"center":f=h/2-x/2-n[0];break;case"bottom":f=h-x-_}d=d||0,f=f||0,isNaN(y)&&(y=r-w-d-(v||0)),isNaN(x)&&(x=h-_-f-(m||0));var rect=new o(d+n[3],f+n[0],y,x);return rect.margin=n,rect}function w(t,source){return source&&t&&h(d,(function(e){source.hasOwnProperty(e)&&(t[e]=source[e])})),t}e.LOCATION_PARAMS=d,e.HV_NAMES=f,e.box=m,e.vbox=y,e.hbox=x,e.getAvailableSize=function(t,e,n){var r=e.width,o=e.height,h=l(t.x,r),d=l(t.y,o),f=l(t.x2,r),v=l(t.y2,o);return(isNaN(h)||isNaN(parseFloat(t.x)))&&(h=0),(isNaN(f)||isNaN(parseFloat(t.x2)))&&(f=r),(isNaN(d)||isNaN(parseFloat(t.y)))&&(d=0),(isNaN(v)||isNaN(parseFloat(t.y2)))&&(v=o),n=c.normalizeCssArray(n||0),{width:Math.max(f-h-n[1]-n[3],0),height:Math.max(v-d-n[0]-n[2],0)}},e.getLayoutRect=_,e.positionElement=function(t,e,n,l,c){var h=!c||!c.hv||c.hv[0],d=!c||!c.hv||c.hv[1],f=c&&c.boundingMode||"all";if(h||d){var rect;if("raw"===f)rect="group"===t.type?new o(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(rect=t.getBoundingRect(),t.needLocalTransform()){var v=t.getLocalTransform();(rect=rect.clone()).applyTransform(v)}e=_(r.defaults({width:rect.width,height:rect.height},e),n,l);var m=t.position,y=h?e.x-rect.x:0,x=d?e.y-rect.y:0;t.attr("position","raw"===f?[y,x]:[m[0]+y,m[1]+x])}},e.sizeCalculable=function(option,t){return null!=option[f[t][0]]||null!=option[f[t][1]]&&null!=option[f[t][2]]},e.mergeLayoutParam=function(t,e,n){!r.isObject(n)&&(n={});var o=n.ignoreSize;!r.isArray(o)&&(o=[o,o]);var l=d(f[0],0),c=d(f[1],1);function d(n,r){var l={},c=0,d={},f=0;if(h(n,(function(e){d[e]=t[e]})),h(n,(function(t){v(e,t)&&(l[t]=d[t]=e[t]),m(l,t)&&c++,m(d,t)&&f++})),o[r])return m(e,n[1])?d[n[2]]=null:m(e,n[2])&&(d[n[1]]=null),d;if(2!==f&&c){if(c>=2)return l;for(var i=0;i<n.length;i++){var y=n[i];if(!v(l,y)&&v(t,y)){l[y]=t[y];break}}return l}return d}function v(t,e){return t.hasOwnProperty(e)}function m(t,e){return null!=t[e]&&"auto"!==t[e]}function y(t,e,source){h(t,(function(t){e[t]=source[t]}))}y(f[0],t,l),y(f[1],t,c)},e.getLayoutParams=function(source){return w({},source)},e.copyLayoutParams=w},function(t,e,n){var r=n(0),o=n(33),l=n(5);var c=r.normalizeCssArray,h=/([&<>"'])/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function f(source){return null==source?"":(source+"").replace(h,(function(t,e){return d[e]}))}var v=["a","b","c","d","e","f","g"],m=function(t,e){return"{"+t+(null==e?"":e)+"}"};function y(t,e){return"0000".substr(0,e-(t+="").length)+t}var x=o.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=c,e.encodeHTML=f,e.formatTpl=function(t,e,n){r.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var l=e[0].$vars||[],i=0;i<l.length;i++){var c=v[i];t=t.replace(m(c),m(c,0))}for(var h=0;h<o;h++)for(var d=0;d<l.length;d++){var y=e[h][l[d]];t=t.replace(m(v[d],h),n?f(y):y)}return t},e.formatTplSimple=function(t,param,e){return r.each(param,(function(n,r){t=t.replace("{"+r+"}",e?f(n):n)})),t},e.getTooltipMarker=function(t,e){var n=(t=r.isString(t)?{color:t,extraCssText:e}:t||{}).color,o=t.type,l=(e=t.extraCssText,t.renderMode||"html"),c=t.markerId||"X";return n?"html"===l?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+f(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+f(n)+";"+(e||"")+'"></span>':{renderMode:l,content:"{marker"+c+"|}  ",style:{color:n}}:""},e.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=l.parseDate(e),o=n?"UTC":"",c=r["get"+o+"FullYear"](),h=r["get"+o+"Month"]()+1,d=r["get"+o+"Date"](),f=r["get"+o+"Hours"](),v=r["get"+o+"Minutes"](),s=r["get"+o+"Seconds"](),m=r["get"+o+"Milliseconds"]();return t=t.replace("MM",y(h,2)).replace("M",h).replace("yyyy",c).replace("yy",c%100).replace("dd",y(d,2)).replace("d",d).replace("hh",y(f,2)).replace("h",f).replace("mm",y(v,2)).replace("m",v).replace("ss",y(s,2)).replace("s",s).replace("SSS",y(m,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=x,e.getTextBoundingRect=function(t){return o.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(text,t,e,n,r,l,c,h){return o.getBoundingRect(text,t,e,n,r,h,l,c)},e.windowOpen=function(link,t){if("_blank"===t||"blank"===t){var e=window.open();e.opener=null,e.location=link}else window.open(link,t)}},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function r(t){return Math.sqrt(l(t))}var o=r;function l(t){return t[0]*t[0]+t[1]*t[1]}var c=l;function h(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var d=h;function f(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var v=f;e.create=function(t,e){var r=new n(2);return null==t&&(t=0),null==e&&(e=0),r[0]=t,r[1]=e,r},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,a,b){return t[0]=a,t[1]=b,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.scaleAndAdd=function(t,e,n,a){return t[0]=e[0]+n[0]*a,t[1]=e[1]+n[1]*a,t},e.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},e.len=r,e.length=o,e.lenSquare=l,e.lengthSquare=c,e.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},e.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t},e.normalize=function(t,e){var n=r(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},e.distance=h,e.dist=d,e.distanceSquare=f,e.distSquare=v,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t},e.applyTransform=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},,,function(t,e,n){var r,o,l,rt,c=n(11),h=n(27),d=c.applyTransform,f=Math.min,v=Math.max;function m(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}m.prototype={constructor:m,union:function(t){var e=f(t.x,this.x),n=f(t.y,this.y);this.width=v(t.x+t.width,this.x+this.width)-e,this.height=v(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:(r=[],o=[],l=[],rt=[],function(t){if(t){r[0]=l[0]=this.x,r[1]=rt[1]=this.y,o[0]=rt[0]=this.x+this.width,o[1]=l[1]=this.y+this.height,d(r,r,t),d(o,o,t),d(l,l,t),d(rt,rt,t),this.x=f(r[0],o[0],l[0],rt[0]),this.y=f(r[1],o[1],l[1],rt[1]);var e=v(r[0],o[0],l[0],rt[0]),n=v(r[1],o[1],l[1],rt[1]);this.width=e-this.x,this.height=n-this.y}}),calculateTransform:function(b){var a=this,t=b.width/a.width,e=b.height/a.height,n=h.create();return h.translate(n,n,[-a.x,-a.y]),h.scale(n,n,[t,e]),h.translate(n,n,[b.x,b.y]),n},intersect:function(b){if(!b)return!1;b instanceof m||(b=m.create(b));var a=this,t=a.x,e=a.x+a.width,n=a.y,r=a.y+a.height,o=b.x,l=b.x+b.width,c=b.y,h=b.y+b.height;return!(e<o||l<t||r<c||h<n)},contain:function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new m(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}}},m.create=function(rect){return new m(rect.x,rect.y,rect.width,rect.height)};var y=m;t.exports=y},,,function(t,e,n){var r=n(120),o=n(0),l=n(94),c=n(707),h=n(314).prototype.getCanvasPattern,d=Math.abs,f=new l(!0);function v(t){r.call(this,t),this.path=null}v.prototype={constructor:v,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var rect,style=this.style,path=this.path||f,n=style.hasStroke(),r=style.hasFill(),o=style.fill,l=style.stroke,c=r&&!!o.colorStops,d=n&&!!l.colorStops,v=r&&!!o.image,m=n&&!!l.image;(style.bind(t,this,e),this.setTransform(t),this.__dirty)&&(c&&(rect=rect||this.getBoundingRect(),this._fillGradient=style.getGradient(t,o,rect)),d&&(rect=rect||this.getBoundingRect(),this._strokeGradient=style.getGradient(t,l,rect)));c?t.fillStyle=this._fillGradient:v&&(t.fillStyle=h.call(o,t)),d?t.strokeStyle=this._strokeGradient:m&&(t.strokeStyle=h.call(l,t));var y=style.lineDash,x=style.lineDashOffset,_=!!t.setLineDash,w=this.getGlobalScale();if(path.setScale(w[0],w[1],this.segmentIgnoreThreshold),this.__dirtyPath||y&&!_&&n?(path.beginPath(t),y&&!_&&(path.setLineDash(y),path.setLineDashOffset(x)),this.buildPath(path,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),r)if(null!=style.fillOpacity){var S=t.globalAlpha;t.globalAlpha=style.fillOpacity*style.opacity,path.fill(t),t.globalAlpha=S}else path.fill(t);if(y&&_&&(t.setLineDash(y),t.lineDashOffset=x),n)if(null!=style.strokeOpacity){S=t.globalAlpha;t.globalAlpha=style.strokeOpacity*style.opacity,path.stroke(t),t.globalAlpha=S}else path.stroke(t);y&&_&&t.setLineDash([]),null!=style.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new l},getBoundingRect:function(){var rect=this._rect,style=this.style,t=!rect;if(t){var path=this.path;path||(path=this.path=new l),this.__dirtyPath&&(path.beginPath(),this.buildPath(path,this.shape,!1)),rect=path.getBoundingRect()}if(this._rect=rect,style.hasStroke()){var e=this._rectWithStroke||(this._rectWithStroke=rect.clone());if(this.__dirty||t){e.copy(rect);var n=style.lineWidth,r=style.strokeNoScale?this.getLineScale():1;style.hasFill()||(n=Math.max(n,this.strokeContainThreshold||4)),r>1e-10&&(e.width+=n/r,e.height+=n/r,e.x-=n/r/2,e.y-=n/r/2)}return e}return rect},contain:function(t,e){var n=this.transformCoordToLocal(t,e),rect=this.getBoundingRect(),style=this.style;if(t=n[0],e=n[1],rect.contain(t,e)){var r=this.path.data;if(style.hasStroke()){var o=style.lineWidth,l=style.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(style.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),c.containStroke(r,o/l,t,e)))return!0}if(style.hasFill())return c.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(o.isObject(t))for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&d(t[0]-1)>1e-10&&d(t[3]-1)>1e-10?Math.sqrt(d(t[0]*t[3]-t[2]*t[1])):1}},v.extend=function(t){var e=function(e){v.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var o in n)!r.hasOwnProperty(o)&&n.hasOwnProperty(o)&&(r[o]=n[o])}t.init&&t.init.call(this,e)};for(var n in o.inherits(e,v),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},o.inherits(v,r);var m=v;t.exports=m},function(t,e){var n="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),l=/micromessenger/i.test(t);n&&(e.firefox=!0,e.version=n[1]);r&&(e.ie=!0,e.version=r[1]);o&&(e.edge=!0,e.version=o[1]);l&&(e.weChat=!0);return{browser:e,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!e.ie&&!e.edge,pointerEventsSupported:"onpointerdown"in window&&(e.edge||e.ie&&e.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);t.exports=n},function(t,e,n){var r=n(0),o=n(18),l=n(6).makeInner,c=n(54),h=c.enableClassExtend,d=c.enableClassCheck,f=n(704),v=n(705),m=n(706),y=n(719),x=r.mixin,_=l();function w(option,t,e){this.parentModel=t,this.ecModel=e,this.option=option}function S(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 M(t,path){var e=_(t).getParent;return e?e.call(t,path):t.parentModel}w.prototype={constructor:w,init:null,mergeOption:function(option){r.merge(this.option,option,!0)},get:function(path,t){return null==path?this.option:S(this.option,this.parsePath(path),!t&&M(this,path))},getShallow:function(t,e){var option=this.option,n=null==option?option:option[t],r=!e&&M(this,t);return null==n&&r&&(n=r.getShallow(t)),n},getModel:function(path,t){var e;return new w(null==path?this.option:S(this.option,path=this.parsePath(path)),t=t||(e=M(this,path))&&e.getModel(path),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(r.clone(this.option))},setReadOnly:function(t){},parsePath:function(path){return"string"==typeof path&&(path=path.split(".")),path},customizeGetParent:function(t){_(this).getParent=t},isAnimationEnabled:function(){if(!o.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},h(w),d(w),x(w,f),x(w,v),x(w,m),x(w,y);var T=w;t.exports=T},,function(t,e,n){var r=n(0),o=n(19),l=n(122),c=n(54),h=c.enableClassManagement,d=c.parseClassType,f=n(6).makeInner,v=n(9),m=n(720),y=f(),x=o.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(option,t,e,n){o.call(this,option,t,e,n),this.uid=l.getUID("ec_cpt_model")},init:function(option,t,e,n){this.mergeDefaultAndTheme(option,e)},mergeDefaultAndTheme:function(option,t){var e=this.layoutMode,n=e?v.getLayoutParams(option):{},o=t.getTheme();r.merge(option,o.get(this.mainType)),r.merge(option,this.getDefaultOption()),e&&v.mergeLayoutParam(option,n,e)},mergeOption:function(option,t){r.merge(this.option,option,!0);var e=this.layoutMode;e&&v.mergeLayoutParam(this.option,option,e)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=y(this);if(!t.defaultOption){for(var e=[],n=this.constructor;n;){var o=n.prototype.defaultOption;o&&e.push(o),n=n.superClass}for(var l={},i=e.length-1;i>=0;i--)l=r.merge(l,e[i],!0);t.defaultOption=l}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});h(x,{registerWhenExtend:!0}),l.enableSubTypeDefaulter(x),l.enableTopologicalTravel(x,(function(t){var e=[];r.each(x.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=r.map(e,(function(t){return d(t).main})),"dataset"!==t&&r.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),r.mixin(x,m);var _=x;t.exports=_},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(18),l=n(10),c=l.formatTime,h=l.encodeHTML,d=l.addCommas,f=l.getTooltipMarker,v=n(6),m=n(21),y=n(330),x=n(212),_=n(9),w=_.getLayoutParams,S=_.mergeLayoutParam,M=n(213).createTask,T=n(55),A=T.prepareSource,I=T.getSource,C=n(78).retrieveRawValue,D=v.makeInner(),L=m.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(option,t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=M({count:P,reset:O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(option,e),A(this);var data=this.getInitialData(option,e);N(data,this),this.dataTask.context.data=data,D(this).dataBeforeProcessed=data,k(this)},mergeDefaultAndTheme:function(option,t){var e=this.layoutMode,n=e?w(option):{},o=this.subType;m.hasClass(o)&&(o+="Series"),r.merge(option,t.getTheme().get(this.subType)),r.merge(option,this.getDefaultOption()),v.defaultEmphasis(option,"label",["show"]),this.fillDataTextStyle(option.data),e&&S(option,n,e)},mergeOption:function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&S(this.option,t,n),A(this);var data=this.getInitialData(t,e);N(data,this),this.dataTask.dirty(),this.dataTask.context.data=data,D(this).dataBeforeProcessed=data,k(this)},fillDataTextStyle:function(data){if(data&&!r.isTypedArray(data))for(var t=["show"],i=0;i<data.length;i++)data[i]&&data[i].label&&v.defaultEmphasis(data[i],"label",t)},getInitialData:function(){},appendData:function(t){this.getRawData().appendData(t.data)},getData:function(t){var e=z(this);if(e){var data=e.context.data;return null==t?data:data.getLinkedData(t)}return D(this).data},setData:function(data){var t=z(this);if(t){var e=t.context;e.data!==data&&t.modifyOutputEnd&&t.setOutputEnd(data.count()),e.outputData=data,t!==this.dataTask&&(e.data=data)}D(this).data=data},getSource:function(){return I(this)},getRawData:function(){return D(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n,o){var l=this,m="html"===(o=o||"html")?"<br/>":"\n",y="richText"===o,x={},_=0;function w(t){return{renderMode:o,content:h(d(t)),style:x}}var data=this.getData(),S=data.mapDimension("defaultedTooltip",!0),M=S.length,T=this.getRawValue(t),A=r.isArray(T),I=data.getItemVisual(t,"color");r.isObject(I)&&I.colorStops&&(I=(I.colorStops[0]||{}).color),I=I||"transparent";var content=(M>1||A&&!M?function(n){var v=r.reduce(n,(function(t,e,n){var r=data.getDimensionInfo(n);return t|(r&&!1!==r.tooltip&&null!=r.displayName)}),0),m=[];function w(t,n){var r=data.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var w=r.type,S="sub"+l.seriesIndex+"at"+_,M=f({color:I,type:"subItem",renderMode:o,markerId:S}),T="string"==typeof M?M:M.content,A=(v?T+h(r.displayName||"-")+": ":"")+h("ordinal"===w?t+"":"time"===w?e?"":c("yyyy/MM/dd hh:mm:ss",t):d(t));A&&m.push(A),y&&(x[S]=I,++_)}}S.length?r.each(S,(function(e){w(C(data,t,e),e)})):r.each(n,w);var M=v?y?"\n":"<br/>":"",content=M+m.join(M||", ");return{renderMode:o,content:content,style:x}}(T):w(M?C(data,t,S[0]):A?T[0]:T)).content,D=l.seriesIndex+"at"+_,L=f({color:I,type:"item",renderMode:o,markerId:D});x[D]=I,++_;var k=data.getName(t),P=this.name;v.isNameSpecified(this)||(P=""),P=P?h(P)+(e?": ":m):"";var O="string"==typeof L?L:L.content;return{html:e?O+P+content:P+O+(k?h(k)+": "+content:content),markers:x}},isAnimationEnabled:function(){if(o.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var r=this.ecModel,o=y.getColorFromPalette.call(this,t,e,n);return o||(o=r.getColorFromPalette(t,e,n)),o},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function k(t){var e=t.name;v.isNameSpecified(t)||(t.name=function(t){var data=t.getRawData(),e=data.mapDimension("seriesName",!0),n=[];return r.each(e,(function(t){var e=data.getDimensionInfo(t);e.displayName&&n.push(e.displayName)})),n.join(" ")}(t)||e)}function P(t){return t.model.getRawData().count()}function O(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),E}function E(param,t){t.outputData&&param.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function N(data,t){r.each(data.CHANGABLE_METHODS,(function(e){data.wrapMethod(e,r.curry(R,t))}))}function R(t){var e=z(t);e&&e.setOutputEnd(this.count())}function z(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var o=r.agentStubMap;o&&(r=o.get(t.uid))}return r}}r.mixin(L,x),r.mixin(L,y);var B=L;t.exports=B},,,,,function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function r(){var t=new n(6);return o(t),t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}e.create=r,e.identity=o,e.copy=l,e.mul=function(t,e,n){var r=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],l=e[0]*n[2]+e[2]*n[3],c=e[1]*n[2]+e[3]*n[3],h=e[0]*n[4]+e[2]*n[5]+e[4],d=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=o,t[2]=l,t[3]=c,t[4]=h,t[5]=d,t},e.translate=function(t,a,e){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4]+e[0],t[5]=a[5]+e[1],t},e.rotate=function(t,a,e){var n=a[0],r=a[2],o=a[4],l=a[1],c=a[3],h=a[5],d=Math.sin(e),f=Math.cos(e);return t[0]=n*f+l*d,t[1]=-n*d+l*f,t[2]=r*f+c*d,t[3]=-r*d+f*c,t[4]=f*o+d*h,t[5]=f*h-d*o,t},e.scale=function(t,a,e){var n=e[0],r=e[1];return t[0]=a[0]*n,t[1]=a[1]*r,t[2]=a[2]*n,t[3]=a[3]*r,t[4]=a[4]*n,t[5]=a[5]*r,t},e.invert=function(t,a){var e=a[0],n=a[2],r=a[4],o=a[1],l=a[3],c=a[5],h=e*l-o*n;return h?(h=1/h,t[0]=l*h,t[1]=-o*h,t[2]=-n*h,t[3]=e*h,t[4]=(n*c-l*r)*h,t[5]=(o*r-e*c)*h,t):null},e.clone=function(a){var b=r();return l(b,a),b}},,,,,,function(t,e,n){var r=n(14),o=n(207),l=n(0),c=l.getContext,h=l.extend,d=l.retrieve2,f=l.retrieve3,v=l.trim,m={},y=0,x=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,_={};function w(text,t){var e=text+":"+(t=t||"12px sans-serif");if(m[e])return m[e];for(var n=(text+"").split("\n"),r=0,i=0,o=n.length;i<o;i++)r=Math.max(k(n[i],t).width,r);return y>5e3&&(y=0,m={}),y++,m[e]=r,r}function S(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function M(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function T(t,style,rect){var e=style.textPosition,n=style.textDistance,r=rect.x,o=rect.y;n=n||0;var l=rect.height,c=rect.width,h=l/2,d="left",f="top";switch(e){case"left":r-=n,o+=h,d="right",f="middle";break;case"right":r+=n+c,o+=h,f="middle";break;case"top":r+=c/2,o-=n,d="center",f="bottom";break;case"bottom":r+=c/2,o+=l+n,d="center";break;case"inside":r+=c/2,o+=h,d="center",f="middle";break;case"insideLeft":r+=n,o+=h,f="middle";break;case"insideRight":r+=c-n,o+=h,d="right",f="middle";break;case"insideTop":r+=c/2,o+=n,d="center";break;case"insideBottom":r+=c/2,o+=l-n,d="center",f="bottom";break;case"insideTopLeft":r+=n,o+=n;break;case"insideTopRight":r+=c-n,o+=n,d="right";break;case"insideBottomLeft":r+=n,o+=l-n,f="bottom";break;case"insideBottomRight":r+=c-n,o+=l-n,d="right",f="bottom"}return(t=t||{}).x=r,t.y=o,t.textAlign=d,t.textVerticalAlign=f,t}function A(text,t,e,n,r){if(!t)return"";var o=(text+"").split("\n");r=I(t,e,n,r);for(var i=0,l=o.length;i<l;i++)o[i]=C(o[i],r);return o.join("\n")}function I(t,e,n,r){(r=h({},r)).font=e;n=d(n,"...");r.maxIterations=d(r.maxIterations,2);var o=r.minChar=d(r.minChar,0);r.cnCharWidth=w("国",e);var l=r.ascCharWidth=w("a",e);r.placeholder=d(r.placeholder,"");for(var c=t=Math.max(0,t-1),i=0;i<o&&c>=l;i++)c-=l;var f=w(n,e);return f>c&&(n="",f=0),c=t-f,r.ellipsis=n,r.ellipsisWidth=f,r.contentWidth=c,r.containerWidth=t,r}function C(t,e){var n=e.containerWidth,r=e.font,o=e.contentWidth;if(!n)return"";var l=w(t,r);if(l<=n)return t;for(var c=0;;c++){if(l<=o||c>=e.maxIterations){t+=e.ellipsis;break}var h=0===c?D(t,o,e.ascCharWidth,e.cnCharWidth):l>0?Math.floor(t.length*o/l):0;l=w(t=t.substr(0,h),r)}return""===t&&(t=e.placeholder),t}function D(text,t,e,n){for(var r=0,i=0,o=text.length;i<o&&r<t;i++){var l=text.charCodeAt(i);r+=0<=l&&l<=127?e:n}return i}function L(t){return w("国",t)}function k(text,t){return _.measureText(text,t)}function P(text,t,e,n,r){null!=text&&(text+="");var o=d(n,L(t)),l=text?text.split("\n"):[],c=l.length*o,h=c,f=!0;if(e&&(h+=e[0]+e[2]),text&&r){f=!1;var v=r.outerHeight,m=r.outerWidth;if(null!=v&&h>v)text="",l=[];else if(null!=m)for(var y=I(m-(e?e[1]+e[3]:0),t,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),i=0,x=l.length;i<x;i++)l[i]=C(l[i],y)}return{lines:l,height:c,outerHeight:h,lineHeight:o,canCacheByTextString:f}}function O(text,style){var t={lines:[],width:0,height:0};if(null!=text&&(text+=""),!text)return t;for(var e,n=x.lastIndex=0;null!=(e=x.exec(text));){var r=e.index;r>n&&E(t,text.substring(n,r)),E(t,e[2],e[1]),n=x.lastIndex}n<text.length&&E(t,text.substring(n,text.length));var l=t.lines,c=0,h=0,v=[],m=style.textPadding,y=style.truncate,_=y&&y.outerWidth,S=y&&y.outerHeight;m&&(null!=_&&(_-=m[1]+m[3]),null!=S&&(S-=m[0]+m[2]));for(var i=0;i<l.length;i++){for(var line=l[i],M=0,T=0,I=0;I<line.tokens.length;I++){var C=(H=line.tokens[I]).styleName&&style.rich[H.styleName]||{},D=H.textPadding=C.textPadding,k=H.font=C.font||style.font,P=H.textHeight=d(C.textHeight,L(k));if(D&&(P+=D[0]+D[2]),H.height=P,H.lineHeight=f(C.textLineHeight,style.textLineHeight,P),H.textAlign=C&&C.textAlign||style.textAlign,H.textVerticalAlign=C&&C.textVerticalAlign||"middle",null!=S&&c+H.lineHeight>S)return{lines:[],width:0,height:0};H.textWidth=w(H.text,k);var O=C.textWidth,N=null==O||"auto"===O;if("string"==typeof O&&"%"===O.charAt(O.length-1))H.percentWidth=O,v.push(H),O=0;else{if(N){O=H.textWidth;var R=C.textBackgroundColor,z=R&&R.image;z&&(z=o.findExistImage(z),o.isImageReady(z)&&(O=Math.max(O,z.width*P/z.height)))}var B=D?D[1]+D[3]:0;O+=B;var V=null!=_?_-T:null;null!=V&&V<O&&(!N||V<B?(H.text="",H.textWidth=O=0):(H.text=A(H.text,V-B,k,y.ellipsis,{minChar:y.minChar}),H.textWidth=w(H.text,k),O=H.textWidth+B))}T+=H.width=O,C&&(M=Math.max(M,H.lineHeight))}line.width=T,line.lineHeight=M,c+=M,h=Math.max(h,T)}t.outerWidth=t.width=d(style.textWidth,h),t.outerHeight=t.height=d(style.textHeight,c),m&&(t.outerWidth+=m[1]+m[3],t.outerHeight+=m[0]+m[2]);for(i=0;i<v.length;i++){var H,F=(H=v[i]).percentWidth;H.width=parseInt(F,10)/100*h}return t}function E(t,e,n){for(var r=""===e,o=e.split("\n"),l=t.lines,i=0;i<o.length;i++){var text=o[i],c={styleName:n,text:text,isLineHolder:!text&&!r};if(i)l.push({tokens:[c]});else{var h=(l[l.length-1]||(l[0]={tokens:[]})).tokens,d=h.length;1===d&&h[0].isLineHolder?h[0]=c:(text||!d||r)&&h.push(c)}}}_.measureText=function(text,t){var e=c();return e.font=t||"12px sans-serif",e.measureText(text)},e.DEFAULT_FONT="12px sans-serif",e.$override=function(t,e){_[t]=e},e.getWidth=w,e.getBoundingRect=function(text,t,e,n,o,l,c,h){return c?function(text,t,e,n,o,l,c,h){var d=O(text,{rich:c,truncate:h,font:t,textAlign:e,textPadding:o,textLineHeight:l}),f=d.outerWidth,v=d.outerHeight,m=S(0,f,e),y=M(0,v,n);return new r(m,y,f,v)}(text,t,e,n,o,l,c,h):function(text,t,e,n,o,l,c){var h=P(text,t,o,l,c),d=w(text,t);o&&(d+=o[1]+o[3]);var f=h.outerHeight,v=S(0,d,e),m=M(0,f,n),rect=new r(v,m,d,f);return rect.lineHeight=h.lineHeight,rect}(text,t,e,n,o,l,h)},e.adjustTextX=S,e.adjustTextY=M,e.calculateTextPosition=T,e.adjustTextPositionOnRect=function(t,rect,e){return T({},{textPosition:t,textDistance:e},rect)},e.truncateText=A,e.getLineHeight=L,e.measureText=k,e.parsePlainText=P,e.parseRichText=O,e.makeFont=function(style){var t=(style.fontSize||style.fontFamily)&&[style.fontStyle,style.fontWeight,(style.fontSize||12)+"px",style.fontFamily||"sans-serif"].join(" ");return t&&v(t)||style.textFont||style.font}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var content=function(t,e){var content=t[1]||"",n=t[3];if(!n)return content;if(e&&"function"==typeof btoa){var r=(l=n,c=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(data," */")),o=n.sources.map((function(source){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([r]).join("\n")}var l,c,data;return[content].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(content,"}"):content})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(o[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);r&&o[h[0]]||(n&&(h[2]?h[2]="".concat(n," and ").concat(h[2]):h[2]=n),e.push(h))}},e}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],l=o[0],c={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[l]?r[l].parts.push(c):n.push(r[l]={id:l,parts:[c]})}return n}n.r(e),n.d(e,"default",(function(){return y}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)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 l={},head=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,h=0,d=!1,f=function(){},v=null,m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function y(t,e,n,o){d=n,v=o||{};var c=r(t,e);return x(c),function(e){for(var n=[],i=0;i<c.length;i++){var o=c[i];(h=l[o.id]).refs--,n.push(h)}e?x(c=r(t,e)):c=[];for(i=0;i<n.length;i++){var h;if(0===(h=n[i]).refs){for(var d=0;d<h.parts.length;d++)h.parts[d]();delete l[h.id]}}}}function x(t){for(var i=0;i<t.length;i++){var e=t[i],n=l[e.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](e.parts[r]);for(;r<e.parts.length;r++)n.parts.push(w(e.parts[r]));n.parts.length>e.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;r<e.parts.length;r++)o.push(w(e.parts[r]));l[e.id]={id:e.id,refs:1,parts:o}}}}function _(){var t=document.createElement("style");return t.type="text/css",head.appendChild(t),t}function w(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(d)return f;r.parentNode.removeChild(r)}if(m){var o=h++;r=c||(c=_()),e=T.bind(null,r,o,!1),n=T.bind(null,r,o,!0)}else r=_(),e=A.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var S,M=(S=[],function(t,e){return S[t]=e,S.filter(Boolean).join("\n")});function T(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=M(e,o);else{var l=document.createTextNode(o),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(l,c[e]):t.appendChild(l)}}function A(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),v.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},,function(t,e,n){n(7).__DEV__;var r=n(0),o=n(19),l=n(79),c=n(123),h=n(78),d=h.defaultDimValueGetters,f=h.DefaultDataProvider,v=n(125).summarizeDimensions,m=n(335),y=r.isObject,x={float:"undefined"==typeof Float64Array?Array:Float64Array,int:"undefined"==typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},_="undefined"==typeof Uint32Array?Array:Uint32Array,w="undefined"==typeof Int32Array?Array:Int32Array,S="undefined"==typeof Uint16Array?Array:Uint16Array;function M(t){return t._rawCount>65535?_:S}var T=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],A=["_extent","_approximateExtent","_rawExtent"];function I(t,source){r.each(T.concat(source.__wrappedMethods||[]),(function(e){source.hasOwnProperty(e)&&(t[e]=source[e])})),t.__wrappedMethods=source.__wrappedMethods,r.each(A,(function(e){t[e]=r.clone(source[e])})),t._calculationInfo=r.extend(source._calculationInfo)}var C=function(t,e){t=t||["x","y"];for(var n={},o=[],l={},i=0;i<t.length;i++){var c=t[i];r.isString(c)?c=new m({name:c}):c instanceof m||(c=new m(c));var h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0),c.otherDims=c.otherDims||{},o.push(h),n[h]=c,c.index=i,c.createInvertedIndices&&(l[h]=[])}this.dimensions=o,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=v(this),this._invertedIndicesMap=l,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},D=C.prototype;function L(t,e,n,r,o){var l=x[e.type],c=r-1,h=e.name,d=t[h][c];if(d&&d.length<n){for(var f=new l(Math.min(o-c*n,n)),v=0;v<d.length;v++)f[v]=d[v];t[h][c]=f}for(var m=r*n;m<o;m+=n)t[h].push(new l(Math.min(o-m,n)))}function k(t){var e=t._invertedIndicesMap;r.each(e,(function(n,r){var o=t._dimensionInfos[r].ordinalMeta;if(o){n=e[r]=new w(o.categories.length);for(var i=0;i<n.length;i++)n[i]=-1;for(i=0;i<t._count;i++)n[t.get(r,i)]=i}}))}function P(t,e,n){var r;if(null!=e){var o=t._chunkSize,l=Math.floor(n/o),c=n%o,h=t.dimensions[e],d=t._storage[h][l];if(d){r=d[c];var f=t._dimensionInfos[h].ordinalMeta;f&&f.categories.length&&(r=f.categories[r])}}return r}function O(t){return t}function E(t){return t<this._count&&t>=0?this._indices[t]:-1}function N(t,e){var n=t._idList[e];return null==n&&(n=P(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n}function R(t){return r.isArray(t)||(t=[t]),t}function z(t,e){var n=t.dimensions,o=new C(r.map(n,t.getDimensionInfo,t),t.hostModel);I(o,t);for(var l=o._storage={},c=t._storage,i=0;i<n.length;i++){var h=n[i];c[h]&&(r.indexOf(e,h)>=0?(l[h]=B(c[h]),o._rawExtent[h]=V(),o._extent[h]=null):l[h]=c[h])}return o}function B(t){for(var e,n,r=new Array(t.length),o=0;o<t.length;o++)r[o]=(e=t[o],n=void 0,(n=e.constructor)===Array?e.slice():new n(e));return r}function V(){return[1/0,-1/0]}D.type="list",D.hasItemOption=!0,D.getDimension=function(t){return"number"!=typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},D.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},D.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},D.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return!0===e?(r||[]).slice():r&&r[e]},D.initData=function(data,t,e){(c.isInstance(data)||r.isArrayLike(data))&&(data=new f(data,this.dimensions.length)),this._rawData=data,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},e||(this.hasItemOption=!1),this.defaultDimValueGetter=d[this._rawData.getSource().sourceFormat],this._dimValueGetter=e=e||this.defaultDimValueGetter,this._dimValueGetterArrayRows=d.arrayRows,this._rawExtent={},this._initDataFromProvider(0,data.count()),data.pure&&(this.hasItemOption=!1)},D.getProvider=function(){return this._rawData},D.appendData=function(data){var t=this._rawData,e=this.count();t.appendData(data);var n=t.count();t.persistent||(n+=e),this._initDataFromProvider(e,n)},D.appendValues=function(t,e){for(var n=this._chunkSize,r=this._storage,o=this.dimensions,l=o.length,c=this._rawExtent,h=this.count(),d=h+Math.max(t.length,e?e.length:0),f=this._chunkCount,i=0;i<l;i++){c[S=o[i]]||(c[S]=V()),r[S]||(r[S]=[]),L(r,this._dimensionInfos[S],n,f,d),this._chunkCount=r[S].length}for(var v=new Array(l),m=h;m<d;m++){for(var y=m-h,x=Math.floor(m/n),_=m%n,w=0;w<l;w++){var S=o[w],M=this._dimValueGetterArrayRows(t[y]||v,S,y,w);r[S][x][_]=M;var T=c[S];M<T[0]&&(T[0]=M),M>T[1]&&(T[1]=M)}e&&(this._nameList[m]=e[y])}this._rawCount=this._count=d,this._extent={},k(this)},D._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,r=this._chunkSize,o=this._rawData,l=this._storage,c=this.dimensions,h=c.length,d=this._dimensionInfos,f=this._nameList,v=this._idList,m=this._rawExtent,y=this._nameRepeatCount={},x=this._chunkCount,i=0;i<h;i++){m[I=c[i]]||(m[I]=V());var _=d[I];0===_.otherDims.itemName&&(n=this._nameDimIdx=i),0===_.otherDims.itemId&&(this._idDimIdx=i),l[I]||(l[I]=[]),L(l,_,r,x,e),this._chunkCount=l[I].length}for(var w=new Array(h),S=t;S<e;S++){w=o.getItem(S,w);for(var M=Math.floor(S/r),T=S%r,A=0;A<h;A++){var I,C=l[I=c[A]][M],D=this._dimValueGetter(w,I,S,A);C[T]=D;var P=m[I];D<P[0]&&(P[0]=D),D>P[1]&&(P[1]=D)}if(!o.pure){var O=f[S];if(w&&null==O)if(null!=w.name)f[S]=O=w.name;else if(null!=n){var E=c[n],N=l[E][M];if(N){O=N[T];var R=d[E].ordinalMeta;R&&R.categories.length&&(O=R.categories[O])}}var z=null==w?null:w.id;null==z&&null!=O&&(y[O]=y[O]||0,z=O,y[O]>0&&(z+="__ec__"+y[O]),y[O]++),null!=z&&(v[S]=z)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=e,this._extent={},k(this)}},D.count=function(){return this._count},D.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i<n;i++)r[i]=t[i]}else r=new e(t.buffer,0,n)}else{var r=new(e=M(this))(this.count());for(i=0;i<r.length;i++)r[i]=i}return r},D.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage;if(!n[t])return NaN;e=this.getRawIndex(e);var r=Math.floor(e/this._chunkSize),o=e%this._chunkSize;return n[t][r][o]},D.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];if(!n)return NaN;var r=Math.floor(e/this._chunkSize),o=e%this._chunkSize;return n[r][o]},D._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return this._storage[t][n][r]},D.getValues=function(t,e){var n=[];r.isArray(t)||(e=t,t=this.dimensions);for(var i=0,o=t.length;i<o;i++)n.push(this.get(t[i],e));return n},D.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this.get(e[i],t)))return!1;return!0},D.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=V();if(!e)return n;var r,o=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var l=(r=n)[0],c=r[1],i=0;i<o;i++){var h=this._getFast(t,this.getRawIndex(i));h<l&&(l=h),h>c&&(c=h)}return r=[l,c],this._extent[t]=r,r},D.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},D.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},D.getCalculationInfo=function(t){return this._calculationInfo[t]},D.setCalculationInfo=function(t,e){y(t)?r.extend(this._calculationInfo,t):this._calculationInfo[t]=e},D.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i<n;i++){var r=this.get(t,i);isNaN(r)||(e+=r)}return e},D.getMedian=function(t){var e=[];this.each(t,(function(t,n){isNaN(t)||e.push(t)}));var n=[].concat(e).sort((function(a,b){return a-b})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},D.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},D.indexOfName=function(t){for(var i=0,e=this.count();i<e;i++)if(this.getName(i)===t)return i;return-1},D.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,o=this._count-1;r<=o;){var l=(r+o)/2|0;if(e[l]<t)r=l+1;else{if(!(e[l]>t))return l;o=l-1}}return-1},D.indicesOfNearest=function(t,e,n){var r=[];if(!this._storage[t])return r;null==n&&(n=1/0);for(var o=1/0,l=-1,c=0,i=0,h=this.count();i<h;i++){var d=e-this.get(t,i),f=Math.abs(d);f<=n&&((f<o||f===o&&d>=0&&l<0)&&(o=f,l=d,c=0),d===l&&(r[c++]=i))}return r.length=c,r},D.getRawIndex=O,D.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},D.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||P(this,this._nameDimIdx,e)||""},D.getId=function(t){return N(this,this.getRawIndex(t))},D.each=function(t,e,n,o){"use strict";if(this._count){"function"==typeof t&&(o=n,n=e,e=t,t=[]),n=n||o||this;for(var l=(t=r.map(R(t),this.getDimension,this)).length,i=0;i<this.count();i++)switch(l){case 0:e.call(n,i);break;case 1:e.call(n,this.get(t[0],i),i);break;case 2:e.call(n,this.get(t[0],i),this.get(t[1],i),i);break;default:for(var c=0,h=[];c<l;c++)h[c]=this.get(t[c],i);h[c]=i,e.apply(n,h)}}},D.filterSelf=function(t,e,n,o){"use strict";if(this._count){"function"==typeof t&&(o=n,n=e,e=t,t=[]),n=n||o||this,t=r.map(R(t),this.getDimension,this);for(var l=this.count(),c=new(M(this))(l),h=[],d=t.length,f=0,v=t[0],i=0;i<l;i++){var m,y=this.getRawIndex(i);if(0===d)m=e.call(n,i);else if(1===d){var x=this._getFast(v,y);m=e.call(n,x,i)}else{for(var _=0;_<d;_++)h[_]=this._getFast(v,y);h[_]=i,m=e.apply(n,h)}m&&(c[f++]=y)}return f<l&&(this._indices=c),this._count=f,this._extent={},this.getRawIndex=this._indices?E:O,this}},D.selectRange=function(t){"use strict";if(this._count){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);var r=e.length;if(r){var o=this.count(),l=new(M(this))(o),c=0,h=e[0],d=t[h][0],f=t[h][1],v=!1;if(!this._indices){var m=0;if(1===r){for(var y=this._storage[e[0]],x=0;x<this._chunkCount;x++)for(var _=y[x],w=Math.min(this._count-x*this._chunkSize,this._chunkSize),i=0;i<w;i++){((C=_[i])>=d&&C<=f||isNaN(C))&&(l[c++]=m),m++}v=!0}else if(2===r){y=this._storage[h];var S=this._storage[e[1]],T=t[e[1]][0],A=t[e[1]][1];for(x=0;x<this._chunkCount;x++){_=y[x];var I=S[x];for(w=Math.min(this._count-x*this._chunkSize,this._chunkSize),i=0;i<w;i++){var C=_[i],D=I[i];(C>=d&&C<=f||isNaN(C))&&(D>=T&&D<=A||isNaN(D))&&(l[c++]=m),m++}}v=!0}}if(!v)if(1===r)for(i=0;i<o;i++){var L=this.getRawIndex(i);((C=this._getFast(h,L))>=d&&C<=f||isNaN(C))&&(l[c++]=L)}else for(i=0;i<o;i++){var k=!0;for(L=this.getRawIndex(i),x=0;x<r;x++){var P=e[x];((C=this._getFast(n,L))<t[P][0]||C>t[P][1])&&(k=!1)}k&&(l[c++]=this.getRawIndex(i))}return c<o&&(this._indices=l),this._count=c,this._extent={},this.getRawIndex=this._indices?E:O,this}}},D.mapArray=function(t,e,n,r){"use strict";"function"==typeof t&&(r=n,n=e,e=t,t=[]),n=n||r||this;var o=[];return this.each(t,(function(){o.push(e&&e.apply(this,arguments))}),n),o},D.map=function(t,e,n,o){"use strict";n=n||o||this;var l=z(this,t=r.map(R(t),this.getDimension,this));l._indices=this._indices,l.getRawIndex=l._indices?E:O;for(var c=l._storage,h=[],d=this._chunkSize,f=t.length,v=this.count(),m=[],y=l._rawExtent,x=0;x<v;x++){for(var _=0;_<f;_++)m[_]=this.get(t[_],x);m[f]=x;var w=e&&e.apply(n,m);if(null!=w){"object"!=typeof w&&(h[0]=w,w=h);for(var S=this.getRawIndex(x),M=Math.floor(S/d),T=S%d,i=0;i<w.length;i++){var A=t[i],I=w[i],C=y[A],D=c[A];D&&(D[M][T]=I),I<C[0]&&(C[0]=I),I>C[1]&&(C[1]=I)}}}return l},D.downSample=function(t,e,n,r){for(var o=z(this,[t]),l=o._storage,c=[],h=Math.floor(1/e),d=l[t],f=this.count(),v=this._chunkSize,m=o._rawExtent[t],y=new(M(this))(f),x=0,i=0;i<f;i+=h){h>f-i&&(h=f-i,c.length=h);for(var _=0;_<h;_++){var w=this.getRawIndex(i+_),S=Math.floor(w/v),T=w%v;c[_]=d[S][T]}var A=n(c),I=this.getRawIndex(Math.min(i+r(c,A)||0,f-1)),C=I%v;d[Math.floor(I/v)][C]=A,A<m[0]&&(m[0]=A),A>m[1]&&(m[1]=A),y[x++]=I}return o._count=x,o._indices=y,o.getRawIndex=E,o},D.getItemModel=function(t){var e=this.hostModel;return new o(this.getRawDataItem(t),e,e&&e.ecModel)},D.diff=function(t){var e=this;return new l(t?t.getIndices():[],this.getIndices(),(function(e){return N(t,e)}),(function(t){return N(e,t)}))},D.getVisual=function(t){var e=this._visual;return e&&e[t]},D.setVisual=function(t,e){if(y(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},D.setLayout=function(t,e){if(y(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},D.getLayout=function(t){return this._layout[t]},D.getItemLayout=function(t){return this._itemLayouts[t]},D.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?r.extend(this._itemLayouts[t]||{},e):e},D.clearItemLayouts=function(){this._itemLayouts.length=0},D.getItemVisual=function(t,e,n){var r=this._itemVisuals[t],o=r&&r[e];return null!=o||n?o:this.getVisual(e)},D.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{},o=this.hasItemVisual;if(this._itemVisuals[t]=r,y(e))for(var l in e)e.hasOwnProperty(l)&&(r[l]=e[l],o[l]=!0);else r[e]=n,o[e]=!0},D.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var H=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};D.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(H,e)),this._graphicEls[t]=e},D.getItemGraphicEl=function(t){return this._graphicEls[t]},D.eachItemGraphicEl=function(t,e){r.each(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},D.cloneShallow=function(t){if(!t){var e=r.map(this.dimensions,this.getDimensionInfo,this);t=new C(e,this.hostModel)}if(t._storage=this._storage,I(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?E:O,t},D.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(r.slice(arguments)))})},D.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],D.CHANGABLE_METHODS=["filterSelf","selectRange"];var F=C;t.exports=F},function(t,e,n){var r=n(0),o=n(2),l=n(14),c=n(33).calculateTextPosition,h=o.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(path,t){var e=t.cx,n=t.cy,r=t.width/2,o=t.height/2;path.moveTo(e,n-o),path.lineTo(e+r,n+o),path.lineTo(e-r,n+o),path.closePath()}}),d=o.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(path,t){var e=t.cx,n=t.cy,r=t.width/2,o=t.height/2;path.moveTo(e,n-o),path.lineTo(e+r,n),path.lineTo(e,n+o),path.lineTo(e-r,n),path.closePath()}}),f=o.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(path,t){var e=t.x,n=t.y,r=t.width/5*3,o=Math.max(r,t.height),l=r/2,c=l*l/(o-l),h=n-o+l+c,d=Math.asin(c/l),f=Math.cos(d)*l,v=Math.sin(d),m=Math.cos(d),y=.6*l,x=.7*l;path.moveTo(e-f,h+c),path.arc(e,h,l,Math.PI-d,2*Math.PI+d),path.bezierCurveTo(e+f-v*y,h+c+m*y,e,n-x,e,n),path.bezierCurveTo(e,n-x,e-f+v*y,h+c+m*y,e-f,h+c),path.closePath()}}),v=o.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,o=e.x,l=e.y,c=r/3*2;t.moveTo(o,l),t.lineTo(o+c,l+n),t.lineTo(o,l+n/4*3),t.lineTo(o-c,l+n),t.lineTo(o,l),t.closePath()}}),m={line:o.Line,rect:o.Rect,roundRect:o.Rect,square:o.Rect,circle:o.Circle,diamond:d,pin:f,arrow:v,triangle:h},y={line:function(t,e,n,r,o){o.x1=t,o.y1=e+r/2,o.x2=t+n,o.y2=e+r/2},rect:function(t,e,n,r,o){o.x=t,o.y=e,o.width=n,o.height=r},roundRect:function(t,e,n,r,o){o.x=t,o.y=e,o.width=n,o.height=r,o.r=Math.min(n,r)/4},square:function(t,e,n,r,o){var l=Math.min(n,r);o.x=t,o.y=e,o.width=l,o.height=l},circle:function(t,e,n,r,o){o.cx=t+n/2,o.cy=e+r/2,o.r=Math.min(n,r)/2},diamond:function(t,e,n,r,o){o.cx=t+n/2,o.cy=e+r/2,o.width=n,o.height=r},pin:function(t,e,n,r,o){o.x=t+n/2,o.y=e+r/2,o.width=n,o.height=r},arrow:function(t,e,n,r,o){o.x=t+n/2,o.y=e+r/2,o.width=n,o.height=r},triangle:function(t,e,n,r,o){o.cx=t+n/2,o.cy=e+r/2,o.width=n,o.height=r}},x={};r.each(m,(function(t,e){x[e]=new t}));var _=o.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,style,rect){var e=c(t,style,rect),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===style.textPosition&&(e.y=rect.y+.4*rect.height),e},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var o=x[r];o||(o=x[r="rect"]),y[r](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,n)}}});function w(t,e){if("image"!==this.type){var n=this.style,r=this.shape;r&&"line"===r.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,n,r,c,h,d){var f,v=0===t.indexOf("empty");return v&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(f=0===t.indexOf("image://")?o.makeImage(t.slice(8),new l(e,n,r,c),d?"center":"cover"):0===t.indexOf("path://")?o.makePath(t.slice(7),{},new l(e,n,r,c),d?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:r,height:c}})).__isEmptyBrush=v,f.setColor=w,f.setColor(h),f}},,,,function(t,e,n){var r=n(0),o={};function l(){this._coordinateSystems=[]}l.prototype={constructor:l,create:function(t,e){var n=[];r.each(o,(function(r,o){var l=r.create(t,e);n=n.concat(l||[])})),this._coordinateSystems=n},update:function(t,e){r.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},l.register=function(t,e){o[t]=e},l.get=function(t){return o[t]};var c=l;t.exports=c},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(735),l=n(164),c=n(163),h=n(5),d=n(165),f=d.prepareLayoutBarSeries,v=d.makeColumnLayout,m=d.retrieveColumnLayout,y=n(14);function x(t,e){var n,o,span,l=t.type,c=e.getMin(),d=e.getMax(),y=t.getExtent();"ordinal"===l?n=e.getCategories().length:(o=e.get("boundaryGap"),r.isArray(o)||(o=[o||0,o||0]),"boolean"==typeof o[0]&&(o=[0,0]),o[0]=h.parsePercent(o[0],1),o[1]=h.parsePercent(o[1],1),span=y[1]-y[0]||Math.abs(y[0])),"dataMin"===c?c=y[0]:"function"==typeof c&&(c=c({min:y[0],max:y[1]})),"dataMax"===d?d=y[1]:"function"==typeof d&&(d=d({min:y[0],max:y[1]}));var x=null!=c,_=null!=d;null==c&&(c="ordinal"===l?n?0:NaN:y[0]-o[0]*span),null==d&&(d="ordinal"===l?n?n-1:NaN:y[1]+o[1]*span),(null==c||!isFinite(c))&&(c=NaN),(null==d||!isFinite(d))&&(d=NaN),t.setBlank(r.eqNaN(c)||r.eqNaN(d)||"ordinal"===l&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(c>0&&d>0&&!x&&(c=0),c<0&&d<0&&!_&&(d=0));var w=e.ecModel;if(w&&"time"===l){var S,M=f("bar",w);if(r.each(M,(function(t){S|=t.getBaseAxis()===e.axis})),S){var T=v(M),A=function(t,e,n,o){var l=n.axis.getExtent(),c=l[1]-l[0],h=m(o,n.axis);if(void 0===h)return{min:t,max:e};var d=1/0;r.each(h,(function(t){d=Math.min(t.offset,d)}));var f=-1/0;r.each(h,(function(t){f=Math.max(t.offset+t.width,f)})),d=Math.abs(d),f=Math.abs(f);var v=d+f,y=e-t,x=y/(1-(d+f)/c)-y;return{min:t-=x*(d/v),max:e+=x*(f/v)}}(c,d,e,T);c=A.min,d=A.max}}return{extent:[c,d],fixMin:x,fixMax:_}}function _(t){var e,n=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof n?(e=n,n=function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}):"function"==typeof n?function(e,o){return null!=r&&(o=e-r),n(w(t,e),o)}:function(e){return t.scale.getLabel(e)}}function w(t,e){return"category"===t.type?t.scale.getLabel(e):e}function S(t){var e=t.get("interval");return null==e?"auto":e}n(736),n(339),e.getScaleExtent=x,e.niceScaleExtent=function(t,e){var n=x(t,e),r=n.extent,o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var l=t.type;t.setExtent(r[0],r[1]),t.niceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===l||"time"===l?e.get("minInterval"):null,maxInterval:"interval"===l||"time"===l?e.get("maxInterval"):null});var c=e.get("interval");null!=c&&t.setInterval&&t.setInterval(c)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new o(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new l;default:return(c.getClass(e)||l).create(t)}},e.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)},e.makeLabelFormatter=_,e.getAxisRawValue=w,e.estimateLabelUnionRect=function(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var r,o,l="category"===t.type,c=n.getExtent();o=l?n.count():(r=n.getTicks()).length;var rect,h,d,f,v,m,x,w,S,M=t.getLabelModel(),T=_(t),A=1;o>40&&(A=Math.ceil(o/40));for(var i=0;i<o;i+=A){var label=T(r?r[i]:c[0]+i),I=M.getTextRect(label),C=(h=I,d=M.get("rotate")||0,f=void 0,v=void 0,m=void 0,x=void 0,w=void 0,S=void 0,void 0,f=d*Math.PI/180,v=h.plain(),m=v.width,x=v.height,w=m*Math.cos(f)+x*Math.sin(f),S=m*Math.sin(f)+x*Math.cos(f),new y(v.x,v.y,w,S));rect?rect.union(C):rect=C}return rect}},e.getOptionCategoryInterval=S,e.shouldShowAllLabels=function(t){return"category"===t.type&&0===S(t.getLabelModel())}},,,function(t,e,n){var r=n(75);e.Dispatcher=r;var o=n(18),l=n(309),c=l.isCanvasEl,h=l.transformCoordWithViewport,d="undefined"!=typeof window&&!!window.addEventListener,f=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,v=[];function m(t,e,n,r){return n=n||{},r||!o.canvasSupported?y(t,e,n):o.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):y(t,e,n),n}function y(t,e,n){if(o.domSupported&&t.getBoundingClientRect){var r=e.clientX,l=e.clientY;if(c(t)){var d=t.getBoundingClientRect();return n.zrX=r-d.left,void(n.zrY=l-d.top)}if(h(v,t,r,l))return n.zrX=v[0],void(n.zrY=v[1])}n.zrX=n.zrY=0}function x(t){return t||window.event}var _=d?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=m,e.getNativeEvent=x,e.normalizeEvent=function(t,e,n){if(null!=(e=x(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&m(t,o,e,n)}else m(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var button=e.button;return null==e.which&&void 0!==button&&f.test(e.type)&&(e.which=1&button?1:2&button?3:4&button?2:0),e},e.addEventListener=function(t,e,n,r){d?t.addEventListener(e,n,r):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n,r){d?t.removeEventListener(e,n,r):t.detachEvent("on"+e,n)},e.stop=_,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return t.which>1}},function(t,e,n){var r=n(312),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function l(i){return(i=Math.round(i))<0?0:i>255?255:i}function c(t){return t<0?0:t>1?1:t}function h(t){return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100*255):l(parseInt(t,10))}function d(t){return t.length&&"%"===t.charAt(t.length-1)?c(parseFloat(t)/100):c(parseFloat(t))}function f(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function v(a,b,p){return a+(b-a)*p}function m(t,e,g,b,a){return t[0]=e,t[1]=g,t[2]=b,t[3]=a,t}function y(t,a){return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t}var x=new r(20),_=null;function w(t,e){_&&y(_,e),_=x.put(t,_||e.slice())}function S(t,e){if(t){e=e||[];var n=x.get(t);if(n)return y(e,n);var r,l=(t+="").replace(/ /g,"").toLowerCase();if(l in o)return y(e,o[l]),w(t,e),e;if("#"===l.charAt(0))return 4===l.length?(r=parseInt(l.substr(1),16))>=0&&r<=4095?(m(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1),w(t,e),e):void m(e,0,0,0,1):7===l.length?(r=parseInt(l.substr(1),16))>=0&&r<=16777215?(m(e,(16711680&r)>>16,(65280&r)>>8,255&r,1),w(t,e),e):void m(e,0,0,0,1):void 0;var c=l.indexOf("("),f=l.indexOf(")");if(-1!==c&&f+1===l.length){var v=l.substr(0,c),_=l.substr(c+1,f-(c+1)).split(","),S=1;switch(v){case"rgba":if(4!==_.length)return void m(e,0,0,0,1);S=d(_.pop());case"rgb":return 3!==_.length?void m(e,0,0,0,1):(m(e,h(_[0]),h(_[1]),h(_[2]),S),w(t,e),e);case"hsla":return 4!==_.length?void m(e,0,0,0,1):(_[3]=d(_[3]),M(_,e),w(t,e),e);case"hsl":return 3!==_.length?void m(e,0,0,0,1):(M(_,e),w(t,e),e);default:return}}m(e,0,0,0,1)}}function M(t,e){var n=(parseFloat(t[0])%360+360)%360/360,s=d(t[1]),r=d(t[2]),o=r<=.5?r*(s+1):r+s-r*s,c=2*r-o;return m(e=e||[],l(255*f(c,o,n+1/3)),l(255*f(c,o,n)),l(255*f(c,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function T(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),o=Math.floor(r),h=Math.ceil(r),d=e[o],f=e[h],m=r-o;return n[0]=l(v(d[0],f[0],m)),n[1]=l(v(d[1],f[1],m)),n[2]=l(v(d[2],f[2],m)),n[3]=c(v(d[3],f[3],m)),n}}var A=T;function I(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),o=Math.floor(r),h=Math.ceil(r),d=S(e[o]),f=S(e[h]),m=r-o,y=D([l(v(d[0],f[0],m)),l(v(d[1],f[1],m)),l(v(d[2],f[2],m)),c(v(d[3],f[3],m))],"rgba");return n?{color:y,leftIndex:o,rightIndex:h,value:r}:y}}var C=I;function D(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=S,e.lift=function(t,e){var n=S(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return D(n,4===n.length?"rgba":"rgb")}},e.toHex=function(t){var e=S(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=T,e.fastMapToColor=A,e.lerp=I,e.mapToColor=C,e.modifyHSL=function(t,e,s,n){if(t=S(t))return t=function(t){if(t){var e,n,r=t[0]/255,o=t[1]/255,l=t[2]/255,c=Math.min(r,o,l),h=Math.max(r,o,l),d=h-c,f=(h+c)/2;if(0===d)e=0,n=0;else{n=f<.5?d/(h+c):d/(2-h-c);var v=((h-r)/6+d/2)/d,m=((h-o)/6+d/2)/d,y=((h-l)/6+d/2)/d;r===h?e=y-m:o===h?e=1/3+v-y:l===h&&(e=2/3+m-v),e<0&&(e+=1),e>1&&(e-=1)}var x=[360*e,n,f];return null!=t[3]&&x.push(t[3]),x}}(t),null!=e&&(t[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=s&&(t[1]=d(s)),null!=n&&(t[2]=d(n)),D(M(t),"rgba");var i},e.modifyAlpha=function(t,e){if((t=S(t))&&null!=e)return t[3]=c(e),D(t,"rgba")},e.stringify=D},function(t,e,n){var r=n(0).each,o=n(76),l=n(122),c=n(54),h=n(6),d=n(2),f=n(213).createTask,v=n(95),m=h.makeInner(),y=v();function x(){this.group=new o,this.uid=l.getUID("viewChart"),this.renderTask=f({plan:M,reset:T}),this.renderTask.context={view:this}}x.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,r){},highlight:function(t,e,n,r){S(t.getData(),r,"emphasis")},downplay:function(t,e,n,r){S(t.getData(),r,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var _=x.prototype;function w(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!d.isHighDownDispatcher(t)))for(var i=0,r=t.childCount();i<r;i++)w(t.childAt(i),e,n)}function S(data,t,e){var n=h.queryDataIndex(data,t),o=t&&null!=t.highlightKey?d.getHighlightDigit(t.highlightKey):null;null!=n?r(h.normalizeToArray(n),(function(t){w(data.getItemGraphicEl(t),e,o)})):data.eachItemGraphicEl((function(t){w(t,e,o)}))}function M(t){return y(t.model)}function T(t){var e=t.model,n=t.ecModel,r=t.api,o=t.payload,l=e.pipelineContext.progressiveRender,view=t.view,c=o&&m(o).updateMethod,h=l?"incrementalPrepareRender":c&&view[c]?c:"render";return"render"!==h&&view[h](e,n,r,o),A[h]}_.updateView=_.updateLayout=_.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},c.enableClassExtend(x,["dispose"]),c.enableClassManagement(x,{registerWhenExtend:!0}),x.markUpdateMethod=function(t,e){m(t).updateMethod=e};var A={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},I=x;t.exports=I},function(t,e,n){var r=n(0),o=r.each,l=r.isString;function c(data,t){return!!t&&t===data.getCalculationInfo("stackedDimension")}e.enableDataStack=function(t,e,n){var r,c,h,d,f=(n=n||{}).byIndex,v=n.stackedCoordDimension,m=!(!t||!t.get("stack"));if(o(e,(function(t,n){l(t)&&(e[n]=t={name:t}),m&&!t.isExtraCoord&&(f||r||!t.ordinalMeta||(r=t),c||"ordinal"===t.type||"time"===t.type||v&&v!==t.coordDim||(c=t))})),!c||f||r||(f=!0),c){h="__\0ecstackresult",d="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var y=c.coordDim,x=c.type,_=0;o(e,(function(t){t.coordDim===y&&_++})),e.push({name:h,coordDim:y,coordDimIndex:_,type:x,isExtraCoord:!0,isCalculationCoord:!0}),_++,e.push({name:d,coordDim:d,coordDimIndex:_,type:x,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:c&&c.name,stackedByDimension:r&&r.name,isStackedByIndex:f,stackedOverDimension:d,stackResultDimension:h}},e.isDimensionStacked=c,e.getStackedDimension=function(data,t){return c(data,t)?data.getCalculationInfo("stackResultDimension"):t}},,,,,function(t,e,n){n(7).__DEV__;var r=n(0),o="___EC__COMPONENT__CONTAINER___";function l(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}var c=0;function h(t,e){var n=r.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function d(t,e,n){return this.superClass.prototype[e].apply(t,n)}e.parseClassType=l,e.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r.extend(n.prototype,t),n.extend=this.extend,n.superCall=h,n.superApply=d,r.inherits(n,this),n.superClass=e,n}},e.enableClassCheck=function(t){var e=["__\0is_clz",c++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}},e.enableClassManagement=function(t,e){e=e||{};var n={};if(t.registerClass=function(t,e){if(e)if(function(t){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=l(e)).sub){if(e.sub!==o){(function(t){var e=n[t.main];e&&e[o]||((e=n[t.main]={})[o]=!0);return e}(e))[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,r){var l=n[t];if(l&&l[o]&&(l=e?l[e]:null),r&&!l)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return l},t.getClassesByMainType=function(t){t=l(t);var e=[],c=n[t.main];return c&&c[o]?r.each(c,(function(t,n){n!==o&&e.push(t)})):e.push(c),e},t.hasClass=function(t){return t=l(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(n,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){t=l(t);var e=n[t.main];return e&&e[o]},t.parseClassType=l,e.registerWhenExtend){var c=t.extend;c&&(t.extend=function(e){var n=c.call(this,e);return t.registerClass(n,e.type)})}return t},e.setReadOnly=function(t,e){}},function(t,e,n){n(7).__DEV__;var r=n(6),o=r.makeInner,l=r.getDataItemValue,c=n(0),h=c.createHashMap,d=c.each,map=c.map,f=c.isArray,v=c.isString,m=c.isObject,y=c.isTypedArray,x=c.isArrayLike,_=c.extend,w=(c.assert,n(123)),S=n(124),M=S.SOURCE_FORMAT_ORIGINAL,T=S.SOURCE_FORMAT_ARRAY_ROWS,A=S.SOURCE_FORMAT_OBJECT_ROWS,I=S.SOURCE_FORMAT_KEYED_COLUMNS,C=S.SOURCE_FORMAT_UNKNOWN,D=S.SOURCE_FORMAT_TYPED_ARRAY,L=S.SERIES_LAYOUT_BY_ROW,k={Must:1,Might:2,Not:3},P=o();function O(t){if(t){var e=h();return map(t,(function(t,n){if(null==(t=_({},m(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var r=e.get(t.name);return r?t.name+="-"+r.count++:e.set(t.name,{count:1}),t}))}}function E(t,e,data,n){if(null==n&&(n=1/0),e===L)for(var i=0;i<data.length&&i<n;i++)t(data[i]?data[i][0]:null,i);else{var r=data[0]||[];for(i=0;i<r.length&&i<n;i++)t(r[i],i)}}function N(t){var option=t.option;if(!option.data)return t.ecModel.getComponent("dataset",option.datasetIndex||0)}function R(data,t,e,n,r,o){var c,h,d;if(y(data))return k.Not;if(n){var x=n[o];m(x)?(h=x.name,d=x.type):v(x)&&(h=x)}if(null!=d)return"ordinal"===d?k.Must:k.Not;if(t===T)if(e===L){for(var _=data[o],i=0;i<(_||[]).length&&i<5;i++)if(null!=(c=D(_[r+i])))return c}else for(i=0;i<data.length&&i<5;i++){var w=data[r+i];if(w&&null!=(c=D(w[o])))return c}else if(t===A){if(!h)return k.Not;for(i=0;i<data.length&&i<5;i++){if((S=data[i])&&null!=(c=D(S[h])))return c}}else if(t===I){if(!h)return k.Not;if(!(_=data[h])||y(_))return k.Not;for(i=0;i<_.length&&i<5;i++)if(null!=(c=D(_[i])))return c}else if(t===M)for(i=0;i<data.length&&i<5;i++){var S=data[i],C=l(S);if(!f(C))return k.Not;if(null!=(c=D(C[o])))return c}function D(t){var e=v(t);return null!=t&&isFinite(t)&&""!==t?e?k.Might:k.Not:e&&"-"!==t?k.Must:void 0}return k.Not}e.BE_ORDINAL=k,e.detectSourceFormat=function(t){var data=t.option.source,e=C;if(y(data))e=D;else if(f(data)){0===data.length&&(e=T);for(var i=0,n=data.length;i<n;i++){var r=data[i];if(null!=r){if(f(r)){e=T;break}if(m(r)){e=A;break}}}}else if(m(data)){for(var o in data)if(data.hasOwnProperty(o)&&x(data[o])){e=I;break}}else if(null!=data)throw new Error("Invalid data");P(t).sourceFormat=e},e.getSource=function(t){return P(t).source},e.resetSourceDefaulter=function(t){P(t).datasetMap=h()},e.prepareSource=function(t){var e=t.option,data=e.data,n=y(data)?D:M,r=!1,o=e.seriesLayoutBy,c=e.sourceHeader,h=e.dimensions,m=N(t);if(m){var x=m.option;data=x.source,n=P(m).sourceFormat,r=!0,o=o||x.seriesLayoutBy,null==c&&(c=x.sourceHeader),h=h||x.dimensions}var _=function(data,t,e,n,r){if(!data)return{dimensionsDefine:O(r)};var o,c;if(t===T)"auto"===n||null==n?E((function(t){null!=t&&"-"!==t&&(v(t)?null==c&&(c=1):c=0)}),e,data,10):c=n?1:0,r||1!==c||(r=[],E((function(t,e){r[e]=null!=t?t:""}),e,data)),o=r?r.length:e===L?data.length:data[0]?data[0].length:null;else if(t===A)r||(r=function(data){var t,e=0;for(;e<data.length&&!(t=data[e++]););if(t){var n=[];return d(t,(function(t,e){n.push(e)})),n}}(data));else if(t===I)r||(r=[],d(data,(function(t,e){r.push(e)})));else if(t===M){var h=l(data[0]);o=f(h)&&h.length||1}return{startIndex:c,dimensionsDefine:O(r),dimensionsDetectCount:o}}(data,n,o,c,h);P(t).source=new w({data:data,fromDataset:r,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:_.dimensionsDefine,startIndex:_.startIndex,dimensionsDetectCount:_.dimensionsDetectCount,encodeDefine:e.encode})},e.makeSeriesEncodeForAxisCoordSys=function(t,e,source){var n={},r=N(e);if(!r||!t)return n;var o,l,c=[],h=[],f=e.ecModel,v=P(f).datasetMap,y=r.uid+"_"+source.seriesLayoutBy;t=t.slice(),d(t,(function(e,r){!m(e)&&(t[r]={name:e}),"ordinal"===e.type&&null==o&&(o=r,l=w(t[r])),n[e.name]=[]}));var x=v.get(y)||v.set(y,{categoryWayDim:l,valueWayDim:0});function _(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function w(t){var e=t.dimsDef;return e?e.length:1}return d(t,(function(t,e){var r=t.name,l=w(t);if(null==o){var d=x.valueWayDim;_(n[r],d,l),_(h,d,l),x.valueWayDim+=l}else if(o===e)_(n[r],0,l),_(c,0,l);else{d=x.categoryWayDim;_(n[r],d,l),_(h,d,l),x.categoryWayDim+=l}})),c.length&&(n.itemName=c),h.length&&(n.seriesName=h),n},e.makeSeriesEncodeForNameBased=function(t,source,e){var n={};if(!N(t))return n;var r,o=source.sourceFormat,l=source.dimensionsDefine;o!==A&&o!==I||d(l,(function(t,e){"name"===(m(t)?t.name:t)&&(r=e)}));var c=function(){for(var t={},n={},c=[],i=0,h=Math.min(5,e);i<h;i++){var d=R(source.data,o,source.seriesLayoutBy,l,source.startIndex,i);c.push(d);var f=d===k.Not;if(f&&null==t.v&&i!==r&&(t.v=i),(null==t.n||t.n===t.v||!f&&c[t.n]===k.Not)&&(t.n=i),v(t)&&c[t.n]!==k.Not)return t;f||(d===k.Might&&null==n.v&&i!==r&&(n.v=i),null!=n.n&&n.n!==n.v||(n.n=i))}function v(t){return null!=t.v&&null!=t.n}return v(t)?t:v(n)?n:null}();if(c){n.value=c.v;var h=null!=r?r:c.n;n.itemName=[h],n.seriesName=[h]}return n},e.guessOrdinal=function(source,t){return R(source.data,source.sourceFormat,source.seriesLayoutBy,source.dimensionsDefine,source.startIndex,t)}},function(t,e,n){var r=n(0),o=n(37),l=n(96),c=n(124).SOURCE_FORMAT_ORIGINAL,h=n(125).getDimensionTypeByAxis,d=n(6).getDataItemValue,f=n(42),v=n(734).getCoordSysInfoBySeries,m=n(123),y=n(49).enableDataStack,x=n(55).makeSeriesEncodeForAxisCoordSys;var _=function(source,t,e){e=e||{},m.isInstance(source)||(source=m.seriesDataToSource(source));var n,_=t.get("coordinateSystem"),w=f.get(_),S=v(t);S&&(n=r.map(S.coordSysDims,(function(t){var e={name:t},n=S.axisMap.get(t);if(n){var r=n.get("type");e.type=h(r)}return e}))),n||(n=w&&(w.getDimensionsInfo?w.getDimensionsInfo():w.dimensions.slice())||["x","y"]);var M,T,A=l(source,{coordDimensions:n,generateCoord:e.generateCoord,encodeDefaulter:e.useEncodeDefaulter?r.curry(x,n,t):null});S&&r.each(A,(function(t,e){var n=t.coordDim,r=S.categoryAxisMap.get(n);r&&(null==M&&(M=e),t.ordinalMeta=r.getOrdinalMeta()),null!=t.otherDims.itemName&&(T=!0)})),T||null==M||(A[M].otherDims.itemName=0);var I=y(t,A),C=new o(A,t);C.setCalculationInfo(I);var D=null!=M&&function(source){if(source.sourceFormat===c){var t=function(data){var i=0;for(;i<data.length&&null==data[i];)i++;return data[i]}(source.data||[]);return null!=t&&!r.isArray(d(t))}}(source)?function(t,e,n,r){return r===M?n:this.defaultDimValueGetter(t,e,n,r)}:null;return C.hasItemOption=!1,C.initData(source,null,D),C};t.exports=_},,function(t,e,n){(function(t,r){var o;(function(){var l="Expected a function",c="__lodash_placeholder__",h=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],d="[object Arguments]",f="[object Array]",v="[object Boolean]",m="[object Date]",y="[object Error]",x="[object Function]",_="[object GeneratorFunction]",w="[object Map]",S="[object Number]",M="[object Object]",T="[object RegExp]",A="[object Set]",I="[object String]",C="[object Symbol]",D="[object WeakMap]",L="[object ArrayBuffer]",k="[object DataView]",P="[object Float32Array]",O="[object Float64Array]",E="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",z="[object Uint8Array]",B="[object Uint16Array]",V="[object Uint32Array]",H=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,U=RegExp(W.source),Z=RegExp(j.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),nt=/^\s+|\s+$/g,it=/^\s+/,ot=/\s+$/,at=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,lt=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mt="[\\ud800-\\udfff]",Tt="["+St+"]",At="["+wt+"]",It="\\d+",Ct="[\\u2700-\\u27bf]",Dt="[a-z\\xdf-\\xf6\\xf8-\\xff]",Lt="[^\\ud800-\\udfff"+St+It+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",kt="\\ud83c[\\udffb-\\udfff]",Pt="[^\\ud800-\\udfff]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",Nt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Rt="(?:"+Dt+"|"+Lt+")",zt="(?:"+Nt+"|"+Lt+")",Bt="(?:"+At+"|"+kt+")"+"?",Vt="[\\ufe0e\\ufe0f]?"+Bt+("(?:\\u200d(?:"+[Pt,Ot,Et].join("|")+")[\\ufe0e\\ufe0f]?"+Bt+")*"),Ht="(?:"+[Ct,Ot,Et].join("|")+")"+Vt,Ft="(?:"+[Pt+At+"?",At,Ot,Et,Mt].join("|")+")",Gt=RegExp("['’]","g"),Wt=RegExp(At,"g"),jt=RegExp(kt+"(?="+kt+")|"+Ft+Vt,"g"),Ut=RegExp([Nt+"?"+Dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Tt,Nt,"$"].join("|")+")",zt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Tt,Nt+Rt,"$"].join("|")+")",Nt+"?"+Rt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Nt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Ht].join("|"),"g"),qt=RegExp("[\\u200d\\ud800-\\udfff"+wt+"\\ufe0e\\ufe0f]"),Zt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,$t={};$t[P]=$t[O]=$t[E]=$t[N]=$t[R]=$t[z]=$t["[object Uint8ClampedArray]"]=$t[B]=$t[V]=!0,$t[d]=$t[f]=$t[L]=$t[v]=$t[k]=$t[m]=$t[y]=$t[x]=$t[w]=$t[S]=$t[M]=$t[T]=$t[A]=$t[I]=$t[D]=!1;var Kt={};Kt[d]=Kt[f]=Kt[L]=Kt[k]=Kt[v]=Kt[m]=Kt[P]=Kt[O]=Kt[E]=Kt[N]=Kt[R]=Kt[w]=Kt[S]=Kt[M]=Kt[T]=Kt[A]=Kt[I]=Kt[C]=Kt[z]=Kt["[object Uint8ClampedArray]"]=Kt[B]=Kt[V]=!0,Kt[y]=Kt[x]=Kt[D]=!1;var Jt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qt=parseFloat,te=parseInt,ee="object"==typeof t&&t&&t.Object===Object&&t,ne="object"==typeof self&&self&&self.Object===Object&&self,ie=ee||ne||Function("return this")(),re=e&&!e.nodeType&&e,oe=re&&"object"==typeof r&&r&&!r.nodeType&&r,ae=oe&&oe.exports===re,se=ae&&ee.process,le=function(){try{var t=oe&&oe.require&&oe.require("util").types;return t||se&&se.binding&&se.binding("util")}catch(t){}}(),ue=le&&le.isArrayBuffer,ce=le&&le.isDate,he=le&&le.isMap,de=le&&le.isRegExp,fe=le&&le.isSet,pe=le&&le.isTypedArray;function ge(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ve(t,e,n,r){for(var o=-1,l=null==t?0:t.length;++o<l;){var c=t[o];e(r,c,n(c),t)}return r}function me(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ye(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function xe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function _e(t,e){for(var n=-1,r=null==t?0:t.length,o=0,l=[];++n<r;){var c=t[n];e(c,n,t)&&(l[o++]=c)}return l}function be(t,e){return!!(null==t?0:t.length)&&ke(t,e,0)>-1}function we(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Se(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Me(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function Te(t,e,n,r){var o=-1,l=null==t?0:t.length;for(r&&l&&(n=t[++o]);++o<l;)n=e(n,t[o],o,t);return n}function Ae(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function Ie(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Ce=Ne("length");function De(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function Le(t,e,n,r){for(var o=t.length,l=n+(r?1:-1);r?l--:++l<o;)if(e(t[l],l,t))return l;return-1}function ke(t,e,n){return e==e?function(t,e,n){var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):Le(t,Oe,n)}function Pe(t,e,n,r){for(var o=n-1,l=t.length;++o<l;)if(r(t[o],e))return o;return-1}function Oe(t){return t!=t}function Ee(t,e){var n=null==t?0:t.length;return n?Be(t,e)/n:NaN}function Ne(t){return function(object){return null==object?void 0:object[t]}}function Re(object){return function(t){return null==object?void 0:object[t]}}function ze(t,e,n,r,o){return o(t,(function(t,o,l){n=r?(r=!1,t):e(n,t,o,l)})),n}function Be(t,e){for(var n,r=-1,o=t.length;++r<o;){var l=e(t[r]);void 0!==l&&(n=void 0===n?l:n+l)}return n}function Ve(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function He(t){return function(e){return t(e)}}function Fe(object,t){return Se(t,(function(t){return object[t]}))}function Ge(t,e){return t.has(e)}function We(t,e){for(var n=-1,r=t.length;++n<r&&ke(e,t[n],0)>-1;);return n}function je(t,e){for(var n=t.length;n--&&ke(e,t[n],0)>-1;);return n}function Ue(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var qe=Re({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Ze=Re({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ye(t){return"\\"+Jt[t]}function Xe(t){return qt.test(t)}function $e(map){var t=-1,e=Array(map.size);return map.forEach((function(n,r){e[++t]=[r,n]})),e}function Ke(t,e){return function(n){return t(e(n))}}function Je(t,e){for(var n=-1,r=t.length,o=0,l=[];++n<r;){var h=t[n];h!==e&&h!==c||(t[n]=c,l[o++]=n)}return l}function Qe(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function tn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function en(t){return Xe(t)?function(t){var e=jt.lastIndex=0;for(;jt.test(t);)++e;return e}(t):Ce(t)}function nn(t){return Xe(t)?function(t){return t.match(jt)||[]}(t):function(t){return t.split("")}(t)}var rn=Re({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var on=function t(e){var n,r=(e=null==e?ie:on.defaults(ie.Object(),e,on.pick(ie,Yt))).Array,o=e.Date,wt=e.Error,St=e.Function,Mt=e.Math,Tt=e.Object,At=e.RegExp,It=e.String,Ct=e.TypeError,Dt=r.prototype,Lt=St.prototype,kt=Tt.prototype,Pt=e["__core-js_shared__"],Ot=Lt.toString,Et=kt.hasOwnProperty,Nt=0,Rt=(n=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",zt=kt.toString,Bt=Ot.call(Tt),Vt=ie._,Ht=At("^"+Ot.call(Et).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=ae?e.Buffer:void 0,jt=e.Symbol,qt=e.Uint8Array,Jt=Ft?Ft.allocUnsafe:void 0,ee=Ke(Tt.getPrototypeOf,Tt),ne=Tt.create,re=kt.propertyIsEnumerable,oe=Dt.splice,se=jt?jt.isConcatSpreadable:void 0,le=jt?jt.iterator:void 0,Ce=jt?jt.toStringTag:void 0,Re=function(){try{var t=po(Tt,"defineProperty");return t({},"",{}),t}catch(t){}}(),an=e.clearTimeout!==ie.clearTimeout&&e.clearTimeout,sn=o&&o.now!==ie.Date.now&&o.now,ln=e.setTimeout!==ie.setTimeout&&e.setTimeout,un=Mt.ceil,cn=Mt.floor,hn=Tt.getOwnPropertySymbols,dn=Ft?Ft.isBuffer:void 0,fn=e.isFinite,pn=Dt.join,gn=Ke(Tt.keys,Tt),vn=Mt.max,mn=Mt.min,yn=o.now,xn=e.parseInt,_n=Mt.random,bn=Dt.reverse,wn=po(e,"DataView"),Sn=po(e,"Map"),Mn=po(e,"Promise"),Tn=po(e,"Set"),An=po(e,"WeakMap"),In=po(Tt,"create"),Cn=An&&new An,Dn={},Ln=Fo(wn),kn=Fo(Sn),Pn=Fo(Mn),On=Fo(Tn),En=Fo(An),Nn=jt?jt.prototype:void 0,Rn=Nn?Nn.valueOf:void 0,zn=Nn?Nn.toString:void 0;function Bn(t){if(ns(t)&&!Ua(t)&&!(t instanceof Gn)){if(t instanceof Fn)return t;if(Et.call(t,"__wrapped__"))return Go(t)}return new Fn(t)}var Vn=function(){function object(){}return function(t){if(!es(t))return{};if(ne)return ne(t);object.prototype=t;var e=new object;return object.prototype=void 0,e}}();function Hn(){}function Fn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Gn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Un;++e<n;)this.add(t[e])}function Zn(t){var data=this.__data__=new jn(t);this.size=data.size}function Yn(t,e){var n=Ua(t),r=!n&&ja(t),o=!n&&!r&&Xa(t),l=!n&&!r&&!o&&cs(t),c=n||r||o||l,h=c?Ve(t.length,It):[],d=h.length;for(var f in t)!e&&!Et.call(t,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||l&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||bo(f,d))||h.push(f);return h}function Xn(t){var e=t.length;return e?t[Zi(0,e-1)]:void 0}function $n(t,e){return Bo(kr(t),oi(e,0,t.length))}function Kn(t){return Bo(kr(t))}function Jn(object,t,e){(void 0!==e&&!Fa(object[t],e)||void 0===e&&!(t in object))&&ii(object,t,e)}function Qn(object,t,e){var n=object[t];Et.call(object,t)&&Fa(n,e)&&(void 0!==e||t in object)||ii(object,t,e)}function ti(t,e){for(var n=t.length;n--;)if(Fa(t[n][0],e))return n;return-1}function ei(t,e,n,r){return hi(t,(function(t,o,l){e(r,t,n(t),l)})),r}function ni(object,source){return object&&Pr(source,Ps(source),object)}function ii(object,t,e){"__proto__"==t&&Re?Re(object,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):object[t]=e}function ri(object,t){for(var e=-1,n=t.length,o=r(n),l=null==object;++e<n;)o[e]=l?void 0:Is(object,t[e]);return o}function oi(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function ai(t,e,n,r,object,o){var l,c=1&e,h=2&e,f=4&e;if(n&&(l=object?n(t,r,object,o):n(t)),void 0!==l)return l;if(!es(t))return t;var y=Ua(t);if(y){if(l=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Et.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!c)return kr(t,l)}else{var D=mo(t),H=D==x||D==_;if(Xa(t))return Tr(t,c);if(D==M||D==d||H&&!object){if(l=h||H?{}:xo(t),!c)return h?function(source,object){return Pr(source,vo(source),object)}(t,function(object,source){return object&&Pr(source,Os(source),object)}(l,t)):function(source,object){return Pr(source,go(source),object)}(t,ni(l,t))}else{if(!Kt[D])return object?t:{};l=function(object,t,e){var n=object.constructor;switch(t){case L:return Ar(object);case v:case m:return new n(+object);case k:return function(t,e){var n=e?Ar(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(object,e);case P:case O:case E:case N:case R:case z:case"[object Uint8ClampedArray]":case B:case V:return Ir(object,e);case w:return new n;case S:case I:return new n(object);case T:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(object);case A:return new n;case C:return symbol=object,Rn?Tt(Rn.call(symbol)):{}}var symbol}(t,D,c)}}o||(o=new Zn);var F=o.get(t);if(F)return F;o.set(t,l),ss(t)?t.forEach((function(r){l.add(ai(r,e,n,r,t,o))})):is(t)&&t.forEach((function(r,c){l.set(c,ai(r,e,n,c,t,o))}));var G=y?void 0:(f?h?ao:oo:h?Os:Ps)(t);return me(G||t,(function(r,c){G&&(r=t[c=r]),Qn(l,c,ai(r,e,n,c,t,o))})),l}function si(object,source,t){var e=t.length;if(null==object)return!e;for(object=Tt(object);e--;){var n=t[e],r=source[n],o=object[n];if(void 0===o&&!(n in object)||!r(o))return!1}return!0}function ui(t,e,n){if("function"!=typeof t)throw new Ct(l);return Eo((function(){t.apply(void 0,n)}),e)}function ci(t,e,n,r){var o=-1,l=be,c=!0,h=t.length,d=[],f=e.length;if(!h)return d;n&&(e=Se(e,He(n))),r?(l=we,c=!1):e.length>=200&&(l=Ge,c=!1,e=new qn(e));t:for(;++o<h;){var v=t[o],m=null==n?v:n(v);if(v=r||0!==v?v:0,c&&m==m){for(var y=f;y--;)if(e[y]===m)continue t;d.push(v)}else l(e,m,r)||d.push(v)}return d}Bn.templateSettings={escape:Y,evaluate:X,interpolate:$,variable:"",imports:{_:Bn}},Bn.prototype=Hn.prototype,Bn.prototype.constructor=Bn,Fn.prototype=Vn(Hn.prototype),Fn.prototype.constructor=Fn,Gn.prototype=Vn(Hn.prototype),Gn.prototype.constructor=Gn,Wn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Wn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Wn.prototype.get=function(t){var data=this.__data__;if(In){var e=data[t];return"__lodash_hash_undefined__"===e?void 0:e}return Et.call(data,t)?data[t]:void 0},Wn.prototype.has=function(t){var data=this.__data__;return In?void 0!==data[t]:Et.call(data,t)},Wn.prototype.set=function(t,e){var data=this.__data__;return this.size+=this.has(t)?0:1,data[t]=In&&void 0===e?"__lodash_hash_undefined__":e,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(t){var data=this.__data__,e=ti(data,t);return!(e<0)&&(e==data.length-1?data.pop():oe.call(data,e,1),--this.size,!0)},jn.prototype.get=function(t){var data=this.__data__,e=ti(data,t);return e<0?void 0:data[e][1]},jn.prototype.has=function(t){return ti(this.__data__,t)>-1},jn.prototype.set=function(t,e){var data=this.__data__,n=ti(data,t);return n<0?(++this.size,data.push([t,e])):data[n][1]=e,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Sn||jn),string:new Wn}},Un.prototype.delete=function(t){var e=ho(this,t).delete(t);return this.size-=e?1:0,e},Un.prototype.get=function(t){return ho(this,t).get(t)},Un.prototype.has=function(t){return ho(this,t).has(t)},Un.prototype.set=function(t,e){var data=ho(this,t),n=data.size;return data.set(t,e),this.size+=data.size==n?0:1,this},qn.prototype.add=qn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},qn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.clear=function(){this.__data__=new jn,this.size=0},Zn.prototype.delete=function(t){var data=this.__data__,e=data.delete(t);return this.size=data.size,e},Zn.prototype.get=function(t){return this.__data__.get(t)},Zn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.set=function(t,e){var data=this.__data__;if(data instanceof jn){var n=data.__data__;if(!Sn||n.length<199)return n.push([t,e]),this.size=++data.size,this;data=this.__data__=new Un(n)}return data.set(t,e),this.size=data.size,this};var hi=Nr(xi),di=Nr(_i,!0);function fi(t,e){var n=!0;return hi(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function pi(t,e,n){for(var r=-1,o=t.length;++r<o;){var l=t[r],c=e(l);if(null!=c&&(void 0===h?c==c&&!us(c):n(c,h)))var h=c,d=l}return d}function gi(t,e){var n=[];return hi(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function vi(t,e,n,r,o){var l=-1,c=t.length;for(n||(n=_o),o||(o=[]);++l<c;){var h=t[l];e>0&&n(h)?e>1?vi(h,e-1,n,r,o):Me(o,h):r||(o[o.length]=h)}return o}var mi=Rr(),yi=Rr(!0);function xi(object,t){return object&&mi(object,t,Ps)}function _i(object,t){return object&&yi(object,t,Ps)}function bi(object,t){return _e(t,(function(t){return Ja(object[t])}))}function wi(object,path){for(var t=0,e=(path=_r(path,object)).length;null!=object&&t<e;)object=object[Ho(path[t++])];return t&&t==e?object:void 0}function Si(object,t,e){var n=t(object);return Ua(object)?n:Me(n,e(object))}function Mi(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ce&&Ce in Tt(t)?function(t){var e=Et.call(t,Ce),n=t[Ce];try{t[Ce]=void 0;var r=!0}catch(t){}var o=zt.call(t);r&&(e?t[Ce]=n:delete t[Ce]);return o}(t):function(t){return zt.call(t)}(t)}function Ti(t,e){return t>e}function Ai(object,t){return null!=object&&Et.call(object,t)}function Ii(object,t){return null!=object&&t in Tt(object)}function Ci(t,e,n){for(var o=n?we:be,l=t[0].length,c=t.length,h=c,d=r(c),f=1/0,v=[];h--;){var m=t[h];h&&e&&(m=Se(m,He(e))),f=mn(m.length,f),d[h]=!n&&(e||l>=120&&m.length>=120)?new qn(h&&m):void 0}m=t[0];var y=-1,x=d[0];t:for(;++y<l&&v.length<f;){var _=m[y],w=e?e(_):_;if(_=n||0!==_?_:0,!(x?Ge(x,w):o(v,w,n))){for(h=c;--h;){var S=d[h];if(!(S?Ge(S,w):o(t[h],w,n)))continue t}x&&x.push(w),v.push(_)}}return v}function Di(object,path,t){var e=null==(object=Lo(object,path=_r(path,object)))?object:object[Ho(Jo(path))];return null==e?void 0:ge(e,object,t)}function Li(t){return ns(t)&&Mi(t)==d}function ki(t,e,n,r,o){return t===e||(null==t||null==e||!ns(t)&&!ns(e)?t!=t&&e!=e:function(object,t,e,n,r,o){var l=Ua(object),c=Ua(t),h=l?f:mo(object),x=c?f:mo(t),_=(h=h==d?M:h)==M,D=(x=x==d?M:x)==M,P=h==x;if(P&&Xa(object)){if(!Xa(t))return!1;l=!0,_=!1}if(P&&!_)return o||(o=new Zn),l||cs(object)?io(object,t,e,n,r,o):function(object,t,e,n,r,o,l){switch(e){case k:if(object.byteLength!=t.byteLength||object.byteOffset!=t.byteOffset)return!1;object=object.buffer,t=t.buffer;case L:return!(object.byteLength!=t.byteLength||!o(new qt(object),new qt(t)));case v:case m:case S:return Fa(+object,+t);case y:return object.name==t.name&&object.message==t.message;case T:case I:return object==t+"";case w:var c=$e;case A:var h=1&n;if(c||(c=Qe),object.size!=t.size&&!h)return!1;var d=l.get(object);if(d)return d==t;n|=2,l.set(object,t);var f=io(c(object),c(t),n,r,o,l);return l.delete(object),f;case C:if(Rn)return Rn.call(object)==Rn.call(t)}return!1}(object,t,h,e,n,r,o);if(!(1&e)){var O=_&&Et.call(object,"__wrapped__"),E=D&&Et.call(t,"__wrapped__");if(O||E){var N=O?object.value():object,R=E?t.value():t;return o||(o=new Zn),r(N,R,e,n,o)}}if(!P)return!1;return o||(o=new Zn),function(object,t,e,n,r,o){var l=1&e,c=oo(object),h=c.length,d=oo(t).length;if(h!=d&&!l)return!1;var f=h;for(;f--;){var v=c[f];if(!(l?v in t:Et.call(t,v)))return!1}var m=o.get(object),y=o.get(t);if(m&&y)return m==t&&y==object;var x=!0;o.set(object,t),o.set(t,object);var _=l;for(;++f<h;){v=c[f];var w=object[v],S=t[v];if(n)var M=l?n(S,w,v,t,object,o):n(w,S,v,object,t,o);if(!(void 0===M?w===S||r(w,S,e,n,o):M)){x=!1;break}_||(_="constructor"==v)}if(x&&!_){var T=object.constructor,A=t.constructor;T==A||!("constructor"in object)||!("constructor"in t)||"function"==typeof T&&T instanceof T&&"function"==typeof A&&A instanceof A||(x=!1)}return o.delete(object),o.delete(t),x}(object,t,e,n,r,o)}(t,e,n,r,ki,o))}function Pi(object,source,t,e){var n=t.length,r=n,o=!e;if(null==object)return!r;for(object=Tt(object);n--;){var data=t[n];if(o&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++n<r;){var l=(data=t[n])[0],c=object[l],h=data[1];if(o&&data[2]){if(void 0===c&&!(l in object))return!1}else{var d=new Zn;if(e)var f=e(c,h,l,object,source,d);if(!(void 0===f?ki(h,c,3,e,d):f))return!1}}return!0}function Oi(t){return!(!es(t)||(e=t,Rt&&Rt in e))&&(Ja(t)?Ht:vt).test(Fo(t));var e}function Ei(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Ua(t)?Hi(t[0],t[1]):Vi(t):vl(t)}function Ni(object){if(!Ao(object))return gn(object);var t=[];for(var e in Tt(object))Et.call(object,e)&&"constructor"!=e&&t.push(e);return t}function Ri(object){if(!es(object))return function(object){var t=[];if(null!=object)for(var e in Tt(object))t.push(e);return t}(object);var t=Ao(object),e=[];for(var n in object)("constructor"!=n||!t&&Et.call(object,n))&&e.push(n);return e}function zi(t,e){return t<e}function Bi(t,e){var n=-1,o=Za(t)?r(t.length):[];return hi(t,(function(t,r,l){o[++n]=e(t,r,l)})),o}function Vi(source){var t=fo(source);return 1==t.length&&t[0][2]?Co(t[0][0],t[0][1]):function(object){return object===source||Pi(object,source,t)}}function Hi(path,t){return So(path)&&Io(t)?Co(Ho(path),t):function(object){var e=Is(object,path);return void 0===e&&e===t?Cs(object,path):ki(t,e,3)}}function Fi(object,source,t,e,n){object!==source&&mi(source,(function(r,o){if(n||(n=new Zn),es(r))!function(object,source,t,e,n,r,o){var l=Po(object,t),c=Po(source,t),h=o.get(c);if(h)return void Jn(object,t,h);var d=r?r(l,c,t+"",object,source,o):void 0,f=void 0===d;if(f){var v=Ua(c),m=!v&&Xa(c),y=!v&&!m&&cs(c);d=c,v||m||y?Ua(l)?d=l:Ya(l)?d=kr(l):m?(f=!1,d=Tr(c,!0)):y?(f=!1,d=Ir(c,!0)):d=[]:os(c)||ja(c)?(d=l,ja(l)?d=ys(l):es(l)&&!Ja(l)||(d=xo(c))):f=!1}f&&(o.set(c,d),n(d,c,e,r,o),o.delete(c));Jn(object,t,d)}(object,source,o,t,Fi,e,n);else{var l=e?e(Po(object,o),r,o+"",object,source,n):void 0;void 0===l&&(l=r),Jn(object,o,l)}}),Os)}function Gi(t,e){var n=t.length;if(n)return bo(e+=e<0?n:0,n)?t[e]:void 0}function Wi(t,e,n){e=e.length?Se(e,(function(t){return Ua(t)?function(e){return wi(e,1===t.length?t[0]:t)}:t})):[rl];var r=-1;return e=Se(e,He(co())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Bi(t,(function(t,n,o){return{criteria:Se(e,(function(e){return e(t)})),index:++r,value:t}})),(function(object,t){return function(object,t,e){var n=-1,r=object.criteria,o=t.criteria,l=r.length,c=e.length;for(;++n<l;){var h=Cr(r[n],o[n]);if(h){if(n>=c)return h;var d=e[n];return h*("desc"==d?-1:1)}}return object.index-t.index}(object,t,n)}))}function ji(object,t,e){for(var n=-1,r=t.length,o={};++n<r;){var path=t[n],l=wi(object,path);e(l,path)&&Ji(o,_r(path,object),l)}return o}function Ui(t,e,n,r){var o=r?Pe:ke,l=-1,c=e.length,h=t;for(t===e&&(e=kr(e)),n&&(h=Se(t,He(n)));++l<c;)for(var d=0,f=e[l],v=n?n(f):f;(d=o(h,v,d,r))>-1;)h!==t&&oe.call(h,d,1),oe.call(t,d,1);return t}function qi(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==l){var l=o;bo(o)?oe.call(t,o,1):dr(t,o)}}return t}function Zi(t,e){return t+cn(_n()*(e-t+1))}function Yi(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=cn(e/2))&&(t+=t)}while(e);return n}function Xi(t,e){return No(Do(t,e,rl),t+"")}function $i(t){return Xn(Fs(t))}function Ki(t,e){var n=Fs(t);return Bo(n,oi(e,0,n.length))}function Ji(object,path,t,e){if(!es(object))return object;for(var n=-1,r=(path=_r(path,object)).length,o=r-1,l=object;null!=l&&++n<r;){var c=Ho(path[n]),h=t;if("__proto__"===c||"constructor"===c||"prototype"===c)return object;if(n!=o){var d=l[c];void 0===(h=e?e(d,c,l):void 0)&&(h=es(d)?d:bo(path[n+1])?[]:{})}Qn(l,c,h),l=l[c]}return object}var Qi=Cn?function(t,data){return Cn.set(t,data),t}:rl,er=Re?function(t,e){return Re(t,"toString",{configurable:!0,enumerable:!1,value:el(e),writable:!0})}:rl;function nr(t){return Bo(Fs(t))}function ir(t,e,n){var o=-1,l=t.length;e<0&&(e=-e>l?0:l+e),(n=n>l?l:n)<0&&(n+=l),l=e>n?0:n-e>>>0,e>>>=0;for(var c=r(l);++o<l;)c[o]=t[o+e];return c}function rr(t,e){var n;return hi(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function or(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var l=r+o>>>1,c=t[l];null!==c&&!us(c)&&(n?c<=e:c<e)?r=l+1:o=l}return o}return ar(t,e,rl,n)}function ar(t,e,n,r){var o=0,l=null==t?0:t.length;if(0===l)return 0;for(var c=(e=n(e))!=e,h=null===e,d=us(e),f=void 0===e;o<l;){var v=cn((o+l)/2),m=n(t[v]),y=void 0!==m,x=null===m,_=m==m,w=us(m);if(c)var S=r||_;else S=f?_&&(r||y):h?_&&y&&(r||!x):d?_&&y&&!x&&(r||!w):!x&&!w&&(r?m<=e:m<e);S?o=v+1:l=v}return mn(l,4294967294)}function sr(t,e){for(var n=-1,r=t.length,o=0,l=[];++n<r;){var c=t[n],h=e?e(c):c;if(!n||!Fa(h,d)){var d=h;l[o++]=0===c?0:c}}return l}function lr(t){return"number"==typeof t?t:us(t)?NaN:+t}function ur(t){if("string"==typeof t)return t;if(Ua(t))return Se(t,ur)+"";if(us(t))return zn?zn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function cr(t,e,n){var r=-1,o=be,l=t.length,c=!0,h=[],d=h;if(n)c=!1,o=we;else if(l>=200){var f=e?null:Kr(t);if(f)return Qe(f);c=!1,o=Ge,d=new qn}else d=e?[]:h;t:for(;++r<l;){var v=t[r],m=e?e(v):v;if(v=n||0!==v?v:0,c&&m==m){for(var y=d.length;y--;)if(d[y]===m)continue t;e&&d.push(m),h.push(v)}else o(d,m,n)||(d!==h&&d.push(m),h.push(v))}return h}function dr(object,path){return null==(object=Lo(object,path=_r(path,object)))||delete object[Ho(Jo(path))]}function fr(object,path,t,e){return Ji(object,path,t(wi(object,path)),e)}function pr(t,e,n,r){for(var o=t.length,l=r?o:-1;(r?l--:++l<o)&&e(t[l],l,t););return n?ir(t,r?0:l,r?l+1:o):ir(t,r?l+1:0,r?o:l)}function gr(t,e){var n=t;return n instanceof Gn&&(n=n.value()),Te(e,(function(t,e){return e.func.apply(e.thisArg,Me([t],e.args))}),n)}function vr(t,e,n){var o=t.length;if(o<2)return o?cr(t[0]):[];for(var l=-1,c=r(o);++l<o;)for(var h=t[l],d=-1;++d<o;)d!=l&&(c[l]=ci(c[l]||h,t[d],e,n));return cr(vi(c,1),e,n)}function mr(t,e,n){for(var r=-1,o=t.length,l=e.length,c={};++r<o;){var h=r<l?e[r]:void 0;n(c,t[r],h)}return c}function yr(t){return Ya(t)?t:[]}function xr(t){return"function"==typeof t?t:rl}function _r(t,object){return Ua(t)?t:So(t,object)?[t]:Vo(xs(t))}var wr=Xi;function Sr(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:ir(t,e,n)}var Mr=an||function(t){return ie.clearTimeout(t)};function Tr(t,e){if(e)return t.slice();var n=t.length,r=Jt?Jt(n):new t.constructor(n);return t.copy(r),r}function Ar(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function Ir(t,e){var n=e?Ar(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Cr(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,l=us(t),c=void 0!==e,h=null===e,d=e==e,f=us(e);if(!h&&!f&&!l&&t>e||l&&c&&d&&!h&&!f||r&&c&&d||!n&&d||!o)return 1;if(!r&&!l&&!f&&t<e||f&&n&&o&&!r&&!l||h&&n&&o||!c&&o||!d)return-1}return 0}function Dr(t,e,n,o){for(var l=-1,c=t.length,h=n.length,d=-1,f=e.length,v=vn(c-h,0),m=r(f+v),y=!o;++d<f;)m[d]=e[d];for(;++l<h;)(y||l<c)&&(m[n[l]]=t[l]);for(;v--;)m[d++]=t[l++];return m}function Lr(t,e,n,o){for(var l=-1,c=t.length,h=-1,d=n.length,f=-1,v=e.length,m=vn(c-d,0),y=r(m+v),x=!o;++l<m;)y[l]=t[l];for(var _=l;++f<v;)y[_+f]=e[f];for(;++h<d;)(x||l<c)&&(y[_+n[h]]=t[l++]);return y}function kr(source,t){var e=-1,n=source.length;for(t||(t=r(n));++e<n;)t[e]=source[e];return t}function Pr(source,t,object,e){var n=!object;object||(object={});for(var r=-1,o=t.length;++r<o;){var l=t[r],c=e?e(object[l],source[l],l,object,source):void 0;void 0===c&&(c=source[l]),n?ii(object,l,c):Qn(object,l,c)}return object}function Or(t,e){return function(n,r){var o=Ua(n)?ve:ei,l=e?e():{};return o(n,t,co(r,2),l)}}function Er(t){return Xi((function(object,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,l=r>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,l&&wo(e[0],e[1],l)&&(o=r<3?void 0:o,r=1),object=Tt(object);++n<r;){var source=e[n];source&&t(object,source,n,o)}return object}))}function Nr(t,e){return function(n,r){if(null==n)return n;if(!Za(n))return t(n,r);for(var o=n.length,l=e?o:-1,c=Tt(n);(e?l--:++l<o)&&!1!==r(c[l],l,c););return n}}function Rr(t){return function(object,e,n){for(var r=-1,o=Tt(object),l=n(object),c=l.length;c--;){var h=l[t?c:++r];if(!1===e(o[h],h,o))break}return object}}function zr(t){return function(e){var n=Xe(e=xs(e))?nn(e):void 0,r=n?n[0]:e.charAt(0),o=n?Sr(n,1).join(""):e.slice(1);return r[t]()+o}}function Br(t){return function(e){return Te(Js(js(e).replace(Gt,"")),t,"")}}function Vr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Vn(t.prototype),r=t.apply(n,e);return es(r)?r:n}}function Hr(t){return function(e,n,r){var o=Tt(e);if(!Za(e)){var l=co(n,3);e=Ps(e),n=function(t){return l(o[t],t,o)}}var c=t(e,n,r);return c>-1?o[l?e[c]:c]:void 0}}function Fr(t){return ro((function(e){var n=e.length,r=n,o=Fn.prototype.thru;for(t&&e.reverse();r--;){var c=e[r];if("function"!=typeof c)throw new Ct(l);if(o&&!h&&"wrapper"==lo(c))var h=new Fn([],!0)}for(r=h?r:n;++r<n;){var d=lo(c=e[r]),data="wrapper"==d?so(c):void 0;h=data&&Mo(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?h[lo(data[0])].apply(h,data[3]):1==c.length&&Mo(c)?h[d]():h.thru(c)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&Ua(r))return h.plant(r).value();for(var o=0,l=n?e[o].apply(this,t):r;++o<n;)l=e[o].call(this,l);return l}}))}function Gr(t,e,n,o,l,c,h,d,f,v){var m=128&e,y=1&e,x=2&e,_=24&e,w=512&e,S=x?void 0:Vr(t);return function M(){for(var T=arguments.length,A=r(T),I=T;I--;)A[I]=arguments[I];if(_)var C=uo(M),D=Ue(A,C);if(o&&(A=Dr(A,o,l,_)),c&&(A=Lr(A,c,h,_)),T-=D,_&&T<v){var L=Je(A,C);return Xr(t,e,Gr,M.placeholder,n,A,L,d,f,v-T)}var k=y?n:this,P=x?k[t]:t;return T=A.length,d?A=ko(A,d):w&&T>1&&A.reverse(),m&&f<T&&(A.length=f),this&&this!==ie&&this instanceof M&&(P=S||Vr(P)),P.apply(k,A)}}function Wr(t,e){return function(object,n){return function(object,t,e,n){return xi(object,(function(r,o,object){t(n,e(r),o,object)})),n}(object,t,e(n),{})}}function jr(t,e){return function(n,r){var o;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=ur(n),r=ur(r)):(n=lr(n),r=lr(r)),o=t(n,r)}return o}}function Ur(t){return ro((function(e){return e=Se(e,He(co())),Xi((function(n){var r=this;return t(e,(function(t){return ge(t,r,n)}))}))}))}function qr(t,e){var n=(e=void 0===e?" ":ur(e)).length;if(n<2)return n?Yi(e,t):e;var r=Yi(e,un(t/en(e)));return Xe(e)?Sr(nn(r),0,t).join(""):r.slice(0,t)}function Zr(t){return function(e,n,o){return o&&"number"!=typeof o&&wo(e,n,o)&&(n=o=void 0),e=ps(e),void 0===n?(n=e,e=0):n=ps(n),function(t,e,n,o){for(var l=-1,c=vn(un((e-t)/(n||1)),0),h=r(c);c--;)h[o?c:++l]=t,t+=n;return h}(e,n,o=void 0===o?e<n?1:-1:ps(o),t)}}function Yr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ms(e),n=ms(n)),t(e,n)}}function Xr(t,e,n,r,o,l,c,h,d,f){var v=8&e;e|=v?32:64,4&(e&=~(v?64:32))||(e&=-4);var m=[t,e,o,v?l:void 0,v?c:void 0,v?void 0:l,v?void 0:c,h,d,f],y=n.apply(void 0,m);return Mo(t)&&Oo(y,m),y.placeholder=r,Ro(y,t,e)}function $r(t){var e=Mt[t];return function(t,n){if(t=ms(t),(n=null==n?0:mn(gs(n),292))&&fn(t)){var r=(xs(t)+"e").split("e");return+((r=(xs(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Kr=Tn&&1/Qe(new Tn([,-0]))[1]==1/0?function(t){return new Tn(t)}:hl;function Jr(t){return function(object){var e=mo(object);return e==w?$e(object):e==A?tn(object):function(object,t){return Se(t,(function(t){return[t,object[t]]}))}(object,t(object))}}function Qr(t,e,n,o,h,d,f,v){var m=2&e;if(!m&&"function"!=typeof t)throw new Ct(l);var y=o?o.length:0;if(y||(e&=-97,o=h=void 0),f=void 0===f?f:vn(gs(f),0),v=void 0===v?v:gs(v),y-=h?h.length:0,64&e){var x=o,_=h;o=h=void 0}var data=m?void 0:so(t),w=[t,e,n,o,h,x,_,d,f,v];if(data&&function(data,source){var t=data[1],e=source[1],n=t|e,r=n<131,o=128==e&&8==t||128==e&&256==t&&data[7].length<=source[8]||384==e&&source[7].length<=source[8]&&8==t;if(!r&&!o)return data;1&e&&(data[2]=source[2],n|=1&t?0:4);var l=source[3];if(l){var h=data[3];data[3]=h?Dr(h,l,source[4]):l,data[4]=h?Je(data[3],c):source[4]}(l=source[5])&&(h=data[5],data[5]=h?Lr(h,l,source[6]):l,data[6]=h?Je(data[5],c):source[6]);(l=source[7])&&(data[7]=l);128&e&&(data[8]=null==data[8]?source[8]:mn(data[8],source[8]));null==data[9]&&(data[9]=source[9]);data[0]=source[0],data[1]=n}(w,data),t=w[0],e=w[1],n=w[2],o=w[3],h=w[4],!(v=w[9]=void 0===w[9]?m?0:t.length:vn(w[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||16==e?function(t,e,n){var o=Vr(t);return function l(){for(var c=arguments.length,h=r(c),d=c,f=uo(l);d--;)h[d]=arguments[d];var v=c<3&&h[0]!==f&&h[c-1]!==f?[]:Je(h,f);if((c-=v.length)<n)return Xr(t,e,Gr,l.placeholder,void 0,h,v,void 0,void 0,n-c);var m=this&&this!==ie&&this instanceof l?o:t;return ge(m,this,h)}}(t,e,v):32!=e&&33!=e||h.length?Gr.apply(void 0,w):function(t,e,n,o){var l=1&e,c=Vr(t);return function e(){for(var h=-1,d=arguments.length,f=-1,v=o.length,m=r(v+d),y=this&&this!==ie&&this instanceof e?c:t;++f<v;)m[f]=o[f];for(;d--;)m[f++]=arguments[++h];return ge(y,l?n:this,m)}}(t,e,n,o);else var S=function(t,e,n){var r=1&e,o=Vr(t);return function e(){var l=this&&this!==ie&&this instanceof e?o:t;return l.apply(r?n:this,arguments)}}(t,e,n);return Ro((data?Qi:Oo)(S,w),t,e)}function to(t,e,n,object){return void 0===t||Fa(t,kt[n])&&!Et.call(object,n)?e:t}function eo(t,e,n,object,source,r){return es(t)&&es(e)&&(r.set(e,t),Fi(t,e,void 0,eo,r),r.delete(e)),t}function no(t){return os(t)?void 0:t}function io(t,e,n,r,o,l){var c=1&n,h=t.length,d=e.length;if(h!=d&&!(c&&d>h))return!1;var f=l.get(t),v=l.get(e);if(f&&v)return f==e&&v==t;var m=-1,y=!0,x=2&n?new qn:void 0;for(l.set(t,e),l.set(e,t);++m<h;){var _=t[m],w=e[m];if(r)var S=c?r(w,_,m,e,t,l):r(_,w,m,t,e,l);if(void 0!==S){if(S)continue;y=!1;break}if(x){if(!Ie(e,(function(t,e){if(!Ge(x,e)&&(_===t||o(_,t,n,r,l)))return x.push(e)}))){y=!1;break}}else if(_!==w&&!o(_,w,n,r,l)){y=!1;break}}return l.delete(t),l.delete(e),y}function ro(t){return No(Do(t,void 0,Yo),t+"")}function oo(object){return Si(object,Ps,go)}function ao(object){return Si(object,Os,vo)}var so=Cn?function(t){return Cn.get(t)}:hl;function lo(t){for(var e=t.name+"",n=Dn[e],r=Et.call(Dn,e)?n.length:0;r--;){var data=n[r],o=data.func;if(null==o||o==t)return data.name}return e}function uo(t){return(Et.call(Bn,"placeholder")?Bn:t).placeholder}function co(){var t=Bn.iteratee||al;return t=t===al?Ei:t,arguments.length?t(arguments[0],arguments[1]):t}function ho(map,t){var e,n,data=map.__data__;return("string"==(n=typeof(e=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?data["string"==typeof t?"string":"hash"]:data.map}function fo(object){for(var t=Ps(object),e=t.length;e--;){var n=t[e],r=object[n];t[e]=[n,r,Io(r)]}return t}function po(object,t){var e=function(object,t){return null==object?void 0:object[t]}(object,t);return Oi(e)?e:void 0}var go=hn?function(object){return null==object?[]:(object=Tt(object),_e(hn(object),(function(symbol){return re.call(object,symbol)})))}:xl,vo=hn?function(object){for(var t=[];object;)Me(t,go(object)),object=ee(object);return t}:xl,mo=Mi;function yo(object,path,t){for(var e=-1,n=(path=_r(path,object)).length,r=!1;++e<n;){var o=Ho(path[e]);if(!(r=null!=object&&t(object,o)))break;object=object[o]}return r||++e!=n?r:!!(n=null==object?0:object.length)&&ts(n)&&bo(o,n)&&(Ua(object)||ja(object))}function xo(object){return"function"!=typeof object.constructor||Ao(object)?{}:Vn(ee(object))}function _o(t){return Ua(t)||ja(t)||!!(se&&t&&t[se])}function bo(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function wo(t,e,object){if(!es(object))return!1;var n=typeof e;return!!("number"==n?Za(object)&&bo(e,object.length):"string"==n&&e in object)&&Fa(object[e],t)}function So(t,object){if(Ua(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!us(t))||(J.test(t)||!K.test(t)||null!=object&&t in Tt(object))}function Mo(t){var e=lo(t),n=Bn[e];if("function"!=typeof n||!(e in Gn.prototype))return!1;if(t===n)return!0;var data=so(n);return!!data&&t===data[0]}(wn&&mo(new wn(new ArrayBuffer(1)))!=k||Sn&&mo(new Sn)!=w||Mn&&"[object Promise]"!=mo(Mn.resolve())||Tn&&mo(new Tn)!=A||An&&mo(new An)!=D)&&(mo=function(t){var e=Mi(t),n=e==M?t.constructor:void 0,r=n?Fo(n):"";if(r)switch(r){case Ln:return k;case kn:return w;case Pn:return"[object Promise]";case On:return A;case En:return D}return e});var To=Pt?Ja:_l;function Ao(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||kt)}function Io(t){return t==t&&!es(t)}function Co(t,e){return function(object){return null!=object&&(object[t]===e&&(void 0!==e||t in Tt(object)))}}function Do(t,e,n){return e=vn(void 0===e?t.length-1:e,0),function(){for(var o=arguments,l=-1,c=vn(o.length-e,0),h=r(c);++l<c;)h[l]=o[e+l];l=-1;for(var d=r(e+1);++l<e;)d[l]=o[l];return d[e]=n(h),ge(t,this,d)}}function Lo(object,path){return path.length<2?object:wi(object,ir(path,0,-1))}function ko(t,e){for(var n=t.length,r=mn(e.length,n),o=kr(t);r--;){var l=e[r];t[r]=bo(l,n)?o[l]:void 0}return t}function Po(object,t){if(("constructor"!==t||"function"!=typeof object[t])&&"__proto__"!=t)return object[t]}var Oo=zo(Qi),Eo=ln||function(t,e){return ie.setTimeout(t,e)},No=zo(er);function Ro(t,e,n){var source=e+"";return No(t,function(source,details){var t=details.length;if(!t)return source;var e=t-1;return details[e]=(t>1?"& ":"")+details[e],details=details.join(t>2?", ":" "),source.replace(at,"{\n/* [wrapped with "+details+"] */\n")}(source,function(details,t){return me(h,(function(e){var n="_."+e[0];t&e[1]&&!be(details,n)&&details.push(n)})),details.sort()}(function(source){var t=source.match(st);return t?t[1].split(lt):[]}(source),n)))}function zo(t){var e=0,n=0;return function(){var r=yn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Bo(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n<e;){var l=Zi(n,o),c=t[l];t[l]=t[n],t[n]=c}return t.length=e,t}var Vo=function(t){var e=Na(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Q,(function(t,n,r,o){e.push(r?o.replace(ct,"$1"):n||t)})),e}));function Ho(t){if("string"==typeof t||us(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Go(t){if(t instanceof Gn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=kr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Wo=Xi((function(t,e){return Ya(t)?ci(t,vi(e,1,Ya,!0)):[]})),jo=Xi((function(t,e){var n=Jo(e);return Ya(n)&&(n=void 0),Ya(t)?ci(t,vi(e,1,Ya,!0),co(n,2)):[]})),Uo=Xi((function(t,e){var n=Jo(e);return Ya(n)&&(n=void 0),Ya(t)?ci(t,vi(e,1,Ya,!0),void 0,n):[]}));function qo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),Le(t,co(e,3),o)}function Zo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=gs(n),o=n<0?vn(r+o,0):mn(o,r-1)),Le(t,co(e,3),o,!0)}function Yo(t){return(null==t?0:t.length)?vi(t,1):[]}function head(t){return t&&t.length?t[0]:void 0}var Xo=Xi((function(t){var e=Se(t,yr);return e.length&&e[0]===t[0]?Ci(e):[]})),$o=Xi((function(t){var e=Jo(t),n=Se(t,yr);return e===Jo(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?Ci(n,co(e,2)):[]})),Ko=Xi((function(t){var e=Jo(t),n=Se(t,yr);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?Ci(n,void 0,e):[]}));function Jo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Qo=Xi(ta);function ta(t,e){return t&&t.length&&e&&e.length?Ui(t,e):t}var ea=ro((function(t,e){var n=null==t?0:t.length,r=ri(t,e);return qi(t,Se(e,(function(t){return bo(t,n)?+t:t})).sort(Cr)),r}));function na(t){return null==t?t:bn.call(t)}var ia=Xi((function(t){return cr(vi(t,1,Ya,!0))})),ra=Xi((function(t){var e=Jo(t);return Ya(e)&&(e=void 0),cr(vi(t,1,Ya,!0),co(e,2))})),oa=Xi((function(t){var e=Jo(t);return e="function"==typeof e?e:void 0,cr(vi(t,1,Ya,!0),void 0,e)}));function aa(t){if(!t||!t.length)return[];var e=0;return t=_e(t,(function(t){if(Ya(t))return e=vn(t.length,e),!0})),Ve(e,(function(e){return Se(t,Ne(e))}))}function sa(t,e){if(!t||!t.length)return[];var n=aa(t);return null==e?n:Se(n,(function(t){return ge(e,void 0,t)}))}var la=Xi((function(t,e){return Ya(t)?ci(t,e):[]})),ua=Xi((function(t){return vr(_e(t,Ya))})),ca=Xi((function(t){var e=Jo(t);return Ya(e)&&(e=void 0),vr(_e(t,Ya),co(e,2))})),ha=Xi((function(t){var e=Jo(t);return e="function"==typeof e?e:void 0,vr(_e(t,Ya),void 0,e)})),da=Xi(aa);var fa=Xi((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,sa(t,n)}));function pa(t){var e=Bn(t);return e.__chain__=!0,e}function ga(t,e){return e(t)}var va=ro((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(object){return ri(object,t)};return!(e>1||this.__actions__.length)&&r instanceof Gn&&bo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ga,args:[o],thisArg:void 0}),new Fn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)}));var ma=Or((function(t,e,n){Et.call(t,n)?++t[n]:ii(t,n,1)}));var ya=Hr(qo),xa=Hr(Zo);function _a(t,e){return(Ua(t)?me:hi)(t,co(e,3))}function ba(t,e){return(Ua(t)?ye:di)(t,co(e,3))}var wa=Or((function(t,e,n){Et.call(t,n)?t[n].push(e):ii(t,n,[e])}));var Sa=Xi((function(t,path,e){var n=-1,o="function"==typeof path,l=Za(t)?r(t.length):[];return hi(t,(function(t){l[++n]=o?ge(path,t,e):Di(t,path,e)})),l})),Ma=Or((function(t,e,n){ii(t,n,e)}));function map(t,e){return(Ua(t)?Se:Bi)(t,co(e,3))}var Ta=Or((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Aa=Xi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&wo(t,e[0],e[1])?e=[]:n>2&&wo(e[0],e[1],e[2])&&(e=[e[0]]),Wi(t,vi(e,1),[])})),Ia=sn||function(){return ie.Date.now()};function Ca(t,e,n){return e=n?void 0:e,Qr(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function Da(t,e){var n;if("function"!=typeof e)throw new Ct(l);return t=gs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var La=Xi((function(t,e,n){var r=1;if(n.length){var o=Je(n,uo(La));r|=32}return Qr(t,r,e,n,o)})),ka=Xi((function(object,t,e){var n=3;if(e.length){var r=Je(e,uo(ka));n|=32}return Qr(t,n,object,e,r)}));function Pa(t,e,n){var r,o,c,h,d,f,v=0,m=!1,y=!1,x=!0;if("function"!=typeof t)throw new Ct(l);function _(time){var e=r,n=o;return r=o=void 0,v=time,h=t.apply(n,e)}function w(time){return v=time,d=Eo(M,e),m?_(time):h}function S(time){var t=time-f;return void 0===f||t>=e||t<0||y&&time-v>=c}function M(){var time=Ia();if(S(time))return T(time);d=Eo(M,function(time){var t=e-(time-f);return y?mn(t,c-(time-v)):t}(time))}function T(time){return d=void 0,x&&r?_(time):(r=o=void 0,h)}function A(){var time=Ia(),t=S(time);if(r=arguments,o=this,f=time,t){if(void 0===d)return w(f);if(y)return Mr(d),d=Eo(M,e),_(f)}return void 0===d&&(d=Eo(M,e)),h}return e=ms(e)||0,es(n)&&(m=!!n.leading,c=(y="maxWait"in n)?vn(ms(n.maxWait)||0,e):c,x="trailing"in n?!!n.trailing:x),A.cancel=function(){void 0!==d&&Mr(d),v=0,r=f=o=d=void 0},A.flush=function(){return void 0===d?h:T(Ia())},A}var Oa=Xi((function(t,e){return ui(t,1,e)})),Ea=Xi((function(t,e,n){return ui(t,ms(e)||0,n)}));function Na(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(l);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],l=n.cache;if(l.has(o))return l.get(o);var c=t.apply(this,r);return n.cache=l.set(o,c)||l,c};return n.cache=new(Na.Cache||Un),n}function Ra(t){if("function"!=typeof t)throw new Ct(l);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Na.Cache=Un;var za=wr((function(t,e){var n=(e=1==e.length&&Ua(e[0])?Se(e[0],He(co())):Se(vi(e,1),He(co()))).length;return Xi((function(r){for(var o=-1,l=mn(r.length,n);++o<l;)r[o]=e[o].call(this,r[o]);return ge(t,this,r)}))})),Ba=Xi((function(t,e){return Qr(t,32,void 0,e,Je(e,uo(Ba)))})),Va=Xi((function(t,e){return Qr(t,64,void 0,e,Je(e,uo(Va)))})),Ha=ro((function(t,e){return Qr(t,256,void 0,void 0,void 0,e)}));function Fa(t,e){return t===e||t!=t&&e!=e}var Ga=Yr(Ti),Wa=Yr((function(t,e){return t>=e})),ja=Li(function(){return arguments}())?Li:function(t){return ns(t)&&Et.call(t,"callee")&&!re.call(t,"callee")},Ua=r.isArray,qa=ue?He(ue):function(t){return ns(t)&&Mi(t)==L};function Za(t){return null!=t&&ts(t.length)&&!Ja(t)}function Ya(t){return ns(t)&&Za(t)}var Xa=dn||_l,$a=ce?He(ce):function(t){return ns(t)&&Mi(t)==m};function Ka(t){if(!ns(t))return!1;var e=Mi(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!os(t)}function Ja(t){if(!es(t))return!1;var e=Mi(t);return e==x||e==_||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qa(t){return"number"==typeof t&&t==gs(t)}function ts(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ns(t){return null!=t&&"object"==typeof t}var is=he?He(he):function(t){return ns(t)&&mo(t)==w};function rs(t){return"number"==typeof t||ns(t)&&Mi(t)==S}function os(t){if(!ns(t)||Mi(t)!=M)return!1;var e=ee(t);if(null===e)return!0;var n=Et.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==Bt}var as=de?He(de):function(t){return ns(t)&&Mi(t)==T};var ss=fe?He(fe):function(t){return ns(t)&&mo(t)==A};function ls(t){return"string"==typeof t||!Ua(t)&&ns(t)&&Mi(t)==I}function us(t){return"symbol"==typeof t||ns(t)&&Mi(t)==C}var cs=pe?He(pe):function(t){return ns(t)&&ts(t.length)&&!!$t[Mi(t)]};var hs=Yr(zi),ds=Yr((function(t,e){return t<=e}));function fs(t){if(!t)return[];if(Za(t))return ls(t)?nn(t):kr(t);if(le&&t[le])return function(t){for(var data,e=[];!(data=t.next()).done;)e.push(data.value);return e}(t[le]());var e=mo(t);return(e==w?$e:e==A?Qe:Fs)(t)}function ps(t){return t?(t=ms(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function gs(t){var e=ps(t),n=e%1;return e==e?n?e-n:e:0}function vs(t){return t?oi(gs(t),0,4294967295):0}function ms(t){if("number"==typeof t)return t;if(us(t))return NaN;if(es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(nt,"");var n=gt.test(t);return n||mt.test(t)?te(t.slice(2),n?2:8):pt.test(t)?NaN:+t}function ys(t){return Pr(t,Os(t))}function xs(t){return null==t?"":ur(t)}var _s=Er((function(object,source){if(Ao(source)||Za(source))Pr(source,Ps(source),object);else for(var t in source)Et.call(source,t)&&Qn(object,t,source[t])})),bs=Er((function(object,source){Pr(source,Os(source),object)})),ws=Er((function(object,source,t,e){Pr(source,Os(source),object,e)})),Ss=Er((function(object,source,t,e){Pr(source,Ps(source),object,e)})),Ms=ro(ri);var Ts=Xi((function(object,t){object=Tt(object);var e=-1,n=t.length,r=n>2?t[2]:void 0;for(r&&wo(t[0],t[1],r)&&(n=1);++e<n;)for(var source=t[e],o=Os(source),l=-1,c=o.length;++l<c;){var h=o[l],d=object[h];(void 0===d||Fa(d,kt[h])&&!Et.call(object,h))&&(object[h]=source[h])}return object})),As=Xi((function(t){return t.push(void 0,eo),ge(Ns,void 0,t)}));function Is(object,path,t){var e=null==object?void 0:wi(object,path);return void 0===e?t:e}function Cs(object,path){return null!=object&&yo(object,path,Ii)}var Ds=Wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=zt.call(e)),t[e]=n}),el(rl)),Ls=Wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=zt.call(e)),Et.call(t,e)?t[e].push(n):t[e]=[n]}),co),ks=Xi(Di);function Ps(object){return Za(object)?Yn(object):Ni(object)}function Os(object){return Za(object)?Yn(object,!0):Ri(object)}var Es=Er((function(object,source,t){Fi(object,source,t)})),Ns=Er((function(object,source,t,e){Fi(object,source,t,e)})),Rs=ro((function(object,t){var e={};if(null==object)return e;var n=!1;t=Se(t,(function(path){return path=_r(path,object),n||(n=path.length>1),path})),Pr(object,ao(object),e),n&&(e=ai(e,7,no));for(var r=t.length;r--;)dr(e,t[r]);return e}));var zs=ro((function(object,t){return null==object?{}:function(object,t){return ji(object,t,(function(t,path){return Cs(object,path)}))}(object,t)}));function Bs(object,t){if(null==object)return{};var e=Se(ao(object),(function(t){return[t]}));return t=co(t),ji(object,e,(function(e,path){return t(e,path[0])}))}var Vs=Jr(Ps),Hs=Jr(Os);function Fs(object){return null==object?[]:Fe(object,Ps(object))}var Gs=Br((function(t,e,n){return e=e.toLowerCase(),t+(n?Ws(e):e)}));function Ws(t){return Ks(xs(t).toLowerCase())}function js(t){return(t=xs(t))&&t.replace(xt,qe).replace(Wt,"")}var Us=Br((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qs=Br((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Zs=zr("toLowerCase");var Ys=Br((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Xs=Br((function(t,e,n){return t+(n?" ":"")+Ks(e)}));var $s=Br((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ks=zr("toUpperCase");function Js(t,pattern,e){return t=xs(t),void 0===(pattern=e?void 0:pattern)?function(t){return Zt.test(t)}(t)?function(t){return t.match(Ut)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(pattern)||[]}var Qs=Xi((function(t,e){try{return ge(t,void 0,e)}catch(t){return Ka(t)?t:new wt(t)}})),tl=ro((function(object,t){return me(t,(function(t){t=Ho(t),ii(object,t,La(object[t],object))})),object}));function el(t){return function(){return t}}var nl=Fr(),il=Fr(!0);function rl(t){return t}function al(t){return Ei("function"==typeof t?t:ai(t,1))}var sl=Xi((function(path,t){return function(object){return Di(object,path,t)}})),ll=Xi((function(object,t){return function(path){return Di(object,path,t)}}));function cl(object,source,t){var e=Ps(source),n=bi(source,e);null!=t||es(source)&&(n.length||!e.length)||(t=source,source=object,object=this,n=bi(source,Ps(source)));var r=!(es(t)&&"chain"in t&&!t.chain),o=Ja(object);return me(n,(function(t){var e=source[t];object[t]=e,o&&(object.prototype[t]=function(){var t=this.__chain__;if(r||t){var n=object(this.__wrapped__),o=n.__actions__=kr(this.__actions__);return o.push({func:e,args:arguments,thisArg:object}),n.__chain__=t,n}return e.apply(object,Me([this.value()],arguments))})})),object}function hl(){}var fl=Ur(Se),pl=Ur(xe),gl=Ur(Ie);function vl(path){return So(path)?Ne(Ho(path)):function(path){return function(object){return wi(object,path)}}(path)}var ml=Zr(),yl=Zr(!0);function xl(){return[]}function _l(){return!1}var bl=jr((function(t,e){return t+e}),0),wl=$r("ceil"),Sl=jr((function(t,e){return t/e}),1),Ml=$r("floor");var source,Tl=jr((function(t,e){return t*e}),1),Al=$r("round"),Il=jr((function(t,e){return t-e}),0);return Bn.after=function(t,e){if("function"!=typeof e)throw new Ct(l);return t=gs(t),function(){if(--t<1)return e.apply(this,arguments)}},Bn.ary=Ca,Bn.assign=_s,Bn.assignIn=bs,Bn.assignInWith=ws,Bn.assignWith=Ss,Bn.at=Ms,Bn.before=Da,Bn.bind=La,Bn.bindAll=tl,Bn.bindKey=ka,Bn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ua(t)?t:[t]},Bn.chain=pa,Bn.chunk=function(t,e,n){e=(n?wo(t,e,n):void 0===e)?1:vn(gs(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var l=0,c=0,h=r(un(o/e));l<o;)h[c++]=ir(t,l,l+=e);return h},Bn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var l=t[e];l&&(o[r++]=l)}return o},Bn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],o=t;o--;)e[o-1]=arguments[o];return Me(Ua(n)?kr(n):[n],vi(e,1))},Bn.cond=function(t){var e=null==t?0:t.length,n=co();return t=e?Se(t,(function(t){if("function"!=typeof t[1])throw new Ct(l);return[n(t[0]),t[1]]})):[],Xi((function(n){for(var r=-1;++r<e;){var o=t[r];if(ge(o[0],this,n))return ge(o[1],this,n)}}))},Bn.conforms=function(source){return function(source){var t=Ps(source);return function(object){return si(object,source,t)}}(ai(source,1))},Bn.constant=el,Bn.countBy=ma,Bn.create=function(t,e){var n=Vn(t);return null==e?n:ni(n,e)},Bn.curry=function t(e,n,r){var o=Qr(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=t.placeholder,o},Bn.curryRight=function t(e,n,r){var o=Qr(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=t.placeholder,o},Bn.debounce=Pa,Bn.defaults=Ts,Bn.defaultsDeep=As,Bn.defer=Oa,Bn.delay=Ea,Bn.difference=Wo,Bn.differenceBy=jo,Bn.differenceWith=Uo,Bn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ir(t,(e=n||void 0===e?1:gs(e))<0?0:e,r):[]},Bn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ir(t,0,(e=r-(e=n||void 0===e?1:gs(e)))<0?0:e):[]},Bn.dropRightWhile=function(t,e){return t&&t.length?pr(t,co(e,3),!0,!0):[]},Bn.dropWhile=function(t,e){return t&&t.length?pr(t,co(e,3),!0):[]},Bn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&wo(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=gs(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:gs(r))<0&&(r+=o),r=n>r?0:vs(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Bn.filter=function(t,e){return(Ua(t)?_e:gi)(t,co(e,3))},Bn.flatMap=function(t,e){return vi(map(t,e),1)},Bn.flatMapDeep=function(t,e){return vi(map(t,e),1/0)},Bn.flatMapDepth=function(t,e,n){return n=void 0===n?1:gs(n),vi(map(t,e),n)},Bn.flatten=Yo,Bn.flattenDeep=function(t){return(null==t?0:t.length)?vi(t,1/0):[]},Bn.flattenDepth=function(t,e){return(null==t?0:t.length)?vi(t,e=void 0===e?1:gs(e)):[]},Bn.flip=function(t){return Qr(t,512)},Bn.flow=nl,Bn.flowRight=il,Bn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},Bn.functions=function(object){return null==object?[]:bi(object,Ps(object))},Bn.functionsIn=function(object){return null==object?[]:bi(object,Os(object))},Bn.groupBy=wa,Bn.initial=function(t){return(null==t?0:t.length)?ir(t,0,-1):[]},Bn.intersection=Xo,Bn.intersectionBy=$o,Bn.intersectionWith=Ko,Bn.invert=Ds,Bn.invertBy=Ls,Bn.invokeMap=Sa,Bn.iteratee=al,Bn.keyBy=Ma,Bn.keys=Ps,Bn.keysIn=Os,Bn.map=map,Bn.mapKeys=function(object,t){var e={};return t=co(t,3),xi(object,(function(n,r,object){ii(e,t(n,r,object),n)})),e},Bn.mapValues=function(object,t){var e={};return t=co(t,3),xi(object,(function(n,r,object){ii(e,r,t(n,r,object))})),e},Bn.matches=function(source){return Vi(ai(source,1))},Bn.matchesProperty=function(path,t){return Hi(path,ai(t,1))},Bn.memoize=Na,Bn.merge=Es,Bn.mergeWith=Ns,Bn.method=sl,Bn.methodOf=ll,Bn.mixin=cl,Bn.negate=Ra,Bn.nthArg=function(t){return t=gs(t),Xi((function(e){return Gi(e,t)}))},Bn.omit=Rs,Bn.omitBy=function(object,t){return Bs(object,Ra(co(t)))},Bn.once=function(t){return Da(2,t)},Bn.orderBy=function(t,e,n,r){return null==t?[]:(Ua(e)||(e=null==e?[]:[e]),Ua(n=r?void 0:n)||(n=null==n?[]:[n]),Wi(t,e,n))},Bn.over=fl,Bn.overArgs=za,Bn.overEvery=pl,Bn.overSome=gl,Bn.partial=Ba,Bn.partialRight=Va,Bn.partition=Ta,Bn.pick=zs,Bn.pickBy=Bs,Bn.property=vl,Bn.propertyOf=function(object){return function(path){return null==object?void 0:wi(object,path)}},Bn.pull=Qo,Bn.pullAll=ta,Bn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ui(t,e,co(n,2)):t},Bn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ui(t,e,void 0,n):t},Bn.pullAt=ea,Bn.range=ml,Bn.rangeRight=yl,Bn.rearg=Ha,Bn.reject=function(t,e){return(Ua(t)?_e:gi)(t,Ra(co(e,3)))},Bn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],l=t.length;for(e=co(e,3);++r<l;){var c=t[r];e(c,r,t)&&(n.push(c),o.push(r))}return qi(t,o),n},Bn.rest=function(t,e){if("function"!=typeof t)throw new Ct(l);return Xi(t,e=void 0===e?e:gs(e))},Bn.reverse=na,Bn.sampleSize=function(t,e,n){return e=(n?wo(t,e,n):void 0===e)?1:gs(e),(Ua(t)?$n:Ki)(t,e)},Bn.set=function(object,path,t){return null==object?object:Ji(object,path,t)},Bn.setWith=function(object,path,t,e){return e="function"==typeof e?e:void 0,null==object?object:Ji(object,path,t,e)},Bn.shuffle=function(t){return(Ua(t)?Kn:nr)(t)},Bn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&wo(t,e,n)?(e=0,n=r):(e=null==e?0:gs(e),n=void 0===n?r:gs(n)),ir(t,e,n)):[]},Bn.sortBy=Aa,Bn.sortedUniq=function(t){return t&&t.length?sr(t):[]},Bn.sortedUniqBy=function(t,e){return t&&t.length?sr(t,co(e,2)):[]},Bn.split=function(t,e,n){return n&&"number"!=typeof n&&wo(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=xs(t))&&("string"==typeof e||null!=e&&!as(e))&&!(e=ur(e))&&Xe(t)?Sr(nn(t),0,n):t.split(e,n):[]},Bn.spread=function(t,e){if("function"!=typeof t)throw new Ct(l);return e=null==e?0:vn(gs(e),0),Xi((function(n){var r=n[e],o=Sr(n,0,e);return r&&Me(o,r),ge(t,this,o)}))},Bn.tail=function(t){var e=null==t?0:t.length;return e?ir(t,1,e):[]},Bn.take=function(t,e,n){return t&&t.length?ir(t,0,(e=n||void 0===e?1:gs(e))<0?0:e):[]},Bn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ir(t,(e=r-(e=n||void 0===e?1:gs(e)))<0?0:e,r):[]},Bn.takeRightWhile=function(t,e){return t&&t.length?pr(t,co(e,3),!1,!0):[]},Bn.takeWhile=function(t,e){return t&&t.length?pr(t,co(e,3)):[]},Bn.tap=function(t,e){return e(t),t},Bn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Ct(l);return es(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pa(t,e,{leading:r,maxWait:e,trailing:o})},Bn.thru=ga,Bn.toArray=fs,Bn.toPairs=Vs,Bn.toPairsIn=Hs,Bn.toPath=function(t){return Ua(t)?Se(t,Ho):us(t)?[t]:kr(Vo(xs(t)))},Bn.toPlainObject=ys,Bn.transform=function(object,t,e){var n=Ua(object),r=n||Xa(object)||cs(object);if(t=co(t,4),null==e){var o=object&&object.constructor;e=r?n?new o:[]:es(object)&&Ja(o)?Vn(ee(object)):{}}return(r?me:xi)(object,(function(n,r,object){return t(e,n,r,object)})),e},Bn.unary=function(t){return Ca(t,1)},Bn.union=ia,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(t){return t&&t.length?cr(t):[]},Bn.uniqBy=function(t,e){return t&&t.length?cr(t,co(e,2)):[]},Bn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?cr(t,void 0,e):[]},Bn.unset=function(object,path){return null==object||dr(object,path)},Bn.unzip=aa,Bn.unzipWith=sa,Bn.update=function(object,path,t){return null==object?object:fr(object,path,xr(t))},Bn.updateWith=function(object,path,t,e){return e="function"==typeof e?e:void 0,null==object?object:fr(object,path,xr(t),e)},Bn.values=Fs,Bn.valuesIn=function(object){return null==object?[]:Fe(object,Os(object))},Bn.without=la,Bn.words=Js,Bn.wrap=function(t,e){return Ba(xr(e),t)},Bn.xor=ua,Bn.xorBy=ca,Bn.xorWith=ha,Bn.zip=da,Bn.zipObject=function(t,e){return mr(t||[],e||[],Qn)},Bn.zipObjectDeep=function(t,e){return mr(t||[],e||[],Ji)},Bn.zipWith=fa,Bn.entries=Vs,Bn.entriesIn=Hs,Bn.extend=bs,Bn.extendWith=ws,cl(Bn,Bn),Bn.add=bl,Bn.attempt=Qs,Bn.camelCase=Gs,Bn.capitalize=Ws,Bn.ceil=wl,Bn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=ms(n))==n?n:0),void 0!==e&&(e=(e=ms(e))==e?e:0),oi(ms(t),e,n)},Bn.clone=function(t){return ai(t,4)},Bn.cloneDeep=function(t){return ai(t,5)},Bn.cloneDeepWith=function(t,e){return ai(t,5,e="function"==typeof e?e:void 0)},Bn.cloneWith=function(t,e){return ai(t,4,e="function"==typeof e?e:void 0)},Bn.conformsTo=function(object,source){return null==source||si(object,source,Ps(source))},Bn.deburr=js,Bn.defaultTo=function(t,e){return null==t||t!=t?e:t},Bn.divide=Sl,Bn.endsWith=function(t,e,n){t=xs(t),e=ur(e);var r=t.length,o=n=void 0===n?r:oi(gs(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Bn.eq=Fa,Bn.escape=function(t){return(t=xs(t))&&Z.test(t)?t.replace(j,Ze):t},Bn.escapeRegExp=function(t){return(t=xs(t))&&et.test(t)?t.replace(tt,"\\$&"):t},Bn.every=function(t,e,n){var r=Ua(t)?xe:fi;return n&&wo(t,e,n)&&(e=void 0),r(t,co(e,3))},Bn.find=ya,Bn.findIndex=qo,Bn.findKey=function(object,t){return De(object,co(t,3),xi)},Bn.findLast=xa,Bn.findLastIndex=Zo,Bn.findLastKey=function(object,t){return De(object,co(t,3),_i)},Bn.floor=Ml,Bn.forEach=_a,Bn.forEachRight=ba,Bn.forIn=function(object,t){return null==object?object:mi(object,co(t,3),Os)},Bn.forInRight=function(object,t){return null==object?object:yi(object,co(t,3),Os)},Bn.forOwn=function(object,t){return object&&xi(object,co(t,3))},Bn.forOwnRight=function(object,t){return object&&_i(object,co(t,3))},Bn.get=Is,Bn.gt=Ga,Bn.gte=Wa,Bn.has=function(object,path){return null!=object&&yo(object,path,Ai)},Bn.hasIn=Cs,Bn.head=head,Bn.identity=rl,Bn.includes=function(t,e,n,r){t=Za(t)?t:Fs(t),n=n&&!r?gs(n):0;var o=t.length;return n<0&&(n=vn(o+n,0)),ls(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&ke(t,e,n)>-1},Bn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=vn(r+o,0)),ke(t,e,o)},Bn.inRange=function(t,e,n){return e=ps(e),void 0===n?(n=e,e=0):n=ps(n),function(t,e,n){return t>=mn(e,n)&&t<vn(e,n)}(t=ms(t),e,n)},Bn.invoke=ks,Bn.isArguments=ja,Bn.isArray=Ua,Bn.isArrayBuffer=qa,Bn.isArrayLike=Za,Bn.isArrayLikeObject=Ya,Bn.isBoolean=function(t){return!0===t||!1===t||ns(t)&&Mi(t)==v},Bn.isBuffer=Xa,Bn.isDate=$a,Bn.isElement=function(t){return ns(t)&&1===t.nodeType&&!os(t)},Bn.isEmpty=function(t){if(null==t)return!0;if(Za(t)&&(Ua(t)||"string"==typeof t||"function"==typeof t.splice||Xa(t)||cs(t)||ja(t)))return!t.length;var e=mo(t);if(e==w||e==A)return!t.size;if(Ao(t))return!Ni(t).length;for(var n in t)if(Et.call(t,n))return!1;return!0},Bn.isEqual=function(t,e){return ki(t,e)},Bn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?ki(t,e,void 0,n):!!r},Bn.isError=Ka,Bn.isFinite=function(t){return"number"==typeof t&&fn(t)},Bn.isFunction=Ja,Bn.isInteger=Qa,Bn.isLength=ts,Bn.isMap=is,Bn.isMatch=function(object,source){return object===source||Pi(object,source,fo(source))},Bn.isMatchWith=function(object,source,t){return t="function"==typeof t?t:void 0,Pi(object,source,fo(source),t)},Bn.isNaN=function(t){return rs(t)&&t!=+t},Bn.isNative=function(t){if(To(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Oi(t)},Bn.isNil=function(t){return null==t},Bn.isNull=function(t){return null===t},Bn.isNumber=rs,Bn.isObject=es,Bn.isObjectLike=ns,Bn.isPlainObject=os,Bn.isRegExp=as,Bn.isSafeInteger=function(t){return Qa(t)&&t>=-9007199254740991&&t<=9007199254740991},Bn.isSet=ss,Bn.isString=ls,Bn.isSymbol=us,Bn.isTypedArray=cs,Bn.isUndefined=function(t){return void 0===t},Bn.isWeakMap=function(t){return ns(t)&&mo(t)==D},Bn.isWeakSet=function(t){return ns(t)&&"[object WeakSet]"==Mi(t)},Bn.join=function(t,e){return null==t?"":pn.call(t,e)},Bn.kebabCase=Us,Bn.last=Jo,Bn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=gs(n))<0?vn(r+o,0):mn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Le(t,Oe,o,!0)},Bn.lowerCase=qs,Bn.lowerFirst=Zs,Bn.lt=hs,Bn.lte=ds,Bn.max=function(t){return t&&t.length?pi(t,rl,Ti):void 0},Bn.maxBy=function(t,e){return t&&t.length?pi(t,co(e,2),Ti):void 0},Bn.mean=function(t){return Ee(t,rl)},Bn.meanBy=function(t,e){return Ee(t,co(e,2))},Bn.min=function(t){return t&&t.length?pi(t,rl,zi):void 0},Bn.minBy=function(t,e){return t&&t.length?pi(t,co(e,2),zi):void 0},Bn.stubArray=xl,Bn.stubFalse=_l,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Tl,Bn.nth=function(t,e){return t&&t.length?Gi(t,gs(e)):void 0},Bn.noConflict=function(){return ie._===this&&(ie._=Vt),this},Bn.noop=hl,Bn.now=Ia,Bn.pad=function(t,e,n){t=xs(t);var r=(e=gs(e))?en(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return qr(cn(o),n)+t+qr(un(o),n)},Bn.padEnd=function(t,e,n){t=xs(t);var r=(e=gs(e))?en(t):0;return e&&r<e?t+qr(e-r,n):t},Bn.padStart=function(t,e,n){t=xs(t);var r=(e=gs(e))?en(t):0;return e&&r<e?qr(e-r,n)+t:t},Bn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),xn(xs(t).replace(it,""),e||0)},Bn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&wo(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=ps(t),void 0===e?(e=t,t=0):e=ps(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=_n();return mn(t+o*(e-t+Qt("1e-"+((o+"").length-1))),e)}return Zi(t,e)},Bn.reduce=function(t,e,n){var r=Ua(t)?Te:ze,o=arguments.length<3;return r(t,co(e,4),n,o,hi)},Bn.reduceRight=function(t,e,n){var r=Ua(t)?Ae:ze,o=arguments.length<3;return r(t,co(e,4),n,o,di)},Bn.repeat=function(t,e,n){return e=(n?wo(t,e,n):void 0===e)?1:gs(e),Yi(xs(t),e)},Bn.replace=function(){var t=arguments,e=xs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Bn.result=function(object,path,t){var e=-1,n=(path=_r(path,object)).length;for(n||(n=1,object=void 0);++e<n;){var r=null==object?void 0:object[Ho(path[e])];void 0===r&&(e=n,r=t),object=Ja(r)?r.call(object):r}return object},Bn.round=Al,Bn.runInContext=t,Bn.sample=function(t){return(Ua(t)?Xn:$i)(t)},Bn.size=function(t){if(null==t)return 0;if(Za(t))return ls(t)?en(t):t.length;var e=mo(t);return e==w||e==A?t.size:Ni(t).length},Bn.snakeCase=Ys,Bn.some=function(t,e,n){var r=Ua(t)?Ie:rr;return n&&wo(t,e,n)&&(e=void 0),r(t,co(e,3))},Bn.sortedIndex=function(t,e){return or(t,e)},Bn.sortedIndexBy=function(t,e,n){return ar(t,e,co(n,2))},Bn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=or(t,e);if(r<n&&Fa(t[r],e))return r}return-1},Bn.sortedLastIndex=function(t,e){return or(t,e,!0)},Bn.sortedLastIndexBy=function(t,e,n){return ar(t,e,co(n,2),!0)},Bn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=or(t,e,!0)-1;if(Fa(t[n],e))return n}return-1},Bn.startCase=Xs,Bn.startsWith=function(t,e,n){return t=xs(t),n=null==n?0:oi(gs(n),0,t.length),e=ur(e),t.slice(n,n+e.length)==e},Bn.subtract=Il,Bn.sum=function(t){return t&&t.length?Be(t,rl):0},Bn.sumBy=function(t,e){return t&&t.length?Be(t,co(e,2)):0},Bn.template=function(t,e,n){var r=Bn.templateSettings;n&&wo(t,e,n)&&(e=void 0),t=xs(t),e=ws({},e,r,to);var o,l,c=ws({},e.imports,r.imports,to),h=Ps(c),d=Fe(c,h),f=0,v=e.interpolate||_t,source="__p += '",m=At((e.escape||_t).source+"|"+v.source+"|"+(v===$?ht:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),y="//# sourceURL="+(Et.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";t.replace(m,(function(e,n,r,c,h,d){return r||(r=c),source+=t.slice(f,d).replace(bt,Ye),n&&(o=!0,source+="' +\n__e("+n+") +\n'"),h&&(l=!0,source+="';\n"+h+";\n__p += '"),r&&(source+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=d+e.length,e})),source+="';\n";var x=Et.call(e,"variable")&&e.variable;x||(source="with (obj) {\n"+source+"\n}\n"),source=(l?source.replace(H,""):source).replace(F,"$1").replace(G,"$1;"),source="function("+(x||"obj")+") {\n"+(x?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var _=Qs((function(){return St(h,y+"return "+source).apply(void 0,d)}));if(_.source=source,Ka(_))throw _;return _},Bn.times=function(t,e){if((t=gs(t))<1||t>9007199254740991)return[];var n=4294967295,r=mn(t,4294967295);t-=4294967295;for(var o=Ve(r,e=co(e));++n<t;)e(n);return o},Bn.toFinite=ps,Bn.toInteger=gs,Bn.toLength=vs,Bn.toLower=function(t){return xs(t).toLowerCase()},Bn.toNumber=ms,Bn.toSafeInteger=function(t){return t?oi(gs(t),-9007199254740991,9007199254740991):0===t?t:0},Bn.toString=xs,Bn.toUpper=function(t){return xs(t).toUpperCase()},Bn.trim=function(t,e,n){if((t=xs(t))&&(n||void 0===e))return t.replace(nt,"");if(!t||!(e=ur(e)))return t;var r=nn(t),o=nn(e);return Sr(r,We(r,o),je(r,o)+1).join("")},Bn.trimEnd=function(t,e,n){if((t=xs(t))&&(n||void 0===e))return t.replace(ot,"");if(!t||!(e=ur(e)))return t;var r=nn(t);return Sr(r,0,je(r,nn(e))+1).join("")},Bn.trimStart=function(t,e,n){if((t=xs(t))&&(n||void 0===e))return t.replace(it,"");if(!t||!(e=ur(e)))return t;var r=nn(t);return Sr(r,We(r,nn(e))).join("")},Bn.truncate=function(t,e){var n=30,r="...";if(es(e)){var o="separator"in e?e.separator:o;n="length"in e?gs(e.length):n,r="omission"in e?ur(e.omission):r}var l=(t=xs(t)).length;if(Xe(t)){var c=nn(t);l=c.length}if(n>=l)return t;var h=n-en(r);if(h<1)return r;var d=c?Sr(c,0,h).join(""):t.slice(0,h);if(void 0===o)return d+r;if(c&&(h+=d.length-h),as(o)){if(t.slice(h).search(o)){var f,v=d;for(o.global||(o=At(o.source,xs(ft.exec(o))+"g")),o.lastIndex=0;f=o.exec(v);)var m=f.index;d=d.slice(0,void 0===m?h:m)}}else if(t.indexOf(ur(o),h)!=h){var y=d.lastIndexOf(o);y>-1&&(d=d.slice(0,y))}return d+r},Bn.unescape=function(t){return(t=xs(t))&&U.test(t)?t.replace(W,rn):t},Bn.uniqueId=function(t){var e=++Nt;return xs(t)+e},Bn.upperCase=$s,Bn.upperFirst=Ks,Bn.each=_a,Bn.eachRight=ba,Bn.first=head,cl(Bn,(source={},xi(Bn,(function(t,e){Et.call(Bn.prototype,e)||(source[e]=t)})),source),{chain:!1}),Bn.VERSION="4.17.20",me(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Bn[t].placeholder=Bn})),me(["drop","take"],(function(t,e){Gn.prototype[t]=function(n){n=void 0===n?1:vn(gs(n),0);var r=this.__filtered__&&!e?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Gn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),me(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Gn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),me(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Gn.prototype[t]=function(){return this[n](1).value()[0]}})),me(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Gn.prototype[t]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(rl)},Gn.prototype.find=function(t){return this.filter(t).head()},Gn.prototype.findLast=function(t){return this.reverse().find(t)},Gn.prototype.invokeMap=Xi((function(path,t){return"function"==typeof path?new Gn(this):this.map((function(e){return Di(e,path,t)}))})),Gn.prototype.reject=function(t){return this.filter(Ra(co(t)))},Gn.prototype.slice=function(t,e){t=gs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Gn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=gs(e))<0?n.dropRight(-e):n.take(e-t)),n)},Gn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Gn.prototype.toArray=function(){return this.take(4294967295)},xi(Gn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Bn[r?"take"+("last"==e?"Right":""):e],l=r||/^find/.test(e);o&&(Bn.prototype[e]=function(){var e=this.__wrapped__,c=r?[1]:arguments,h=e instanceof Gn,d=c[0],f=h||Ua(e),v=function(t){var e=o.apply(Bn,Me([t],c));return r&&m?e[0]:e};f&&n&&"function"==typeof d&&1!=d.length&&(h=f=!1);var m=this.__chain__,y=!!this.__actions__.length,x=l&&!m,_=h&&!y;if(!l&&f){e=_?e:new Gn(this);var w=t.apply(e,c);return w.__actions__.push({func:ga,args:[v],thisArg:void 0}),new Fn(w,m)}return x&&_?t.apply(this,c):(w=this.thru(v),x?r?w.value()[0]:w.value():w)})})),me(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Dt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Bn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Ua(o)?o:[],t)}return this[n]((function(n){return e.apply(Ua(n)?n:[],t)}))}})),xi(Gn.prototype,(function(t,e){var n=Bn[e];if(n){var r=n.name+"";Et.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:e,func:n})}})),Dn[Gr(void 0,2).name]=[{name:"wrapper",func:void 0}],Gn.prototype.clone=function(){var t=new Gn(this.__wrapped__);return t.__actions__=kr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=kr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=kr(this.__views__),t},Gn.prototype.reverse=function(){if(this.__filtered__){var t=new Gn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Gn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ua(t),r=e<0,o=n?t.length:0,view=function(t,e,n){var r=-1,o=n.length;for(;++r<o;){var data=n[r],l=data.size;switch(data.type){case"drop":t+=l;break;case"dropRight":e-=l;break;case"take":e=mn(e,t+l);break;case"takeRight":t=vn(t,e-l)}}return{start:t,end:e}}(0,o,this.__views__),l=view.start,c=view.end,h=c-l,d=r?c:l-1,f=this.__iteratees__,v=f.length,m=0,y=mn(h,this.__takeCount__);if(!n||!r&&o==h&&y==h)return gr(t,this.__actions__);var x=[];t:for(;h--&&m<y;){for(var _=-1,w=t[d+=e];++_<v;){var data=f[_],S=data.iteratee,M=data.type,T=S(w);if(2==M)w=T;else if(!T){if(1==M)continue t;break t}}x[m++]=w}return x},Bn.prototype.at=va,Bn.prototype.chain=function(){return pa(this)},Bn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Bn.prototype.next=function(){void 0===this.__values__&&(this.__values__=fs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Bn.prototype.plant=function(t){for(var e,n=this;n instanceof Hn;){var r=Go(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Bn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Gn){var e=t;return this.__actions__.length&&(e=new Gn(this)),(e=e.reverse()).__actions__.push({func:ga,args:[na],thisArg:void 0}),new Fn(e,this.__chain__)}return this.thru(na)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return gr(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,le&&(Bn.prototype[le]=function(){return this}),Bn}();ie._=on,void 0===(o=function(){return on}.call(e,n,e,r))||(r.exports=o)}).call(this)}).call(this,n(51),n(481)(t))},,,,,function(t,e,n){var r=n(11),o=r.create,l=r.distSquare,c=Math.pow,h=Math.sqrt,d=h(3),f=o(),v=o(),m=o();function y(t){return t>-1e-8&&t<1e-8}function x(t){return t>1e-8||t<-1e-8}function _(t,e,n,r,o){var l=1-o;return l*l*(l*t+3*o*e)+o*o*(o*r+3*l*n)}function w(t,e,n,r){var o=1-r;return o*(o*t+2*r*e)+r*r*n}e.cubicAt=_,e.cubicDerivativeAt=function(t,e,n,r,o){var l=1-o;return 3*(((e-t)*l+2*(n-e)*o)*l+(r-n)*o*o)},e.cubicRootAt=function(t,e,n,r,o,l){var a=r+3*(e-n)-t,b=3*(n-2*e+t),f=3*(e-t),v=t-o,m=b*b-3*a*f,x=b*f-9*a*v,_=f*f-3*b*v,w=0;if(y(m)&&y(x)){if(y(b))l[0]=0;else(O=-f/b)>=0&&O<=1&&(l[w++]=O)}else{var S=x*x-4*m*_;if(y(S)){var M=x/m,T=-M/2;(O=-b/a+M)>=0&&O<=1&&(l[w++]=O),T>=0&&T<=1&&(l[w++]=T)}else if(S>0){var A=h(S),I=m*b+1.5*a*(-x+A),C=m*b+1.5*a*(-x-A);(O=(-b-((I=I<0?-c(-I,1/3):c(I,1/3))+(C=C<0?-c(-C,1/3):c(C,1/3))))/(3*a))>=0&&O<=1&&(l[w++]=O)}else{var D=(2*m*b-3*a*x)/(2*h(m*m*m)),L=Math.acos(D)/3,k=h(m),P=Math.cos(L),O=(-b-2*k*P)/(3*a),E=(T=(-b+k*(P+d*Math.sin(L)))/(3*a),(-b+k*(P-d*Math.sin(L)))/(3*a));O>=0&&O<=1&&(l[w++]=O),T>=0&&T<=1&&(l[w++]=T),E>=0&&E<=1&&(l[w++]=E)}}return w},e.cubicExtrema=function(t,e,n,r,o){var b=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,l=3*e-3*t,c=0;if(y(a)){if(x(b))(f=-l/b)>=0&&f<=1&&(o[c++]=f)}else{var d=b*b-4*a*l;if(y(d))o[0]=-b/(2*a);else if(d>0){var f,v=h(d),m=(-b-v)/(2*a);(f=(-b+v)/(2*a))>=0&&f<=1&&(o[c++]=f),m>=0&&m<=1&&(o[c++]=m)}}return c},e.cubicSubdivide=function(t,e,n,r,o,l){var c=(e-t)*o+t,h=(n-e)*o+e,d=(r-n)*o+n,f=(h-c)*o+c,v=(d-h)*o+h,m=(v-f)*o+f;l[0]=t,l[1]=c,l[2]=f,l[3]=m,l[4]=m,l[5]=v,l[6]=d,l[7]=r},e.cubicProjectPoint=function(t,e,n,r,o,c,d,y,x,w,S){var M,T,A,I,C,D=.005,L=1/0;f[0]=x,f[1]=w;for(var k=0;k<1;k+=.05)v[0]=_(t,n,o,d,k),v[1]=_(e,r,c,y,k),(I=l(f,v))<L&&(M=k,L=I);L=1/0;for(var i=0;i<32&&!(D<1e-4);i++)T=M-D,A=M+D,v[0]=_(t,n,o,d,T),v[1]=_(e,r,c,y,T),I=l(v,f),T>=0&&I<L?(M=T,L=I):(m[0]=_(t,n,o,d,A),m[1]=_(e,r,c,y,A),C=l(m,f),A<=1&&C<L?(M=A,L=C):D*=.5);return S&&(S[0]=_(t,n,o,d,M),S[1]=_(e,r,c,y,M)),h(L)},e.quadraticAt=w,e.quadraticDerivativeAt=function(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))},e.quadraticRootAt=function(t,e,n,r,o){var a=t-2*e+n,b=2*(e-t),l=t-r,c=0;if(y(a)){if(x(b))(f=-l/b)>=0&&f<=1&&(o[c++]=f)}else{var d=b*b-4*a*l;if(y(d))(f=-b/(2*a))>=0&&f<=1&&(o[c++]=f);else if(d>0){var f,v=h(d),m=(-b-v)/(2*a);(f=(-b+v)/(2*a))>=0&&f<=1&&(o[c++]=f),m>=0&&m<=1&&(o[c++]=m)}}return c},e.quadraticExtremum=function(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r},e.quadraticSubdivide=function(t,e,n,r,o){var l=(e-t)*r+t,c=(n-e)*r+e,h=(c-l)*r+l;o[0]=t,o[1]=l,o[2]=h,o[3]=h,o[4]=c,o[5]=n},e.quadraticProjectPoint=function(t,e,n,r,o,c,d,y,x){var _,S=.005,M=1/0;f[0]=d,f[1]=y;for(var T=0;T<1;T+=.05){v[0]=w(t,n,o,T),v[1]=w(e,r,c,T),(C=l(f,v))<M&&(_=T,M=C)}M=1/0;for(var i=0;i<32&&!(S<1e-4);i++){var A=_-S,I=_+S;v[0]=w(t,n,o,A),v[1]=w(e,r,c,A);var C=l(v,f);if(A>=0&&C<M)_=A,M=C;else{m[0]=w(t,n,o,I),m[1]=w(e,r,c,I);var D=l(m,f);I<=1&&D<M?(_=I,M=D):S*=.5}}return x&&(x[0]=w(t,n,o,_),x[1]=w(e,r,c,_)),h(M)}},function(t,e){var n="\0__throttleOriginMethod",r="\0__throttleRate";function o(t,e,n){var r,o,l,c,h,d=0,f=0,v=null;function m(){f=(new Date).getTime(),v=null,t.apply(l,c||[])}e=e||0;var y=function(){r=(new Date).getTime(),l=this,c=arguments;var t=h||e,y=h||n;h=null,o=r-(y?d:f)-t,clearTimeout(v),y?v=setTimeout(m,t):o>=0?m():v=setTimeout(m,-o),d=r};return y.clear=function(){v&&(clearTimeout(v),v=null)},y.debounceNextCall=function(t){h=t},y}e.throttle=o,e.createOrUpdate=function(t,e,l,c){var h=t[e];if(h){var d=h[n]||h,f=h["\0__throttleType"];if(h[r]!==l||f!==c){if(null==l||!c)return t[e]=d;(h=t[e]=o(d,l,"debounce"===c))[n]=d,h["\0__throttleType"]=c,h[r]=l}return h}},e.clear=function(t,e){var r=t[e];r&&r[n]&&(t[e]=r[n])}},function(t,e){t.exports={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}}},function(t,e,n){var r=n(0),o=r.each,map=r.map,l=n(5),c=l.linearMap,h=l.getPixelPrecision,d=l.round,f=n(737),v=f.createAxisTicks,m=f.createAxisLabels,y=f.calculateCategoryInterval,x=[0,1],_=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function w(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}_.prototype={constructor:_,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},containData:function(data){return this.scale.contain(data)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return h(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(data,t){var e=this._extent,n=this.scale;return data=n.normalize(data),this.onBand&&"ordinal"===n.type&&w(e=e.slice(),n.count()),c(data,x,e,t)},coordToData:function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&w(n=n.slice(),r.count());var o=c(t,n,x,e);return this.scale.scale(o)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=v(this,e).ticks,r=map(n,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,e,n,r){var l=e.length;if(!t.onBand||n||!l)return;var c,h,f=t.getExtent();if(1===l)e[0].coord=f[0],c=e[1]={coord:f[0]};else{var v=e[l-1].tickValue-e[0].tickValue,m=(e[l-1].coord-e[0].coord)/v;o(e,(function(t){t.coord-=m/2}));var y=t.scale.getExtent();h=1+y[1]-e[l-1].tickValue,c={coord:e[l-1].coord+m*h},e.push(c)}var x=f[0]>f[1];_(e[0].coord,f[0])&&(r?e[0].coord=f[0]:e.shift());r&&_(f[0],e[0].coord)&&e.unshift({coord:f[0]});_(f[1],c.coord)&&(r?c.coord=f[1]:e.pop());r&&_(c.coord,f[1])&&e.push({coord:f[1]});function _(a,b){return a=d(a),b=d(b),x?a>b:a<b}}(this,r,e.get("alignWithLabel"),t.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return map(e,(function(t){return map(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return m(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return y(this)}};var S=_;t.exports=S},function(t,e,n){var r=n(0),o=r.retrieve,l=r.defaults,c=r.extend,h=r.each,d=n(10),f=n(2),v=n(19),m=n(5),y=m.isRadianAroundZero,x=m.remRadian,_=n(38).createSymbol,w=n(27),S=n(11).applyTransform,M=n(43).shouldShowAllLabels,T=Math.PI,A=function(t,e){this.opt=e,this.axisModel=t,l(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var n=new f.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};A.prototype={constructor:A,hasBuilder:function(t){return!!I[t]},add:function(t){I[t].call(this)},getGroup:function(){return this.group}};var I={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),r=this._transform,o=[n[0],0],l=[n[1],0];r&&(S(o,o,r),S(l,l,r));var d=c({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new f.Line({anid:"line",subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:l[0],y2:l[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var v=e.get("axisLine.symbol"),m=e.get("axisLine.symbolSize"),y=e.get("axisLine.symbolOffset")||0;if("number"==typeof y&&(y=[y,y]),null!=v){"string"==typeof v&&(v=[v,v]),"string"!=typeof m&&"number"!=typeof m||(m=[m,m]);var x=m[0],w=m[1];h([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((o[0]-l[0])*(o[0]-l[0])+(o[1]-l[1])*(o[1]-l[1]))}],(function(e,n){if("none"!==v[n]&&null!=v[n]){var symbol=_(v[n],-x/2,-w/2,x,w,d.stroke,!0),r=e.r+e.offset,l=[o[0]+r*Math.cos(t.rotation),o[1]-r*Math.sin(t.rotation)];symbol.attr({rotation:e.rotate,position:l,silent:!0,z2:11}),this.group.add(symbol)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=function(t,e,n){var r=e.axis,o=e.getModel("axisTick");if(!o.get("show")||r.scale.isBlank())return;for(var c=o.getModel("lineStyle"),h=n.tickDirection*o.get("length"),d=E(r.getTicksCoords(),t._transform,h,l(c.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),i=0;i<d.length;i++)t.group.add(d[i]);return d}(this,t,e),r=function(t,e,n){var r=e.axis;if(!o(n.axisLabelShow,e.get("axisLabel.show"))||r.scale.isBlank())return;var l=e.getModel("axisLabel"),c=l.get("margin"),d=r.getViewLabels(),m=(o(n.labelRotate,l.get("rotate"))||0)*T/180,y=D(n.rotation,m,n.labelDirection),x=e.getCategories&&e.getCategories(!0),_=[],w=L(e),S=e.get("triggerEvent");return h(d,(function(o,h){var d=o.tickValue,m=o.formattedLabel,M=o.rawLabel,T=l;x&&x[d]&&x[d].textStyle&&(T=new v(x[d].textStyle,l,e.ecModel));var A=T.getTextColor()||e.get("axisLine.lineStyle.color"),I=[r.dataToCoord(d),n.labelOffset+n.labelDirection*c],D=new f.Text({anid:"label_"+d,position:I,rotation:y.rotation,silent:w,z2:10});f.setTextStyle(D.style,T,{text:m,textAlign:T.getShallow("align",!0)||y.textAlign,textVerticalAlign:T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||y.textVerticalAlign,textFill:"function"==typeof A?A("category"===r.type?M:"value"===r.type?d+"":d,h):A}),S&&(D.eventData=C(e),D.eventData.targetType="axisLabel",D.eventData.value=M),t._dumbGroup.add(D),D.updateTransform(),_.push(D),t.group.add(D),D.decomposeTransform()})),_}(this,t,e);!function(t,e,n){if(M(t.axis))return;var r=t.get("axisLabel.showMinLabel"),o=t.get("axisLabel.showMaxLabel");n=n||[];var l=(e=e||[])[0],c=e[1],h=e[e.length-1],d=e[e.length-2],f=n[0],v=n[1],m=n[n.length-1],y=n[n.length-2];!1===r?(k(l),k(f)):P(l,c)&&(r?(k(c),k(v)):(k(l),k(f)));!1===o?(k(h),k(m)):P(d,h)&&(o?(k(d),k(y)):(k(h),k(m)))}(t,r,n),function(t,e,n){var r=e.axis,o=e.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var c=r.getMinorTicksCoords();if(!c.length)return;for(var h=o.getModel("lineStyle"),d=n.tickDirection*o.get("length"),f=l(h.getLineStyle(),l(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),i=0;i<c.length;i++)for(var v=E(c[i],t._transform,d,f,"minorticks_"+i),m=0;m<v.length;m++)t.group.add(v[m])}(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,n=o(t.axisName,e.get("name"));if(n){var r,l,h=e.get("nameLocation"),v=t.nameDirection,m=e.getModel("nameTextStyle"),_=e.get("nameGap")||0,w=this.axisModel.axis.getExtent(),S=w[0]>w[1]?-1:1,M=["start"===h?w[0]-S*_:"end"===h?w[1]+S*_:(w[0]+w[1])/2,O(h)?t.labelOffset+v*_:0],A=e.get("nameRotate");null!=A&&(A=A*T/180),O(h)?r=D(t.rotation,null!=A?A:t.rotation,v):(r=function(t,e,n,r){var o,l,c=x(n-t.rotation),h=r[0]>r[1],d="start"===e&&!h||"start"!==e&&h;y(c-T/2)?(l=d?"bottom":"top",o="center"):y(c-1.5*T)?(l=d?"top":"bottom",o="center"):(l="middle",o=c<1.5*T&&c>T/2?d?"left":"right":d?"right":"left");return{rotation:c,textAlign:o,textVerticalAlign:l}}(t,h,A||0,w),null!=(l=t.axisNameAvailableWidth)&&(l=Math.abs(l/Math.sin(r.rotation)),!isFinite(l)&&(l=null)));var I=m.getFont(),k=e.get("nameTruncate",!0)||{},P=k.ellipsis,E=o(t.nameTruncateMaxWidth,k.maxWidth,l),N=null!=P&&null!=E?d.truncateText(n,E,I,P,{minChar:2,placeholder:k.placeholder}):n,R=e.get("tooltip",!0),z=e.mainType,B={componentType:z,name:n,$vars:["name"]};B[z+"Index"]=e.componentIndex;var V=new f.Text({anid:"name",__fullText:n,__truncatedText:N,position:M,rotation:r.rotation,silent:L(e),z2:1,tooltip:R&&R.show?c({content:n,formatter:function(){return n},formatterParams:B},R):null});f.setTextStyle(V.style,m,{text:N,textFont:I,textFill:m.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:m.get("align")||r.textAlign,textVerticalAlign:m.get("verticalAlign")||r.textVerticalAlign}),e.get("triggerEvent")&&(V.eventData=C(e),V.eventData.targetType="axisName",V.eventData.name=n),this._dumbGroup.add(V),V.updateTransform(),this.group.add(V),V.decomposeTransform()}}},C=A.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},D=A.innerTextLayout=function(t,e,n){var r,o,l=x(e-t);return y(l)?(o=n>0?"top":"bottom",r="center"):y(l-T)?(o=n>0?"bottom":"top",r="center"):(o="middle",r=l>0&&l<T?n>0?"right":"left":n>0?"left":"right"),{rotation:l,textAlign:r,textVerticalAlign:o}};var L=A.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function k(t){t&&(t.ignore=!0)}function P(t,e,n){var r=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(r&&o){var l=w.identity([]);return w.rotate(l,l,-t.rotation),r.applyTransform(w.mul([],l,t.getLocalTransform())),o.applyTransform(w.mul([],l,e.getLocalTransform())),r.intersect(o)}}function O(t){return"middle"===t||"center"===t}function E(t,e,n,r,o){for(var l=[],c=[],h=[],i=0;i<t.length;i++){var d=t[i].coord;c[0]=d,c[1]=0,h[0]=d,h[1]=n,e&&(S(c,c,e),S(h,h,e));var v=new f.Line({anid:o+"_"+t[i].tickValue,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:r,z2:2,silent:!0});l.push(v)}return l}var N=A;t.exports=N},function(t,e){var n={};e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]}},,,,,,,function(t,e){var n=Array.prototype.slice,r=function(t){this._$handlers={},this._$eventProcessor=t};function o(t,e,n,r,o,l){var c=t._$handlers;if("function"==typeof n&&(o=r,r=n,n=null),!r||!e)return t;n=function(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}(t,n),c[e]||(c[e]=[]);for(var i=0;i<c[e].length;i++)if(c[e][i].h===r)return t;var h={h:r,one:l,query:n,ctx:o||t,callAtLast:r.zrEventfulCallAtLast},d=c[e].length-1,f=c[e][d];return f&&f.callAtLast?c[e].splice(d,0,h):c[e].push(h),t}r.prototype={constructor:r,one:function(t,e,n,r){return o(this,t,e,n,r,!0)},on:function(t,e,n,r){return o(this,t,e,n,r,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){var e=this._$handlers[t],r=this._$eventProcessor;if(e){var o=arguments,l=o.length;l>3&&(o=n.call(o,1));for(var c=e.length,i=0;i<c;){var h=e[i];if(r&&r.filter&&null!=h.query&&!r.filter(t,h.query))i++;else{switch(l){case 1:h.h.call(h.ctx);break;case 2:h.h.call(h.ctx,o[1]);break;case 3:h.h.call(h.ctx,o[1],o[2]);break;default:h.h.apply(h.ctx,o)}h.one?(e.splice(i,1),c--):i++}}}return r&&r.afterTrigger&&r.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],r=this._$eventProcessor;if(e){var o=arguments,l=o.length;l>4&&(o=n.call(o,1,o.length-1));for(var c=o[o.length-1],h=e.length,i=0;i<h;){var d=e[i];if(r&&r.filter&&null!=d.query&&!r.filter(t,d.query))i++;else{switch(l){case 1:d.h.call(c);break;case 2:d.h.call(c,o[1]);break;case 3:d.h.call(c,o[1],o[2]);break;default:d.h.apply(c,o)}d.one?(e.splice(i,1),h--):i++}}}return r&&r.afterTrigger&&r.afterTrigger(t),this}};var l=r;t.exports=l},function(t,e,n){var r=n(0),o=n(310),l=n(14),c=function(t){for(var e in t=t||{},o.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};c.prototype={constructor:c,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof c&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,o=this._children,l=r.indexOf(o,t);return l<0||(o.splice(l,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof c&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,i,e=this._children,n=this.__storage;for(i=0;i<e.length;i++)t=e[i],n&&(n.delFromStorage(t),t instanceof c&&t.delChildrenFromStorage(n)),t.parent=null;return e.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var i=0;i<this._children.length;i++){var e=this._children[i];t.addToStorage(e),e instanceof c&&e.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var i=0;i<this._children.length;i++){var e=this._children[i];t.delFromStorage(e),e instanceof c&&e.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var rect=null,e=new l(0,0,0,0),n=t||this._children,r=[],i=0;i<n.length;i++){var o=n[i];if(!o.ignore&&!o.invisible){var c=o.getBoundingRect(),h=o.getLocalTransform(r);h?(e.copy(c),e.applyTransform(h),(rect=rect||e.clone()).union(e)):(rect=rect||c.clone()).union(c)}}return rect||e}},r.inherits(c,o);var h=c;t.exports=h},function(t,e,n){var r=n(120),o=n(0),l=n(33),c=n(160),h=n(159).ContextCachedBy,d=function(t){r.call(this,t)};d.prototype={constructor:d,type:"text",brush:function(t,e){var style=this.style;this.__dirty&&c.normalizeTextStyle(style,!0),style.fill=style.stroke=style.shadowBlur=style.shadowColor=style.shadowOffsetX=style.shadowOffsetY=null;var text=style.text;null!=text&&(text+=""),c.needDrawText(text,style)?(this.setTransform(t),c.renderText(this,t,text,style,null,e),this.restoreTransform(t)):t.__attrCachedBy=h.NONE},getBoundingRect:function(){var style=this.style;if(this.__dirty&&c.normalizeTextStyle(style,!0),!this._rect){var text=style.text;null!=text?text+="":text="";var rect=l.getBoundingRect(style.text+"",style.font,style.textAlign,style.textVerticalAlign,style.textPadding,style.textLineHeight,style.rich);if(rect.x+=style.x||0,rect.y+=style.y||0,c.getStroke(style.textStroke,style.textStrokeWidth)){var t=style.textStrokeWidth;rect.x-=t/2,rect.y-=t/2,rect.width+=t,rect.height+=t}this._rect=rect}return this._rect}},o.inherits(d,r);var f=d;t.exports=f},function(t,e,n){n(7).__DEV__;var r=n(0),o=(r.isTypedArray,r.extend),l=(r.assert,r.each),c=r.isObject,h=n(6),d=h.getDataItemValue,f=h.isDataItemOption,v=n(5).parseDate,m=n(123),y=n(124),x=y.SOURCE_FORMAT_TYPED_ARRAY,_=y.SOURCE_FORMAT_ARRAY_ROWS,w=y.SOURCE_FORMAT_ORIGINAL,S=y.SOURCE_FORMAT_OBJECT_ROWS;function M(source,t){m.isInstance(source)||(source=m.seriesDataToSource(source)),this._source=source;var data=this._data=source.data,e=source.sourceFormat;e===x&&(this._offset=0,this._dimSize=t,this._data=data);var n=A[e===_?e+"_"+source.seriesLayoutBy:e];o(this,n)}var T=M.prototype;T.pure=!1,T.persistent=!0,T.getSource=function(){return this._source};var A={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:D},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],data=this._data,i=0;i<data.length;i++){var n=data[i];e.push(n?n[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:I,getItem:C,appendData:D},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,col=this._data[t];return col?col.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var col=this._data[n[i].name];e.push(col?col[t]:null)}return e},appendData:function(t){var data=this._data;l(t,(function(t,e){for(var n=data[e]||(data[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])}))}},original:{count:I,getItem:C,appendData:D},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}};function I(){return this._data.length}function C(t){return this._data[t]}function D(t){for(var i=0;i<t.length;i++)this._data.push(t[i])}var L={arrayRows:k,objectRows:function(t,e,n,r){return null!=n?t[r]:t},keyedColumns:k,original:function(t,e,n,r){var o=d(t);return null!=n&&o instanceof Array?o[n]:o},typedArray:k};function k(t,e,n,r){return null!=n?t[n]:t}var P={arrayRows:O,objectRows:function(t,e,n,r){return E(t[e],this._dimensionInfos[e])},keyedColumns:O,original:function(t,e,n,r){var o=t&&(null==t.value?t:t.value);return!this._rawData.pure&&f(t)&&(this.hasItemOption=!0),E(o instanceof Array?o[r]:o,this._dimensionInfos[e])},typedArray:function(t,e,n,r){return t[r]}};function O(t,e,n,r){return E(t[r],this._dimensionInfos[e])}function E(t,e){var n=e&&e.type;if("ordinal"===n){var r=e&&e.ordinalMeta;return r?r.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+v(t)),null==t||""===t?NaN:+t}e.DefaultDataProvider=M,e.defaultDimValueGetters=P,e.retrieveRawValue=function(data,t,e){if(data){var n=data.getRawDataItem(t);if(null!=n){var r,o,l=data.getProvider().getSource().sourceFormat,c=data.getDimensionInfo(e);return c&&(r=c.name,o=c.index),L[l](n,t,o,r)}}},e.retrieveRawAttr=function(data,t,e){if(data){var n=data.getProvider().getSource().sourceFormat;if(n===w||n===S){var r=data.getRawDataItem(t);return n!==w||c(r)||(r=null),r?r[e]:void 0}}}},function(t,e){function n(t){return t}function r(t,e,r,o,l){this._old=t,this._new=e,this._oldKeyGetter=r||n,this._newKeyGetter=o||n,this.context=l}function o(t,map,e,n,r){for(var i=0;i<t.length;i++){var o="_ec_"+r[n](t[i],i),l=map[o];null==l?(e.push(o),map[o]=i):(l.length||(map[o]=l=[l]),l.push(i))}}r.prototype={constructor:r,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},r=[],l=[];for(o(t,{},r,"_oldKeyGetter",this),o(e,n,l,"_newKeyGetter",this),i=0;i<t.length;i++){if(null!=(h=n[c=r[i]]))(f=h.length)?(1===f&&(n[c]=null),h=h.shift()):n[c]=null,this._update&&this._update(h,i);else this._remove&&this._remove(i)}for(var i=0;i<l.length;i++){var c=l[i];if(n.hasOwnProperty(c)){var h;if(null==(h=n[c]))continue;if(h.length)for(var d=0,f=h.length;d<f;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}};var l=r;t.exports=l},function(t,e,n){var r=n(0).isFunction;t.exports=function(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,o,l){var data=t.getData(),c=t.get("symbol"),h=t.get("symbolSize"),d=t.get("symbolKeepAspect"),f=t.get("symbolRotate"),v=r(c),m=r(h),y=r(f),x=v||m||y,_=!v&&c?c:e,w=m?null:h;if(data.setVisual({legendSymbol:n||_,symbol:_,symbolSize:w,symbolKeepAspect:d,symbolRotate:f}),!o.isSeriesFiltered(t))return{dataEach:data.hasItemOption||x?function(data,e){if(x){var n=t.getRawValue(e),r=t.getDataParams(e);v&&data.setItemVisual(e,"symbol",c(n,r)),m&&data.setItemVisual(e,"symbolSize",h(n,r)),y&&data.setItemVisual(e,"symbolRotate",f(n,r))}if(data.hasItemOption){var o=data.getItemModel(e),l=o.getShallow("symbol",!0),d=o.getShallow("symbolSize",!0),_=o.getShallow("symbolRotate",!0),w=o.getShallow("symbolKeepAspect",!0);null!=l&&data.setItemVisual(e,"symbol",l),null!=d&&data.setItemVisual(e,"symbolSize",d),null!=_&&data.setItemVisual(e,"symbolRotate",_),null!=w&&data.setItemVisual(e,"symbolKeepAspect",w)}}:null}}}}},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(168),l=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,r){this.axisPointerClass&&o.fixValue(t),l.superApply(this,"render",arguments),c(this,t,e,n,r,!0)},updateAxisPointer:function(t,e,n,r,o){c(this,t,e,n,r,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),l.superApply(this,"remove",arguments)},dispose:function(t,e){h(this,e),l.superApply(this,"dispose",arguments)}});function c(t,e,n,r,c,d){var f=l.getAxisPointerClass(t.axisPointerClass);if(f){var v=o.getAxisPointerModel(e);v?(t._axisPointer||(t._axisPointer=new f)).render(e,v,r,d):h(t,r)}}function h(t,e,n){var r=t._axisPointer;r&&r.dispose(e,n),t._axisPointer=null}var d=[];l.registerAxisPointerClass=function(t,e){d[t]=e},l.getAxisPointerClass=function(t){return t&&d[t]};var f=l;t.exports=f},function(t,e,n){var r=n(0);function o(t){for(var path=[];t;)(t=t.parentNode)&&path.push(t);return path.reverse()}e.retrieveTargetInfo=function(t,e,n){if(t&&r.indexOf(e,t.type)>=0){var o=n.getData().tree.root,l=t.targetNode;if("string"==typeof l&&(l=o.getNodeById(l)),l&&o.contains(l))return{node:l};var c=t.targetNodeId;if(null!=c&&(l=o.getNodeById(c)))return{node:l}}},e.getPathToRoot=o,e.aboveViewRoot=function(t,e){var n=o(t);return r.indexOf(n,e)>=0},e.wrapTreePathInfo=function(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}},function(t,e,n){var r=n(0),o=n(47),l=n(5).linearMap,c=r.each,h=r.isObject,d=function(option){var t=option.mappingMethod,e=option.type,n=this.option=r.clone(option);this.type=e,this.mappingMethod=t,this._normalizeData=A[t];var o=f[e];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._doMap=o._doMap[t],"piecewise"===t?(v(n),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,r.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(n)):"category"===t?n.categories?function(t){var e=t.categories,n=t.visual,o=t.categoryMap={};if(c(e,(function(t,e){o[t]=e})),!r.isArray(n)){var l=[];r.isObject(n)?c(n,(function(t,e){var n=o[e];l[null!=n?n:-1]=t})):l[-1]=n,n=T(t,l)}for(var i=e.length-1;i>=0;i--)null==n[i]&&(delete o[e[i]],e.pop())}(n):v(n,!0):(r.assert("linear"!==t||n.dataExtent),v(n))};d.prototype={constructor:d,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return r.bind(this._normalizeData,this)}};var f=d.visualHandlers={color:{applyVisual:x("color"),getColorMapper:function(){var t=this.option;return r.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),_.call(this,t)}:function(e,n,r){var l=!!r;return!n&&(e=this._normalizeData(e)),r=o.fastLerp(e,t.parsedVisual,r),l?r:o.stringify(r,"rgba")},this)},_doMap:{linear:function(t){return o.stringify(o.fastLerp(t,this.option.parsedVisual),"rgba")},category:_,piecewise:function(t,e){var n=M.call(this,e);return null==n&&(n=o.stringify(o.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:w}},colorHue:m((function(t,e){return o.modifyHSL(t,e)})),colorSaturation:m((function(t,e){return o.modifyHSL(t,null,e)})),colorLightness:m((function(t,e){return o.modifyHSL(t,null,null,e)})),colorAlpha:m((function(t,e){return o.modifyAlpha(t,e)})),opacity:{applyVisual:x("opacity"),_doMap:S([0,1])},liftZ:{applyVisual:x("liftZ"),_doMap:{linear:w,category:w,piecewise:w,fixed:w}},symbol:{applyVisual:function(t,e,n){var o=this.mapValueToVisual(t);if(r.isString(o))n("symbol",o);else if(h(o))for(var l in o)o.hasOwnProperty(l)&&n(l,o[l])},_doMap:{linear:y,category:_,piecewise:function(t,e){var n=M.call(this,e);return null==n&&(n=y.call(this,t)),n},fixed:w}},symbolSize:{applyVisual:x("symbolSize"),_doMap:S([0,1])}};function v(t,e){var n=t.visual,o=[];r.isObject(n)?c(n,(function(t){o.push(t)})):null!=n&&o.push(n);e||1!==o.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(o[1]=o[0]),T(t,o)}function m(t){return{applyVisual:function(e,n,r){e=this.mapValueToVisual(e),r("color",t(n("color"),e))},_doMap:S([0,1])}}function y(t){var e=this.option.visual;return e[Math.round(l(t,[0,1],[0,e.length-1],!0))]||{}}function x(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function _(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function w(){return this.option.visual[0]}function S(t){return{linear:function(e){return l(e,t,this.option.visual,!0)},category:_,piecewise:function(e,n){var r=M.call(this,n);return null==r&&(r=l(e,t,this.option.visual,!0)),r},fixed:w}}function M(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[d.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function T(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=r.map(e,(function(t){return o.parse(t)}))),e}var A={linear:function(t){return l(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=d.findPieceIndex(t,e,!0);if(null!=n)return l(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:r.noop};function I(t,a,b){return t?a<=b:a<b}d.listVisualTypes=function(){var t=[];return r.each(f,(function(e,n){t.push(n)})),t},d.addVisualHandler=function(t,e){f[t]=e},d.isValidType=function(t){return f.hasOwnProperty(t)},d.eachVisual=function(t,e,n){r.isObject(t)?r.each(t,e,n):e.call(n,t)},d.mapVisual=function(t,e,n){var o,l=r.isArray(t)?[]:r.isObject(t)?{}:(o=!0,null);return d.eachVisual(t,(function(t,r){var c=e.call(n,t,r);o?l=c:l[r]=c})),l},d.retrieveVisuals=function(t){var e,n={};return t&&c(f,(function(r,o){t.hasOwnProperty(o)&&(n[o]=t[o],e=!0)})),e?n:null},d.prepareVisualTypes=function(t){if(h(t)){var e=[];c(t,(function(t,n){e.push(n)})),t=e}else{if(!r.isArray(t))return[];t=t.slice()}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},d.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},d.findPieceIndex=function(t,e,n){for(var r,o=1/0,i=0,l=e.length;i<l;i++){var c=e[i].value;if(null!=c){if(c===t||"string"==typeof c&&c===t+"")return i;n&&v(c,i)}}for(i=0,l=e.length;i<l;i++){var h=e[i],d=h.interval,f=h.close;if(d){if(d[0]===-1/0){if(I(f[1],t,d[1]))return i}else if(d[1]===1/0){if(I(f[0],d[0],t))return i}else if(I(f[0],d[0],t)&&I(f[1],t,d[1]))return i;n&&v(d[0],i),n&&v(d[1],i)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function v(e,n){var l=Math.abs(e-t);l<o&&(o=l,r=n)}};var C=d;t.exports=C},,,,,,,,,function(t,e,n){var r=n(120),o=n(14),l=n(0),c=n(207);function h(t){r.call(this,t)}h.prototype={constructor:h,type:"image",brush:function(t,e){var style=this.style,n=style.image;style.bind(t,this,e);var image=this._image=c.createOrUpdateImage(n,this._image,this,this.onload);if(image&&c.isImageReady(image)){var r=style.x||0,o=style.y||0,l=style.width,h=style.height,d=image.width/image.height;if(null==l&&null!=h?l=h*d:null==h&&null!=l?h=l/d:null==l&&null==h&&(l=image.width,h=image.height),this.setTransform(t),style.sWidth&&style.sHeight){var f=style.sx||0,v=style.sy||0;t.drawImage(image,f,v,style.sWidth,style.sHeight,r,o,l,h)}else if(style.sx&&style.sy){var m=l-(f=style.sx),y=h-(v=style.sy);t.drawImage(image,f,v,m,y,r,o,l,h)}else t.drawImage(image,r,o,l,h);null!=style.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var style=this.style;return this._rect||(this._rect=new o(style.x||0,style.y||0,style.width||0,style.height||0)),this._rect}},l.inherits(h,r);var d=h;t.exports=d},function(t,e,n){var r=n(0);t.exports=function(t){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return function(e,n,o){for(var style={},i=0;i<t.length;i++){var l=t[i][1];if(!(n&&r.indexOf(n,l)>=0||o&&r.indexOf(o,l)<0)){var c=e.getShallow(l);null!=c&&(style[t[i][0]]=c)}}return style}}},function(t,e,n){var r=n(63),o=n(11),l=n(121),c=n(14),h=n(158).devicePixelRatio,d={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},f=[],v=[],m=[],y=[],x=Math.min,_=Math.max,w=Math.cos,S=Math.sin,M=Math.sqrt,T=Math.abs,A="undefined"!=typeof Float32Array,I=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};I.prototype={constructor:I,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=T(n/h/t)||0,this._uy=T(n/h/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(d.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=T(t-this._xi)>this._ux||T(e-this._yi)>this._uy||this._len<5;return this.addData(d.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,r,o,l){return this.addData(d.C,t,e,n,r,o,l),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,r,o,l):this._ctx.bezierCurveTo(t,e,n,r,o,l)),this._xi=o,this._yi=l,this},quadraticCurveTo:function(t,e,n,r){return this.addData(d.Q,t,e,n,r),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,r):this._ctx.quadraticCurveTo(t,e,n,r)),this._xi=n,this._yi=r,this},arc:function(t,e,n,r,o,l){return this.addData(d.A,t,e,n,n,r,o-r,0,l?0:1),this._ctx&&this._ctx.arc(t,e,n,r,o,l),this._xi=w(o)*n+t,this._yi=S(o)*n+e,this},arcTo:function(t,e,n,r,o){return this._ctx&&this._ctx.arcTo(t,e,n,r,o),this},rect:function(t,e,n,r){return this._ctx&&this._ctx.rect(t,e,n,r),this.addData(d.R,t,e,n,r),this},closePath:function(){this.addData(d.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(data){var t=data.length;this.data&&this.data.length===t||!A||(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=data[i];this._len=t},appendPath:function(path){path instanceof Array||(path=[path]);for(var t=path.length,e=0,n=this._len,i=0;i<t;i++)e+=path[i].len();A&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+e));for(i=0;i<t;i++)for(var r=path[i].data,o=0;o<r.length;o++)this.data[n++]=r[o];this._len=n},addData:function(t){if(this._saveData){var data=this.data;this._len+arguments.length>data.length&&(this._expandData(),data=this.data);for(var i=0;i<arguments.length;i++)data[this._len++]=arguments[i];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],i=0;i<this._len;i++)t[i]=this.data[i];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,r,o=this._dashSum,l=this._dashOffset,c=this._lineDash,h=this._ctx,d=this._xi,f=this._yi,v=t-d,m=e-f,y=M(v*v+m*m),w=d,S=f,T=c.length;for(l<0&&(l=o+l),w-=(l%=o)*(v/=y),S-=l*(m/=y);v>0&&w<=t||v<0&&w>=t||0===v&&(m>0&&S<=e||m<0&&S>=e);)w+=v*(n=c[r=this._dashIdx]),S+=m*n,this._dashIdx=(r+1)%T,v>0&&w<d||v<0&&w>d||m>0&&S<f||m<0&&S>f||h[r%2?"moveTo":"lineTo"](v>=0?x(w,t):_(w,t),m>=0?x(S,e):_(S,e));v=w-t,m=S-e,this._dashOffset=-M(v*v+m*m)},_dashedBezierTo:function(t,e,n,o,l,c){var h,d,f,v,m,y=this._dashSum,x=this._dashOffset,_=this._lineDash,w=this._ctx,S=this._xi,T=this._yi,A=r.cubicAt,I=0,C=this._dashIdx,D=_.length,L=0;for(x<0&&(x=y+x),x%=y,h=0;h<1;h+=.1)d=A(S,t,n,l,h+.1)-A(S,t,n,l,h),f=A(T,e,o,c,h+.1)-A(T,e,o,c,h),I+=M(d*d+f*f);for(;C<D&&!((L+=_[C])>x);C++);for(h=(L-x)/I;h<=1;)v=A(S,t,n,l,h),m=A(T,e,o,c,h),C%2?w.moveTo(v,m):w.lineTo(v,m),h+=_[C]/I,C=(C+1)%D;C%2!=0&&w.lineTo(l,c),d=l-v,f=c-m,this._dashOffset=-M(d*d+f*f)},_dashedQuadraticTo:function(t,e,n,r){var o=n,l=r;n=(n+2*t)/3,r=(r+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,r,o,l)},toStatic:function(){var data=this.data;data instanceof Array&&(data.length=this._len,A&&(this.data=new Float32Array(data)))},getBoundingRect:function(){f[0]=f[1]=m[0]=m[1]=Number.MAX_VALUE,v[0]=v[1]=y[0]=y[1]=-Number.MAX_VALUE;for(var data=this.data,t=0,e=0,n=0,r=0,i=0;i<data.length;){var h=data[i++];switch(1===i&&(n=t=data[i],r=e=data[i+1]),h){case d.M:t=n=data[i++],e=r=data[i++],m[0]=n,m[1]=r,y[0]=n,y[1]=r;break;case d.L:l.fromLine(t,e,data[i],data[i+1],m,y),t=data[i++],e=data[i++];break;case d.C:l.fromCubic(t,e,data[i++],data[i++],data[i++],data[i++],data[i],data[i+1],m,y),t=data[i++],e=data[i++];break;case d.Q:l.fromQuadratic(t,e,data[i++],data[i++],data[i],data[i+1],m,y),t=data[i++],e=data[i++];break;case d.A:var x=data[i++],_=data[i++],M=data[i++],T=data[i++],A=data[i++],I=data[i++]+A;i+=1;var C=1-data[i++];1===i&&(n=w(A)*M+x,r=S(A)*T+_),l.fromArc(x,_,M,T,A,I,C,m,y),t=w(I)*M+x,e=S(I)*T+_;break;case d.R:n=t=data[i++],r=e=data[i++];var D=data[i++],L=data[i++];l.fromLine(n,r,n+D,r+L,m,y);break;case d.Z:t=n,e=r}o.min(f,f,m),o.max(v,v,y)}return 0===i&&(f[0]=f[1]=v[0]=v[1]=0),new c(f[0],f[1],v[0]-f[0],v[1]-f[1])},rebuildPath:function(t){for(var e,n,r,o,l,c,h=this.data,f=this._ux,v=this._uy,m=this._len,i=0;i<m;){var y=h[i++];switch(1===i&&(e=r=h[i],n=o=h[i+1]),y){case d.M:e=r=h[i++],n=o=h[i++],t.moveTo(r,o);break;case d.L:l=h[i++],c=h[i++],(T(l-r)>f||T(c-o)>v||i===m-1)&&(t.lineTo(l,c),r=l,o=c);break;case d.C:t.bezierCurveTo(h[i++],h[i++],h[i++],h[i++],h[i++],h[i++]),r=h[i-2],o=h[i-1];break;case d.Q:t.quadraticCurveTo(h[i++],h[i++],h[i++],h[i++]),r=h[i-2],o=h[i-1];break;case d.A:var x=h[i++],_=h[i++],M=h[i++],A=h[i++],I=h[i++],C=h[i++],D=h[i++],L=h[i++],k=M>A?M:A,P=M>A?1:M/A,O=M>A?A/M:1,E=I+C;Math.abs(M-A)>.001?(t.translate(x,_),t.rotate(D),t.scale(P,O),t.arc(0,0,k,I,E,1-L),t.scale(1/P,1/O),t.rotate(-D),t.translate(-x,-_)):t.arc(x,_,k,I,E,1-L),1===i&&(e=w(I)*M+x,n=S(I)*A+_),r=w(E)*M+x,o=S(E)*A+_;break;case d.R:e=r=h[i],n=o=h[i+1],t.rect(h[i++],h[i++],h[i++],h[i++]);break;case d.Z:t.closePath(),r=e,o=n}}}},I.CMD=d;var C=I;t.exports=C},function(t,e,n){var r=n(6).makeInner;t.exports=function(){var t=r();return function(e){var n=t(e),r=e.pipelineContext,o=n.large,l=n.progressiveRender,c=n.large=r&&r.large,h=n.progressiveRender=r&&r.progressiveRender;return!!(o^c||l^h)&&"reset"}}},function(t,e,n){var r=n(336);t.exports=function(source,t){return r((t=t||{}).coordDimensions||[],source,{dimsDef:t.dimensionsDefine||source.dimensionsDefine,encodeDef:t.encodeDefine||source.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}},function(t,e,n){var r=n(0),o={getMin:function(t){var option=this.option,e=t||null==option.rangeStart?option.min:option.rangeStart;return this.axis&&null!=e&&"dataMin"!==e&&"function"!=typeof e&&!r.eqNaN(e)&&(e=this.axis.scale.parse(e)),e},getMax:function(t){var option=this.option,e=t||null==option.rangeEnd?option.max:option.rangeEnd;return this.axis&&null!=e&&"dataMax"!==e&&"function"!=typeof e&&!r.eqNaN(e)&&(e=this.axis.scale.parse(e)),e},getNeedCrossZero:function(){var option=this.option;return null==option.rangeStart&&null==option.rangeEnd&&!option.scale},getCoordSysModel:r.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};t.exports=o},function(t,e,n){var r=n(96),o=n(37),l=n(0),c=l.extend,h=l.isArray;t.exports=function(t,e,n){e=h(e)&&{coordDimensions:e}||c({},e);var source=t.getSource(),l=r(source,e),d=new o(l,t);return d.initData(source,n),d}},function(t,e){function n(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function r(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}t.exports=function(t,e,o,l,c,h){t=t||0;var d=o[1]-o[0];if(null!=c&&(c=r(c,[0,d])),null!=h&&(h=Math.max(h,null!=c?c:0)),"all"===l){var f=Math.abs(e[1]-e[0]);f=r(f,[0,d]),c=h=r(f,[c,h]),l=0}e[0]=r(e[0],o),e[1]=r(e[1],o);var v=n(e,l);e[l]+=t;var m=c||0,y=o.slice();v.sign<0?y[0]+=m:y[1]-=m,e[l]=r(e[l],y);var x=n(e,l);return null!=c&&(x.sign!==v.sign||x.span<c)&&(e[1-l]=e[l]+v.sign*c),x=n(e,l),null!=h&&x.span>h&&(e[1-l]=e[l]+x.sign*h),e}},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(18),c=n(6),h=n(230),d=n(925),f=o.each,v=h.eachAxisDim;function m(option){var t={};return f(["start","end","startValue","endValue","throttle"],(function(e){option.hasOwnProperty(e)&&(t[e]=option[e])})),t}function y(t,e){var n=t._rangePropMode,r=t.get("rangeMode");f([["start","startValue"],["end","endValue"]],(function(t,o){var l=null!=e[t[0]],c=null!=e[t[1]];l&&!c?n[o]="percent":!l&&c?n[o]="value":r?n[o]=r[o]:l&&(n[o]="percent")}))}var x=r.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(option,t,e){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=m(option);this.settledOption=n,this.mergeDefaultAndTheme(option,e),this.doInit(n)},mergeOption:function(t){var e=m(t);o.merge(this.option,t,!0),o.merge(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;l.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),y(this,t);var n=this.settledOption;f([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,n,r,o){var l=this.dependentModels[e.axis][n],c=l.__dzAxisProxy||(l.__dzAxisProxy=new d(e.name,n,this,o));t[e.name+"_"+n]=c}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();v((function(e){var n=e.axisIndex;t[n]=c.normalizeToArray(t[n])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;v((function(n){null!=t[n.axisIndex]&&(e=!0)}),this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,r=this.dependentModels;if(t){var l="vertical"===e?"y":"x";r[l+"Axis"].length?(n[l+"AxisIndex"]=[0],t=!1):f(r.singleAxis,(function(r){t&&r.get("orient",!0)===e&&(n.singleAxisIndex=[r.componentIndex],t=!1)}))}t&&v((function(e){if(t){var r=[],o=this.dependentModels[e.axis];if(o.length&&!r.length)for(var i=0,l=o.length;i<l;i++)"category"===o[i].get("type")&&r.push(i);n[e.axisIndex]=r,r.length&&(t=!1)}}),this),t&&this.ecModel.eachSeries((function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&v((function(e){var r=n[e.axisIndex],l=t.get(e.axisIndex),c=t.get(e.axisId);l=t.ecModel.queryComponents({mainType:e.axis,index:l,id:c})[0].componentIndex,o.indexOf(r,l)<0&&r.push(l)}))}),this)},_autoSetOrient:function(){var t;this.eachTargetAxis((function(e){!t&&(t=e.name)}),this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return v((function(r){var o=t.get(r.axisIndex),l=this.dependentModels[r.axis][o];l&&l.get("type")===e||(n=!1)}),this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return v((function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}}),this),t},eachTargetAxis:function(t,e){var n=this.ecModel;v((function(r){f(this.get(r.axisIndex),(function(o){t.call(e,r,o,this,n)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t){var e=this.option,n=this.settledOption;f([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),y(this,t)},setCalculatedRange:function(t){var option=this.option;f(["start","startValue","end","endValue"],(function(e){option[e]=t[e]}))},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});t.exports=x},function(t,e,n){var r=n(162).extend({type:"dataZoom",render:function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,n={};return t.eachTargetAxis((function(t,r){var o=e.getComponent(t.axis,r);if(o){var l=o.getCoordSysModel();l&&function(t,e,n,r){for(var o,i=0;i<n.length;i++)if(n[i].model===t){o=n[i];break}o||n.push(o={model:t,axisModels:[],coordIndex:r});o.axisModels.push(e)}(l,o,n[l.mainType]||(n[l.mainType]=[]),l.componentIndex)}}),this),n}});t.exports=r},function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},,,,,,,,,,,,,,,,function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=function(){};1===n(158).debugMode&&(r=console.error);var o=r;t.exports=o},function(t,e,n){var r=n(0),o=n(206),l=n(310),c=n(316);function h(t){for(var e in t=t||{},l.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new o(t.style,this),this._rect=null,this.__clipPaths=null}h.prototype={constructor:h,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?l.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new o(t,this),this.dirty(!1),this},calculateTextPosition:null},r.inherits(h,l),r.mixin(h,c);var d=h;t.exports=d},function(t,e,n){var r=n(11),o=n(63),l=Math.min,c=Math.max,h=Math.sin,d=Math.cos,f=2*Math.PI,v=r.create(),m=r.create(),y=r.create();var x=[],_=[];e.fromPoints=function(t,e,n){if(0!==t.length){var i,p=t[0],r=p[0],o=p[0],h=p[1],d=p[1];for(i=1;i<t.length;i++)p=t[i],r=l(r,p[0]),o=c(o,p[0]),h=l(h,p[1]),d=c(d,p[1]);e[0]=r,e[1]=h,n[0]=o,n[1]=d}},e.fromLine=function(t,e,n,r,o,h){o[0]=l(t,n),o[1]=l(e,r),h[0]=c(t,n),h[1]=c(e,r)},e.fromCubic=function(t,e,n,r,h,d,f,v,m,y){var i,w=o.cubicExtrema,S=o.cubicAt,M=w(t,n,h,f,x);for(m[0]=1/0,m[1]=1/0,y[0]=-1/0,y[1]=-1/0,i=0;i<M;i++){var T=S(t,n,h,f,x[i]);m[0]=l(T,m[0]),y[0]=c(T,y[0])}for(M=w(e,r,d,v,_),i=0;i<M;i++){var A=S(e,r,d,v,_[i]);m[1]=l(A,m[1]),y[1]=c(A,y[1])}m[0]=l(t,m[0]),y[0]=c(t,y[0]),m[0]=l(f,m[0]),y[0]=c(f,y[0]),m[1]=l(e,m[1]),y[1]=c(e,y[1]),m[1]=l(v,m[1]),y[1]=c(v,y[1])},e.fromQuadratic=function(t,e,n,r,h,d,f,v){var m=o.quadraticExtremum,y=o.quadraticAt,x=c(l(m(t,n,h),1),0),_=c(l(m(e,r,d),1),0),w=y(t,n,h,x),S=y(e,r,d,_);f[0]=l(t,h,w),f[1]=l(e,d,S),v[0]=c(t,h,w),v[1]=c(e,d,S)},e.fromArc=function(t,e,n,o,l,c,x,_,w){var S=r.min,M=r.max,T=Math.abs(l-c);if(T%f<1e-4&&T>1e-4)return _[0]=t-n,_[1]=e-o,w[0]=t+n,void(w[1]=e+o);if(v[0]=d(l)*n+t,v[1]=h(l)*o+e,m[0]=d(c)*n+t,m[1]=h(c)*o+e,S(_,v,m),M(w,v,m),(l%=f)<0&&(l+=f),(c%=f)<0&&(c+=f),l>c&&!x?c+=f:l<c&&x&&(l+=f),x){var A=c;c=l,l=A}for(var I=0;I<c;I+=Math.PI/2)I>l&&(y[0]=d(I)*n+t,y[1]=h(I)*o+e,S(_,y,_),M(w,y,w))}},function(t,e,n){var r=n(0),o=n(54).parseClassType,base=0;e.getUID=function(t){return[t||"",base++,Math.random().toFixed(5)].join("_")},e.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=o(t),e[t.main]=n},t.determineSubType=function(n,option){var r=option.type;if(!r){var l=o(n).main;t.hasSubTypes(n)&&e[l]&&(r=e[l](option))}return r},t},e.enableTopologicalTravel=function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,o,l,c){if(t.length){var h=function(t){var o={},l=[];return r.each(t,(function(c){var h=n(o,c),d=function(t,e){var n=[];return r.each(t,(function(t){r.indexOf(e,t)>=0&&n.push(t)})),n}(h.originalDeps=e(c),t);h.entryCount=d.length,0===h.entryCount&&l.push(c),r.each(d,(function(t){r.indexOf(h.predecessor,t)<0&&h.predecessor.push(t);var e=n(o,t);r.indexOf(e.successor,t)<0&&e.successor.push(c)}))})),{graph:o,noEntryList:l}}(o),d=h.graph,f=h.noEntryList,v={};for(r.each(t,(function(t){v[t]=!0}));f.length;){var m=f.pop(),y=d[m],x=!!v[m];x&&(l.call(c,m,y.originalDeps.slice()),delete v[m]),r.each(y.successor,x?w:_)}r.each(v,(function(){throw new Error("Circle dependency may exists")}))}function _(t){d[t].entryCount--,0===d[t].entryCount&&f.push(t)}function w(t){v[t]=!0,_(t)}}}},function(t,e,n){var r=n(0),o=r.createHashMap,l=r.isTypedArray,c=n(54).enableClassCheck,h=n(124),d=h.SOURCE_FORMAT_ORIGINAL,f=h.SERIES_LAYOUT_BY_COLUMN,v=h.SOURCE_FORMAT_UNKNOWN,m=h.SOURCE_FORMAT_TYPED_ARRAY,y=h.SOURCE_FORMAT_KEYED_COLUMNS;function x(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===y?{}:[]),this.sourceFormat=t.sourceFormat||v,this.seriesLayoutBy=t.seriesLayoutBy||f,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&o(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}x.seriesDataToSource=function(data){return new x({data:data,sourceFormat:l(data)?m:d,fromDataset:!1})},c(x);var _=x;t.exports=_},function(t,e){e.SOURCE_FORMAT_ORIGINAL="original",e.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",e.SOURCE_FORMAT_OBJECT_ROWS="objectRows",e.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",e.SOURCE_FORMAT_UNKNOWN="unknown",e.SOURCE_FORMAT_TYPED_ARRAY="typedArray",e.SERIES_LAYOUT_BY_COLUMN="column",e.SERIES_LAYOUT_BY_ROW="row"},function(t,e,n){var r=n(0),o=r.each,l=r.createHashMap,c=(r.assert,n(7).__DEV__,l(["tooltip","label","itemName","itemId","seriesName"]));function h(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}e.OTHER_DIMENSIONS=c,e.summarizeDimensions=function(data){var summary={},t=summary.encode={},e=l(),n=[],r=[],d=summary.userOutput={dimensionNames:data.dimensions.slice(),encode:{}};o(data.dimensions,(function(o){var l,f=data.getDimensionInfo(o),v=f.coordDim;if(v){var m=f.coordDimIndex;h(t,v)[m]=o,f.isExtraCoord||(e.set(v,1),"ordinal"!==(l=f.type)&&"time"!==l&&(n[0]=o),h(d.encode,v)[m]=f.index),f.defaultTooltip&&r.push(o)}c.each((function(e,n){var r=h(t,n),o=f.otherDims[n];null!=o&&!1!==o&&(r[o]=f.name)}))}));var f=[],v={};e.each((function(e,n){var r=t[n];v[n]=r[0],f=f.concat(r)})),summary.dataDimsOnCoord=f,summary.encodeFirstDimNotExtra=v;var m=t.label;m&&m.length&&(n=m.slice());var y=t.tooltip;return y&&y.length?r=y.slice():r.length||(r=n.slice()),t.defaultedLabel=n,t.defaultedTooltip=r,summary},e.getDimensionTypeByAxis=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},function(t,e,n){var r=n(2),o=n(166),l=n(0).isObject;function c(t){this.group=new r.Group,this._symbolCtor=t||o}var h=c.prototype;function d(data,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&"none"!==data.getItemVisual(e,"symbol")}function f(t){return null==t||l(t)||(t={isIgnore:t}),t||{}}function v(data){var t=data.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}h.updateData=function(data,t){t=f(t);var e=this.group,n=data.hostModel,o=this._data,l=this._symbolCtor,c=v(data);o||e.removeAll(),data.diff(o).add((function(n){var r=data.getItemLayout(n);if(d(data,r,n,t)){var o=new l(data,n,c);o.attr("position",r),data.setItemGraphicEl(n,o),e.add(o)}})).update((function(h,f){var v=o.getItemGraphicEl(f),m=data.getItemLayout(h);d(data,m,h,t)?(v?(v.updateData(data,h,c),r.updateProps(v,{position:m},n)):(v=new l(data,h)).attr("position",m),e.add(v),data.setItemGraphicEl(h,v)):e.remove(v)})).remove((function(t){var n=o.getItemGraphicEl(t);n&&n.fadeOut((function(){e.remove(n)}))})).execute(),this._data=data},h.isPersistent=function(){return!0},h.updateLayout=function(){var data=this._data;data&&data.eachItemGraphicEl((function(t,e){var n=data.getItemLayout(e);t.attr("position",n)}))},h.incrementalPrepareUpdate=function(data){this._seriesScope=v(data),this._data=null,this.group.removeAll()},h.incrementalUpdate=function(t,data,e){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}e=f(e);for(var r=t.start;r<t.end;r++){var o=data.getItemLayout(r);if(d(data,o,r,e)){var l=new this._symbolCtor(data,r,this._seriesScope);l.traverse(n),l.attr("position",o),this.group.add(l),data.setItemGraphicEl(r,l)}}},h.remove=function(t){var e=this.group,data=this._data;data&&t?data.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var m=c;t.exports=m},function(t,e,n){var r=n(2),o=n(5).round;function l(t,e,n){var rect=t.getArea(),o=t.getBaseAxis().isHorizontal(),l=rect.x,c=rect.y,h=rect.width,d=rect.height,f=n.get("lineStyle.width")||2;l-=f/2,c-=f/2,h+=f,d+=f,l=Math.floor(l),h=Math.round(h);var v=new r.Rect({shape:{x:l,y:c,width:h,height:d}});return e&&(v.shape[o?"width":"height"]=0,r.initProps(v,{shape:{width:h,height:d}},n)),v}function c(t,e,n){var l=t.getArea(),c=new r.Sector({shape:{cx:o(t.cx,1),cy:o(t.cy,1),r0:o(l.r0,1),r:o(l.r,1),startAngle:l.startAngle,endAngle:l.endAngle,clockwise:l.clockwise}});return e&&(c.shape.endAngle=l.startAngle,r.initProps(c,{shape:{endAngle:l.endAngle}},n)),c}e.createGridClipPath=l,e.createPolarClipPath=c,e.createClipPath=function(t,e,n){return t?"polar"===t.type?c(t,e,n):"cartesian2d"===t.type?l(t,e,n):null:null}},function(t,e,n){var map=n(0).map,r=n(95),o=n(49).isDimensionStacked;t.exports=function(t){return{seriesType:t,plan:r(),reset:function(t){var data=t.getData(),e=t.coordinateSystem,n=t.pipelineContext.large;if(e){var r=map(e.dimensions,(function(t){return data.mapDimension(t)})).slice(0,2),l=r.length,c=data.getCalculationInfo("stackResultDimension");return o(data,r[0])&&(r[0]=c),o(data,r[1])&&(r[1]=c),l&&{progress:function(t,data){for(var o=t.end-t.start,c=n&&new Float32Array(o*l),i=t.start,h=0,d=[],f=[];i<t.end;i++){var v;if(1===l){var m=data.get(r[0],i);v=!isNaN(m)&&e.dataToPoint(m,null,f)}else{m=d[0]=data.get(r[0],i);var y=d[1]=data.get(r[1],i);v=!isNaN(m)&&!isNaN(y)&&e.dataToPoint(d,null,f)}n?(c[h++]=v?v[0]:NaN,c[h++]=v?v[1]:NaN):data.setItemLayout(i,v&&v.slice()||[NaN,NaN])}n&&data.setLayout("symbolPoints",c)}}}}}}},function(t,e,n){var r=n(1),o=n(0),l=n(2);n(216),n(747),r.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new l.Rect({shape:t.coordinateSystem.getRect(),style:o.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),r.registerPreprocessor((function(option){option.xAxis&&option.yAxis&&!option.grid&&(option.grid={})}))},function(t,e){var n=function(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){return e().indexOfName(t)>=0},this.indexOfName=function(e){return t().indexOfName(e)},this.getItemVisual=function(e,n){return t().getItemVisual(e,n)}};t.exports=n},function(t,e){t.exports=function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var data=t.getData();data.filterSelf((function(t){for(var e=data.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}},function(t,e,n){var r=n(0),o=n(75),l=n(46),c=n(353);function h(t){this.pointerChecker,this._zr=t,this._opt={};var e=r.bind,n=e(d,this),l=e(f,this),c=e(v,this),h=e(m,this),x=e(y,this);o.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,o){this.disable(),this._opt=r.defaults(r.clone(o)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",l),t.on("mouseup",c)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",h),t.on("pinch",x))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",l),t.off("mouseup",c),t.off("mousewheel",h),t.off("pinch",x)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function d(t){if(!(l.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function f(t){if(this._dragging&&w("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!c.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,o=this._y,h=e-r,d=n-o;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&l.stop(t.event),_(this,"pan","moveOnMouseMove",t,{dx:h,dy:d,oldX:r,oldY:o,newX:e,newY:n})}}function v(t){l.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function m(t){var e=w("zoomOnMouseWheel",t,this._opt),n=w("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,o=Math.abs(r),l=t.offsetX,c=t.offsetY;if(0!==r&&(e||n)){if(e){var h=o>3?1.4:o>1?1.2:1.1;x(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?h:1/h,originX:l,originY:c})}if(n){var d=Math.abs(r);x(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(d>3?.4:d>1?.15:.05),originX:l,originY:c})}}}function y(t){c.isTaken(this._zr,"globalPan")||x(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function x(t,e,n,r,o){t.pointerChecker&&t.pointerChecker(r,o.originX,o.originY)&&(l.stop(r.event),_(t,e,n,r,o))}function _(t,e,n,o,l){l.isAvailableBehavior=r.bind(w,null,n,o),t.trigger(e,l)}function w(t,e,n){var o=n[t];return!t||o&&(!r.isString(o)||e.event[o+"Key"])}r.mixin(h,o);var S=h;t.exports=S},function(t,e,n){var r=n(1),o=n(0),l=n(168),c=n(876);n(877),n(878),n(372),r.registerPreprocessor((function(option){if(option){(!option.axisPointer||0===option.axisPointer.length)&&(option.axisPointer={});var link=option.axisPointer.link;link&&!o.isArray(link)&&(option.axisPointer.link=[link])}})),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=l.collect(t,e)})),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},c)},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(308),o=n(18),l=n(0),c=n(692),h=n(696),d=n(700),f=n(702),v=n(703),m=!o.canvasSupported,y={canvas:d},x={};var _=function(t,e,n){n=n||{},this.dom=e,this.id=t;var r=this,d=new h,x=n.renderer;if(m){if(!y.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");x="vml"}else x&&y[x]||(x="canvas");var _=new y[x](e,d,n,t);this.storage=d,this.painter=_;var w=o.node||o.worker?null:new v(_.getViewportRoot(),_.root);this.handler=new c(d,_,w,_.root),this.animation=new f({stage:{update:l.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var S=d.delFromStorage,M=d.addToStorage;d.delFromStorage=function(t){S.call(d,t),t&&t.removeSelfFromZr(r)},d.addToStorage=function(t){M.call(d,t),t.addSelfToZr(r)}};_.prototype={constructor:_,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,style){if(this.painter.addHover){var e=this.painter.addHover(t,style);return this.refreshHover(),e}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete x[t]}},e.version="4.3.1",e.init=function(t,e){var n=new _(r(),t,e);return x[n.id]=n,n},e.dispose=function(t){if(t)t.dispose();else{for(var e in x)x.hasOwnProperty(e)&&x[e].dispose();x={}}return this},e.getInstance=function(t){return x[t]},e.registerPainter=function(t,e){y[t]=e}},function(t,e,n){var r=n(27),o=n(11),l=r.identity;function c(t){return t>5e-5||t<-5e-5}var h=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},d=h.prototype;d.transform=null,d.needLocalTransform=function(){return c(this.rotation)||c(this.position[0])||c(this.position[1])||c(this.scale[0]-1)||c(this.scale[1]-1)};var f=[];d.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),o=this.transform;if(n||e){o=o||r.create(),n?this.getLocalTransform(o):l(o),e&&(n?r.mul(o,t.transform,o):r.copy(o,t.transform)),this.transform=o;var c=this.globalScaleRatio;if(null!=c&&1!==c){this.getGlobalScale(f);var h=f[0]<0?-1:1,d=f[1]<0?-1:1,v=((f[0]-h)*c+h)/f[0]||0,m=((f[1]-d)*c+d)/f[1]||0;o[0]*=v,o[1]*=v,o[2]*=m,o[3]*=m}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,o)}else o&&l(o)},d.getLocalTransform=function(t){return h.getLocalTransform(this,t)},d.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},d.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var v=[],m=r.create();d.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=this.position,o=this.scale;c(e-1)&&(e=Math.sqrt(e)),c(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),r[0]=t[4],r[1]=t[5],o[0]=e,o[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},d.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(v,t.invTransform,e),e=v);var n=this.origin;n&&(n[0]||n[1])&&(m[4]=n[0],m[5]=n[1],r.mul(v,e,m),v[4]-=n[0],v[5]-=n[1],e=v),this.setLocalTransform(e)}},d.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},d.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&o.applyTransform(n,n,r),n},d.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&o.applyTransform(n,n,r),n},h.getLocalTransform=function(t,e){l(e=e||[]);var n=t.origin,o=t.scale||[1,1],c=t.rotation||0,h=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),r.scale(e,e,o),c&&r.rotate(e,e,c),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=h[0],e[5]+=h[1],e};var y=h;t.exports=y},function(t,e){var n=1;"undefined"!=typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var r=n;e.debugMode=0,e.devicePixelRatio=r},function(t,e){e.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},e.WILL_BE_RESTORED=9},function(t,e,n){var r=n(0),o=r.retrieve2,l=r.retrieve3,c=r.each,h=r.normalizeCssArray,d=r.isString,f=r.isObject,v=n(33),m=n(317),y=n(207),x=n(313),_=n(159),w=_.ContextCachedBy,S=_.WILL_BE_RESTORED,M=v.DEFAULT_FONT,T={left:1,right:1,center:1},A={top:1,bottom:1,middle:1},I=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],C={},D={};function L(style){if(style){style.font=v.makeFont(style);var t=style.textAlign;"middle"===t&&(t="center"),style.textAlign=null==t||T[t]?t:"left";var e=style.textVerticalAlign||style.textBaseline;"center"===e&&(e="middle"),style.textVerticalAlign=null==e||A[e]?e:"top",style.textPadding&&(style.textPadding=h(style.textPadding))}}function k(t,style,rect,e,n){if(rect&&style.textRotation){var r=style.textOrigin;"center"===r?(e=rect.width/2+rect.x,n=rect.height/2+rect.y):r&&(e=r[0]+rect.x,n=r[1]+rect.y),t.translate(e,n),t.rotate(-style.textRotation),t.translate(-e,-n)}}function P(t,e,n,style,r,c,h,d){var f=style.rich[n.styleName]||{};f.text=n.text;var v=n.textVerticalAlign,m=c+r/2;"top"===v?m=c+n.height/2:"bottom"===v&&(m=c+r-n.height/2),!n.isLineHolder&&O(f)&&E(t,e,f,"right"===d?h-n.width:"center"===d?h-n.width/2:h,m-n.height/2,n.width,n.height);var y=n.textPadding;y&&(h=F(h,d,y),m-=n.height/2-y[2]-n.textHeight/2),z(e,"shadowBlur",l(f.textShadowBlur,style.textShadowBlur,0)),z(e,"shadowColor",f.textShadowColor||style.textShadowColor||"transparent"),z(e,"shadowOffsetX",l(f.textShadowOffsetX,style.textShadowOffsetX,0)),z(e,"shadowOffsetY",l(f.textShadowOffsetY,style.textShadowOffsetY,0)),z(e,"textAlign",d),z(e,"textBaseline","middle"),z(e,"font",n.font||M);var x=B(f.textStroke||style.textStroke,w),_=V(f.textFill||style.textFill),w=o(f.textStrokeWidth,style.textStrokeWidth);x&&(z(e,"lineWidth",w),z(e,"strokeStyle",x),e.strokeText(n.text,h,m)),_&&(z(e,"fillStyle",_),e.fillText(n.text,h,m))}function O(style){return!!(style.textBackgroundColor||style.textBorderWidth&&style.textBorderColor)}function E(t,e,style,n,r,o,l){var c=style.textBackgroundColor,h=style.textBorderWidth,v=style.textBorderColor,x=d(c);if(z(e,"shadowBlur",style.textBoxShadowBlur||0),z(e,"shadowColor",style.textBoxShadowColor||"transparent"),z(e,"shadowOffsetX",style.textBoxShadowOffsetX||0),z(e,"shadowOffsetY",style.textBoxShadowOffsetY||0),x||h&&v){e.beginPath();var _=style.textBorderRadius;_?m.buildPath(e,{x:n,y:r,width:o,height:l,r:_}):e.rect(n,r,o,l),e.closePath()}if(x)if(z(e,"fillStyle",c),null!=style.fillOpacity){var w=e.globalAlpha;e.globalAlpha=style.fillOpacity*style.opacity,e.fill(),e.globalAlpha=w}else e.fill();else if(f(c)){var image=c.image;(image=y.createOrUpdateImage(image,null,t,N,c))&&y.isImageReady(image)&&e.drawImage(image,n,r,o,l)}if(h&&v)if(z(e,"lineWidth",h),z(e,"strokeStyle",v),null!=style.strokeOpacity){w=e.globalAlpha;e.globalAlpha=style.strokeOpacity*style.opacity,e.stroke(),e.globalAlpha=w}else e.stroke()}function N(image,t){t.image=image}function R(t,e,style,rect){var n=style.x||0,r=style.y||0,o=style.textAlign,l=style.textVerticalAlign;if(rect){var c=style.textPosition;if(c instanceof Array)n=rect.x+H(c[0],rect.width),r=rect.y+H(c[1],rect.height);else{var h=e&&e.calculateTextPosition?e.calculateTextPosition(C,style,rect):v.calculateTextPosition(C,style,rect);n=h.x,r=h.y,o=o||h.textAlign,l=l||h.textVerticalAlign}var d=style.textOffset;d&&(n+=d[0],r+=d[1])}return(t=t||{}).baseX=n,t.baseY=r,t.textAlign=o,t.textVerticalAlign=l,t}function z(t,e,n){return t[e]=x(t,e,n),t[e]}function B(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function V(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function H(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function F(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}e.normalizeTextStyle=function(style){return L(style),c(style.rich,L),style},e.renderText=function(t,e,text,style,rect,n){style.rich?function(t,e,text,style,rect,n){n!==S&&(e.__attrCachedBy=w.NONE);var r=t.__textCotentBlock;r&&!t.__dirtyText||(r=t.__textCotentBlock=v.parseRichText(text,style));!function(t,e,n,style,rect){var r=n.width,o=n.outerWidth,l=n.outerHeight,c=style.textPadding,h=R(D,t,style,rect),d=h.baseX,f=h.baseY,m=h.textAlign,y=h.textVerticalAlign;k(e,style,rect,d,f);var x=v.adjustTextX(d,o,m),_=v.adjustTextY(f,l,y),w=x,S=_;c&&(w+=c[3],S+=c[0]);var M=w+r;O(style)&&E(t,e,style,x,_,o,l);for(var i=0;i<n.lines.length;i++){for(var T,line=n.lines[i],A=line.tokens,I=A.length,C=line.lineHeight,L=line.width,N=0,z=w,B=M,V=I-1;N<I&&(!(T=A[N]).textAlign||"left"===T.textAlign);)P(t,e,T,style,C,S,z,"left"),L-=T.width,z+=T.width,N++;for(;V>=0&&"right"===(T=A[V]).textAlign;)P(t,e,T,style,C,S,B,"right"),L-=T.width,B-=T.width,V--;for(z+=(r-(z-w)-(M-B)-L)/2;N<=V;)T=A[N],P(t,e,T,style,C,S,z+T.width/2,"center"),z+=T.width,N++;S+=C}}(t,e,r,style,rect)}(t,e,text,style,rect,n):function(t,e,text,style,rect,n){"use strict";var r,o=O(style),l=!1,c=e.__attrCachedBy===w.PLAIN_TEXT;n!==S?(n&&(r=n.style,l=!o&&c&&r),e.__attrCachedBy=o?w.NONE:w.PLAIN_TEXT):c&&(e.__attrCachedBy=w.NONE);var h=style.font||M;l&&h===(r.font||M)||(e.font=h);var d=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,d=t.__computedFont=e.font);var f=style.textPadding,m=style.textLineHeight,y=t.__textCotentBlock;y&&!t.__dirtyText||(y=t.__textCotentBlock=v.parsePlainText(text,d,f,m,style.truncate));var _=y.outerHeight,T=y.lines,A=y.lineHeight,C=R(D,t,style,rect),L=C.baseX,P=C.baseY,N=C.textAlign||"left",z=C.textVerticalAlign;k(e,style,rect,L,P);var H=v.adjustTextY(P,_,z),G=L,W=H;if(o||f){var j=v.getWidth(text,d);f&&(j+=f[1]+f[3]);var U=v.adjustTextX(L,j,N);o&&E(t,e,style,U,H,j,_),f&&(G=F(L,N,f),W+=f[0])}e.textAlign=N,e.textBaseline="middle",e.globalAlpha=style.opacity||1;for(var i=0;i<I.length;i++){var Z=I[i],Y=Z[0],X=Z[1],$=style[Y];l&&$===r[Y]||(e[X]=x(e,X,$||Z[2]))}W+=A/2;var K=style.textStrokeWidth,J=l?r.textStrokeWidth:null,Q=!l||K!==J,tt=!l||Q||style.textStroke!==r.textStroke,et=B(style.textStroke,K),nt=V(style.textFill);et&&(Q&&(e.lineWidth=K),tt&&(e.strokeStyle=et));nt&&(l&&style.textFill===r.textFill||(e.fillStyle=nt));if(1===T.length)et&&e.strokeText(T[0],G,W),nt&&e.fillText(T[0],G,W);else for(i=0;i<T.length;i++)et&&e.strokeText(T[i],G,W),nt&&e.fillText(T[i],G,W),W+=A}(t,e,text,style,rect,n)},e.getBoxPosition=R,e.getStroke=B,e.getFill=V,e.parsePercent=H,e.needDrawText=function(text,style){return null!=text&&(text||style.textBackgroundColor||style.textBorderWidth&&style.textBorderColor||style.textPadding)}},function(t,e){var n=function(t){this.colorStops=t||[]};n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var r=n;t.exports=r},function(t,e,n){var r=n(76),o=n(122),l=n(54),c=function(){this.group=new r,this.uid=o.getUID("viewComponent")},h=c.prototype={constructor:c,init:function(t,e){},render:function(t,e,n,r){},dispose:function(){},filterForExposedEvent:null};h.updateView=h.updateLayout=h.updateVisual=function(t,e,n,r){},l.enableClassExtend(c),l.enableClassManagement(c,{registerWhenExtend:!0});var d=c;t.exports=d},function(t,e,n){var r=n(54);function o(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}o.prototype.parse=function(t){return t},o.prototype.getSetting=function(t){return this._setting[t]},o.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},o.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},o.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},o.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},o.prototype.unionExtentFromData=function(data,t){this.unionExtent(data.getApproximateExtent(t))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(t){this._isBlank=t},o.prototype.getLabel=null,r.enableClassExtend(o),r.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},function(t,e,n){var r=n(5),o=n(10),l=n(163),c=n(338),h=r.round,d=l.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),d.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=c.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,r=this._niceExtent,o=this._intervalPrecision,l=[];if(!e)return l;n[0]<r[0]&&(t?l.push(h(r[0]-e,o)):l.push(n[0]));for(var c=r[0];c<=r[1]&&(l.push(c),(c=h(c+e,o))!==l[l.length-1]);)if(l.length>1e4)return[];var d=l.length?l[l.length-1]:r[1];return n[1]>d&&(t?l.push(h(d+e,o)):l.push(n[1])),l},getMinorTicks:function(t){for(var e=this.getTicks(!0),n=[],o=this.getExtent(),i=1;i<e.length;i++){for(var l=e[i],c=e[i-1],h=0,d=[],f=(l-c)/t;h<t-1;){var v=r.round(c+(h+1)*f);v>o[0]&&v<o[1]&&d.push(v),h++}n.push(d)}return n},getLabel:function(data,t){if(null==data)return"";var e=t&&t.precision;return null==e?e=r.getPrecisionSafe(data)||0:"auto"===e&&(e=this._intervalPrecision),data=h(data,e,!0),o.addCommas(data)},niceTicks:function(t,e,n){t=t||5;var r=this._extent,span=r[1]-r[0];if(isFinite(span)){span<0&&(span=-span,r.reverse());var o=c.intervalScaleNiceTicks(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var span=e[1]-e[0];isFinite(span)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=h(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=h(Math.ceil(e[1]/r)*r))}});d.create=function(){return new d};var f=d;t.exports=f},function(t,e,n){var r=n(0),o=n(5).parsePercent,l=n(49).isDimensionStacked,c=n(95),h="undefined"!=typeof Float32Array?Float32Array:Array;function d(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function f(t){return t.dim+t.index}function v(t,e){var n=[];return e.eachSeriesByType(t,(function(t){w(t)&&!S(t)&&n.push(t)})),n}function m(t){var e=function(t){var e={};r.each(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var data=t.getData(),r=n.dim+"_"+n.index,o=data.mapDimension(n.dim),i=0,l=data.count();i<l;++i){var c=data.get(o,i);e[r]?e[r].push(c):e[r]=[c]}}));var n=[];for(var o in e)if(e.hasOwnProperty(o)){var l=e[o];if(l){l.sort((function(a,b){return a-b}));for(var c=null,h=1;h<l.length;++h){var d=l[h]-l[h-1];d>0&&(c=null===c?d:Math.min(c,d))}n[o]=c}}return n}(t),n=[];return r.each(t,(function(t){var r,l=t.coordinateSystem.getBaseAxis(),c=l.getExtent();if("category"===l.type)r=l.getBandWidth();else if("value"===l.type||"time"===l.type){var h=l.dim+"_"+l.index,v=e[h],m=Math.abs(c[1]-c[0]),y=l.scale.getExtent(),x=Math.abs(y[1]-y[0]);r=v?m/x*v:m}else{var data=t.getData();r=Math.abs(c[1]-c[0])/data.count()}var _=o(t.get("barWidth"),r),w=o(t.get("barMaxWidth"),r),S=o(t.get("barMinWidth")||1,r),M=t.get("barGap"),T=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:_,barMaxWidth:w,barMinWidth:S,barGap:M,barCategoryGap:T,axisKey:f(l),stackId:d(t)})})),y(n)}function y(t){var e={};r.each(t,(function(t,n){var r=t.axisKey,o=t.bandWidth,l=e[r]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=l.stacks;e[r]=l;var h=t.stackId;c[h]||l.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=t.barWidth;d&&!c[h].width&&(c[h].width=d,d=Math.min(l.remainedWidth,d),l.remainedWidth-=d);var f=t.barMaxWidth;f&&(c[h].maxWidth=f);var v=t.barMinWidth;v&&(c[h].minWidth=v);var m=t.barGap;null!=m&&(l.gap=m);var y=t.barCategoryGap;null!=y&&(l.categoryGap=y)}));var n={};return r.each(e,(function(t,e){n[e]={};var l=t.stacks,c=t.bandWidth,h=o(t.categoryGap,c),d=o(t.gap,1),f=t.remainedWidth,v=t.autoWidthCount,m=(f-h)/(v+(v-1)*d);m=Math.max(m,0),r.each(l,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,f-=r+d*r,v--}else{var r=m;e&&e<r&&(r=Math.min(e,f)),n&&n>r&&(r=n),r!==m&&(t.width=r,f-=r+d*r,v--)}})),m=(f-h)/(v+(v-1)*d),m=Math.max(m,0);var y,x=0;r.each(l,(function(t,e){t.width||(t.width=m),y=t,x+=t.width*(1+d)})),y&&(x-=y.width*d);var _=-x/2;r.each(l,(function(t,r){n[e][r]=n[e][r]||{bandWidth:c,offset:_,width:t.width},_+=t.width*(1+d)}))})),n}function x(t,e,n){if(t&&e){var r=t[f(e)];return null!=r&&null!=n&&(r=r[d(n)]),r}}var _={seriesType:"bar",plan:c(),reset:function(t){if(w(t)&&S(t)){var data=t.getData(),e=t.coordinateSystem,n=e.grid.getRect(),r=e.getBaseAxis(),o=e.getOtherAxis(r),l=data.mapDimension(o.dim),c=data.mapDimension(r.dim),d=o.isHorizontal(),f=d?0:1,v=x(m([t]),r,t).width;return v>.5||(v=.5),{progress:function(t,data){var m,y=t.count,x=new h(2*y),_=new h(2*y),w=new h(y),S=[],T=[],A=0,I=0;for(;null!=(m=t.next());)T[f]=data.get(l,m),T[1-f]=data.get(c,m),S=e.dataToPoint(T,null,S),_[A]=d?n.x+n.width:S[0],x[A++]=S[0],_[A]=d?S[1]:n.y+n.height,x[A++]=S[1],w[I++]=m;data.setLayout({largePoints:x,largeDataIndices:w,largeBackgroundPoints:_,barWidth:v,valueAxisStart:M(r,o,!1),backgroundStart:d?n.x:n.y,valueAxisHorizontal:d})}}}}};function w(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function S(t){return t.pipelineContext&&t.pipelineContext.large}function M(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=function(t){var e=[],n=t.axis;if("category"===n.type){for(var o=n.getBandWidth(),i=0;i<t.count;i++)e.push(r.defaults({bandWidth:o,axisKey:"axis0",stackId:"__ec_stack_"+i},t));var l=y(e),c=[];for(i=0;i<t.count;i++){var h=l.axis0["__ec_stack_"+i];h.offsetCenter=h.offset+h.width/2,c.push(h)}return c}},e.prepareLayoutBarSeries=v,e.makeColumnLayout=m,e.retrieveColumnLayout=x,e.layout=function(t,e){var n=v(t,e),o=m(n),c={},h={};r.each(n,(function(t){var data=t.getData(),e=t.coordinateSystem,n=e.getBaseAxis(),r=d(t),v=o[f(n)][r],m=v.offset,y=v.width,x=e.getOtherAxis(n),_=t.get("barMinHeight")||0;c[r]=c[r]||[],h[r]=h[r]||[],data.setLayout({bandWidth:v.bandWidth,offset:m,size:y});for(var w=data.mapDimension(x.dim),S=data.mapDimension(n.dim),T=l(data,w),A=x.isHorizontal(),I=M(n,x,T),C=0,D=data.count();C<D;C++){var L,k,P,O,E,N=data.get(w,C),R=data.get(S,C),z=N>=0?"p":"n",B=I;if(T&&(c[r][R]||(c[r][R]={p:I,n:I}),B=c[r][R][z]),A)L=B,k=(E=e.dataToPoint([N,R]))[1]+m,P=E[0]-I,O=y,Math.abs(P)<_&&(P=(P<0?-1:1)*_),isNaN(P)||T&&(c[r][R][z]+=P);else L=(E=e.dataToPoint([R,N]))[0]+m,k=B,P=y,O=E[1]-I,Math.abs(O)<_&&(O=(O<=0?-1:1)*_),isNaN(O)||T&&(c[r][R][z]+=O);data.setItemLayout(C,{x:L,y:k,width:P,height:O})}}),this)},e.largeLayout=_},function(t,e,n){var r=n(0),o=n(38).createSymbol,l=n(2),c=n(5).parsePercent,h=n(215).getDefaultLabel;function d(data,t,e){l.Group.call(this),this.updateData(data,t,e)}var f=d.prototype,v=d.getSymbolSize=function(data,t){var e=data.getItemVisual(t,"symbolSize");return e instanceof Array?e.slice():[+e,+e]};function m(t){return[t[0]/2,t[1]/2]}function y(t,e){this.parent.drift(t,e)}f._createSymbol=function(t,data,e,n,r){this.removeAll();var l=data.getItemVisual(e,"color"),c=o(t,-1,-1,2,2,l,r);c.attr({z2:100,culling:!0,scale:m(n)}),c.drift=y,this._symbolType=t,this.add(c)},f.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},f.getSymbolPath=function(){return this.childAt(0)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0).trigger("emphasis")},f.downplay=function(){this.childAt(0).trigger("normal")},f.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},f.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},f.updateData=function(data,t,e){this.silent=!1;var n=data.getItemVisual(t,"symbol")||"circle",r=data.hostModel,o=v(data,t),c=n!==this._symbolType;if(c){var h=data.getItemVisual(t,"symbolKeepAspect");this._createSymbol(n,data,t,o,h)}else{(d=this.childAt(0)).silent=!1,l.updateProps(d,{scale:m(o)},r,t)}if(this._updateCommon(data,t,o,e),c){var d=this.childAt(0),f=e&&e.fadeIn,y={scale:d.scale.slice()};f&&(y.style={opacity:d.style.opacity}),d.scale=[0,0],f&&(d.style.opacity=0),l.initProps(d,y,r,t)}this._seriesModel=r};var x=["itemStyle"],_=["emphasis","itemStyle"],w=["label"],S=["emphasis","label"];function M(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var n=this.__symbolOriginalScale,r=n[1]/n[0],o={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*r)]};this.animateTo(o,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}f._updateCommon=function(data,t,e,n){var o=this.childAt(0),d=data.hostModel,f=data.getItemVisual(t,"color");"image"!==o.type?o.useStyle({strokeNoScale:!0}):o.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var v=n&&n.itemStyle,y=n&&n.hoverItemStyle,T=n&&n.symbolOffset,A=n&&n.labelModel,I=n&&n.hoverLabelModel,C=n&&n.hoverAnimation,D=n&&n.cursorStyle;if(!n||data.hasItemOption){var L=n&&n.itemModel?n.itemModel:data.getItemModel(t);v=L.getModel(x).getItemStyle(["color"]),y=L.getModel(_).getItemStyle(),T=L.getShallow("symbolOffset"),A=L.getModel(w),I=L.getModel(S),C=L.getShallow("hoverAnimation"),D=L.getShallow("cursor")}else y=r.extend({},y);var k=o.style,P=data.getItemVisual(t,"symbolRotate");o.attr("rotation",(P||0)*Math.PI/180||0),T&&o.attr("position",[c(T[0],e[0]),c(T[1],e[1])]),D&&o.attr("cursor",D),o.setColor(f,n&&n.symbolInnerColor),o.setStyle(v);var O=data.getItemVisual(t,"opacity");null!=O&&(k.opacity=O);var E=data.getItemVisual(t,"liftZ"),N=o.__z2Origin;null!=E?null==N&&(o.__z2Origin=o.z2,o.z2+=E):null!=N&&(o.z2=N,o.__z2Origin=null);var R=n&&n.useNameLabel;l.setLabelStyle(k,y,A,I,{labelFetcher:d,labelDataIndex:t,defaultText:function(t,e){return R?data.getName(t):h(data,t)},isRectText:!0,autoColor:f}),o.__symbolOriginalScale=m(e),o.hoverStyle=y,o.highDownOnUpdate=C&&d.isAnimationEnabled()?M:null,l.setHoverStyle(o)},f.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,(!e||!e.keepLabel)&&(n.style.text=null),l.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},r.inherits(d,l.Group);var T=d;t.exports=T},function(t,e,n){var r=n(0),o=n(346),l=n(21),c=n(9),h=c.getLayoutParams,d=c.mergeLayoutParam,f=n(337),v=["value","category","time","log"];t.exports=function(t,e,n,c){r.each(v,(function(l){e.extend({type:t+"Axis."+l,mergeDefaultAndTheme:function(option,e){var o=this.layoutMode,c=o?h(option):{},f=e.getTheme();r.merge(option,f.get(l+"Axis")),r.merge(option,this.getDefaultOption()),option.type=n(t,option),o&&d(option,c,o)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=f.createByAxisModel(this))},getCategories:function(t){var option=this.option;if("category"===option.type)return t?option.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r.mergeAll([{},o[l+"Axis"],c],!0)})})),l.registerSubTypeDefaulter(t+"Axis",r.curry(n,t))}},function(t,e,n){var r=n(0),o=n(19),l=r.each,c=r.curry;function h(t,e){return"all"===t||r.isArray(t)&&r.indexOf(t,e)>=0||t===e}function d(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[v(t)]}function f(t){return!!t.get("handle.show")}function v(t){return t.type+"||"+t.id}e.collect=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var d=e.getComponent("tooltip"),m=e.getComponent("axisPointer"),y=m.get("link",!0)||[],x=[];l(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var _=v(n.model),w=t.coordSysAxesInfo[_]={};t.coordSysMap[_]=n;var S=n.model.getModel("tooltip",d);if(l(n.getAxes(),c(I,!1,null)),n.getTooltipAxes&&d&&S.get("show")){var M="axis"===S.get("trigger"),T="cross"===S.get("axisPointer.type"),A=n.getTooltipAxes(S.get("axisPointer.axis"));(M||T)&&l(A.baseAxes,c(I,!T||"cross",M)),T&&l(A.otherAxes,c(I,"cross",!1))}}function I(c,d,_){var M=_.model.getModel("axisPointer",m),T=M.get("show");if(T&&("auto"!==T||c||f(M))){null==d&&(d=M.get("triggerTooltip"));var A=(M=c?function(t,e,n,c,h,d){var f=e.getModel("axisPointer"),v={};l(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){v[t]=r.clone(f.get(t))})),v.snap="category"!==t.type&&!!d,"cross"===f.get("type")&&(v.type="line");var m=v.label||(v.label={});if(null==m.show&&(m.show=!1),"cross"===h){var y=f.get("label.show");if(m.show=null==y||y,!d){var x=v.lineStyle=f.get("crossStyle");x&&r.defaults(m,x.textStyle)}}return t.model.getModel("axisPointer",new o(v,n,c))}(_,S,m,e,c,d):M).get("snap"),I=v(_.model),C=d||A||"category"===_.type,D=t.axesInfo[I]={key:I,axis:_,coordSys:n,axisPointerModel:M,triggerTooltip:d,involveSeries:C,snap:A,useHandle:f(M),seriesModels:[]};w[I]=D,t.seriesInvolved|=C;var L=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(h(o[r+"AxisId"],n.id)||h(o[r+"AxisIndex"],n.componentIndex)||h(o[r+"AxisName"],n.name))return i}}(y,_);if(null!=L){var k=x[L]||(x[L]={axesInfo:{}});k.axesInfo[I]=D,k.mapper=y[L].mapper,D.linkGroup=k}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get("tooltip.trigger",!0),o=e.get("tooltip.show",!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==o&&!1!==e.get("axisPointer.show",!0)&&l(t.coordSysAxesInfo[v(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}(n,t),n},e.fixValue=function(t){var e=d(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,option=n.option,o=n.get("status"),l=n.get("value");null!=l&&(l=r.parse(l));var c=f(n);null==o&&(option.status=c?"show":"hide");var h=r.getExtent().slice();h[0]>h[1]&&h.reverse(),(null==l||l>h[1])&&(l=h[1]),l<h[0]&&(l=h[0]),option.value=l,c&&(option.status=e.axis.scale.isBlank()?"hide":"show")}},e.getAxisInfo=d,e.getAxisPointerModel=function(t){var e=d(t);return e&&e.axisPointerModel},e.makeKey=v},function(t,e,n){var r=n(0).createHashMap;t.exports=function(t){return{getTargetSeries:function(e){var n={},o=r();return e.eachSeriesByType(t,(function(t){t.__paletteScope=n,o.set(t.uid,t)})),o},reset:function(t,e){var n=t.getRawData(),r={},data=t.getData();data.each((function(t){var e=data.getRawIndex(t);r[e]=t})),n.each((function(e){var o,l=r[e],c=null!=l&&data.getItemVisual(l,"color",!0),h=null!=l&&data.getItemVisual(l,"borderColor",!0);if(c&&h||(o=n.getItemModel(e)),!c){var d=o.get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());null!=l&&data.setItemVisual(l,"color",d)}if(!h){var f=o.get("itemStyle.borderColor");null!=l&&data.setItemVisual(l,"borderColor",f)}}))}}}},function(t,e,n){n(7).__DEV__;var r=n(0),o=r.each,l=r.createHashMap,c=n(214),h=n(775),d=n(780),f=n(14),v={geoJSON:h,svg:d},m={load:function(t,e,n){var r,c=[],h=l(),d=l(),m=x(t);return o(m,(function(l){var f=v[l.type].load(t,l,n);o(f.regions,(function(t){var n=t.name;e&&e.hasOwnProperty(n)&&(t=t.cloneShallow(n=e[n])),c.push(t),h.set(n,t),d.set(n,t.center)}));var rect=f.boundingRect;rect&&(r?r.union(rect):r=rect.clone())})),{regions:c,regionsMap:h,nameCoordMap:d,boundingRect:r||new f(0,0,0,0)}},makeGraphic:y("makeGraphic"),removeGraphic:y("removeGraphic")};function y(t){return function(e,n){var r=x(e),l=[];return o(r,(function(r){var o=v[r.type][t];o&&l.push(o(e,r,n))})),l}}function x(t){return c.retrieveMap(t)||[]}t.exports=m},function(t,e){var n={axisPointer:1,tooltip:1,brush:1};e.onIrrelevantElement=function(t,e,r){var o=e.getComponentByElement(t.topTarget),l=o&&o.coordinateSystem;return o&&o!==r&&!n[o.mainType]&&l&&l.model!==r}},function(t,e,n){var r=n(0),o=n(2),l=n(33),c=n(10),h=n(27),d=n(43),f=n(67);function v(t,e,n,r,o){var text=m(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),h=n.getModel("label"),d=c.normalizeCssArray(h.get("padding")||0),f=h.getFont(),v=l.getBoundingRect(text,f),y=o.position,x=v.width+d[1]+d[3],_=v.height+d[0]+d[2],w=o.align;"right"===w&&(y[0]-=x),"center"===w&&(y[0]-=x/2);var S=o.verticalAlign;"bottom"===S&&(y[1]-=_),"middle"===S&&(y[1]-=_/2),function(t,e,n,r){var o=r.getWidth(),l=r.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+n,l)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(y,x,_,r);var M=h.get("backgroundColor");M&&"auto"!==M||(M=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:x,height:_,r:h.get("borderRadius")},position:y.slice(),style:{text:text,textFont:f,textFill:h.getTextColor(),textPosition:"inside",textPadding:d,fill:M,stroke:h.get("borderColor")||"transparent",lineWidth:h.get("borderWidth")||0,shadowBlur:h.get("shadowBlur"),shadowColor:h.get("shadowColor"),shadowOffsetX:h.get("shadowOffsetX"),shadowOffsetY:h.get("shadowOffsetY")},z2:10}}function m(t,e,n,o,l){t=e.scale.parse(t);var text=e.scale.getLabel(t,{precision:l.precision}),c=l.formatter;if(c){var h={value:d.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};r.each(o,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,o=e&&e.getDataParams(r);o&&h.seriesData.push(o)})),r.isString(c)?text=c.replace("{value}",text):r.isFunction(c)&&(text=c(h))}return text}function y(t,e,n){var r=h.create();return h.rotate(r,r,n.rotation),h.translate(r,r,n.position),o.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}e.buildElStyle=function(t){var style,e=t.get("type"),n=t.getModel(e+"Style");return"line"===e?(style=n.getLineStyle()).fill=null:"shadow"===e&&((style=n.getAreaStyle()).stroke=null),style},e.buildLabelElOption=v,e.getValueLabel=m,e.getTransformedPosition=y,e.buildCartesianSingleLabelElOption=function(t,e,n,r,o,l){var c=f.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get("label.margin"),v(e,r,o,l,{position:y(r.axis,t,n),align:c.textAlign,verticalAlign:c.textVerticalAlign})},e.makeLineShape=function(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}},e.makeRectShape=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},e.makeSectorShape=function(t,e,n,r,o,l){return{cx:t,cy:e,r0:n,r:r,startAngle:o,endAngle:l,clockwise:!0}}},function(t,e,n){var r=n(0),o=n(83),l=r.each;function c(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}e.createVisualMappings=function(option,t,e){var n={};return l(t,(function(t){var c,h=n[t]=((c=function(){}).prototype.__hidden=c.prototype,new c);l(option[t],(function(n,l){if(o.isValidType(l)){var c={type:l,visual:n};e&&e(c,t),h[l]=new o(c),"opacity"===l&&((c=r.clone(c)).type="colorAlpha",h.__hidden.__alphaForOpacity=new o(c))}}))})),n},e.replaceVisualOption=function(t,e,n){var o;r.each(n,(function(t){e.hasOwnProperty(t)&&c(e[t])&&(o=!0)})),o&&r.each(n,(function(n){e.hasOwnProperty(n)&&c(e[n])?t[n]=r.clone(e[n]):delete t[n]}))},e.applyVisual=function(t,e,data,n,l,c){var h,d={};function f(t){return data.getItemVisual(h,t)}function v(t,e){data.setItemVisual(h,t,e)}function m(t,r){h=null==c?t:r;var o=data.getRawDataItem(h);if(!o||!1!==o.visualMap)for(var m=n.call(l,t),y=e[m],x=d[m],i=0,_=x.length;i<_;i++){var w=x[i];y[w]&&y[w].applyVisual(t,f,v)}}r.each(t,(function(t){var n=o.prepareVisualTypes(e[t]);d[t]=n})),null==c?data.each(m):data.each([c],m)},e.incrementalApplyVisual=function(t,e,n,l){var c={};return r.each(t,(function(t){var n=o.prepareVisualTypes(e[t]);c[t]=n})),{progress:function(t,data){function r(t){return data.getItemVisual(h,t)}function o(t,e){data.setItemVisual(h,t,e)}var h;for(null!=l&&(l=data.getDimension(l));null!=(h=t.next());){var d=data.getRawDataItem(h);if(!d||!1!==d.visualMap)for(var f=null!=l?data.get(l,h,!0):h,v=n(f),m=e[v],y=c[v],i=0,x=y.length;i<x;i++){var _=y[i];m[_]&&m[_].applyVisual(f,r,o)}}}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){function n(t,e,n,r){var o=e+1;if(o===n)return 1;if(r(t[o++],t[e])<0){for(;o<n&&r(t[o],t[o-1])<0;)o++;!function(t,e,n){n--;for(;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,o)}else for(;o<n&&r(t[o],t[o-1])>=0;)o++;return o-e}function r(t,e,n,r,o){for(r===e&&r++;r<n;r++){for(var l,c=t[r],h=e,d=r;h<d;)o(c,t[l=h+d>>>1])<0?d=l:h=l+1;var f=r-h;switch(f){case 3:t[h+3]=t[h+2];case 2:t[h+2]=t[h+1];case 1:t[h+1]=t[h];break;default:for(;f>0;)t[h+f]=t[h+f-1],f--}t[h]=c}}function o(t,e,n,r,o,l){var c=0,h=0,d=1;if(l(t,e[n+o])>0){for(h=r-o;d<h&&l(t,e[n+o+d])>0;)c=d,(d=1+(d<<1))<=0&&(d=h);d>h&&(d=h),c+=o,d+=o}else{for(h=o+1;d<h&&l(t,e[n+o-d])<=0;)c=d,(d=1+(d<<1))<=0&&(d=h);d>h&&(d=h);var f=c;c=o-d,d=o-f}for(c++;c<d;){var v=c+(d-c>>>1);l(t,e[n+v])>0?c=v+1:d=v}return d}function l(t,e,n,r,o,l){var c=0,h=0,d=1;if(l(t,e[n+o])<0){for(h=o+1;d<h&&l(t,e[n+o-d])<0;)c=d,(d=1+(d<<1))<=0&&(d=h);d>h&&(d=h);var f=c;c=o-d,d=o-f}else{for(h=r-o;d<h&&l(t,e[n+o+d])>=0;)c=d,(d=1+(d<<1))<=0&&(d=h);d>h&&(d=h),c+=o,d+=o}for(c++;c<d;){var v=c+(d-c>>>1);l(t,e[n+v])<0?d=v:c=v+1}return d}function c(t,e){var n,r,c,h=7,d=0;n=t.length;var f=[];function v(i){var n=r[i],v=c[i],m=r[i+1],y=c[i+1];c[i]=v+y,i===d-3&&(r[i+1]=r[i+2],c[i+1]=c[i+2]),d--;var x=l(t[m],t,n,v,0,e);n+=x,0!==(v-=x)&&0!==(y=o(t[n+v-1],t,m,y,y-1,e))&&(v<=y?function(n,r,c,d){var i=0;for(i=0;i<r;i++)f[i]=t[n+i];var v=0,m=c,y=n;if(t[y++]=t[m++],0==--d){for(i=0;i<r;i++)t[y+i]=f[v+i];return}if(1===r){for(i=0;i<d;i++)t[y+i]=t[m+i];return void(t[y+d]=f[v])}var x,_,w,S=h;for(;;){x=0,_=0,w=!1;do{if(e(t[m],f[v])<0){if(t[y++]=t[m++],_++,x=0,0==--d){w=!0;break}}else if(t[y++]=f[v++],x++,_=0,1==--r){w=!0;break}}while((x|_)<S);if(w)break;do{if(0!==(x=l(t[m],f,v,r,0,e))){for(i=0;i<x;i++)t[y+i]=f[v+i];if(y+=x,v+=x,(r-=x)<=1){w=!0;break}}if(t[y++]=t[m++],0==--d){w=!0;break}if(0!==(_=o(f[v],t,m,d,0,e))){for(i=0;i<_;i++)t[y+i]=t[m+i];if(y+=_,m+=_,0===(d-=_)){w=!0;break}}if(t[y++]=f[v++],1==--r){w=!0;break}S--}while(x>=7||_>=7);if(w)break;S<0&&(S=0),S+=2}if((h=S)<1&&(h=1),1===r){for(i=0;i<d;i++)t[y+i]=t[m+i];t[y+d]=f[v]}else{if(0===r)throw new Error;for(i=0;i<r;i++)t[y+i]=f[v+i]}}(n,v,m,y):function(n,r,c,d){var i=0;for(i=0;i<d;i++)f[i]=t[c+i];var v=n+r-1,m=d-1,y=c+d-1,x=0,_=0;if(t[y--]=t[v--],0==--r){for(x=y-(d-1),i=0;i<d;i++)t[x+i]=f[i];return}if(1===d){for(_=(y-=r)+1,x=(v-=r)+1,i=r-1;i>=0;i--)t[_+i]=t[x+i];return void(t[y]=f[m])}var w=h;for(;;){var S=0,M=0,T=!1;do{if(e(f[m],t[v])<0){if(t[y--]=t[v--],S++,M=0,0==--r){T=!0;break}}else if(t[y--]=f[m--],M++,S=0,1==--d){T=!0;break}}while((S|M)<w);if(T)break;do{if(0!==(S=r-l(f[m],t,n,r,r-1,e))){for(r-=S,_=(y-=S)+1,x=(v-=S)+1,i=S-1;i>=0;i--)t[_+i]=t[x+i];if(0===r){T=!0;break}}if(t[y--]=f[m--],1==--d){T=!0;break}if(0!==(M=d-o(t[v],f,0,d,d-1,e))){for(d-=M,_=(y-=M)+1,x=(m-=M)+1,i=0;i<M;i++)t[_+i]=f[x+i];if(d<=1){T=!0;break}}if(t[y--]=t[v--],0==--r){T=!0;break}w--}while(S>=7||M>=7);if(T)break;w<0&&(w=0),w+=2}(h=w)<1&&(h=1);if(1===d){for(_=(y-=r)+1,x=(v-=r)+1,i=r-1;i>=0;i--)t[_+i]=t[x+i];t[y]=f[m]}else{if(0===d)throw new Error;for(x=y-(d-1),i=0;i<d;i++)t[x+i]=f[i]}}(n,v,m,y))}r=[],c=[],this.mergeRuns=function(){for(;d>1;){var t=d-2;if(t>=1&&c[t-1]<=c[t]+c[t+1]||t>=2&&c[t-2]<=c[t]+c[t-1])c[t-1]<c[t+1]&&t--;else if(c[t]>c[t+1])break;v(t)}},this.forceMergeRuns=function(){for(;d>1;){var t=d-2;t>0&&c[t-1]<c[t+1]&&t--,v(t)}},this.pushRun=function(t,e){r[d]=t,c[d]=e,d+=1}}t.exports=function(t,e,o,l){o||(o=0),l||(l=t.length);var h=l-o;if(!(h<2)){var d=0;if(h<32)r(t,o,l,o+(d=n(t,o,l,e)),e);else{var f=new c(t,e),v=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(h);do{if((d=n(t,o,l,e))<v){var m=h;m>v&&(m=v),r(t,o,o+m,o+d,e),d=m}f.pushRun(o,d),f.mergeRuns(),h-=d,o+=d}while(0!==h);f.forceMergeRuns()}}}},function(t,e,n){var r=n(313),o=n(159).ContextCachedBy,l=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],c=function(t){this.extendFrom(t,!1)};function h(t,e,rect){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,l=null==e.y2?0:e.y2;return e.global||(n=n*rect.width+rect.x,r=r*rect.width+rect.x,o=o*rect.height+rect.y,l=l*rect.height+rect.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,l=isNaN(l)?0:l,t.createLinearGradient(n,o,r,l)}function d(t,e,rect){var n=rect.width,r=rect.height,o=Math.min(n,r),l=null==e.x?.5:e.x,c=null==e.y?.5:e.y,h=null==e.r?.5:e.r;return e.global||(l=l*n+rect.x,c=c*r+rect.y,h*=o),t.createRadialGradient(l,c,0,l,c,h)}for(var f=c.prototype={constructor:c,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var c=n&&n.style,h=!c||t.__attrCachedBy!==o.STYLE_BIND;t.__attrCachedBy=o.STYLE_BIND;for(var i=0;i<l.length;i++){var d=l[i],f=d[0];(h||this[f]!==c[f])&&(t[f]=r(t,f,this[f]||d[1]))}if((h||this.fill!==c.fill)&&(t.fillStyle=this.fill),(h||this.stroke!==c.stroke)&&(t.strokeStyle=this.stroke),(h||this.opacity!==c.opacity)&&(t.globalAlpha=null==this.opacity?1:this.opacity),(h||this.blend!==c.blend)&&(t.globalCompositeOperation=this.blend||"source-over"),this.hasStroke()){var v=this.lineWidth;t.lineWidth=v/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,rect){for(var n=("radial"===e.type?d:h)(t,e,rect),r=e.colorStops,i=0;i<r.length;i++)n.addColorStop(r[i].offset,r[i].color);return n}},i=0;i<l.length;i++){var v=l[i];v[0]in f||(f[v[0]]=v[1])}c.getGradient=f.getGradient;var m=c;t.exports=m},function(t,e,n){var r=new(n(312))(50);function o(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i<t.pending.length;i++){var e=t.pending[i],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}t.pending.length=0}function l(image){return image&&image.width&&image.height}e.findExistImage=function(t){if("string"==typeof t){var e=r.get(t);return e&&e.image}return t},e.createOrUpdateImage=function(t,image,e,n,c){if(t){if("string"==typeof t){if(image&&image.__zrImageSrc===t||!e)return image;var h=r.get(t),d={hostEl:e,cb:n,cbPayload:c};return h?!l(image=h.image)&&h.pending.push(d):((image=new Image).onload=image.onerror=o,r.put(t,image.__cachedImgObj={image:image,pending:[d]}),image.src=image.__zrImageSrc=t),image}return t}return image},e.isImageReady=l},function(t,e,n){var r=n(17),o=n(317),l=n(209).subPixelOptimizeRect,c={},h=r.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n,r,h,d;this.subPixelOptimize?(l(c,e,this.style),n=c.x,r=c.y,h=c.width,d=c.height,c.r=e.r,e=c):(n=e.x,r=e.y,h=e.width,d=e.height),e.r?o.buildPath(t,e):t.rect(n,r,h,d),t.closePath()}});t.exports=h},function(t,e){var n=Math.round;function r(t,e,r){if(!e)return t;var o=n(2*t);return(o+n(e))%2==0?o/2:(o+(r?1:-1))/2}e.subPixelOptimizeLine=function(t,e,style){if(e){var o=e.x1,l=e.x2,c=e.y1,h=e.y2;t.x1=o,t.x2=l,t.y1=c,t.y2=h;var d=style&&style.lineWidth;d&&(n(2*o)===n(2*l)&&(t.x1=t.x2=r(o,d,!0)),n(2*c)===n(2*h)&&(t.y1=t.y2=r(c,d,!0)))}},e.subPixelOptimizeRect=function(t,e,style){if(e){var n=e.x,o=e.y,l=e.width,c=e.height;t.x=n,t.y=o,t.width=l,t.height=c;var h=style&&style.lineWidth;h&&(t.x=r(n,h,!0),t.y=r(o,h,!0),t.width=Math.max(r(n+l,h,!1)-t.x,0===l?0:1),t.height=Math.max(r(o+c,h,!1)-t.y,0===c?0:1))}},e.subPixelOptimize=r},function(t,e,n){var r=n(0),o=n(161),l=function(t,e,n,r,l,c){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=c||!1,o.call(this,l)};l.prototype={constructor:l},r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){var r=n(0).inherits,o=n(120),l=n(14);function c(t){o.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}c.prototype.incremental=!0,c.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},c.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},c.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},c.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},c.prototype.update=function(){this.updateTransform();for(var i=this._cursor;i<this._displayables.length;i++){(t=this._displayables[i]).parent=this,t.update(),t.parent=null}for(i=0;i<this._temporaryDisplayables.length;i++){var t;(t=this._temporaryDisplayables[i]).parent=this,t.update(),t.parent=null}},c.prototype.brush=function(t,e){for(var i=this._cursor;i<this._displayables.length;i++){(n=this._displayables[i]).beforeBrush&&n.beforeBrush(t),n.brush(t,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._cursor=i;for(i=0;i<this._temporaryDisplayables.length;i++){var n;(n=this._temporaryDisplayables[i]).beforeBrush&&n.beforeBrush(t),n.brush(t,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var h=[];c.prototype.getBoundingRect=function(){if(!this._rect){for(var rect=new l(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var t=this._displayables[i],e=t.getBoundingRect().clone();t.needLocalTransform()&&e.applyTransform(t.getLocalTransform(h)),rect.union(e)}this._rect=rect}return this._rect},c.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},r(c,o);var d=c;t.exports=d},function(t,e,n){var r=n(78).retrieveRawValue,o=n(10),l=o.getTooltipMarker,c=o.formatTpl,h=n(6).getTooltipRenderMode,d=/\{@(.+?)\}/g,f={getDataParams:function(t,e){var data=this.getData(e),n=this.getRawValue(t,e),r=data.getRawIndex(t),o=data.getName(t),c=data.getRawDataItem(t),d=data.getItemVisual(t,"color"),f=data.getItemVisual(t,"borderColor"),v=this.ecModel.getComponent("tooltip"),m=v&&v.get("renderMode"),y=h(m),x=this.mainType,_="series"===x,w=data.userOutput;return{componentType:x,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:_?this.subType:null,seriesIndex:this.seriesIndex,seriesId:_?this.id:null,seriesName:_?this.name:null,name:o,dataIndex:r,data:c,dataType:e,value:n,color:d,borderColor:f,dimensionNames:w?w.dimensionNames:null,encode:w?w.encode:null,marker:l({color:d,renderMode:y}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,o,l){e=e||"normal";var data=this.getData(n),h=data.getItemModel(t),f=this.getDataParams(t,n);null!=o&&f.value instanceof Array&&(f.value=f.value[o]);var v=h.get("normal"===e?[l||"label","formatter"]:[e,l||"label","formatter"]);return"function"==typeof v?(f.status=e,f.dimensionIndex=o,v(f)):"string"==typeof v?c(v,f).replace(d,(function(e,n){var o=n.length;return"["===n.charAt(0)&&"]"===n.charAt(o-1)&&(n=+n.slice(1,o-1)),r(data,t,n)})):void 0},getRawValue:function(t,e){return r(this.getData(e),t)},formatTooltip:function(){}};t.exports=f},function(t,e,n){var r=n(0),o=(r.assert,r.isArray);n(7).__DEV__;function l(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var c=l.prototype;c.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var l=this.context;l.data=l.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var c,h=y(this._modBy),f=this._modDataCount||0,v=y(t&&t.modBy),m=t&&t.modDataCount||0;function y(t){return!(t>=1)&&(t=1),t}h===v&&f===m||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,c=function(t,e){var progress,n;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((progress=t._reset(t.context))&&progress.progress&&(n=progress.forceFirstProgress,progress=progress.progress),o(progress)&&!progress.length&&(progress=null));t._progress=progress,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),n}(this,r)),this._modBy=v,this._modDataCount=m;var x=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var _=this._dueIndex,w=Math.min(null!=x?this._dueIndex+x:1/0,this._dueEnd);if(!r&&(c||_<w)){var progress=this._progress;if(o(progress))for(var i=0;i<progress.length;i++)d(this,progress[i],_,w,v,m);else d(this,progress,_,w,v,m)}this._dueIndex=w;var S=null!=this._settedOutputEnd?this._settedOutputEnd:w;this._outputDueEnd=S}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var h=function(){var t,e,n,r,o,l={reset:function(s,d,f,v){e=s,t=d,n=f,r=v,o=Math.ceil(r/n),l.next=n>1&&r>0?h:c}};return l;function c(){return e<t?e++:null}function h(){var l=e%o*n+Math.ceil(e/o),c=e>=t?null:l<r?l:e;return e++,c}}();function d(t,progress,e,n,r,o){h.reset(e,n,r,o),t._callingProgress=progress,t._callingProgress({start:e,end:n,count:n-e,next:h.next},t.context)}c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},c.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},c.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},c.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},c.getUpstream=function(){return this._upstream},c.getDownstream=function(){return this._downstream},c.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=function(t){return new l(t)}},function(t,e,n){n(7).__DEV__;var r=n(0),o=r.createHashMap,l=r.isString,c=r.isArray,h=r.each,d=(r.assert,n(333).parseXML),f=o(),v={registerMap:function(t,e,n){var r;return c(e)?r=e:e.svg?r=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),r=[{type:"geoJSON",source:e,specialAreas:n}]),h(r,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,m[e])(t)})),f.set(t,r)},retrieveMap:function(t){return f.get(t)}},m={geoJSON:function(t){var source=t.source;t.geoJSON=l(source)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(source):new Function("return ("+source+");")():source},svg:function(t){t.svgXML=d(t.source)}};t.exports=v},function(t,e,n){var r=n(78).retrieveRawValue;e.getDefaultLabel=function(data,t){var e=data.mapDimension("defaultedLabel",!0),n=e.length;if(1===n)return r(data,t,e[0]);if(n){for(var o=[],i=0;i<e.length;i++){var l=r(data,t,e[i]);o.push(l)}return o.join(" ")}}},function(t,e,n){n(7).__DEV__;var r=n(0),o=r.isObject,l=r.each,map=r.map,c=r.indexOf,h=(r.retrieve,n(9).getLayoutRect),d=n(43),f=d.createScaleByModel,v=d.ifAxisCrossZero,m=d.niceScaleExtent,y=d.estimateLabelUnionRect,x=n(743),_=n(745),w=n(42),S=n(49).getStackedDimension;function M(t,e,n){return t.getCoordSysModel()===e}function T(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}n(746);var A=T.prototype;function I(t,e,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,l=t[e],c=n.model,h=c.get("axisLine.onZero"),d=c.get("axisLine.onZeroAxisIndex");if(h){if(null!=d)C(l[d])&&(o=l[d]);else for(var f in l)if(l.hasOwnProperty(f)&&C(l[f])&&!r[v(l[f])]){o=l[f];break}o&&(r[v(o)]=!0)}function v(t){return t.dim+"_"+t.index}}function C(t){return t&&"category"!==t.type&&"time"!==t.type&&v(t)}A.type="grid",A.axisPointerEnabled=!0,A.getRect=function(){return this._rect},A.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),l(n.x,(function(t){m(t.scale,t.model)})),l(n.y,(function(t){m(t.scale,t.model)}));var r={};l(n.x,(function(t){I(n,"y",t,r)})),l(n.y,(function(t){I(n,"x",t,r)})),this.resize(this.model,e)},A.resize=function(t,e,n){var r=h(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var o=this._axesList;function c(){l(o,(function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],o=t.inverse?1:0;t.setExtent(n[o],n[1-o]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?r.x:r.y)}))}c(),!n&&t.get("containLabel")&&(l(o,(function(t){if(!t.model.get("axisLabel.inside")){var e=y(t);if(e){var n=t.isHorizontal()?"height":"width",o=t.model.get("axisLabel.margin");r[n]-=e[n]+o,"top"===t.position?r.y+=e.height+o:"left"===t.position&&(r.x+=e.width+o)}}})),c())},A.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var r in n)if(n.hasOwnProperty(r))return n[r];return n[e]}},A.getAxes=function(){return this._axesList.slice()},A.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}o(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},A.getCartesians=function(){return this._coordsList.slice()},A.convertToPixel=function(t,e,n){var r=this._findConvertTarget(t,e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},A.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(t,e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},A._findConvertTarget=function(t,e){var n,r,o=e.seriesModel,l=e.xAxisModel||o&&o.getReferringComponents("xAxis")[0],h=e.yAxisModel||o&&o.getReferringComponents("yAxis")[0],d=e.gridModel,f=this._coordsList;if(o)n=o.coordinateSystem,c(f,n)<0&&(n=null);else if(l&&h)n=this.getCartesian(l.componentIndex,h.componentIndex);else if(l)r=this.getAxis("x",l.componentIndex);else if(h)r=this.getAxis("y",h.componentIndex);else if(d){d.coordinateSystem===this&&(n=this._coordsList[0])}return{cartesian:n,axis:r}},A.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},A._initCartesian=function(t,e,n){var r={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},c={x:0,y:0};if(e.eachComponent("xAxis",h("x"),this),e.eachComponent("yAxis",h("y"),this),!c.x||!c.y)return this._axesMap={},void(this._axesList=[]);function h(e){return function(n,l){if(M(n,t)){var h=n.get("position");"x"===e?"top"!==h&&"bottom"!==h&&(h=r.bottom?"top":"bottom"):"left"!==h&&"right"!==h&&(h=r.left?"right":"left"),r[h]=!0;var d=new _(e,f(n),[0,0],n.get("type"),h),v="category"===d.type;d.onBand=v&&n.get("boundaryGap"),d.inverse=n.get("inverse"),n.axis=d,d.model=n,d.grid=this,d.index=l,this._axesList.push(d),o[e][l]=d,c[e]++}}}this._axesMap=o,l(o.x,(function(e,n){l(o.y,(function(r,o){var l="x"+n+"y"+o,c=new x(l);c.grid=this,c.model=t,this._coordsMap[l]=c,this._coordsList.push(c),c.addAxis(e),c.addAxis(r)}),this)}),this)},A._updateScale=function(t,e){function n(data,t,e){l(data.mapDimension(t.dim,!0),(function(e){t.scale.unionExtentFromData(data,S(data,e))}))}l(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(r){if(k(r)){var o=L(r,t),l=o[0],c=o[1];if(!M(l,e)||!M(c,e))return;var h=this.getCartesian(l.componentIndex,c.componentIndex),data=r.getData(),d=h.getAxis("x"),f=h.getAxis("y");"list"===data.type&&(n(data,d,r),n(data,f,r))}}),this)},A.getTooltipAxes=function(t){var e=[],n=[];return l(this.getCartesians(),(function(r){var o=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),l=r.getOtherAxis(o);c(e,o)<0&&e.push(o),c(n,l)<0&&n.push(l)})),{baseAxes:e,otherAxes:n}};var D=["xAxis","yAxis"];function L(t,e){return map(D,(function(e){return t.getReferringComponents(e)[0]}))}function k(t){return"cartesian2d"===t.get("coordinateSystem")}T.create=function(t,e){var n=[];return t.eachComponent("grid",(function(r,o){var l=new T(r,t,e);l.name="grid_"+o,l.resize(r,e,!0),r.coordinateSystem=l,n.push(l)})),t.eachSeries((function(t){if(k(t)){var e=L(t),n=e[0],r=e[1],o=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),n},T.dimensions=T.prototype.dimensions=x.prototype.dimensions,w.register("cartesian2d",T);var P=T;t.exports=P},function(t,e,n){var r=n(0),o={updateSelectedMap:function(t){this._targetList=r.isArray(t)?t.slice():[],this._selectTargetMap=r.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),r.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};t.exports=o},function(t,e){e.updateViewOnPan=function(t,e,n){var r=t.target,o=r.position;o[0]+=e,o[1]+=n,r.dirty()},e.updateViewOnZoom=function(t,e,n,r){var o=t.target,l=t.zoomLimit,c=o.position,h=o.scale,d=t.zoom=t.zoom||1;if(d*=e,l){var f=l.min||0,v=l.max||1/0;d=Math.max(Math.min(v,d),f)}var m=d/t.zoom;t.zoom=d,c[0]-=(n-c[0])*(m-1),c[1]-=(r-c[1])*(m-1),h[0]*=m,h[1]*=m,o.dirty()}},function(t,e){e.updateCenterAndZoom=function(view,t,e){var n=view.getZoom(),r=view.getCenter(),o=t.zoom,l=view.dataToPoint(r);if(null!=t.dx&&null!=t.dy){l[0]-=t.dx,l[1]-=t.dy;r=view.pointToData(l);view.setCenter(r)}if(null!=o){if(e){var c=e.min||0,h=e.max||1/0;o=Math.max(Math.min(n*o,h),c)/n}view.scale[0]*=o,view.scale[1]*=o;var d=view.position,f=(t.originX-d[0])*(o-1),v=(t.originY-d[1])*(o-1);d[0]-=f,d[1]-=v,view.updateTransform();r=view.pointToData(l);view.setCenter(r),view.setZoom(o*n)}return{center:view.getCenter(),zoom:view.getZoom()}}},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(782),c=n(9),h=n(5),d=n(170),f=n(214);function v(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],o=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(o[0])||isNaN(o[1])||this.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1])}var l,rect=this.getBoundingRect(),d=t.get("layoutCenter"),f=t.get("layoutSize"),v=e.getWidth(),m=e.getHeight(),y=rect.width/rect.height*this.aspectScale,x=!1;if(d&&f&&(d=[h.parsePercent(d[0],v),h.parsePercent(d[1],m)],f=h.parsePercent(f,Math.min(v,m)),isNaN(d[0])||isNaN(d[1])||isNaN(f)||(x=!0)),x){var _={};y>1?(_.width=f,_.height=f/y):(_.height=f,_.width=f*y),_.y=d[1]-_.height/2,_.x=d[0]-_.width/2}else(l=t.getBoxLayoutParams()).aspect=y,_=c.getLayoutRect(l,{width:v,height:m});this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function m(t,e){o.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var y={dimensions:l.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",(function(t,r){var o=t.get("map"),c=t.get("aspectScale"),h=!0,d=f.retrieveMap(o);d&&d[0]&&"svg"===d[0].type?(null==c&&(c=1),h=!1):null==c&&(c=.75);var y=new l(o+r,o,t.get("nameMap"),h);y.aspectScale=c,y.zoomLimit=t.get("scaleLimit"),n.push(y),m(y,t),t.coordinateSystem=y,y.model=t,y.resize=v,y.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),o.each(r,(function(t,r){var c=o.map(t,(function(t){return t.get("nameMap")})),h=new l(r,r,o.mergeAll(c));h.zoomLimit=o.retrieve.apply(null,o.map(t,(function(t){return t.get("scaleLimit")}))),n.push(h),h.resize=v,h.aspectScale=t[0].get("aspectScale"),h.resize(t[0],e),o.each(t,(function(t){t.coordinateSystem=h,m(h,t)}))})),n},getFilledRegions:function(t,e,n){for(var r=(t||[]).slice(),l=o.createHashMap(),i=0;i<r.length;i++)l.set(r[i].name,r[i]);var source=d.load(e,n);return o.each(source.regions,(function(t){var e=t.name;!l.get(e)&&r.push({name:e})})),r}};r.registerCoordinateSystem("geo",y);var x=y;t.exports=x},function(t,e,n){var r=n(0),o=n(11),l=n(27),c=n(14),h=n(157),d=o.applyTransform;function f(){h.call(this)}function v(t){this.name=t,this.zoomLimit,h.call(this),this._roamTransformable=new f,this._rawTransformable=new f,this._center,this._zoom}function m(t,e,n,r){var o=n.seriesModel,l=o?o.coordinateSystem:null;return l===this?l[t](r):null}r.mixin(f,h),v.prototype={constructor:v,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,r){return this._rect=new c(t,e,n,r),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,r){this.transformTo(t,e,n,r),this._viewRect=new c(t,e,n,r)},transformTo:function(t,e,n,r){var rect=this.getBoundingRect(),o=this._rawTransformable;o.transform=rect.calculateTransform(new c(t,e,n,r)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),l=this.getZoom();r=o.applyTransform([],r,t),n=o.applyTransform([],n,t),e.origin=r,e.position=[n[0]-r[0],n[1]-r[1]],e.scale=[l,l],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),l.copy(this.transform||(this.transform=[]),e.transform||l.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],l.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?r.slice(t):l.create(),rawScale:r.slice(e.scale),rawPosition:r.slice(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var rect=this.getBoundingRect().clone();return rect.applyTransform(this.transform),rect},dataToPoint:function(data,t,e){var n=t?this._rawTransform:this.transform;return e=e||[],n?d(e,data,n):o.copy(e,data)},pointToData:function(t){var e=this.invTransform;return e?d([],t,e):[t[0],t[1]]},convertToPixel:r.curry(m,"dataToPoint"),convertFromPixel:r.curry(m,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},r.mixin(v,h);var y=v;t.exports=y},function(t,e,n){var r=n(0),o=n(19),l=n(355),c=n(37),h=n(96),d=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};function f(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=r.map(e||[],(function(e){return new o(e,t,t.ecModel)}))}d.prototype={constructor:d,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null),t=t||{},r.isString(t)&&(t={order:t});var o,l=t.order||"preorder",c=this[t.attr||"children"];"preorder"===l&&(o=e.call(n,this));for(var i=0;!o&&i<c.length;i++)c[i].eachNode(t,e,n);"postorder"===l&&e.call(n,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var i=0,e=this.children,n=e.length;i<n;i++){var r=e[i].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var i=0,e=this.children,n=e.length;i<n;i++){var r=e[i].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var data=this.hostTree.data;return data.get(data.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(path){if(!(this.dataIndex<0)){var t=this.hostTree.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?t.getModel(path,e.getModel(path)):t.getModel(path)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},f.prototype={constructor:f,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var data=this.data,t=this._nodes,i=0,e=t.length;i<e;i++)t[i].dataIndex=-1;for(i=0,e=data.count();i<e;i++)t[data.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},f.createTree=function(t,e,n,o){var v=new f(e,n&&n.levels),m=[],y=1;!function t(e,n){var o=e.value;y=Math.max(y,r.isArray(o)?o.length:1),m.push(e);var l=new d(e.name,v);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(l,n):v.root=l,v._nodes.push(l);var c=e.children;if(c)for(var i=0;i<c.length;i++)t(c[i],l)}(t),v.root.updateDepthAndHeight(0);var x=h(m,{coordDimensions:["value"],dimensionsCount:y}),_=new c(x,e);return _.initData(m),o&&o(_),l({mainData:_,struct:v,structAttr:"tree"}),v.update(),v};var v=f;t.exports=v},function(t,e,n){var r=n(2),o=n(224);function l(t){this._ctor=t||o,this.group=new r.Group}var c=l.prototype;function h(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function d(t){return isNaN(t[0])||isNaN(t[1])}function f(t){return!d(t[0])&&!d(t[1])}c.isPersistent=function(){return!0},c.updateData=function(t){var e=this,n=e.group,r=e._lineData;e._lineData=t,r||n.removeAll();var o=h(t);t.diff(r).add((function(n){!function(t,e,n,r){if(!f(e.getItemLayout(n)))return;var o=new t._ctor(e,n,r);e.setItemGraphicEl(n,o),t.group.add(o)}(e,t,n,o)})).update((function(n,l){!function(t,e,n,r,o,l){var c=e.getItemGraphicEl(r);if(!f(n.getItemLayout(o)))return void t.group.remove(c);c?c.updateData(n,o,l):c=new t._ctor(n,o,l);n.setItemGraphicEl(o,c),t.group.add(c)}(e,r,t,l,n,o)})).remove((function(t){n.remove(r.getItemGraphicEl(t))})).execute()},c.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},c.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._lineData=null,this.group.removeAll()},c.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=t.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){if(f(e.getItemLayout(r))){var o=new this._ctor(e,r,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(r,o)}}},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var v=l;t.exports=v},function(t,e,n){var r=n(0),o=n(11),l=n(38),c=n(805),h=n(2),d=n(5).round,f=["fromSymbol","toSymbol"];function v(t){return"_"+t+"Type"}function m(t,e,n){var o=e.getItemVisual(n,"color"),c=e.getItemVisual(n,t),h=e.getItemVisual(n,t+"Size");if(c&&"none"!==c){r.isArray(h)||(h=[h,h]);var d=l.createSymbol(c,-h[0]/2,-h[1]/2,h[0],h[1],o);return d.name=t,d}}function y(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}function x(t,e,n){h.Group.call(this),this._createLine(t,e,n)}var _=x.prototype;_.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),label=this.childOfName("label");if(t||e||!label.ignore){for(var n=1,r=this.parent;r;)r.scale&&(n/=r.scale[0]),r=r.parent;var line=this.childOfName("line");if(this.__dirty||line.__dirty){var l=line.shape.percent,c=line.pointAt(0),h=line.pointAt(l),d=o.sub([],h,c);if(o.normalize(d,d),t){t.attr("position",c);var f=line.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(f[1],f[0])),t.attr("scale",[n*l,n*l])}if(e){e.attr("position",h);f=line.tangentAt(1);e.attr("rotation",-Math.PI/2-Math.atan2(f[1],f[0])),e.attr("scale",[n*l,n*l])}if(!label.ignore){var v,m,y,x;label.attr("position",h);var _=label.__labelDistance,w=_[0]*n,S=_[1]*n,M=l/2,T=[(f=line.tangentAt(M))[1],-f[0]],A=line.pointAt(M);T[1]>0&&(T[0]=-T[0],T[1]=-T[1]);var I,C=f[0]<0?-1:1;if("start"!==label.__position&&"end"!==label.__position){var D=-Math.atan2(f[1],f[0]);h[0]<c[0]&&(D=Math.PI+D),label.attr("rotation",D)}switch(label.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":I=-S,y="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":I=S,y="top";break;default:I=0,y="middle"}switch(label.__position){case"end":v=[d[0]*w+h[0],d[1]*S+h[1]],m=d[0]>.8?"left":d[0]<-.8?"right":"center",y=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":v=[-d[0]*w+c[0],-d[1]*S+c[1]],m=d[0]>.8?"right":d[0]<-.8?"left":"center",y=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":v=[w*C+c[0],c[1]+I],m=f[0]<0?"right":"left",x=[-w*C,-I];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":v=[A[0],A[1]+I],m="center",x=[0,-I];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":v=[-w*C+h[0],h[1]+I],m=f[0]>=0?"right":"left",x=[w*C,-I]}label.attr({style:{textVerticalAlign:label.__verticalAlign||y,textAlign:label.__textAlign||m},position:v,scale:[n,n],origin:x})}}}},_._createLine=function(t,e,n){var o=t.hostModel,line=function(t){var line=new c({name:"line",subPixelOptimize:!0});return y(line.shape,t),line}(t.getItemLayout(e));line.shape.percent=0,h.initProps(line,{shape:{percent:1}},o,e),this.add(line);var label=new h.Text({name:"label",lineLabelOriginalOpacity:1});this.add(label),r.each(f,(function(n){var symbol=m(n,t,e);this.add(symbol),this[v(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},_.updateData=function(t,e,n){var o=t.hostModel,line=this.childOfName("line"),l=t.getItemLayout(e),c={shape:{}};y(c.shape,l),h.updateProps(line,c,o,e),r.each(f,(function(n){var r=t.getItemVisual(e,n),o=v(n);if(this[o]!==r){this.remove(this.childOfName(n));var symbol=m(n,t,e);this.add(symbol)}this[o]=r}),this),this._updateCommonStl(t,e,n)},_._updateCommonStl=function(t,e,n){var o=t.hostModel,line=this.childOfName("line"),l=n&&n.lineStyle,c=n&&n.hoverLineStyle,v=n&&n.labelModel,m=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var y=t.getItemModel(e);l=y.getModel("lineStyle").getLineStyle(),c=y.getModel("emphasis.lineStyle").getLineStyle(),v=y.getModel("label"),m=y.getModel("emphasis.label")}var x=t.getItemVisual(e,"color"),_=r.retrieve3(t.getItemVisual(e,"opacity"),l.opacity,1);line.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:x,opacity:_},l)),line.hoverStyle=c,r.each(f,(function(t){var symbol=this.childOfName(t);symbol&&(symbol.setColor(x),symbol.setStyle({opacity:_}))}),this);var w,S,M=v.getShallow("show"),T=m.getShallow("show"),label=this.childOfName("label");if((M||T)&&(w=x||"#000",null==(S=o.getFormattedLabel(e,"normal",t.dataType)))){var A=o.getRawValue(e);S=null==A?t.getName(e):isFinite(A)?d(A):A}var I=M?S:null,C=T?r.retrieve2(o.getFormattedLabel(e,"emphasis",t.dataType),S):null,D=label.style;if(null!=I||null!=C){h.setTextStyle(label.style,v,{text:I},{autoColor:w}),label.__textAlign=D.textAlign,label.__verticalAlign=D.textVerticalAlign,label.__position=v.get("position")||"middle";var L=v.get("distance");r.isArray(L)||(L=[L,L]),label.__labelDistance=L}label.hoverStyle=null!=C?{text:C,textFill:m.getTextColor(!0),fontStyle:m.getShallow("fontStyle"),fontWeight:m.getShallow("fontWeight"),fontSize:m.getShallow("fontSize"),fontFamily:m.getShallow("fontFamily")}:{text:null},label.ignore=!M&&!T,h.setHoverStyle(this)},_.highlight=function(){this.trigger("emphasis")},_.downplay=function(){this.trigger("normal")},_.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},_.setLinePoints=function(t){var e=this.childOfName("line");y(e.shape,t),e.dirty()},r.inherits(x,h.Group);var w=x;t.exports=w},function(t,e){e.getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scale,o=r&&r[0]||1;return((e.getZoom()-1)*n+1)/o},e.getSymbolSize=function(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(75),l=n(2),c=n(353),h=n(79),d=r.curry,f=r.each,map=r.map,v=Math.min,m=Math.max,y=Math.pow,x={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},w={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},S=0;function M(t){o.call(this),this._zr=t,this.group=new l.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+S++,this._handlers={},f(K,(function(t,e){this._handlers[e]=r.bind(t,this)}),this)}function T(t,e){var n=Q[e.brushType].createCover(t,e);return n.__brushOption=e,C(n,e),t.group.add(n),n}function A(t,e){var n=L(e);return n.endCreating&&(n.endCreating(t,e),C(e,e.__brushOption)),e}function I(t,e){var n=e.__brushOption;L(e).updateCoverShape(t,e,n.range,n)}function C(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function D(t,e){L(e).updateCommon(t,e),I(t,e)}function L(t){return Q[t.__brushOption.brushType]}function k(t,e,n){var r,o=t._panels;if(!o)return!0;var l=t._transform;return f(o,(function(t){t.isTargetByCursor(e,n,l)&&(r=t)})),r}function P(t,e){var n=t._panels;if(!n)return!0;var r=e.__brushOption.panelId;return null==r||n[r]}function O(t){var e=t._covers,n=e.length;return f(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function E(t,e){var n=map(t._covers,(function(t){var e=t.__brushOption,n=r.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function N(track){var t=track.length-1;return t<0&&(t=0),[track[0],track[t]]}function R(t,e,n,r){var o=new l.Group;return o.add(new l.Rect({name:"main",style:H(n),silent:!0,draggable:!0,cursor:"move",drift:d(t,e,o,"nswe"),ondragend:d(E,e,{isEnd:!0})})),f(r,(function(n){o.add(new l.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:d(t,e,o,n),ondragend:d(E,e,{isEnd:!0})}))})),o}function z(t,e,n,r){var o=r.brushStyle.lineWidth||0,l=m(o,6),c=n[0][0],h=n[1][0],d=c-o/2,f=h-o/2,v=n[0][1],y=n[1][1],x=v-l+o/2,_=y-l+o/2,w=v-c,S=y-h,M=w+o,T=S+o;V(t,e,"main",c,h,w,S),r.transformable&&(V(t,e,"w",d,f,l,T),V(t,e,"e",x,f,l,T),V(t,e,"n",d,f,M,l),V(t,e,"s",d,_,M,l),V(t,e,"nw",d,f,l,l),V(t,e,"ne",x,f,l,l),V(t,e,"sw",d,_,l,l),V(t,e,"se",x,_,l,l))}function B(t,e){var n=e.__brushOption,r=n.transformable,o=e.childAt(0);o.useStyle(H(n)),o.attr({silent:!r,cursor:r?"move":"default"}),f(["w","e","n","s","se","sw","ne","nw"],(function(n){var o=e.childOfName(n),c=function t(e,n){if(n.length>1)return n=n.split(""),("e"===(r=[t(e,n[0]),t(e,n[1])])[0]||"w"===r[0])&&r.reverse(),r.join("");var r;return{left:"w",right:"e",top:"n",bottom:"s"}[r=l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[n],function(t){return l.getTransform(t.group)}(e))]}(t,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?_[c]+"-resize":null})}))}function V(t,e,n,r,o,l,c){var h,d,f,y,x,_=e.childOfName(n);_&&_.setShape((h=U(t,e,[[r,o],[r+l,o+c]]),d=v(h[0][0],h[1][0]),f=v(h[0][1],h[1][1]),y=m(h[0][0],h[1][0]),x=m(h[0][1],h[1][1]),{x:d,y:f,width:y-d,height:x-f}))}function H(t){return r.defaults({strokeNoScale:!0},t.brushStyle)}function F(t,e,n,r){var o=[v(t,n),v(e,r)],l=[m(t,n),m(e,r)];return[[o[0],l[0]],[o[1],l[1]]]}function G(t,e,n,r,o,l,c,h){var d=r.__brushOption,v=t(d.range),m=j(n,l,c);f(o.split(""),(function(t){var e=x[t];v[e[0]][e[1]]+=m[e[0]]})),d.range=e(F(v[0][0],v[1][0],v[0][1],v[1][1])),D(n,r),E(n,{isEnd:!1})}function W(t,e,n,r,o){var l=e.__brushOption.range,c=j(t,n,r);f(l,(function(t){t[0]+=c[0],t[1]+=c[1]})),D(t,e),E(t,{isEnd:!1})}function j(t,e,n){var r=t.group,o=r.transformCoordToLocal(e,n),l=r.transformCoordToLocal(0,0);return[o[0]-l[0],o[1]-l[1]]}function U(t,e,data){var n=P(t,e);return n&&!0!==n?n.clipPath(data,t._transform):r.clone(data)}function Z(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Y(t,e,n){return t.childOfName("main").contain(e,n)}function X(t,e,n,o){var l,c=t._creatingCover,h=t._creatingPanel,d=t._brushOption;if(t._track.push(n.slice()),function(t){var track=t._track;if(!track.length)return!1;var e=track[track.length-1],n=track[0],r=e[0]-n[0],o=e[1]-n[1];return y(r*r+o*o,.5)>6}(t)||c){if(h&&!c){"single"===d.brushMode&&O(t);var f=r.clone(d);f.brushType=$(f.brushType,h),f.panelId=!0===h?null:h.panelId,c=t._creatingCover=T(t,f),t._covers.push(c)}if(c){var v=Q[$(t._brushType,h)];c.__brushOption.range=v.getCreatingRange(U(t,c,t._track)),o&&(A(t,c),v.updateCommon(t,c)),I(t,c),l={isEnd:o}}}else o&&"single"===d.brushMode&&d.removeOnClick&&k(t,e,n)&&O(t)&&(l={isEnd:o,removeOnClick:!0});return l}function $(t,e){return"auto"===t?e.defaultBrushType:t}M.prototype={constructor:M,enableBrush:function(t){var e,n;return this._brushType&&(n=(e=this)._zr,c.release(n,"globalPan",e._uid),function(t,e){f(e,(function(e,n){t.off(n,e)}))}(n,e._handlers),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var n=t._zr;t._enableGlobalPan||c.take(n,"globalPan",t._uid);(function(t,e){f(e,(function(e,n){t.on(n,e)}))})(n,t._handlers),t._brushType=e.brushType,t._brushOption=r.merge(r.clone(w),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};r.each(t,(function(t){e[t.panelId]=r.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){f(this._covers,t,e)},updateCovers:function(t){t=r.map(t,(function(t){return r.merge(r.clone(w),t,!0)}));var e=this._covers,n=this._covers=[],o=this,l=this._creatingCover;return new h(e,t,(function(t,e){return c(t.__brushOption,e)}),c).add(d).update(d).remove((function(t){e[t]!==l&&o.group.remove(e[t])})).execute(),this;function c(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function d(r,c){var h=t[r];if(null!=c&&e[c]===l)n[r]=e[c];else{var d=n[r]=null!=c?(e[c].__brushOption=h,e[c]):A(o,T(o,h));D(o,d)}}},unmount:function(){return this.enableBrush(!1),O(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},r.mixin(M,o);var K={mousedown:function(t){if(this._dragging)J(this,t);else if(!t.target||!t.target.draggable){Z(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=k(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e)){var r=t._zr,o=t._covers,l=k(t,e,n);if(!t._dragging)for(var i=0;i<o.length;i++){var c=o[i].__brushOption;if(l&&(!0===l||c.panelId===l.panelId)&&Q[c.brushType].contain(o[i],n[0],n[1]))return}l&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){Z(t);var o=X(this,t,r,!1);o&&E(this,o)}},mouseup:function(t){J(this,t)}};function J(t,e){if(t._dragging){Z(e);var n=e.offsetX,r=e.offsetY,o=t.group.transformCoordToLocal(n,r),l=X(t,e,o,!0);t._dragging=!1,t._track=[],t._creatingCover=null,l&&E(t,l)}}var Q={lineX:tt(0),lineY:tt(1),rect:{createCover:function(t,e){return R(d(G,(function(t){return t}),(function(t){return t})),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=N(t);return F(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){z(t,e,n,r)},updateCommon:B,contain:Y},polygon:{createCover:function(t,e){var n=new l.Group;return n.add(new l.Polyline({name:"main",style:H(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new l.Polygon({name:"main",draggable:!0,drift:d(W,t,e),ondragend:d(E,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:U(t,e,n)})},updateCommon:B,contain:Y}};function tt(t){return{createCover:function(e,n){return R(d(G,(function(e){var n=[e,[0,100]];return t&&n.reverse(),n}),(function(e){return e[t]})),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=N(e);return[v(n[0][t],n[1][t]),m(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,o){var l,c=P(e,n);if(!0!==c&&c.getLinearBrushOtherExtent)l=c.getLinearBrushOtherExtent(t,e._transform);else{var h=e._zr;l=[0,[h.getWidth(),h.getHeight()][1-t]]}var d=[r,l];t&&d.reverse(),z(e,n,d,o)},updateCommon:B,contain:Y}}var et=M;t.exports=et},function(t,e,n){var r=n(0),o=n(54),l=n(2),c=n(168),h=n(46),d=n(64),f=(0,n(6).makeInner)(),v=r.clone,m=r.bind;function y(){}function x(t,e,n,o){(function t(e,n){if(r.isObject(e)&&r.isObject(n)){var o=!0;return r.each(n,(function(n,r){o=o&&t(e[r],n)})),!!o}return e===n})(f(n).lastProp,o)||(f(n).lastProp=o,e?l.updateProps(n,o,t):(n.stopAnimation(),n.attr(o)))}function _(t,e){t[e.get("label.show")?"show":"hide"]()}function w(t){return{position:t.position.slice(),rotation:t.rotation||0}}function S(t,e,n){var r=e.get("z"),o=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=o&&(t.zlevel=o),t.silent=n)}))}y.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,o){var c=e.get("value"),h=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,o||this._lastValue!==c||this._lastStatus!==h){this._lastValue=c,this._lastStatus=h;var d=this._group,f=this._handle;if(!h||"hide"===h)return d&&d.hide(),void(f&&f.hide());d&&d.show(),f&&f.show();var v={};this.makeElOption(v,c,t,e,n);var m=v.graphicKey;m!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=m;var y=this._moveAnimation=this.determineAnimation(t,e);if(d){var _=r.curry(x,e,y);this.updatePointerEl(d,v,_,e),this.updateLabelEl(d,v,_,e)}else d=this._group=new l.Group,this.createPointerEl(d,v,t,e),this.createLabelEl(d,v,t,e),n.getZr().add(d);S(d,e,!0),this._renderHandle(c)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),r=t.axis,o="category"===r.type,l=e.get("snap");if(!l&&!o)return!1;if("auto"===n||null==n){var h=this.animationThreshold;if(o&&r.getBandWidth()>h)return!0;if(l){var d=c.getAxisInfo(t).seriesDataCount,f=r.getExtent();return Math.abs(f[0]-f[1])/d>h}return!1}return!0===n},makeElOption:function(t,e,n,r,o){},createPointerEl:function(t,e,n,r){var o=e.pointer;if(o){var c=f(t).pointerEl=new l[o.type](v(e.pointer));t.add(c)}},createLabelEl:function(t,e,n,r){if(e.label){var o=f(t).labelEl=new l.Rect(v(e.label));t.add(o),_(o,r)}},updatePointerEl:function(t,e,n){var r=f(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,r){var o=f(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{shape:e.label.shape,position:e.label.position}),_(o,r))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,o=this._api.getZr(),c=this._handle,f=n.getModel("handle"),v=n.get("status");if(!f.get("show")||!v||"hide"===v)return c&&o.remove(c),void(this._handle=null);this._handle||(e=!0,c=this._handle=l.createIcon(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){h.stop(t.event)},onmousedown:m(this._onHandleDragMove,this,0,0),drift:m(this._onHandleDragMove,this),ondragend:m(this._onHandleDragEnd,this)}),o.add(c)),S(c,n,!1);c.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var y=f.get("size");r.isArray(y)||(y=[y,y]),c.attr("scale",[y[0]/2,y[1]/2]),d.createOrUpdate(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){x(this._axisPointerModel,!e&&this._moveAnimation,this._handle,w(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(w(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(w(r)),f(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},y.prototype.constructor=y,o.enableClassExtend(y);var M=y;t.exports=M},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(899),l=n(5).parsePercent,c=n(43),h=c.createScaleByModel,d=c.niceScaleExtent,f=n(42),v=n(49).getStackedDimension;function m(t,e){var n=this,o=n.getAngleAxis(),l=n.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),l.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var data=t.getData();r.each(data.mapDimension("radius",!0),(function(t){l.scale.unionExtentFromData(data,v(data,t))})),r.each(data.mapDimension("angle",!0),(function(t){o.scale.unionExtentFromData(data,v(data,t))}))}})),d(o.scale,o.model),d(l.scale,l.model),"category"===o.type&&!o.onBand){var c=o.getExtent(),h=360/o.scale.count();o.inverse?c[1]+=h:c[1]-=h,o.setExtent(c[0],c[1])}}function y(t,e){if(t.type=e.get("type"),t.scale=h(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}n(902);var x={dimensions:o.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,c){var h=new o(c);h.update=m;var d=h.getRadiusAxis(),f=h.getAngleAxis(),v=t.findAxisModel("radiusAxis"),x=t.findAxisModel("angleAxis");y(d,v),y(f,x),function(t,e,n){var o=e.get("center"),c=n.getWidth(),h=n.getHeight();t.cx=l(o[0],c),t.cy=l(o[1],h);var d=t.getRadiusAxis(),f=Math.min(c,h)/2,v=e.get("radius");null==v?v=[0,"100%"]:r.isArray(v)||(v=[0,v]),v=[l(v[0],f),l(v[1],f)],d.inverse?d.setExtent(v[1],v[0]):d.setExtent(v[0],v[1])}(h,t,e),n.push(h),t.coordinateSystem=h,h.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}};f.register("polar",x)},function(t,e,n){n(21).registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},function(t,e,n){var r=n(0),o=n(10),l=["cartesian2d","polar","singleAxis"];function c(t,e){t=t.slice();var n=r.map(t,o.capitalFirst);e=(e||[]).slice();var l=r.map(e,o.capitalFirst);return function(o,c){r.each(t,(function(t,r){for(var h={name:t,capital:n[r]},d=0;d<e.length;d++)h[e[d]]=t+l[d];o.call(c,h)}))}}var h=c(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]);e.isCoordSupported=function(t){return r.indexOf(l,t)>=0},e.createNameEach=c,e.eachAxisDim=h,e.createLinkedNodesFinder=function(t,e,n){return function(l){var c,h={nodes:[],records:{}};if(e((function(t){h.records[t.name]={}})),!l)return h;o(l,h);do{c=!1,t(d)}while(c);function d(t){!function(t,e){return r.indexOf(e.nodes,t)>=0}(t,h)&&function(t,o){var l=!1;return e((function(e){r.each(n(t,e)||[],(function(t){o.records[e.name][t]&&(l=!0)}))})),l}(t,h)&&(o(t,h),c=!0)}return h};function o(t,o){o.nodes.push(t),e((function(e){r.each(n(t,e)||[],(function(t){o.records[e.name][t]=!0}))}))}}},function(t,e,n){var r=n(1),o=n(0),l=o.createHashMap,c=o.each;r.registerProcessor({getTargetSeries:function(t){var e=l();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,r){var o=r.getAxisProxy(t.name,n);c(o.getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,n,r){r.getAxisProxy(t.name,n).reset(r,e)})),t.eachTargetAxis((function(t,n,r){r.getAxisProxy(t.name,n).filterData(r,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}))}})},function(t,e,n){var r=n(1),o=n(0),l=n(230);r.registerAction("dataZoom",(function(t,e){var n=l.createLinkedNodesFinder(o.bind(e.eachComponent,e,"dataZoom"),l.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),r=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){r.push.apply(r,n(t).nodes)})),o.each(r,(function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(18),c=n(6),h=n(10),d=n(212),f=h.addCommas,v=h.encodeHTML;function m(t){c.defaultEmphasis(t,"label",["show"])}var y=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(option,t,e){this.mergeDefaultAndTheme(option,e),this._mergeOption(option,e,!1,!0)},isAnimationEnabled:function(){if(l.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,n,r){var l=this.constructor,c=this.mainType+"Model";n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),h=t[c];n&&n.data?(h?h._mergeOption(n,e,!0):(r&&m(n),o.each(n.data,(function(t){t instanceof Array?(m(t[0]),m(t[1])):m(t)})),h=new l(n,this,e),o.extend(h,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),h.__hostSeries=t),t[c]=h):t[c]=null}),this)},formatTooltip:function(t){var data=this.getData(),e=this.getRawValue(t),n=o.isArray(e)?o.map(e,f).join(", "):f(e),r=data.getName(t),html=v(this.name);return(null!=e||r)&&(html+="<br />"),r&&(html+=v(r),null!=e&&(html+=" : ")),null!=e&&(html+=v(n)),html},getData:function(){return this._data},setData:function(data){this._data=data}});o.mixin(y,d);var x=y;t.exports=x},function(t,e,n){var r=n(0),o=n(5),l=n(49).isDimensionStacked,c=r.indexOf;function h(t,data,e,n,r,c){var h=[],d=l(data,n)?data.getCalculationInfo("stackResultDimension"):n,f=m(data,d,t),v=data.indicesOfNearest(d,f)[0];h[r]=data.get(e,v),h[c]=data.get(d,v);var y=data.get(n,v),x=o.getPrecision(data.get(n,v));return(x=Math.min(x,20))>=0&&(h[c]=+h[c].toFixed(x)),[h,y]}var d=r.curry,f={min:d(h,"min"),max:d(h,"max"),average:d(h,"average")};function v(t,data,e,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?data.getDimension(t.valueIndex):t.valueDim,r.valueAxis=e.getAxis(function(t,e){var data=t.getData(),n=data.dimensions;e=data.getDimension(e);for(var i=0;i<n.length;i++){var r=data.getDimensionInfo(n[i]);if(r.name===e)return r.coordDim}}(n,r.valueDataDim)),r.baseAxis=e.getOtherAxis(r.valueAxis),r.baseDataDim=data.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=e.getOtherAxis(r.baseAxis),r.baseDataDim=data.mapDimension(r.baseAxis.dim),r.valueDataDim=data.mapDimension(r.valueAxis.dim)),r}function m(data,t,e){if("average"===e){var n=0,r=0;return data.each(t,(function(t,e){isNaN(t)||(n+=t,r++)})),n/r}return"median"===e?data.getMedian(t):data.getDataExtent(t,!0)["max"===e?1:0]}e.dataTransform=function(t,e){var data=t.getData(),n=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!r.isArray(e.coord)&&n){var o=n.dimensions,l=v(e,data,n,t);if((e=r.clone(e)).type&&f[e.type]&&l.baseAxis&&l.valueAxis){var h=c(o,l.baseAxis.dim),d=c(o,l.valueAxis.dim),y=f[e.type](data,l.baseDataDim,l.valueDataDim,h,d);e.coord=y[0],e.value=y[1]}else{for(var x=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],i=0;i<2;i++)f[x[i]]&&(x[i]=m(data,data.mapDimension(o[i]),x[i]));e.coord=x}}return e},e.getAxisInfo=v,e.dataFilter=function(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)},e.dimValueGetter=function(t,e,n,r){return r<2?t.coord&&t.coord[r]:t.value},e.numCalculate=m},function(t,e,n){var r=n(1),o=n(0),l=r.extendComponentView({type:"marker",init:function(){this.markerGroupMap=o.createHashMap()},render:function(t,e,n){var r=this.markerGroupMap;r.each((function(t){t.__keep=!1}));var o=this.type+"Model";e.eachSeries((function(t){var r=t[o];r&&this.renderSeries(t,r,e,n)}),this),r.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});t.exports=l},function(t,e,n){var r=n(237).createElement,o=n(94),l=n(14),c=n(27),h=n(33),d=n(160),f=n(77),v=o.CMD,m=Array.prototype.join,y=Math.round,x=Math.sin,_=Math.cos,w=Math.PI,S=2*Math.PI,M=180/w;function T(t){return y(1e4*t)/1e4}function A(t){return t<1e-4&&t>-1e-4}function I(t,e){e&&C(t,"transform","matrix("+m.call(e,",")+")")}function C(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function D(t,style,e,n){if(function(style,t){var e=t?style.textFill:style.fill;return null!=e&&"none"!==e}(style,e)){var r=e?style.textFill:style.fill;C(t,"fill",r="transparent"===r?"none":r),C(t,"fill-opacity",null!=style.fillOpacity?style.fillOpacity*style.opacity:style.opacity)}else C(t,"fill","none");if(function(style,t){var e=t?style.textStroke:style.stroke;return null!=e&&"none"!==e}(style,e)){var o=e?style.textStroke:style.stroke;C(t,"stroke",o="transparent"===o?"none":o),C(t,"stroke-width",(e?style.textStrokeWidth:style.lineWidth)/(!e&&style.strokeNoScale?n.getLineScale():1)),C(t,"paint-order",e?"stroke":"fill"),C(t,"stroke-opacity",null!=style.strokeOpacity?style.strokeOpacity:style.opacity),style.lineDash?(C(t,"stroke-dasharray",style.lineDash.join(",")),C(t,"stroke-dashoffset",y(style.lineDashOffset||0))):C(t,"stroke-dasharray",""),style.lineCap&&C(t,"stroke-linecap",style.lineCap),style.lineJoin&&C(t,"stroke-linejoin",style.lineJoin),style.miterLimit&&C(t,"stroke-miterlimit",style.miterLimit)}else C(t,"stroke","none")}var L={};L.brush=function(t){var style=t.style,e=t.__svgEl;e||(e=r("path"),t.__svgEl=e),t.path||t.createPathProxy();var path=t.path;if(t.__dirtyPath){path.beginPath(),path.subPixelOptimize=!1,t.buildPath(path,t.shape),t.__dirtyPath=!1;var n=function(path){for(var t=[],data=path.data,e=path.len(),i=0;i<e;){var n="",r=0;switch(data[i++]){case v.M:n="M",r=2;break;case v.L:n="L",r=2;break;case v.Q:n="Q",r=4;break;case v.C:n="C",r=6;break;case v.A:var o=data[i++],l=data[i++],c=data[i++],h=data[i++],d=data[i++],f=data[i++],m=data[i++],I=data[i++],C=Math.abs(f),D=A(C-S)||(I?f>=S:-f>=S),L=f>0?f%S:f%S+S,k=!1;k=!!D||!A(C)&&L>=w==!!I;var P=T(o+c*_(d)),O=T(l+h*x(d));D&&(f=I?S-1e-4:1e-4-S,k=!0,9===i&&t.push("M",P,O));var E=T(o+c*_(d+f)),N=T(l+h*x(d+f));t.push("A",T(c),T(h),y(m*M),+k,+I,E,N);break;case v.Z:n="Z";break;case v.R:E=T(data[i++]),N=T(data[i++]);var R=T(data[i++]),z=T(data[i++]);t.push("M",E,N,"L",E+R,N,"L",E+R,N+z,"L",E,N+z,"L",E,N)}n&&t.push(n);for(var B=0;B<r;B++)t.push(T(data[i++]))}return t.join(" ")}(path);n.indexOf("NaN")<0&&C(e,"d",n)}D(e,style,!1,t),I(e,t.transform),null!=style.text?z(t,t.getBoundingRect()):V(t)};var k={brush:function(t){var style=t.style,image=style.image;image instanceof HTMLImageElement&&(image=image.src);if(image){var e=style.x||0,n=style.y||0,o=style.width,l=style.height,c=t.__svgEl;c||(c=r("image"),t.__svgEl=c),image!==t.__imageSrc&&(!function(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}(c,"href",image),t.__imageSrc=image),C(c,"width",o),C(c,"height",l),C(c,"x",e),C(c,"y",n),I(c,t.transform),null!=style.text?z(t,t.getBoundingRect()):V(t)}}},P={},O=new l,E={},N=[],R={left:"start",right:"end",center:"middle",middle:"middle"},z=function(t,e){var style=t.style,n=t.transform,o=t instanceof f||style.transformText;t.__dirty&&d.normalizeTextStyle(style,!0);var text=style.text;if(null!=text&&(text+=""),d.needDrawText(text,style)){null==text&&(text=""),!o&&n&&(O.copy(e),O.applyTransform(n),e=O);var l=t.__textSvgEl;l||(l=r("text"),t.__textSvgEl=l);var v=l.style,m=style.font||h.DEFAULT_FONT,y=l.__computedFont;m!==l.__styleFont&&(v.font=l.__styleFont=m,y=l.__computedFont=v.font);var x=style.textPadding,_=style.textLineHeight,w=t.__textCotentBlock;w&&!t.__dirtyText||(w=t.__textCotentBlock=h.parsePlainText(text,y,x,_,style.truncate));var S=w.outerHeight,M=w.lineHeight;d.getBoxPosition(E,t,style,e);var T=E.baseX,A=E.baseY,C=E.textAlign||"left",L=E.textVerticalAlign;!function(t,e,n,style,r,o,l){c.identity(N),e&&n&&c.copy(N,n);var h=style.textRotation;if(r&&h){var d=style.textOrigin;"center"===d?(o=r.width/2+r.x,l=r.height/2+r.y):d&&(o=d[0]+r.x,l=d[1]+r.y),N[4]-=o,N[5]-=l,c.rotate(N,N,h),N[4]+=o,N[5]+=l}I(t,N)}(l,o,n,style,e,T,A);var k=T,P=h.adjustTextY(A,S,L);x&&(k=function(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}(T,C,x),P+=x[0]),P+=M/2,D(l,style,!0,t);var R=w.canCacheByTextString,z=t.__tspanList||(t.__tspanList=[]),V=z.length;if(R&&t.__canCacheByTextString&&t.__text===text){if(t.__dirtyText&&V)for(var H=0;H<V;++H)B(z[H],C,k,P+H*M)}else{t.__text=text,t.__canCacheByTextString=R;var F=w.lines,G=F.length;for(H=0;H<G;H++){var tspan=z[H],W=F[H];tspan?tspan.__zrText!==W&&(tspan.innerHTML="",tspan.appendChild(document.createTextNode(W))):(tspan=z[H]=r("tspan"),l.appendChild(tspan),tspan.appendChild(document.createTextNode(W))),B(tspan,C,k,P+H*M)}if(V>G){for(;H<V;H++)l.removeChild(z[H]);z.length=G}}}};function B(tspan,t,e,n){C(tspan,"dominant-baseline","middle"),C(tspan,"text-anchor",R[t]),C(tspan,"x",e),C(tspan,"y",n)}function V(t){t&&t.__textSvgEl&&(t.__textSvgEl.parentNode&&t.__textSvgEl.parentNode.removeChild(t.__textSvgEl),t.__textSvgEl=null,t.__tspanList=[],t.__text=null)}P.drawRectText=z,P.brush=function(t){null!=t.style.text?z(t,!1):V(t)},e.path=L,e.image=k,e.text=P},function(t,e){e.createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}},function(t,e,n){var r=n(237).createElement,o=n(0),l=n(17),c=n(92),h=n(77),d=n(236),f=d.path,v=d.image,m=d.text;function y(t,e,n,r,o){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=r,this._domName=o||"_dom",this.nextId=0}y.prototype.createElement=r,y.prototype.getDefs=function(t){var e=this._svgRoot,defs=this._svgRoot.getElementsByTagName("defs");return 0===defs.length?t?((defs=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(defs.contains=function(t){var e=defs.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),defs):null:defs[0]},y.prototype.update=function(element,t){if(element){var defs=this.getDefs(!1);if(element[this._domName]&&defs.contains(element[this._domName]))"function"==typeof t&&t(element);else{var e=this.add(element);e&&(element[this._domName]=e)}}},y.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},y.prototype.removeDom=function(element){var defs=this.getDefs(!1);defs&&element[this._domName]&&(defs.removeChild(element[this._domName]),element[this._domName]=null)},y.prototype.getDoms=function(){var defs=this.getDefs(!1);if(!defs)return[];var t=[];return o.each(this._tagNames,(function(e){var n=defs.getElementsByTagName(e);t=t.concat([].slice.call(n))})),t},y.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;o.each(t,(function(t){t[e._markLabel]="0"}))},y.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},y.prototype.removeUnused=function(){var defs=this.getDefs(!1);if(defs){var t=this.getDoms(),e=this;o.each(t,(function(t){"1"!==t[e._markLabel]&&defs.removeChild(t)}))}},y.prototype.getSvgProxy=function(t){return t instanceof l?f:t instanceof c?v:t instanceof h?m:f},y.prototype.getTextSvgElement=function(t){return t.__textSvgEl},y.prototype.getSvgElement=function(t){return t.__svgEl};var x=y;t.exports=x},,function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,l=r(),c=l.default;void 0===c&&(c=[]);var h=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):c.length>0?c.map((function(){return t(!1)})):t(!1))}};t.exports=r},,function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(118),o=n(482),l=n(279),c=Math.max,h=Math.min;t.exports=function(t,e,n){var d,f,v,m,y,x,_=0,w=!1,S=!1,M=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function T(time){var e=d,n=f;return d=f=void 0,_=time,m=t.apply(n,e)}function A(time){return _=time,y=setTimeout(C,e),w?T(time):m}function I(time){var t=time-x;return void 0===x||t>=e||t<0||S&&time-_>=v}function C(){var time=o();if(I(time))return D(time);y=setTimeout(C,function(time){var t=e-(time-x);return S?h(t,v-(time-_)):t}(time))}function D(time){return y=void 0,M&&d?T(time):(d=f=void 0,m)}function L(){var time=o(),t=I(time);if(d=arguments,f=this,x=time,t){if(void 0===y)return A(x);if(S)return clearTimeout(y),y=setTimeout(C,e),T(x)}return void 0===y&&(y=setTimeout(C,e)),m}return e=l(e)||0,r(n)&&(w=!!n.leading,v=(S="maxWait"in n)?c(l(n.maxWait)||0,e):v,M="trailing"in n?!!n.trailing:M),L.cancel=function(){void 0!==y&&clearTimeout(y),_=0,d=x=f=y=void 0},L.flush=function(){return void 0===y?m:D(o())},L}},function(t,e,n){var r=n(483),o="object"==typeof self&&self&&self.Object===Object&&self,l=r||o||Function("return this")();t.exports=l},function(t,e,n){var r=n(118),o=n(484),l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=h.test(t);return n||d.test(t)?f(t.slice(2),n?2:8):c.test(t)?NaN:+t}},function(t,e,n){var r=n(281),o=n(485),l=n(486),c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):l(t)}},function(t,e,n){var r=n(278).Symbol;t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){var n=2311;t.exports=function(){return n++}},function(t,e,n){var r=n(18),o=n(694).buildTransformer,l=[];function c(t,e,n,l,c){if(e.getBoundingClientRect&&r.domSupported&&!h(e)){var d=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),f=function(t,e,n){for(var r=n?"invTrans":"trans",l=e[r],c=e.srcCoords,h=!0,d=[],f=[],i=0;i<4;i++){var rect=t[i].getBoundingClientRect(),v=2*i,m=rect.left,y=rect.top;d.push(m,y),h=h&&c&&m===c[v]&&y===c[v+1],f.push(t[i].offsetLeft,t[i].offsetTop)}return h&&l?l:(e.srcCoords=d,e[r]=n?o(f,d):o(d,f))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],o=["top","bottom"],i=0;i<4;i++){var marker=document.createElement("div"),l=marker.style,c=i%2,h=(i>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",o[h]+":0",r[1-c]+":auto",o[1-h]+":auto",""].join("!important;"),t.appendChild(marker),n.push(marker)}return n}(e,d),d,c);if(f)return f(t,n,l),!0}return!1}function h(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,n,r,o){return c(l,e,r,o,!0)&&c(t,n,l[0],l[1])},e.transformCoordWithViewport=c,e.isCanvasEl=h},function(t,e,n){var r=n(308),o=n(75),l=n(157),c=n(697),h=n(0),d=function(t){l.call(this,t),o.call(this,t),c.call(this,t),this.id=t.id||r()};d.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(h.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},h.mixin(d,c),h.mixin(d,l),h.mixin(d,o);var f=d;t.exports=f},function(t,e,n){var r=n(698),o=n(47),l=n(0).isArrayLike,c=Array.prototype.slice;function h(t,e){return t[e]}function d(t,e,n){t[e]=n}function f(t,e,n){return(e-t)*n+t}function v(t,e,n){return n>.5?e:t}function m(t,e,n,r,o){var l=t.length;if(1===o)for(var i=0;i<l;i++)r[i]=f(t[i],e[i],n);else{var c=l&&t[0].length;for(i=0;i<l;i++)for(var h=0;h<c;h++)r[i][h]=f(t[i][h],e[i][h],n)}}function y(t,e,n){var r=t.length,o=e.length;if(r!==o)if(r>o)t.length=o;else for(var i=r;i<o;i++)t.push(1===n?e[i]:c.call(e[i]));var l=t[0]&&t[0].length;for(i=0;i<t.length;i++)if(1===n)isNaN(t[i])&&(t[i]=e[i]);else for(var h=0;h<l;h++)isNaN(t[i][h])&&(t[i][h]=e[i][h])}function x(t,e,n){if(t===e)return!0;var r=t.length;if(r!==e.length)return!1;if(1===n){for(var i=0;i<r;i++)if(t[i]!==e[i])return!1}else{var o=t[0].length;for(i=0;i<r;i++)for(var l=0;l<o;l++)if(t[i][l]!==e[i][l])return!1}return!0}function _(t,e,n,r,o,l,c,h,d){var f=t.length;if(1===d)for(var i=0;i<f;i++)h[i]=w(t[i],e[i],n[i],r[i],o,l,c);else{var v=t[0].length;for(i=0;i<f;i++)for(var m=0;m<v;m++)h[i][m]=w(t[i][m],e[i][m],n[i][m],r[i][m],o,l,c)}}function w(t,e,n,r,o,l,c){var h=.5*(n-t),d=.5*(r-e);return(2*(e-n)+h+d)*c+(-3*(e-n)-2*h-d)*l+h*o+e}function S(t){if(l(t)){var e=t.length;if(l(t[0])){for(var n=[],i=0;i<e;i++)n.push(c.call(t[i]));return n}return c.call(t)}return t}function M(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function T(t,e,n,c,h,d){var S=t._getter,T=t._setter,A="spline"===e,I=c.length;if(I){var C,D=c[0].value,L=l(D),k=!1,P=!1,O=L?function(t){var e=t[t.length-1].value;return l(e&&e[0])?2:1}(c):0;c.sort((function(a,b){return a.time-b.time})),C=c[I-1].time;for(var E=[],N=[],R=c[0].value,z=!0,i=0;i<I;i++){E.push(c[i].time/C);var B=c[i].value;if(L&&x(B,R,O)||!L&&B===R||(z=!1),R=B,"string"==typeof B){var V=o.parse(B);V?(B=V,k=!0):P=!0}N.push(B)}if(d||!z){var H=N[I-1];for(i=0;i<I-1;i++)L?y(N[i],H,O):!isNaN(N[i])||isNaN(H)||P||k||(N[i]=H);L&&y(S(t._target,h),H,O);var F,G,W,j,U,Z=0,Y=0;if(k)var X=[0,0,0,0];var $=new r({target:t._target,life:C,loop:t._loop,delay:t._delay,onframe:function(t,e){var n;if(e<0)n=0;else if(e<Y){for(n=Math.min(Z+1,I-1);n>=0&&!(E[n]<=e);n--);n=Math.min(n,I-2)}else{for(n=Z;n<I&&!(E[n]>e);n++);n=Math.min(n-1,I-2)}Z=n,Y=e;var r=E[n+1]-E[n];if(0!==r)if(F=(e-E[n])/r,A)if(W=N[n],G=N[0===n?n:n-1],j=N[n>I-2?I-1:n+1],U=N[n>I-3?I-1:n+2],L)_(G,W,j,U,F,F*F,F*F*F,S(t,h),O);else{if(k)o=_(G,W,j,U,F,F*F,F*F*F,X,1),o=M(X);else{if(P)return v(W,j,F);o=w(G,W,j,U,F,F*F,F*F*F)}T(t,h,o)}else if(L)m(N[n],N[n+1],F,S(t,h),O);else{var o;if(k)m(N[n],N[n+1],F,X,1),o=M(X);else{if(P)return v(N[n],N[n+1],F);o=f(N[n],N[n+1],F)}T(t,h,o)}},ondestroy:n});return e&&"spline"!==e&&($.easing=e),$}}}var A=function(t,e,n,r){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||h,this._setter=r||d,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};A.prototype={when:function(time,t){var e=this._tracks;for(var n in t)if(t.hasOwnProperty(n)){if(!e[n]){e[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==time&&e[n].push({time:0,value:S(r)})}e[n].push({time:time,value:t[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var i=0;i<this._clipList.length;i++)this._clipList[i].pause();this._paused=!0},resume:function(){for(var i=0;i<this._clipList.length;i++)this._clipList[i].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,i=0;i<e;i++)t[i].call(this)},start:function(t,e){var n,r=this,o=0,l=function(){--o||r._doneCallback()};for(var c in this._tracks)if(this._tracks.hasOwnProperty(c)){var h=T(this,t,l,this._tracks[c],c,e);h&&(this._clipList.push(h),o++,this.animation&&this.animation.addClip(h),n=h)}if(n){var d=n.onframe;n.onframe=function(t,e){d(t,e);for(var i=0;i<r._onframeList.length;i++)r._onframeList[i](t,e)}}return o||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(time){return this._delay=time,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var I=A;t.exports=I},function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},r=n.prototype;r.insert=function(t){var e=new o(t);return this.insertEntry(e),e},r.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.len=function(){return this._len},r.clear=function(){this.head=this.tail=null,this._len=0};var o=function(t){this.value=t,this.next,this.prev},l=function(t){this._list=new n,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},c=l.prototype;c.put=function(t,e){var n=this._list,map=this._map,r=null;if(null==map[t]){var l=n.len(),c=this._lastRemovedEntry;if(l>=this._maxSize&&l>0){var h=n.head;n.remove(h),delete map[h.key],r=h.value,this._lastRemovedEntry=h}c?c.value=e:c=new o(e),c.key=t,n.insertEntry(c),map[t]=c}return r},c.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},c.clear=function(){this._list.clear(),this._map={}};var h=l;t.exports=h},function(t,e){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};t.exports=function(t,e,r){return n.hasOwnProperty(e)?r*t.dpr:r}},function(t,e){var n=function(image,t){this.image=image,this.repeat=t,this.type="pattern"};n.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var r=n;t.exports=r},function(t,e){var n="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=n},function(t,e,n){var r=n(160),o=n(14),l=n(159).WILL_BE_RESTORED,c=new o,h=function(){};h.prototype={constructor:h,drawRectText:function(t,rect){var style=this.style;rect=style.textRect||rect,this.__dirty&&r.normalizeTextStyle(style,!0);var text=style.text;if(null!=text&&(text+=""),r.needDrawText(text,style)){t.save();var e=this.transform;style.transformText?this.setTransform(t):e&&(c.copy(rect),c.applyTransform(e),rect=c),r.renderText(this,t,text,style,rect,l),t.restore()}}};var d=h;t.exports=d},function(t,e){e.buildPath=function(t,e){var n,r,o,l,c,h=e.x,d=e.y,f=e.width,v=e.height,m=e.r;f<0&&(h+=f,f=-f),v<0&&(d+=v,v=-v),"number"==typeof m?n=r=o=l=m:m instanceof Array?1===m.length?n=r=o=l=m[0]:2===m.length?(n=o=m[0],r=l=m[1]):3===m.length?(n=m[0],r=l=m[1],o=m[2]):(n=m[0],r=m[1],o=m[2],l=m[3]):n=r=o=l=0,n+r>f&&(n*=f/(c=n+r),r*=f/c),o+l>f&&(o*=f/(c=o+l),l*=f/c),r+o>v&&(r*=v/(c=r+o),o*=v/c),n+l>v&&(n*=v/(c=n+l),l*=v/c),t.moveTo(h+n,d),t.lineTo(h+f-r,d),0!==r&&t.arc(h+f-r,d+r,r,-Math.PI/2,0),t.lineTo(h+f,d+v-o),0!==o&&t.arc(h+f-o,d+v-o,o,0,Math.PI/2),t.lineTo(h+l,d+v),0!==l&&t.arc(h+l,d+v-l,l,Math.PI/2,Math.PI),t.lineTo(h,d+n),0!==n&&t.arc(h+n,d+n,n,Math.PI,1.5*Math.PI)}},function(t,e,n){n(7).__DEV__;var r=n(0),o=r.each,filter=r.filter,map=r.map,l=r.isArray,c=r.indexOf,h=r.isObject,d=r.isString,f=r.createHashMap,v=r.assert,m=r.clone,y=r.merge,x=r.extend,_=r.mixin,w=n(6),S=n(19),M=n(21),T=n(721),A=n(330),I=n(55).resetSourceDefaulter,C=S.extend({init:function(option,t,e,n){e=e||{},this.option=null,this._theme=new S(e),this._optionManager=n},setOption:function(option,t){v(!("\0_ec_inner"in option),"please use chart.getOption()"),this._optionManager.setOption(option,t),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):D.call(this,r),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var l=n.getTimelineOption(this);l&&(this.mergeOption(l),e=!0)}if(!t||"recreate"===t||"media"===t){var c=n.getMediaOption(this,this._api);c.length&&o(c,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var option=this.option,e=this._componentsMap,n=[];I(this),o(t,(function(t,e){null!=t&&(M.hasClass(e)?e&&n.push(e):option[e]=null==option[e]?m(t):y(option[e],t,!0))})),M.topologicalTravel(n,M.getAllClassMainTypes(),(function(n,r){var c=w.normalizeToArray(t[n]),d=w.mappingToExists(e.get(n),c);w.makeIdAndName(d),o(d,(function(t,e){var r=t.option;h(r)&&(t.keyInfo.mainType=n,t.keyInfo.subType=function(t,e,n){return e.type?e.type:n?n.subType:M.determineSubType(t,e)}(n,r,t.exist))}));var f=function(t,e){l(e)||(e=e?[e]:[]);var n={};return o(e,(function(e){n[e]=(t.get(e)||[]).slice()})),n}(e,r);option[n]=[],e.set(n,[]),o(d,(function(t,r){var o=t.exist,l=t.option;if(v(h(l)||o,"Empty component definition"),l){var c=M.getClass(n,t.keyInfo.subType,!0);if(o&&o.constructor===c)o.name=t.keyInfo.name,o.mergeOption(l,this),o.optionUpdated(l,!1);else{var d=x({dependentModels:f,componentIndex:r},t.keyInfo);o=new c(l,this,this,d),x(o,d),o.init(l,this,this,d),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);e.get(n)[r]=o,option[n][r]=o.option}),this),"series"===n&&L(this,e.get("series"))}),this),this._seriesIndicesMap=f(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var option=m(this.option);return o(option,(function(t,e){if(M.hasClass(e)){for(var i=(t=w.normalizeToArray(t)).length-1;i>=0;i--)w.isIdInner(t[i])&&t.splice(i,1);option[e]=t}})),delete option["\0_ec_inner"],option},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,o=t.id,h=t.name,d=this._componentsMap.get(e);if(!d||!d.length)return[];if(null!=r)l(r)||(r=[r]),n=filter(map(r,(function(t){return d[t]})),(function(t){return!!t}));else if(null!=o){var f=l(o);n=filter(d,(function(t){return f&&c(o,t.id)>=0||!f&&t.id===o}))}else if(null!=h){var v=l(h);n=filter(d,(function(t){return v&&c(h,t.name)>=0||!v&&t.name===h}))}else n=d.slice();return k(n,t)},findComponents:function(t){var q,e,n,r,o,l=t.query,c=t.mainType,h=(e=c+"Index",n=c+"Id",r=c+"Name",!(q=l)||null==q[e]&&null==q[n]&&null==q[r]?null:{mainType:c,index:q[e],id:q[n],name:q[r]}),d=h?this.queryComponents(h):this._componentsMap.get(c);return o=k(d,t),t.filter?filter(o,t.filter):o},eachComponent:function(t,e,n){var r=this._componentsMap;if("function"==typeof t)n=e,e=t,r.each((function(t,r){o(t,(function(component,t){e.call(n,r,component,t)}))}));else if(d(t))o(r.get(t),e,n);else if(h(t)){var l=this.findComponents(t);o(l,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return filter(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return filter(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){o(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},eachRawSeries:function(t,e){o(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){o(this._seriesIndices,(function(r){var o=this._componentsMap.get("series")[r];o.subType===t&&e.call(n,o,r)}),this)},eachRawSeriesByType:function(t,e,n){return o(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){L(this,filter(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;L(this,e.get("series"));var n=[];e.each((function(t,e){n.push(e)})),M.topologicalTravel(n,M.getAllClassMainTypes(),(function(n,r){o(e.get(n),(function(component){("series"!==n||!function(t,e){if(e){var n=e.seiresIndex,r=e.seriesId,o=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=o&&t.name!==o}}(component,t))&&component.restoreData()}))}))}});function D(t){var option,e,n;t=t,this.option={},this.option["\0_ec_inner"]=1,this._componentsMap=f({series:[]}),this._seriesIndices,this._seriesIndicesMap,option=t,e=this._theme.option,n=option.color&&!option.colorLayer,o(e,(function(t,e){"colorLayer"===e&&n||M.hasClass(e)||("object"==typeof t?option[e]=option[e]?y(option[e],t,!1):m(t):null==option[e]&&(option[e]=t))})),y(t,T,!1),this.mergeOption(t)}function L(t,e){t._seriesIndicesMap=f(t._seriesIndices=map(e,(function(t){return t.componentIndex}))||[])}function k(t,e){return e.hasOwnProperty("subType")?filter(t,(function(t){return t.subType===e.subType})):t}_(C,A);var P=C;t.exports=P},function(t,e,n){var r=n(17),o=n(94),l=n(710),c=Math.sqrt,h=Math.sin,d=Math.cos,f=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(u,t){return(u[0]*t[0]+u[1]*t[1])/(v(u)*v(t))},y=function(u,t){return(u[0]*t[1]<u[1]*t[0]?-1:1)*Math.acos(m(u,t))};function x(t,e,n,r,o,l,v,x,_,w,path){var S=_*(f/180),M=d(S)*(t-n)/2+h(S)*(e-r)/2,T=-1*h(S)*(t-n)/2+d(S)*(e-r)/2,A=M*M/(v*v)+T*T/(x*x);A>1&&(v*=c(A),x*=c(A));var I=(o===l?-1:1)*c((v*v*(x*x)-v*v*(T*T)-x*x*(M*M))/(v*v*(T*T)+x*x*(M*M)))||0,C=I*v*T/x,D=I*-x*M/v,L=(t+n)/2+d(S)*C-h(S)*D,k=(e+r)/2+h(S)*C+d(S)*D,P=y([1,0],[(M-C)/v,(T-D)/x]),u=[(M-C)/v,(T-D)/x],O=[(-1*M-C)/v,(-1*T-D)/x],E=y(u,O);m(u,O)<=-1&&(E=f),m(u,O)>=1&&(E=0),0===l&&E>0&&(E-=2*f),1===l&&E<0&&(E+=2*f),path.addData(w,L,k,v,x,P,E,S,l)}var _=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function S(t,e){var n=function(data){if(!data)return new o;for(var t,e=0,n=0,r=e,l=n,path=new o,c=o.CMD,h=data.match(_),d=0;d<h.length;d++){for(var f,v=h[d],m=v.charAt(0),p=v.match(w)||[],y=p.length,i=0;i<y;i++)p[i]=parseFloat(p[i]);for(var S=0;S<y;){var M,T,A,I,C,D,L,k=e,P=n;switch(m){case"l":e+=p[S++],n+=p[S++],f=c.L,path.addData(f,e,n);break;case"L":e=p[S++],n=p[S++],f=c.L,path.addData(f,e,n);break;case"m":e+=p[S++],n+=p[S++],f=c.M,path.addData(f,e,n),r=e,l=n,m="l";break;case"M":e=p[S++],n=p[S++],f=c.M,path.addData(f,e,n),r=e,l=n,m="L";break;case"h":e+=p[S++],f=c.L,path.addData(f,e,n);break;case"H":e=p[S++],f=c.L,path.addData(f,e,n);break;case"v":n+=p[S++],f=c.L,path.addData(f,e,n);break;case"V":n=p[S++],f=c.L,path.addData(f,e,n);break;case"C":f=c.C,path.addData(f,p[S++],p[S++],p[S++],p[S++],p[S++],p[S++]),e=p[S-2],n=p[S-1];break;case"c":f=c.C,path.addData(f,p[S++]+e,p[S++]+n,p[S++]+e,p[S++]+n,p[S++]+e,p[S++]+n),e+=p[S-2],n+=p[S-1];break;case"S":M=e,T=n;var O=path.len(),E=path.data;t===c.C&&(M+=e-E[O-4],T+=n-E[O-3]),f=c.C,k=p[S++],P=p[S++],e=p[S++],n=p[S++],path.addData(f,M,T,k,P,e,n);break;case"s":M=e,T=n;O=path.len(),E=path.data;t===c.C&&(M+=e-E[O-4],T+=n-E[O-3]),f=c.C,k=e+p[S++],P=n+p[S++],e+=p[S++],n+=p[S++],path.addData(f,M,T,k,P,e,n);break;case"Q":k=p[S++],P=p[S++],e=p[S++],n=p[S++],f=c.Q,path.addData(f,k,P,e,n);break;case"q":k=p[S++]+e,P=p[S++]+n,e+=p[S++],n+=p[S++],f=c.Q,path.addData(f,k,P,e,n);break;case"T":M=e,T=n;O=path.len(),E=path.data;t===c.Q&&(M+=e-E[O-4],T+=n-E[O-3]),e=p[S++],n=p[S++],f=c.Q,path.addData(f,M,T,e,n);break;case"t":M=e,T=n;O=path.len(),E=path.data;t===c.Q&&(M+=e-E[O-4],T+=n-E[O-3]),e+=p[S++],n+=p[S++],f=c.Q,path.addData(f,M,T,e,n);break;case"A":A=p[S++],I=p[S++],C=p[S++],D=p[S++],L=p[S++],x(k=e,P=n,e=p[S++],n=p[S++],D,L,A,I,C,f=c.A,path);break;case"a":A=p[S++],I=p[S++],C=p[S++],D=p[S++],L=p[S++],x(k=e,P=n,e+=p[S++],n+=p[S++],D,L,A,I,C,f=c.A,path)}}"z"!==m&&"Z"!==m||(f=c.Z,path.addData(f),e=r,n=l),t=f}return path.toStatic(),path}(t);return(e=e||{}).buildPath=function(path){if(path.setData){path.setData(n.data),(t=path.getContext())&&path.rebuildPath(t)}else{var t=path;n.rebuildPath(t)}},e.applyTransform=function(t){l(n,t),this.dirty(!0)},e}e.createFromString=function(t,e){return new r(S(t,e))},e.extendFromString=function(t,e){return r.extend(S(t,e))},e.mergePath=function(t,e){for(var n=[],o=t.length,i=0;i<o;i++){var l=t[i];l.path||l.createPathProxy(),l.__dirtyPath&&l.buildPath(l.path,l.shape,!0),n.push(l.path)}var c=new r(e);return c.createPathProxy(),c.buildPath=function(path){path.appendPath(n);var t=path.getContext();t&&path.rebuildPath(t)},c}},function(t,e){e.containStroke=function(t,e,n,r,o,l,c){if(0===o)return!1;var h=o,d=0;if(c>e+h&&c>r+h||c<e-h&&c<r-h||l>t+h&&l>n+h||l<t-h&&l<n-h)return!1;if(t===n)return Math.abs(l-t)<=h/2;var f=(d=(e-r)/(t-n))*l-c+(t*r-n*e)/(t-n);return f*f/(d*d+1)<=h/2*h/2}},function(t,e,n){var r=n(63).quadraticProjectPoint;e.containStroke=function(t,e,n,o,l,c,h,d,f){if(0===h)return!1;var v=h;return!(f>e+v&&f>o+v&&f>c+v||f<e-v&&f<o-v&&f<c-v||d>t+v&&d>n+v&&d>l+v||d<t-v&&d<n-v&&d<l-v)&&r(t,e,n,o,l,c,d,f,null)<=v/2}},function(t,e){var n=2*Math.PI;e.normalizeRadian=function(t){return(t%=n)<0&&(t+=n),t}},function(t,e){t.exports=function(t,e,n,r,o,l){if(l>e&&l>r||l<e&&l<r)return 0;if(r===e)return 0;var c=r<e?1:-1,h=(l-e)/(r-e);1!==h&&0!==h||(c=r<e?.5:-.5);var d=h*(n-t)+t;return d===o?1/0:d>o?c:0}},function(t,e,n){var r=n(17).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=r},function(t,e,n){var r=n(18),o=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=function(t){return r.browser.ie&&r.browser.version>=11?function(){var e,n=this.__clipPaths,style=this.style;if(n)for(var i=0;i<n.length;i++){var r=n[i],l=r&&r.shape,c=r&&r.type;if(l&&("sector"===c&&l.startAngle===l.endAngle||"rect"===c&&(!l.width||!l.height))){for(var h=0;h<o.length;h++)o[h][2]=style[o[h][0]],style[o[h][0]]=o[h][1];e=!0;break}}if(t.apply(this,arguments),e)for(h=0;h<o.length;h++)style[o[h][0]]=o[h][2]}:t}},function(t,e,n){var r=n(17),o=n(327),l=r.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){o.buildPath(t,e,!0)}});t.exports=l},function(t,e,n){var r=n(713),o=n(714);e.buildPath=function(t,e,n){var l=e.points,c=e.smooth;if(l&&l.length>=2){if(c&&"spline"!==c){var h=o(l,c,n,e.smoothConstraint);t.moveTo(l[0][0],l[0][1]);for(var d=l.length,i=0;i<(n?d:d-1);i++){var f=h[2*i],v=h[2*i+1],p=l[(i+1)%d];t.bezierCurveTo(f[0],f[1],v[0],v[1],p[0],p[1])}}else{"spline"===c&&(l=r(l,n)),t.moveTo(l[0][0],l[0][1]);i=1;for(var m=l.length;i<m;i++)t.lineTo(l[i][0],l[i][1])}n&&t.closePath()}}},function(t,e,n){var r=n(17),o=n(327),l=r.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){o.buildPath(t,e,!1)}});t.exports=l},function(t,e,n){var r=n(17),o=n(209).subPixelOptimizeLine,l={},c=r.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n,r,c,h;this.subPixelOptimize?(o(l,e,this.style),n=l.x1,r=l.y1,c=l.x2,h=l.y2):(n=e.x1,r=e.y1,c=e.x2,h=e.y2);var d=e.percent;0!==d&&(t.moveTo(n,r),d<1&&(c=n*(1-d)+c*d,h=r*(1-d)+h*d),t.lineTo(c,h))},pointAt:function(p){var t=this.shape;return[t.x1*(1-p)+t.x2*p,t.y1*(1-p)+t.y2*p]}});t.exports=c},function(t,e,n){var r=n(6),o=r.makeInner,l=r.normalizeToArray,c=o();var h={clearColorPalette:function(){c(this).colorIdx=0,c(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var r=c(e=e||this),o=r.colorIdx||0,h=r.colorNameMap=r.colorNameMap||{};if(h.hasOwnProperty(t))return h[t];var d=l(this.get("color",!0)),f=this.get("colorLayer",!0),v=null!=n&&f?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(f,n):d;if((v=v||d)&&v.length){var m=v[o];return t&&(h[t]=m),r.colorIdx=(o+1)%v.length,m}}};t.exports=h},function(t,e,n){var r=n(0),o=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var l=function(t){r.each(o,(function(e){this[e]=r.bind(t[e],t)}),this)};t.exports=l},function(t,e,n){var r=n(21),o=n(162),l=n(55).detectSourceFormat,c=n(124).SERIES_LAYOUT_BY_COLUMN;r.extend({type:"dataset",defaultOption:{seriesLayoutBy:c,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){l(this)}}),o.extend({type:"dataset"})},function(t,e,n){var r=n(76),o=n(92),l=n(77),c=n(324),h=n(208),d=n(732),f=n(329),v=n(17),m=n(326),y=n(328),x=n(210),_=n(206),w=n(27),S=n(319).createFromString,M=n(0),T=M.isString,A=M.extend,I=M.defaults,C=M.trim,D=M.each,L=/[\s,]+/;function k(svg){T(svg)&&(svg=(new DOMParser).parseFromString(svg,"text/xml"));for(9===svg.nodeType&&(svg=svg.firstChild);"svg"!==svg.nodeName.toLowerCase()||1!==svg.nodeType;)svg=svg.nextSibling;return svg}function P(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}P.prototype.parse=function(t,e){e=e||{};var svg=k(t);if(!svg)throw new Error("Illegal svg");var n=new r;this._root=n;var o=svg.getAttribute("viewBox")||"",l=parseFloat(svg.getAttribute("width")||e.width),c=parseFloat(svg.getAttribute("height")||e.height);isNaN(l)&&(l=null),isNaN(c)&&(c=null),B(svg,n,null,!0);for(var d,f,v=svg.firstChild;v;)this._parseNode(v,n),v=v.nextSibling;if(o){var m=C(o).split(L);m.length>=4&&(d={x:parseFloat(m[0]||0),y:parseFloat(m[1]||0),width:parseFloat(m[2]),height:parseFloat(m[3])})}if(d&&null!=l&&null!=c&&(f=W(d,l,c),!e.ignoreViewBox)){var y=n;(n=new r).add(y),y.scale=f.scale.slice(),y.position=f.position.slice()}return e.ignoreRootClip||null==l||null==c||n.setClipPath(new h({shape:{x:0,y:0,width:l,height:c}})),{root:n,width:l,height:c,viewBoxRect:d,viewBoxTransform:f}},P.prototype._parseNode=function(t,e){var n,r,o=t.nodeName.toLowerCase();if("defs"===o?this._isDefine=!0:"text"===o&&(this._isText=!0),this._isDefine){if(r=E[o]){var l=r.call(this,t),c=t.getAttribute("id");c&&(this._defs[c]=l)}}else(r=O[o])&&(n=r.call(this,t,e),e.add(n));for(var h=t.firstChild;h;)1===h.nodeType&&this._parseNode(h,n),3===h.nodeType&&this._isText&&this._parseText(h,n),h=h.nextSibling;"defs"===o?this._isDefine=!1:"text"===o&&(this._isText=!1)},P.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,r=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(r)}var text=new l({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});N(e,text),B(t,text,this._defs);var o=text.style.fontSize;o&&o<9&&(text.style.fontSize=9,text.scale=text.scale||[1,1],text.scale[0]*=o/9,text.scale[1]*=o/9);var rect=text.getBoundingRect();return this._textX+=rect.width,e.add(text),text};var O={g:function(t,e){var g=new r;return N(e,g),B(t,g,this._defs),g},rect:function(t,e){var rect=new h;return N(e,rect),B(t,rect,this._defs),rect.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),rect},circle:function(t,e){var circle=new c;return N(e,circle),B(t,circle,this._defs),circle.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),circle},line:function(t,e){var line=new f;return N(e,line),B(t,line,this._defs),line.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),line},ellipse:function(t,e){var ellipse=new d;return N(e,ellipse),B(t,ellipse,this._defs),ellipse.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),ellipse},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=R(n));var polygon=new m({shape:{points:n||[]}});return N(e,polygon),B(t,polygon,this._defs),polygon},polyline:function(t,e){var path=new v;N(e,path),B(t,path,this._defs);var n=t.getAttribute("points");return n&&(n=R(n)),new y({shape:{points:n||[]}})},image:function(t,e){var img=new o;return N(e,img),B(t,img,this._defs),img.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),img},text:function(t,e){var n=t.getAttribute("x")||0,o=t.getAttribute("y")||0,l=t.getAttribute("dx")||0,c=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(l),this._textY=parseFloat(o)+parseFloat(c);var g=new r;return N(e,g),B(t,g,this._defs),g},tspan:function(t,e){var n=t.getAttribute("x"),o=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=o&&(this._textY=parseFloat(o));var l=t.getAttribute("dx")||0,c=t.getAttribute("dy")||0,g=new r;return N(e,g),B(t,g,this._defs),this._textX+=l,this._textY+=c,g},path:function(t,e){var n=t.getAttribute("d")||"",path=S(n);return N(e,path),B(t,path,this._defs),path}},E={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),r=parseInt(t.getAttribute("x2")||10,10),o=parseInt(t.getAttribute("y2")||0,10),l=new x(e,n,r,o);return function(t,e){var n=t.firstChild;for(;n;){if(1===n.nodeType){var r=n.getAttribute("offset");r=r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o=n.getAttribute("stop-color")||"#000000";e.addColorStop(r,o)}n=n.nextSibling}}(t,l),l},radialgradient:function(t){}};function N(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),I(e.__inheritedStyle,t.__inheritedStyle))}function R(t){for(var e=C(t).split(L),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}var z={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function B(t,e,defs,n){var r=e.__inheritedStyle||{},o="text"===e.type;if(1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=null,o=[];n.replace(F,(function(t,e,n){o.push(e,n)}));for(var i=o.length-1;i>0;i-=2){var l=o[i],c=o[i-1];switch(r=r||w.create(),c){case"translate":l=C(l).split(L),w.translate(r,r,[parseFloat(l[0]),parseFloat(l[1]||0)]);break;case"scale":l=C(l).split(L),w.scale(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":l=C(l).split(L),w.rotate(r,r,parseFloat(l[0]));break;case"skew":l=C(l).split(L),console.warn("Skew transform is not supported yet");break;case"matrix":l=C(l).split(L);r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),A(r,function(t){var style=t.getAttribute("style"),e={};if(!style)return e;var n,r={};G.lastIndex=0;for(;null!=(n=G.exec(style));)r[n[1]]=n[2];for(var o in z)z.hasOwnProperty(o)&&null!=r[o]&&(e[z[o]]=r[o]);return e}(t)),!n))for(var l in z)if(z.hasOwnProperty(l)){var c=t.getAttribute(l);null!=c&&(r[z[l]]=c)}var h=o?"textFill":"fill",d=o?"textStroke":"stroke";e.style=e.style||new _;var f=e.style;null!=r.fill&&f.set(h,H(r.fill,defs)),null!=r.stroke&&f.set(d,H(r.stroke,defs)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=r[t]&&f.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&f.set(t,r[t])})),r.lineDash&&(e.style.lineDash=C(r.lineDash).split(L)),f[d]&&"none"!==f[d]&&(e[d]=!0),e.__inheritedStyle=r}var V=/url\(\s*#(.*?)\)/;function H(t,defs){var e=defs&&t&&t.match(V);return e?defs[C(e[1])]:t}var F=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var G=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(t,e,n){var r=e/t.width,o=n/t.height,l=Math.min(r,o);return{scale:[l,l],position:[-(t.x+t.width/2)*l+e/2,-(t.y+t.height/2)*l+n/2]}}e.parseXML=k,e.makeViewBoxTransform=W,e.parseSVG=function(t,e){return(new P).parse(t,e)}},function(t,e,n){var r=n(156);e.zrender=r;var o=n(27);e.matrix=o;var l=n(11);e.vector=l;var c=n(0),h=n(47);e.color=h;var d=n(2),f=n(5);e.number=f;var v=n(10);e.format=v;var m=n(64);m.throttle;e.throttle=m.throttle;var y=n(733);e.helper=y;var x=n(340);e.parseGeoJSON=x;var _=n(37);e.List=_;var w=n(19);e.Model=w;var S=n(66);e.Axis=S;var M=n(18);e.env=M;var T=x,A={};c.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){A[t]=c[t]}));var I={};c.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){I[t]=d[t]})),e.parseGeoJson=T,e.util=A,e.graphic=I},function(t,e,n){var r=n(0);var o=function(t){null!=t&&r.extend(this,t),this.otherDims={}};t.exports=o},function(t,e,n){var r=n(0),o=r.createHashMap,l=r.each,c=r.isString,h=r.defaults,d=r.extend,f=r.isObject,v=r.clone,m=n(6).normalizeToArray,y=n(55),x=y.guessOrdinal,_=y.BE_ORDINAL,w=n(123),S=n(125).OTHER_DIMENSIONS,M=n(335);function T(t,map,e){if(e||null!=map.get(t)){for(var i=0;null!=map.get(t+i);)i++;t+=i}return map.set(t,!0),t}var A=function(t,source,e){w.isInstance(source)||(source=w.seriesDataToSource(source)),e=e||{},t=(t||[]).slice();for(var n=(e.dimsDef||[]).slice(),r=o(),y=o(),A=[],I=function(source,t,e,n){var r=Math.max(source.dimensionsDetectCount||1,t.length,e.length,n||0);return l(t,(function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))})),r}(source,t,n,e.dimCount),i=0;i<I;i++){var C=n[i]=d({},f(n[i])?n[i]:{name:n[i]}),D=C.name,L=A[i]=new M;null!=D&&null==r.get(D)&&(L.name=L.displayName=D,r.set(D,i)),null!=C.type&&(L.type=C.type),null!=C.displayName&&(L.displayName=C.displayName)}var k=e.encodeDef;!k&&e.encodeDefaulter&&(k=e.encodeDefaulter(source,I)),(k=o(k)).each((function(t,e){if(1===(t=m(t).slice()).length&&!c(t[0])&&t[0]<0)k.set(e,!1);else{var n=k.set(e,[]);l(t,(function(t,o){c(t)&&(t=r.get(t)),null!=t&&t<I&&(n[o]=t,O(A[t],e,o))}))}}));var P=0;function O(t,e,n){null!=S.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,y.set(e,!0))}l(t,(function(t,e){var n,r,o;if(c(t))n=t,t={};else{n=t.name;var d=t.ordinalMeta;t.ordinalMeta=null,(t=v(t)).ordinalMeta=d,r=t.dimsDef,o=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}if(!1!==(y=k.get(n))){var y;if(!(y=m(y)).length)for(var i=0;i<(r&&r.length||1);i++){for(;P<A.length&&null!=A[P].coordDim;)P++;P<A.length&&y.push(P++)}l(y,(function(e,l){var c=A[e];if(O(h(c,t),n,l),null==c.name&&r){var d=r[l];!f(d)&&(d={name:d}),c.name=c.displayName=d.name,c.defaultTooltip=d.defaultTooltip}o&&h(c.otherDims,o)}))}}));var E=e.generateCoord,N=e.generateCoordCount,R=null!=N;N=E?N||1:0;for(var z=E||"value",B=0;B<I;B++){null==(L=A[B]=A[B]||new M).coordDim&&(L.coordDim=T(z,y,R),L.coordDimIndex=0,(!E||N<=0)&&(L.isExtraCoord=!0),N--),null==L.name&&(L.name=T(L.coordDim,r)),null!=L.type||x(source,B,L.name)!==_.Must&&(!L.isExtraCoord||null==L.otherDims.itemName&&null==L.otherDims.seriesName)||(L.type="ordinal")}return A};t.exports=A},function(t,e,n){var r=n(0),o=r.createHashMap,l=r.isObject,map=r.map;function c(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}c.createByAxisModel=function(t){var option=t.option,data=option.data,e=data&&map(data,f);return new c({categories:e,needCollect:!e,deduplication:!1!==option.dedplication})};var h=c.prototype;function d(t){return t._map||(t._map=o(t.categories))}function f(t){return l(t)&&null!=t.value?t.value:t+""}h.getOrdinal=function(t){return d(this).get(t)},h.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var map=d(this);return null==(e=map.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,map.set(t,e)):e=NaN),e};var v=c;t.exports=v},function(t,e,n){var r=n(5),o=r.round;function l(t){return r.getPrecisionSafe(t)+2}function c(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function h(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),c(t,0,e),c(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,n,c){var d={},span=t[1]-t[0],f=d.interval=r.nice(span/e,!0);null!=n&&f<n&&(f=d.interval=n),null!=c&&f>c&&(f=d.interval=c);var v=d.intervalPrecision=l(f);return h(d.niceTickExtent=[o(Math.ceil(t[0]/f)*f,v),o(Math.floor(t[1]/f)*f,v)],t),d},e.getIntervalPrecision=l,e.fixExtent=h},function(t,e,n){var r=n(0),o=n(163),l=n(5),c=n(164),h=o.prototype,d=c.prototype,f=l.getPrecisionSafe,v=l.round,m=Math.floor,y=Math.ceil,x=Math.pow,_=Math.log,w=o.extend({type:"log",base:10,$constructor:function(){o.apply(this,arguments),this._originalScale=new c},getTicks:function(t){var e=this._originalScale,n=this._extent,o=e.getExtent();return r.map(d.getTicks.call(this,t),(function(t){var r=l.round(x(this.base,t));return r=t===n[0]&&e.__fixMin?S(r,o[0]):r,r=t===n[1]&&e.__fixMax?S(r,o[1]):r}),this)},getMinorTicks:d.getMinorTicks,getLabel:d.getLabel,scale:function(t){return t=h.scale.call(this,t),x(this.base,t)},setExtent:function(t,e){var base=this.base;t=_(t)/_(base),e=_(e)/_(base),d.setExtent.call(this,t,e)},getExtent:function(){var base=this.base,t=h.getExtent.call(this);t[0]=x(base,t[0]),t[1]=x(base,t[1]);var e=this._originalScale,n=e.getExtent();return e.__fixMin&&(t[0]=S(t[0],n[0])),e.__fixMax&&(t[1]=S(t[1],n[1])),t},unionExtent:function(t){this._originalScale.unionExtent(t);var base=this.base;t[0]=_(t[0])/_(base),t[1]=_(t[1])/_(base),h.unionExtent.call(this,t)},unionExtentFromData:function(data,t){this.unionExtent(data.getApproximateExtent(t))},niceTicks:function(t){t=t||10;var e=this._extent,span=e[1]-e[0];if(!(span===1/0||span<=0)){var n=l.quantity(span);for(t/span*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var r=[l.round(y(e[0]/n)*n),l.round(m(e[1]/n)*n)];this._interval=n,this._niceExtent=r}},niceExtent:function(t){d.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function S(t,e){return v(t,f(e))}r.each(["contain","normalize"],(function(t){w.prototype[t]=function(e){return e=_(e)/_(this.base),h[t].call(this,e)}})),w.create=function(){return new w};var M=w;t.exports=M},function(t,e,n){var r=n(0),o=n(341);function l(t,e,n){for(var r=[],o=e[0],l=e[1],i=0;i<t.length;i+=2){var c=t.charCodeAt(i)-64,h=t.charCodeAt(i+1)-64;c=c>>1^-(1&c),h=h>>1^-(1&h),o=c+=o,l=h+=l,r.push([c/n,h/n])}return r}t.exports=function(t,e){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,r=0;r<n.length;r++)for(var o=n[r].geometry,c=o.coordinates,h=o.encodeOffsets,d=0;d<c.length;d++){var f=c[d];if("Polygon"===o.type)c[d]=l(f,h[d],e);else if("MultiPolygon"===o.type)for(var v=0;v<f.length;v++){var polygon=f[v];f[v]=l(polygon,h[d][v],e)}}t.UTF8Encoding=!1}(t),r.map(r.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,l=t.geometry,c=l.coordinates,h=[];"Polygon"===l.type&&h.push({type:"polygon",exterior:c[0],interiors:c.slice(1)}),"MultiPolygon"===l.type&&r.each(c,(function(t){t[0]&&h.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var d=new o(n[e||"name"],h,n.cp);return d.properties=n,d}))}},function(t,e,n){var r=n(14),o=n(121),l=n(11),c=n(342);function h(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var rect=this.getBoundingRect();n=[rect.x+rect.width/2,rect.y+rect.height/2]}this.center=n}h.prototype={constructor:h,properties:null,getBoundingRect:function(){var rect=this._rect;if(rect)return rect;for(var t=Number.MAX_VALUE,e=[t,t],n=[-t,-t],c=[],h=[],d=this.geometries,i=0;i<d.length;i++)if("polygon"===d[i].type){var f=d[i].exterior;o.fromPoints(f,c,h),l.min(e,e,c),l.max(n,n,h)}return 0===i&&(e[0]=e[1]=n[0]=n[1]=0),this._rect=new r(e[0],e[1],n[0]-e[0],n[1]-e[1])},contain:function(t){var rect=this.getBoundingRect(),e=this.geometries;if(!rect.contain(t[0],t[1]))return!1;t:for(var i=0,n=e.length;i<n;i++)if("polygon"===e[i].type){var r=e[i].exterior,o=e[i].interiors;if(c.contain(r,t[0],t[1])){for(var l=0;l<(o?o.length:0);l++)if(c.contain(o[l]))continue t;return!0}}return!1},transformTo:function(t,e,n,o){var rect=this.getBoundingRect(),c=rect.width/rect.height;n?o||(o=n/c):n=c*o;for(var h=new r(t,e,n,o),d=rect.calculateTransform(h),f=this.geometries,i=0;i<f.length;i++)if("polygon"===f[i].type){for(var v=f[i].exterior,m=f[i].interiors,p=0;p<v.length;p++)l.applyTransform(v[p],v[p],d);for(var y=0;y<(m?m.length:0);y++)for(p=0;p<m[y].length;p++)l.applyTransform(m[y][p],m[y][p],d)}(rect=this._rect).copy(h),this.center=[rect.x+rect.width/2,rect.y+rect.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new h(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var d=h;t.exports=d},function(t,e,n){var r=n(323);function o(a,b){return Math.abs(a-b)<1e-8}e.contain=function(t,e,n){var l=0,p=t[0];if(!p)return!1;for(var i=1;i<t.length;i++){var c=t[i];l+=r(p[0],p[1],c[0],c[1],e,n),p=c}var h=t[0];return o(p[0],h[0])&&o(p[1],h[1])||(l+=r(p[0],p[1],h[0],h[1],e,n)),0!==l}},function(t,e,n){var r=n(49).isDimensionStacked,map=n(0).map;e.prepareDataCoordInfo=function(t,data,e){var n,o=t.getBaseAxis(),l=t.getOtherAxis(o),c=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(l,e),h=o.dim,d=l.dim,f=data.mapDimension(d),v=data.mapDimension(h),m="x"===d||"radius"===d?1:0,y=map(t.dimensions,(function(t){return data.mapDimension(t)})),x=data.getCalculationInfo("stackResultDimension");return(n|=r(data,y[0]))&&(y[0]=x),(n|=r(data,y[1]))&&(y[1]=x),{dataDimsForPoint:y,valueStart:c,valueAxisDim:d,baseAxisDim:h,stacked:!!n,valueDim:f,baseDim:v,baseDataOffset:m,stackedOverDimension:data.getCalculationInfo("stackedOverDimension")}},e.getStackedOnPoint=function(t,e,data,n){var r=NaN;t.stacked&&(r=data.get(data.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,l=[];return l[o]=data.get(t.baseDim,n),l[1-o]=r,e.dataToPoint(l)}},function(t,e,n){var r=n(17),o=n(11),l=n(325),c=o.min,h=o.max,d=o.scaleAndAdd,f=o.copy,v=[],m=[],y=[];function x(p){return isNaN(p[0])||isNaN(p[1])}function _(t,e,n,r,o,l,c,h,d,f,v){return"none"!==f&&f?w.apply(this,arguments):S.apply(this,arguments)}function w(t,e,n,r,o,l,c,h,d,v,_){for(var w=0,S=n,M=0;M<r;M++){var p=e[S];if(S>=o||S<0)break;if(x(p)){if(_){S+=l;continue}break}if(S===n)t[l>0?"moveTo":"lineTo"](p[0],p[1]);else if(d>0){var T=e[w],A="y"===v?1:0,I=(p[A]-T[A])*d;f(m,T),m[A]=T[A]+I,f(y,p),y[A]=p[A]-I,t.bezierCurveTo(m[0],m[1],y[0],y[1],p[0],p[1])}else t.lineTo(p[0],p[1]);w=S,S+=l}return M}function S(t,e,n,r,l,_,w,S,M,T,A){for(var I=0,C=n,D=0;D<r;D++){var p=e[C];if(C>=l||C<0)break;if(x(p)){if(A){C+=_;continue}break}if(C===n)t[_>0?"moveTo":"lineTo"](p[0],p[1]),f(m,p);else if(M>0){var L=C+_,k=e[L];if(A)for(;k&&x(e[L]);)k=e[L+=_];var P=.5,O=e[I];if(!(k=e[L])||x(k))f(y,p);else{var E,N;if(x(k)&&!A&&(k=p),o.sub(v,k,O),"x"===T||"y"===T){var R="x"===T?0:1;E=Math.abs(p[R]-O[R]),N=Math.abs(p[R]-k[R])}else E=o.dist(p,O),N=o.dist(p,k);d(y,p,v,-M*(1-(P=N/(N+E))))}c(m,m,S),h(m,m,w),c(y,y,S),h(y,y,w),t.bezierCurveTo(m[0],m[1],y[0],y[1],p[0],p[1]),d(m,p,v,M*P)}else t.lineTo(p[0],p[1]);I=C,C+=_}return D}function M(t,e){var n=[1/0,1/0],r=[-1/0,-1/0];if(e)for(var i=0;i<t.length;i++){var o=t[i];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>r[0]&&(r[0]=o[0]),o[1]>r[1]&&(r[1]=o[1])}return{min:e?n:r,max:e?r:n}}var T=r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:l(r.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,o=M(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&x(n[r-1]);r--);for(;i<r&&x(n[i]);i++);}for(;i<r;)i+=_(t,n,i,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),A=r.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:l(r.prototype.brush),buildPath:function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length,l=e.smoothMonotone,c=M(n,e.smoothConstraint),h=M(r,e.smoothConstraint);if(e.connectNulls){for(;o>0&&x(n[o-1]);o--);for(;i<o&&x(n[i]);i++);}for(;i<o;){var d=_(t,n,i,o,o,1,c.min,c.max,e.smooth,l,e.connectNulls);_(t,r,i+d-1,d,o,-1,h.min,h.max,e.stackedOnSmooth,l,e.connectNulls),i+=d+1,t.closePath()}}});e.Polyline=T,e.Polygon=A},function(t,e,n){var r=n(0),o=n(21),l=n(167),c=n(97),h=o.extend({type:"cartesian2dAxis",axis:null,init:function(){h.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){h.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){h.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function d(t,option){return option.type||(option.data?"category":"value")}r.merge(h.prototype,c);var f={offset:0};l("x",h,d,f),l("y",h,d,f);var v=h;t.exports=v},function(t,e,n){var r=n(0),o={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},l={};l.categoryAxis=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),l.valueAxis=r.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},o),l.timeAxis=r.defaults({scale:!0,min:"dataMin",max:"dataMax"},l.valueAxis),l.logAxis=r.defaults({scale:!0,logBase:10},l.valueAxis);var c=l;t.exports=c},function(t,e,n){var r=n(0);e.layout=function(t,e,n){n=n||{};var o=t.coordinateSystem,l=e.axis,c={},h=l.getAxesOnZeroOf()[0],d=l.position,f=h?"onZero":d,v=l.dim,rect=o.getRect(),m=[rect.x,rect.x+rect.width,rect.y,rect.y+rect.height],y={left:0,right:1,top:0,bottom:1,onZero:2},x=e.get("offset")||0,_="x"===v?[m[2]-x,m[3]+x]:[m[0]-x,m[1]+x];if(h){var w=h.toGlobalCoord(h.dataToCoord(0));_[y.onZero]=Math.max(Math.min(w,_[1]),_[0])}c.position=["y"===v?_[y[f]]:m[0],"x"===v?_[y[f]]:m[3]],c.rotation=Math.PI/2*("x"===v?0:1),c.labelDirection=c.tickDirection=c.nameDirection={top:-1,bottom:1,left:-1,right:1}[d],c.labelOffset=h?_[y[d]]-_[y.onZero]:0,e.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),r.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(c.labelDirection=-c.labelDirection);var S=e.get("axisLabel.rotate");return c.labelRotate="top"===f?-S:S,c.z2=1,c}},function(t,e,n){var r=n(0),o=n(2);e.rectCoordAxisBuildSplitArea=function(t,e,n,l){var c=n.axis;if(!c.scale.isBlank()){var h=n.getModel("splitArea"),d=h.getModel("areaStyle"),f=d.get("color"),v=l.coordinateSystem.getRect(),m=c.getTicksCoords({tickModel:h,clamp:!0});if(m.length){var y=f.length,x=t.__splitAreaColors,_=r.createHashMap(),w=0;if(x)for(var i=0;i<m.length;i++){var S=x.get(m[i].tickValue);if(null!=S){w=(S+(y-1)*i)%y;break}}var M=c.toGlobalCoord(m[0].coord),T=d.getAreaStyle();f=r.isArray(f)?f:[f];for(i=1;i<m.length;i++){var A,I,C,D,L=c.toGlobalCoord(m[i].coord);c.isHorizontal()?(A=M,I=v.y,C=L-A,D=v.height,M=A+C):(A=v.x,I=M,C=v.width,M=I+(D=L-I));var k=m[i-1].tickValue;null!=k&&_.set(k,w),e.add(new o.Rect({anid:null!=k?"area_"+k:null,shape:{x:A,y:I,width:C,height:D},style:r.defaults({fill:f[w]},T),silent:!0})),w=(w+1)%y}t.__splitAreaColors=_}}},e.rectCoordAxisHandleRemove=function(t){t.__splitAreaColors=null}},function(t,e,n){var r=n(22),o=n(56),l=r.extend({type:"series.__base_bar__",getInitialData:function(option,t){return o(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),data=this.getData(),r=data.getLayout("offset"),o=data.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});t.exports=l},function(t,e,n){var r=n(2),o=n(215).getDefaultLabel;function l(style,t){"outside"===style.textPosition&&(style.textPosition=t)}e.setLabel=function(t,e,n,c,h,d,f){var v=n.getModel("label"),m=n.getModel("emphasis.label");r.setLabelStyle(t,e,v,m,{labelFetcher:h,labelDataIndex:d,defaultText:o(h.getData(),d),isRectText:!0,autoColor:c}),l(t),l(e)}},function(t,e,n){var r=n(1),o=n(0);t.exports=function(t,e){o.each(e,(function(e){e.update="updateView",r.registerAction(e,(function(n,r){var o={};return r.eachComponent({mainType:"series",subType:t,query:n},(function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var data=t.getData();data.each((function(e){var n=data.getName(e);o[n]=t.isSelected(n)||!1}))})),{name:n.name,selected:o,seriesId:n.seriesId}}))}))}},function(t,e,n){var r=n(0),o=n(132),l=n(218),c=n(171).onIrrelevantElement,h=n(2),d=n(170),f=n(122).getUID,v=n(157);function m(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function y(t,e){e.eachChild((function(e){r.each(e.__regions,(function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")}))}))}function x(t,e){var n=new h.Group;this.uid=f("ec_map_draw"),this._controller=new o(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new h.Group),n.add(this._backgroundGroup=new h.Group)}x.prototype={constructor:x,draw:function(t,e,n,o,l){var c="geo"===t.mainType,data=t.getData&&t.getData();c&&e.eachComponent({mainType:"series",subType:"map"},(function(e){data||e.getHostGeoModel()!==t||(data=e.getData())}));var d=t.coordinateSystem;this._updateBackground(d);var f,x=this._regionsGroup,_=this.group,w=d.getTransformInfo(),S=!x.childAt(0)||l;if(S)_.transform=w.roamTransform,_.decomposeTransform(),_.dirty();else{var M=new v;M.transform=w.roamTransform,M.decomposeTransform();var T={scale:M.scale,position:M.position};f=M.scale,h.updateProps(_,T,t)}var A=w.rawScale,I=w.rawPosition;x.removeAll();var C=["itemStyle"],D=["emphasis","itemStyle"],L=["label"],k=["emphasis","label"],P=r.createHashMap();r.each(d.regions,(function(e){var n=P.get(e.name)||P.set(e.name,new h.Group),o=new h.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(o);var l,d=(W=t.getRegionModel(e.name)||t).getModel(C),v=W.getModel(D),y=m(d),w=m(v),M=W.getModel(L),T=W.getModel(k);if(data){l=data.indexOfName(e.name);var O=data.getItemVisual(l,"color",!0);O&&(y.fill=O)}var E=function(t){return[t[0]*A[0]+I[0],t[1]*A[1]+I[1]]};r.each(e.geometries,(function(t){if("polygon"===t.type){for(var e=[],i=0;i<t.exterior.length;++i)e.push(E(t.exterior[i]));o.shape.paths.push(new h.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}));for(i=0;i<(t.interiors?t.interiors.length:0);++i){for(var n=t.interiors[i],r=(e=[],0);r<n.length;++r)e.push(E(n[r]));o.shape.paths.push(new h.Polygon({segmentIgnoreThreshold:1,shape:{points:e}}))}}})),o.setStyle(y),o.style.strokeNoScale=!0,o.culling=!0;var N=M.get("show"),R=T.get("show"),z=data&&isNaN(data.get(data.mapDimension("value"),l)),B=data&&data.getItemLayout(l);if(c||z&&(N||R)||B&&B.showLabel){var V,H=c?e.name:l;(!data||l>=0)&&(V=t);var F=new h.Text({position:E(e.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(h.setLabelStyle(F.style,F.hoverStyle={},M,T,{labelFetcher:V,labelDataIndex:H,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!S){var G=[1/f[0],1/f[1]];h.updateProps(F,{scale:G},t)}n.add(F)}if(data)data.setItemGraphicEl(l,n);else{var W=t.getRegionModel(e.name);o.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:W&&W.option||{}}}(n.__regions||(n.__regions=[])).push(e),n.highDownSilentOnTouch=!!t.get("selectedMode"),h.setHoverStyle(n,w),x.add(n)})),this._updateController(t,e,n),function(t,e,n,o,l){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",(function(){t._mouseDownFlag=!0})),n.on("click",(function(c){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var h=c.target;!h.__regions;)h=h.parent;if(h){var d={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:r.map(h.__regions,(function(t){return{name:t.name,from:l.uid}}))};d[e.mainType+"Id"]=e.id,o.dispatchAction(d),y(e,n)}}})))}(this,t,x,n,o),y(t,x)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&d.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&r.each(d.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,n){var o=t.coordinateSystem,h=this._controller,d=this._controllerHost;d.zoomLimit=t.get("scaleLimit"),d.zoom=o.getZoom(),h.enable(t.get("roam")||!1);var f=t.mainType;function v(){var e={type:"geoRoam",componentType:f};return e[f+"Id"]=t.id,e}h.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,l.updateViewOnPan(d,t.dx,t.dy),n.dispatchAction(r.extend(v(),{dx:t.dx,dy:t.dy}))}),this),h.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,l.updateViewOnZoom(d,t.scale,t.originX,t.originY),n.dispatchAction(r.extend(v(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),h.setPointerChecker((function(e,r,l){return o.getViewRectAfterRoam().contain(r,l)&&!c(e,n,t)}))}};var _=x;t.exports=_},function(t,e,n){var r=n(1),o="\0_ec_interaction_mutex";function l(t){return t[o]||(t[o]={})}r.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),e.take=function(t,e,n){l(t)[e]=n},e.release=function(t,e,n){var r=l(t);r[e]===n&&(r[e]=null)},e.isTaken=function(t,e){return!!l(t)[e]}},function(t,e,n){var r=n(1),o=n(0),l=n(219).updateCenterAndZoom;r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var c=l(r,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(c.center),e.setZoom&&e.setZoom(c.zoom),"series"===n&&o.each(e.seriesGroup,(function(t){t.setCenter(c.center),t.setZoom(c.zoom)}))}}))}))},function(t,e,n){var r=n(0),o=r.each,l="\0__link_datas",c="\0__link_mainData";function h(t,e){if((data=this)[c]===data){var n=r.extend({},this[l]);n[this.dataType]=e,m(e,n,t)}else y(e,this.dataType,this[c],t);var data;return e}function d(t,e){return t.struct&&t.struct.update(this),e}function f(t,e){return o(e[l],(function(data,n){data!==e&&y(data.cloneShallow(),n,e,t)})),e}function v(t){var e=this[c];return null==t||null==e?e:e[l][t]}function m(t,e,n){t[l]={},o(e,(function(data,e){y(data,e,t,n)}))}function y(data,t,e,n){e[l][t]=data,data[c]=e,data.dataType=t,n.struct&&(data[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=data),data.getLinkedData=v}var x=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,m(e,n,t),o(n,(function(data){o(e.TRANSFERABLE_METHODS,(function(e){data.wrapMethod(e,r.curry(h,t))}))})),e.wrapMethod("cloneShallow",r.curry(f,t)),o(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,r.curry(d,t))})),r.assert(n[e.dataType]===e)};t.exports=x},function(t,e,n){var r=n(9);function o(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function l(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function c(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function h(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function d(t,e){return t.parentNode===e.parentNode?1:2}e.init=function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,r=[t];e=r.pop();)if(n=e.children,e.isExpand&&n.length)for(var i=n.length-1;i>=0;i--){var o=n[i];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:i,thread:null},r.push(o)}},e.firstWalk=function(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,d=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,o=0;for(;--n>=0;){var l=e[n];l.hierNode.prelim+=r,l.hierNode.modifier+=r,o+=l.hierNode.change,r+=l.hierNode.shift+o}}(t);var f=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;d?(t.hierNode.prelim=d.hierNode.prelim+e(t,d),t.hierNode.modifier=t.hierNode.prelim-f):t.hierNode.prelim=f}else d&&(t.hierNode.prelim=d.hierNode.prelim+e(t,d));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var d=t,f=t,v=f.parentNode.children[0],m=e,y=d.hierNode.modifier,x=f.hierNode.modifier,_=v.hierNode.modifier,w=m.hierNode.modifier;m=o(m),f=l(f),m&&f;){d=o(d),v=l(v),d.hierNode.ancestor=t;var S=m.hierNode.prelim+w-f.hierNode.prelim-x+r(m,f);S>0&&(h(c(m,t,n),t,S),x+=S,y+=S),w+=m.hierNode.modifier,x+=f.hierNode.modifier,y+=d.hierNode.modifier,_+=v.hierNode.modifier}m&&!o(d)&&(d.hierNode.thread=m,d.hierNode.modifier+=w-y),f&&!l(v)&&(v.hierNode.thread=f,v.hierNode.modifier+=x-_,n=t)}return n}(t,d,t.parentNode.hierNode.defaultAncestor||r[0],e)},e.secondWalk=function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},e.separation=function(t){return arguments.length?t:d},e.radialCoordinate=function(t,e){var n={};return t-=Math.PI/2,n.x=e*Math.cos(t),n.y=e*Math.sin(t),n},e.getViewRect=function(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}},function(t,e,n){var r=n(0),o=n(37),l=n(803),c=n(355),h=n(96),d=n(42),f=n(56);t.exports=function(t,e,n,v,m){for(var y=new l(v),i=0;i<t.length;i++)y.addNode(r.retrieve(t[i].id,t[i].name,i),i);var x=[],_=[],w=0;for(i=0;i<e.length;i++){var link=e[i],source=link.source,S=link.target;y.addEdge(source,S,w)&&(_.push(link),x.push(r.retrieve(link.id,source+" > "+S)),w++)}var M,T=n.get("coordinateSystem");if("cartesian2d"===T||"polar"===T)M=f(t,n);else{var A=d.get(T),I=A&&"view"!==A.type&&A.dimensions||[];r.indexOf(I,"value")<0&&I.concat(["value"]);var C=h(t,{coordDimensions:I});(M=new o(C,n)).initData(t)}var D=new o(["value"],n);return D.initData(_,x),m&&m(M,D),c({mainData:M,struct:y,structAttr:"graph",datas:{node:M,edge:D},datasAttr:{node:"data",edge:"edgeData"}}),y.update(),y}},function(t,e,n){var r=n(1);r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},function(t,e,n){var r=n(11);function o(t){t.eachEdge((function(t){var e=t.getModel().get("lineStyle.curveness")||0,n=r.clone(t.node1.getLayout()),o=r.clone(t.node2.getLayout()),l=[n,o];+e&&l.push([(n[0]+o[0])/2-(n[1]-o[1])*e,(n[1]+o[1])/2-(o[0]-n[0])*e]),t.setLayout(l)}))}e.simpleLayout=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),o(n)}},e.simpleLayoutEdge=o},function(t,e,n){var r=n(11),o=n(225),l=o.getSymbolSize,c=o.getNodeGlobalScale,h=Math.PI,d=[];var f={value:function(t,e,n,r,o,l,c,h){var d=0,f=r.getSum("value"),v=2*Math.PI/(f||h);n.eachNode((function(t){var e=t.getValue("value"),n=v*(f?e:1)/2;d+=n,t.setLayout([o*Math.cos(d)+l,o*Math.sin(d)+c]),d+=n}))},symbolSize:function(t,e,n,r,o,f,v,m){var y=0;d.length=m;var x=c(t);n.eachNode((function(t){var e=l(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=x;var n=Math.asin(e/2/o);isNaN(n)&&(n=h/2),d[t.dataIndex]=n,y+=2*n}));var _=(2*h-y)/m/2,w=0;n.eachNode((function(t){var e=_+d[t.dataIndex];w+=e,t.setLayout([o*Math.cos(w)+f,o*Math.sin(w)+v]),w+=e}))}};e.circularLayout=function(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var rect=n.getBoundingRect(),o=t.getData(),l=o.graph,c=rect.width/2+rect.x,h=rect.height/2+rect.y,d=Math.min(rect.width,rect.height)/2,v=o.count();o.setLayout({cx:c,cy:h}),v&&(f[e](t,n,l,o,d,c,h,v),l.eachEdge((function(t){var e,n=t.getModel().get("lineStyle.curveness")||0,o=r.clone(t.node1.getLayout()),l=r.clone(t.node2.getLayout()),d=(o[0]+l[0])/2,f=(o[1]+l[1])/2;+n&&(e=[c*(n*=3)+d*(1-n),h*n+f*(1-n)]),t.setLayout([o,l,e])})))}}},function(t,e,n){var r=n(1),o=n(0),l=n(64),c=n(825);n(362),n(828),n(830);r.extendComponentView({type:"parallel",render:function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},o.each(h,(function(t,e){n.getZr().on(e,this._handlers[e]=o.bind(t,this))}),this)),l.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){o.each(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(o.extend({type:"parallelAxisExpand"},t))}});var h={mousedown:function(t){d(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(d(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&d(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r&&null})}}};function d(view,t){var e=view._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}r.registerPreprocessor(c)},function(t,e,n){var r=n(826);n(42).register("parallel",{create:function(t,e){var n=[];return t.eachComponent("parallel",(function(o,l){var c=new r(o,t,e);c.name="parallel_"+l,c.resize(o,e),o.coordinateSystem=c,c.model=o,n.push(c)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}})),n}})},function(t,e,n){var r=n(14),o=n(171).onIrrelevantElement,l=n(2);function c(rect){return r.create(rect)}e.makeRectPanelClipPath=function(rect){return rect=c(rect),function(t,e){return l.clipPointsByRect(t,rect)}},e.makeLinearBrushOtherExtent=function(rect,t){return rect=c(rect),function(e){var n=null!=t?t:e,r=n?rect.width:rect.height,base=n?rect.x:rect.y;return[base,base+(r||0)]}},e.makeRectIsTargetByCursor=function(rect,t,e){return rect=c(rect),function(n,r,l){return rect.contain(r[0],r[1])&&!o(n,t,e)}}},function(t,e,n){var r=n(98),o=n(0),l=n(125).getDimensionTypeByAxis,c=n(55).makeSeriesEncodeForAxisCoordSys,h={_baseAxisDim:null,getInitialData:function(option,t){var e,n,h=t.getComponent("xAxis",this.get("xAxisIndex")),d=t.getComponent("yAxis",this.get("yAxisIndex")),f=h.get("type"),v=d.get("type");"category"===f?(option.layout="horizontal",e=h.getOrdinalMeta(),n=!0):"category"===v?(option.layout="vertical",e=d.getOrdinalMeta(),n=!0):option.layout=option.layout||"horizontal";var m=["x","y"],y="horizontal"===option.layout?0:1,x=this._baseAxisDim=m[y],_=m[1-y],w=[h,d],S=w[y].get("type"),M=w[1-y].get("type"),data=option.data;if(data&&n){var T=[];o.each(data,(function(t,e){var n;t.value&&o.isArray(t.value)?(n=t.value.slice(),t.value.unshift(e)):o.isArray(t)?(n=t.slice(),t.unshift(e)):n=t,T.push(n)})),option.data=T}var A=this.defaultValueDimensions,I=[{name:x,type:l(S),ordinalMeta:e,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:_,type:l(M),dimsDef:A.slice()}];return r(this,{coordDimensions:I,dimensionsCount:A.length+1,encodeDefaulter:o.curry(c,I,this)})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};e.seriesModelMixin=h},function(t,e,n){var r=n(2),o=n(224),l=n(0),c=n(38).createSymbol,h=n(11),d=n(63);function f(t,e,n){r.Group.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var v=f.prototype;v.createLine=function(t,e,n){return new o(t,e,n)},v._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),o=n.get("symbol");l.isArray(r)||(r=[r,r]);var h=n.get("color")||t.getItemVisual(e,"color"),symbol=this.childAt(1);this._symbolType!==o&&(this.remove(symbol),(symbol=c(o,-.5,-.5,1,1,h)).z2=100,symbol.culling=!0,this.add(symbol)),symbol&&(symbol.setStyle("shadowColor",h),symbol.setStyle(n.getItemStyle(["color"])),symbol.attr("scale",r),symbol.setColor(h),symbol.attr("scale",r),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},v._updateEffectAnimation=function(t,e,n){var symbol=this.childAt(1);if(symbol){var r=this,o=t.getItemLayout(n),c=1e3*e.get("period"),h=e.get("loop"),d=e.get("constantSpeed"),f=l.retrieve(e.get("delay"),(function(e){return e/t.count()*c/3})),v="function"==typeof f;if(symbol.ignore=!0,this.updateAnimationPoints(symbol,o),d>0&&(c=this.getLineLength(symbol)/d*1e3),c!==this._period||h!==this._loop){symbol.stopAnimation();var m=f;v&&(m=f(n)),symbol.__t>0&&(m=-c*symbol.__t),symbol.__t=0;var y=symbol.animate("",h).when(c,{__t:1}).delay(m).during((function(){r.updateSymbolPosition(symbol)}));h||y.done((function(){r.remove(symbol)})),y.start()}this._period=c,this._loop=h}},v.getLineLength=function(symbol){return h.dist(symbol.__p1,symbol.__cp1)+h.dist(symbol.__cp1,symbol.__p2)},v.updateAnimationPoints=function(symbol,t){symbol.__p1=t[0],symbol.__p2=t[1],symbol.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},v.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},v.updateSymbolPosition=function(symbol){var t=symbol.__p1,e=symbol.__p2,n=symbol.__cp1,r=symbol.__t,o=symbol.position,l=[o[0],o[1]],c=d.quadraticAt,f=d.quadraticDerivativeAt;o[0]=c(t[0],n[0],e[0],r),o[1]=c(t[1],n[1],e[1],r);var v=f(t[0],n[0],e[0],r),m=f(t[1],n[1],e[1],r);if(symbol.rotation=-Math.atan2(m,v)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==symbol.__lastT&&symbol.__lastT<symbol.__t){var y=1.05*h.dist(l,o);symbol.attr("scale",[symbol.scale[0],y]),1===r&&(o[0]=l[0]+(o[0]-l[0])/2,o[1]=l[1]+(o[1]-l[1])/2)}else if(1===symbol.__lastT){y=2*h.dist(t,o);symbol.attr("scale",[symbol.scale[0],y])}else symbol.attr("scale",this._symbolScale);symbol.__lastT=symbol.__t,symbol.ignore=!1},v.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},l.inherits(f,r.Group);var m=f;t.exports=m},function(t,e,n){var r=n(2),o=n(0);function l(t,e,n){r.Group.call(this),this._createPolyline(t,e,n)}var c=l.prototype;c._createPolyline=function(t,e,n){var o=t.getItemLayout(e),line=new r.Polyline({shape:{points:o}});this.add(line),this._updateCommonStl(t,e,n)},c.updateData=function(t,e,n){var o=t.hostModel,line=this.childAt(0),l={shape:{points:t.getItemLayout(e)}};r.updateProps(line,l,o,e),this._updateCommonStl(t,e,n)},c._updateCommonStl=function(t,e,n){var line=this.childAt(0),l=t.getItemModel(e),c=t.getItemVisual(e,"color"),h=n&&n.lineStyle,d=n&&n.hoverLineStyle;n&&!t.hasItemOption||(h=l.getModel("lineStyle").getLineStyle(),d=l.getModel("emphasis.lineStyle").getLineStyle()),line.useStyle(o.defaults({strokeNoScale:!0,fill:"none",stroke:c},h)),line.hoverStyle=d,r.setHoverStyle(this)},c.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},o.inherits(l,r.Group);var h=l;t.exports=h},function(t,e,n){var r={seriesType:"lines",plan:n(95)(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(o,l){var c=[];if(r){var h,d=o.end-o.start;if(n){for(var f=0,i=o.start;i<o.end;i++)f+=t.getLineCoordsCount(i);h=new Float32Array(d+2*f)}else h=new Float32Array(4*d);var v=0,m=[];for(i=o.start;i<o.end;i++){var y=t.getLineCoords(i,c);n&&(h[v++]=y);for(var x=0;x<y;x++)m=e.dataToPoint(c[x],!1,m),h[v++]=m[0],h[v++]=m[1]}l.setLayout("linesPoints",h)}else for(i=o.start;i<o.end;i++){var _=l.getItemModel(i),w=(y=t.getLineCoords(i,c),[]);if(n)for(var S=0;S<y;S++)w.push(e.dataToPoint(c[S]));else{w[0]=e.dataToPoint(c[0]),w[1]=e.dataToPoint(c[1]);var M=_.get("lineStyle.curveness");+M&&(w[2]=[(w[0][0]+w[1][0])/2-(w[0][1]-w[1][1])*M,(w[0][1]+w[1][1])/2-(w[1][0]-w[0][0])*M])}l.setItemLayout(i,w)}}}}};t.exports=r},function(t,e,n){var r=n(1);n(871),n(874),n(875),n(133),n(879),r.extendComponentView({type:"single"})},function(t,e,n){var r=n(0);e.layout=function(t,e){e=e||{};var n=t.coordinateSystem,o=t.axis,l={},c=o.position,h=o.orient,rect=n.getRect(),d=[rect.x,rect.x+rect.width,rect.y,rect.y+rect.height],f={horizontal:{top:d[2],bottom:d[3]},vertical:{left:d[0],right:d[1]}};l.position=["vertical"===h?f.vertical[c]:d[0],"horizontal"===h?f.horizontal[c]:d[3]],l.rotation=Math.PI/2*{horizontal:0,vertical:1}[h],l.labelDirection=l.tickDirection=l.nameDirection={top:-1,bottom:1,right:1,left:-1}[c],t.get("axisTick.inside")&&(l.tickDirection=-l.tickDirection),r.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(l.labelDirection=-l.labelDirection);var v=e.rotate;return null==v&&(v=t.get("axisLabel.rotate")),l.labelRotation="top"===c?-v:v,l.z2=1,l}},function(t,e,n){var r=n(0),o=n(6);t.exports=function(t,e){var n,l=[],c=t.seriesIndex;if(null==c||!(n=e.getSeriesByIndex(c)))return{point:[]};var data=n.getData(),h=o.queryDataIndex(data,t);if(null==h||h<0||r.isArray(h))return{point:[]};var d=data.getItemGraphicEl(h),f=n.coordinateSystem;if(n.getTooltipPosition)l=n.getTooltipPosition(h)||[];else if(f&&f.dataToPoint)l=f.dataToPoint(data.getValues(r.map(f.dimensions,(function(t){return data.mapDimension(t)})),h,!0))||[];else if(d){var rect=d.getBoundingRect().clone();rect.applyTransform(d.transform),l=[rect.x+rect.width/2,rect.y+rect.height/2]}return{point:l,el:d}}},function(t,e,n){var r=n(0),o=n(18),l=(0,n(6).makeInner)(),c=r.each;function h(t,e,n){t.handler("leave",null,n)}function d(t,e,n,r){e.handler(t,n,r)}e.register=function(t,e,n){if(!o.node){var f=e.getZr();l(f).records||(l(f).records={}),function(t,e){if(l(t).initialized)return;function n(n,r){t.on(n,(function(n){var o=function(t){var e={showTip:[],hideTip:[]},n=function(r){var o=e[r.type];o?o.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);c(l(t).records,(function(t){t&&r(t,n,o.dispatchAction)})),function(t,e){var n,r=t.showTip.length,o=t.hideTip.length;r?n=t.showTip[r-1]:o&&(n=t.hideTip[o-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(o.pendings,e)}))}l(t).initialized=!0,n("click",r.curry(d,"click")),n("mousemove",r.curry(d,"mousemove")),n("globalout",h)}(f,e),(l(f).records[t]||(l(f).records[t]={})).handler=n}},e.unregister=function(t,e){if(!o.node){var n=e.getZr();(l(n).records||{})[t]&&(l(n).records[t]=null)}}},function(t,e,n){var r=n(227),o=n(172),l=n(347),c=n(81),h=r.extend({makeElOption:function(t,e,n,r,c){var h=n.axis,v=h.grid,m=r.get("type"),y=d(v,h).getOtherAxis(h).getGlobalExtent(),x=h.toGlobalCoord(h.dataToCoord(e,!0));if(m&&"none"!==m){var _=o.buildElStyle(r),w=f[m](h,x,y);w.style=_,t.graphicKey=w.type,t.pointer=w}var S=l.layout(v.model,n);o.buildCartesianSingleLabelElOption(e,t,S,n,r,c)},getHandleTransform:function(t,e,n){var r=l.layout(e.axis.grid.model,e,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:o.getTransformedPosition(e.axis,t,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,r){var o=n.axis,l=o.grid,c=o.getGlobalExtent(!0),h=d(l,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,v=t.position;v[f]+=e[f],v[f]=Math.min(c[1],v[f]),v[f]=Math.max(c[0],v[f]);var m=(h[1]+h[0])/2,y=[m,m];y[f]=v[f];return{position:v,rotation:t.rotation,cursorPoint:y,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}}});function d(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var f={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:o.makeLineShape([e,n[0]],[e,n[1]],v(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),span=n[1]-n[0];return{type:"Rect",shape:o.makeRectShape([e-r/2,n[0]],[r,span],v(t))}}};function v(t){return"x"===t.dim?0:1}c.registerAxisPointerClass("CartesianAxisPointer",h);var m=h;t.exports=m},function(t,e,n){var r=n(9),o=r.getLayoutRect,l=r.box,c=r.positionElement,h=n(10),d=n(2);e.layout=function(t,e,n){var r=e.getBoxLayoutParams(),h=e.get("padding"),d={width:n.getWidth(),height:n.getHeight()},rect=o(r,d,h);l(e.get("orient"),t,e.get("itemGap"),rect.width,rect.height),c(t,r,d,h)},e.makeBackground=function(rect,t){var e=h.normalizeCssArray(t.get("padding")),style=t.getItemStyle(["color","opacity"]);return style.fill=t.get("backgroundColor"),rect=new d.Rect({shape:{x:rect.x-e[3],y:rect.y-e[0],width:rect.width+e[1]+e[3],height:rect.height+e[0]+e[2],r:t.get("borderRadius")},style:style,silent:!0,z2:-1})}},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(2),l=n(6),c=n(363),h=r.each,d=r.indexOf,f=r.curry,v=["dataToPoint","pointToData"],m=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function y(option,t,e){var n=this._targetInfoList=[],r={},o=w(t,option);h(S,(function(t,l){(!e||!e.include||d(e.include,l)>=0)&&t(o,n,r)}))}var x=y.prototype;function _(t){return t[0]>t[1]&&t.reverse(),t}function w(t,option){return l.parseFinder(t,option,{includeMainTypes:m})}x.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(area,t,e){if((area.coordRanges||(area.coordRanges=[])).push(t),!area.coordRange){area.coordRange=t;var n=A[area.brushType](0,e,t);area.__rangeOffset={offset:C[area.brushType](n.values,area.range,[1,1]),xyMinMax:n.xyMinMax}}}))},x.matchOutputRanges=function(t,e,n){h(t,(function(area){var t=this.findTargetInfo(area,e);t&&!0!==t&&r.each(t.coordSyses,(function(t){var r=A[area.brushType](1,t,area.range);n(area,r.values,t,e)}))}),this)},x.setInputRanges=function(t,e){h(t,(function(area){var t,n,r,o,l,c=this.findTargetInfo(area,e);if(area.range=area.range||[],c&&!0!==c){area.panelId=c.panelId;var h=A[area.brushType](0,c.coordSys,area.coordRange),d=area.__rangeOffset;area.range=d?C[area.brushType](h.values,d.offset,(t=h.xyMinMax,n=d.xyMinMax,r=L(t),o=L(n),l=[r[0]/o[0],r[1]/o[1]],isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l)):h.values}}),this)},x.makePanelOpts=function(t,e){return r.map(this._targetInfoList,(function(n){var rect=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:c.makeRectPanelClipPath(rect),isTargetByCursor:c.makeRectIsTargetByCursor(rect,t,n.coordSysModel),getLinearBrushOtherExtent:c.makeLinearBrushOtherExtent(rect)}}))},x.controlSeries=function(area,t,e){var n=this.findTargetInfo(area,e);return!0===n||n&&d(n.coordSyses,t.coordinateSystem)>=0},x.findTargetInfo=function(area,t){for(var e=this._targetInfoList,n=w(t,area),i=0;i<e.length;i++){var r=e[i],o=area.panelId;if(o){if(r.panelId===o)return r}else for(i=0;i<M.length;i++)if(M[i](n,r))return r}return!0};var S={grid:function(t,e){var n=t.xAxisModels,o=t.yAxisModels,l=t.gridModels,c=r.createHashMap(),f={},v={};(n||o||l)&&(h(n,(function(t){var e=t.axis.grid.model;c.set(e.id,e),f[e.id]=!0})),h(o,(function(t){var e=t.axis.grid.model;c.set(e.id,e),v[e.id]=!0})),h(l,(function(t){c.set(t.id,t),f[t.id]=!0,v[t.id]=!0})),c.each((function(t){var r=t.coordinateSystem,l=[];h(r.getCartesians(),(function(t,e){(d(n,t.getAxis("x").model)>=0||d(o,t.getAxis("y").model)>=0)&&l.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:l[0],coordSyses:l,getPanelRect:T.grid,xAxisDeclared:f[t.id],yAxisDeclared:v[t.id]})})))},geo:function(t,e){h(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:T.geo})}))}},M=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,o=t.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&r&&(o=r.axis.grid.model),o&&o===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],T={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,rect=t.getBoundingRect().clone();return rect.applyTransform(o.getTransform(t)),rect}},A={lineX:f(I,0),lineY:f(I,1),rect:function(t,e,n){var r=e[v[t]]([n[0][0],n[1][0]]),o=e[v[t]]([n[0][1],n[1][1]]),l=[_([r[0],o[0]]),_([r[1],o[1]])];return{values:l,xyMinMax:l}},polygon:function(t,e,n){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:r.map(n,(function(n){var p=e[v[t]](n);return o[0][0]=Math.min(o[0][0],p[0]),o[1][0]=Math.min(o[1][0],p[1]),o[0][1]=Math.max(o[0][1],p[0]),o[1][1]=Math.max(o[1][1],p[1]),p})),xyMinMax:o}}};function I(t,e,n,o){var l=n.getAxis(["x","y"][t]),c=_(r.map([0,1],(function(i){return e?l.coordToData(l.toLocalCoord(o[i])):l.toGlobalCoord(l.dataToCoord(o[i]))}))),h=[];return h[t]=c,h[1-t]=[NaN,NaN],{values:c,xyMinMax:h}}var C={lineX:f(D,0),lineY:f(D,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return r.map(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function D(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function L(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var k=y;t.exports=k},function(t,e,n){var r=n(0).each,o="\0_ec_hist_store";function l(t){var e=t[o];return e||(e=t[o]=[{}]),e}e.push=function(t,e){var n=l(t);r(e,(function(e,r){for(var i=n.length-1;i>=0;i--){if(n[i][r])break}if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var l=o.getPercentRange();n[0][r]={dataZoomId:r,start:l[0],end:l[1]}}}})),n.push(e)},e.pop=function(t){var e=l(t),head=e[e.length-1];e.length>1&&e.pop();var n={};return r(head,(function(t,r){for(var i=e.length-1;i>=0;i--){if(t=e[i][r]){n[r]=t;break}}})),n},e.clear=function(t){t[o]=null},e.count=function(t){return l(t).length}},function(t,e,n){var r=n(1),o=n(0),l=n(14),c=n(173),h=n(936),d=n(64),f=n(374),v=["inBrush","outOfBrush"],m=r.PRIORITY.VISUAL.BRUSH;function y(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new f(e.option,t)).setInputRanges(e.areas,t)}))}function x(t,e){if(!t.isDisposed()){var n=t.getZr();n.__ecInBrushSelectEvent=!0,t.dispatchAction({type:"brushSelect",batch:e}),n.__ecInBrushSelectEvent=!1}}function _(t,e,data,n){for(var i=0,r=e.length;i<r;i++){var area=e[i];if(t[area.brushType](n,data,area.selectors,area))return!0}}function w(t){var e=t.brushSelector;if(o.isString(e)){var n=[];return o.each(h,(function(t,r){n[r]=function(n,data,r,area){var o=data.getItemLayout(n);return t[e](o,r,area)}})),n}if(o.isFunction(e)){var r={};return o.each(h,(function(t,n){r[n]=e})),r}return e}r.registerLayout(m,(function(t,e,n){t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),y(t)})),r.registerVisual(m,(function(t,e,n){var r,l,f=[];t.eachComponent({mainType:"brush"},(function(e,n){var d={brushId:e.id,brushIndex:n,brushName:e.name,areas:o.clone(e.areas),selected:[]};f.push(d);var m=e.option,y=m.brushLink,x=[],M=[],T=[],A=0;n||(r=m.throttleType,l=m.throttleDelay);var I=o.map(e.areas,(function(area){return function(area){var t=area.selectors={};return o.each(h[area.brushType],(function(e,n){t[n]=function(n){return e(n,t,area)}})),area}(o.defaults({boundingRect:S[area.brushType](area)},area))})),C=c.createVisualMappings(e.option,v,(function(t){t.mappingMethod="fixed"}));function D(t){return"all"===y||x[t]}function L(t){return!!t.length}o.isArray(y)&&o.each(y,(function(t){x[t]=1})),t.eachSeries((function(n,r){var l=T[r]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;A|=n.hasAxisBrushed(),D(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(M[e]=1)}))}(n,r):function(n,r,l){var c=w(n);if(!c||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(o.isArray(n)?o.indexOf(n,e)<0:e!==n)}(e,r))return;if(o.each(I,(function(area){c[area.brushType]&&e.brushTargetManager.controlSeries(area,n,t)&&l.push(area),A|=L(l)})),D(r)&&L(l)){var data=n.getData();data.each((function(t){_(c,l,data,t)&&(M[t]=1)}))}}(n,r,l)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};d.selected.push(n);var r=w(t),o=T[e],data=t.getData(),l=D(e)?function(t){return M[t]?(n.dataIndex.push(data.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return _(r,o,data,t)?(n.dataIndex.push(data.getRawIndex(t)),"inBrush"):"outOfBrush"};(D(e)?A:L(o))&&c.applyVisual(v,C,data,l)}))})),function(t,e,n,r,o){if(!o)return;var l=t.getZr();if(l.__ecInBrushSelectEvent)return;l.__ecBrushSelect||(l.__ecBrushSelect=x);d.createOrUpdate(l,"__ecBrushSelect",n,e)(t,r)}(e,r,l,f,n)}));var S={lineX:o.noop,lineY:o.noop,rect:function(area){return M(area.range)},polygon:function(area){for(var t,e=area.range,i=0,n=e.length;i<n;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=e[i];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&M(t)}};function M(t){return new l(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}e.layoutCovers=y},function(t,e,n){var r=n(1);n(378),n(961),n(379);var o=n(962),l=n(21);r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,o),l.registerSubTypeDefaulter("legend",(function(){return"plain"}))},function(t,e,n){var r=n(1),o=n(0),l=n(19),c=n(6).isNameSpecified,h=n(65).legend.selector,d={all:{type:"all",title:o.clone(h.all)},inverse:{type:"inverse",title:o.clone(h.inverse)}},f=r.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(option,t,e){this.mergeDefaultAndTheme(option,e),option.selected=option.selected||{},this._updateSelector(option)},mergeOption:function(option){f.superCall(this,"mergeOption",option),this._updateSelector(option)},_updateSelector:function(option){var t=option.selector;!0===t&&(t=option.selector=["all","inverse"]),o.isArray(t)&&o.each(t,(function(e,n){o.isString(e)&&(e={type:e}),t[n]=o.merge(e,d[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],n=[];t.eachRawSeries((function(r){var o,l=r.name;if(n.push(l),r.legendVisualProvider){var h=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(h)),h.length?e=e.concat(h):o=!0}else o=!0;o&&c(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,h=o.map(r,(function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new l(t,this,this.ecModel)}),this);this._data=h},getData:function(){return this._data},select:function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var data=this._data;o.each(data,(function(t){e[t.get("name")]=!1}))}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var data=this._data,t=this.option.selected;o.each(data,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var data=this._data,t=this.option.selected;o.each(data,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&o.indexOf(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),v=f;t.exports=v},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(38).createSymbol,c=n(2),h=n(373).makeBackground,d=n(9),f=o.curry,v=o.each,m=c.Group,y=r.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new m),this._backgroundEl,this.group.add(this._selectorGroup=new m),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var l=t.get("align"),c=t.get("orient");l&&"auto"!==l||(l="right"===t.get("left")&&"vertical"===c?"right":"left");var f=t.get("selector",!0),v=t.get("selectorPosition",!0);!f||v&&"auto"!==v||(v="horizontal"===c?"end":"start"),this.renderInner(l,t,e,n,f,c,v);var m=t.getBoxLayoutParams(),y={width:n.getWidth(),height:n.getHeight()},x=t.get("padding"),_=d.getLayoutRect(m,y,x),w=this.layoutInner(t,l,_,r,f,v),S=d.getLayoutRect(o.defaults({width:w.width,height:w.height},m),y,x);this.group.attr("position",[S.x-w.x,S.y-w.y]),this.group.add(this._backgroundEl=h(w,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,n,r,l,c,h){var d=this.getContentGroup(),y=o.createHashMap(),x=e.get("selectedMode"),M=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&M.push(t.id)})),v(e.getData(),(function(o,l){var c=o.get("name");if(this.newlineDisabled||""!==c&&"\n"!==c){var h=n.getSeriesByName(c)[0];if(!y.get(c))if(h){var data=h.getData(),v=data.getVisual("color"),T=data.getVisual("borderColor");"function"==typeof v&&(v=v(h.getDataParams(0))),"function"==typeof T&&(T=T(h.getDataParams(0)));var A=data.getVisual("legendSymbol")||"roundRect",I=data.getVisual("symbol");this._createItem(c,l,o,e,A,I,t,v,T,x).on("click",f(_,c,null,r,M)).on("mouseover",f(w,h.name,null,r,M)).on("mouseout",f(S,h.name,null,r,M)),y.set(c,!0)}else n.eachRawSeries((function(n){if(!y.get(c)&&n.legendVisualProvider){var h=n.legendVisualProvider;if(!h.containName(c))return;var d=h.indexOfName(c),v=h.getItemVisual(d,"color"),m=h.getItemVisual(d,"borderColor");this._createItem(c,l,o,e,"roundRect",null,t,v,m,x).on("click",f(_,null,c,r,M)).on("mouseover",f(w,null,c,r,M)).on("mouseout",f(S,null,c,r,M)),y.set(c,!0)}}),this)}else d.add(new m({newline:!0}))}),this),l&&this._createSelector(l,e,r,c,h)},_createSelector:function(t,e,n,r,o){var l=this.getSelectorGroup();v(t,(function(t){!function(t){var r=t.type,o=new c.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});l.add(o);var h=e.getModel("selectorLabel"),d=e.getModel("emphasis.selectorLabel");c.setLabelStyle(o.style,o.hoverStyle={},h,d,{defaultText:t.title,isRectText:!1}),c.setHoverStyle(o)}(t)}))},_createItem:function(t,e,n,r,h,d,f,v,y,_){var w=r.get("itemWidth"),S=r.get("itemHeight"),M=r.get("inactiveColor"),T=r.get("inactiveBorderColor"),A=r.get("symbolKeepAspect"),I=r.getModel("itemStyle"),C=r.isSelected(t),D=new m,L=n.getModel("textStyle"),k=n.get("icon"),P=n.getModel("tooltip"),O=P.parentModel,E=l(h=k||h,0,0,w,S,C?v:M,null==A||A);if(D.add(x(E,h,I,y,T,C)),!k&&d&&(d!==h||"none"===d)){var N=.8*S;"none"===d&&(d="circle");var R=l(d,(w-N)/2,(S-N)/2,N,N,C?v:M,null==A||A);D.add(x(R,d,I,y,T,C))}var z="left"===f?w+5:-5,B=f,V=r.get("formatter"),content=t;"string"==typeof V&&V?content=V.replace("{name}",null!=t?t:""):"function"==typeof V&&(content=V(t)),D.add(new c.Text({style:c.setTextStyle({},L,{text:content,x:z,y:S/2,textFill:C?L.getTextColor():M,textAlign:B,textVerticalAlign:"middle"})}));var H=new c.Rect({shape:D.getBoundingRect(),invisible:!0,tooltip:P.get("show")?o.extend({content:t,formatter:O.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:r.componentIndex,name:t,$vars:["name"]}},P.option):null});return D.add(H),D.eachChild((function(t){t.silent=!0})),H.silent=!_,this.getContentGroup().add(D),c.setHoverStyle(D),D.__legendDataIndex=e,D},layoutInner:function(t,e,n,r,o,l){var c=this.getContentGroup(),h=this.getSelectorGroup();d.box(t.get("orient"),c,t.get("itemGap"),n.width,n.height);var f=c.getBoundingRect(),v=[-f.x,-f.y];if(o){d.box("horizontal",h,t.get("selectorItemGap",!0));var m=h.getBoundingRect(),y=[-m.x,-m.y],x=t.get("selectorButtonGap",!0),_=t.getOrient().index,w=0===_?"width":"height",S=0===_?"height":"width",M=0===_?"y":"x";"end"===l?y[_]+=f[w]+x:v[_]+=m[w]+x,y[1-_]+=f[S]/2-m[S]/2,h.attr("position",y),c.attr("position",v);var T={x:0,y:0};return T[w]=f[w]+x+m[w],T[S]=Math.max(f[S],m[S]),T[M]=Math.min(0,m[M]+y[1-_]),T}return c.attr("position",v),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function x(symbol,t,e,n,r,o){var l;return"line"!==t&&t.indexOf("empty")<0?(l=e.getItemStyle(),symbol.style.stroke=n,o||(l.stroke=r)):l=e.getItemStyle(["borderWidth","borderColor"]),symbol.setStyle(l)}function _(t,e,n,r){S(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),w(t,e,n,r)}function w(t,e,n,r){var o=n.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function S(t,e,n,r){var o=n.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}t.exports=y},function(t,e,n){n(229),n(100),n(101),n(967),n(968),n(231),n(232)},function(t,e,n){n(229),n(100),n(101),n(969),n(970),n(231),n(232)},function(t,e,n){var r=n(1),o=n(383);n(384),n(385),n(973),n(974),n(390),r.registerPreprocessor(o)},function(t,e,n){var r=n(0),o=r.each;function l(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}t.exports=function(option){var t=option&&option.visualMap;r.isArray(t)||(t=t?[t]:[]),o(t,(function(t){if(t){l(t,"splitList")&&!l(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&r.isArray(e)&&o(e,(function(t){r.isObject(t)&&(l(t,"start")&&!l(t,"min")&&(t.min=t.start),l(t,"end")&&!l(t,"max")&&(t.max=t.end))}))}}))}},function(t,e,n){n(21).registerSubTypeDefaulter("visualMap",(function(option){return option.categories||(option.pieces?option.pieces.length>0:option.splitNumber>0)&&!option.calculable?"piecewise":"continuous"}))},function(t,e,n){var r=n(1),o=n(0),l=n(173),c=n(83),h=r.PRIORITY.VISUAL.COMPONENT;function d(t,e,n,r){for(var o=e.targetVisuals[r],l=c.prepareVisualTypes(o),h={color:t.getData().getVisual("color")},i=0,d=l.length;i<d;i++){var f=l[i],v=o["opacity"===f?"__alphaForOpacity":f];v&&v.applyVisual(n,m,y)}return h.color;function m(t){return h[t]}function y(t,e){h[t]=e}}r.registerVisual(h,{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(l.incrementalApplyVisual(e.stateList,e.targetVisuals,o.bind(e.getValueState,e),e.getDataDimension(t.getData())))})),n}}),r.registerVisual(h,{createOnAllSeries:!0,reset:function(t,e){var data=t.getData(),n=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(o.bind(d,null,t,e))||{stops:[],outerColors:[]},l=e.getDataDimension(data),c=data.getDimensionInfo(l);null!=c&&(r.dimension=c.index,n.push(r))}})),t.getData().setVisual("visualMeta",n)}})},function(t,e,n){var r=n(1),o=n(0),l=n(18),c=n(387),h=n(83),d=n(173),f=n(6),v=n(5),m=h.mapVisual,y=h.eachVisual,x=o.isArray,_=o.each,w=v.asc,S=v.linearMap,M=o.noop,T=r.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(option,t,e){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(option,e)},optionUpdated:function(t,e){var n=this.option;l.canvasSupported||(n.realtime=!1),!e&&d.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=o.bind(t,this),this.controllerVisuals=d.createVisualMappings(this.option.controller,e,t),this.targetVisuals=d.createVisualMappings(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=f.normalizeToArray(t),e},eachTargetSeries:function(t,e){o.each(this.getTargetSeriesIndices(),(function(n){t.call(e,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},formatValueText:function(t,e,n){var r,l,option=this.option,c=option.precision,h=this.dataBound,d=option.formatter;return n=n||["<",">"],o.isArray(t)&&(t=t.slice(),r=!0),l=e?t:r?[f(t[0]),f(t[1])]:f(t),o.isString(d)?d.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):o.isFunction(d)?r?d(t[0],t[1]):d(t):r?t[0]===h[0]?n[0]+" "+l[1]:t[1]===h[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function f(t){return t===h[0]?"min":t===h[1]?"max":(+t).toFixed(Math.min(c,20))}},resetExtent:function(){var t=this.option,e=w([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var r=t.dimensions,i=r.length-1;i>=0;i--){var o=r[i];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.ecModel,e=this.option,base={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),r=e.controller||(e.controller={});o.merge(n,base),o.merge(r,base);var l=this.isCategory();function d(base){x(e.color)&&!base.inRange&&(base.inRange={color:e.color.slice().reverse()}),base.inRange=base.inRange||{color:t.get("gradientColor")},_(this.stateList,(function(t){var e=base[t];if(o.isString(e)){var n=c.get(e,"active",l);n?(base[t]={},base[t][e]=n):delete base[t]}}),this)}d.call(this,n),d.call(this,r),function(base,t,e){var n=base[t],r=base[e];n&&!r&&(r=base[e]={},_(n,(function(t,e){if(h.isValidType(e)){var n=c.get(e,"inactive",l);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,n,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor");_(this.stateList,(function(c){var h=this.itemSize,d=t[c];d||(d=t[c]={color:l?r:[r]}),null==d.symbol&&(d.symbol=e&&o.clone(e)||(l?"roundRect":["roundRect"])),null==d.symbolSize&&(d.symbolSize=n&&o.clone(n)||(l?h[0]:[h[0],h[0]])),d.symbol=m(d.symbol,(function(symbol){return"none"===symbol||"square"===symbol?"roundRect":symbol}));var f=d.symbolSize;if(null!=f){var v=-1/0;y(f,(function(t){t>v&&(v=t)})),d.symbolSize=m(f,(function(t){return S(t,[0,v],[0,h[0]],!0)}))}}),this)}.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:M,getValueState:M,getVisualMeta:M});t.exports=T},function(t,e,n){var r=n(0),o={get:function(t,e,n){var o=r.clone((l[t]||{})[e]);return n&&r.isArray(o)?o[o.length-1]:o}},l={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},c=o;t.exports=c},function(t,e,n){var r=n(1),o=n(0),l=n(2),c=n(10),h=n(9),d=n(83),f=r.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,n=c.normalizeCssArray(e.get("padding")||0),rect=t.getBoundingRect();t.add(new l.Rect({z2:-1,silent:!0,shape:{x:rect.x-n[3],y:rect.y-n[0],width:rect.width+n[3]+n[1],height:rect.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){var r=(n=n||{}).forceState,l=this.visualMapModel,c={};if("symbol"===e&&(c.symbol=l.get("itemSymbol")),"color"===e){var h=l.get("contentColor");c.color=h}function f(t){return c[t]}function v(t,e){c[t]=e}var m=l.controllerVisuals[r||l.getValueState(t)],y=d.prepareVisualTypes(m);return o.each(y,(function(r){var o=m[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",o=m.__alphaForOpacity),d.dependsOn(r,e)&&o&&o.applyVisual(t,f,v)})),c[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;h.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:o.noop});t.exports=f},function(t,e,n){var r=n(0),o=n(9).getLayoutRect;e.getItemAlign=function(t,e,n){var r=t.option,l=r.align;if(null!=l&&"auto"!==l)return l;for(var c={width:e.getWidth(),height:e.getHeight()},h="horizontal"===r.orient?1:0,d=[["left","right","width"],["top","bottom","height"]],f=d[h],v=[0,null,10],m={},i=0;i<3;i++)m[d[1-h][i]]=v[i],m[f[i]]=2===i?n[0]:r[f[i]];var y=[["x","width",3],["y","height",0]][h],rect=o(m,c,r.padding);return f[(rect.margin[y[2]]||0)+rect[y[0]]+.5*rect[y[1]]<.5*c[y[1]]?0:1]},e.makeHighDownBatch=function(t,e){return r.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},function(t,e,n){n(1).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}))},function(t,e,n){var r=n(1),o=n(383);n(384),n(385),n(975),n(976),n(390),r.registerPreprocessor(o)},function(t,e,n){var r,o=n(18),l="urn:schemas-microsoft-com:vml",c="undefined"==typeof window?null:window,h=!1,d=c&&c.document;if(d&&!o.canvasSupported)try{!d.namespaces.zrvml&&d.namespaces.add("zrvml",l),r=function(t){return d.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){r=function(t){return d.createElement("<"+t+' xmlns="'+l+'" class="zrvml">')}}e.doc=d,e.createNode=function(t){return r(t)},e.initVML=function(){if(!h&&d){h=!0;var t=d.styleSheets;t.length<31?d.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}},function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var l in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(l,e.headers[l]);s.send(e.body||null)}))}},,function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function c(t,source,e){return t.concat(source).map((function(element){return l(element,e)}))}function h(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function d(object,t){try{return t in object}catch(t){return!1}}function f(t,source,e){var n={};return e.isMergeableObject(t)&&h(t).forEach((function(r){n[r]=l(t[r],e)})),h(source).forEach((function(r){(function(t,e){return d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(d(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return v;var n=e.customMerge(t);return"function"==typeof n?n:v}(r,e)(t[r],source[r],e):n[r]=l(source[r],e))})),n}function v(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||c,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):f(t,source,e):l(source,e)}v.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v(t,n,e)}),{})};var m=v;t.exports=m},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return null!==t&&"object"===r(t)&&!Array.isArray(t)}function l(t,e){if(!o(t))return l({},e);if(!o(e))return l(t,{});var n=Object.assign({},e);for(var r in t)if("__proto__"!==r&&"constructor"!==r){var c=t[r];null!==c&&(o(c)&&o(n[r])?n[r]=l(c,n[r]):n[r]=c)}return n}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(l,{})}},function(t,e,n){"use strict";var r=/["'&<>]/;t.exports=function(t){var e,n=""+t,o=r.exec(n);if(!o)return n;var html="",l=0,c=0;for(l=o.index;l<n.length;l++){switch(n.charCodeAt(l)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#39;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}c!==l&&(html+=n.substring(c,l)),c=l+1,html+=e}return c!==l?html+n.substring(c,l):html}},function(t,e,n){var r=n(1);!function(){for(var t in r){if(null==r||!r.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=r[t]}}();var o=n(334);!function(){for(var t in o){if(null==o||!o.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=o[t]}}(),n(332),n(738),n(749),n(754),n(759),n(763),n(773),n(787),n(793),n(801),n(816),n(820),n(824),n(836),n(842),n(847),n(853),n(857),n(863),n(867),n(870),n(884),n(890),n(896),n(897),n(909),n(368),n(361),n(912),n(916),n(917),n(929),n(133),n(934),n(941),n(942),n(951),n(954),n(957),n(960),n(377),n(966),n(381),n(380),n(972),n(382),n(391),n(977),n(980)},function(t,e,n){"use strict";function r(t){var e=new t;Object.defineProperties(e,{on:{get:function(){return this.$on.bind(this)}},once:{get:function(){return this.$once.bind(this)}},off:{get:function(){return this.$off.bind(this)}},emit:{get:function(){return this.$emit.bind(this)}}}),Object.defineProperty(t,"bus",{get:function(){return e}}),Object.defineProperty(t.prototype,"$bus",{get:function(){return e}})}"undefined"!=typeof window&&window.Vue&&window.Vue.use(r),e.a=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var l=[],c=Object.getPrototypeOf,h=l.slice,d=l.flat?function(t){return l.flat.call(t)}:function(t){return l.concat.apply([],t)},f=l.push,v=l.indexOf,m={},y=m.toString,x=m.hasOwnProperty,_=x.toString,w=_.call(Object),S={},M=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},T=function(t){return null!=t&&t===t.window},A=n.document,I={type:!0,src:!0,nonce:!0,noModule:!0};function C(code,t,e){var i,n,script=(e=e||A).createElement("script");if(script.text=code,t)for(i in I)(n=t[i]||t.getAttribute&&t.getAttribute(i))&&script.setAttribute(i,n);e.head.appendChild(script).parentNode.removeChild(script)}function D(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?m[y.call(t)]||"object":typeof t}var L=function(t,e){return new L.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,n=D(t);return!M(t)&&!T(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}L.fn=L.prototype={jquery:"3.5.1",constructor:L,length:0,toArray:function(){return h.call(this)},get:function(t){return null==t?h.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=L.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return L.each(this,t)},map:function(t){return this.pushStack(L.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(L.grep(this,(function(t,i){return(i+1)%2})))},odd:function(){return this.pushStack(L.grep(this,(function(t,i){return i%2})))},eq:function(i){var t=this.length,e=+i+(i<0?t:0);return this.pushStack(e>=0&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:f,sort:l.sort,splice:l.splice},L.extend=L.fn.extend=function(){var t,e,n,r,o,l,c=arguments[0]||{},i=1,h=arguments.length,d=!1;for("boolean"==typeof c&&(d=c,c=arguments[i]||{},i++),"object"==typeof c||M(c)||(c={}),i===h&&(c=this,i--);i<h;i++)if(null!=(t=arguments[i]))for(e in t)r=t[e],"__proto__"!==e&&c!==r&&(d&&r&&(L.isPlainObject(r)||(o=Array.isArray(r)))?(n=c[e],l=o&&!Array.isArray(n)?[]:o||L.isPlainObject(n)?n:{},o=!1,c[e]=L.extend(d,l,r)):void 0!==r&&(c[e]=r));return c},L.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==y.call(t))&&(!(e=c(t))||"function"==typeof(n=x.call(e,"constructor")&&e.constructor)&&_.call(n)===w)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(code,t,e){C(code,{nonce:t&&t.nonce},e)},each:function(t,e){var n,i=0;if(k(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(k(Object(t))?L.merge(n,"string"==typeof t?[t]:t):f.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:v.call(e,t,i)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,l=!n;i<o;i++)!e(t[i],i)!==l&&r.push(t[i]);return r},map:function(t,e,n){var r,o,i=0,l=[];if(k(t))for(r=t.length;i<r;i++)null!=(o=e(t[i],i,n))&&l.push(o);else for(i in t)null!=(o=e(t[i],i,n))&&l.push(o);return d(l)},guid:1,support:S}),"function"==typeof Symbol&&(L.fn[Symbol.iterator]=l[Symbol.iterator]),L.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){m["[object "+e+"]"]=e.toLowerCase()}));var P=function(t){var i,e,n,r,o,l,c,select,h,d,f,v,m,y,x,_,w,S,M,T="sizzle"+1*new Date,A=t.document,I=0,C=0,D=vt(),L=vt(),k=vt(),P=vt(),O=function(a,b){return a===b&&(f=!0),0},E={}.hasOwnProperty,N=[],R=N.pop,z=N.push,B=N.push,V=N.slice,H=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",G="[\\x20\\t\\r\\n\\f]",W="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+G+"*("+W+")(?:"+G+"*([*^$|!~]?=)"+G+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+G+"*\\]",U=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",Z=new RegExp(G+"+","g"),Y=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g"),X=new RegExp("^"+G+"*,"+G+"*"),$=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),K=new RegExp(G+"|>"),J=new RegExp(U),Q=new RegExp("^"+W+"$"),tt={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},et=/HTML$/i,nt=/^(?:input|select|textarea|button)$/i,it=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,at=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,st=/[+~]/,lt=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),ut=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ct=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ht=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ft=function(){v()},pt=Ct((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{B.apply(N=V.call(A.childNodes),A.childNodes),N[A.childNodes.length].nodeType}catch(t){B={apply:N.length?function(t,e){z.apply(t,V.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function gt(t,n,r,o){var c,i,h,d,f,y,w,S=n&&n.ownerDocument,A=n?n.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==A&&9!==A&&11!==A)return r;if(!o&&(v(n),n=n||m,x)){if(11!==A&&(f=at.exec(t)))if(c=f[1]){if(9===A){if(!(h=n.getElementById(c)))return r;if(h.id===c)return r.push(h),r}else if(S&&(h=S.getElementById(c))&&M(n,h)&&h.id===c)return r.push(h),r}else{if(f[2])return B.apply(r,n.getElementsByTagName(t)),r;if((c=f[3])&&e.getElementsByClassName&&n.getElementsByClassName)return B.apply(r,n.getElementsByClassName(c)),r}if(e.qsa&&!P[t+" "]&&(!_||!_.test(t))&&(1!==A||"object"!==n.nodeName.toLowerCase())){if(w=t,S=n,1===A&&(K.test(t)||$.test(t))){for((S=st.test(t)&&Tt(n.parentNode)||n)===n&&e.scope||((d=n.getAttribute("id"))?d=d.replace(ct,ht):n.setAttribute("id",d=T)),i=(y=l(t)).length;i--;)y[i]=(d?"#"+d:":scope")+" "+It(y[i]);w=y.join(",")}try{return B.apply(r,S.querySelectorAll(w)),r}catch(e){P(t,!0)}finally{d===T&&n.removeAttribute("id")}}}return select(t.replace(Y,"$1"),n,r,o)}function vt(){var t=[];return function e(r,o){return t.push(r+" ")>n.cacheLength&&delete e[t.shift()],e[r+" "]=o}}function mt(t){return t[T]=!0,t}function yt(t){var e=m.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function xt(t,e){for(var r=t.split("|"),i=r.length;i--;)n.attrHandle[r[i]]=e}function _t(a,b){var t=b&&a,e=t&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(e)return e;if(t)for(;t=t.nextSibling;)if(t===b)return-1;return a?1:-1}function bt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function wt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function St(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&pt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Mt(t){return mt((function(e){return e=+e,mt((function(n,r){for(var o,l=t([],n.length,e),i=l.length;i--;)n[o=l[i]]&&(n[o]=!(r[o]=n[o]))}))}))}function Tt(t){return t&&void 0!==t.getElementsByTagName&&t}for(i in e=gt.support={},o=gt.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!et.test(e||n&&n.nodeName||"HTML")},v=gt.setDocument=function(t){var r,l,c=t?t.ownerDocument||t:A;return c!=m&&9===c.nodeType&&c.documentElement?(y=(m=c).documentElement,x=!o(m),A!=m&&(l=m.defaultView)&&l.top!==l&&(l.addEventListener?l.addEventListener("unload",ft,!1):l.attachEvent&&l.attachEvent("onunload",ft)),e.scope=yt((function(t){return y.appendChild(t).appendChild(m.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),e.attributes=yt((function(t){return t.className="i",!t.getAttribute("className")})),e.getElementsByTagName=yt((function(t){return t.appendChild(m.createComment("")),!t.getElementsByTagName("*").length})),e.getElementsByClassName=ot.test(m.getElementsByClassName),e.getById=yt((function(t){return y.appendChild(t).id=T,!m.getElementsByName||!m.getElementsByName(T).length})),e.getById?(n.filter.ID=function(t){var e=t.replace(lt,ut);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&x){var n=e.getElementById(t);return n?[n]:[]}}):(n.filter.ID=function(t){var e=t.replace(lt,ut);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&x){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),n.find.TAG=e.getElementsByTagName?function(t,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(t):e.qsa?n.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},n.find.CLASS=e.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&x)return e.getElementsByClassName(t)},w=[],_=[],(e.qsa=ot.test(m.querySelectorAll))&&(yt((function(t){var input;y.appendChild(t).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+G+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||_.push("\\["+G+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+T+"-]").length||_.push("~="),(input=m.createElement("input")).setAttribute("name",""),t.appendChild(input),t.querySelectorAll("[name='']").length||_.push("\\["+G+"*name"+G+"*="+G+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||_.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||_.push(".#.+[+~]"),t.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")})),yt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var input=m.createElement("input");input.setAttribute("type","hidden"),t.appendChild(input).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&_.push("name"+G+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),y.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),_.push(",.*:")}))),(e.matchesSelector=ot.test(S=y.matches||y.webkitMatchesSelector||y.mozMatchesSelector||y.oMatchesSelector||y.msMatchesSelector))&&yt((function(t){e.disconnectedMatch=S.call(t,"*"),S.call(t,"[s!='']:x"),w.push("!=",U)})),_=_.length&&new RegExp(_.join("|")),w=w.length&&new RegExp(w.join("|")),r=ot.test(y.compareDocumentPosition),M=r||ot.test(y.contains)?function(a,b){var t=9===a.nodeType?a.documentElement:a,e=b&&b.parentNode;return a===e||!(!e||1!==e.nodeType||!(t.contains?t.contains(e):a.compareDocumentPosition&&16&a.compareDocumentPosition(e)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},O=r?function(a,b){if(a===b)return f=!0,0;var t=!a.compareDocumentPosition-!b.compareDocumentPosition;return t||(1&(t=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1)||!e.sortDetached&&b.compareDocumentPosition(a)===t?a==m||a.ownerDocument==A&&M(A,a)?-1:b==m||b.ownerDocument==A&&M(A,b)?1:d?H(d,a)-H(d,b):0:4&t?-1:1)}:function(a,b){if(a===b)return f=!0,0;var t,i=0,e=a.parentNode,n=b.parentNode,r=[a],o=[b];if(!e||!n)return a==m?-1:b==m?1:e?-1:n?1:d?H(d,a)-H(d,b):0;if(e===n)return _t(a,b);for(t=a;t=t.parentNode;)r.unshift(t);for(t=b;t=t.parentNode;)o.unshift(t);for(;r[i]===o[i];)i++;return i?_t(r[i],o[i]):r[i]==A?-1:o[i]==A?1:0},m):m},gt.matches=function(t,e){return gt(t,null,null,e)},gt.matchesSelector=function(t,n){if(v(t),e.matchesSelector&&x&&!P[n+" "]&&(!w||!w.test(n))&&(!_||!_.test(n)))try{var r=S.call(t,n);if(r||e.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){P(n,!0)}return gt(n,m,null,[t]).length>0},gt.contains=function(t,e){return(t.ownerDocument||t)!=m&&v(t),M(t,e)},gt.attr=function(t,r){(t.ownerDocument||t)!=m&&v(t);var o=n.attrHandle[r.toLowerCase()],l=o&&E.call(n.attrHandle,r.toLowerCase())?o(t,r,!x):void 0;return void 0!==l?l:e.attributes||!x?t.getAttribute(r):(l=t.getAttributeNode(r))&&l.specified?l.value:null},gt.escape=function(t){return(t+"").replace(ct,ht)},gt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},gt.uniqueSort=function(t){var n,r=[],o=0,i=0;if(f=!e.detectDuplicates,d=!e.sortStable&&t.slice(0),t.sort(O),f){for(;n=t[i++];)n===t[i]&&(o=r.push(i));for(;o--;)t.splice(r[o],1)}return d=null,t},r=gt.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(n=gt.selectors={cacheLength:50,createPseudo:mt,match:tt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(lt,ut),t[3]=(t[3]||t[4]||t[5]||"").replace(lt,ut),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||gt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&gt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return tt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&J.test(n)&&(e=l(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(lt,ut).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var pattern=D[t+" "];return pattern||(pattern=new RegExp("(^|"+G+")"+t+"("+G+"|$)"))&&D(t,(function(t){return pattern.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var o=gt.attr(r,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(Z," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,o){var l="nth"!==t.slice(0,3),c="last"!==t.slice(-4),h="of-type"===e;return 1===r&&0===o?function(t){return!!t.parentNode}:function(e,n,d){var f,v,m,y,x,_,w=l!==c?"nextSibling":"previousSibling",S=e.parentNode,M=h&&e.nodeName.toLowerCase(),A=!d&&!h,C=!1;if(S){if(l){for(;w;){for(y=e;y=y[w];)if(h?y.nodeName.toLowerCase()===M:1===y.nodeType)return!1;_=w="only"===t&&!_&&"nextSibling"}return!0}if(_=[c?S.firstChild:S.lastChild],c&&A){for(C=(x=(f=(v=(m=(y=S)[T]||(y[T]={}))[y.uniqueID]||(m[y.uniqueID]={}))[t]||[])[0]===I&&f[1])&&f[2],y=x&&S.childNodes[x];y=++x&&y&&y[w]||(C=x=0)||_.pop();)if(1===y.nodeType&&++C&&y===e){v[t]=[I,x,C];break}}else if(A&&(C=x=(f=(v=(m=(y=e)[T]||(y[T]={}))[y.uniqueID]||(m[y.uniqueID]={}))[t]||[])[0]===I&&f[1]),!1===C)for(;(y=++x&&y&&y[w]||(C=x=0)||_.pop())&&((h?y.nodeName.toLowerCase()!==M:1!==y.nodeType)||!++C||(A&&((v=(m=y[T]||(y[T]={}))[y.uniqueID]||(m[y.uniqueID]={}))[t]=[I,C]),y!==e)););return(C-=o)===r||C%r==0&&C/r>=0}}},PSEUDO:function(t,e){var r,o=n.pseudos[t]||n.setFilters[t.toLowerCase()]||gt.error("unsupported pseudo: "+t);return o[T]?o(e):o.length>1?(r=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?mt((function(t,n){for(var r,l=o(t,e),i=l.length;i--;)t[r=H(t,l[i])]=!(n[r]=l[i])})):function(t){return o(t,0,r)}):o}},pseudos:{not:mt((function(t){var input=[],e=[],n=c(t.replace(Y,"$1"));return n[T]?mt((function(t,e,r,o){for(var l,c=n(t,null,o,[]),i=t.length;i--;)(l=c[i])&&(t[i]=!(e[i]=l))})):function(t,r,o){return input[0]=t,n(input,null,o,e),input[0]=null,!e.pop()}})),has:mt((function(t){return function(e){return gt(t,e).length>0}})),contains:mt((function(text){return text=text.replace(lt,ut),function(t){return(t.textContent||r(t)).indexOf(text)>-1}})),lang:mt((function(t){return Q.test(t||"")||gt.error("unsupported lang: "+t),t=t.replace(lt,ut).toLowerCase(),function(e){var n;do{if(n=x?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===y},focus:function(t){return t===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:St(!1),disabled:St(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return it.test(t.nodeName)},input:function(t){return nt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:Mt((function(){return[0]})),last:Mt((function(t,e){return[e-1]})),eq:Mt((function(t,e,n){return[n<0?n+e:n]})),even:Mt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:Mt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:Mt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:Mt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[i]=bt(i);for(i in{submit:!0,reset:!0})n.pseudos[i]=wt(i);function At(){}function It(t){for(var i=0,e=t.length,n="";i<e;i++)n+=t[i].value;return n}function Ct(t,e,base){var n=e.dir,r=e.next,o=r||n,l=base&&"parentNode"===o,c=C++;return e.first?function(e,r,o){for(;e=e[n];)if(1===e.nodeType||l)return t(e,r,o);return!1}:function(e,h,d){var f,v,m,y=[I,c];if(d){for(;e=e[n];)if((1===e.nodeType||l)&&t(e,h,d))return!0}else for(;e=e[n];)if(1===e.nodeType||l)if(v=(m=e[T]||(e[T]={}))[e.uniqueID]||(m[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((f=v[o])&&f[0]===I&&f[1]===c)return y[2]=f[2];if(v[o]=y,y[2]=t(e,h,d))return!0}return!1}}function Dt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function Lt(t,map,filter,e,n){for(var r,o=[],i=0,l=t.length,c=null!=map;i<l;i++)(r=t[i])&&(filter&&!filter(r,e,n)||(o.push(r),c&&map.push(i)));return o}function kt(t,e,n,r,o,l){return r&&!r[T]&&(r=kt(r)),o&&!o[T]&&(o=kt(o,l)),mt((function(l,c,h,d){var f,i,v,m=[],y=[],x=c.length,_=l||function(t,e,n){for(var i=0,r=e.length;i<r;i++)gt(t,e[i],n);return n}(e||"*",h.nodeType?[h]:h,[]),w=!t||!l&&e?_:Lt(_,m,t,h,d),S=n?o||(l?t:x||r)?[]:c:w;if(n&&n(w,S,h,d),r)for(f=Lt(S,y),r(f,[],h,d),i=f.length;i--;)(v=f[i])&&(S[y[i]]=!(w[y[i]]=v));if(l){if(o||t){if(o){for(f=[],i=S.length;i--;)(v=S[i])&&f.push(w[i]=v);o(null,S=[],f,d)}for(i=S.length;i--;)(v=S[i])&&(f=o?H(l,v):m[i])>-1&&(l[f]=!(c[f]=v))}}else S=Lt(S===c?S.splice(x,S.length):S),o?o(null,c,S,d):B.apply(c,S)}))}function Pt(t){for(var e,r,o,l=t.length,c=n.relative[t[0].type],d=c||n.relative[" "],i=c?1:0,f=Ct((function(t){return t===e}),d,!0),v=Ct((function(t){return H(e,t)>-1}),d,!0),m=[function(t,n,r){var o=!c&&(r||n!==h)||((e=n).nodeType?f(t,n,r):v(t,n,r));return e=null,o}];i<l;i++)if(r=n.relative[t[i].type])m=[Ct(Dt(m),r)];else{if((r=n.filter[t[i].type].apply(null,t[i].matches))[T]){for(o=++i;o<l&&!n.relative[t[o].type];o++);return kt(i>1&&Dt(m),i>1&&It(t.slice(0,i-1).concat({value:" "===t[i-2].type?"*":""})).replace(Y,"$1"),r,i<o&&Pt(t.slice(i,o)),o<l&&Pt(t=t.slice(o)),o<l&&It(t))}m.push(r)}return Dt(m)}return At.prototype=n.filters=n.pseudos,n.setFilters=new At,l=gt.tokenize=function(t,e){var r,o,l,c,h,d,f,v=L[t+" "];if(v)return e?0:v.slice(0);for(h=t,d=[],f=n.preFilter;h;){for(c in r&&!(o=X.exec(h))||(o&&(h=h.slice(o[0].length)||h),d.push(l=[])),r=!1,(o=$.exec(h))&&(r=o.shift(),l.push({value:r,type:o[0].replace(Y," ")}),h=h.slice(r.length)),n.filter)!(o=tt[c].exec(h))||f[c]&&!(o=f[c](o))||(r=o.shift(),l.push({value:r,type:c,matches:o}),h=h.slice(r.length));if(!r)break}return e?h.length:h?gt.error(t):L(t,d).slice(0)},c=gt.compile=function(t,e){var i,r=[],o=[],c=k[t+" "];if(!c){for(e||(e=l(t)),i=e.length;i--;)(c=Pt(e[i]))[T]?r.push(c):o.push(c);(c=k(t,function(t,e){var r=e.length>0,o=t.length>0,l=function(l,c,d,f,y){var _,w,S,M=0,i="0",T=l&&[],A=[],C=h,D=l||o&&n.find.TAG("*",y),L=I+=null==C?1:Math.random()||.1,k=D.length;for(y&&(h=c==m||c||y);i!==k&&null!=(_=D[i]);i++){if(o&&_){for(w=0,c||_.ownerDocument==m||(v(_),d=!x);S=t[w++];)if(S(_,c||m,d)){f.push(_);break}y&&(I=L)}r&&((_=!S&&_)&&M--,l&&T.push(_))}if(M+=i,r&&i!==M){for(w=0;S=e[w++];)S(T,A,c,d);if(l){if(M>0)for(;i--;)T[i]||A[i]||(A[i]=R.call(f));A=Lt(A)}B.apply(f,A),y&&!l&&A.length>0&&M+e.length>1&&gt.uniqueSort(f)}return y&&(I=L,h=C),T};return r?mt(l):l}(o,r))).selector=t}return c},select=gt.select=function(t,e,r,o){var i,h,d,f,v,m="function"==typeof t&&t,y=!o&&l(t=m.selector||t);if(r=r||[],1===y.length){if((h=y[0]=y[0].slice(0)).length>2&&"ID"===(d=h[0]).type&&9===e.nodeType&&x&&n.relative[h[1].type]){if(!(e=(n.find.ID(d.matches[0].replace(lt,ut),e)||[])[0]))return r;m&&(e=e.parentNode),t=t.slice(h.shift().value.length)}for(i=tt.needsContext.test(t)?0:h.length;i--&&(d=h[i],!n.relative[f=d.type]);)if((v=n.find[f])&&(o=v(d.matches[0].replace(lt,ut),st.test(h[0].type)&&Tt(e.parentNode)||e))){if(h.splice(i,1),!(t=o.length&&It(h)))return B.apply(r,o),r;break}}return(m||c(t,y))(o,e,!x,r,!e||st.test(t)&&Tt(e.parentNode)||e),r},e.sortStable=T.split("").sort(O).join("")===T,e.detectDuplicates=!!f,v(),e.sortDetached=yt((function(t){return 1&t.compareDocumentPosition(m.createElement("fieldset"))})),yt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||xt("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),e.attributes&&yt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||xt("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),yt((function(t){return null==t.getAttribute("disabled")}))||xt(F,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),gt}(n);L.find=P,L.expr=P.selectors,L.expr[":"]=L.expr.pseudos,L.uniqueSort=L.unique=P.uniqueSort,L.text=P.getText,L.isXMLDoc=P.isXML,L.contains=P.contains,L.escapeSelector=P.escape;var O=function(t,e,n){for(var r=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&L(t).is(n))break;r.push(t)}return r},E=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},N=L.expr.match.needsContext;function R(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,n){return M(e)?L.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?L.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?L.grep(t,(function(t){return v.call(e,t)>-1!==n})):L.filter(e,t,n)}L.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?L.find.matchesSelector(r,t)?[r]:[]:L.find.matches(t,L.grep(e,(function(t){return 1===t.nodeType})))},L.fn.extend({find:function(t){var i,e,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(L(t).filter((function(){for(i=0;i<n;i++)if(L.contains(r[i],this))return!0})));for(e=this.pushStack([]),i=0;i<n;i++)L.find(t,r[i],e);return n>1?L.uniqueSort(e):e},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&N.test(t)?L(t):t||[],!1).length}});var V,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(L.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||V,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:H.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof L?e[0]:e,L.merge(this,L.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:A,!0)),z.test(r[1])&&L.isPlainObject(e))for(r in e)M(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=A.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):M(t)?void 0!==n.ready?n.ready(t):t(L):L.makeArray(t,this)}).prototype=L.fn,V=L(A);var F=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function W(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}L.fn.extend({has:function(t){var e=L(t,this),n=e.length;return this.filter((function(){for(var i=0;i<n;i++)if(L.contains(this,e[i]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],l="string"!=typeof t&&L(t);if(!N.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(l?l.index(n)>-1:1===n.nodeType&&L.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?L.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?v.call(L(t),this[0]):v.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(L.uniqueSort(L.merge(this.get(),L(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),L.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return O(t,"parentNode")},parentsUntil:function(t,e,n){return O(t,"parentNode",n)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return O(t,"nextSibling")},prevAll:function(t){return O(t,"previousSibling")},nextUntil:function(t,e,n){return O(t,"nextSibling",n)},prevUntil:function(t,e,n){return O(t,"previousSibling",n)},siblings:function(t){return E((t.parentNode||{}).firstChild,t)},children:function(t){return E(t.firstChild)},contents:function(t){return null!=t.contentDocument&&c(t.contentDocument)?t.contentDocument:(R(t,"template")&&(t=t.content||t),L.merge([],t.childNodes))}},(function(t,e){L.fn[t]=function(n,r){var o=L.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=L.filter(r,o)),this.length>1&&(G[t]||L.uniqueSort(o),F.test(t)&&o.reverse()),this.pushStack(o)}}));var j=/[^\x20\t\r\n\f]+/g;function U(t){return t}function Z(t){throw t}function Y(t,e,n,r){var o;try{t&&M(o=t.promise)?o.call(t).done(e).fail(n):t&&M(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}L.Callbacks=function(t){t="string"==typeof t?function(t){var object={};return L.each(t.match(j)||[],(function(t,e){object[e]=!0})),object}(t):L.extend({},t);var e,n,r,o,l=[],c=[],h=-1,d=function(){for(o=o||t.once,r=e=!0;c.length;h=-1)for(n=c.shift();++h<l.length;)!1===l[h].apply(n[0],n[1])&&t.stopOnFalse&&(h=l.length,n=!1);t.memory||(n=!1),e=!1,o&&(l=n?[]:"")},f={add:function(){return l&&(n&&!e&&(h=l.length-1,c.push(n)),function e(n){L.each(n,(function(n,r){M(r)?t.unique&&f.has(r)||l.push(r):r&&r.length&&"string"!==D(r)&&e(r)}))}(arguments),n&&!e&&d()),this},remove:function(){return L.each(arguments,(function(t,e){for(var n;(n=L.inArray(e,l,n))>-1;)l.splice(n,1),n<=h&&h--})),this},has:function(t){return t?L.inArray(t,l)>-1:l.length>0},empty:function(){return l&&(l=[]),this},disable:function(){return o=c=[],l=n="",this},disabled:function(){return!l},lock:function(){return o=c=[],n||e||(l=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],c.push(n),e||d()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},L.extend({Deferred:function(t){var e=[["notify","progress",L.Callbacks("memory"),L.Callbacks("memory"),2],["resolve","done",L.Callbacks("once memory"),L.Callbacks("once memory"),0,"resolved"],["reject","fail",L.Callbacks("once memory"),L.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return l.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return L.Deferred((function(n){L.each(e,(function(e,r){var o=M(t[r[4]])&&t[r[4]];l[r[1]]((function(){var t=o&&o.apply(this,arguments);t&&M(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,o){var l=0;function c(t,e,r,o){return function(){var h=this,d=arguments,f=function(){var n,f;if(!(t<l)){if((n=r.apply(h,d))===e.promise())throw new TypeError("Thenable self-resolution");f=n&&("object"==typeof n||"function"==typeof n)&&n.then,M(f)?o?f.call(n,c(l,e,U,o),c(l,e,Z,o)):(l++,f.call(n,c(l,e,U,o),c(l,e,Z,o),c(l,e,U,e.notifyWith))):(r!==U&&(h=void 0,d=[n]),(o||e.resolveWith)(h,d))}},v=o?f:function(){try{f()}catch(n){L.Deferred.exceptionHook&&L.Deferred.exceptionHook(n,v.stackTrace),t+1>=l&&(r!==Z&&(h=void 0,d=[n]),e.rejectWith(h,d))}};t?v():(L.Deferred.getStackHook&&(v.stackTrace=L.Deferred.getStackHook()),n.setTimeout(v))}}return L.Deferred((function(n){e[0][3].add(c(0,n,M(o)?o:U,n.notifyWith)),e[1][3].add(c(0,n,M(t)?t:U)),e[2][3].add(c(0,n,M(r)?r:Z))})).promise()},promise:function(t){return null!=t?L.extend(t,o):o}},l={};return L.each(e,(function(i,t){var n=t[2],c=t[5];o[t[1]]=n.add,c&&n.add((function(){r=c}),e[3-i][2].disable,e[3-i][3].disable,e[0][2].lock,e[0][3].lock),n.add(t[3].fire),l[t[0]]=function(){return l[t[0]+"With"](this===l?void 0:this,arguments),this},l[t[0]+"With"]=n.fireWith})),o.promise(l),t&&t.call(l,l),l},when:function(t){var e=arguments.length,i=e,n=Array(i),r=h.call(arguments),o=L.Deferred(),l=function(i){return function(t){n[i]=this,r[i]=arguments.length>1?h.call(arguments):t,--e||o.resolveWith(n,r)}};if(e<=1&&(Y(t,o.done(l(i)).resolve,o.reject,!e),"pending"===o.state()||M(r[i]&&r[i].then)))return o.then();for(;i--;)Y(r[i],l(i),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;L.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&X.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},L.readyException=function(t){n.setTimeout((function(){throw t}))};var $=L.Deferred();function K(){A.removeEventListener("DOMContentLoaded",K),n.removeEventListener("load",K),L.ready()}L.fn.ready=function(t){return $.then(t).catch((function(t){L.readyException(t)})),this},L.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--L.readyWait:L.isReady)||(L.isReady=!0,!0!==t&&--L.readyWait>0||$.resolveWith(A,[L]))}}),L.ready.then=$.then,"complete"===A.readyState||"loading"!==A.readyState&&!A.documentElement.doScroll?n.setTimeout(L.ready):(A.addEventListener("DOMContentLoaded",K),n.addEventListener("load",K));var J=function(t,e,n,r,o,l,c){var i=0,h=t.length,d=null==n;if("object"===D(n))for(i in o=!0,n)J(t,e,i,n[i],!0,l,c);else if(void 0!==r&&(o=!0,M(r)||(c=!0),d&&(c?(e.call(t,r),e=null):(d=e,e=function(t,e,n){return d.call(L(t),n)})),e))for(;i<h;i++)e(t[i],n,c?r:r.call(t[i],i,e(t[i],n)));return o?t:d?e.call(t):h?e(t[0],n):l},Q=/^-ms-/,tt=/-([a-z])/g;function et(t,e){return e.toUpperCase()}function nt(t){return t.replace(Q,"ms-").replace(tt,et)}var it=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=L.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},it(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,data,e){var n,r=this.cache(t);if("string"==typeof data)r[nt(data)]=e;else for(n in data)r[nt(n)]=data[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][nt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(nt):(e=nt(e))in n?[e]:e.match(j)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||L.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!L.isEmptyObject(e)}};var at=new ot,st=new ot,lt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function ct(t,e,data){var n;if(void 0===data&&1===t.nodeType)if(n="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(data=t.getAttribute(n))){try{data=function(data){return"true"===data||"false"!==data&&("null"===data?null:data===+data+""?+data:lt.test(data)?JSON.parse(data):data)}(data)}catch(t){}st.set(t,e,data)}else data=void 0;return data}L.extend({hasData:function(t){return st.hasData(t)||at.hasData(t)},data:function(t,e,data){return st.access(t,e,data)},removeData:function(t,e){st.remove(t,e)},_data:function(t,e,data){return at.access(t,e,data)},_removeData:function(t,e){at.remove(t,e)}}),L.fn.extend({data:function(t,e){var i,n,data,r=this[0],o=r&&r.attributes;if(void 0===t){if(this.length&&(data=st.get(r),1===r.nodeType&&!at.get(r,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&0===(n=o[i].name).indexOf("data-")&&(n=nt(n.slice(5)),ct(r,n,data[n]));at.set(r,"hasDataAttrs",!0)}return data}return"object"==typeof t?this.each((function(){st.set(this,t)})):J(this,(function(e){var data;if(r&&void 0===e)return void 0!==(data=st.get(r,t))||void 0!==(data=ct(r,t))?data:void 0;this.each((function(){st.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){st.remove(this,t)}))}}),L.extend({queue:function(t,e,data){var n;if(t)return e=(e||"fx")+"queue",n=at.get(t,e),data&&(!n||Array.isArray(data)?n=at.access(t,e,L.makeArray(data)):n.push(data)),n||[]},dequeue:function(t,e){e=e||"fx";var n=L.queue(t,e),r=n.length,o=n.shift(),l=L._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===e&&n.unshift("inprogress"),delete l.stop,o.call(t,(function(){L.dequeue(t,e)}),l)),!r&&l&&l.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:L.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),L.fn.extend({queue:function(t,data){var e=2;return"string"!=typeof t&&(data=t,t="fx",e--),arguments.length<e?L.queue(this[0],t):void 0===data?this:this.each((function(){var e=L.queue(this,t,data);L._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&L.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){L.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,o=L.Deferred(),l=this,i=this.length,c=function(){--r||o.resolveWith(l,[l])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";i--;)(n=at.get(l[i],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(c));return c(),o.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],gt=A.documentElement,vt=function(t){return L.contains(t.ownerDocument,t)},mt={composed:!0};gt.getRootNode&&(vt=function(t){return L.contains(t.ownerDocument,t)||t.getRootNode(mt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&vt(t)&&"none"===L.css(t,"display")};function xt(t,e,n,r){var o,l,c=20,h=r?function(){return r.cur()}:function(){return L.css(t,e,"")},d=h(),f=n&&n[3]||(L.cssNumber[e]?"":"px"),v=t.nodeType&&(L.cssNumber[e]||"px"!==f&&+d)&&ft.exec(L.css(t,e));if(v&&v[3]!==f){for(d/=2,f=f||v[3],v=+d||1;c--;)L.style(t,e,v+f),(1-l)*(1-(l=h()/d||.5))<=0&&(c=0),v/=l;v*=2,L.style(t,e,v+f),n=n||[]}return n&&(v=+v||+d||0,o=n[1]?v+(n[1]+1)*n[2]:+n[2],r&&(r.unit=f,r.start=v,r.end=o)),o}var _t={};function bt(t){var e,n=t.ownerDocument,r=t.nodeName,o=_t[r];return o||(e=n.body.appendChild(n.createElement(r)),o=L.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),_t[r]=o,o)}function wt(t,e){for(var n,r,o=[],l=0,c=t.length;l<c;l++)(r=t[l]).style&&(n=r.style.display,e?("none"===n&&(o[l]=at.get(r,"display")||null,o[l]||(r.style.display="")),""===r.style.display&&yt(r)&&(o[l]=bt(r))):"none"!==n&&(o[l]="none",at.set(r,"display",n)));for(l=0;l<c;l++)null!=o[l]&&(t[l].style.display=o[l]);return t}L.fn.extend({show:function(){return wt(this,!0)},hide:function(){return wt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?L(this).show():L(this).hide()}))}});var div,input,St=/^(?:checkbox|radio)$/i,Mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Tt=/^$|^module$|\/(?:java|ecma)script/i;div=A.createDocumentFragment().appendChild(A.createElement("div")),(input=A.createElement("input")).setAttribute("type","radio"),input.setAttribute("checked","checked"),input.setAttribute("name","t"),div.appendChild(input),S.checkClone=div.cloneNode(!0).cloneNode(!0).lastChild.checked,div.innerHTML="<textarea>x</textarea>",S.noCloneChecked=!!div.cloneNode(!0).lastChild.defaultValue,div.innerHTML="<option></option>",S.option=!!div.lastChild;var At={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function It(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&R(t,e)?L.merge([t],n):n}function Ct(t,e){for(var i=0,n=t.length;i<n;i++)at.set(t[i],"globalEval",!e||at.get(e[i],"globalEval"))}At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,S.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var Dt=/<|&#?\w+;/;function Lt(t,e,n,r,o){for(var l,c,h,d,f,v,m=e.createDocumentFragment(),y=[],i=0,x=t.length;i<x;i++)if((l=t[i])||0===l)if("object"===D(l))L.merge(y,l.nodeType?[l]:l);else if(Dt.test(l)){for(c=c||m.appendChild(e.createElement("div")),h=(Mt.exec(l)||["",""])[1].toLowerCase(),d=At[h]||At._default,c.innerHTML=d[1]+L.htmlPrefilter(l)+d[2],v=d[0];v--;)c=c.lastChild;L.merge(y,c.childNodes),(c=m.firstChild).textContent=""}else y.push(e.createTextNode(l));for(m.textContent="",i=0;l=y[i++];)if(r&&L.inArray(l,r)>-1)o&&o.push(l);else if(f=vt(l),c=It(m.appendChild(l),"script"),f&&Ct(c),n)for(v=0;l=c[v++];)Tt.test(l.type||"")&&n.push(l);return m}var kt=/^key/,Pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ot=/^([^.]*)(?:\.(.+)|)/;function Et(){return!0}function Nt(){return!1}function Rt(t,e){return t===function(){try{return A.activeElement}catch(t){}}()==("focus"===e)}function zt(t,e,n,data,r,o){var l,c;if("object"==typeof e){for(c in"string"!=typeof n&&(data=data||n,n=void 0),e)zt(t,c,n,data,e[c],o);return t}if(null==data&&null==r?(r=n,data=n=void 0):null==r&&("string"==typeof n?(r=data,data=void 0):(r=data,data=n,n=void 0)),!1===r)r=Nt;else if(!r)return t;return 1===o&&(l=r,(r=function(t){return L().off(t),l.apply(this,arguments)}).guid=l.guid||(l.guid=L.guid++)),t.each((function(){L.event.add(this,e,r,data,n)}))}function Bt(t,e,n){n?(at.set(t,e,!1),L.event.add(t,e,{namespace:!1,handler:function(t){var r,o,l=at.get(this,e);if(1&t.isTrigger&&this[e]){if(l.length)(L.event.special[e]||{}).delegateType&&t.stopPropagation();else if(l=h.call(arguments),at.set(this,e,l),r=n(this,e),this[e](),l!==(o=at.get(this,e))||r?at.set(this,e,!1):o={},l!==o)return t.stopImmediatePropagation(),t.preventDefault(),o.value}else l.length&&(at.set(this,e,{value:L.event.trigger(L.extend(l[0],L.Event.prototype),l.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===at.get(t,e)&&L.event.add(t,e,Et)}L.event={global:{},add:function(t,e,n,data,r){var o,l,c,h,d,f,v,m,y,x,_,w=at.get(t);if(it(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&L.find.matchesSelector(gt,r),n.guid||(n.guid=L.guid++),(h=w.events)||(h=w.events=Object.create(null)),(l=w.handle)||(l=w.handle=function(e){return void 0!==L&&L.event.triggered!==e.type?L.event.dispatch.apply(t,arguments):void 0}),d=(e=(e||"").match(j)||[""]).length;d--;)y=_=(c=Ot.exec(e[d])||[])[1],x=(c[2]||"").split(".").sort(),y&&(v=L.event.special[y]||{},y=(r?v.delegateType:v.bindType)||y,v=L.event.special[y]||{},f=L.extend({type:y,origType:_,data:data,handler:n,guid:n.guid,selector:r,needsContext:r&&L.expr.match.needsContext.test(r),namespace:x.join(".")},o),(m=h[y])||((m=h[y]=[]).delegateCount=0,v.setup&&!1!==v.setup.call(t,data,x,l)||t.addEventListener&&t.addEventListener(y,l)),v.add&&(v.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),r?m.splice(m.delegateCount++,0,f):m.push(f),L.event.global[y]=!0)},remove:function(t,e,n,r,o){var l,c,h,d,f,v,m,y,x,_,w,S=at.hasData(t)&&at.get(t);if(S&&(d=S.events)){for(f=(e=(e||"").match(j)||[""]).length;f--;)if(x=w=(h=Ot.exec(e[f])||[])[1],_=(h[2]||"").split(".").sort(),x){for(m=L.event.special[x]||{},y=d[x=(r?m.delegateType:m.bindType)||x]||[],h=h[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=l=y.length;l--;)v=y[l],!o&&w!==v.origType||n&&n.guid!==v.guid||h&&!h.test(v.namespace)||r&&r!==v.selector&&("**"!==r||!v.selector)||(y.splice(l,1),v.selector&&y.delegateCount--,m.remove&&m.remove.call(t,v));c&&!y.length&&(m.teardown&&!1!==m.teardown.call(t,_,S.handle)||L.removeEvent(t,x,S.handle),delete d[x])}else for(x in d)L.event.remove(t,x+e[f],n,r,!0);L.isEmptyObject(d)&&at.remove(t,"handle events")}},dispatch:function(t){var i,e,n,r,o,l,c=new Array(arguments.length),h=L.event.fix(t),d=(at.get(this,"events")||Object.create(null))[h.type]||[],f=L.event.special[h.type]||{};for(c[0]=h,i=1;i<arguments.length;i++)c[i]=arguments[i];if(h.delegateTarget=this,!f.preDispatch||!1!==f.preDispatch.call(this,h)){for(l=L.event.handlers.call(this,h,d),i=0;(r=l[i++])&&!h.isPropagationStopped();)for(h.currentTarget=r.elem,e=0;(o=r.handlers[e++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==o.namespace&&!h.rnamespace.test(o.namespace)||(h.handleObj=o,h.data=o.data,void 0!==(n=((L.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,c))&&!1===(h.result=n)&&(h.preventDefault(),h.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,h),h.result}},handlers:function(t,e){var i,n,r,o,l,c=[],h=e.delegateCount,d=t.target;if(h&&d.nodeType&&!("click"===t.type&&t.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==t.type||!0!==d.disabled)){for(o=[],l={},i=0;i<h;i++)void 0===l[r=(n=e[i]).selector+" "]&&(l[r]=n.needsContext?L(r,this).index(d)>-1:L.find(r,this,null,[d]).length),l[r]&&o.push(n);o.length&&c.push({elem:d,handlers:o})}return d=this,h<e.length&&c.push({elem:d,handlers:e.slice(h)}),c},addProp:function(t,e){Object.defineProperty(L.Event.prototype,t,{enumerable:!0,configurable:!0,get:M(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[L.expando]?t:new L.Event(t)},special:{load:{noBubble:!0},click:{setup:function(data){var t=this||data;return St.test(t.type)&&t.click&&R(t,"input")&&Bt(t,"click",Et),!1},trigger:function(data){var t=this||data;return St.test(t.type)&&t.click&&R(t,"input")&&Bt(t,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&R(e,"input")&&at.get(e,"click")||R(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},L.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},L.Event=function(t,e){if(!(this instanceof L.Event))return new L.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Et:Nt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&L.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[L.expando]=!0},L.Event.prototype={constructor:L.Event,isDefaultPrevented:Nt,isPropagationStopped:Nt,isImmediatePropagationStopped:Nt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Et,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Et,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Et,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},L.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var button=t.button;return null==t.which&&kt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==button&&Pt.test(t.type)?1&button?1:2&button?3:4&button?2:0:t.which}},L.event.addProp),L.each({focus:"focusin",blur:"focusout"},(function(t,e){L.event.special[t]={setup:function(){return Bt(this,t,Rt),!1},trigger:function(){return Bt(this,t),!0},delegateType:e}})),L.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){L.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,o=t.relatedTarget,l=t.handleObj;return o&&(o===r||L.contains(r,o))||(t.type=l.origType,n=l.handler.apply(this,arguments),t.type=e),n}}})),L.fn.extend({on:function(t,e,data,n){return zt(this,t,e,data,n)},one:function(t,e,data,n){return zt(this,t,e,data,n,1)},off:function(t,e,n){var r,o;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,L(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Nt),this.each((function(){L.event.remove(this,t,n,e)}))}});var Vt=/<script|<style|<link/i,Ht=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Gt(t,content){return R(t,"table")&&R(11!==content.nodeType?content:content.firstChild,"tr")&&L(t).children("tbody")[0]||t}function Wt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function jt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ut(t,e){var i,n,r,o,l,c;if(1===e.nodeType){if(at.hasData(t)&&(c=at.get(t).events))for(r in at.remove(e,"handle events"),c)for(i=0,n=c[r].length;i<n;i++)L.event.add(e,r,c[r][i]);st.hasData(t)&&(o=st.access(t),l=L.extend({},o),st.set(e,l))}}function qt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&St.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Zt(t,e,n,r){e=d(e);var o,l,c,h,f,v,i=0,m=t.length,y=m-1,x=e[0],_=M(x);if(_||m>1&&"string"==typeof x&&!S.checkClone&&Ht.test(x))return t.each((function(o){var l=t.eq(o);_&&(e[0]=x.call(this,o,l.html())),Zt(l,e,n,r)}));if(m&&(l=(o=Lt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===o.childNodes.length&&(o=l),l||r)){for(h=(c=L.map(It(o,"script"),Wt)).length;i<m;i++)f=o,i!==y&&(f=L.clone(f,!0,!0),h&&L.merge(c,It(f,"script"))),n.call(t[i],f,i);if(h)for(v=c[c.length-1].ownerDocument,L.map(c,jt),i=0;i<h;i++)f=c[i],Tt.test(f.type||"")&&!at.access(f,"globalEval")&&L.contains(v,f)&&(f.src&&"module"!==(f.type||"").toLowerCase()?L._evalUrl&&!f.noModule&&L._evalUrl(f.src,{nonce:f.nonce||f.getAttribute("nonce")},v):C(f.textContent.replace(Ft,""),f,v))}return t}function Yt(t,e,n){for(var r,o=e?L.filter(e,t):t,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||L.cleanData(It(r)),r.parentNode&&(n&&vt(r)&&Ct(It(r,"script")),r.parentNode.removeChild(r));return t}L.extend({htmlPrefilter:function(html){return html},clone:function(t,e,n){var i,r,o,l,c=t.cloneNode(!0),h=vt(t);if(!(S.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||L.isXMLDoc(t)))for(l=It(c),i=0,r=(o=It(t)).length;i<r;i++)qt(o[i],l[i]);if(e)if(n)for(o=o||It(t),l=l||It(c),i=0,r=o.length;i<r;i++)Ut(o[i],l[i]);else Ut(t,c);return(l=It(c,"script")).length>0&&Ct(l,!h&&It(t,"script")),c},cleanData:function(t){for(var data,e,n,r=L.event.special,i=0;void 0!==(e=t[i]);i++)if(it(e)){if(data=e[at.expando]){if(data.events)for(n in data.events)r[n]?L.event.remove(e,n):L.removeEvent(e,n,data.handle);e[at.expando]=void 0}e[st.expando]&&(e[st.expando]=void 0)}}}),L.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return J(this,(function(t){return void 0===t?L.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Gt(this,t).appendChild(t)}))},prepend:function(){return Zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Gt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,i=0;null!=(t=this[i]);i++)1===t.nodeType&&(L.cleanData(It(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return L.clone(this,t,e)}))},html:function(t){return J(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Vt.test(t)&&!At[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=L.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(L.cleanData(It(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Zt(this,arguments,(function(e){var n=this.parentNode;L.inArray(this,t)<0&&(L.cleanData(It(this)),n&&n.replaceChild(e,this))}),t)}}),L.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){L.fn[t]=function(t){for(var n,r=[],o=L(t),l=o.length-1,i=0;i<=l;i++)n=i===l?this:this.clone(!0),L(o[i])[e](n),f.apply(r,n.get());return this.pushStack(r)}}));var Xt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),$t=function(t){var view=t.ownerDocument.defaultView;return view&&view.opener||(view=n),view.getComputedStyle(t)},Kt=function(t,e,n){var r,o,l={};for(o in e)l[o]=t.style[o],t.style[o]=e[o];for(o in r=n.call(t),e)t.style[o]=l[o];return r},Jt=new RegExp(pt.join("|"),"i");function Qt(t,e,n){var r,o,l,c,style=t.style;return(n=n||$t(t))&&(""!==(c=n.getPropertyValue(e)||n[e])||vt(t)||(c=L.style(t,e)),!S.pixelBoxStyles()&&Xt.test(c)&&Jt.test(e)&&(r=style.width,o=style.minWidth,l=style.maxWidth,style.minWidth=style.maxWidth=style.width=c,c=n.width,style.width=r,style.minWidth=o,style.maxWidth=l)),void 0!==c?c+"":c}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(div){f.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(f).appendChild(div);var t=n.getComputedStyle(div);r="1%"!==t.top,d=12===e(t.marginLeft),div.style.right="60%",c=36===e(t.right),o=36===e(t.width),div.style.position="absolute",l=12===e(div.offsetWidth/3),gt.removeChild(f),div=null}}function e(t){return Math.round(parseFloat(t))}var r,o,l,c,h,d,f=A.createElement("div"),div=A.createElement("div");div.style&&(div.style.backgroundClip="content-box",div.cloneNode(!0).style.backgroundClip="",S.clearCloneStyle="content-box"===div.style.backgroundClip,L.extend(S,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),c},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),d},scrollboxSize:function(){return t(),l},reliableTrDimensions:function(){var table,tr,t,e;return null==h&&(table=A.createElement("table"),tr=A.createElement("tr"),t=A.createElement("div"),table.style.cssText="position:absolute;left:-11111px",tr.style.height="1px",t.style.height="9px",gt.appendChild(table).appendChild(tr).appendChild(t),e=n.getComputedStyle(tr),h=parseInt(e.height)>3,gt.removeChild(table)),h}}))}();var ee=["Webkit","Moz","ms"],ne=A.createElement("div").style,ie={};function re(t){var e=L.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=ee.length;i--;)if((t=ee[i]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,ae=/^--/,se={position:"absolute",visibility:"hidden",display:"block"},le={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var r=ft.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ce(t,e,n,r,o,l){var i="width"===e?1:0,c=0,h=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(h+=L.css(t,n+pt[i],!0,o)),r?("content"===n&&(h-=L.css(t,"padding"+pt[i],!0,o)),"margin"!==n&&(h-=L.css(t,"border"+pt[i]+"Width",!0,o))):(h+=L.css(t,"padding"+pt[i],!0,o),"padding"!==n?h+=L.css(t,"border"+pt[i]+"Width",!0,o):c+=L.css(t,"border"+pt[i]+"Width",!0,o));return!r&&l>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-l-h-c-.5))||0),h}function he(t,e,n){var r=$t(t),o=(!S.boxSizingReliable()||n)&&"border-box"===L.css(t,"boxSizing",!1,r),l=o,c=Qt(t,e,r),h="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(c)){if(!n)return c;c="auto"}return(!S.boxSizingReliable()&&o||!S.reliableTrDimensions()&&R(t,"tr")||"auto"===c||!parseFloat(c)&&"inline"===L.css(t,"display",!1,r))&&t.getClientRects().length&&(o="border-box"===L.css(t,"boxSizing",!1,r),(l=h in t)&&(c=t[h])),(c=parseFloat(c)||0)+ce(t,e,n||(o?"border":"content"),l,r,c)+"px"}function de(t,e,n,r,o){return new de.prototype.init(t,e,n,r,o)}L.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,l,c,h=nt(e),d=ae.test(e),style=t.style;if(d||(e=re(h)),c=L.cssHooks[e]||L.cssHooks[h],void 0===n)return c&&"get"in c&&void 0!==(o=c.get(t,!1,r))?o:style[e];"string"===(l=typeof n)&&(o=ft.exec(n))&&o[1]&&(n=xt(t,e,o),l="number"),null!=n&&n==n&&("number"!==l||d||(n+=o&&o[3]||(L.cssNumber[h]?"":"px")),S.clearCloneStyle||""!==n||0!==e.indexOf("background")||(style[e]="inherit"),c&&"set"in c&&void 0===(n=c.set(t,n,r))||(d?style.setProperty(e,n):style[e]=n))}},css:function(t,e,n,r){var o,l,c,h=nt(e);return ae.test(e)||(e=re(h)),(c=L.cssHooks[e]||L.cssHooks[h])&&"get"in c&&(o=c.get(t,!0,n)),void 0===o&&(o=Qt(t,e,r)),"normal"===o&&e in le&&(o=le[e]),""===n||n?(l=parseFloat(o),!0===n||isFinite(l)?l||0:o):o}}),L.each(["height","width"],(function(t,e){L.cssHooks[e]={get:function(t,n,r){if(n)return!oe.test(L.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?he(t,e,r):Kt(t,se,(function(){return he(t,e,r)}))},set:function(t,n,r){var o,l=$t(t),c=!S.scrollboxSize()&&"absolute"===l.position,h=(c||r)&&"border-box"===L.css(t,"boxSizing",!1,l),d=r?ce(t,e,r,h,l):0;return h&&c&&(d-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(l[e])-ce(t,e,"border",!1,l)-.5)),d&&(o=ft.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=L.css(t,e)),ue(0,n,d)}}})),L.cssHooks.marginLeft=te(S.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),L.each({margin:"",padding:"",border:"Width"},(function(t,e){L.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+pt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(L.cssHooks[t+e].set=ue)})),L.fn.extend({css:function(t,e){return J(this,(function(t,e,n){var r,o,map={},i=0;if(Array.isArray(e)){for(r=$t(t),o=e.length;i<o;i++)map[e[i]]=L.css(t,e[i],!1,r);return map}return void 0!==n?L.style(t,e,n):L.css(t,e)}),t,e,arguments.length>1)}}),L.Tween=de,de.prototype={constructor:de,init:function(t,e,n,r,o,l){this.elem=t,this.prop=n,this.easing=o||L.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=l||(L.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=L.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=L.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){L.fx.step[t.prop]?L.fx.step[t.prop](t):1!==t.elem.nodeType||!L.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:L.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},L.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},_default:"swing"},L.fx=de.prototype.init,L.fx.step={};var fe,pe,ge=/^(?:toggle|show|hide)$/,ve=/queueHooks$/;function me(){pe&&(!1===A.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(me):n.setTimeout(me,L.fx.interval),L.fx.tick())}function ye(){return n.setTimeout((function(){fe=void 0})),fe=Date.now()}function xe(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=pt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function _e(t,e,n){for(var r,o=(be.tweeners[e]||[]).concat(be.tweeners["*"]),l=0,c=o.length;l<c;l++)if(r=o[l].call(n,e,t))return r}function be(t,e,n){var r,o,l=0,c=be.prefilters.length,h=L.Deferred().always((function(){delete d.elem})),d=function(){if(o)return!1;for(var e=fe||ye(),n=Math.max(0,f.startTime+f.duration-e),r=1-(n/f.duration||0),l=0,c=f.tweens.length;l<c;l++)f.tweens[l].run(r);return h.notifyWith(t,[f,r,n]),r<1&&c?n:(c||h.notifyWith(t,[f,1,0]),h.resolveWith(t,[f]),!1)},f=h.promise({elem:t,props:L.extend({},e),opts:L.extend(!0,{specialEasing:{},easing:L.easing._default},n),originalProperties:e,originalOptions:n,startTime:fe||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=L.Tween(t,f.opts,e,n,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(r),r},stop:function(e){var n=0,r=e?f.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)f.tweens[n].run(1);return e?(h.notifyWith(t,[f,1,0]),h.resolveWith(t,[f,e])):h.rejectWith(t,[f,e]),this}}),v=f.props;for(!function(t,e){var n,r,o,l,c;for(n in t)if(o=e[r=nt(n)],l=t[n],Array.isArray(l)&&(o=l[1],l=t[n]=l[0]),n!==r&&(t[r]=l,delete t[n]),(c=L.cssHooks[r])&&"expand"in c)for(n in l=c.expand(l),delete t[r],l)n in t||(t[n]=l[n],e[n]=o);else e[r]=o}(v,f.opts.specialEasing);l<c;l++)if(r=be.prefilters[l].call(f,t,v,f.opts))return M(r.stop)&&(L._queueHooks(f.elem,f.opts.queue).stop=r.stop.bind(r)),r;return L.map(v,_e,f),M(f.opts.start)&&f.opts.start.call(t,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),L.fx.timer(L.extend(d,{elem:t,anim:f,queue:f.opts.queue})),f}L.Animation=L.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return xt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){M(t)?(e=t,t=["*"]):t=t.match(j);for(var n,r=0,o=t.length;r<o;r++)n=t[r],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,o,l,c,h,d,f,v,m="width"in e||"height"in e,y=this,x={},style=t.style,_=t.nodeType&&yt(t),w=at.get(t,"fxshow");for(r in n.queue||(null==(c=L._queueHooks(t,"fx")).unqueued&&(c.unqueued=0,h=c.empty.fire,c.empty.fire=function(){c.unqueued||h()}),c.unqueued++,y.always((function(){y.always((function(){c.unqueued--,L.queue(t,"fx").length||c.empty.fire()}))}))),e)if(o=e[r],ge.test(o)){if(delete e[r],l=l||"toggle"===o,o===(_?"hide":"show")){if("show"!==o||!w||void 0===w[r])continue;_=!0}x[r]=w&&w[r]||L.style(t,r)}if((d=!L.isEmptyObject(e))||!L.isEmptyObject(x))for(r in m&&1===t.nodeType&&(n.overflow=[style.overflow,style.overflowX,style.overflowY],null==(f=w&&w.display)&&(f=at.get(t,"display")),"none"===(v=L.css(t,"display"))&&(f?v=f:(wt([t],!0),f=t.style.display||f,v=L.css(t,"display"),wt([t]))),("inline"===v||"inline-block"===v&&null!=f)&&"none"===L.css(t,"float")&&(d||(y.done((function(){style.display=f})),null==f&&(v=style.display,f="none"===v?"":v)),style.display="inline-block")),n.overflow&&(style.overflow="hidden",y.always((function(){style.overflow=n.overflow[0],style.overflowX=n.overflow[1],style.overflowY=n.overflow[2]}))),d=!1,x)d||(w?"hidden"in w&&(_=w.hidden):w=at.access(t,"fxshow",{display:f}),l&&(w.hidden=!_),_&&wt([t],!0),y.done((function(){for(r in _||wt([t]),at.remove(t,"fxshow"),x)L.style(t,r,x[r])}))),d=_e(_?w[r]:0,r,y),r in w||(w[r]=d.start,_&&(d.end=d.start,d.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),L.speed=function(t,e,n){var r=t&&"object"==typeof t?L.extend({},t):{complete:n||!n&&e||M(t)&&t,duration:t,easing:n&&e||e&&!M(e)&&e};return L.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in L.fx.speeds?r.duration=L.fx.speeds[r.duration]:r.duration=L.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){M(r.old)&&r.old.call(this),r.queue&&L.dequeue(this,r.queue)},r},L.fn.extend({fadeTo:function(t,e,n,r){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var o=L.isEmptyObject(t),l=L.speed(e,n,r),c=function(){var e=be(this,L.extend({},t),l);(o||at.get(this,"finish"))&&e.stop(!0)};return c.finish=c,o||!1===l.queue?this.each(c):this.queue(l.queue,c)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",l=L.timers,data=at.get(this);if(o)data[o]&&data[o].stop&&r(data[o]);else for(o in data)data[o]&&data[o].stop&&ve.test(o)&&r(data[o]);for(o=l.length;o--;)l[o].elem!==this||null!=t&&l[o].queue!==t||(l[o].anim.stop(n),e=!1,l.splice(o,1));!e&&n||L.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,data=at.get(this),n=data[t+"queue"],r=data[t+"queueHooks"],o=L.timers,l=n?n.length:0;for(data.finish=!0,L.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<l;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete data.finish}))}}),L.each(["toggle","show","hide"],(function(t,e){var n=L.fn[e];L.fn[e]=function(t,r,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(xe(e,!0),t,r,o)}})),L.each({slideDown:xe("show"),slideUp:xe("hide"),slideToggle:xe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){L.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),L.timers=[],L.fx.tick=function(){var t,i=0,e=L.timers;for(fe=Date.now();i<e.length;i++)(t=e[i])()||e[i]!==t||e.splice(i--,1);e.length||L.fx.stop(),fe=void 0},L.fx.timer=function(t){L.timers.push(t),L.fx.start()},L.fx.interval=13,L.fx.start=function(){pe||(pe=!0,me())},L.fx.stop=function(){pe=null},L.fx.speeds={slow:600,fast:200,_default:400},L.fn.delay=function(time,t){return time=L.fx&&L.fx.speeds[time]||time,t=t||"fx",this.queue(t,(function(t,e){var r=n.setTimeout(t,time);e.stop=function(){n.clearTimeout(r)}}))},function(){var input=A.createElement("input"),t=A.createElement("select").appendChild(A.createElement("option"));input.type="checkbox",S.checkOn=""!==input.value,S.optSelected=t.selected,(input=A.createElement("input")).value="t",input.type="radio",S.radioValue="t"===input.value}();var we,Se=L.expr.attrHandle;L.fn.extend({attr:function(t,e){return J(this,L.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){L.removeAttr(this,t)}))}}),L.extend({attr:function(t,e,n){var r,o,l=t.nodeType;if(3!==l&&8!==l&&2!==l)return void 0===t.getAttribute?L.prop(t,e,n):(1===l&&L.isXMLDoc(t)||(o=L.attrHooks[e.toLowerCase()]||(L.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void L.removeAttr(t,e):o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(r=o.get(t,e))?r:null==(r=L.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!S.radioValue&&"radio"===e&&R(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(j);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?L.removeAttr(t,n):t.setAttribute(n,n),n}},L.each(L.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Se[e]||L.find.attr;Se[e]=function(t,e,r){var o,l,c=e.toLowerCase();return r||(l=Se[c],Se[c]=o,o=null!=n(t,e,r)?c:null,Se[c]=l),o}}));var Me=/^(?:input|select|textarea|button)$/i,Te=/^(?:a|area)$/i;function Ae(t){return(t.match(j)||[]).join(" ")}function Ie(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(j)||[]}L.fn.extend({prop:function(t,e){return J(this,L.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[L.propFix[t]||t]}))}}),L.extend({prop:function(t,e,n){var r,o,l=t.nodeType;if(3!==l&&8!==l&&2!==l)return 1===l&&L.isXMLDoc(t)||(e=L.propFix[e]||e,o=L.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:t[e]=n:o&&"get"in o&&null!==(r=o.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=L.find.attr(t,"tabindex");return e?parseInt(e,10):Me.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),S.optSelected||(L.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),L.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){L.propFix[this.toLowerCase()]=this})),L.fn.extend({addClass:function(t){var e,n,r,o,l,c,h,i=0;if(M(t))return this.each((function(e){L(this).addClass(t.call(this,e,Ie(this)))}));if((e=Ce(t)).length)for(;n=this[i++];)if(o=Ie(n),r=1===n.nodeType&&" "+Ae(o)+" "){for(c=0;l=e[c++];)r.indexOf(" "+l+" ")<0&&(r+=l+" ");o!==(h=Ae(r))&&n.setAttribute("class",h)}return this},removeClass:function(t){var e,n,r,o,l,c,h,i=0;if(M(t))return this.each((function(e){L(this).removeClass(t.call(this,e,Ie(this)))}));if(!arguments.length)return this.attr("class","");if((e=Ce(t)).length)for(;n=this[i++];)if(o=Ie(n),r=1===n.nodeType&&" "+Ae(o)+" "){for(c=0;l=e[c++];)for(;r.indexOf(" "+l+" ")>-1;)r=r.replace(" "+l+" "," ");o!==(h=Ae(r))&&n.setAttribute("class",h)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):M(t)?this.each((function(i){L(this).toggleClass(t.call(this,i,Ie(this),e),e)})):this.each((function(){var e,i,o,l;if(r)for(i=0,o=L(this),l=Ce(t);e=l[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=Ie(this))&&at.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ae(Ie(n))+" ").indexOf(e)>-1)return!0;return!1}});var De=/\r/g;L.fn.extend({val:function(t){var e,n,r,o=this[0];return arguments.length?(r=M(t),this.each((function(i){var n;1===this.nodeType&&(null==(n=r?t.call(this,i,L(this).val()):t)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=L.map(n,(function(t){return null==t?"":t+""}))),(e=L.valHooks[this.type]||L.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,n,"value")||(this.value=n))}))):o?(e=L.valHooks[o.type]||L.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(De,""):null==n?"":n:void 0}}),L.extend({valHooks:{option:{get:function(t){var e=L.find.attr(t,"value");return null!=e?e:Ae(L.text(t))}},select:{get:function(t){var e,option,i,n=t.options,r=t.selectedIndex,o="select-one"===t.type,l=o?null:[],c=o?r+1:n.length;for(i=r<0?c:o?r:0;i<c;i++)if(((option=n[i]).selected||i===r)&&!option.disabled&&(!option.parentNode.disabled||!R(option.parentNode,"optgroup"))){if(e=L(option).val(),o)return e;l.push(e)}return l},set:function(t,e){for(var n,option,r=t.options,o=L.makeArray(e),i=r.length;i--;)((option=r[i]).selected=L.inArray(L.valHooks.option.get(option),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),L.each(["radio","checkbox"],(function(){L.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=L.inArray(L(t).val(),e)>-1}},S.checkOn||(L.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),S.focusin="onfocusin"in n;var Le=/^(?:focusinfocus|focusoutblur)$/,ke=function(t){t.stopPropagation()};L.extend(L.event,{trigger:function(t,data,e,r){var i,o,l,c,h,d,f,v,m=[e||A],y=x.call(t,"type")?t.type:t,_=x.call(t,"namespace")?t.namespace.split("."):[];if(o=v=l=e=e||A,3!==e.nodeType&&8!==e.nodeType&&!Le.test(y+L.event.triggered)&&(y.indexOf(".")>-1&&(_=y.split("."),y=_.shift(),_.sort()),h=y.indexOf(":")<0&&"on"+y,(t=t[L.expando]?t:new L.Event(y,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=_.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=e),data=null==data?[t]:L.makeArray(data,[t]),f=L.event.special[y]||{},r||!f.trigger||!1!==f.trigger.apply(e,data))){if(!r&&!f.noBubble&&!T(e)){for(c=f.delegateType||y,Le.test(c+y)||(o=o.parentNode);o;o=o.parentNode)m.push(o),l=o;l===(e.ownerDocument||A)&&m.push(l.defaultView||l.parentWindow||n)}for(i=0;(o=m[i++])&&!t.isPropagationStopped();)v=o,t.type=i>1?c:f.bindType||y,(d=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&d.apply(o,data),(d=h&&o[h])&&d.apply&&it(o)&&(t.result=d.apply(o,data),!1===t.result&&t.preventDefault());return t.type=y,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(m.pop(),data)||!it(e)||h&&M(e[y])&&!T(e)&&((l=e[h])&&(e[h]=null),L.event.triggered=y,t.isPropagationStopped()&&v.addEventListener(y,ke),e[y](),t.isPropagationStopped()&&v.removeEventListener(y,ke),L.event.triggered=void 0,l&&(e[h]=l)),t.result}},simulate:function(t,e,n){var r=L.extend(new L.Event,n,{type:t,isSimulated:!0});L.event.trigger(r,null,e)}}),L.fn.extend({trigger:function(t,data){return this.each((function(){L.event.trigger(t,data,this)}))},triggerHandler:function(t,data){var e=this[0];if(e)return L.event.trigger(t,data,e,!0)}}),S.focusin||L.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){L.event.simulate(e,t.target,L.event.fix(t))};L.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,o=at.access(r,e);o||r.addEventListener(t,n,!0),at.access(r,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=at.access(r,e)-1;o?at.access(r,e,o):(r.removeEventListener(t,n,!0),at.remove(r,e))}}}));var Pe=n.location,Oe={guid:Date.now()},Ee=/\?/;L.parseXML=function(data){var t;if(!data||"string"!=typeof data)return null;try{t=(new n.DOMParser).parseFromString(data,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||L.error("Invalid XML: "+data),t};var Ne=/\[\]$/,Re=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Be=/^(?:input|select|textarea|keygen)/i;function Ve(t,e,n,r){var o;if(Array.isArray(e))L.each(e,(function(i,e){n||Ne.test(t)?r(t,e):Ve(t+"["+("object"==typeof e&&null!=e?i:"")+"]",e,n,r)}));else if(n||"object"!==D(e))r(t,e);else for(o in e)Ve(t+"["+o+"]",e[o],n,r)}L.param=function(a,t){var e,s=[],n=function(t,e){var n=M(e)?e():e;s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==a)return"";if(Array.isArray(a)||a.jquery&&!L.isPlainObject(a))L.each(a,(function(){n(this.name,this.value)}));else for(e in a)Ve(e,a[e],t,n);return s.join("&")},L.fn.extend({serialize:function(){return L.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=L.prop(this,"elements");return t?L.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!L(this).is(":disabled")&&Be.test(this.nodeName)&&!ze.test(t)&&(this.checked||!St.test(t))})).map((function(t,e){var n=L(this).val();return null==n?null:Array.isArray(n)?L.map(n,(function(t){return{name:e.name,value:t.replace(Re,"\r\n")}})):{name:e.name,value:n.replace(Re,"\r\n")}})).get()}});var He=/%20/g,Fe=/#.*$/,Ge=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,Ue=/^\/\//,qe={},Ze={},Ye="*/".concat("*"),Xe=A.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(j)||[];if(M(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ke(t,e,n,r){var o={},l=t===Ze;function c(h){var d;return o[h]=!0,L.each(t[h]||[],(function(t,h){var f=h(e,n,r);return"string"!=typeof f||l||o[f]?l?!(d=f):void 0:(e.dataTypes.unshift(f),c(f),!1)})),d}return c(e.dataTypes[0])||!o["*"]&&c("*")}function Je(t,e){var n,r,o=L.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:r||(r={}))[n]=e[n]);return r&&L.extend(!0,t,r),t}Xe.href=Pe.href,L.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":L.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,L.ajaxSettings),e):Je(L.ajaxSettings,t)},ajaxPrefilter:$e(qe),ajaxTransport:$e(Ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,o,l,c,h,d,f,v,i,m,s=L.ajaxSetup({},e),y=s.context||s,x=s.context&&(y.nodeType||y.jquery)?L(y):L.event,_=L.Deferred(),w=L.Callbacks("once memory"),S=s.statusCode||{},M={},T={},I="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(f){if(!c)for(c={};e=We.exec(l);)c[e[1].toLowerCase()+" "]=(c[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=c[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return f?l:null},setRequestHeader:function(t,e){return null==f&&(t=T[t.toLowerCase()]=T[t.toLowerCase()]||t,M[t]=e),this},overrideMimeType:function(t){return null==f&&(s.mimeType=t),this},statusCode:function(map){var code;if(map)if(f)C.always(map[C.status]);else for(code in map)S[code]=[S[code],map[code]];return this},abort:function(t){var e=t||I;return r&&r.abort(e),D(0,e),this}};if(_.promise(C),s.url=((t||s.url||Pe.href)+"").replace(Ue,Pe.protocol+"//"),s.type=e.method||e.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(j)||[""],null==s.crossDomain){d=A.createElement("a");try{d.href=s.url,d.href=d.href,s.crossDomain=Xe.protocol+"//"+Xe.host!=d.protocol+"//"+d.host}catch(t){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=L.param(s.data,s.traditional)),Ke(qe,s,e,C),f)return C;for(i in(v=L.event&&s.global)&&0==L.active++&&L.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!je.test(s.type),o=s.url.replace(Fe,""),s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(He,"+")):(m=s.url.slice(o.length),s.data&&(s.processData||"string"==typeof s.data)&&(o+=(Ee.test(o)?"&":"?")+s.data,delete s.data),!1===s.cache&&(o=o.replace(Ge,"$1"),m=(Ee.test(o)?"&":"?")+"_="+Oe.guid+++m),s.url=o+m),s.ifModified&&(L.lastModified[o]&&C.setRequestHeader("If-Modified-Since",L.lastModified[o]),L.etag[o]&&C.setRequestHeader("If-None-Match",L.etag[o])),(s.data&&s.hasContent&&!1!==s.contentType||e.contentType)&&C.setRequestHeader("Content-Type",s.contentType),C.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+Ye+"; q=0.01":""):s.accepts["*"]),s.headers)C.setRequestHeader(i,s.headers[i]);if(s.beforeSend&&(!1===s.beforeSend.call(y,C,s)||f))return C.abort();if(I="abort",w.add(s.complete),C.done(s.success),C.fail(s.error),r=Ke(Ze,s,e,C)){if(C.readyState=1,v&&x.trigger("ajaxSend",[C,s]),f)return C;s.async&&s.timeout>0&&(h=n.setTimeout((function(){C.abort("timeout")}),s.timeout));try{f=!1,r.send(M,D)}catch(t){if(f)throw t;D(-1,t)}}else D(-1,"No Transport");function D(t,e,c,d){var m,M,T,A,I,D=e;f||(f=!0,h&&n.clearTimeout(h),r=void 0,l=d||"",C.readyState=t>0?4:0,m=t>=200&&t<300||304===t,c&&(A=function(s,t,e){for(var n,r,o,l,c=s.contents,h=s.dataTypes;"*"===h[0];)h.shift(),void 0===n&&(n=s.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in c)if(c[r]&&c[r].test(n)){h.unshift(r);break}if(h[0]in e)o=h[0];else{for(r in e){if(!h[0]||s.converters[r+" "+h[0]]){o=r;break}l||(l=r)}o=o||l}if(o)return o!==h[0]&&h.unshift(o),e[o]}(s,C,c)),!m&&L.inArray("script",s.dataTypes)>-1&&(s.converters["text script"]=function(){}),A=function(s,t,e,n){var r,o,l,c,h,d={},f=s.dataTypes.slice();if(f[1])for(l in s.converters)d[l.toLowerCase()]=s.converters[l];for(o=f.shift();o;)if(s.responseFields[o]&&(e[s.responseFields[o]]=t),!h&&n&&s.dataFilter&&(t=s.dataFilter(t,s.dataType)),h=o,o=f.shift())if("*"===o)o=h;else if("*"!==h&&h!==o){if(!(l=d[h+" "+o]||d["* "+o]))for(r in d)if((c=r.split(" "))[1]===o&&(l=d[h+" "+c[0]]||d["* "+c[0]])){!0===l?l=d[r]:!0!==d[r]&&(o=c[0],f.unshift(c[1]));break}if(!0!==l)if(l&&s.throws)t=l(t);else try{t=l(t)}catch(t){return{state:"parsererror",error:l?t:"No conversion from "+h+" to "+o}}}return{state:"success",data:t}}(s,A,C,m),m?(s.ifModified&&((I=C.getResponseHeader("Last-Modified"))&&(L.lastModified[o]=I),(I=C.getResponseHeader("etag"))&&(L.etag[o]=I)),204===t||"HEAD"===s.type?D="nocontent":304===t?D="notmodified":(D=A.state,M=A.data,m=!(T=A.error))):(T=D,!t&&D||(D="error",t<0&&(t=0))),C.status=t,C.statusText=(e||D)+"",m?_.resolveWith(y,[M,D,C]):_.rejectWith(y,[C,D,T]),C.statusCode(S),S=void 0,v&&x.trigger(m?"ajaxSuccess":"ajaxError",[C,s,m?M:T]),w.fireWith(y,[C,D]),v&&(x.trigger("ajaxComplete",[C,s]),--L.active||L.event.trigger("ajaxStop")))}return C},getJSON:function(t,data,e){return L.get(t,data,e,"json")},getScript:function(t,e){return L.get(t,void 0,e,"script")}}),L.each(["get","post"],(function(t,e){L[e]=function(t,data,n,r){return M(data)&&(r=r||n,n=data,data=void 0),L.ajax(L.extend({url:t,type:e,dataType:r,data:data,success:n},L.isPlainObject(t)&&t))}})),L.ajaxPrefilter((function(s){var i;for(i in s.headers)"content-type"===i.toLowerCase()&&(s.contentType=s.headers[i]||"")})),L._evalUrl=function(t,e,n){return L.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){L.globalEval(t,e,n)}})},L.fn.extend({wrapAll:function(html){var t;return this[0]&&(M(html)&&(html=html.call(this[0])),t=L(html,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(html){return M(html)?this.each((function(i){L(this).wrapInner(html.call(this,i))})):this.each((function(){var t=L(this),e=t.contents();e.length?e.wrapAll(html):t.append(html)}))},wrap:function(html){var t=M(html);return this.each((function(i){L(this).wrapAll(t?html.call(this,i):html)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){L(this).replaceWith(this.childNodes)})),this}}),L.expr.pseudos.hidden=function(t){return!L.expr.pseudos.visible(t)},L.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},L.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Qe={0:200,1223:204},tn=L.ajaxSettings.xhr();S.cors=!!tn&&"withCredentials"in tn,S.ajax=tn=!!tn,L.ajaxTransport((function(t){var e,r;if(S.cors||tn&&!t.crossDomain)return{send:function(o,l){var i,c=t.xhr();if(c.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)c[i]=t.xhrFields[i];for(i in t.mimeType&&c.overrideMimeType&&c.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)c.setRequestHeader(i,o[i]);e=function(t){return function(){e&&(e=r=c.onload=c.onerror=c.onabort=c.ontimeout=c.onreadystatechange=null,"abort"===t?c.abort():"error"===t?"number"!=typeof c.status?l(0,"error"):l(c.status,c.statusText):l(Qe[c.status]||c.status,c.statusText,"text"!==(c.responseType||"text")||"string"!=typeof c.responseText?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=e(),r=c.onerror=c.ontimeout=e("error"),void 0!==c.onabort?c.onabort=r:c.onreadystatechange=function(){4===c.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{c.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),L.ajaxPrefilter((function(s){s.crossDomain&&(s.contents.script=!1)})),L.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){return L.globalEval(text),text}}}),L.ajaxPrefilter("script",(function(s){void 0===s.cache&&(s.cache=!1),s.crossDomain&&(s.type="GET")})),L.ajaxTransport("script",(function(s){var script,t;if(s.crossDomain||s.scriptAttrs)return{send:function(e,n){script=L("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",t=function(e){script.remove(),t=null,e&&n("error"===e.type?404:200,e.type)}),A.head.appendChild(script[0])},abort:function(){t&&t()}}}));var body,en=[],nn=/(=)\?(?=&|$)|\?\?/;L.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||L.expando+"_"+Oe.guid++;return this[t]=!0,t}}),L.ajaxPrefilter("json jsonp",(function(s,t,e){var r,o,l,c=!1!==s.jsonp&&(nn.test(s.url)?"url":"string"==typeof s.data&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(s.data)&&"data");if(c||"jsonp"===s.dataTypes[0])return r=s.jsonpCallback=M(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,c?s[c]=s[c].replace(nn,"$1"+r):!1!==s.jsonp&&(s.url+=(Ee.test(s.url)?"&":"?")+s.jsonp+"="+r),s.converters["script json"]=function(){return l||L.error(r+" was not called"),l[0]},s.dataTypes[0]="json",o=n[r],n[r]=function(){l=arguments},e.always((function(){void 0===o?L(n).removeProp(r):n[r]=o,s[r]&&(s.jsonpCallback=t.jsonpCallback,en.push(r)),l&&M(o)&&o(l[0]),l=o=void 0})),"script"})),S.createHTMLDocument=((body=A.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===body.childNodes.length),L.parseHTML=function(data,t,e){return"string"!=typeof data?[]:("boolean"==typeof t&&(e=t,t=!1),t||(S.createHTMLDocument?((base=(t=A.implementation.createHTMLDocument("")).createElement("base")).href=A.location.href,t.head.appendChild(base)):t=A),r=!e&&[],(n=z.exec(data))?[t.createElement(n[1])]:(n=Lt([data],t,r),r&&r.length&&L(r).remove(),L.merge([],n.childNodes)));var base,n,r},L.fn.load=function(t,e,n){var r,o,l,c=this,h=t.indexOf(" ");return h>-1&&(r=Ae(t.slice(h)),t=t.slice(0,h)),M(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),c.length>0&&L.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){l=arguments,c.html(r?L("<div>").append(L.parseHTML(t)).find(r):t)})).always(n&&function(t,e){c.each((function(){n.apply(this,l||[t.responseText,e,t])}))}),this},L.expr.pseudos.animated=function(t){return L.grep(L.timers,(function(e){return t===e.elem})).length},L.offset={setOffset:function(t,e,i){var n,r,o,l,c,h,d=L.css(t,"position"),f=L(t),v={};"static"===d&&(t.style.position="relative"),c=f.offset(),o=L.css(t,"top"),h=L.css(t,"left"),("absolute"===d||"fixed"===d)&&(o+h).indexOf("auto")>-1?(l=(n=f.position()).top,r=n.left):(l=parseFloat(o)||0,r=parseFloat(h)||0),M(e)&&(e=e.call(t,i,L.extend({},c))),null!=e.top&&(v.top=e.top-c.top+l),null!=e.left&&(v.left=e.left-c.left+r),"using"in e?e.using.call(t,v):("number"==typeof v.top&&(v.top+="px"),"number"==typeof v.left&&(v.left+="px"),f.css(v))}},L.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(i){L.offset.setOffset(this,t,i)}));var rect,e,n=this[0];return n?n.getClientRects().length?(rect=n.getBoundingClientRect(),e=n.ownerDocument.defaultView,{top:rect.top+e.pageYOffset,left:rect.left+e.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],o={top:0,left:0};if("fixed"===L.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===L.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((o=L(t).offset()).top+=L.css(t,"borderTopWidth",!0),o.left+=L.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-L.css(r,"marginTop",!0),left:e.left-o.left-L.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===L.css(t,"position");)t=t.offsetParent;return t||gt}))}}),L.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;L.fn[t]=function(r){return J(this,(function(t,r,o){var l;if(T(t)?l=t:9===t.nodeType&&(l=t.defaultView),void 0===o)return l?l[e]:t[r];l?l.scrollTo(n?l.pageXOffset:o,n?o:l.pageYOffset):t[r]=o}),t,r,arguments.length)}})),L.each(["top","left"],(function(t,e){L.cssHooks[e]=te(S.pixelPosition,(function(t,n){if(n)return n=Qt(t,e),Xt.test(n)?L(t).position()[e]+"px":n}))})),L.each({Height:"height",Width:"width"},(function(t,e){L.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){L.fn[r]=function(o,l){var c=arguments.length&&(n||"boolean"!=typeof o),h=n||(!0===o||!0===l?"margin":"border");return J(this,(function(e,n,o){var l;return T(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(l=e.documentElement,Math.max(e.body["scroll"+t],l["scroll"+t],e.body["offset"+t],l["offset"+t],l["client"+t])):void 0===o?L.css(e,n,h):L.style(e,n,o,h)}),e,c?o:void 0,c)}}))})),L.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){L.fn[e]=function(t){return this.on(e,t)}})),L.fn.extend({bind:function(t,data,e){return this.on(t,null,data,e)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,data,n){return this.on(e,t,data,n)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),L.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){L.fn[e]=function(data,t){return arguments.length>0?this.on(e,null,data,t):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;L.proxy=function(t,e){var n,r,o;if("string"==typeof e&&(n=t[e],e=t,t=n),M(t))return r=h.call(arguments,2),(o=function(){return t.apply(e||this,r.concat(h.call(arguments)))}).guid=t.guid=t.guid||L.guid++,o},L.holdReady=function(t){t?L.readyWait++:L.ready(!0)},L.isArray=Array.isArray,L.parseJSON=JSON.parse,L.nodeName=R,L.isFunction=M,L.isWindow=T,L.camelCase=nt,L.type=D,L.now=Date.now,L.isNumeric=function(t){var e=L.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},L.trim=function(text){return null==text?"":(text+"").replace(rn,"")},void 0===(r=function(){return L}.apply(e,[]))||(t.exports=r);var on=n.jQuery,an=n.$;return L.noConflict=function(t){return n.$===L&&(n.$=an),t&&n.jQuery===L&&(n.jQuery=on),L},void 0===o&&(n.jQuery=n.$=L),L}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(278);t.exports=function(){return r.Date.now()}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(51))},function(t,e,n){var r=n(280),o=n(487);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(281),o=Object.prototype,l=o.hasOwnProperty,c=o.toString,h=r?r.toStringTag:void 0;t.exports=function(t){var e=l.call(t,h),n=t[h];try{t[h]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[h]=n:delete t[h]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(277),o=n(118);t.exports=function(t,e,n){var l=!0,c=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(l="leading"in n?!!n.leading:l,c="trailing"in n?!!n.trailing:c),r(t,e,{leading:l,maxWait:e,trailing:c})}},function(t,e,n){var r=n(490),o=n(491),l=n(497),c=parseFloat,h=Math.min,d=Math.random;t.exports=function(t,e,n){if(n&&"boolean"!=typeof n&&o(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=l(t),void 0===e?(e=t,t=0):e=l(e)),t>e){var f=t;t=e,e=f}if(n||t%1||e%1){var v=d();return h(t+v*(e-t+c("1e-"+((v+"").length-1))),e)}return r(t,e)}},function(t,e){var n=Math.floor,r=Math.random;t.exports=function(t,e){return t+n(r()*(e-t+1))}},function(t,e,n){var r=n(492),o=n(493),l=n(496),c=n(118);t.exports=function(t,e,object){if(!c(object))return!1;var n=typeof e;return!!("number"==n?o(object)&&l(e,object.length):"string"==n&&e in object)&&r(object[e],t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(494),o=n(495);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(280),o=n(118);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(279);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(0),o=n(11),l=n(693),c=n(75),h=n(46),d=n(695);function f(){h.stop(this.event)}function v(){}v.prototype.dispose=function(){};var m=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],y=function(t,e,n,r){c.call(this),this.storage=t,this.painter=e,this.painterRoot=r,n=n||new v,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,l.call(this),this.setHandlerProxy(n)};function x(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r,o=t;o;){if(o.clipPath&&!o.clipPath.contain(e,n))return!1;o.silent&&(r=!0),o=o.parent}return!r||"silent"}return!1}function _(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}y.prototype={constructor:y,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(m,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,r=_(this,e,n),o=this._hovered,l=o.target;l&&!l.__zr&&(l=(o=this.findHover(o.x,o.y)).target);var c=this._hovered=r?{x:e,y:n}:this.findHover(e,n),h=c.target,d=this.proxy;d.setCursor&&d.setCursor(h?h.cursor:"default"),l&&h!==l&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(c,"mousemove",t),h&&h!==l&&this.dispatchToElement(c,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var o="on"+e,l=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:f}}(e,t,n);r&&(r[o]&&(l.cancelBubble=r[o].call(r,l)),r.trigger(e,l),r=r.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(e,l),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[o]&&t[o].call(t,l),t.trigger&&t.trigger(e,l)})))}},findHover:function(t,e,n){for(var r=this.storage.getDisplayList(),o={x:t,y:e},i=r.length-1;i>=0;i--){var l;if(r[i]!==n&&!r[i].ignore&&(l=x(r[i],t,e))&&(!o.topTarget&&(o.topTarget=r[i]),"silent"!==l)){o.target=r[i];break}}return o},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new d);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var o=r.type;t.gestureEvent=o,this.dispatchToElement({target:r.target},o,r.event)}}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){y.prototype[t]=function(e){var n,r,l=e.zrX,c=e.zrY,h=_(this,l,c);if("mouseup"===t&&h||(r=(n=this.findHover(l,c)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||o.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),r.mixin(y,c),r.mixin(y,l);var w=y;t.exports=w},function(t,e){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function param(t,e){return{target:t,topTarget:e&&e.topTarget}}n.prototype={constructor:n,_dragStart:function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(param(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,o=n-this._x,l=r-this._y;this._x=n,this._y=r,e.drift(o,l,t),this.dispatchToElement(param(e,t),"drag",t.event);var c=this.findHover(n,r,e).target,h=this._dropTarget;this._dropTarget=c,e!==c&&(h&&c!==h&&this.dispatchToElement(param(h,t),"dragleave",t.event),c&&c!==h&&this.dispatchToElement(param(c,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(param(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(param(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var r=n;t.exports=r},function(t,e){var n=Math.log(2);function r(t,e,o,l,c,h){var d=l+"-"+c,f=t.length;if(h.hasOwnProperty(d))return h[d];if(1===e){var v=Math.round(Math.log((1<<f)-1&~c)/n);return t[o][v]}for(var m=l|1<<o,y=o+1;l&1<<y;)y++;for(var x=0,_=0,w=0;_<f;_++){var S=1<<_;S&c||(x+=(w%2?-1:1)*t[o][_]*r(t,e-1,y,m,c|S,h),w++)}return h[d]=x,x}e.buildTransformer=function(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],o={},l=r(n,8,0,0,0,o);if(0!==l){for(var c=[],i=0;i<8;i++)for(var h=0;h<8;h++)null==c[h]&&(c[h]=0),c[h]+=((i+h)%2?-1:1)*r(n,7,0===i?1:0,1<<i,1<<h,o)/l*e[i];return function(t,e,n){var r=e*c[6]+n*c[7]+1;t[0]=(e*c[0]+n*c[1]+c[2])/r,t[1]=(e*c[3]+n*c[4]+c[5])/r}}}},function(t,e,n){var r=n(46),o=function(){this._track=[]};function l(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}o.prototype={constructor:o,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var o=t.touches;if(o){for(var l={points:[],touches:[],target:e,event:t},i=0,c=o.length;i<c;i++){var h=o[i],d=r.clientToLocal(n,h,{});l.points.push([d.zrX,d.zrY]),l.touches.push(h)}this._track.push(l)}},_recognize:function(t){for(var e in c)if(c.hasOwnProperty(e)){var n=c[e](this._track,t);if(n)return n}}};var c={pinch:function(track,t){var e=track.length;if(e){var n,r=(track[e-1]||{}).points,o=(track[e-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var c=l(r)/l(o);!isFinite(c)&&(c=1),t.pinchScale=c;var h=[((n=r)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return t.pinchX=h[0],t.pinchY=h[1],{type:"pinch",target:track[0].target,event:t}}}}},h=o;t.exports=h},function(t,e,n){var r=n(0),o=n(18),l=n(76),c=n(205);function h(a,b){return a.zlevel===b.zlevel?a.z===b.z?a.z2-b.z2:a.z-b.z:a.zlevel-b.zlevel}var d=function(){this._roots=[],this._displayList=[],this._displayListLen=0};d.prototype={constructor:d,traverse:function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,o.canvasSupported&&c(n,h)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var r=t.clipPath;if(r){e=e?e.slice():[];for(var o=r,l=t;o;)o.parent=l,o.updateTransform(),e.push(o),l=o,o=o.clipPath}if(t.isGroup){for(var c=t._children,i=0;i<c.length;i++){var h=c[i];t.__dirty&&(h.__dirty=!0),this._updateAndAddDisplayable(h,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof l&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var i=0;i<this._roots.length;i++){var e=this._roots[i];e instanceof l&&e.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array){i=0;for(var n=t.length;i<n;i++)this.delRoot(t[i])}else{var o=r.indexOf(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof l&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:h};var f=d;t.exports=f},function(t,e,n){var r=n(311),o=n(119),l=n(0),c=l.isString,h=l.isFunction,d=l.isObject,f=l.isArrayLike,v=l.indexOf,m=function(){this.animators=[]};function y(t,e,time,n,r,o,l,v){c(n)?(o=r,r=n,n=0):h(r)?(o=r,r="linear",n=0):h(n)?(o=n,n=0):h(time)?(o=time,time=500):time||(time=500),t.stopAnimation(),function t(e,path,source,n,time,r,o){var l={},c=0;for(var h in n)n.hasOwnProperty(h)&&(null!=source[h]?d(n[h])&&!f(n[h])?t(e,path?path+"."+h:h,source[h],n[h],time,r,o):(o?(l[h]=source[h],x(e,path,h,n[h])):l[h]=n[h],c++):null==n[h]||o||x(e,path,h,n[h]));c>0&&e.animate(path,!1).when(null==time?500:time,l).delay(r||0)}(t,"",t,e,time,n,v);var m=t.animators.slice(),y=m.length;function _(){--y||o&&o()}y||o&&o();for(var i=0;i<m.length;i++)m[i].done(_).start(r,l)}function x(t,path,e,n){if(path){var r={};r[path]={},r[path][e]=n,t.attr(r)}else t.attr(e,n)}m.prototype={constructor:m,animate:function(path,t){var e,n=!1,l=this,c=this.__zr;if(path){var h=path.split("."),d=l;n="shape"===h[0];for(var i=0,f=h.length;i<f;i++)d&&(d=d[h[i]]);d&&(e=d)}else e=l;if(e){var m=l.animators,y=new r(e,t);return y.during((function(t){l.dirty(n)})).done((function(){m.splice(v(m,y),1)})),m.push(y),c&&c.animation.addAnimator(y),y}o('Property "'+path+'" is not existed in element '+l.id)},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,time,e,n,r,o){y(this,t,time,e,n,r,o)},animateFrom:function(t,time,e,n,r,o){y(this,t,time,e,n,r,o,!0)}};var _=m;t.exports=_},function(t,e,n){var r=n(699);function o(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}o.prototype={constructor:o,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var o=this.easing,l="string"==typeof o?r[o]:o,c="function"==typeof l?l(n):n;return this.fire("frame",c),1===n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var l=o;t.exports=l},function(t,e){var n={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var s,a=.1;return 0===t?0:1===t?1:(!a||a<1?(a=1,s=.1):s=.4*Math.asin(1/a)/(2*Math.PI),-a*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/.4))},elasticOut:function(t){var s,a=.1;return 0===t?0:1===t?1:(!a||a<1?(a=1,s=.1):s=.4*Math.asin(1/a)/(2*Math.PI),a*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var s,a=.1,p=.4;return 0===t?0:1===t?1:(!a||a<1?(a=1,s=.1):s=p*Math.asin(1/a)/(2*Math.PI),(t*=2)<1?a*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p)*-.5:a*Math.pow(2,-10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/p)*.5+1)},backIn:function(t){var s=1.70158;return t*t*((s+1)*t-s)},backOut:function(t){var s=1.70158;return--t*t*((s+1)*t+s)+1},backInOut:function(t){var s=2.5949095;return(t*=2)<1?t*t*((s+1)*t-s)*.5:.5*((t-=2)*t*((s+1)*t+s)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}},r=n;t.exports=r},function(t,e,n){var r=n(158).devicePixelRatio,o=n(0),l=n(119),c=n(14),h=n(205),d=n(701),f=n(315),v=n(92),m=n(18);function y(t){return parseInt(t,10)}var x=new c(0,0,0,0),_=new c(0,0,0,0);var w=function(t,e,n){this.type="canvas";var l=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=o.extend({},n||{}),this.dpr=n.devicePixelRatio||r,this._singleCanvas=l,this.root=t;var c=t.style;c&&(c["-webkit-tap-highlight-color"]="transparent",c["-webkit-user-select"]=c["user-select"]=c["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var h=this._zlevelList=[],f=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,l){var v=t.width,m=t.height;null!=n.width&&(v=n.width),null!=n.height&&(m=n.height),this.dpr=n.devicePixelRatio||1,t.width=v*this.dpr,t.height=m*this.dpr,this._width=v,this._height=m;var y=new d(t,this,this.dpr);y.__builtin__=!0,y.initContext(),f[314159]=y,y.zlevel=314159,h.push(314159),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var x=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(x)}this._hoverlayer=null,this._hoverElements=[]};w.prototype={constructor:w,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],o=this._layers[r];if(!o.__builtin__&&o.refresh){var l=0===i?this._backgroundColor:null;o.refresh(l)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return n.__from=t,t.__hoverMir=n,e&&n.setStyle(e),this._hoverElements.push(n),n}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,r=o.indexOf(n,e);r>=0&&n.splice(r,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i<e.length;i++){var n=e[i].__from;n&&(n.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){h(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(1e5));var r={};n.ctx.save();for(var i=0;i<e;){var o=t[i],l=o.__from;l&&l.__zr?(i++,l.invisible||(o.transform=l.transform,o.invTransform=l.invTransform,o.__clipPaths=l.__clipPaths,this._doPaintEl(o,n,!0,r))):(t.splice(i,1),l.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!r){var o=this;f((function(){o._paintList(t,e,n)}))}}},_compositeManually:function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},_doPaintList:function(t,e){for(var n=[],r=0;r<this._zlevelList.length;r++){var l=this._zlevelList[r];(d=this._layers[l]).__builtin__&&d!==this._hoverlayer&&(d.__dirty||e)&&n.push(d)}for(var c=!0,h=0;h<n.length;h++){var d,f=(d=n[h]).ctx,v={};f.save();var y=e?d.__startIndex:d.__drawIndex,x=!e&&d.incremental&&Date.now,_=x&&Date.now(),w=d.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(d.__startIndex===d.__endIndex)d.clear(!1,w);else if(y===d.__startIndex){var S=t[y];S.incremental&&S.notClear&&!e||d.clear(!1,w)}-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex);for(var i=y;i<d.__endIndex;i++){var M=t[i];if(this._doPaintEl(M,d,e,v),M.__dirty=M.__dirtyText=!1,x)if(Date.now()-_>15)break}d.__drawIndex=i,d.__drawIndex<d.__endIndex&&(c=!1),v.prevElClipPaths&&f.restore(),f.restore()}return m.wxa&&o.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),c},_doPaintEl:function(t,e,n,r){var o=e.ctx,l=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!l||l[0]||l[3])&&(!t.culling||!function(t,e,n){return x.copy(t.getBoundingRect()),t.transform&&x.applyTransform(t.transform),_.width=e,_.height=n,!x.intersect(_)}(t,this._width,this._height))){var c=t.__clipPaths,h=r.prevElClipPaths;h&&!function(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}(c,h)||(h&&(o.restore(),r.prevElClipPaths=null,r.prevEl=null),c&&(o.save(),function(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}(c,o),r.prevElClipPaths=c)),t.beforeBrush&&t.beforeBrush(o),t.brush(o,r.prevEl||null),r.prevEl=t,t.afterBrush&&t.afterBrush(o)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var n=this._layers[t];return n||((n=new d("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?o.merge(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&o.merge(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,o=r.length,c=null,i=-1,h=this._domRoot;if(n[t])l("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(o>0&&t>r[0]){for(i=0;i<o-1&&!(r[i]<t&&r[i+1]>t);i++);c=n[r[i]]}if(r.splice(i+1,0,t),n[t]=e,!e.virtual)if(c){var d=c.dom;d.nextSibling?h.insertBefore(e.dom,d.nextSibling):h.appendChild(e.dom)}else h.firstChild?h.insertBefore(e.dom,h.firstChild):h.appendChild(e.dom)}else l("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,r,i,o=this._zlevelList;for(i=0;i<o.length;i++)r=o[i],(n=this._layers[r]).__builtin__&&t.call(e,n,r)},eachOtherLayer:function(t,e){var n,r,i,o=this._zlevelList;for(i=0;i<o.length;i++)r=o[i],(n=this._layers[r]).__builtin__||t.call(e,n,r)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){if((c=t[i]).zlevel!==t[i-1].zlevel||c.incremental){this._needsManuallyCompositing=!0;break}}var n,r=null,o=0;for(i=0;i<t.length;i++){var c,h,d=(c=t[i]).zlevel;n!==d&&(n=d,o=0),c.incremental?((h=this.getLayer(d+.001,this._needsManuallyCompositing)).incremental=!0,o=1):h=this.getLayer(d+(o>0?.01:0),this._needsManuallyCompositing),h.__builtin__||l("ZLevel "+d+" has been used by unkown layer "+h.id),h!==r&&(h.__used=!0,h.__startIndex!==i&&(h.__dirty=!0),h.__startIndex=i,h.incremental?h.__drawIndex=-1:h.__drawIndex=i,e(i),r=h),c.__dirty&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?o.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+.01){var l=this._layers[r];o.merge(l,n[t],!0)}}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(o.indexOf(n,t),1))},resize:function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var l in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(l)&&this._layers[l].resize(t,e);o.each(this._progressiveLayers,(function(n){n.resize(t,e)})),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new d("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height,o=e.ctx;this.eachLayer((function(t){t.__builtin__?o.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var l={},c=this.storage.getDisplayList(!0),i=0;i<c.length;i++){var h=c[i];this._doPaintEl(h,e,!0,l)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],l=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var c=this.root,h=document.defaultView.getComputedStyle(c);return(c[r]||y(h[n])||y(c.style[n]))-(y(h[o])||0)-(y(h[l])||0)|0},pathToImage:function(path,t){t=t||this.dpr;var canvas=document.createElement("canvas"),e=canvas.getContext("2d"),rect=path.getBoundingRect(),style=path.style,n=style.shadowBlur*t,r=style.shadowOffsetX*t,o=style.shadowOffsetY*t,l=style.hasStroke()?style.lineWidth:0,c=Math.max(l/2,-r+n),h=Math.max(l/2,r+n),d=Math.max(l/2,-o+n),f=Math.max(l/2,o+n),m=rect.width+c+h,y=rect.height+d+f;canvas.width=m*t,canvas.height=y*t,e.scale(t,t),e.clearRect(0,0,m,y),e.dpr=t;var x={position:path.position,rotation:path.rotation,scale:path.scale};path.position=[c-rect.x,d-rect.y],path.rotation=0,path.scale=[1,1],path.updateTransform(),path&&path.brush(e);var _=new v({style:{x:0,y:0,image:canvas}});return null!=x.position&&(_.position=path.position=x.position),null!=x.rotation&&(_.rotation=path.rotation=x.rotation),null!=x.scale&&(_.scale=path.scale=x.scale),_}};var S=w;t.exports=S},function(t,e,n){var r=n(0),o=n(158).devicePixelRatio,l=n(206),c=n(314);function h(){return!1}function d(t,e,n){var o=r.createCanvas(),l=e.getWidth(),c=e.getHeight(),h=o.style;return h&&(h.position="absolute",h.left=0,h.top=0,h.width=l+"px",h.height=c+"px",o.setAttribute("data-zr-dom-id",t)),o.width=l*n,o.height=c*n,o}var f=function(t,e,n){var l;n=n||o,"string"==typeof t?l=d(t,e,n):r.isObject(t)&&(t=(l=t).id),this.id=t,this.dom=l;var c=l.style;c&&(l.onselectstart=h,c["-webkit-user-select"]="none",c["user-select"]="none",c["-webkit-touch-callout"]="none",c["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",c.padding=0,c.margin=0,c["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};f.prototype={constructor:f,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,r=this.dom,o=r.style,l=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),r.width=t*n,r.height=e*n,l&&(l.width=t*n,l.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var n,r=this.dom,o=this.ctx,h=r.width,d=r.height,f=(e=e||this.clearColor,this.motionBlur&&!t),v=this.lastFrameAlpha,m=this.dpr;(f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,h/m,d/m)),o.clearRect(0,0,h,d),e&&"transparent"!==e)&&(e.colorStops?(n=e.__canvasGradient||l.getGradient(o,e,{x:0,y:0,width:h,height:d}),e.__canvasGradient=n):e.image&&(n=c.prototype.getCanvasPattern.call(e,o)),o.save(),o.fillStyle=n||e,o.fillRect(0,0,h,d),o.restore());if(f){var y=this.domBack;o.save(),o.globalAlpha=v,o.drawImage(y,0,0,h,d),o.restore()}}};var v=f;t.exports=v},function(t,e,n){var r=n(0),o=n(46).Dispatcher,l=n(315),c=n(311),h=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};h.prototype={constructor:h,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=r.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var time=(new Date).getTime()-this._pausedTime,t=time-this._time,e=this._clips,n=e.length,r=[],o=[],i=0;i<n;i++){var l=e[i],c=l.step(time,t);c&&(r.push(c),o.push(l))}for(i=0;i<n;)e[i]._needsRemove?(e[i]=e[n-1],e.pop(),n--):i++;n=r.length;for(i=0;i<n;i++)o[i].fire(r[i]);this._time=time,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;this._running=!0,l((function e(){t._running&&(l(e),!t._paused&&t._update())}))},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){var n=new c(t,(e=e||{}).loop,e.getter,e.setter);return this.addAnimator(n),n}},r.mixin(h,o);var d=h;t.exports=d},function(t,e,n){var r,o,l=n(46),c=l.addEventListener,h=l.removeEventListener,d=l.normalizeEvent,f=l.getNativeEvent,v=n(0),m=n(75),y=n(18),x=y.domSupported,_=(o={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:r=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:v.map(r,(function(t){var e=t.replace("mouse","pointer");return o.hasOwnProperty(e)?e:t}))}),w=["mousemove","mouseup"],S=["pointermove","pointerup"];function M(t){return"mousewheel"===t&&y.browser.firefox?"DOMMouseScroll":t}function T(t){var e=t.pointerType;return"pen"===e||"touch"===e}function A(t){t&&(t.zrByTouch=!0)}function I(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}function C(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}var D=C.prototype;D.stopPropagation=D.stopImmediatePropagation=D.preventDefault=v.noop;var L={mousedown:function(t){t=d(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=d(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||R(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=d(this.dom,t),R(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=d(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var element=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=I(this,element),this.trigger("mouseout",t)},touchstart:function(t){A(t=d(this.dom,t)),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),L.mousemove.call(this,t),L.mousedown.call(this,t)},touchmove:function(t){A(t=d(this.dom,t)),this.handler.processGesture(t,"change"),L.mousemove.call(this,t)},touchend:function(t){A(t=d(this.dom,t)),this.handler.processGesture(t,"end"),L.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&L.click.call(this,t)},pointerdown:function(t){L.mousedown.call(this,t)},pointermove:function(t){T(t)||L.mousemove.call(this,t)},pointerup:function(t){L.mouseup.call(this,t)},pointerout:function(t){T(t)||L.mouseout.call(this,t)}};v.each(["click","mousewheel","dblclick","contextmenu"],(function(t){L[t]=function(e){e=d(this.dom,e),this.trigger(t,e)}}));var k={pointermove:function(t){T(t)||k.mousemove.call(this,t)},pointerup:function(t){k.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;R(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function P(t,e){var n=e.domHandlers;y.pointerEventsSupported?v.each(_.pointer,(function(r){E(e,r,(function(e){n[r].call(t,e)}))})):(y.touchEventsSupported&&v.each(_.touch,(function(r){E(e,r,(function(o){n[r].call(t,o),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),v.each(_.mouse,(function(r){E(e,r,(function(o){o=f(o),e.touching||n[r].call(t,o)}))})))}function O(t,e){function n(n){E(e,n,(function(r){r=f(r),I(t,r.target)||(r=function(t,e){return d(t.dom,new C(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}y.pointerEventsSupported?v.each(S,n):y.touchEventsSupported||v.each(w,n)}function E(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,c(t.domTarget,M(e),n,r)}function N(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&h(t.domTarget,M(n),e[n],t.listenerOpts[n]);t.mounted={}}function R(t,e){if(t._mayPointerCapture=null,x&&t._pointerCapturing^e){t._pointerCapturing=e;var n=t._globalHandlerScope;e?O(t,n):N(n)}}function z(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function B(t,e){m.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new z(t,L),x&&(this._globalHandlerScope=new z(document,k)),this._pointerCapturing=!1,this._mayPointerCapture=null,P(this,this._localHandlerScope)}var V=B.prototype;V.dispose=function(){N(this._localHandlerScope),x&&N(this._globalHandlerScope)},V.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},v.mixin(B,m);var H=B;t.exports=H},function(t,e,n){var r=n(93)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getLineStyle:function(t){var style=r(this,t);return style.lineDash=this.getLineDash(style.lineWidth),style},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),r=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[r,r]:[n,n])}};t.exports=o},function(t,e,n){var r=n(93)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o={getAreaStyle:function(t,e){return r(this,t,e)}};t.exports=o},function(t,e,n){var r=n(33),o=n(2),l=["textStyle","color"],c={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(l):null)},getFont:function(){return o.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(text){return r.getBoundingRect(text,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=c},function(t,e,n){var r=n(94),line=n(320),o=n(708),l=n(321),c=n(709),h=n(322).normalizeRadian,d=n(63),f=n(323),v=r.CMD,m=2*Math.PI;var y=[-1,-1,-1],x=[-1,-1];function _(t,e,n,r,o,l,c,h,f,v){if(v>e&&v>r&&v>l&&v>h||v<e&&v<r&&v<l&&v<h)return 0;var m,_=d.cubicRootAt(e,r,l,h,v,y);if(0===_)return 0;for(var w,S,M=0,T=-1,i=0;i<_;i++){var A=y[i],I=0===A||1===A?.5:1;d.cubicAt(t,n,o,c,A)<f||(T<0&&(T=d.cubicExtrema(e,r,l,h,x),x[1]<x[0]&&T>1&&(m=void 0,m=x[0],x[0]=x[1],x[1]=m),w=d.cubicAt(e,r,l,h,x[0]),T>1&&(S=d.cubicAt(e,r,l,h,x[1]))),2===T?A<x[0]?M+=w<e?I:-I:A<x[1]?M+=S<w?I:-I:M+=h<S?I:-I:A<x[0]?M+=w<e?I:-I:M+=h<w?I:-I)}return M}function w(t,e,n,r,o,l,c,h){if(h>e&&h>r&&h>l||h<e&&h<r&&h<l)return 0;var f=d.quadraticRootAt(e,r,l,h,y);if(0===f)return 0;var v=d.quadraticExtremum(e,r,l);if(v>=0&&v<=1){for(var m=0,x=d.quadraticAt(e,r,l,v),i=0;i<f;i++){var _=0===y[i]||1===y[i]?.5:1;d.quadraticAt(t,n,o,y[i])<c||(y[i]<v?m+=x<e?_:-_:m+=l<x?_:-_)}return m}_=0===y[0]||1===y[0]?.5:1;return d.quadraticAt(t,n,o,y[0])<c?0:l<e?_:-_}function S(t,e,n,r,o,l,c,d){if((d-=e)>n||d<-n)return 0;var f=Math.sqrt(n*n-d*d);y[0]=-f,y[1]=f;var v=Math.abs(r-o);if(v<1e-4)return 0;if(v%m<1e-4){r=0,o=m;var x=l?1:-1;return c>=y[0]+t&&c<=y[1]+t?x:0}if(l){f=r;r=h(o),o=h(f)}else r=h(r),o=h(o);r>o&&(o+=m);for(var _=0,i=0;i<2;i++){var w=y[i];if(w+t>c){var S=Math.atan2(d,w);x=l?1:-1;S<0&&(S=m+S),(S>=r&&S<=o||S+m>=r&&S+m<=o)&&(S>Math.PI/2&&S<1.5*Math.PI&&(x=-x),_+=x)}}return _}function M(data,t,e,n,r){for(var a,b,h=0,d=0,m=0,y=0,x=0,i=0;i<data.length;){var M=data[i++];switch(M===v.M&&i>1&&(e||(h+=f(d,m,y,x,n,r))),1===i&&(y=d=data[i],x=m=data[i+1]),M){case v.M:d=y=data[i++],m=x=data[i++];break;case v.L:if(e){if(line.containStroke(d,m,data[i],data[i+1],t,n,r))return!0}else h+=f(d,m,data[i],data[i+1],n,r)||0;d=data[i++],m=data[i++];break;case v.C:if(e){if(o.containStroke(d,m,data[i++],data[i++],data[i++],data[i++],data[i],data[i+1],t,n,r))return!0}else h+=_(d,m,data[i++],data[i++],data[i++],data[i++],data[i],data[i+1],n,r)||0;d=data[i++],m=data[i++];break;case v.Q:if(e){if(l.containStroke(d,m,data[i++],data[i++],data[i],data[i+1],t,n,r))return!0}else h+=w(d,m,data[i++],data[i++],data[i],data[i+1],n,r)||0;d=data[i++],m=data[i++];break;case v.A:var T=data[i++],A=data[i++],I=data[i++],C=data[i++],D=data[i++],L=data[i++];i+=1;var k=1-data[i++],P=Math.cos(D)*I+T,O=Math.sin(D)*C+A;i>1?h+=f(d,m,P,O,n,r):(y=P,x=O);var E=(n-T)*C/I+T;if(e){if(c.containStroke(T,A,C,D,D+L,k,t,E,r))return!0}else h+=S(T,A,C,D,D+L,k,E,r);d=Math.cos(D+L)*I+T,m=Math.sin(D+L)*C+A;break;case v.R:y=d=data[i++],x=m=data[i++];P=y+data[i++],O=x+data[i++];if(e){if(line.containStroke(y,x,P,x,t,n,r)||line.containStroke(P,x,P,O,t,n,r)||line.containStroke(P,O,y,O,t,n,r)||line.containStroke(y,O,y,x,t,n,r))return!0}else h+=f(P,x,P,O,n,r),h+=f(y,O,y,x,n,r);break;case v.Z:if(e){if(line.containStroke(d,m,y,x,t,n,r))return!0}else h+=f(d,m,y,x,n,r);d=y,m=x}}return e||(a=m,b=x,Math.abs(a-b)<1e-4)||(h+=f(d,m,y,x,n,r)||0),0!==h}e.contain=function(t,e,n){return M(t,0,!1,e,n)},e.containStroke=function(t,e,n,r){return M(t,e,!0,n,r)}},function(t,e,n){var r=n(63);e.containStroke=function(t,e,n,o,l,c,h,d,f,v,m){if(0===f)return!1;var y=f;return!(m>e+y&&m>o+y&&m>c+y&&m>d+y||m<e-y&&m<o-y&&m<c-y&&m<d-y||v>t+y&&v>n+y&&v>l+y&&v>h+y||v<t-y&&v<n-y&&v<l-y&&v<h-y)&&r.cubicProjectPoint(t,e,n,o,l,c,h,d,v,m,null)<=y/2}},function(t,e,n){var r=n(322).normalizeRadian,o=2*Math.PI;e.containStroke=function(t,e,n,l,c,h,d,f,v){if(0===d)return!1;var m=d;f-=t,v-=e;var y=Math.sqrt(f*f+v*v);if(y-m>n||y+m<n)return!1;if(Math.abs(l-c)%o<1e-4)return!0;if(h){var x=l;l=r(c),c=r(x)}else l=r(l),c=r(c);l>c&&(c+=o);var _=Math.atan2(v,f);return _<0&&(_+=o),_>=l&&_<=c||_+o>=l&&_+o<=c}},function(t,e,n){var r=n(94),o=n(11).applyTransform,l=r.CMD,c=[[],[],[]],h=Math.sqrt,d=Math.atan2;t.exports=function(path,t){var e,n,i,r,f,data=path.data,v=l.M,m=l.C,y=l.L,x=l.R,_=l.A,w=l.Q;for(i=0,r=0;i<data.length;){switch(e=data[i++],r=i,n=0,e){case v:case y:n=1;break;case m:n=3;break;case w:n=2;break;case _:var S=t[4],M=t[5],T=h(t[0]*t[0]+t[1]*t[1]),A=h(t[2]*t[2]+t[3]*t[3]),I=d(-t[1]/A,t[0]/T);data[i]*=T,data[i++]+=S,data[i]*=A,data[i++]+=M,data[i++]*=T,data[i++]*=A,data[i++]+=I,data[i++]+=I,r=i+=2;break;case x:p[0]=data[i++],p[1]=data[i++],o(p,p,t),data[r++]=p[0],data[r++]=p[1],p[0]+=data[i++],p[1]+=data[i++],o(p,p,t),data[r++]=p[0],data[r++]=p[1]}for(f=0;f<n;f++){var p;(p=c[f])[0]=data[i++],p[1]=data[i++],o(p,p,t),data[r++]=p[0],data[r++]=p[1]}}}},function(t,e,n){var r=n(17),o=n(325),l=r.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:o(r.prototype.brush),buildPath:function(t,e){var n=e.cx,r=e.cy,o=Math.max(e.r0||0,0),l=Math.max(e.r,0),c=e.startAngle,h=e.endAngle,d=e.clockwise,f=Math.cos(c),v=Math.sin(c);t.moveTo(f*o+n,v*o+r),t.lineTo(f*l+n,v*l+r),t.arc(n,r,l,c,h,!d),t.lineTo(Math.cos(h)*o+n,Math.sin(h)*o+r),0!==o&&t.arc(n,r,o,h,c,d),t.closePath()}});t.exports=l},function(t,e,n){var r=n(17).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,r=e.cy,o=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,o,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,o,!0)}});t.exports=r},function(t,e,n){var r=n(11).distance;function o(t,e,n,r,o,l,c){var h=.5*(n-t),d=.5*(r-e);return(2*(e-n)+h+d)*c+(-3*(e-n)-2*h-d)*l+h*o+e}t.exports=function(t,e){for(var n=t.length,l=[],c=0,i=1;i<n;i++)c+=r(t[i-1],t[i]);var h=c/2;for(h=h<n?n:h,i=0;i<h;i++){var d,f,v,m=i/(h-1)*(e?n:n-1),y=Math.floor(m),x=m-y,_=t[y%n];e?(d=t[(y-1+n)%n],f=t[(y+1)%n],v=t[(y+2)%n]):(d=t[0===y?y:y-1],f=t[y>n-2?n-1:y+1],v=t[y>n-3?n-1:y+2]);var w=x*x,S=x*w;l.push([o(d[0],_[0],f[0],v[0],x,w,S),o(d[1],_[1],f[1],v[1],x,w,S)])}return l}},function(t,e,n){var r=n(11),o=r.min,l=r.max,c=r.scale,h=r.distance,d=r.add,f=r.clone,v=r.sub;t.exports=function(t,e,n,r){var m,y,x,_,w=[],S=[],M=[],T=[];if(r){x=[1/0,1/0],_=[-1/0,-1/0];for(var i=0,A=t.length;i<A;i++)o(x,x,t[i]),l(_,_,t[i]);o(x,x,r[0]),l(_,_,r[1])}for(i=0,A=t.length;i<A;i++){var I=t[i];if(n)m=t[i?i-1:A-1],y=t[(i+1)%A];else{if(0===i||i===A-1){w.push(f(t[i]));continue}m=t[i-1],y=t[i+1]}v(S,y,m),c(S,S,e);var C=h(I,m),D=h(I,y),L=C+D;0!==L&&(C/=L,D/=L),c(M,S,-C),c(T,S,D);var k=d([],I,M),P=d([],I,T);r&&(l(k,k,x),o(k,k,_),l(P,P,x),o(P,P,_)),w.push(k),w.push(P)}return n&&w.push(w.shift()),w}},function(t,e,n){var r=n(17),o=n(11),l=n(63),c=l.quadraticSubdivide,h=l.cubicSubdivide,d=l.quadraticAt,f=l.cubicAt,v=l.quadraticDerivativeAt,m=l.cubicDerivativeAt,y=[];function x(t,e,n){var r=t.cpx2,o=t.cpy2;return null===r||null===o?[(n?m:f)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?m:f)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?v:d)(t.x1,t.cpx1,t.x2,e),(n?v:d)(t.y1,t.cpy1,t.y2,e)]}var _=r.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,r=e.y1,o=e.x2,l=e.y2,d=e.cpx1,f=e.cpy1,v=e.cpx2,m=e.cpy2,x=e.percent;0!==x&&(t.moveTo(n,r),null==v||null==m?(x<1&&(c(n,d,o,x,y),d=y[1],o=y[2],c(r,f,l,x,y),f=y[1],l=y[2]),t.quadraticCurveTo(d,f,o,l)):(x<1&&(h(n,d,v,o,x,y),d=y[1],v=y[2],o=y[3],h(r,f,m,l,x,y),f=y[1],m=y[2],l=y[3]),t.bezierCurveTo(d,f,v,m,o,l)))},pointAt:function(t){return x(this.shape,t,!1)},tangentAt:function(t){var p=x(this.shape,t,!0);return o.normalize(p,p)}});t.exports=_},function(t,e,n){var r=n(17).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,r=e.cy,o=Math.max(e.r,0),l=e.startAngle,c=e.endAngle,h=e.clockwise,d=Math.cos(l),f=Math.sin(l);t.moveTo(d*o+n,f*o+r),t.arc(n,r,o,l,c,!h)}});t.exports=r},function(t,e,n){var r=n(17),o=r.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e.length;i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),r.prototype.getBoundingRect.call(this)}});t.exports=o},function(t,e,n){var r=n(0),o=n(161),l=function(t,e,n,r,l){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=l||!1,o.call(this,r)};l.prototype={constructor:l},r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){var r=n(93)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),o={getItemStyle:function(t,e){var style=r(this,t,e),n=this.getBorderLineDash();return n&&(style.lineDash=n),style},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=o},function(t,e){t.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(t,e){var n="";"undefined"!=typeof navigator&&(n=navigator.platform||"");var r={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=r},function(t,e,n){var r=n(0),o=n(6),l=n(21),c=r.each,h=r.clone,map=r.map,d=r.merge,f=/^(min|max)?(.+)$/;function v(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function m(t,e,n){var o,l,h=[],d=[],f=t.timeline;if(t.baseOption&&(l=t.baseOption),(f||t.options)&&(l=l||{},h=(t.options||[]).slice()),t.media){l=l||{};var v=t.media;c(v,(function(t){t&&t.option&&(t.query?d.push(t):o||(o=t))}))}return l||(l=t),l.timeline||(l.timeline=f),c([l].concat(h).concat(r.map(d,(function(t){return t.option}))),(function(option){c(e,(function(t){t(option,n)}))})),{baseOption:l,timelineOptions:h,mediaDefault:o,mediaList:d}}function y(t,e,n){var o={width:e,height:n,aspectratio:e/n},l=!0;return r.each(t,(function(t,e){var n=e.match(f);if(n&&n[1]&&n[2]){var r=n[1],c=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(o[c],t,r)||(l=!1)}})),l}v.prototype={constructor:v,setOption:function(t,e){t&&r.each(o.normalizeToArray(t.series),(function(t){t&&t.data&&r.isTypedArray(t.data)&&r.setAsPrimitive(t.data)})),t=h(t);var n,f,v=this._optionBackup,y=m.call(this,t,e,!v);this._newBaseOption=y.baseOption,v?(n=v.baseOption,f=y.baseOption,c(f=f||{},(function(t,e){if(null!=t){var r=n[e];if(l.hasClass(e)){t=o.normalizeToArray(t),r=o.normalizeToArray(r);var c=o.mappingToExists(r,t);n[e]=map(c,(function(t){return t.option&&t.exist?d(t.exist,t.option,!0):t.exist||t.option}))}else n[e]=d(r,t,!0)}})),y.timelineOptions.length&&(v.timelineOptions=y.timelineOptions),y.mediaList.length&&(v.mediaList=y.mediaList),y.mediaDefault&&(v.mediaDefault=y.mediaDefault)):this._optionBackup=y},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=map(e.timelineOptions,h),this._mediaList=map(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var option,e=this._timelineOptions;if(e.length){var n=t.getComponent("timeline");n&&(option=h(e[n.getCurrentIndex()],!0))}return option},getMediaOption:function(t){var e,n,r=this._api.getWidth(),o=this._api.getHeight(),l=this._mediaList,c=this._mediaDefault,d=[],f=[];if(!l.length&&!c)return f;for(var i=0,v=l.length;i<v;i++)y(l[i].query,r,o)&&d.push(i);return!d.length&&c&&(d=[-1]),d.length&&(e=d,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(f=map(d,(function(t){return h(-1===t?c.option:l[t].option)}))),this._currentMediaIndices=d,f}};var x=v;t.exports=x},function(t,e,n){var r=n(0),o=r.each,l=r.isArray,c=r.isObject,h=n(724),d=n(6).normalizeToArray;function f(option){o(v,(function(t){t[0]in option&&!(t[1]in option)&&(option[t[1]]=option[t[0]])}))}var v=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],m=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=function(option,t){h(option,t),option.series=d(option.series),o(option.series,(function(t){if(c(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var n=function(t,path){path=path.split(",");for(var e=t,i=0;i<path.length&&null!=(e=e&&e[path[i]]);i++);return e}(t,"pointer.color");null!=n&&function(t,path,e,n){path=path.split(",");for(var r,o=t,i=0;i<path.length-1;i++)null==o[r=path[i]]&&(o[r]={}),o=o[r];(n||null==o[path[i]])&&(o[path[i]]=e)}(t,"itemStyle.color",n)}f(t)}})),option.dataRange&&(option.visualMap=option.dataRange),o(m,(function(t){var e=option[t];e&&(l(e)||(e=[e]),o(e,(function(option){f(option)})))}))}},function(t,e,n){var r=n(0),o=n(6),l=r.each,c=r.isObject,h=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function d(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=h.length;i<n;i++){var o=h[i],l=e.normal,c=e.emphasis;l&&l[o]&&(t[o]=t[o]||{},t[o].normal?r.merge(t[o].normal,l[o]):t[o].normal=l[o],l[o]=null),c&&c[o]&&(t[o]=t[o]||{},t[o].emphasis?r.merge(t[o].emphasis,c[o]):t[o].emphasis=c[o],c[o]=null)}}function f(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var o=t[e].normal,l=t[e].emphasis;o&&(n?(t[e].normal=t[e].emphasis=null,r.defaults(t[e],o)):t[e]=o),l&&(t.emphasis=t.emphasis||{},t.emphasis[e]=l)}}function v(t){f(t,"itemStyle"),f(t,"lineStyle"),f(t,"areaStyle"),f(t,"label"),f(t,"labelLine"),f(t,"upperLabel"),f(t,"edgeLabel")}function m(t,e){var n=c(t)&&t[e],r=c(n)&&n.textStyle;if(r)for(var i=0,l=o.TEXT_STYLE_OPTIONS.length;i<l;i++){e=o.TEXT_STYLE_OPTIONS[i];r.hasOwnProperty(e)&&(n[e]=r[e])}}function y(t){t&&(v(t),m(t,"label"),t.emphasis&&m(t.emphasis,"label"))}function x(t){return r.isArray(t)?t:t?[t]:[]}function _(t){return(r.isArray(t)?t[0]:t)||{}}t.exports=function(option,t){l(x(option.series),(function(t){c(t)&&function(t){if(c(t)){d(t),v(t),m(t,"label"),m(t,"upperLabel"),m(t,"edgeLabel"),t.emphasis&&(m(t.emphasis,"label"),m(t.emphasis,"upperLabel"),m(t.emphasis,"edgeLabel")),(n=t.markPoint)&&(d(n),y(n)),(o=t.markLine)&&(d(o),y(o));var e=t.markArea;e&&y(e);var n,o,data=t.data;if("graph"===t.type){data=data||t.nodes;var l=t.links||t.edges;if(l&&!r.isTypedArray(l))for(var i=0;i<l.length;i++)y(l[i]);r.each(t.categories,(function(t){v(t)}))}if(data&&!r.isTypedArray(data))for(i=0;i<data.length;i++)y(data[i]);if((n=t.markPoint)&&n.data){var h=n.data;for(i=0;i<h.length;i++)y(h[i])}if((o=t.markLine)&&o.data){var x=o.data;for(i=0;i<x.length;i++)r.isArray(x[i])?(y(x[i][0]),y(x[i][1])):y(x[i])}"gauge"===t.type?(m(t,"axisLabel"),m(t,"title"),m(t,"detail")):"treemap"===t.type?(f(t.breadcrumb,"itemStyle"),r.each(t.levels,(function(t){v(t)}))):"tree"===t.type&&v(t.leaves)}}(t)}));var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),l(e,(function(t){l(x(option[t]),(function(t){t&&(m(t,"axisLabel"),m(t.axisPointer,"label"))}))})),l(x(option.parallel),(function(t){var e=t&&t.parallelAxisDefault;m(e,"axisLabel"),m(e&&e.axisPointer,"label")})),l(x(option.calendar),(function(t){f(t,"itemStyle"),m(t,"dayLabel"),m(t,"monthLabel"),m(t,"yearLabel")})),l(x(option.radar),(function(t){m(t,"name")})),l(x(option.geo),(function(t){c(t)&&(y(t),l(x(t.regions),(function(t){y(t)})))})),l(x(option.timeline),(function(t){y(t),f(t,"label"),f(t,"itemStyle"),f(t,"controlStyle",!0);var data=t.data;r.isArray(data)&&r.each(data,(function(t){r.isObject(t)&&(f(t,"label"),f(t,"itemStyle"))}))})),l(x(option.toolbox),(function(t){f(t,"iconStyle"),l(t.feature,(function(t){f(t,"iconStyle")}))})),m(_(option.axisPointer),"label"),m(_(option.tooltip).axisPointer,"label")}},function(t,e,n){var r=n(0),o=r.createHashMap,l=r.each;function c(t){l(t,(function(e,n){var r=[],o=[NaN,NaN],l=[e.stackResultDimension,e.stackedOverDimension],c=e.data,h=e.isStackedByIndex,d=c.map(l,(function(l,d,f){var v,m,y=c.get(e.stackedDimension,f);if(isNaN(y))return o;h?m=c.getRawIndex(f):v=c.get(e.stackedByDimension,f);for(var x=NaN,_=n-1;_>=0;_--){var w=t[_];if(h||(m=w.data.rawIndexOf(w.stackedByDimension,v)),m>=0){var S=w.data.getByRawIndex(w.stackResultDimension,m);if(y>=0&&S>0||y<=0&&S<0){y+=S,x=S;break}}}return r[0]=y,r[1]=x,r}));c.hostModel.setData(d),e.data=d}))}t.exports=function(t){var e=o();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),data=t.getData(),o={stackResultDimension:data.getCalculationInfo("stackResultDimension"),stackedOverDimension:data.getCalculationInfo("stackedOverDimension"),stackedDimension:data.getCalculationInfo("stackedDimension"),stackedByDimension:data.getCalculationInfo("stackedByDimension"),isStackedByIndex:data.getCalculationInfo("isStackedByIndex"),data:data,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&data.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(c)}},function(t,e,n){var r=n(161),o=n(0).isFunction,l={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var data=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),l=t.get(n),c=!o(l)||l instanceof r?null:l;l&&!c||(l=t.getColorFromPalette(t.name,null,e.getSeriesCount())),data.setVisual("color",l);var h=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),d=t.get(h);if(data.setVisual("borderColor",d),!e.isSeriesFiltered(t)){c&&data.each((function(e){data.setItemVisual(e,"color",c(t.getDataParams(e)))}));return{dataEach:data.hasItemOption?function(data,t){var e=data.getItemModel(t),r=e.get(n,!0),o=e.get(h,!0);null!=r&&data.setItemVisual(t,"color",r),null!=o&&data.setItemVisual(t,"borderColor",o)}:null}}}};t.exports=l},function(t,e,n){var r=n(0),o=n(65),l=n(78).retrieveRawValue;t.exports=function(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var c=0;e.eachSeries((function(t,e){++c}),this);var h,d=n.get("data.maxCount")||10,f=n.get("series.maxCount")||10,v=Math.min(c,f);if(!(c<1)){var title=function(){var title=e.getModel("title").option;title&&title.length&&(title=title[0]);return title&&title.text}();h=title?y(x("general.withTitle"),{title:title}):x("general.withoutTitle");var m=[];h+=y(x(c>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:c}),e.eachSeries((function(t,e){if(e<v){var n,r=t.get("name"),h="series."+(c>1?"multiple":"single")+".";n=y(n=x(r?h+"withName":h+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(S=t.subType,o.series.typeNames[S]||"自定义图")});var data=t.getData();window.data=data,data.count()>d?n+=y(x("data.partialData"),{displayCnt:d}):n+=x("data.allData");for(var f=[],i=0;i<data.count();i++)if(i<d){var _=data.getName(i),w=l(data,i);f.push(y(x(_?"data.withName":"data.withoutName"),{name:_,value:w}))}n+=f.join(x("data.separator.middle"))+x("data.separator.end"),m.push(n)}var S})),h+=m.join(x("series.multiple.separator.middle"))+x("series.multiple.separator.end"),t.setAttribute("aria-label",h)}}function y(t,e){if("string"!=typeof t)return t;var n=t;return r.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function x(path){var t=n.get(path);if(null==t){for(var e=path.split("."),r=o.aria,i=0;i<e.length;++i)r=r[e[i]];return r}return t}}},function(t,e,n){var r=n(0),o=n(2),l=n(33),c=Math.PI;t.exports=function(t,e){e=e||{},r.defaults(e,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new o.Group,mask=new o.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(mask);var h=e.fontSize+" sans-serif",d=new o.Rect({style:{fill:"none",text:e.text,font:h,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(n.add(d),e.showSpinner){var f=new o.Arc({shape:{startAngle:-c/2,endAngle:-c/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});f.animateShape(!0).when(1e3,{endAngle:3*c/2}).start("circularInOut"),f.animateShape(!0).when(1e3,{startAngle:3*c/2}).delay(300).start("circularInOut"),n.add(f)}return n.resize=function(){var n=l.getWidth(e.text,h),r=e.showSpinner?e.spinnerRadius:0,o=(t.getWidth()-2*r-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner?0:n/2),c=t.getHeight()/2;e.showSpinner&&f.setShape({cx:o,cy:c}),d.setShape({x:o-r,y:c-r,width:2*r,height:2*r}),mask.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}},function(t,e,n){var r=n(0),o=r.each,map=r.map,l=r.isFunction,c=r.createHashMap,h=r.noop,d=n(213).createTask,f=n(122).getUID,v=n(318),m=n(331),y=n(6).normalizeToArray;function x(t,e,n,r){this.ecInstance=t,this.api=e,this.unfinished;n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice();this._allHandlers=n.concat(r),this._stageTaskMap=c()}var _=x.prototype;function w(t,e,n,r,l){var c;function h(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}l=l||{},o(e,(function(e,o){if(!l.visualType||l.visualType===e.visualType){var d=t._stageTaskMap.get(e.uid),f=d.seriesTaskMap,v=d.overallTask;if(v){var m,y=v.agentStubMap;y.each((function(t){h(l,t)&&(t.dirty(),m=!0)})),m&&v.dirty(),S(v,r);var x=t.getPerformArgs(v,l.block);y.each((function(t){t.perform(x)})),c|=v.perform(x)}else f&&f.each((function(o,d){h(l,o)&&o.dirty();var f=t.getPerformArgs(o,l.block);f.skip=!e.performRawSeries&&n.isSeriesFiltered(o.context.model),S(o,r),c|=o.perform(f)}))}})),t.unfinished|=c}_.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},_.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,o=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,l=r&&r.modDataCount;return{step:o,modBy:null!=l?Math.ceil(l/o):null,modDataCount:l}}},_.getPipeline=function(t){return this._pipelineMap.get(t)},_.updateStreamModes=function(t,view){var e=this._pipelineMap.get(t.uid),n=t.getData().count(),r=e.progressiveEnabled&&view.incrementalPrepareRender&&n>=e.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),l="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=e.context={progressiveRender:r,modDataCount:l,large:o}},_.restorePipelines=function(t){var e=this,n=e._pipelineMap=c();t.eachSeries((function(t){var r=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),O(e,t,t.dataTask)}))},_.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;o(this._allHandlers,(function(r){var l=t.get(r.uid)||t.set(r.uid,[]);r.reset&&function(t,e,n,r,o){var l=n.seriesTaskMap||(n.seriesTaskMap=c()),h=e.seriesType,f=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(v):h?r.eachRawSeriesByType(h,v):f&&f(r,o).each(v);function v(n){var c=n.uid,h=l.get(c)||l.set(c,d({plan:C,reset:D,count:P}));h.context={model:n,ecModel:r,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},O(t,n,h)}var m=t._pipelineMap;l.each((function(t,e){m.get(e)||(t.dispose(),l.removeKey(e))}))}(this,r,l,e,n),r.overallReset&&function(t,e,n,r,l){var h=n.overallTask=n.overallTask||d({reset:M});h.context={ecModel:r,api:l,overallReset:e.overallReset,scheduler:t};var f=h.agentStubMap=h.agentStubMap||c(),v=e.seriesType,m=e.getTargetSeries,y=!0,x=e.modifyOutputEnd;v?r.eachRawSeriesByType(v,_):m?m(r,l).each(_):(y=!1,o(r.getSeries(),_));function _(e){var n=e.uid,r=f.get(n);r||(r=f.set(n,d({reset:T,onDirty:I})),h.dirty()),r.context={model:e,overallProgress:y,modifyOutputEnd:x},r.agent=h,r.__block=y,O(t,e,r)}var w=t._pipelineMap;f.each((function(t,e){w.get(e)||(t.dispose(),h.dirty(),f.removeKey(e))}))}(this,r,l,e,n)}),this)},_.prepareView=function(view,t,e,n){var r=view.renderTask,o=r.context;o.model=t,o.ecModel=e,o.api=n,r.__block=!view.incrementalPrepareRender,O(this,t,r)},_.performDataProcessorTasks=function(t,e){w(this,this._dataProcessorHandlers,t,e,{block:!0})},_.performVisualTasks=function(t,e,n){w(this,this._visualHandlers,t,e,n)},_.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},_.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var S=_.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function M(t){t.overallReset(t.ecModel,t.api,t.payload)}function T(t,e){return t.overallProgress&&A}function A(){this.agent.dirty(),this.getDownstream().dirty()}function I(){this.agent&&this.agent.dirty()}function C(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function D(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=y(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?map(e,(function(t,e){return k(e)})):L}var L=k(0);function k(t){return function(e,n){var data=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var i=e.start;i<e.end;i++)r.dataEach(data,i);else r&&r.progress&&r.progress(e,data)}}function P(t){return t.data.count()}function O(t,e,n){var r=e.uid,o=t._pipelineMap.get(r);!o.head&&(o.head=n),o.tail&&o.tail.pipe(n),o.tail=n,n.__idxInPipeline=o.count++,n.__pipeline=o}function E(t){N=null;try{t(R,z)}catch(t){}return N}x.wrapStageHandler=function(t,e){return l(t)&&(t={overallReset:t,seriesType:E(t)}),t.uid=f("stageHandler"),e&&(t.visualType=e),t};var N,R={},z={};function B(t,e){for(var n in e.prototype)t[n]=h}B(R,v),B(z,m),R.eachSeriesByType=R.eachRawSeriesByType=function(t){N=t},R.eachComponent=function(t){"series"===t.mainType&&t.subType&&(N=t.subType)};var V=x;t.exports=V},function(t,e){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],r={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};t.exports=r},function(t,e){var n=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:n,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"},label:{color:"#000"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},itemStyle:{normal:{color:n[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}},timeAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},logAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},valueAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},categoryAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},line:{symbol:"circle"},graph:{color:n},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var o=r;t.exports=o},function(t,e,n){var r=n(17).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,r=e.cx,o=e.cy,a=e.rx,b=e.ry,l=a*n,c=b*n;t.moveTo(r-a,o),t.bezierCurveTo(r-a,o-c,r-l,o-b,r,o-b),t.bezierCurveTo(r+l,o-b,r+a,o-c,r+a,o),t.bezierCurveTo(r+a,o+c,r+l,o+b,r,o+b),t.bezierCurveTo(r-l,o+b,r-a,o+c,r-a,o),t.closePath()}});t.exports=r},function(t,e,n){var r=n(0),o=n(56),l=n(43),c=n(97),h=n(19),d=n(9);d.getLayoutRect;e.getLayoutRect=d.getLayoutRect;var f=n(49),v=f.enableDataStack,m=f.isDimensionStacked,y=f.getStackedDimension,x=n(336);e.completeDimensions=x;var _=n(96);e.createDimensions=_;var w=n(38);e.createSymbol=w.createSymbol;var S={isDimensionStacked:m,enableDataStack:v,getStackedDimension:y};e.createList=function(t){return o(t.getSource(),t)},e.dataStack=S,e.createScale=function(t,option){var e=option;h.isInstance(option)||(e=new h(option),r.mixin(e,c));var n=l.createScaleByModel(e);return n.setExtent(t[0],t[1]),l.niceScaleExtent(n,e),n},e.mixinAxisModelCommonMethods=function(t){r.mixin(t,c)}},function(t,e,n){n(7).__DEV__;var r=n(0),o=r.createHashMap,l=(r.retrieve,r.each);function c(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=o(),this.categoryAxisMap=o(),this.firstCategoryDimIndex=null}var h={cartesian2d:function(t,e,n,r){var o=t.getReferringComponents("xAxis")[0],l=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",l),d(o)&&(r.set("x",o),e.firstCategoryDimIndex=0),d(l)&&(r.set("y",l),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,r){var o=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",o),d(o)&&(r.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var o=t.getReferringComponents("polar")[0],l=o.findAxisModel("radiusAxis"),c=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",l),n.set("angle",c),d(l)&&(r.set("radius",l),e.firstCategoryDimIndex=0),d(c)&&(r.set("angle",c),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var o=t.ecModel,c=o.getComponent("parallel",t.get("parallelIndex")),h=e.coordSysDims=c.dimensions.slice();l(c.parallelAxisIndex,(function(t,l){var c=o.getComponent("parallelAxis",t),f=h[l];n.set(f,c),d(c)&&null==e.firstCategoryDimIndex&&(r.set(f,c),e.firstCategoryDimIndex=l)}))}};function d(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=function(t){var e=t.get("coordinateSystem"),n=new c(e),r=h[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}},function(t,e,n){var r=n(0),o=n(163),l=n(337),c=o.prototype,h=o.extend({type:"ordinal",init:function(t,e){t&&!r.isArray(t)||(t=new l({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),c.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return c.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(c.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(data,t){this.unionExtent(data.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:r.noop,niceExtent:r.noop});h.create=function(){return new h};var d=h;t.exports=d},function(t,e,n){var r=n(0),o=n(5),l=n(10),c=n(338),h=n(164),d=h.prototype,f=Math.ceil,v=Math.floor,m=864e5,y=h.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return l.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=m,e[1]+=m),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-m}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=o.round(v(e[0]/r)*r)),t.fixMax||(e[1]=o.round(f(e[1]/r)*r))},niceTicks:function(t,e,n){t=t||10;var r=this._extent,span=r[1]-r[0],l=span/t;null!=e&&l<e&&(l=e),null!=n&&l>n&&(l=n);var h=x.length,d=function(a,t,e,n){for(;e<n;){var r=e+n>>>1;a[r][1]<t?e=r+1:n=r}return e}(x,l,0,h),m=x[Math.min(d,h-1)],y=m[1];if("year"===m[0]){var _=span/y;y*=o.nice(_/t,!0)}var w=this.getSetting("useUTC")?0:60*new Date(+r[0]||+r[1]).getTimezoneOffset()*1e3,S=[Math.round(f((r[0]-w)/y)*y+w),Math.round(v((r[1]-w)/y)*y+w)];c.fixExtent(S,r),this._stepLvl=m,this._interval=y,this._niceExtent=S},parse:function(t){return+o.parseDate(t)}});r.each(["contain","normalize"],(function(t){y.prototype[t]=function(e){return d[t].call(this,this.parse(e))}}));var x=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",m],["MM-dd\nyyyy",2*m],["MM-dd\nyyyy",3*m],["MM-dd\nyyyy",4*m],["MM-dd\nyyyy",5*m],["MM-dd\nyyyy",6*m],["week",7*m],["MM-dd\nyyyy",10*m],["week",14*m],["week",21*m],["month",31*m],["week",42*m],["month",62*m],["week",70*m],["quarter",95*m],["month",31*m*4],["month",31*m*5],["half-year",380*m/2],["month",31*m*8],["month",31*m*10],["year",380*m]];y.create=function(t){return new y({useUTC:t.ecModel.get("useUTC")})};var _=y;t.exports=_},function(t,e,n){var r=n(0),o=n(33),l=n(6).makeInner,c=n(43),h=c.makeLabelFormatter,d=c.getOptionCategoryInterval,f=c.shouldShowAllLabels,v=l();function m(t,e){var n,o,l=y(t,"labels"),c=d(e),h=x(l,c);return h||(r.isFunction(c)?n=S(t,c):(o="auto"===c?function(t){var e=v(t).autoInterval;return null!=e?e:v(t).autoInterval=t.calculateCategoryInterval()}(t):c,n=w(t,o)),_(l,c,{labels:n,labelCategoryInterval:o}))}function y(t,e){return v(t)[e]||(v(t)[e]=[])}function x(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function _(t,e,n){return t.push({key:e,value:n}),n}function w(t,e,n){var r=h(t),o=t.scale,l=o.getExtent(),c=t.getLabelModel(),d=[],v=Math.max((e||0)+1,1),m=l[0],y=o.count();0!==m&&v>1&&y/v>2&&(m=Math.round(Math.ceil(m/v)*v));var x=f(t),_=c.get("showMinLabel")||x,w=c.get("showMaxLabel")||x;_&&m!==l[0]&&M(l[0]);for(var S=m;S<=l[1];S+=v)M(S);function M(t){d.push(n?t:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:t})}return w&&S-v!==l[1]&&M(l[1]),d}function S(t,e,n){var o=t.scale,l=h(t),c=[];return r.each(o.getTicks(),(function(t){var r=o.getLabel(t);e(t,r)&&c.push(n?t:{formattedLabel:l(t),rawLabel:r,tickValue:t})})),c}e.createAxisLabels=function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=m(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=h(t);return{labels:r.map(e,(function(e,r){return{formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}(t)},e.createAxisTicks=function(t,e){return"category"===t.type?function(t,e){var n,o,l=y(t,"ticks"),c=d(e),h=x(l,c);if(h)return h;e.get("show")&&!t.scale.isBlank()||(n=[]);if(r.isFunction(c))n=S(t,c,!0);else if("auto"===c){var f=m(t,t.getLabelModel());o=f.labelCategoryInterval,n=r.map(f.labels,(function(t){return t.tickValue}))}else n=w(t,o=c,!0);return _(l,c,{ticks:n,tickCategoryInterval:o})}(t,e):{ticks:t.scale.getTicks()}},e.calculateCategoryInterval=function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=h(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,l=t.scale,c=l.getExtent(),d=l.count();if(c[1]-c[0]<1)return 0;var f=1;d>40&&(f=Math.max(1,Math.floor(d/40)));for(var m=c[0],y=t.dataToCoord(m+1)-t.dataToCoord(m),x=Math.abs(y*Math.cos(r)),_=Math.abs(y*Math.sin(r)),w=0,S=0;m<=c[1];m+=f){var M,T,rect=o.getBoundingRect(n(m),e.font,"center","top");M=1.3*rect.width,T=1.3*rect.height,w=Math.max(w,M,7),S=Math.max(S,T,7)}var A=w/x,I=S/_;isNaN(A)&&(A=1/0),isNaN(I)&&(I=1/0);var C=Math.max(0,Math.floor(Math.min(A,I))),D=v(t.model),L=t.getExtent(),k=D.lastAutoInterval,P=D.lastTickCount;return null!=k&&null!=P&&Math.abs(k-C)<=1&&Math.abs(P-d)<=1&&k>C&&D.axisExtend0===L[0]&&D.axisExtend1===L[1]?C=k:(D.lastTickCount=d,D.lastAutoInterval=C,D.axisExtend0=L[0],D.axisExtend1=L[1]),C}},function(t,e,n){var r=n(1);n(739),n(740);var o=n(80),l=n(128),c=n(742);n(129),r.registerVisual(o("line","circle","line")),r.registerLayout(l("line")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,c("line"))},function(t,e,n){n(7).__DEV__;var r=n(56),o=n(22).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(option,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=o},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(121).fromPoints,l=n(126),c=n(166),h=n(741),d=n(2),f=n(6),v=n(344),m=v.Polyline,y=v.Polygon,x=n(48),_=n(343),w=_.prepareDataCoordInfo,S=_.getStackedOnPoint,M=n(127),T=M.createGridClipPath,A=M.createPolarClipPath;function I(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function C(t,e){var n=[],r=[],l=[],c=[];return o(t,n,r),o(e,l,c),Math.max(Math.abs(n[0]-l[0]),Math.abs(n[1]-l[1]),Math.abs(r[0]-c[0]),Math.abs(r[1]-c[1]))}function D(t){return"number"==typeof t?t:t?.5:0}function L(t,e,n){for(var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,l=[],i=0;i<t.length-1;i++){var c=t[i+1],h=t[i];l.push(h);var d=[];switch(n){case"end":d[o]=c[o],d[1-o]=h[1-o],l.push(d);break;case"middle":var f=(h[o]+c[o])/2,v=[];d[o]=v[o]=f,d[1-o]=h[1-o],v[1-o]=c[1-o],l.push(d),l.push(v);break;default:d[o]=h[o],d[1-o]=c[1-o],l.push(d)}}return t[i]&&l.push(t[i]),l}function k(t,data,e){var n=t.get("showAllSymbol"),o="auto"===n;if(!n||o){var l=e.getAxesByScale("ordinal")[0];if(l&&(!o||!function(t,data){var e=t.getExtent(),n=Math.abs(e[1]-e[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=data.count(),o=Math.max(1,Math.round(r/5)),l=0;l<r;l+=o)if(1.5*c.getSymbolSize(data,l)[t.isHorizontal()?1:0]>n)return!1;return!0}(l,data))){var h=data.mapDimension(l.dim),d={};return r.each(l.getViewLabels(),(function(t){d[t.tickValue]=1})),function(t){return!d.hasOwnProperty(data.get(h,t))}}}}function P(t,e,n){if("cartesian2d"===t.type){var r=t.getBaseAxis().isHorizontal(),o=T(t,e,n);if(!n.get("clip",!0)){var l=o.shape,c=Math.max(l.width,l.height);r?(l.y-=c,l.height+=2*c):(l.x-=c,l.width+=2*c)}return o}return A(t,e,n)}var O=x.extend({type:"line",init:function(){var t=new d.Group,e=new l;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var o=t.coordinateSystem,l=this.group,data=t.getData(),c=t.getModel("lineStyle"),h=t.getModel("areaStyle"),f=data.mapArray(data.getItemLayout),v="polar"===o.type,m=this._coordSys,y=this._symbolDraw,polyline=this._polyline,polygon=this._polygon,x=this._lineGroup,_=t.get("animation"),M=!h.isEmpty(),T=h.get("origin"),A=function(t,data,e){if(!e.valueDim)return[];for(var n=[],r=0,o=data.count();r<o;r++)n.push(S(e,t,data,r));return n}(o,data,w(o,data,T)),C=t.get("showSymbol"),O=C&&!v&&k(t,data,o),E=this._data;E&&E.eachItemGraphicEl((function(t,e){t.__temp&&(l.remove(t),E.setItemGraphicEl(e,null))})),C||y.remove(),l.add(x);var N,R=!v&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(null!=(N=o.getArea()).width?(N.x-=.1,N.y-=.1,N.width+=.2,N.height+=.2):N.r0&&(N.r0-=.5,N.r1+=.5)),this._clipShapeForSymbol=N,polyline&&m.type===o.type&&R===this._step?(M&&!polygon?polygon=this._newPolygon(f,A,o,_):polygon&&!M&&(x.remove(polygon),polygon=this._polygon=null),x.setClipPath(P(o,!1,t)),C&&y.updateData(data,{isIgnore:O,clipShape:N}),data.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),I(this._stackedOnPoints,A)&&I(this._points,f)||(_?this._updateAnimation(data,A,o,n,R,T):(R&&(f=L(f,o,R),A=L(A,o,R)),polyline.setShape({points:f}),polygon&&polygon.setShape({points:f,stackedOnPoints:A})))):(C&&y.updateData(data,{isIgnore:O,clipShape:N}),R&&(f=L(f,o,R),A=L(A,o,R)),polyline=this._newPolyline(f,o,_),M&&(polygon=this._newPolygon(f,A,o,_)),x.setClipPath(P(o,!0,t)));var z=function(data,t){var e=data.getVisual("visualMeta");if(e&&e.length&&data.count()&&"cartesian2d"===t.type){for(var n,o,i=e.length-1;i>=0;i--){var l=e[i].dimension,c=data.dimensions[l],h=data.getDimensionInfo(c);if("x"===(n=h&&h.coordDim)||"y"===n){o=e[i];break}}if(o){var f=t.getAxis(n),v=r.map(o.stops,(function(t){return{coord:f.toGlobalCoord(f.dataToCoord(t.value)),color:t.color}})),m=v.length,y=o.outerColors.slice();m&&v[0].coord>v[m-1].coord&&(v.reverse(),y.reverse());var x=v[0].coord-10,_=v[m-1].coord+10,w=_-x;if(w<.001)return"transparent";r.each(v,(function(t){t.offset=(t.coord-x)/w})),v.push({offset:m?v[m-1].offset:.5,color:y[1]||"transparent"}),v.unshift({offset:m?v[0].offset:.5,color:y[0]||"transparent"});var S=new d.LinearGradient(0,0,0,0,v,!0);return S[n]=x,S[n+"2"]=_,S}}}(data,o)||data.getVisual("color");polyline.useStyle(r.defaults(c.getLineStyle(),{fill:"none",stroke:z,lineJoin:"bevel"}));var B=t.get("smooth");if(B=D(t.get("smooth")),polyline.setShape({smooth:B,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),polygon){var V=data.getCalculationInfo("stackedOnSeries"),H=0;polygon.useStyle(r.defaults(h.getAreaStyle(),{fill:z,opacity:.7,lineJoin:"bevel"})),V&&(H=D(V.get("smooth"))),polygon.setShape({smooth:B,stackedOnSmooth:H,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=data,this._coordSys=o,this._stackedOnPoints=A,this._points=f,this._step=R,this._valueOrigin=T},dispose:function(){},highlight:function(t,e,n,r){var data=t.getData(),o=f.queryDataIndex(data,r);if(!(o instanceof Array)&&null!=o&&o>=0){var symbol=data.getItemGraphicEl(o);if(!symbol){var l=data.getItemLayout(o);if(!l)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l[0],l[1]))return;(symbol=new c(data,o)).position=l,symbol.setZ(t.get("zlevel"),t.get("z")),symbol.ignore=isNaN(l[0])||isNaN(l[1]),symbol.__temp=!0,data.setItemGraphicEl(o,symbol),symbol.stopSymbolAnimation(!0),this.group.add(symbol)}symbol.highlight()}else x.prototype.highlight.call(this,t,e,n,r)},downplay:function(t,e,n,r){var data=t.getData(),o=f.queryDataIndex(data,r);if(null!=o&&o>=0){var symbol=data.getItemGraphicEl(o);symbol&&(symbol.__temp?(data.setItemGraphicEl(o,null),this.group.remove(symbol)):symbol.downplay())}else x.prototype.downplay.call(this,t,e,n,r)},_newPolyline:function(t){var polyline=this._polyline;return polyline&&this._lineGroup.remove(polyline),polyline=new m({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(polyline),this._polyline=polyline,polyline},_newPolygon:function(t,e){var polygon=this._polygon;return polygon&&this._lineGroup.remove(polygon),polygon=new y({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(polygon),this._polygon=polygon,polygon},_updateAnimation:function(data,t,e,n,r,o){var polyline=this._polyline,polygon=this._polygon,l=data.hostModel,c=h(this._data,data,this._stackedOnPoints,t,this._coordSys,e,this._valueOrigin,o),f=c.current,v=c.stackedOnCurrent,m=c.next,y=c.stackedOnNext;if(r&&(f=L(c.current,e,r),v=L(c.stackedOnCurrent,e,r),m=L(c.next,e,r),y=L(c.stackedOnNext,e,r)),C(f,m)>3e3||polygon&&C(v,y)>3e3)return polyline.setShape({points:m}),void(polygon&&polygon.setShape({points:m,stackedOnPoints:y}));polyline.shape.__points=c.current,polyline.shape.points=f,d.updateProps(polyline,{shape:{points:m}},l),polygon&&(polygon.setShape({points:f,stackedOnPoints:v}),d.updateProps(polygon,{shape:{points:m,stackedOnPoints:y}},l));for(var x=[],_=c.status,i=0;i<_.length;i++){if("="===_[i].cmd){var w=data.getItemGraphicEl(_[i].idx1);w&&x.push({el:w,ptIdx:i})}}polyline.animators&&polyline.animators.length&&polyline.animators[0].during((function(){for(var i=0;i<x.length;i++){x[i].el.attr("position",polyline.shape.__points[x[i].ptIdx])}}))},remove:function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=O},function(t,e,n){var r=n(343),o=r.prepareDataCoordInfo,l=r.getStackedOnPoint;t.exports=function(t,e,n,r,c,h,d,f){for(var v=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),m=[],y=[],x=[],_=[],w=[],S=[],M=[],T=o(c,e,d),A=o(h,t,f),i=0;i<v.length;i++){var I=v[i],C=!0;switch(I.cmd){case"=":var D=t.getItemLayout(I.idx),L=e.getItemLayout(I.idx1);(isNaN(D[0])||isNaN(D[1]))&&(D=L.slice()),m.push(D),y.push(L),x.push(n[I.idx]),_.push(r[I.idx1]),M.push(e.getRawIndex(I.idx1));break;case"+":var k=I.idx;m.push(c.dataToPoint([e.get(T.dataDimsForPoint[0],k),e.get(T.dataDimsForPoint[1],k)])),y.push(e.getItemLayout(k).slice()),x.push(l(T,c,e,k)),_.push(r[k]),M.push(e.getRawIndex(k));break;case"-":k=I.idx;var P=t.getRawIndex(k);P!==k?(m.push(t.getItemLayout(k)),y.push(h.dataToPoint([t.get(A.dataDimsForPoint[0],k),t.get(A.dataDimsForPoint[1],k)])),x.push(n[k]),_.push(l(A,h,t,k)),M.push(P)):C=!1}C&&(w.push(I),S.push(S.length))}S.sort((function(a,b){return M[a]-M[b]}));var O=[],E=[],N=[],R=[],z=[];for(i=0;i<S.length;i++){k=S[i];O[i]=m[k],E[i]=y[k],N[i]=x[k],R[i]=_[k],z[i]=w[k]}return{current:O,next:E,stackedOnCurrent:N,stackedOnNext:R,status:z}}},function(t,e){var n={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},r=function(t,e){return Math.round(t.length/2)};t.exports=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,e,o){var data=t.getData(),l=t.get("sampling"),c=t.coordinateSystem;if("cartesian2d"===c.type&&l){var h,d=c.getBaseAxis(),f=c.getOtherAxis(d),v=d.getExtent(),m=v[1]-v[0],y=Math.round(data.count()/m);if(y>1)"string"==typeof l?h=n[l]:"function"==typeof l&&(h=l),h&&t.setData(data.downSample(data.mapDimension(f.dim),1/y,h,r))}}}}},function(t,e,n){var r=n(0),o=n(14),l=n(744);function c(t){l.call(this,t)}c.prototype={constructor:c,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(data){return this.getAxis("x").containData(data[0])&&this.getAxis("y").containData(data[1])},dataToPoint:function(data,t,e){var n=this.getAxis("x"),r=this.getAxis("y");return(e=e||[])[0]=n.toGlobalCoord(n.dataToCoord(data[0])),e[1]=r.toGlobalCoord(r.dataToCoord(data[1])),e},clampData:function(data,t){var e=this.getAxis("x").scale,n=this.getAxis("y").scale,r=e.getExtent(),o=n.getExtent(),l=e.parse(data[0]),c=n.parse(data[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),l),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),c),Math.max(o[0],o[1])),t},pointToData:function(t,e){var n=this.getAxis("x"),r=this.getAxis("y");return(e=e||[])[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=r.coordToData(r.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),l=Math.max(t[0],t[1])-n,c=Math.max(e[0],e[1])-r;return new o(n,r,l,c)}},r.inherits(c,l);var h=c;t.exports=h},function(t,e,n){var r=n(0);function o(t){return this._axes[t]}var l=function(t){this._axes={},this._dimList=[],this.name=t||""};l.prototype={constructor:l,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return r.map(this._dimList,o,this)},getAxesByScale:function(t){return t=t.toLowerCase(),r.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(input,t){for(var e=this._dimList,output=input instanceof Array?[]:{},i=0;i<e.length;i++){var n=e[i],r=this._axes[n];output[n]=r[t](input[n])}return output}};var c=l;t.exports=c},function(t,e,n){var r=n(0),o=n(66),l=function(t,e,n,r,l){o.call(this,t,e,n),this.type=r||"value",this.position=l||"bottom"};l.prototype={constructor:l,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){n(345);var r=n(21).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=r},function(t,e,n){n(345),n(748)},function(t,e,n){var r=n(0),o=n(2),l=n(67),c=n(81),h=n(347),d=n(348),f=d.rectCoordAxisBuildSplitArea,v=d.rectCoordAxisHandleRemove,m=["axisLine","axisTickLabel","axisName"],y=["splitArea","splitLine","minorSplitLine"],x=c.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,c){this.group.removeAll();var d=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),t.get("show")){var f=t.getCoordSysModel(),v=h.layout(f,t),_=new l(t,v);r.each(m,_.add,_),this._axisGroup.add(_.getGroup()),r.each(y,(function(e){t.get(e+".show")&&this["_"+e](t,f)}),this),o.groupTransition(d,this._axisGroup,t),x.superCall(this,"render",t,e,n,c)}},remove:function(){v(this)},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var l=t.getModel("splitLine"),c=l.getModel("lineStyle"),h=c.get("color");h=r.isArray(h)?h:[h];for(var d=e.coordinateSystem.getRect(),f=n.isHorizontal(),v=0,m=n.getTicksCoords({tickModel:l}),y=[],x=[],_=c.getLineStyle(),i=0;i<m.length;i++){var w=n.toGlobalCoord(m[i].coord);f?(y[0]=w,y[1]=d.y,x[0]=w,x[1]=d.y+d.height):(y[0]=d.x,y[1]=w,x[0]=d.x+d.width,x[1]=w);var S=v++%h.length,M=m[i].tickValue;this._axisGroup.add(new o.Line({anid:null!=M?"line_"+m[i].tickValue:null,subPixelOptimize:!0,shape:{x1:y[0],y1:y[1],x2:x[0],y2:x[1]},style:r.defaults({stroke:h[S]},_),silent:!0}))}}},_minorSplitLine:function(t,e){var n=t.axis,r=t.getModel("minorSplitLine").getModel("lineStyle"),l=e.coordinateSystem.getRect(),c=n.isHorizontal(),h=n.getMinorTicksCoords();if(h.length)for(var d=[],f=[],v=r.getLineStyle(),i=0;i<h.length;i++)for(var m=0;m<h[i].length;m++){var y=n.toGlobalCoord(h[i][m].coord);c?(d[0]=y,d[1]=l.y,f[0]=y,f[1]=l.y+l.height):(d[0]=l.x,d[1]=y,f[0]=l.x+l.width,f[1]=y),this._axisGroup.add(new o.Line({anid:"minor_line_"+h[i][m].tickValue,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:v,silent:!0}))}},_splitArea:function(t,e){f(this,this._axisGroup,t,e)}});x.extend({type:"xAxis"}),x.extend({type:"yAxis"})},function(t,e,n){var r=n(1),o=n(0),l=n(165),c=l.layout,h=l.largeLayout;n(216),n(750),n(751),n(129),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,o.curry(c,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,h),r.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},function(t,e,n){var r=n(349).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});t.exports=r},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(2),c=n(350).setLabel,h=n(19),d=n(752),f=n(17),v=n(76),m=n(64).throttle,y=n(127).createClipPath,x=n(753),_=["itemStyle","barBorderWidth"],w=[0,0];o.extend(h.prototype,d);var S=r.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var r=t.get("coordinateSystem");return"cartesian2d"!==r&&"polar"!==r||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,r){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var r,o=this.group,data=t.getData(),c=this._data,h=t.coordinateSystem,d=h.getBaseAxis();"cartesian2d"===h.type?r=d.isHorizontal():"polar"===h.type&&(r="angle"===d.dim);var f=t.isAnimationEnabled()?t:null,m=t.get("clip",!0),y=function(t,data){var e=t.getArea&&t.getArea();if("cartesian2d"===t.type){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var r=data.getLayout("bandWidth");n.isHorizontal()?(e.x-=r,e.width+=2*r):(e.y-=r,e.height+=2*r)}}return e}(h,data);o.removeClipPath();var x=t.get("roundCap",!0),_=t.get("showBackground",!0),w=t.getModel("backgroundStyle"),S=w.get("barBorderRadius")||0,M=[],T=this._backgroundEls||[];data.diff(c).add((function(e){var n=data.getItemModel(e),c=L[h.type](data,e,n);if(_){var d=L[h.type](data,e),v=function(t,e,n){return new("polar"===t.type?l.Sector:l.Rect)({shape:R(e,n,t),silent:!0,z2:0})}(h,r,d);v.useStyle(w.getBarItemStyle()),"cartesian2d"===h.type&&v.setShape("r",S),M[e]=v}if(data.hasValue(e)){if(m)if(A[h.type](y,c))return void o.remove(T);var T=I[h.type](e,c,r,f,!1,x);data.setItemGraphicEl(e,T),o.add(T),P(T,data,e,n,c,t,r,"polar"===h.type)}})).update((function(e,n){var d=data.getItemModel(e),v=L[h.type](data,e,d);if(_){var C=T[n];C.useStyle(w.getBarItemStyle()),"cartesian2d"===h.type&&C.setShape("r",S),M[e]=C;var D=L[h.type](data,e),k=R(r,D,h);l.updateProps(C,{shape:k},f,e)}var O=c.getItemGraphicEl(n);if(data.hasValue(e)){if(m)if(A[h.type](y,v))return void o.remove(O);O?l.updateProps(O,{shape:v},f,e):O=I[h.type](e,v,r,f,!0,x),data.setItemGraphicEl(e,O),o.add(O),P(O,data,e,d,v,t,r,"polar"===h.type)}else o.remove(O)})).remove((function(t){var e=c.getItemGraphicEl(t);"cartesian2d"===h.type?e&&C(t,f,e):e&&D(t,f,e)})).execute();var k=this._backgroundGroup||(this._backgroundGroup=new v);k.removeAll();for(var i=0;i<M.length;++i)k.add(M[i]);o.add(k),this._backgroundEls=M,this._data=data},_renderLarge:function(t,e,n){this._clear(),E(t,this.group);var r=t.get("clip",!0)?y(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),E(e,this.group,!0)},dispose:o.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,data=this._data;t&&t.get("animation")&&data&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],data.eachItemGraphicEl((function(e){"sector"===e.type?D(e.dataIndex,t,e):C(e.dataIndex,t,e)}))):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),M=Math.max,T=Math.min,A={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var o=M(e.x,t.x),l=T(e.x+e.width,t.x+t.width),c=M(e.y,t.y),h=T(e.y+e.height,t.y+t.height);e.x=o,e.y=c,e.width=l-o,e.height=h-c;var d=e.width<0||e.height<0;return n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),d},polar:function(t){return!1}},I={cartesian2d:function(t,e,n,r,c){var rect=new l.Rect({shape:o.extend({},e),z2:1});if(rect.name="item",r){var h=n?"height":"width",d={};rect.shape[h]=0,d[h]=e[h],l[c?"updateProps":"initProps"](rect,{shape:d},r,t)}return rect},polar:function(t,e,n,r,c,h){var d=e.startAngle<e.endAngle,f=new(!n&&h?x:l.Sector)({shape:o.defaults({clockwise:d},e),z2:1});if(f.name="item",r){var v=n?"r":"endAngle",m={};f.shape[v]=n?0:e.startAngle,m[v]=e[v],l[c?"updateProps":"initProps"](f,{shape:m},r,t)}return f}};function C(t,e,n){n.style.text=null,l.updateProps(n,{shape:{width:0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}function D(t,e,n){n.style.text=null,l.updateProps(n,{shape:{r:n.shape.r0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}var L={cartesian2d:function(data,t,e){var n=data.getItemLayout(t),r=e?function(t,e){var n=t.get(_)||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,r,o)}(e,n):0,o=n.width>0?1:-1,l=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+l*r/2,width:n.width-o*r,height:n.height-l*r}},polar:function(data,t,e){var n=data.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function k(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function P(t,data,e,n,r,h,d,f){var v=data.getItemVisual(e,"color"),m=data.getItemVisual(e,"opacity"),y=data.getVisual("borderColor"),x=n.getModel("itemStyle"),_=n.getModel("emphasis.itemStyle").getBarItemStyle();f||t.setShape("r",x.get("barBorderRadius")||0),t.useStyle(o.defaults({stroke:k(r)?"none":y,fill:k(r)?"none":v,opacity:m},x.getBarItemStyle()));var w=n.getShallow("cursor");w&&t.attr("cursor",w);var S=d?r.height>0?"bottom":"top":r.width>0?"left":"right";f||c(t.style,_,n,v,h,e,S),k(r)&&(_.fill=_.stroke="none"),l.setHoverStyle(t,_)}var O=f.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,r=this.__startPoint,o=this.__baseDimIdx,i=0;i<n.length;i+=2)r[o]=n[i+o],t.moveTo(r[0],r[1]),t.lineTo(n[i],n[i+1])}});function E(t,e,n){var data=t.getData(),r=[],o=data.getLayout("valueAxisHorizontal")?1:0;r[1-o]=data.getLayout("valueAxisStart");var l=data.getLayout("largeDataIndices"),c=data.getLayout("barWidth"),h=t.getModel("backgroundStyle");if(t.get("showBackground",!0)){var d=data.getLayout("largeBackgroundPoints"),f=[];f[1-o]=data.getLayout("backgroundStart");var v=new O({shape:{points:d},incremental:!!n,__startPoint:f,__baseDimIdx:o,__largeDataIndices:l,__barWidth:c,silent:!0,z2:0});!function(t,e,data){var n=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=data.getLayout("barWidth")}(v,h,data),e.add(v)}var m=new O({shape:{points:data.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:o,__largeDataIndices:l,__barWidth:c});e.add(m),function(t,e,data){var n=data.getVisual("borderColor")||data.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=data.getLayout("barWidth")}(m,t,data),m.seriesIndex=t.seriesIndex,t.get("silent")||(m.on("mousedown",N),m.on("mousemove",N))}var N=m((function(t){var e=function(t,e,n){var r=t.__baseDimIdx,o=1-r,l=t.shape.points,c=t.__largeDataIndices,h=Math.abs(t.__barWidth/2),d=t.__startPoint[o];w[0]=e,w[1]=n;for(var f=w[r],v=w[1-r],m=f-h,y=f+h,i=0,x=l.length/2;i<x;i++){var _=2*i,S=l[_+r],M=l[_+o];if(S>=m&&S<=y&&(d<=M?v>=d&&v<=M:v>=M&&v<=d))return c[i]}return-1}(this,t.offsetX,t.offsetY);this.dataIndex=e>=0?e:null}),30,!1);function R(t,e,n){var r,o="polar"===n.type;return r=o?n.getArea():n.grid.getRect(),o?{cx:r.cx,cy:r.cy,r0:t?r.r0:e.r0,r:t?r.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:r.x,y:t?r.y:e.y,width:t?e.width:r.width,height:t?r.height:e.height}}t.exports=S},function(t,e,n){var r=n(93)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getBarItemStyle:function(t){var style=r(this,t);if(this.getBorderLineDash){var e=this.getBorderLineDash();e&&(style.lineDash=e)}return style}};t.exports=o},function(t,e,n){var r=(0,n(2).extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,r=e.cy,o=Math.max(e.r0||0,0),l=Math.max(e.r,0),c=.5*(l-o),h=o+c,d=e.startAngle,f=e.endAngle,v=e.clockwise,m=Math.cos(d),y=Math.sin(d),x=Math.cos(f),_=Math.sin(f);(v?f-d<2*Math.PI:d-f<2*Math.PI)&&(t.moveTo(m*o+n,y*o+r),t.arc(m*h+n,y*h+r,c,-Math.PI+d,d,!v)),t.arc(n,r,l,d,f,!v),t.moveTo(x*l+n,_*l+r),t.arc(x*h+n,_*h+r,c,f-2*Math.PI,f-Math.PI,!v),0!==o&&(t.arc(n,r,o,f,d,v),t.moveTo(m*o+n,_*o+r)),t.closePath()}});t.exports=r},function(t,e,n){var r=n(1),o=n(0);n(755),n(756);var l=n(351),c=n(169),h=n(757),d=n(131);l("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),r.registerVisual(c("pie")),r.registerLayout(o.curry(h,"pie")),r.registerProcessor(d("pie"))},function(t,e,n){var r=n(1),o=n(98),l=n(0),c=n(6),h=n(5).getPercentWithPrecision,d=n(217),f=n(78).retrieveRawAttr,v=n(55).makeSeriesEncodeForNameBased,m=n(130),y=r.extendSeriesModel({type:"series.pie",init:function(option){y.superApply(this,"init",arguments),this.legendVisualProvider=new m(l.bind(this.getData,this),l.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(option)},mergeOption:function(t){y.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(option,t){return o(this,{coordDimensions:["value"],encodeDefaulter:l.curry(v,this)})},_createSelectableList:function(){for(var data=this.getRawData(),t=data.mapDimension("value"),e=[],i=0,n=data.count();i<n;i++)e.push({name:data.getName(i),value:data.get(t,i),selected:f(data,i,"selected")});return e},getDataParams:function(t){var data=this.getData(),e=y.superCall(this,"getDataParams",t),n=[];return data.each(data.mapDimension("value"),(function(t){n.push(t)})),e.percent=h(n,t,data.hostModel.get("percentPrecision")),e.$vars.push("percent"),e},_defaultLabelLine:function(option){c.defaultEmphasis(option,"labelLine",["show"]);var t=option.labelLine,e=option.emphasis.labelLine;t.show=t.show&&option.label.show,e.show=e.show&&option.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});l.mixin(y,d);var x=y;t.exports=x},function(t,e,n){var r=n(0),o=n(2),l=n(48);function c(t,e,n,r){var data=e.getData(),o=this.dataIndex,l=data.getName(o),c=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:l,seriesId:e.id}),data.each((function(t){h(data.getItemGraphicEl(t),data.getItemLayout(t),e.isSelected(data.getName(t)),c,n)}))}function h(t,e,n,r,o){var l=(e.startAngle+e.endAngle)/2,c=n?r:0,h=[Math.cos(l)*c,Math.sin(l)*c];o?t.animate().when(200,{position:h}).start("bounceOut"):t.attr("position",h)}function d(data,t){o.Group.call(this);var e=new o.Sector({z2:2}),polyline=new o.Polyline,text=new o.Text;this.add(e),this.add(polyline),this.add(text),this.updateData(data,t,!0)}var f=d.prototype;f.updateData=function(data,t,e){var n=this.childAt(0),l=this.childAt(1),c=this.childAt(2),d=data.hostModel,f=data.getItemModel(t),v=data.getItemLayout(t),m=r.extend({},v);m.label=null;var y=d.getShallow("animationTypeUpdate");e?(n.setShape(m),"scale"===d.getShallow("animationType")?(n.shape.r=v.r0,o.initProps(n,{shape:{r:v.r}},d,t)):(n.shape.endAngle=v.startAngle,o.updateProps(n,{shape:{endAngle:v.endAngle}},d,t))):"expansion"===y?n.setShape(m):o.updateProps(n,{shape:m},d,t);var x=data.getItemVisual(t,"color");n.useStyle(r.defaults({lineJoin:"bevel",fill:x},f.getModel("itemStyle").getItemStyle())),n.hoverStyle=f.getModel("emphasis.itemStyle").getItemStyle();var _=f.getShallow("cursor");_&&n.attr("cursor",_),h(this,data.getItemLayout(t),d.isSelected(data.getName(t)),d.get("selectedOffset"),d.get("animation"));var w=!e&&"transition"===y;this._updateLabel(data,t,w),this.highDownOnUpdate=d.get("silent")?null:function(t,e){var r=d.isAnimationEnabled()&&f.get("hoverAnimation");"emphasis"===e?(l.ignore=l.hoverIgnore,c.ignore=c.hoverIgnore,r&&(n.stopAnimation(!0),n.animateTo({shape:{r:v.r+d.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,c.ignore=c.normalIgnore,r&&(n.stopAnimation(!0),n.animateTo({shape:{r:v.r}},300,"elasticOut")))},o.setHoverStyle(this)},f._updateLabel=function(data,t,e){var n=this.childAt(1),r=this.childAt(2),l=data.hostModel,c=data.getItemModel(t),h=data.getItemLayout(t).label,d=data.getItemVisual(t,"color");if(!h||isNaN(h.x)||isNaN(h.y))r.ignore=r.normalIgnore=r.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0;else{var f={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},v={x:h.x,y:h.y};e?(o.updateProps(n,{shape:f},l,t),o.updateProps(r,{style:v},l,t)):(n.attr({shape:f}),r.attr({style:v})),r.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var m=c.getModel("label"),y=c.getModel("emphasis.label"),x=c.getModel("labelLine"),_=c.getModel("emphasis.labelLine");d=data.getItemVisual(t,"color");o.setLabelStyle(r.style,r.hoverStyle={},m,y,{labelFetcher:data.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:d,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:data.getItemVisual(t,"opacity")}),r.ignore=r.normalIgnore=!m.get("show"),r.hoverIgnore=!y.get("show"),n.ignore=n.normalIgnore=!x.get("show"),n.hoverIgnore=!_.get("show"),n.setStyle({stroke:d,opacity:data.getItemVisual(t,"opacity")}),n.setStyle(x.getModel("lineStyle").getLineStyle()),n.hoverStyle=_.getModel("lineStyle").getLineStyle();var w=x.get("smooth");w&&!0===w&&(w=.4),n.setShape({smooth:w})}},r.inherits(d,o.Group);var v=l.extend({type:"pie",init:function(){var t=new o.Group;this._sectorGroup=t},render:function(t,e,n,o){if(!o||o.from!==this.uid){var data=t.getData(),l=this._data,h=this.group,f=e.get("animation"),v=!l,m=t.get("animationType"),y=t.get("animationTypeUpdate"),x=r.curry(c,this.uid,t,f,n),_=t.get("selectedMode");if(data.diff(l).add((function(t){var e=new d(data,t);v&&"scale"!==m&&e.eachChild((function(t){t.stopAnimation(!0)})),_&&e.on("click",x),data.setItemGraphicEl(t,e),h.add(e)})).update((function(t,e){var n=l.getItemGraphicEl(e);v||"transition"===y||n.eachChild((function(t){t.stopAnimation(!0)})),n.updateData(data,t),n.off("click"),_&&n.on("click",x),h.add(n),data.setItemGraphicEl(t,n)})).remove((function(t){var e=l.getItemGraphicEl(t);h.remove(e)})).execute(),f&&data.count()>0&&(v?"scale"!==m:"transition"!==y)){for(var w=data.getItemLayout(0),s=1;isNaN(w.startAngle)&&s<data.count();++s)w=data.getItemLayout(s);var S=Math.max(n.getWidth(),n.getHeight())/2,M=r.bind(h.removeClipPath,h);h.setClipPath(this._createClipPath(w.cx,w.cy,S,w.startAngle,w.clockwise,M,t,v))}else h.removeClipPath();this._data=data}},dispose:function(){},_createClipPath:function(t,e,n,r,l,c,h,d){var f=new o.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:r,endAngle:r,clockwise:l}});return(d?o.initProps:o.updateProps)(f,{shape:{endAngle:r+(l?1:-1)*Math.PI*2}},h,c),f},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,o=t[1]-n.cy,l=Math.sqrt(r*r+o*o);return l<=n.r&&l>=n.r0}}});t.exports=v},function(t,e,n){var r=n(5),o=r.parsePercent,l=r.linearMap,c=n(9),h=n(758),d=n(0),f=2*Math.PI,v=Math.PI/180;t.exports=function(t,e,n,r){e.eachSeriesByType(t,(function(t){var data=t.getData(),e=data.mapDimension("value"),r=function(t,e){return c.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n),m=t.get("center"),y=t.get("radius");d.isArray(y)||(y=[0,y]),d.isArray(m)||(m=[m,m]);var x=o(r.width,n.getWidth()),_=o(r.height,n.getHeight()),w=Math.min(x,_),S=o(m[0],x)+r.x,M=o(m[1],_)+r.y,T=o(y[0],w/2),A=o(y[1],w/2),I=-t.get("startAngle")*v,C=t.get("minAngle")*v,D=0;data.each(e,(function(t){!isNaN(t)&&D++}));var L=data.getSum(e),k=Math.PI/(L||D)*2,P=t.get("clockwise"),O=t.get("roseType"),E=t.get("stillShowZeroSum"),N=data.getDataExtent(e);N[0]=0;var R=f,z=0,B=I,V=P?1:-1;if(data.each(e,(function(t,e){var n;if(isNaN(t))data.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:S,cy:M,r0:T,r:O?NaN:A,viewRect:r});else{(n="area"!==O?0===L&&E?k:t*k:f/D)<C?(n=C,R-=C):z+=t;var o=B+V*n;data.setItemLayout(e,{angle:n,startAngle:B,endAngle:o,clockwise:P,cx:S,cy:M,r0:T,r:O?l(t,N,[T,A]):A,viewRect:r}),B=o}})),R<f&&D)if(R<=.001){var H=f/D;data.each(e,(function(t,e){if(!isNaN(t)){var n=data.getItemLayout(e);n.angle=H,n.startAngle=I+V*e*H,n.endAngle=I+V*(e+1)*H}}))}else k=R/z,B=I,data.each(e,(function(t,e){if(!isNaN(t)){var n=data.getItemLayout(e),r=n.angle===C?C:t*k;n.startAngle=B,n.endAngle=B+V*r,B+=V*r}}));h(t,A,r.width,r.height,r.x,r.y)}))}},function(t,e,n){var r=n(33),o=n(5).parsePercent,l=Math.PI/180;function c(t,e,n,r,o,l,c,h,d,f){function v(e,n,r,o){for(var l=e;l<n&&!(t[l].y+r>d+c);l++)if(t[l].y+=r,l>e&&l+1<n&&t[l+1].y>t[l].y+t[l].height)return void m(l,r/2);m(n-1,r/2)}function m(e,n){for(var r=e;r>=0&&!(t[r].y-n<d)&&(t[r].y-=n,!(r>0&&t[r].y>t[r-1].y+t[r-1].height));r--);}function y(t,e,n,r,o,l){for(var c=e?Number.MAX_VALUE:0,i=0,h=t.length;i<h;i++)if("none"===t[i].labelAlignTo){var d=Math.abs(t[i].y-r),f=t[i].len,v=t[i].len2,m=d<o+f?Math.sqrt((o+f+v)*(o+f+v)-d*d):Math.abs(t[i].x-n);e&&m>=c&&(m=c-10),!e&&m<=c&&(m=c+10),t[i].x=n+m*l,c=m}}t.sort((function(a,b){return a.y-b.y}));for(var x,_=0,w=t.length,S=[],M=[],i=0;i<w;i++){if("outer"===t[i].position&&"labelLine"===t[i].labelAlignTo){var T=t[i].x-f;t[i].linePoints[1][0]+=T,t[i].x=f}(x=t[i].y-_)<0&&v(i,w,-x),_=t[i].y+t[i].height}c-_<0&&m(w-1,_-c);for(i=0;i<w;i++)t[i].y>=n?M.push(t[i]):S.push(t[i]);y(S,!1,e,n,r,o),y(M,!0,e,n,r,o)}function h(t){return"center"===t.position}t.exports=function(t,e,n,d,f,v){var m,y,data=t.getData(),x=[],_=!1,w=(t.get("minShowLabelAngle")||0)*l;data.each((function(l){var c=data.getItemLayout(l),h=data.getItemModel(l),d=h.getModel("label"),v=d.get("position")||h.get("emphasis.label.position"),S=d.get("distanceToLabelLine"),M=d.get("alignTo"),T=o(d.get("margin"),n),A=d.get("bleedMargin"),I=d.getFont(),C=h.getModel("labelLine"),D=C.get("length");D=o(D,n);var L=C.get("length2");if(L=o(L,n),!(c.angle<w)){var k,P,O,E,N=(c.startAngle+c.endAngle)/2,R=Math.cos(N),z=Math.sin(N);m=c.cx,y=c.cy;var B,text=t.getFormattedLabel(l,"normal")||data.getName(l),V=r.getBoundingRect(text,I,E,"top"),H="inside"===v||"inner"===v;if("center"===v)k=c.cx,P=c.cy,E="center";else{var F=(H?(c.r+c.r0)/2*R:c.r*R)+m,G=(H?(c.r+c.r0)/2*z:c.r*z)+y;if(k=F+3*R,P=G+3*z,!H){var W=F+R*(D+e-c.r),j=G+z*(D+e-c.r),U=W+(R<0?-1:1)*L;k="edge"===M?R<0?f+T:f+n-T:U+(R<0?-S:S),P=j,O=[[F,G],[W,j],[U,j]]}E=H?"center":"edge"===M?R>0?"right":"left":R>0?"left":"right"}var Z=d.get("rotate");B="number"==typeof Z?Z*(Math.PI/180):Z?R<0?-N+Math.PI:-N:0,_=!!B,c.label={x:k,y:P,position:v,height:V.height,len:D,len2:L,linePoints:O,textAlign:E,verticalAlign:"middle",rotation:B,inside:H,labelDistance:S,labelAlignTo:M,labelMargin:T,bleedMargin:A,textRect:V,text:text,font:I},H||x.push(c.label)}})),!_&&t.get("avoidLabelOverlap")&&function(t,e,n,o,l,d,f,v){for(var m=[],y=[],x=Number.MAX_VALUE,_=-Number.MAX_VALUE,i=0;i<t.length;i++)h(t[i])||(t[i].x<e?(x=Math.min(x,t[i].x),m.push(t[i])):(_=Math.max(_,t[i].x),y.push(t[i])));for(c(y,e,n,o,1,0,d,0,v,_),c(m,e,n,o,-1,0,d,0,v,x),i=0;i<t.length;i++){var w=t[i];if(!h(w)){var S=w.linePoints;if(S){var M,T="edge"===w.labelAlignTo,A=w.textRect.width;(M=T?w.x<e?S[2][0]-w.labelDistance-f-w.labelMargin:f+l-w.labelMargin-S[2][0]-w.labelDistance:w.x<e?w.x-f-w.bleedMargin:f+l-w.x-w.bleedMargin)<w.textRect.width&&(w.text=r.truncateText(w.text,M,w.font),"edge"===w.labelAlignTo&&(A=r.getWidth(w.text,w.font)));var I=S[1][0]-S[2][0];T?w.x<e?S[2][0]=f+w.labelMargin+A+w.labelDistance:S[2][0]=f+l-w.labelMargin-A-w.labelDistance:(w.x<e?S[2][0]=w.x+w.labelDistance:S[2][0]=w.x-w.labelDistance,S[1][0]=S[2][0]+I),S[1][1]=S[2][1]=w.y}}}}(x,m,y,e,n,d,f,v)}},function(t,e,n){var r=n(1);n(760),n(761);var o=n(80),l=n(128);n(129),r.registerVisual(o("scatter","circle")),r.registerLayout(l("scatter"))},function(t,e,n){var r=n(56),o=n(22).extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(option,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});t.exports=o},function(t,e,n){var r=n(1),o=n(126),l=n(762),c=n(128);r.extendChartView({type:"scatter",render:function(t,e,n){var data=t.getData();this._updateSymbolDraw(data,t).updateData(data,{clipShape:this._getClipShape(t)}),this._finished=!0},incrementalPrepareRender:function(t,e,n){var data=t.getData();this._updateSymbolDraw(data,t).incrementalPrepareUpdate(data),this._finished=!1},incrementalRender:function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var data=t.getData();if(this.group.dirty(),!this._finished||data.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=c().reset(t);r.progress&&r.progress({start:0,end:data.count()},data),this._symbolDraw.updateLayout(data)},_getClipShape:function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},_updateSymbolDraw:function(data,t){var e=this._symbolDraw,n=t.pipelineContext.large;return e&&n===this._isLargeDraw||(e&&e.remove(),e=this._symbolDraw=n?new l:new o,this._isLargeDraw=n,this.group.removeAll()),this.group.add(e.group),e},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},function(t,e,n){var r=n(2),o=n(38).createSymbol,l=n(211),c=r.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(path,t){var e=t.points,n=t.size,r=this.symbolProxy,o=r.shape;if(!((path.getContext?path.getContext():path)&&n[0]<4))for(var i=0;i<e.length;){var l=e[i++],c=e[i++];isNaN(l)||isNaN(c)||(this.softClipShape&&!this.softClipShape.contain(l,c)||(o.x=l-n[0]/2,o.y=c-n[1]/2,o.width=n[0],o.height=n[1],r.buildPath(path,o,!0)))}},afterBrush:function(t){var e=this.shape,n=e.points,r=e.size;if(r[0]<4){this.setTransform(t);for(var i=0;i<n.length;){var o=n[i++],l=n[i++];isNaN(o)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(o,l)||t.fillRect(o-r[0]/2,l-r[1]/2,r[0],r[1]))}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var n=this.shape,r=n.points,o=n.size,l=Math.max(o[0],4),c=Math.max(o[1],4),h=r.length/2-1;h>=0;h--){var i=2*h,d=r[i]-l/2,f=r[i+1]-c/2;if(t>=d&&e>=f&&t<=d+l&&e<=f+c)return h}return-1}});function h(){this.group=new r.Group}var d=h.prototype;d.isPersistent=function(){return!this._incremental},d.updateData=function(data,t){this.group.removeAll();var e=new c({rectHover:!0,cursor:"default"});e.setShape({points:data.getLayout("symbolPoints")}),this._setCommon(e,data,!1,t),this.group.add(e),this._incremental=null},d.updateLayout=function(data){if(!this._incremental){var t=data.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t)}))}},d.incrementalPrepareUpdate=function(data){this.group.removeAll(),this._clearIncremental(),data.count()>2e6?(this._incremental||(this._incremental=new l({silent:!0})),this.group.add(this._incremental)):this._incremental=null},d.incrementalUpdate=function(t,data,e){var n;this._incremental?(n=new c,this._incremental.addDisplayable(n,!0)):((n=new c({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(n)),n.setShape({points:data.getLayout("symbolPoints")}),this._setCommon(n,data,!!this._incremental,e)},d._setCommon=function(t,data,e,n){var r=data.hostModel;n=n||{};var l=data.getVisual("symbolSize");t.setShape("size",l instanceof Array?l:[l,l]),t.softClipShape=n.clipShape||null,t.symbolProxy=o(data.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var c=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(c?["color","shadowBlur","shadowColor"]:["color"]));var h=data.getVisual("color");h&&t.setColor(h),e||(t.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(t.dataIndex=n+(t.startIndex||0))})))},d.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},d._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var f=h;t.exports=f},function(t,e,n){var r=n(1);n(764),n(769),n(770);var o=n(169),l=n(80),c=n(771),h=n(131),d=n(772);r.registerVisual(o("radar")),r.registerVisual(l("radar","circle")),r.registerLayout(c),r.registerProcessor(h("radar")),r.registerPreprocessor(d)},function(t,e,n){n(765),n(767),n(768)},function(t,e,n){var r=n(0),o=n(766),l=n(164),c=n(5),h=n(43),d=h.getScaleExtent,f=h.niceScaleExtent,v=n(42),m=n(339);function y(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=r.map(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new o(n,"log"===t.get("axisType")?new m:new l);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n),this.cx,this.cy,this.r,this.r0,this.startAngle}y.prototype.getIndicatorAxes=function(){return this._indicatorAxes},y.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},y.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},y.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var o,l=Math.atan2(-n,e),c=1/0,h=-1,i=0;i<this._indicatorAxes.length;i++){var d=this._indicatorAxes[i],f=Math.abs(l-d.angle);f<c&&(o=d,h=i,c=f)}return[h,+(o&&o.coordToData(r))]},y.prototype.resize=function(t,e){var n=t.get("center"),o=e.getWidth(),l=e.getHeight(),h=Math.min(o,l)/2;this.cx=c.parsePercent(n[0],o),this.cy=c.parsePercent(n[1],l),this.startAngle=t.get("startAngle")*Math.PI/180;var d=t.get("radius");"string"!=typeof d&&"number"!=typeof d||(d=[0,d]),this.r0=c.parsePercent(d[0],h),this.r=c.parsePercent(d[1],h),r.each(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},y.prototype.update=function(t,e){var n=this._indicatorAxes,o=this._model;r.each(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,l){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===o){var data=e.getData();r.each(n,(function(t){t.scale.unionExtentFromData(data,data.mapDimension(t.dim))}))}}),this);var l=o.get("splitNumber");function h(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}r.each(n,(function(t,e){var n=d(t.scale,t.model).extent;f(t.scale,t.model);var r=t.model,o=t.scale,v=r.getMin(),m=r.getMax(),y=o.getInterval();if(null!=v&&null!=m)o.setExtent(+v,+m),o.setInterval((m-v)/l);else if(null!=v){do{x=v+y*l,o.setExtent(+v,x),o.setInterval(y),y=h(y)}while(x<n[1]&&isFinite(x)&&isFinite(n[1]))}else if(null!=m){do{_=m-y*l,o.setExtent(_,+m),o.setInterval(y),y=h(y)}while(_>n[0]&&isFinite(_)&&isFinite(n[0]))}else{o.getTicks().length-1>l&&(y=h(y));var x=Math.ceil(n[1]/y)*y,_=c.round(x-y*l);o.setExtent(_,x),o.setInterval(y)}}))},y.dimensions=[],y.create=function(t,e){var n=[];return t.eachComponent("radar",(function(r){var o=new y(r,t,e);n.push(o),r.coordinateSystem=o})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])})),n},v.register("radar",y);var x=y;t.exports=x},function(t,e,n){var r=n(0),o=n(66);function l(t,e,n){o.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){var r=n(1),o=n(0),l=n(346),c=n(19),h=n(97),d=l.valueAxis;function f(t,e){return o.defaults({show:e},t)}var v=r.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),l=this.get("axisTick"),d=this.get("axisType"),f=this.get("axisLabel"),v=this.get("name"),m=this.get("name.show"),y=this.get("name.formatter"),x=this.get("nameGap"),_=this.get("triggerEvent"),w=o.map(this.get("indicator")||[],(function(w){null!=w.max&&w.max>0&&!w.min?w.min=0:null!=w.min&&w.min<0&&!w.max&&(w.max=0);var S=v;if(null!=w.color&&(S=o.defaults({color:w.color},v)),w=o.merge(o.clone(w),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:l,axisType:d,axisLabel:f,name:w.text,nameLocation:"end",nameGap:x,nameTextStyle:S,triggerEvent:_},!1),m||(w.name=""),"string"==typeof y){var M=w.name;w.name=y.replace("{value}",null!=M?M:"")}else"function"==typeof y&&(w.name=y(w.name,w));var T=o.extend(new c(w,null,this.ecModel),h);return T.mainType="radar",T.componentIndex=this.componentIndex,T}),this);this.getIndicatorModels=function(){return w}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:o.merge({lineStyle:{color:"#bbb"}},d.axisLine),axisLabel:f(d.axisLabel,!1),axisTick:f(d.axisTick,!1),axisType:"interval",splitLine:f(d.splitLine,!0),splitArea:f(d.splitArea,!0),indicator:[]}});t.exports=v},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(67),c=n(2),h=["axisLine","axisTickLabel","axisName"],d=r.extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=o.map(n,(function(t){return new l(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));o.each(r,(function(t){o.each(h,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),l=t.getModel("splitLine"),h=t.getModel("splitArea"),d=l.getModel("lineStyle"),f=h.getModel("areaStyle"),v=l.get("show"),m=h.get("show"),y=d.get("color"),x=f.get("color");y=o.isArray(y)?y:[y],x=o.isArray(x)?x:[x];var _=[],w=[];if("circle"===r)for(var S=n[0].getTicksCoords(),M=e.cx,T=e.cy,i=0;i<S.length;i++){if(v)_[O(_,y,i)].push(new c.Circle({shape:{cx:M,cy:T,r:S[i].coord}}));if(m&&i<S.length-1)w[O(w,x,i)].push(new c.Ring({shape:{cx:M,cy:T,r0:S[i].coord,r:S[i+1].coord}}))}else{var A,I=o.map(n,(function(t,n){var r=t.getTicksCoords();return A=null==A?r.length-1:Math.min(r.length-1,A),o.map(r,(function(t){return e.coordToPoint(t.coord,n)}))})),C=[];for(i=0;i<=A;i++){for(var D=[],L=0;L<n.length;L++)D.push(I[L][i]);if(D[0]&&D.push(D[0].slice()),v)_[O(_,y,i)].push(new c.Polyline({shape:{points:D}}));if(m&&C)w[O(w,x,i-1)].push(new c.Polygon({shape:{points:D.concat(C)}}));C=D.slice().reverse()}}var k=d.getLineStyle(),P=f.getAreaStyle();o.each(w,(function(t,e){this.group.add(c.mergePath(t,{style:o.defaults({stroke:"none",fill:x[e%x.length]},P),silent:!0}))}),this),o.each(_,(function(t,e){this.group.add(c.mergePath(t,{style:o.defaults({fill:"none",stroke:y[e%y.length]},k),silent:!0}))}),this)}function O(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}}});t.exports=d},function(t,e,n){var r=n(22),o=n(98),l=n(0),c=n(10).encodeHTML,h=n(130),d=r.extend({type:"series.radar",dependencies:["radar"],init:function(option){d.superApply(this,"init",arguments),this.legendVisualProvider=new h(l.bind(this.getData,this),l.bind(this.getRawData,this))},getInitialData:function(option,t){return o(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t){var data=this.getData(),e=this.coordinateSystem.getIndicatorAxes(),n=this.getData().getName(t);return c(""===n?this.name:n)+"<br/>"+l.map(e,(function(e,n){var r=data.get(data.mapDimension(e.dim),t);return c(e.name+" : "+r)})).join("<br />")},getTooltipPosition:function(t){if(null!=t)for(var data=this.getData(),e=this.coordinateSystem,n=data.getValues(l.map(e.dimensions,(function(t){return data.mapDimension(t)})),t,!0),i=0,r=n.length;i<r;i++)if(!isNaN(n[i])){var o=e.getIndicatorAxes();return e.coordToPoint(o[i].dataToCoord(n[i]),i)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),f=d;t.exports=f},function(t,e,n){var r=n(1),o=n(2),l=n(0),c=n(38);var h=r.extendChartView({type:"radar",render:function(t,e,n){var r=t.coordinateSystem,h=this.group,data=t.getData(),d=this._data;function f(data,t){var e=data.getItemVisual(t,"symbol")||"circle",n=data.getItemVisual(t,"color");if("none"!==e){var r=function(t){return l.isArray(t)||(t=[+t,+t]),t}(data.getItemVisual(t,"symbolSize")),o=c.createSymbol(e,-1,-1,2,2,n);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),o}}function v(e,n,r,data,l,c){r.removeAll();for(var i=0;i<n.length-1;i++){var h=f(data,l);h&&(h.__dimIdx=i,e[i]?(h.attr("position",e[i]),o[c?"initProps":"updateProps"](h,{position:n[i]},t,l)):h.attr("position",n[i]),r.add(h))}}function m(t){return l.map(t,(function(t){return[r.cx,r.cy]}))}data.diff(d).add((function(e){var n=data.getItemLayout(e);if(n){var polygon=new o.Polygon,polyline=new o.Polyline,r={shape:{points:n}};polygon.shape.points=m(n),polyline.shape.points=m(n),o.initProps(polygon,r,t,e),o.initProps(polyline,r,t,e);var l=new o.Group,c=new o.Group;l.add(polyline),l.add(polygon),l.add(c),v(polyline.shape.points,n,c,data,e,!0),data.setItemGraphicEl(e,l)}})).update((function(e,n){var r=d.getItemGraphicEl(n),polyline=r.childAt(0),polygon=r.childAt(1),l=r.childAt(2),c={shape:{points:data.getItemLayout(e)}};c.shape.points&&(v(polyline.shape.points,c.shape.points,l,data,e,!1),o.updateProps(polyline,c,t),o.updateProps(polygon,c,t),data.setItemGraphicEl(e,r))})).remove((function(t){h.remove(d.getItemGraphicEl(t))})).execute(),data.eachItemGraphicEl((function(t,e){var n=data.getItemModel(e),polyline=t.childAt(0),polygon=t.childAt(1),r=t.childAt(2),c=data.getItemVisual(e,"color");h.add(t),polyline.useStyle(l.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),polyline.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle();var d=n.getModel("areaStyle"),f=n.getModel("emphasis.areaStyle"),v=d.isEmpty()&&d.parentModel.isEmpty(),m=f.isEmpty()&&f.parentModel.isEmpty();m=m&&v,polygon.ignore=v,polygon.useStyle(l.defaults(d.getAreaStyle(),{fill:c,opacity:.7})),polygon.hoverStyle=f.getAreaStyle();var y=n.getModel("itemStyle").getItemStyle(["color"]),x=n.getModel("emphasis.itemStyle").getItemStyle(),_=n.getModel("label"),w=n.getModel("emphasis.label");r.eachChild((function(t){t.setStyle(y),t.hoverStyle=l.clone(x);var n=data.get(data.dimensions[t.__dimIdx],e);(null==n||isNaN(n))&&(n=""),o.setLabelStyle(t.style,t.hoverStyle,_,w,{labelFetcher:data.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:n,autoColor:c,isRectText:!0})})),t.highDownOnUpdate=function(t,e){polygon.attr("ignore","emphasis"===e?m:v)},o.setHoverStyle(t)})),this._data=data},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=h},function(t,e,n){var r=n(0);function o(t){return!isNaN(t[0])&&!isNaN(t[1])}function l(t){return[t.cx,t.cy]}t.exports=function(t){t.eachSeriesByType("radar",(function(t){var data=t.getData(),e=[],n=t.coordinateSystem;if(n){var c=n.getIndicatorAxes();r.each(c,(function(t,r){data.each(data.mapDimension(c[r].dim),(function(t,c){e[c]=e[c]||[];var h=n.dataToPoint(t,r);e[c][r]=o(h)?h:l(n)}))})),data.each((function(t){var c=r.find(e[t],(function(t){return o(t)}))||l(n);e[t].push(c.slice()),data.setItemLayout(t,e[t])}))}}))}},function(t,e,n){var r=n(0);t.exports=function(option){var t=option.polar;if(t){r.isArray(t)||(t=[t]);var e=[];r.each(t,(function(t,n){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),option.radar=option.radar||[],r.isArray(option.radar)||(option.radar=[option.radar]),option.radar.push(t)):e.push(t)})),option.polar=e}r.each(option.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}},function(t,e,n){var r=n(1);n(774),n(781),n(354),n(220);var o=n(783),l=n(784),c=n(785),h=n(786),d=n(351);r.registerLayout(o),r.registerVisual(l),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,c),r.registerPreprocessor(h),d("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(t,e,n){var r=n(0),o=n(98),l=n(22),c=n(10),h=c.encodeHTML,d=c.addCommas,f=n(217),v=n(78).retrieveRawAttr,m=n(170),y=n(55).makeSeriesEncodeForNameBased,x=l.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(option){for(var data=o(this,{coordDimensions:["value"],encodeDefaulter:r.curry(y,this)}),t=data.mapDimension("value"),e=r.createHashMap(),n=[],l=[],i=0,c=data.count();i<c;i++){var h=data.getName(i);e.set(h,!0),n.push({name:h,value:data.get(t,i),selected:v(data,i,"selected")})}var d=m.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return r.each(d.regions,(function(t){var r=t.name;e.get(r)||(n.push({name:r}),l.push(r))})),this.updateSelectedMap(n),data.appendValues([],l),data},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var data=this.getData();return data.get(data.mapDimension("value"),t)},getRegionModel:function(t){var data=this.getData();return data.getItemModel(data.indexOfName(t))},formatTooltip:function(t){for(var data=this.getData(),e=d(this.getRawValue(t)),n=data.getName(t),r=this.seriesGroup,o=[],i=0;i<r.length;i++){var l=r[i].originalData.indexOfName(n),c=data.mapDimension("value");isNaN(r[i].originalData.get(c,l))||o.push(h(r[i].name))}return o.join(", ")+"<br />"+h(n+" : "+e)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});r.mixin(x,f);var _=x;t.exports=_},function(t,e,n){var r=n(0).each,o=n(340),l=n(6).makeInner,c=n(776),h=n(777),d=n(778),f=n(779),v=l(),m={load:function(t,e,n){var l=v(e).parsed;if(l)return l;var m,x=e.specialAreas||{},_=e.geoJSON;try{m=_?o(_,n):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return c(t,m),r(m,(function(e){var n=e.name;h(t,e),d(t,e),f(t,e);var r=x[n];r&&e.transformTo(r.left,r.top,r.width,r.height)})),v(e).parsed={regions:m,boundingRect:y(m)}}};function y(t){for(var rect,i=0;i<t.length;i++){var e=t[i].getBoundingRect();(rect=rect||e.clone()).union(e)}return rect}t.exports=m},function(t,e,n){for(var r=n(0),o=n(341),l=[126,25],c=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],i=0;i<c.length;i++)for(var h=0;h<c[i].length;h++)c[i][h][0]/=10.5,c[i][h][1]/=-14,c[i][h][0]+=l[0],c[i][h][1]+=l[1];t.exports=function(t,e){"china"===t&&e.push(new o("南海诸岛",r.map(c,(function(t){return{type:"polygon",exterior:t}})),l))}},function(t,e){var n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};t.exports=function(t,e){if("china"===t){var r=n[e.name];if(r){var o=e.center;o[0]+=r[0]/10.5,o[1]+=-r[1]/14}}}},function(t,e){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};t.exports=function(t,e){if("world"===t){var r=n[e.name];if(r){var o=e.center;o[0]=r[0],o[1]=r[1]}}}},function(t,e){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];t.exports=function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:n[0]})}},function(t,e,n){var r=n(333),o=r.parseSVG,l=r.makeViewBoxTransform,c=n(76),h=n(208),d=n(0),f=d.assert,v=d.createHashMap,m=n(14),y=(0,n(6).makeInner)(),x={load:function(t,e){var n=y(e).originRoot;if(n)return{root:n,boundingRect:y(e).boundingRect};var r=_(e);return y(e).originRoot=r.root,y(e).boundingRect=r.boundingRect,r},makeGraphic:function(t,e,n){var r=y(e),o=r.rootMap||(r.rootMap=v()),l=o.get(n);if(l)return l;var c=r.originRoot,h=r.boundingRect;return r.originRootHostKey?l=_(e,h).root:(r.originRootHostKey=n,l=c),o.set(n,l)},removeGraphic:function(t,e,n){var r=y(e),o=r.rootMap;o&&o.removeKey(n),n===r.originRootHostKey&&(r.originRootHostKey=null)}};function _(t,e){var n,r,d=t.svgXML;try{r=(n=d&&o(d,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,f(null!=r)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var v=n.width,y=n.height,x=n.viewBoxRect;if(e||(e=null==v||null==y?r.getBoundingRect():new m(0,0,0,0),null!=v&&(e.width=v),null!=y&&(e.height=y)),x){var _=l(x,e.width,e.height),w=r;(r=new c).add(w),w.scale=_.scale,w.position=_.position}return r.setClipPath(new h({shape:e.plain()})),{root:r,boundingRect:e}}t.exports=x},function(t,e,n){var r=n(1),o=n(0),l=n(2),c=n(352),h=r.extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(l=this._mapDraw)&&o.add(l.group);else if(t.needsDrawMap){var l=this._mapDraw||new c(n,!0);o.add(l.group),l.draw(t,e,n,this,r),this._mapDraw=l}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var r=t.originalData,c=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var h=r.getItemLayout(n);if(h&&h.point){var v=h.point,m=h.offset,circle=new l.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:v[0]+9*m,cy:v[1],r:3},silent:!0,z2:8+(m?0:l.Z2_EMPHASIS_LIFT+1)});if(!m){var y=t.mainSeries.getData(),x=r.getName(n),_=y.indexOfName(x),w=r.getItemModel(n),S=w.getModel("label"),M=w.getModel("emphasis.label"),T=y.getItemGraphicEl(_),A=o.retrieve2(t.getFormattedLabel(_,"normal"),x),I=o.retrieve2(t.getFormattedLabel(_,"emphasis"),A),C=T.__seriesMapHighDown,D=Math.random();if(!C){C=T.__seriesMapHighDown={};var L=o.curry(d,!0),k=o.curry(d,!1);T.on("mouseover",L).on("mouseout",k).on("emphasis",L).on("normal",k)}T.__seriesMapCallKey=D,o.extend(C,{recordVersion:D,circle:circle,labelModel:S,hoverLabelModel:M,emphasisText:I,normalText:A}),f(C,!1)}c.add(circle)}}}))}});function d(t){var e=this.__seriesMapHighDown;e&&e.recordVersion===this.__seriesMapCallKey&&f(e,t)}function f(t,e){var circle=t.circle,n=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,c=t.normalText;e?(circle.style.extendFrom(l.setTextStyle({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),circle.__mapOriginalZ2=circle.z2,circle.z2+=l.Z2_EMPHASIS_LIFT):(l.setTextStyle(circle.style,n,{text:n.get("show")?c:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),circle.dirty(!1),null!=circle.__mapOriginalZ2&&(circle.z2=circle.__mapOriginalZ2,circle.__mapOriginalZ2=null))}t.exports=h},function(t,e,n){var r=n(0),o=n(14),l=n(221),c=n(170);function h(t,map,e,n){l.call(this,t),this.map=map;var source=c.load(map,e);this._nameCoordMap=source.nameCoordMap,this._regionsMap=source.regionsMap,this._invertLongitute=null==n||n,this.regions=source.regions,this._rect=source.boundingRect}function d(t,e,n,r){var o=n.geoModel,l=n.seriesModel,c=o?o.coordinateSystem:l?l.coordinateSystem||(l.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return c===this?c[t](r):null}h.prototype={constructor:h,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return!0;return!1},transformTo:function(t,e,n,r){var rect=this.getBoundingRect(),l=this._invertLongitute;rect=rect.clone(),l&&(rect.y=-rect.y-rect.height);var c=this._rawTransformable;if(c.transform=rect.calculateTransform(new o(t,e,n,r)),c.decomposeTransform(),l){var h=c.scale;h[1]=-h[1]}c.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return e[i]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(data,t,e){if("string"==typeof data&&(data=this.getGeoCoord(data)),data)return l.prototype.dataToPoint.call(this,data,t,e)},convertToPixel:r.curry(d,"dataToPoint"),convertFromPixel:r.curry(d,"pointToData")},r.mixin(h,l);var f=h;t.exports=f},function(t,e,n){var r=n(0);t.exports=function(t){var e={};t.eachSeriesByType("map",(function(n){var o=n.getMapType();if(!n.getHostGeoModel()&&!e[o]){var l={};r.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,data=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&data.each(data.mapDimension("value"),(function(t,e){var r=data.getName(e),o=n.getRegion(r);if(o&&!isNaN(t)){var c=l[r]||0,h=n.dataToPoint(o.center);l[r]=c+1,data.setItemLayout(e,{point:h,offset:c})}}))}));var data=n.getData();data.each((function(t){var e=data.getName(t),n=data.getItemLayout(t)||{};n.showLabel=!l[e],data.setItemLayout(t,n)})),e[o]=!0}}))}},function(t,e){t.exports=function(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),n=t.getModel("itemStyle"),r=n.get("areaColor"),o=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:r,color:o})}))}},function(t,e,n){var r=n(0);t.exports=function(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),r.each(e,(function(t,e){for(var n,o,l,data=(n=r.map(t,(function(t){return t.getData()})),o=t[0].get("mapValueCalculation"),l={},r.each(n,(function(data){data.each(data.mapDimension("value"),(function(t,e){var n="ec-"+data.getName(e);l[n]=l[n]||[],isNaN(t)||l[n].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var r,c="ec-"+n[0].getName(e),h=0,d=1/0,f=-1/0,v=l[c].length,i=0;i<v;i++)d=Math.min(d,l[c][i]),f=Math.max(f,l[c][i]),h+=l[c][i];return r="min"===o?d:"max"===o?f:"average"===o?h/v:h,0===v?NaN:r}))),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(data.cloneShallow()),t[i].mainSeries=t[0]}))}},function(t,e,n){var r=n(0);t.exports=function(option){var t=[];r.each(option.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,r.defaults(e,e.mapLocation))}))}},function(t,e,n){var r=n(1);n(788),n(789),n(790);var o=n(80),l=n(791);r.registerVisual(o("tree","circle")),r.registerLayout(l)},function(t,e,n){var r=n(22),o=n(222),l=n(10).encodeHTML,c=n(19),h=r.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(option){var t={name:option.name,children:option.data},e=option.leaves||{},n=new c(e,this,this.ecModel),r=o.createTree(t,this,{},(function(t){t.wrapMethod("getItemModel",(function(t,e){var o=r.getNodeByDataIndex(e);return o.children.length&&o.isExpand||(t.parentModel=n),t}))}));var l=0;r.eachNode("preorder",(function(t){t.depth>l&&(l=t.depth)}));var h=option.expandAndCollapse&&option.initialTreeDepth>=0?option.initialTreeDepth:l;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=h})),r.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,n=e.root.children[0],r=e.getNodeByDataIndex(t),o=r.getValue(),c=r.name;r&&r!==n;)c=r.parentNode.name+"."+c,r=r.parentNode;return l(c+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});t.exports=h},function(t,e,n){var r=n(0),o=n(2),l=n(166),c=n(356).radialCoordinate,h=n(1),d=n(121),f=n(221),v=n(218),m=n(132),y=n(171).onIrrelevantElement,x=(n(7).__DEV__,n(5).parsePercent),_=o.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.childPoints,r=n.length,o=e.parentPoint,l=n[0],c=n[r-1];if(1===r)return t.moveTo(o[0],o[1]),void t.lineTo(l[0],l[1]);var h=e.orient,d="TB"===h||"BT"===h?0:1,f=1-d,v=x(e.forkPosition,1),m=[];m[d]=o[d],m[f]=o[f]+(c[f]-o[f])*v,t.moveTo(o[0],o[1]),t.lineTo(m[0],m[1]),t.moveTo(l[0],l[1]),m[d]=l[d],t.lineTo(m[0],m[1]),m[d]=c[d],t.lineTo(m[0],m[1]),t.lineTo(c[0],c[1]);for(var i=1;i<r-1;i++){var y=n[i];t.moveTo(y[0],y[1]),m[d]=y[d],t.lineTo(m[0],m[1])}}}),w=h.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new o.Group,this._controller=new m(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,n,r){var data=t.getData(),o=t.layoutInfo,l=this._mainGroup,c=t.get("layout");"radial"===c?l.attr("position",[o.x+o.width/2,o.y+o.height/2]):l.attr("position",[o.x,o.y]),this._updateViewCoordSys(t,o,c),this._updateController(t,e,n);var h=this._data,d={expandAndCollapse:t.get("expandAndCollapse"),layout:c,edgeShape:t.get("edgeShape"),edgeForkPosition:t.get("edgeForkPosition"),orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};data.diff(h).add((function(e){S(data,e)&&T(data,e,null,l,t,d)})).update((function(e,n){var r=h.getItemGraphicEl(n);S(data,e)?T(data,e,r,l,t,d):r&&A(h,n,r,l,t,d)})).remove((function(e){var n=h.getItemGraphicEl(e);n&&A(h,e,n,l,t,d)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===d.expandAndCollapse&&data.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=data},_updateViewCoordSys:function(t){var data=t.getData(),e=[];data.each((function(t){var n=data.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||e.push([+n.x,+n.y])}));var n=[],r=[];d.fromPoints(e,n,r);var o=this._min,l=this._max;r[0]-n[0]==0&&(n[0]=o?o[0]:n[0]-1,r[0]=l?l[0]:r[0]+1),r[1]-n[1]==0&&(n[1]=o?o[1]:n[1]-1,r[1]=l?l[1]:r[1]+1);var c=t.coordinateSystem=new f;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1]),c.setCenter(t.get("center")),c.setZoom(t.get("zoom")),this.group.attr({position:c.position,scale:c.scale}),this._viewCoordSys=c,this._min=n,this._max=r},_updateController:function(t,e,n){var r=this._controller,o=this._controllerHost,l=this.group;r.setPointerChecker((function(e,r,o){var rect=l.getBoundingRect();return rect.applyTransform(l.transform),rect.contain(r,o)&&!y(e,n,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){v.updateViewOnPan(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}),this).on("zoom",(function(e){v.updateViewOnZoom(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)}),this)},_updateNodeAndLinkScale:function(t){var data=t.getData(),e=this._getNodeGlobalScale(t),n=[e,e];data.eachItemGraphicEl((function(t,e){t.attr("scale",n)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scale,o=r&&r[0]||1;return((e.getZoom()-1)*n+1)/o},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function S(data,t){var e=data.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)&&"none"!==data.getItemVisual(t,"symbol")}function M(t,e,n){return n.itemModel=e,n.itemStyle=e.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=e.getModel("lineStyle").getLineStyle(),n.labelModel=e.getModel("label"),n.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function T(data,t,e,n,c,h){var d=!e,f=data.tree.getNodeByDataIndex(t),v=f.getModel(),m=(h=M(f,v,h),data.tree.root),source=f.parentNode===m?f:f.parentNode||f,y=data.getItemGraphicEl(source.dataIndex),x=source.getLayout(),w=y?{x:y.position[0],y:y.position[1],rawX:y.__radialOldRawX,rawY:y.__radialOldRawY}:x,S=f.getLayout();d?(e=new l(data,t,h)).attr("position",[w.x,w.y]):e.updateData(data,t,h),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=S.rawX,e.__radialRawY=S.rawY,n.add(e),data.setItemGraphicEl(t,e),o.updateProps(e,{position:[S.x,S.y]},c);var T=e.getSymbolPath();if("radial"===h.layout){var A,C,D=m.children[0],L=D.getLayout(),k=D.children.length;if(S.x===L.x&&!0===f.isExpand){var P={};P.x=(D.children[0].getLayout().x+D.children[k-1].getLayout().x)/2,P.y=(D.children[0].getLayout().y+D.children[k-1].getLayout().y)/2,(A=Math.atan2(P.y-L.y,P.x-L.x))<0&&(A=2*Math.PI+A),(C=P.x<L.x)&&(A-=Math.PI)}else(A=Math.atan2(S.y-L.y,S.x-L.x))<0&&(A=2*Math.PI+A),0===f.children.length||0!==f.children.length&&!1===f.isExpand?(C=S.x<L.x)&&(A-=Math.PI):(C=S.x>L.x)||(A-=Math.PI);var O=C?"left":"right",E=h.labelModel.get("rotate"),N=E*(Math.PI/180);T.setStyle({textPosition:h.labelModel.get("position")||O,textRotation:null==E?-A:N,textOrigin:"center",verticalAlign:"middle"})}!function(t,e,n,l,c,h,d,f,v){var m=v.edgeShape,y=l.__edge;if("curve"===m)e.parentNode&&e.parentNode!==n&&(y||(y=l.__edge=new o.BezierCurve({shape:I(v,c,c),style:r.defaults({opacity:0,strokeNoScale:!0},v.lineStyle)})),o.updateProps(y,{shape:I(v,h,d),style:{opacity:1}},t));else if("polyline"===m&&"orthogonal"===v.layout&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var x=e.children,w=[],i=0;i<x.length;i++){var S=x[i].getLayout();w.push([S.x,S.y])}y||(y=l.__edge=new _({shape:{parentPoint:[d.x,d.y],childPoints:[[d.x,d.y]],orient:v.orient,forkPosition:v.edgeForkPosition},style:r.defaults({opacity:0,strokeNoScale:!0},v.lineStyle)})),o.updateProps(y,{shape:{parentPoint:[d.x,d.y],childPoints:w},style:{opacity:1}},t)}f.add(y)}(c,f,m,e,w,x,S,n,h)}function A(data,t,e,n,r,l){for(var c,h=data.tree.getNodeByDataIndex(t),d=data.tree.root,f=h.getModel(),source=(l=M(h,f,l),h.parentNode===d?h:h.parentNode||h),v=l.edgeShape;null==(c=source.getLayout());)source=source.parentNode===d?source:source.parentNode||source;o.updateProps(e,{position:[c.x+1,c.y+1]},r,(function(){n.remove(e),data.setItemGraphicEl(t,null)})),e.fadeOut(null,{keepLabel:!0});var m=data.getItemGraphicEl(source.dataIndex).__edge,y=e.__edge||(!1===source.isExpand||1===source.children.length?m:void 0);v=l.edgeShape;y&&("curve"===v?o.updateProps(y,{shape:I(l,c,c),style:{opacity:0}},r,(function(){n.remove(y)})):"polyline"===v&&"orthogonal"===l.layout&&o.updateProps(y,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,(function(){n.remove(y)})))}function I(t,e,n){var r,o,l,h,d,f,v,m,y=t.orient;if("radial"===t.layout){d=e.rawX,v=e.rawY,f=n.rawX,m=n.rawY;var x=c(d,v),_=c(d,v+(m-v)*t.curvature),w=c(f,m+(v-m)*t.curvature),S=c(f,m);return{x1:x.x,y1:x.y,x2:S.x,y2:S.y,cpx1:_.x,cpy1:_.y,cpx2:w.x,cpy2:w.y}}return d=e.x,v=e.y,f=n.x,m=n.y,"LR"!==y&&"RL"!==y||(r=d+(f-d)*t.curvature,o=v,l=f+(d-f)*t.curvature,h=m),"TB"!==y&&"BT"!==y||(r=d,o=v+(m-v)*t.curvature,l=f,h=m+(v-m)*t.curvature),{x1:d,y1:v,x2:f,y2:m,cpx1:r,cpy1:o,cpx2:l,cpy2:h}}t.exports=w},function(t,e,n){var r=n(1),o=n(219).updateCenterAndZoom;r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=e.coordinateSystem,r=o(n,t);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t,e,n){var r=n(792),o=r.eachAfter,l=r.eachBefore,c=n(356),h=c.init,d=c.firstWalk,f=c.secondWalk,v=c.separation,m=c.radialCoordinate,y=c.getViewRect;t.exports=function(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=y(t,e);t.layoutInfo=n;var r=t.get("layout"),c=0,x=0,_=null;"radial"===r?(c=2*Math.PI,x=Math.min(n.height,n.width)/2,_=v((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(c=n.width,x=n.height,_=v());var w=t.getData().tree.root,S=w.children[0];if(S){h(w),o(S,d,_),w.hierNode.modifier=-S.hierNode.prelim,l(S,f);var M=S,T=S,A=S;l(S,(function(t){var e=t.getLayout().x;e<M.getLayout().x&&(M=t),e>T.getLayout().x&&(T=t),t.depth>A.depth&&(A=t)}));var I=M===T?1:_(M,T)/2,C=I-M.getLayout().x,D=0,L=0,k=0,P=0;if("radial"===r)D=c/(T.getLayout().x+I+C),L=x/(A.depth-1||1),l(S,(function(t){k=(t.getLayout().x+C)*D,P=(t.depth-1)*L;var e=m(k,P);t.setLayout({x:e.x,y:e.y,rawX:k,rawY:P},!0)}));else{var O=t.getOrient();"RL"===O||"LR"===O?(L=x/(T.getLayout().x+I+C),D=c/(A.depth-1||1),l(S,(function(t){P=(t.getLayout().x+C)*L,k="LR"===O?(t.depth-1)*D:c-(t.depth-1)*D,t.setLayout({x:k,y:P},!0)}))):"TB"!==O&&"BT"!==O||(D=c/(T.getLayout().x+I+C),L=x/(A.depth-1||1),l(S,(function(t){k=(t.getLayout().x+C)*D,P="TB"===O?(t.depth-1)*L:x-(t.depth-1)*L,t.setLayout({x:k,y:P},!0)})))}}}(t,e)}))}},function(t,e){e.eachAfter=function(t,e,n){for(var r,o=[t],l=[];r=o.pop();)if(l.push(r),r.isExpand){var c=r.children;if(c.length)for(var i=0;i<c.length;i++)o.push(c[i])}for(;r=l.pop();)e(r,n)},e.eachBefore=function(t,e){for(var n,r=[t];n=r.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var i=o.length-1;i>=0;i--)r.push(o[i])}}},function(t,e,n){var r=n(1);n(794),n(795),n(798);var o=n(799),l=n(800);r.registerVisual(o),r.registerLayout(l)},function(t,e,n){var r=n(0),o=n(22),l=n(222),c=n(19),h=n(10),d=h.encodeHTML,f=h.addCommas,v=n(82).wrapTreePathInfo,m=o.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(option,t){var e={name:option.name,children:option.data};!function t(e){var n=0;r.each(e.children,(function(e){t(e);var o=e.value;r.isArray(o)&&(o=o[0]),n+=o}));var o=e.value;r.isArray(o)&&(o=o[0]);(null==o||isNaN(o))&&(o=n);o<0&&(o=0);r.isArray(e.value)?e.value[0]=o:e.value=o}(e);var n=option.levels||[];n=option.levels=function(t,e){var n,o=e.get("color");if(!o)return;if(t=t||[],r.each(t,(function(t){var e=new c(t),r=e.get("color");(e.get("itemStyle.color")||r&&"none"!==r)&&(n=!0)})),!n){(t[0]||(t[0]={})).color=o.slice()}return t}(n,t);var o=r.map(n||[],(function(e){return new c(e,this,t)}),this),h=l.createTree(e,this,null,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=h.getNodeByDataIndex(e),r=o[n.depth];return r&&(t.parentModel=r),t}))}));return h.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var data=this.getData(),e=this.getRawValue(t),n=r.isArray(e)?f(e[0]):f(e),o=data.getName(t);return d(o+": "+n)},getDataParams:function(t){var e=o.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=v(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});t.exports=m},function(t,e,n){var r=n(1),o=n(0),l=n(2),c=n(79),h=n(82),d=n(796),f=n(132),v=n(14),m=n(27),y=n(797),x=n(93),_=n(10).windowOpen,w=o.bind,S=l.Group,M=l.Rect,T=o.each,A=["label"],I=["emphasis","label"],C=["upperLabel"],D=["emphasis","upperLabel"],L=x([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),k=function(t){var e=L(t);return e.stroke=e.fill=e.lineWidth=null,e},P=r.extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,n,r){var l=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(o.indexOf(l,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var c=h.retrieveTargetInfo(r,["treemapZoomToNode","treemapRootToNode"],t),d=r&&r.type,f=t.layoutInfo,v=!this._oldTree,m=this._storage,y="treemapRootToNode"===d&&c&&m?{rootNodeGroup:m.nodeGroup[c.node.getRawIndex()],direction:r.direction}:null,x=this._giveContainerGroup(f),_=this._doRender(x,t,y);v||d&&"treemapZoomToNode"!==d&&"treemapRootToNode"!==d?_.renderFinally():this._doAnimation(x,_,t,y),this._resetController(n),this._renderBreadcrumb(t,n,c)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new S,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){var r=e.getData().tree,l=this._oldTree,h={nodeGroup:[],background:[],content:[]},d={nodeGroup:[],background:[],content:[]},f=this._storage,v=[],m=o.curry(O,e,d,f,n,h,v);!function t(e,n,r,l,h){l?(n=e,T(e,(function(t,e){!t.isRemoved()&&f(e,e)}))):new c(n,e,d,d).add(f).update(f).remove(o.curry(f,null)).execute();function d(t){return t.getId()}function f(o,c){var d=null!=o?e[o]:null,f=null!=c?n[c]:null,v=m(d,f,r,h);v&&t(d&&d.viewChildren||[],f&&f.viewChildren||[],v,l,h+1)}}(r.root?[r.root]:[],l&&l.root?[l.root]:[],t,r===l||!l,0);var y=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&T(t,(function(t,n){var r=e[n];T(t,(function(t){t&&(r.push(t),t.__tmWillDelete=1)}))})),e}(f);return this._oldTree=r,this._storage=d,{lastsForAnimation:h,willDeleteEls:y,renderFinally:function(){T(y,(function(t){T(t,(function(t){t.parent&&t.parent.remove(t)}))})),T(v,(function(t){t.invisible=!0,t.dirty()}))}}},_doAnimation:function(t,e,n,r){if(n.get("animation")){var l=n.get("animationDurationUpdate"),c=n.get("animationEasing"),h=y.createWrap();T(e.willDeleteEls,(function(t,e){T(t,(function(t,n){if(!t.invisible){var o,d=t.parent;if(r&&"drillDown"===r.direction)o=d===r.rootNodeGroup?{shape:{x:0,y:0,width:d.__tmNodeWidth,height:d.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var f=0,v=0;d.__tmWillDelete||(f=d.__tmNodeWidth/2,v=d.__tmNodeHeight/2),o="nodeGroup"===e?{position:[f,v],style:{opacity:0}}:{shape:{x:f,y:v,width:0,height:0},style:{opacity:0}}}o&&h.add(t,o,l,c)}}))})),T(this._storage,(function(t,n){T(t,(function(t,r){var d=e.lastsForAnimation[n][r],f={};d&&("nodeGroup"===n?d.old&&(f.position=t.position.slice(),t.attr("position",d.old)):(d.old&&(f.shape=o.extend({},t.shape),t.setShape(d.old)),d.fadein?(t.setStyle("opacity",0),f.style={opacity:1}):1!==t.style.opacity&&(f.style={opacity:1})),h.add(t,f,l,c))}))}),this),this._state="animating",h.done(w((function(){this._state="ready",e.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||((e=this._controller=new f(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",w(this._onPan,this)),e.on("zoom",w(this._onZoom,this)));var rect=new v(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return rect.contain(e,n)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},_onZoom:function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var rect=new v(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;e-=l.x,n-=l.y;var c=m.create();m.translate(c,c,[-e,-n]),m.scale(c,c,[t.scale,t.scale]),m.translate(c,c,[e,n]),rect.applyTransform(c),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:rect.x,y:rect.y,width:rect.width,height:rect.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var r=n.node;if(r.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var o=r.hostTree.data.getItemModel(r.dataIndex),link=o.get("link",!0),l=o.get("target",!0)||"blank";link&&_(link,l)}}}}}),this)},_renderBreadcrumb:function(t,e,n){n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new d(this.group))).render(t,e,n.node,w((function(e){"animating"!==this._state&&(h.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var o=this._storage.background[r.getRawIndex()];if(o){var l=o.transformCoordToLocal(t,e),c=o.shape;if(!(c.x<=l[0]&&l[0]<=c.x+c.width&&c.y<=l[1]&&l[1]<=c.y+c.height))return!1;n={node:r,offsetX:l[0],offsetY:l[1]}}}),this),n}});function O(t,e,n,r,c,h,d,f,v,m){if(d){var y=d.getLayout(),data=t.getData();if(data.setItemGraphicEl(d.dataIndex,null),y&&y.isInView){var x=y.width,_=y.height,w=y.borderWidth,T=y.invisible,P=d.getRawIndex(),O=f&&f.getRawIndex(),N=d.viewChildren,R=y.upperHeight,z=N&&N.length,B=d.getModel("itemStyle"),V=d.getModel("emphasis.itemStyle"),H=Z("nodeGroup",S);if(H){if(v.add(H),H.attr("position",[y.x||0,y.y||0]),H.__tmNodeWidth=x,H.__tmNodeHeight=_,y.isAboveViewRoot)return H;var F=d.getModel(),G=Z("background",M,m,1);if(G&&function(e,n,r){if(n.dataIndex=d.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:x,height:_}),T)W(n);else{n.invisible=!1;var o=d.getVisual("borderColor",!0),c=V.get("borderColor"),h=k(B);h.fill=o;var f=L(V);if(f.fill=c,r){var v=x-2*w;j(h,f,o,v,R,{x:w,y:0,width:v,height:R})}else h.text=f.text=null;n.setStyle(h),l.setElementHoverStyle(n,f)}e.add(n)}(H,G,z&&y.upperLabelHeight),z)l.isHighDownDispatcher(H)&&l.setAsHighDownDispatcher(H,!1),G&&(l.setAsHighDownDispatcher(G,!0),data.setItemGraphicEl(d.dataIndex,G));else{var content=Z("content",M,m,2);content&&function(e,content){content.dataIndex=d.dataIndex,content.seriesIndex=t.seriesIndex;var n=Math.max(x-2*w,0),r=Math.max(_-2*w,0);if(content.culling=!0,content.setShape({x:w,y:w,width:n,height:r}),T)W(content);else{content.invisible=!1;var o=d.getVisual("color",!0),c=k(B);c.fill=o;var h=L(V);j(c,h,o,n,r),content.setStyle(c),l.setElementHoverStyle(content,h)}e.add(content)}(H,content),G&&l.isHighDownDispatcher(G)&&l.setAsHighDownDispatcher(G,!1),l.setAsHighDownDispatcher(H,!0),data.setItemGraphicEl(d.dataIndex,H)}return H}}}function W(element){!element.invisible&&h.push(element)}function j(e,n,r,c,h,f){var v=F.get("name"),m=F.getModel(f?C:A),x=F.getModel(f?D:I),_=m.getShallow("show");l.setLabelStyle(e,n,m,x,{defaultText:_?v:null,autoColor:r,isRectText:!0,labelFetcher:t,labelDataIndex:d.dataIndex,labelProp:f?"upperLabel":"label"}),U(e,f,y),U(n,f,y),f&&(e.textRect=o.clone(f)),e.truncate=_&&m.get("ellipsis")?{outerWidth:c,outerHeight:h,minChar:2}:null}function U(style,e,n){var text=style.text;if(!e&&n.isLeafRoot&&null!=text){var r=t.get("drillDownIcon",!0);style.text=r?r+" "+text:text}}function Z(t,l,h,f){var element=null!=O&&n[t][O],v=c[t];return element?(n[t][O]=null,function(t,element,e){(t[P]={}).old="nodeGroup"===e?element.position.slice():o.extend({},element.shape)}(v,element,t)):T||((element=new l({z:E(h,f)})).__tmDepth=h,element.__tmStorageName=t,function(t,element,e){var n=t[P]={},o=d.parentNode;if(o&&(!r||"drillDown"===r.direction)){var l=0,h=0,f=c.background[o.getRawIndex()];!r&&f&&f.old&&(l=f.old.width,h=f.old.height),n.old="nodeGroup"===e?[0,h]:{x:l,y:h,width:0,height:0}}n.fadein="nodeGroup"!==e}(v,0,t)),e[t][P]=element}}function E(t,e){var n=10*t+e;return(n-1)/n}t.exports=P},function(t,e,n){var r=n(2),o=n(9),l=n(0),c=n(82).wrapTreePathInfo;function h(t){this.group=new r.Group,t.add(this.group)}function d(t,e,n,r,head,o){var l=[[head?t:t-5,e],[t+n,e],[t+n,e+r],[head?t:t-5,e+r]];return!o&&l.splice(2,0,[t+n+5,e+r/2]),!head&&l.push([t,e+r/2]),l}function f(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&c(n,e)}}h.prototype={constructor:h,render:function(t,e,n,r){var l=t.getModel("breadcrumb"),c=this.group;if(c.removeAll(),l.get("show")&&n){var h=l.getModel("itemStyle"),d=h.getModel("textStyle"),f={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,d),this._renderContent(t,f,h,d,r),o.positionElement(c,f.pos,f.box)}},_prepare:function(t,e,n){for(var r=t;r;r=r.parentNode){var text=r.getModel().get("name"),o=n.getTextRect(text),l=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=l+8,e.renderList.push({node:r,text:text,width:l})}},_renderContent:function(t,e,n,c,h){for(var v=0,m=e.emptyItemWidth,y=t.get("breadcrumb.height"),x=o.getAvailableSize(e.pos,e.box),_=e.totalWidth,w=e.renderList,i=w.length-1;i>=0;i--){var S=w[i],M=S.node,T=S.width,text=S.text;_>x.width&&(_-=T-m,T=m,text=null);var A=new r.Polygon({shape:{points:d(v,0,T,y,i===w.length-1,0===i)},style:l.defaults(n.getItemStyle(),{lineJoin:"bevel",text:text,textFill:c.getTextColor(),textFont:c.getFont()}),z:10,onclick:l.curry(h,M)});this.group.add(A),f(A,t,M),v+=T+8}},remove:function(){this.group.removeAll()}};var v=h;t.exports=v},function(t,e,n){var r=n(0);e.createWrap=function(){var t,e=[],n={};return{add:function(t,o,time,l,c){return r.isString(l)&&(c=l,l=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:o,time:time,delay:l,easing:c}),!0)},done:function(e){return t=e,this},start:function(){for(var r=e.length,i=0,o=e.length;i<o;i++){var l=e[i];l.el.animateTo(l.target,l.time,l.delay,l.easing,c)}return this;function c(){--r||(e.length=0,n={},t&&t())}}}}},function(t,e,n){for(var r=n(1),o=n(82),l=function(){},c=["treemapZoomToNode","treemapRender","treemapMove"],i=0;i<c.length;i++)r.registerAction({type:c[i],update:"updateView"},l);r.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var r=o.retrieveTargetInfo(t,["treemapZoomToNode","treemapRootToNode"],e);if(r){var l=e.getViewRoot();l&&(t.direction=o.aboveViewRoot(l,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))}))},function(t,e,n){var r=n(83),o=n(47),l=n(0),c=l.isArray,h={seriesType:"treemap",reset:function(t,e,n,c){var h=t.getData().tree,f=h.root,m=t.getModel("itemStyle");f.isRemoved()||function t(e,n,c,h,f,m){var y=e.getModel(),x=e.getLayout();if(!x||x.invisible||!x.isInView)return;var _,w=e.getModel("itemStyle"),S=c[e.depth],M=function(t,e,n,r){var o=l.extend({},e);return l.each(["color","colorAlpha","colorSaturation"],(function(l){var c=t.get(l,!0);null==c&&n&&(c=n[l]),null==c&&(c=e[l]),null==c&&(c=r.get(l)),null!=c&&(o[l]=c)})),o}(w,n,S,h),T=w.get("borderColor"),A=w.get("borderColorSaturation");null!=A&&(_=d(M),T=function(t,e){return null!=e?o.modifyHSL(e,null,null,t):null}(A,_));e.setVisual("borderColor",T);var I=e.viewChildren;if(I&&I.length){var C=function(t,e,n,o,l,c){if(!c||!c.length)return;var h=v(e,"color")||null!=l.color&&"none"!==l.color&&(v(e,"colorAlpha")||v(e,"colorSaturation"));if(!h)return;var d=e.get("visualMin"),f=e.get("visualMax"),m=n.dataExtent.slice();null!=d&&d<m[0]&&(m[0]=d),null!=f&&f>m[1]&&(m[1]=f);var y=e.get("colorMappingBy"),x={type:h.name,dataExtent:m,visual:h.range};"color"!==x.type||"index"!==y&&"id"!==y?x.mappingMethod="linear":(x.mappingMethod="category",x.loop=!0);var _=new r(x);return _.__drColorMappingBy=y,_}(0,y,x,0,M,I);l.each(I,(function(e,n){if(e.depth>=f.length||e===f[e.depth]){var r=function(t,e,n,r,o,c){var h=l.extend({},e);if(o){var d=o.type,f="color"===d&&o.__drColorMappingBy,v="index"===f?r:"id"===f?c.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));h[d]=o.mapValueToVisual(v)}return h}(y,M,e,n,C,m);t(e,r,c,h,f,m)}}))}else _=d(M),e.setVisual("color",_)}(f,{},l.map(h.levelModels,(function(t){return t?t.get("itemStyle"):null})),m,t.getViewRoot().getAncestors(),t)}};function d(t){var e=f(t,"color");if(e){var n=f(t,"colorAlpha"),r=f(t,"colorSaturation");return r&&(e=o.modifyHSL(e,null,null,r)),n&&(e=o.modifyAlpha(e,n)),e}}function f(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function v(t,e){var n=t.get(e);return c(n)&&n.length?{name:e,range:n}:null}t.exports=h},function(t,e,n){var r=n(0),o=n(14),l=n(5),c=l.parsePercent,h=l.MAX_SAFE_INTEGER,d=n(9),f=n(82),v=Math.max,m=Math.min,y=r.retrieve,x=r.each,_=["itemStyle","borderWidth"],w=["itemStyle","gapWidth"],S=["upperLabel","show"],M=["upperLabel","height"],T={seriesType:"treemap",reset:function(t,e,n,l){var S=n.getWidth(),M=n.getHeight(),T=t.option,L=d.getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),k=T.size||[],P=c(y(L.width,k[0]),S),O=c(y(L.height,k[1]),M),E=l&&l.type,N=f.retrieveTargetInfo(l,["treemapZoomToNode","treemapRootToNode"],t),R="treemapRender"===E||"treemapMove"===E?l.rootRect:null,z=t.getViewRoot(),B=f.getPathToRoot(z);if("treemapMove"!==E){var V="treemapZoomToNode"===E?function(t,e,n,r,o){var l,c=(e||{}).node,d=[r,o];if(!c||c===n)return d;var f=r*o,area=f*t.option.zoomToNodeRatio;for(;l=c.parentNode;){for(var v=0,m=l.children,i=0,y=m.length;i<y;i++)v+=m[i].getValue();var x=c.getValue();if(0===x)return d;area*=v/x;var w=l.getModel(),S=w.get(_),M=Math.max(S,D(w));(area+=4*S*S+(3*S+M)*Math.pow(area,.5))>h&&(area=h),c=l}area<f&&(area=f);var T=Math.pow(area/f,.5);return[r*T,o*T]}(t,N,z,P,O):R?[R.width,R.height]:[P,O],H=T.sort;H&&"asc"!==H&&"desc"!==H&&(H="desc");var F={squareRatio:T.squareRatio,sort:H,leafDepth:T.leafDepth};z.hostTree.clearLayouts();var G={x:0,y:0,width:V[0],height:V[1],area:V[0]*V[1]};z.setLayout(G),function t(e,n,r,o){var l,c;if(e.isRemoved())return;var h=e.getLayout();l=h.width,c=h.height;var d=(T=e.getModel()).get(_),f=T.get(w)/2,y=D(T),x=Math.max(d,y),S=d-f,M=x-f,T=e.getModel();e.setLayout({borderWidth:d,upperHeight:x,upperLabelHeight:y},!0),l=v(l-2*S,0),c=v(c-S-M,0);var L=l*c,k=A(e,T,L,n,r,o);if(!k.length)return;var rect={x:S,y:M,width:l,height:c},P=m(l,c),O=1/0,E=[];E.area=0;for(var i=0,N=k.length;i<N;){var R=k[i];E.push(R),E.area+=R.getLayout().area;var z=I(E,P,n.squareRatio);z<=O?(i++,O=z):(E.area-=E.pop().getLayout().area,C(E,P,rect,f,!1),P=m(rect.width,rect.height),E.length=E.area=0,O=1/0)}E.length&&C(E,P,rect,f,!0);if(!r){var B=T.get("childrenVisibleMin");null!=B&&L<B&&(r=!0)}for(i=0,N=k.length;i<N;i++)t(k[i],n,r,o+1)}(z,F,!1,0);G=z.getLayout();x(B,(function(t,e){var n=(B[e+1]||z).getValue();t.setLayout(r.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},G))}))}var W=t.getData().tree.root;W.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var o=n.node,l=o.getLayout();if(!l)return r;var c=[l.width/2,l.height/2],h=o;for(;h;){var d=h.getLayout();c[0]+=d.x,c[1]+=d.y,h=h.parentNode}return{x:t.width/2-c[0],y:t.height/2-c[1]}}(L,R,N),!0),t.setLayoutInfo(L),function t(e,n,r,l,c){var h=e.getLayout(),d=r[c],f=d&&d===e;if(d&&!f||c===r.length&&e!==l)return;e.setLayout({isInView:!0,invisible:!f&&!n.intersect(h),isAboveViewRoot:f},!0);var v=new o(n.x-h.x,n.y-h.y,n.width,n.height);x(e.viewChildren||[],(function(e){t(e,v,r,l,c+1)}))}(W,new o(-L.x,-L.y,S,M),B,z,0)}};function A(t,e,n,o,l,c){var h=t.children||[],d=o.sort;"asc"!==d&&"desc"!==d&&(d=null);var f=null!=o.leafDepth&&o.leafDepth<=c;if(l&&!f)return t.viewChildren=[];!function(t,e){e&&t.sort((function(a,b){var t="asc"===e?a.getValue()-b.getValue():b.getValue()-a.getValue();return 0===t?"asc"===e?a.dataIndex-b.dataIndex:b.dataIndex-a.dataIndex:t}))}(h=r.filter(h,(function(t){return!t.isRemoved()})),d);var v=function(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var l=t.get("visualDimension");if(e&&e.length)if("value"===l&&n)c=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&c.reverse();else{var c=[1/0,-1/0];x(e,(function(t){var e=t.getValue(l);e<c[0]&&(c[0]=e),e>c[1]&&(c[1]=e)}))}else c=[NaN,NaN];return{sum:r,dataExtent:c}}(e,h,d);if(0===v.sum)return t.viewChildren=[];if(v.sum=function(t,e,n,r,o){if(!r)return n;for(var l=t.get("visibleMin"),c=o.length,h=c,i=c-1;i>=0;i--){var d=o["asc"===r?c-i-1:i].getValue();d/n*e<l&&(h=i,n-=d)}return"asc"===r?o.splice(0,c-h):o.splice(h,c-h),n}(e,n,v.sum,d,h),0===v.sum)return t.viewChildren=[];for(var i=0,m=h.length;i<m;i++){var area=h[i].getValue()/v.sum*n;h[i].setLayout({area:area})}return f&&(h.length&&t.setLayout({isLeafRoot:!0},!0),h.length=0),t.viewChildren=h,t.setLayout({dataExtent:v.dataExtent},!0),h}function I(t,e,n){for(var area,r=0,o=1/0,i=0,l=t.length;i<l;i++)(area=t[i].getLayout().area)&&(area<o&&(o=area),area>r&&(r=area));var c=t.area*t.area,h=e*e*n;return c?v(h*r/c,c/(h*o)):1/0}function C(t,e,rect,n,r){var o=e===rect.width?0:1,l=1-o,c=["x","y"],h=["width","height"],d=rect[c[o]],f=e?t.area/e:0;(r||f>rect[h[l]])&&(f=rect[h[l]]);for(var i=0,y=t.length;i<y;i++){var x=t[i],_={},w=f?x.getLayout().area/f:0,S=_[h[l]]=v(f-2*n,0),M=rect[c[o]]+rect[h[o]]-d,T=i===y-1||M<w?M:w,A=_[h[o]]=v(T-2*n,0);_[c[l]]=rect[c[l]]+m(n,S/2),_[c[o]]=d+m(n,A/2),d+=T,x.setLayout(_,!0)}rect[c[l]]+=f,rect[h[l]]-=f}function D(t){return t.get(S)?t.get(M):0}t.exports=T},function(t,e,n){var r=n(1);n(802),n(804),n(807);var o=n(808),l=n(80),c=n(809),h=n(810),d=n(811),f=n(812),v=n(813),m=n(815);r.registerProcessor(o),r.registerVisual(l("graph","circle",null)),r.registerVisual(c),r.registerVisual(h),r.registerLayout(d),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,f),r.registerLayout(v),r.registerCoordinateSystem("graphView",{create:m})},function(t,e,n){var r=n(1),o=n(37),l=n(0),c=n(6).defaultEmphasis,h=n(19),d=n(10).encodeHTML,f=n(357),v=n(130),m=r.extendSeriesModel({type:"series.graph",init:function(option){m.superApply(this,"init",arguments);var t=this;function e(){return t._categoriesData}this.legendVisualProvider=new v(e,e),this.fillDataTextStyle(option.edges||option.links),this._updateCategoriesData()},mergeOption:function(option){m.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(option.edges||option.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(option){m.superApply(this,"mergeDefaultAndTheme",arguments),c(option,["edgeLabel"],["show"])},getInitialData:function(option,t){var e=option.edges||option.links||[],n=option.data||option.nodes||[],r=this;if(n&&e)return f(n,e,this,!0,(function(e,n){e.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var o=r.getModel("edgeLabel"),l=new h({label:o.option},o.parentModel,t),c=r.getModel("emphasis.edgeLabel"),d=new h({emphasis:{label:c.option}},c.parentModel,t);function f(path){return(path=this.parsePath(path))&&"label"===path[0]?l:path&&"emphasis"===path[0]&&"label"===path[1]?d:this.parentModel}n.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(f),t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var r=this.getData(),o=this.getDataParams(t,n),l=r.graph.getEdgeByIndex(t),c=r.getName(l.node1.dataIndex),h=r.getName(l.node2.dataIndex),html=[];return null!=c&&html.push(c),null!=h&&html.push(h),html=d(html.join(" > ")),o.value&&(html+=" : "+d(o.value)),html}return m.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=l.map(this.option.categories||[],(function(t){return null!=t.value?t:l.extend({value:0},t)})),e=new o(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return m.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),y=m;t.exports=y},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(54).enableClassCheck;function l(t){return"_EC_"+t}var c=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},h=c.prototype;function d(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function f(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}h.type="graph",h.isDirected=function(){return this._directed},h.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[l(t)]){var r=new d(t,e);return r.hostGraph=this,this.nodes.push(r),n[l(t)]=r,r}},h.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},h.getNodeById=function(t){return this._nodesMap[l(t)]},h.addEdge=function(t,e,n){var r=this._nodesMap,o=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),d.isInstance(t)||(t=r[l(t)]),d.isInstance(e)||(e=r[l(e)]),t&&e){var c=t.id+"-"+e.id;if(!o[c]){var h=new f(t,e,n);return h.hostGraph=this,this._directed&&(t.outEdges.push(h),e.inEdges.push(h)),t.edges.push(h),t!==e&&e.edges.push(h),this.edges.push(h),o[c]=h,h}}},h.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},h.getEdge=function(t,e){d.isInstance(t)&&(t=t.id),d.isInstance(e)&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},h.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},h.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},h.breadthFirstTraverse=function(t,e,n,r){if(d.isInstance(e)||(e=this._nodesMap[l(e)]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",i=0;i<this.nodes.length;i++)this.nodes[i].__visited=!1;if(!t.call(r,e,null))for(var c=[e];c.length;){var h=c.shift(),f=h[o];for(i=0;i<f.length;i++){var v=f[i],m=v.node1===h?v.node2:v.node1;if(!m.__visited){if(t.call(r,m,h))return;c.push(m),m.__visited=!0}}}}},h.update=function(){for(var data=this.data,t=this.edgeData,e=this.nodes,n=this.edges,i=0,r=e.length;i<r;i++)e[i].dataIndex=-1;for(i=0,r=data.count();i<r;i++)e[data.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var r=n[t.getRawIndex(e)];return r.node1.dataIndex>=0&&r.node2.dataIndex>=0}));for(i=0,r=n.length;i<r;i++)n[i].dataIndex=-1;for(i=0,r=t.count();i<r;i++)n[t.getRawIndex(i)].dataIndex=i},h.clone=function(){for(var t=new c(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i<n.length;i++){var r=n[i];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},d.prototype={constructor:d,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(path){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(path)}},f.prototype.getModel=function(path){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(path)};var v=function(t,e){return{getValue:function(n){var data=this[t][e];return data.get(data.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n,r){return this[t][e].getItemVisual(this.dataIndex,n,r)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};r.mixin(d,v("hostGraph","data")),r.mixin(f,v("hostGraph","edgeData")),c.Node=d,c.Edge=f,o(d),o(f);var m=c;t.exports=m},function(t,e,n){var r=n(1),o=n(0),l=n(126),c=n(223),h=n(132),d=n(218),f=n(171).onIrrelevantElement,v=n(2),m=n(806),y=n(225).getNodeGlobalScale,x="__focusNodeAdjacency",_=["itemStyle","opacity"],w=["lineStyle","opacity"];function S(t,e){var n=t.getVisual("opacity");return null!=n?n:t.getModel().get(e)}function M(t,e,n){var r=t.getGraphicEl(),o=S(t,e);null!=n&&(null==o&&(o=1),o*=n),r.downplay&&r.downplay(),r.traverse((function(t){if(!t.isGroup){var e=t.lineLabelOriginalOpacity;null!=e&&null==n||(e=o),t.setStyle("opacity",e)}}))}function T(t,e){var n=S(t,e),r=t.getGraphicEl();r.traverse((function(t){!t.isGroup&&t.setStyle("opacity",n)})),r.highlight&&r.highlight()}var A=r.extendChartView({type:"graph",init:function(t,e){var n=new l,r=new c,o=this.group;this._controller=new h(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},render:function(t,e,n){var r=this,o=t.coordinateSystem;this._model=t;var l=this._symbolDraw,c=this._lineDraw,h=this.group;if("view"===o.type){var d={position:o.position,scale:o.scale};this._firstRender?h.attr(d):v.updateProps(h,d,t)}m(t.getGraph(),y(t));var data=t.getData();l.updateData(data);var f=t.getEdgeData();c.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var _=t.forceLayout,w=t.get("force.layoutAnimation");_&&this._startForceLayoutIteration(_,w),data.eachItemGraphicEl((function(e,o){var l=data.getItemModel(o);e.off("drag").off("dragend");var c=l.get("draggable");c&&e.on("drag",(function(){_&&(_.warmUp(),!this._layouting&&this._startForceLayoutIteration(_,w),_.setFixed(o),data.setItemLayout(o,e.position))}),this).on("dragend",(function(){_&&_.setUnfixed(o)}),this),e.setDraggable(c&&_),e[x]&&e.off("mouseover",e[x]),e.__unfocusNodeAdjacency&&e.off("mouseout",e.__unfocusNodeAdjacency),l.get("focusNodeAdjacency")&&(e.on("mouseover",e[x]=function(){r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){r._dispatchUnfocus(n)}))}),this),data.graph.eachEdge((function(e){var o=e.getGraphicEl();o[x]&&o.off("mouseover",o[x]),o.__unfocusNodeAdjacency&&o.off("mouseout",o.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(o.on("mouseover",o[x]=function(){r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),o.on("mouseout",o.__unfocusNodeAdjacency=function(){r._dispatchUnfocus(n)}))}));var S="circular"===t.get("layout")&&t.get("circular.rotateLabel"),M=data.getLayout("cx"),T=data.getLayout("cy");data.eachItemGraphicEl((function(t,e){var n=data.getItemModel(e).get("label.rotate")||0,r=t.getSymbolPath();if(S){var o=data.getItemLayout(e),l=Math.atan2(o[1]-T,o[0]-M);l<0&&(l=2*Math.PI+l);var c=o[0]<M;c&&(l-=Math.PI);var h=c?"left":"right";v.modifyLabelStyle(r,{textRotation:-l,textPosition:h,textOrigin:"center"},{textPosition:h})}else v.modifyLabelStyle(r,{textRotation:n*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(t,e){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,n,r){var l=t.getData().graph,c=r.dataIndex,h=r.edgeDataIndex,d=l.getNodeByIndex(c),f=l.getEdgeByIndex(h);(d||f)&&(l.eachNode((function(t){M(t,_,.1)})),l.eachEdge((function(t){M(t,w,.1)})),d&&(T(d,_),o.each(d.edges,(function(t){t.dataIndex<0||(T(t,w),T(t.node1,_),T(t.node2,_))}))),f&&(T(f,w),T(f.node1,_),T(f.node2,_)))},unfocusNodeAdjacency:function(t,e,n,r){var o=t.getData().graph;o.eachNode((function(t){M(t,_)})),o.eachEdge((function(t){M(t,w)}))},_startForceLayoutIteration:function(t,e){var n=this;!function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))}()},_updateController:function(t,e,n){var r=this._controller,o=this._controllerHost,l=this.group;r.setPointerChecker((function(e,r,o){var rect=l.getBoundingRect();return rect.applyTransform(l.transform),rect.contain(r,o)&&!f(e,n,t)})),"view"===t.coordinateSystem.type?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){d.updateViewOnPan(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){d.updateViewOnZoom(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),m(t.getGraph(),y(t)),this._lineDraw.updateLayout()}),this)):r.disable()},_updateNodeAndLinkScale:function(){var t=this._model,data=t.getData(),e=y(t),n=[e,e];data.eachItemGraphicEl((function(t,e){t.attr("scale",n)}))},updateLayout:function(t){m(t.getGraph(),y(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});t.exports=A},function(t,e,n){var r=n(2),o=n(11),l=r.Line.prototype,c=r.BezierCurve.prototype;function h(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var d=r.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[h(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:l.buildPath,_buildPathCurve:c.buildPath,pointAt:function(t){return this[h(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:l.pointAt,_pointAtCurve:c.pointAt,tangentAt:function(t){var e=this.shape,p=h(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return o.normalize(p,p)},_tangentAtCurve:c.tangentAt});t.exports=d},function(t,e,n){var r=n(63),o=n(11),l=n(225).getSymbolSize,c=[],h=[],d=[],f=r.quadraticAt,v=o.distSquare,m=Math.abs;function y(t,e,n){for(var r,o=t[0],l=t[1],y=t[2],x=1/0,_=n*n,w=.1,S=.1;S<=.9;S+=.1){c[0]=f(o[0],l[0],y[0],S),c[1]=f(o[1],l[1],y[1],S),(T=m(v(c,e)-_))<x&&(x=T,r=S)}for(var i=0;i<32;i++){var M=r+w;h[0]=f(o[0],l[0],y[0],r),h[1]=f(o[1],l[1],y[1],r),d[0]=f(o[0],l[0],y[0],M),d[1]=f(o[1],l[1],y[1],M);var T=v(h,e)-_;if(m(T)<.01)break;var A=v(d,e)-_;w/=2,T<0?A>=0?r+=w:r-=w:A>=0?r-=w:r+=w}return r}t.exports=function(t,e){var n=[],c=r.quadraticSubdivide,h=[[],[],[]],d=[[],[]],f=[];e/=2,t.eachEdge((function(t,r){var v=t.getLayout(),m=t.getVisual("fromSymbol"),x=t.getVisual("toSymbol");v.__original||(v.__original=[o.clone(v[0]),o.clone(v[1])],v[2]&&v.__original.push(o.clone(v[2])));var _=v.__original;if(null!=v[2]){if(o.copy(h[0],_[0]),o.copy(h[1],_[2]),o.copy(h[2],_[1]),m&&"none"!==m){var w=l(t.node1),S=y(h,_[0],w*e);c(h[0][0],h[1][0],h[2][0],S,n),h[0][0]=n[3],h[1][0]=n[4],c(h[0][1],h[1][1],h[2][1],S,n),h[0][1]=n[3],h[1][1]=n[4]}if(x&&"none"!==x){w=l(t.node2),S=y(h,_[1],w*e);c(h[0][0],h[1][0],h[2][0],S,n),h[1][0]=n[1],h[2][0]=n[2],c(h[0][1],h[1][1],h[2][1],S,n),h[1][1]=n[1],h[2][1]=n[2]}o.copy(v[0],h[0]),o.copy(v[1],h[2]),o.copy(v[2],h[1])}else{if(o.copy(d[0],_[0]),o.copy(d[1],_[1]),o.sub(f,d[1],d[0]),o.normalize(f,f),m&&"none"!==m){w=l(t.node1);o.scaleAndAdd(d[0],d[0],f,w*e)}if(x&&"none"!==x){w=l(t.node2);o.scaleAndAdd(d[1],d[1],f,-w*e)}o.copy(v[0],d[0]),o.copy(v[1],d[1])}}))}},function(t,e,n){var r=n(1),o=n(219).updateCenterAndZoom;n(358);r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var n=e.coordinateSystem,r=o(n,t);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),data=t.getGraph().data,r=n.mapArray(n.getName);data.filterSelf((function(t){var n=data.getItemModel(t).getShallow("category");if(null!=n){"number"==typeof n&&(n=r[n]);for(var i=0;i<e.length;i++)if(!e[i].isSelected(n))return!1}return!0}))}),this)}},function(t,e){t.exports=function(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),data=t.getData(),r={};n.each((function(o){var l=n.getName(o);r["ec-"+l]=o;var c=n.getItemModel(o),h=c.get("itemStyle.color")||t.getColorFromPalette(l,e);n.setItemVisual(o,"color",h);for(var d=["opacity","symbol","symbolSize","symbolKeepAspect"],i=0;i<d.length;i++){var f=c.getShallow(d[i],!0);null!=f&&n.setItemVisual(o,d[i],f)}})),n.count()&&data.each((function(t){var e=data.getItemModel(t).getShallow("category");if(null!=e){"string"==typeof e&&(e=r["ec-"+e]);for(var o=["color","opacity","symbol","symbolSize","symbolKeepAspect"],i=0;i<o.length;i++)null==data.getItemVisual(t,o[i],!0)&&data.setItemVisual(t,o[i],n.getItemVisual(e,o[i]))}}))}))}},function(t,e){function n(a){return a instanceof Array||(a=[a,a]),a}t.exports=function(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),r=t.getEdgeData(),o=n(t.get("edgeSymbol")),l=n(t.get("edgeSymbolSize")),c="lineStyle.color".split("."),h="lineStyle.opacity".split(".");r.setVisual("fromSymbol",o&&o[0]),r.setVisual("toSymbol",o&&o[1]),r.setVisual("fromSymbolSize",l&&l[0]),r.setVisual("toSymbolSize",l&&l[1]),r.setVisual("color",t.get(c)),r.setVisual("opacity",t.get(h)),r.each((function(t){var o=r.getItemModel(t),l=e.getEdgeByIndex(t),d=n(o.getShallow("symbol",!0)),f=n(o.getShallow("symbolSize",!0)),v=o.get(c),m=o.get(h);switch(v){case"source":v=l.node1.getVisual("color");break;case"target":v=l.node2.getVisual("color")}d[0]&&l.setVisual("fromSymbol",d[0]),d[1]&&l.setVisual("toSymbol",d[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1]),l.setVisual("color",v),l.setVisual("opacity",m)}))}))}},function(t,e,n){var r=n(0).each,o=n(359),l=o.simpleLayout,c=o.simpleLayoutEdge;t.exports=function(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var data=t.getData(),o=[];r(n.dimensions,(function(t){o=o.concat(data.mapDimension(t,!0))}));for(var h=0;h<data.count();h++){for(var d=[],f=!1,i=0;i<o.length;i++){var v=data.get(o[i],h);isNaN(v)||(f=!0),d.push(v)}f?data.setItemLayout(h,n.dataToPoint(d)):data.setItemLayout(h,[NaN,NaN])}c(data.graph)}else e&&"none"!==e||l(t)}))}},function(t,e,n){var r=n(360).circularLayout;t.exports=function(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&r(t,"symbolSize")}))}},function(t,e,n){var r=n(814).forceLayout,o=n(359).simpleLayout,l=n(360).circularLayout,c=n(5).linearMap,h=n(11),d=n(0);t.exports=function(t){t.eachSeriesByType("graph",(function(t){if(!(M=t.coordinateSystem)||"view"===M.type)if("force"===t.get("layout")){var e=t.preservedPoints||{},n=t.getGraph(),f=n.data,v=n.edgeData,m=t.getModel("force"),y=m.get("initLayout");t.preservedPoints?f.each((function(t){var n=f.getId(t);f.setItemLayout(t,e[n]||[NaN,NaN])})):y&&"none"!==y?"circular"===y&&l(t,"value"):o(t);var x=f.getDataExtent("value"),_=v.getDataExtent("value"),w=m.get("repulsion"),S=m.get("edgeLength");d.isArray(w)||(w=[w,w]),d.isArray(S)||(S=[S,S]),S=[S[1],S[0]];var M,T=f.mapArray("value",(function(t,e){var n=f.getItemLayout(e),r=c(t,x,w);return isNaN(r)&&(r=(w[0]+w[1])/2),{w:r,rep:r,fixed:f.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),A=v.mapArray("value",(function(t,e){var r=n.getEdgeByIndex(e),o=c(t,_,S);isNaN(o)&&(o=(S[0]+S[1])/2);var l=r.getModel();return{n1:T[r.node1.dataIndex],n2:T[r.node2.dataIndex],d:o,curveness:l.get("lineStyle.curveness")||0,ignoreForceLayout:l.get("ignoreForceLayout")}})),rect=(M=t.coordinateSystem).getBoundingRect(),I=r(T,A,{rect:rect,gravity:m.get("gravity"),friction:m.get("friction")}),C=I.step;I.step=function(t){for(var i=0,r=T.length;i<r;i++)T[i].fixed&&h.copy(T[i].p,n.getNodeByIndex(i).getLayout());C((function(r,o,l){for(var i=0,c=r.length;i<c;i++)r[i].fixed||n.getNodeByIndex(i).setLayout(r[i].p),e[f.getId(i)]=r[i].p;for(i=0,c=o.length;i<c;i++){var d=o[i],v=n.getEdgeByIndex(i),m=d.n1.p,y=d.n2.p,x=v.getLayout();(x=x?x.slice():[])[0]=x[0]||[],x[1]=x[1]||[],h.copy(x[0],m),h.copy(x[1],y),+d.curveness&&(x[2]=[(m[0]+y[0])/2-(m[1]-y[1])*d.curveness,(m[1]+y[1])/2-(y[0]-m[0])*d.curveness]),v.setLayout(x)}t&&t(l)}))},t.forceLayout=I,t.preservedPoints=e,I.step()}else t.forceLayout=null}))}},function(t,e,n){var r=n(11),o=r.scaleAndAdd;e.forceLayout=function(t,e,n){for(var rect=n.rect,l=rect.width,c=rect.height,h=[rect.x+l/2,rect.y+c/2],d=null==n.gravity?.1:n.gravity,i=0;i<t.length;i++){var f=t[i];f.p||(f.p=r.create(l*(Math.random()-.5)+h[0],c*(Math.random()-.5)+h[1])),f.pp=r.clone(f.p),f.edges=null}var v=null==n.friction?.6:n.friction,m=v;return{warmUp:function(){m=.8*v},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(n){for(var l=[],c=t.length,i=0;i<e.length;i++){var f=e[i];if(!f.ignoreForceLayout){var v=f.n1,y=f.n2;r.sub(l,y.p,v.p);var x=r.len(l)-f.d,_=y.w/(v.w+y.w);isNaN(_)&&(_=0),r.normalize(l,l),!v.fixed&&o(v.p,v.p,l,_*x*m),!y.fixed&&o(y.p,y.p,l,-(1-_)*x*m)}}for(i=0;i<c;i++){(T=t[i]).fixed||(r.sub(l,h,T.p),o(T.p,T.p,l,d*m))}for(i=0;i<c;i++){v=t[i];for(var w=i+1;w<c;w++){y=t[w];r.sub(l,y.p,v.p),0===(x=r.len(l))&&(r.set(l,Math.random()-.5,Math.random()-.5),x=1);var S=(v.rep+y.rep)/x/x;!v.fixed&&o(v.pp,v.pp,l,S),!y.fixed&&o(y.pp,y.pp,l,-S)}}var M=[];for(i=0;i<c;i++){var T;(T=t[i]).fixed||(r.sub(M,T.p,T.pp),o(T.p,T.p,M,m),r.copy(T.pp,T.p))}m*=.992,n&&n(t,e,m<.01)}}}},function(t,e,n){var r=n(221),o=n(9).getLayoutRect,l=n(121);t.exports=function(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var c=t.get("coordinateSystem");if(!c||"view"===c){var data=t.getData(),h=data.mapArray((function(t){var e=data.getItemModel(t);return[+e.get("x"),+e.get("y")]})),d=[],f=[];l.fromPoints(h,d,f),f[0]-d[0]==0&&(f[0]+=1,d[0]-=1),f[1]-d[1]==0&&(f[1]+=1,d[1]-=1);var v=(f[0]-d[0])/(f[1]-d[1]),m=function(t,e,n){var option=t.getBoxLayoutParams();return option.aspect=n,o(option,{width:e.getWidth(),height:e.getHeight()})}(t,e,v);isNaN(v)&&(d=[m.x,m.y],f=[m.x+m.width,m.y+m.height]);var y=f[0]-d[0],x=f[1]-d[1],_=m.width,w=m.height,S=t.coordinateSystem=new r;S.zoomLimit=t.get("scaleLimit"),S.setBoundingRect(d[0],d[1],y,x),S.setViewRect(m.x,m.y,_,w),S.setCenter(t.get("center")),S.setZoom(t.get("zoom")),n.push(S)}})),n}},function(t,e,n){n(817),n(818)},function(t,e,n){var r=n(98),o=n(22).extend({type:"series.gauge",getInitialData:function(option,t){return r(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});t.exports=o},function(t,e,n){var r=n(819),o=n(2),l=n(48),c=n(5),h=c.parsePercent,d=c.round,f=c.linearMap;function v(label,t){return t&&("string"==typeof t?label=t.replace("{value}",null!=label?label:""):"function"==typeof t&&(label=t(label))),label}var m=2*Math.PI,y=l.extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var r=t.get("axisLine.lineStyle.color"),o=function(t,e){var n=t.get("center"),r=e.getWidth(),o=e.getHeight(),l=Math.min(r,o);return{cx:h(n[0],e.getWidth()),cy:h(n[1],e.getHeight()),r:h(t.get("radius"),l/2)}}(t,n);this._renderMain(t,e,n,r,o)},dispose:function(){},_renderMain:function(t,e,n,r,l){for(var c=this.group,h=t.getModel("axisLine"),d=h.getModel("lineStyle"),f=t.get("clockwise"),v=-t.get("startAngle")/180*Math.PI,y=((S=-t.get("endAngle")/180*Math.PI)-v)%m,x=v,_=d.get("width"),w=h.get("show"),i=0;w&&i<r.length;i++){var S=v+y*Math.min(Math.max(r[i][0],0),1),M=new o.Sector({shape:{startAngle:x,endAngle:S,cx:l.cx,cy:l.cy,clockwise:f,r0:l.r-_,r:l.r},silent:!0});M.setStyle({fill:r[i][1]}),M.setStyle(d.getLineStyle(["color","borderWidth","borderColor"])),c.add(M),x=S}var T=function(t){if(t<=0)return r[0][1];for(var i=0;i<r.length;i++)if(r[i][0]>=t&&(0===i?0:r[i-1][0])<t)return r[i][1];return r[i-1][1]};if(!f){var A=v;v=S,S=A}this._renderTicks(t,e,n,T,l,v,S,f),this._renderPointer(t,e,n,T,l,v,S,f),this._renderTitle(t,e,n,T,l),this._renderDetail(t,e,n,T,l)},_renderTicks:function(t,e,n,r,l,c,f,m){for(var y=this.group,x=l.cx,_=l.cy,w=l.r,S=+t.get("min"),M=+t.get("max"),T=t.getModel("splitLine"),A=t.getModel("axisTick"),I=t.getModel("axisLabel"),C=t.get("splitNumber"),D=A.get("splitNumber"),L=h(T.get("length"),w),k=h(A.get("length"),w),P=c,O=(f-c)/C,E=O/D,N=T.getModel("lineStyle").getLineStyle(),R=A.getModel("lineStyle").getLineStyle(),i=0;i<=C;i++){var z=Math.cos(P),B=Math.sin(P);if(T.get("show")){var V=new o.Line({shape:{x1:z*w+x,y1:B*w+_,x2:z*(w-L)+x,y2:B*(w-L)+_},style:N,silent:!0});"auto"===N.stroke&&V.setStyle({stroke:r(i/C)}),y.add(V)}if(I.get("show")){var label=v(d(i/C*(M-S)+S),I.get("formatter")),H=I.get("distance"),F=r(i/C);y.add(new o.Text({style:o.setTextStyle({},I,{text:label,x:z*(w-L-H)+x,y:B*(w-L-H)+_,textVerticalAlign:B<-.4?"top":B>.4?"bottom":"middle",textAlign:z<-.4?"left":z>.4?"right":"center"},{autoColor:F}),silent:!0}))}if(A.get("show")&&i!==C){for(var G=0;G<=D;G++){z=Math.cos(P),B=Math.sin(P);var W=new o.Line({shape:{x1:z*w+x,y1:B*w+_,x2:z*(w-k)+x,y2:B*(w-k)+_},silent:!0,style:R});"auto"===R.stroke&&W.setStyle({stroke:r((i+G/D)/C)}),y.add(W),P+=E}P-=E}else P+=O}},_renderPointer:function(t,e,n,l,c,d,v,m){var y=this.group,x=this._data;if(t.get("pointer.show")){var _=[+t.get("min"),+t.get("max")],w=[d,v],data=t.getData(),S=data.mapDimension("value");data.diff(x).add((function(e){var n=new r({shape:{angle:d}});o.initProps(n,{shape:{angle:f(data.get(S,e),_,w,!0)}},t),y.add(n),data.setItemGraphicEl(e,n)})).update((function(e,n){var r=x.getItemGraphicEl(n);o.updateProps(r,{shape:{angle:f(data.get(S,e),_,w,!0)}},t),y.add(r),data.setItemGraphicEl(e,r)})).remove((function(t){var e=x.getItemGraphicEl(t);y.remove(e)})).execute(),data.eachItemGraphicEl((function(t,e){var n=data.getItemModel(e),r=n.getModel("pointer");t.setShape({x:c.cx,y:c.cy,width:h(r.get("width"),c.r),r:h(r.get("length"),c.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",l(f(data.get(S,e),_,[0,1],!0))),o.setHoverStyle(t,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=data}else x&&x.eachItemGraphicEl((function(t){y.remove(t)}))},_renderTitle:function(t,e,n,r,l){var data=t.getData(),c=data.mapDimension("value"),d=t.getModel("title");if(d.get("show")){var v=d.get("offsetCenter"),m=l.cx+h(v[0],l.r),y=l.cy+h(v[1],l.r),x=+t.get("min"),_=+t.get("max"),w=t.getData().get(c,0),S=r(f(w,[x,_],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},d,{x:m,y:y,text:data.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:S,forceRich:!0})}))}},_renderDetail:function(t,e,n,r,l){var c=t.getModel("detail"),d=+t.get("min"),m=+t.get("max");if(c.get("show")){var y=c.get("offsetCenter"),x=l.cx+h(y[0],l.r),_=l.cy+h(y[1],l.r),w=h(c.get("width"),l.r),S=h(c.get("height"),l.r),data=t.getData(),M=data.get(data.mapDimension("value"),0),T=r(f(M,[d,m],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},c,{x:x,y:_,text:v(M,c.get("formatter")),textWidth:isNaN(w)?null:w,textHeight:isNaN(S)?null:S,textAlign:"center",textVerticalAlign:"middle"},{autoColor:T,forceRich:!0})}))}}});t.exports=y},function(t,e,n){var r=n(17).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,r=Math.sin,o=e.r,l=e.width,c=e.angle,h=e.x-n(c)*l*(l>=o/3?1:2),d=e.y-r(c)*l*(l>=o/3?1:2);c=e.angle-Math.PI/2,t.moveTo(h,d),t.lineTo(e.x+n(c)*l,e.y+r(c)*l),t.lineTo(e.x+n(e.angle)*o,e.y+r(e.angle)*o),t.lineTo(e.x-n(c)*l,e.y-r(c)*l),t.lineTo(h,d)}});t.exports=r},function(t,e,n){var r=n(1);n(821),n(822);var o=n(169),l=n(823),c=n(131);r.registerVisual(o("funnel")),r.registerLayout(l),r.registerProcessor(c("funnel"))},function(t,e,n){var r=n(1),o=n(0),l=n(98),c=n(6).defaultEmphasis,h=n(55).makeSeriesEncodeForNameBased,d=n(130),f=r.extendSeriesModel({type:"series.funnel",init:function(option){f.superApply(this,"init",arguments),this.legendVisualProvider=new d(o.bind(this.getData,this),o.bind(this.getRawData,this)),this._defaultLabelLine(option)},getInitialData:function(option,t){return l(this,{coordDimensions:["value"],encodeDefaulter:o.curry(h,this)})},_defaultLabelLine:function(option){c(option,"labelLine",["show"]);var t=option.labelLine,e=option.emphasis.labelLine;t.show=t.show&&option.label.show,e.show=e.show&&option.emphasis.label.show},getDataParams:function(t){var data=this.getData(),e=f.superCall(this,"getDataParams",t),n=data.mapDimension("value"),r=data.getSum(n);return e.percent=r?+(data.get(n,t)/r*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),v=f;t.exports=v},function(t,e,n){var r=n(2),o=n(0),l=n(48);function c(data,t){r.Group.call(this);var polygon=new r.Polygon,e=new r.Polyline,text=new r.Text;this.add(polygon),this.add(e),this.add(text),this.highDownOnUpdate=function(t,n){"emphasis"===n?(e.ignore=e.hoverIgnore,text.ignore=text.hoverIgnore):(e.ignore=e.normalIgnore,text.ignore=text.normalIgnore)},this.updateData(data,t,!0)}var h=c.prototype,d=["itemStyle","opacity"];h.updateData=function(data,t,e){var polygon=this.childAt(0),n=data.hostModel,l=data.getItemModel(t),c=data.getItemLayout(t),h=data.getItemModel(t).get(d);h=null==h?1:h,polygon.useStyle({}),e?(polygon.setShape({points:c.points}),polygon.setStyle({opacity:0}),r.initProps(polygon,{style:{opacity:h}},n,t)):r.updateProps(polygon,{style:{opacity:h},shape:{points:c.points}},n,t);var f=l.getModel("itemStyle"),v=data.getItemVisual(t,"color");polygon.setStyle(o.defaults({lineJoin:"round",fill:v},f.getItemStyle(["opacity"]))),polygon.hoverStyle=f.getModel("emphasis").getItemStyle(),this._updateLabel(data,t),r.setHoverStyle(this)},h._updateLabel=function(data,t){var e=this.childAt(1),n=this.childAt(2),o=data.hostModel,l=data.getItemModel(t),c=data.getItemLayout(t).label,h=data.getItemVisual(t,"color");r.updateProps(e,{shape:{points:c.linePoints||c.linePoints}},o,t),r.updateProps(n,{style:{x:c.x,y:c.y}},o,t),n.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var d=l.getModel("label"),f=l.getModel("emphasis.label"),v=l.getModel("labelLine"),m=l.getModel("emphasis.labelLine");h=data.getItemVisual(t,"color");r.setLabelStyle(n.style,n.hoverStyle={},d,f,{labelFetcher:data.hostModel,labelDataIndex:t,defaultText:data.getName(t),autoColor:h,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign}),n.ignore=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),e.ignore=e.normalIgnore=!v.get("show"),e.hoverIgnore=!m.get("show"),e.setStyle({stroke:h}),e.setStyle(v.getModel("lineStyle").getLineStyle()),e.hoverStyle=m.getModel("lineStyle").getLineStyle()},o.inherits(c,r.Group);var f=l.extend({type:"funnel",render:function(t,e,n){var data=t.getData(),r=this._data,o=this.group;data.diff(r).add((function(t){var e=new c(data,t);data.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(data,t),o.add(n),data.setItemGraphicEl(t,n)})).remove((function(t){var e=r.getItemGraphicEl(t);o.remove(e)})).execute(),this._data=data},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=f},function(t,e,n){var r=n(9),o=n(5),l=o.parsePercent,c=o.linearMap;t.exports=function(t,e,n){t.eachSeriesByType("funnel",(function(t){var data=t.getData(),n=data.mapDimension("value"),o=t.get("sort"),h=function(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),d=function(data,t){for(var e=data.mapDimension("value"),n=data.mapArray(e,(function(t){return t})),r=[],o="ascending"===t,i=0,l=data.count();i<l;i++)r[i]=i;return"function"==typeof t?r.sort(t):"none"!==t&&r.sort((function(a,b){return o?n[a]-n[b]:n[b]-n[a]})),r}(data,o),f=[l(t.get("minSize"),h.width),l(t.get("maxSize"),h.width)],v=data.getDataExtent(n),m=t.get("min"),y=t.get("max");null==m&&(m=Math.min(v[0],0)),null==y&&(y=v[1]);var x=t.get("funnelAlign"),_=t.get("gap"),w=(h.height-_*(data.count()-1))/data.count(),S=h.y,M=function(t,e){var r,o=data.get(n,t)||0,l=c(o,[m,y],f,!0);switch(x){case"left":r=h.x;break;case"center":r=h.x+(h.width-l)/2;break;case"right":r=h.x+h.width-l}return[[r,e],[r+l,e]]};"ascending"===o&&(w=-w,_=-_,S+=h.height,d=d.reverse());for(var i=0;i<d.length;i++){var T=d[i],A=d[i+1],I=data.getItemModel(T).get("itemStyle.height");null==I?I=w:(I=l(I,h.height),"ascending"===o&&(I=-I));var C=M(T,S),D=M(A,S+I);S+=I+_,data.setItemLayout(T,{points:C.concat(D.slice().reverse())})}!function(data){data.each((function(t){var e,n,r,o,l=data.getItemModel(t),c=l.getModel("label").get("position"),h=l.getModel("labelLine"),d=data.getItemLayout(t),f=d.points,v="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(v)"insideLeft"===c?(n=(f[0][0]+f[3][0])/2+5,r=(f[0][1]+f[3][1])/2,e="left"):"insideRight"===c?(n=(f[1][0]+f[2][0])/2-5,r=(f[1][1]+f[2][1])/2,e="right"):(n=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4,r=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4,e="center"),o=[[n,r],[n,r]];else{var m,y,x,_=h.get("length");"left"===c?(m=(f[3][0]+f[0][0])/2,y=(f[3][1]+f[0][1])/2,n=(x=m-_)-5,e="right"):"right"===c?(m=(f[1][0]+f[2][0])/2,y=(f[1][1]+f[2][1])/2,n=(x=m+_)+5,e="left"):"rightTop"===c?(m=f[1][0],y=f[1][1],n=(x=m+_)+5,e="top"):"rightBottom"===c?(m=f[2][0],y=f[2][1],n=(x=m+_)+5,e="bottom"):"leftTop"===c?(m=f[0][0],y=f[1][1],n=(x=m-_)-5,e="right"):"leftBottom"===c?(m=f[3][0],y=f[2][1],n=(x=m-_)-5,e="right"):(m=(f[1][0]+f[2][0])/2,y=(f[1][1]+f[2][1])/2,n=(x=m+_)+5,e="left");o=[[m,y],[x,y]],r=y}d.label={linePoints:o,x:n,y:r,verticalAlign:"middle",textAlign:e,inside:v}}))}(data)}))}},function(t,e,n){var r=n(1);n(361),n(833),n(834);var o=n(835);r.registerVisual(o)},function(t,e,n){var r=n(0),o=n(6);t.exports=function(option){!function(option){if(option.parallel)return;var t=!1;r.each(option.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(option.parallel=[{}])}(option),function(option){var t=o.normalizeToArray(option.parallelAxis);r.each(t,(function(t){if(r.isObject(t)){var e=t.parallelIndex||0,n=o.normalizeToArray(option.parallel)[e];n&&n.parallelAxisDefault&&r.merge(t,n.parallelAxisDefault,!1)}}))}(option)}},function(t,e,n){var r=n(0),o=n(27),l=n(9),c=n(43),h=n(827),d=n(2),f=n(5),v=n(99),m=r.each,y=Math.min,x=Math.max,_=Math.floor,w=Math.ceil,S=f.round,M=Math.PI;function T(t,e,n){this._axesMap=r.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function A(t,e){return y(x(t,e[0]),e[1])}function I(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function C(t,e){var n,r,o=e.layoutLength,l=e.axisExpandWidth,c=e.axisCount,h=e.axisCollapseWidth,d=e.winInnerIndices,f=h,v=!1;return t<d[0]?(n=t*h,r=h):t<=d[1]?(n=e.axisExpandWindow0Pos+t*l-e.axisExpandWindow[0],f=l,v=!0):(n=o-(c-1-t)*h,r=h),{position:n,axisNameAvailableWidth:f,axisLabelShow:v,nameTruncateMaxWidth:r}}T.prototype={type:"parallel",constructor:T,_init:function(t,e,n){var r=t.dimensions,o=t.parallelAxisIndex;m(r,(function(t,n){var r=o[n],l=e.getComponent("parallelAxis",r),d=this._axesMap.set(t,new h(t,c.createScaleByModel(l),[0,0],l.get("type"),r)),f="category"===d.type;d.onBand=f&&l.get("boundaryGap"),d.inverse=l.get("inverse"),l.axis=d,d.model=l,d.coordinateSystem=l.coordinateSystem=this}),this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,o=e.pixelDimIndex,l=t[1-o],c=t[o];return l>=n&&l<=n+e.axisLength&&c>=r&&c<=r+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var data=n.getData();m(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(data,data.mapDimension(t)),c.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=l.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,rect=this._rect,n=["x","y"],r=["width","height"],o=e.get("layout"),l="horizontal"===o?0:1,c=rect[r[l]],h=[0,c],d=this.dimensions.length,f=A(e.get("axisExpandWidth"),h),v=A(e.get("axisExpandCount")||0,[0,d]),m=e.get("axisExpandable")&&d>3&&d>v&&v>1&&f>0&&c>0,y=e.get("axisExpandWindow");y?(t=A(y[1]-y[0],h),y[1]=y[0]+t):(t=A(f*(v-1),h),(y=[f*(e.get("axisExpandCenter")||_(d/2))-t/2])[1]=y[0]+t);var x=(c-t)/(d-v);x<3&&(x=0);var M=[_(S(y[0]/f,1))+1,w(S(y[1]/f,1))-1],T=x/f*y[0];return{layout:o,pixelDimIndex:l,layoutBase:rect[n[l]],layoutLength:c,axisBase:rect[n[1-l]],axisLength:rect[r[1-l]],axisExpandable:m,axisExpandWidth:f,axisCollapseWidth:x,axisExpandWindow:y,axisCount:d,winInnerIndices:M,axisExpandWindow0Pos:T}},_layoutAxes:function(){var rect=this._rect,t=this._axesMap,e=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;t.each((function(t){var e=[0,n.axisLength],r=t.inverse?1:0;t.setExtent(e[r],e[1-r])})),m(e,(function(t,e){var l=(n.axisExpandable?C:I)(e,n),c={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},h={horizontal:M/2,vertical:0},d=[c[r].x+rect.x,c[r].y+rect.y],f=h[r],v=o.create();o.rotate(v,v,f),o.translate(v,v,d),this._axesLayout[t]={position:d,rotation:f,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(data,t,e,n){null==e&&(e=0),null==n&&(n=data.count());var o=this._axesMap,l=this.dimensions,c=[],h=[];r.each(l,(function(t){c.push(data.mapDimension(t)),h.push(o.get(t).model)}));for(var d=this.hasAxisBrushed(),f=e;f<n;f++){var v;if(d){v="active";for(var m=data.getValues(c,f),y=0,x=l.length;y<x;y++){if("inactive"===h[y].getActiveState(m[y])){v="inactive";break}}}else v="normal";t(v,f)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,o=t.length;r<o;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(t,e){var n=this._axesLayout[e];return d.applyTransform([t,0],n.transform)},getAxisLayout:function(t){return r.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),o=r[1]-r[0],l=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var c,h=t[n]-e.layoutBase-e.axisExpandWindow0Pos,d="slide",f=e.axisCollapseWidth,m=this._model.get("axisExpandSlideTriggerArea"),_=null!=m[0];if(f)_&&f&&h<o*m[0]?(d="jump",c=h-o*m[2]):_&&f&&h>o*(1-m[0])?(d="jump",c=h-o*(1-m[2])):(c=h-o*m[1])>=0&&(c=h-o*(1-m[1]))<=0&&(c=0),(c*=e.axisExpandWidth/f)?v(c,r,l,"all"):d="none";else{o=r[1]-r[0];(r=[x(0,l[1]*h/o-o/2)])[1]=y(l[1],r[0]+o),r[0]=r[1]-o}return{axisExpandWindow:r,behavior:d}}};var D=T;t.exports=D},function(t,e,n){var r=n(0),o=n(66),l=function(t,e,n,r,l){o.call(this,t,e,n),this.type=r||"value",this.axisIndex=l};l.prototype={constructor:l,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){var r=n(0),o=n(21);n(829);var l=o.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&r.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){r.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=r.filter(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);r.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))}});t.exports=l},function(t,e,n){var r=n(0),o=n(21),l=n(93),c=n(167),h=n(5),d=n(97),f=o.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return l([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=r.clone(t);if(e)for(var i=e.length-1;i>=0;i--)h.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"}});r.merge(f.prototype,d),c("parallel",f,(function(t,option){return option.type||(option.data?"category":"value")}),{type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10});var v=f;t.exports=v},function(t,e,n){n(362),n(831),n(832)},function(t,e,n){var r=n(1);r.registerAction({type:"axisAreaSelect",event:"axisAreaSelected"},(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),r.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))},function(t,e,n){var r=n(1),o=n(0),l=n(67),c=n(226),h=n(363),d=n(2),f=["axisLine","axisTickLabel","axisName"],v=r.extendComponentView({type:"parallelAxis",init:function(t,e){v.superApply(this,"init",arguments),(this._brushController=new c(e.getZr())).on("brush",o.bind(this._onBrush,this))},render:function(t,e,n,r){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new d.Group,this.group.add(this._axisGroup),t.get("show")){var h=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),v=h.coordinateSystem,m=t.getAreaSelectStyle(),y=m.width,x=t.axis.dim,_=v.getAxisLayout(x),w=o.extend({strokeContainThreshold:y},_),S=new l(t,w);o.each(f,S.add,S),this._axisGroup.add(S.getGroup()),this._refreshBrushController(w,m,t,h,y,n);var M=r&&!1===r.animation?null:t;d.groupTransition(c,this._axisGroup,M)}}},_refreshBrushController:function(t,e,n,r,l,c){var f=n.axis.getExtent(),v=f[1]-f[0],m=Math.min(30,.1*Math.abs(v)),rect=d.BoundingRect.create({x:f[0],y:-l/2,width:v,height:l});rect.x-=m,rect.width+=2*m,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:h.makeRectPanelClipPath(rect),isTargetByCursor:h.makeRectIsTargetByCursor(rect,c,r),getLinearBrushOtherExtent:h.makeLinearBrushOtherExtent(rect,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return o.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},_onBrush:function(t,e){var n=this.axisModel,r=n.axis,l=o.map(t,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:l})},dispose:function(){this._brushController.dispose()}});var m=v;t.exports=m},function(t,e,n){var r=n(0),o=r.each,l=r.createHashMap,c=n(22),h=n(56),d=c.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(option,t){var source=this.getSource();return function(source,t){if(source.encodeDefine)return;var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(!e)return;var n=source.encodeDefine=l();o(e.dimensions,(function(t){var e=+t.replace("dim","");n.set(t,e)}))}(source,this),h(source,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,data=this.getData(),n=[];return e.eachActiveState(data,(function(e,r){t===e&&n.push(data.getRawIndex(r))})),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});t.exports=d},function(t,e,n){var r=n(2),o=n(48);function l(data,t,e,n){for(var r,o=[],i=0;i<e.length;i++){var l=e[i],c=data.get(data.mapDimension(l),t);r=c,("category"===n.getAxis(l).type?null==r:null==r||isNaN(r))||o.push(n.dataToPoint(c,l))}return o}function c(data,t,e,n,o){var c=l(data,e,n,o),line=new r.Polyline({shape:{points:c},silent:!0,z2:10});return t.add(line),data.setItemGraphicEl(e,line),line}function h(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:.3}}function d(t,data,e,n){var r=n.lineStyle;data.hasItemOption&&(r=data.getItemModel(e).getModel("lineStyle").getLineStyle());t.useStyle(r);var o=t.style;o.fill=null,o.stroke=data.getItemVisual(e,"color"),o.opacity=data.getItemVisual(e,"opacity"),n.smooth&&(t.shape.smooth=n.smooth)}var f=o.extend({type:"parallel",init:function(){this._dataGroup=new r.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,n,o){var f=this._dataGroup,data=t.getData(),v=this._data,m=t.coordinateSystem,y=m.dimensions,x=h(t);if(data.diff(v).add((function(t){d(c(data,f,t,y,m),data,t,x)})).update((function(e,n){var line=v.getItemGraphicEl(n),c=l(data,e,y,m);data.setItemGraphicEl(e,line);var h=o&&!1===o.animation?null:t;r.updateProps(line,{shape:{points:c}},h,e),d(line,data,e,x)})).remove((function(t){var line=v.getItemGraphicEl(t);f.remove(line)})).execute(),!this._initialized){this._initialized=!0;var _=function(t,e,n){var o=t.model,rect=t.getRect(),l=new r.Rect({shape:{x:rect.x,y:rect.y,width:rect.width,height:rect.height}}),c="horizontal"===o.get("layout")?"width":"height";return l.setShape(c,0),r.initProps(l,{shape:{width:rect.width,height:rect.height}},e,n),l}(m,t,(function(){setTimeout((function(){f.removeClipPath()}))}));f.setClipPath(_)}this._data=data},incrementalPrepareRender:function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,n){for(var data=e.getData(),r=e.coordinateSystem,o=r.dimensions,l=h(e),f=t.start;f<t.end;f++){var line=c(data,this._dataGroup,f,o,r);line.incremental=!0,d(line,data,f,l)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});t.exports=f},function(t,e){var n=["lineStyle","normal","opacity"],r={seriesType:"parallel",reset:function(t,e,r){var o=t.getModel("itemStyle"),l=t.getModel("lineStyle"),c=e.get("color"),h=l.get("color")||o.get("color")||c[t.seriesIndex%c.length],d=t.get("inactiveOpacity"),f=t.get("activeOpacity"),v=t.getModel("lineStyle").getLineStyle(),m=t.coordinateSystem,data=t.getData(),y={normal:v.opacity,active:f,inactive:d};return data.setVisual("color",h),{progress:function(t,data){m.eachActiveState(data,(function(t,e){var r=y[t];if("normal"===t&&data.hasItemOption){var o=data.getItemModel(e).get(n,!0);null!=o&&(r=o)}data.setItemVisual(e,"opacity",r)}),t.start,t.end)}}}};t.exports=r},function(t,e,n){var r=n(1);n(837),n(838),n(839);var o=n(840),l=n(841);r.registerLayout(o),r.registerVisual(l)},function(t,e,n){var r=n(22),o=n(357),l=n(10).encodeHTML,c=n(19),h=(n(7).__DEV__,r.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(option,t){for(var e=option.edges||option.links,n=option.data||option.nodes,r=option.levels,l=this.levelModels={},i=0;i<r.length;i++)null!=r[i].depth&&r[i].depth>=0&&(l[r[i].depth]=new c(r[i],this,t));if(n&&e)return o(n,e,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(path){var t=this.parentModel,n=t.getData().getItemLayout(e).depth;return t.levelModels[n]||this.parentModel})),t})),e.wrapMethod("getItemModel",(function(t,e){return t.customizeGetParent((function(path){var t=this.parentModel,n=t.getGraph().getEdgeByIndex(e).node1.getLayout().depth;return t.levelModels[n]||this.parentModel})),t}))})).data},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var r=this.getDataParams(t,n),o=r.data,html=o.source+" -- "+o.target;return r.value&&(html+=" : "+r.value),l(html)}if("node"===n){var c=this.getGraph().getNodeByIndex(t).getLayout().value,d=this.getDataParams(t,n).data.name;if(c)html=d+" : "+c;return l(html)}return h.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var option=this.option;!0===option.focusNodeAdjacency&&(option.focusNodeAdjacency="allEdges")},getDataParams:function(t,e){var n=h.superCall(this,"getDataParams",t,e);if(null==n.value&&"node"===e){var r=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=r}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),d=h;t.exports=d},function(t,e,n){var r=n(2),o=n(1),l=n(0),c=["itemStyle","opacity"],h=["emphasis","itemStyle","opacity"],d=["lineStyle","opacity"],f=["emphasis","lineStyle","opacity"];function v(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function m(t,e,n){var r=t.getGraphicEl(),o=v(t,e);null!=n&&(null==o&&(o=1),o*=n),r.downplay&&r.downplay(),r.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",o)}))}function y(t,e){var n=v(t,e),r=t.getGraphicEl();r.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",n)})),r.highlight&&r.highlight()}var x=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),_=o.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,n){var o=this,l=t.getGraph(),c=this.group,h=t.layoutInfo,d=h.width,f=h.height,v=t.getData(),m=t.getData("edge"),y=t.get("orient");this._model=t,c.removeAll(),c.attr("position",[h.x,h.y]),l.eachEdge((function(e){var n=new x;n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var o,l,h,v,_,w,S,M,T=e.getModel("lineStyle"),A=T.get("curveness"),I=e.node1.getLayout(),C=e.node1.getModel(),D=C.get("localX"),L=C.get("localY"),k=e.node2.getLayout(),P=e.node2.getModel(),O=P.get("localX"),E=P.get("localY"),N=e.getLayout();switch(n.shape.extent=Math.max(1,N.dy),n.shape.orient=y,"vertical"===y?(o=(null!=D?D*d:I.x)+N.sy,l=(null!=L?L*f:I.y)+I.dy,h=(null!=O?O*d:k.x)+N.ty,_=o,w=l*(1-A)+(v=null!=E?E*f:k.y)*A,S=h,M=l*A+v*(1-A)):(o=(null!=D?D*d:I.x)+I.dx,l=(null!=L?L*f:I.y)+N.sy,_=o*(1-A)+(h=null!=O?O*d:k.x)*A,w=l,S=o*A+h*(1-A),M=v=(null!=E?E*f:k.y)+N.ty),n.setShape({x1:o,y1:l,x2:h,y2:v,cpx1:_,cpy1:w,cpx2:S,cpy2:M}),n.setStyle(T.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color");break;case"target":n.style.fill=e.node2.getVisual("color")}r.setHoverStyle(n,e.getModel("emphasis.lineStyle").getItemStyle()),c.add(n),m.setItemGraphicEl(e.dataIndex,n)})),l.eachNode((function(e){var n=e.getLayout(),o=e.getModel(),l=o.get("localX"),h=o.get("localY"),m=o.getModel("label"),y=o.getModel("emphasis.label"),rect=new r.Rect({shape:{x:null!=l?l*d:n.x,y:null!=h?h*f:n.y,width:n.dx,height:n.dy},style:o.getModel("itemStyle").getItemStyle()}),x=e.getModel("emphasis.itemStyle").getItemStyle();r.setLabelStyle(rect.style,x,m,y,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),rect.setStyle("fill",e.getVisual("color")),r.setHoverStyle(rect,x),c.add(rect),v.setItemGraphicEl(e.dataIndex,rect),rect.dataType="node"})),v.eachItemGraphicEl((function(e,r){var l=v.getItemModel(r);l.get("draggable")&&(e.drift=function(e,l){o._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=l,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:v.getRawIndex(r),localX:this.shape.x/d,localY:this.shape.y/f})},e.ondragend=function(){o._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),l.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){o._focusAdjacencyDisabled||(o._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(n)}))})),m.eachItemGraphicEl((function(e,r){var l=m.getItemModel(r);e.focusNodeAdjHandler&&e.off("mouseover",e.focusNodeAdjHandler),e.unfocusNodeAdjHandler&&e.off("mouseout",e.unfocusNodeAdjHandler),l.get("focusNodeAdjacency")&&(e.on("mouseover",e.focusNodeAdjHandler=function(){o._focusAdjacencyDisabled||(o._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex}))}),e.on("mouseout",e.unfocusNodeAdjHandler=function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(n)}))})),!this._data&&t.get("animation")&&c.setClipPath(function(rect,t,e){var n=new r.Rect({shape:{x:rect.x-10,y:rect.y-10,width:0,height:rect.height+20}});return r.initProps(n,{shape:{width:rect.width+20}},t,e),n}(c.getBoundingRect(),t,(function(){c.removeClipPath()}))),this._data=t.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(t){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){e._unfocusDelayTimer=null,t.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(t,e,n,r){var data=t.getData(),o=data.graph,v=r.dataIndex,x=data.getItemModel(v),_=r.edgeDataIndex;if(null!=v||null!=_){var w=o.getNodeByIndex(v),S=o.getEdgeByIndex(_);if(o.eachNode((function(t){m(t,c,.1)})),o.eachEdge((function(t){m(t,d,.1)})),w){y(w,h);var M=x.get("focusNodeAdjacency");"outEdges"===M?l.each(w.outEdges,(function(t){t.dataIndex<0||(y(t,f),y(t.node2,h))})):"inEdges"===M?l.each(w.inEdges,(function(t){t.dataIndex<0||(y(t,f),y(t.node1,h))})):"allEdges"===M&&l.each(w.edges,(function(t){t.dataIndex<0||(y(t,f),t.node1!==w&&y(t.node1,h),t.node2!==w&&y(t.node2,h))}))}S&&(y(S,f),y(S.node1,h),y(S.node2,h))}},unfocusNodeAdjacency:function(t,e,n,r){var o=t.getGraph();o.eachNode((function(t){m(t,c)})),o.eachEdge((function(t){m(t,d)}))}});t.exports=_},function(t,e,n){var r=n(1);n(358),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t,e,n){var r=n(9),o=n(0),l=n(6).groupData;function c(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function h(t,e,n,r,l){var c="vertical"===l?"x":"y";o.each(t,(function(t){var o,h,d;t.sort((function(a,b){return a.getLayout()[c]-b.getLayout()[c]}));for(var f=0,v=t.length,m="vertical"===l?"dx":"dy",i=0;i<v;i++)(d=f-(h=t[i]).getLayout()[c])>0&&(o=h.getLayout()[c]+d,"vertical"===l?h.setLayout({x:o},!0):h.setLayout({y:o},!0)),f=h.getLayout()[c]+h.getLayout()[m]+e;if((d=f-e-("vertical"===l?r:n))>0)for(o=h.getLayout()[c]-d,"vertical"===l?h.setLayout({x:o},!0):h.setLayout({y:o},!0),f=o,i=v-2;i>=0;--i)(d=(h=t[i]).getLayout()[c]+h.getLayout()[m]+e-f)>0&&(o=h.getLayout()[c]-d,"vertical"===l?h.setLayout({x:o},!0):h.setLayout({y:o},!0)),f=h.getLayout()[c]}))}function d(t,e,n){o.each(t.slice().reverse(),(function(t){o.each(t,(function(t){if(t.outEdges.length){var r=w(t.outEdges,f,n)/w(t.outEdges,_,n);if(isNaN(r)){var o=t.outEdges.length;r=o?w(t.outEdges,v,n)/o:0}if("vertical"===n){var l=t.getLayout().x+(r-x(t,n))*e;t.setLayout({x:l},!0)}else{var c=t.getLayout().y+(r-x(t,n))*e;t.setLayout({y:c},!0)}}}))}))}function f(t,e){return x(t.node2,e)*t.getValue()}function v(t,e){return x(t.node2,e)}function m(t,e){return x(t.node1,e)*t.getValue()}function y(t,e){return x(t.node1,e)}function x(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function _(t){return t.getValue()}function w(t,e,n){for(var r=0,o=t.length,i=-1;++i<o;){var l=+e.call(t,t[i],n);isNaN(l)||(r+=l)}return r}function S(t,e,n){o.each(t,(function(t){o.each(t,(function(t){if(t.inEdges.length){var r=w(t.inEdges,m,n)/w(t.inEdges,_,n);if(isNaN(r)){var o=t.inEdges.length;r=o?w(t.inEdges,y,n)/o:0}if("vertical"===n){var l=t.getLayout().x+(r-x(t,n))*e;t.setLayout({x:l},!0)}else{var c=t.getLayout().y+(r-x(t,n))*e;t.setLayout({y:c},!0)}}}))}))}t.exports=function(t,e,n){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),f=t.get("nodeGap"),v=function(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=v;var m=v.width,y=v.height,x=t.getGraph(),M=x.nodes,T=x.edges;!function(t){o.each(t,(function(t){var e=w(t.outEdges,_),n=w(t.inEdges,_),r=t.getValue()||0,o=Math.max(e,n,r);t.setLayout({value:o},!0)}))}(M),function(t,e,n,r,f,v,m,y,x){(function(t,e,n,r,l,h,d){for(var f=[],v=[],m=[],y=[],x=0,i=0;i<e.length;i++)f[i]=1;for(i=0;i<t.length;i++)v[i]=t[i].inEdges.length,0===v[i]&&m.push(t[i]);var _=-1;for(;m.length;){for(var w=0;w<m.length;w++){var S=m[w],M=S.hostGraph.data.getRawDataItem(S.dataIndex),T=null!=M.depth&&M.depth>=0;T&&M.depth>_&&(_=M.depth),S.setLayout({depth:T?M.depth:x},!0),"vertical"===h?S.setLayout({dy:n},!0):S.setLayout({dx:n},!0);for(var A=0;A<S.outEdges.length;A++){var I=S.outEdges[A],C=e.indexOf(I);f[C]=0;var D=I.node2,L=t.indexOf(D);0==--v[L]&&y.indexOf(D)<0&&y.push(D)}}++x,m=y,y=[]}for(i=0;i<f.length;i++)if(1===f[i])throw new Error("Sankey is a DAG, the original data has cycle!");var k=_>x-1?_:x-1;d&&"left"!==d&&function(t,e,n,r){if("right"===e){for(var l=[],h=t,d=0;h.length;){for(var i=0;i<h.length;i++){var f=h[i];f.setLayout({skNodeHeight:d},!0);for(var v=0;v<f.inEdges.length;v++){var m=f.inEdges[v];l.indexOf(m.node1)<0&&l.push(m.node1)}}h=l,l=[],++d}o.each(t,(function(t){c(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){o.each(t,(function(t){c(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,r)}(t,d,0,k);!function(t,e,n){o.each(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}(t,"vertical"===h?(l-n)/k:(r-n)/k,h)})(t,e,n,f,v,y,x),function(t,e,n,r,c,f,v){var m=function(t,e){var n=[],r="vertical"===e?"y":"x",c=l(t,(function(t){return t.getLayout()[r]}));return c.keys.sort((function(a,b){return a-b})),o.each(c.keys,(function(t){n.push(c.buckets.get(t))})),n}(t,v);(function(t,e,n,r,l,c){var h=1/0;o.each(t,(function(t){var e=t.length,d=0;o.each(t,(function(t){d+=t.getLayout().value}));var f="vertical"===c?(r-(e-1)*l)/d:(n-(e-1)*l)/d;f<h&&(h=f)})),o.each(t,(function(t){o.each(t,(function(t,i){var e=t.getLayout().value*h;"vertical"===c?(t.setLayout({x:i},!0),t.setLayout({dx:e},!0)):(t.setLayout({y:i},!0),t.setLayout({dy:e},!0))}))})),o.each(e,(function(t){var e=+t.getValue()*h;t.setLayout({dy:e},!0)}))})(m,e,n,r,c,v),h(m,c,n,r,v);for(var y=1;f>0;f--)d(m,y*=.99,v),h(m,c,n,r,v),S(m,y,v),h(m,c,n,r,v)}(t,e,v,f,r,m,y),function(t,e){var n="vertical"===e?"x":"y";o.each(t,(function(t){t.outEdges.sort((function(a,b){return a.node2.getLayout()[n]-b.node2.getLayout()[n]})),t.inEdges.sort((function(a,b){return a.node1.getLayout()[n]-b.node1.getLayout()[n]}))})),o.each(t,(function(t){var e=0,n=0;o.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),o.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,y)}(M,T,n,f,m,y,0!==o.filter(M,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}},function(t,e,n){var r=n(83),o=n(0);t.exports=function(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;if(e.length){var n=1/0,l=-1/0;o.each(e,(function(t){var e=t.getLayout().value;e<n&&(n=e),e>l&&(l=e)})),o.each(e,(function(e){var o=new r({type:"color",mappingMethod:"linear",dataExtent:[n,l],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),c=e.getModel().get("itemStyle.color");null!=c?e.setVisual("color",c):e.setVisual("color",o)}))}}))}},function(t,e,n){var r=n(1);n(843),n(844);var o=n(845),l=n(846);r.registerVisual(o),r.registerLayout(l)},function(t,e,n){var r=n(0),o=n(22),l=n(364).seriesModelMixin,c=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});r.mixin(c,l,!0);var h=c;t.exports=h},function(t,e,n){var r=n(0),o=n(48),l=n(2),c=n(17),h=["itemStyle"],d=["emphasis","itemStyle"],f=o.extend({type:"boxplot",render:function(t,e,n){var data=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var l="horizontal"===t.get("layout")?1:0;data.diff(o).add((function(t){if(data.hasValue(t)){var e=m(data.getItemLayout(t),data,t,l,!0);data.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(data.hasValue(t)){var c=data.getItemLayout(t);n?y(c,n,data,t):n=m(c,data,t,l),r.add(n),data.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=data},remove:function(t){var e=this.group,data=this._data;this._data=null,data&&data.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:r.noop}),v=c.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])}});function m(t,data,e,n,r){var o=t.ends,l=new v({shape:{points:r?x(o,n,t):o}});return y(t,l,data,e,r),l}function y(t,e,data,n,r){var o=data.hostModel;(0,l[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,n);var c=data.getItemModel(n),f=c.getModel(h),v=data.getItemVisual(n,"color"),m=f.getItemStyle(["borderColor"]);m.stroke=v,m.strokeNoScale=!0,e.useStyle(m),e.z2=100;var y=c.getModel(d).getItemStyle();l.setHoverStyle(e,y)}function x(t,e,n){return r.map(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var _=f;t.exports=_},function(t,e){var n=["itemStyle","borderColor"];t.exports=function(t,e){var r=t.get("color");t.eachRawSeriesByType("boxplot",(function(e){var o=r[e.seriesIndex%r.length],data=e.getData();data.setVisual({legendSymbol:"roundRect",color:e.get(n)||o}),t.isSeriesFiltered(e)||data.each((function(t){var e=data.getItemModel(t);data.setItemVisual(t,{color:e.get(n,!0)})}))}))}},function(t,e,n){var r=n(0),o=n(5).parsePercent,l=r.each;t.exports=function(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var o=t.getBaseAxis(),l=r.indexOf(n,o);l<0&&(l=n.length,n[l]=o,e[l]={axis:o,seriesModels:[]}),e[l].seriesModels.push(t)})),e}(t);l(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n,c=t.axis,h=t.seriesModels,d=h.length,f=t.boxWidthList=[],v=t.boxOffsetList=[],m=[];if("category"===c.type)n=c.getBandWidth();else{var y=0;l(h,(function(t){y=Math.max(y,t.getData().count())})),e=c.getExtent(),Math.abs(e[1]-e[0])}l(h,(function(t){var e=t.get("boxWidth");r.isArray(e)||(e=[e,e]),m.push([o(e[0],n)||0,o(e[1],n)||0])}));var x=.8*n-2,_=x/d*.3,w=(x-_*(d-1))/d,base=w/2-x/2;l(h,(function(t,e){v.push(base),base+=_+w,f.push(Math.min(Math.max(w,m[e][0]),m[e][1]))}))}(t),l(e,(function(e,n){!function(t,e,n){var r=t.coordinateSystem,data=t.getData(),o=n/2,l="horizontal"===t.get("layout")?0:1,c=1-l,h=["x","y"],d=data.mapDimension(h[l]),f=data.mapDimension(h[c],!0);if(null==d||f.length<5)return;for(var v=0;v<data.count();v++){var m=data.get(d,v),y=T(m,f[2],v),x=T(m,f[0],v),_=T(m,f[1],v),w=T(m,f[3],v),S=T(m,f[4],v),M=[];A(M,_,0),A(M,w,1),M.push(x,_,S,w),I(M,x),I(M,S),I(M,y),data.setItemLayout(v,{initBaseline:y[c],ends:M})}function T(t,n,o){var h,d=data.get(n,o),p=[];return p[l]=t,p[c]=d,isNaN(t)||isNaN(d)?h=[NaN,NaN]:(h=r.dataToPoint(p))[l]+=e,h}function A(t,e,n){var r=e.slice(),c=e.slice();r[l]+=o,c[l]-=o,n?t.push(r,c):t.push(c,r)}function I(t,e){var n=e.slice(),r=e.slice();n[l]-=o,r[l]+=o,t.push(n,r)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}},function(t,e,n){var r=n(1);n(848),n(849);var o=n(850),l=n(851),c=n(852);r.registerPreprocessor(o),r.registerVisual(l),r.registerLayout(c)},function(t,e,n){var r=n(0),o=n(22),l=n(364).seriesModelMixin,c=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,data,e){var n=data.getItemLayout(t);return n&&e.rect(n.brushRect)}});r.mixin(c,l,!0);var h=c;t.exports=h},function(t,e,n){var r=n(0),o=n(48),l=n(2),c=n(17),h=n(127).createClipPath,d=["itemStyle"],f=["emphasis","itemStyle"],v=["color","color0","borderColor","borderColor0"],m=o.extend({type:"candlestick",render:function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,r){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var data=t.getData(),e=this._data,n=this.group,r=data.getLayout("isSimpleBox"),o=t.get("clip",!0),c=t.coordinateSystem,h=c.getArea&&c.getArea();this._data||n.removeAll(),data.diff(e).add((function(e){if(data.hasValue(e)){var c,d=data.getItemLayout(e);if(o&&_(h,d))return;c=x(d,e,!0),l.initProps(c,{shape:{points:d.ends}},t,e),w(c,data,e,r),n.add(c),data.setItemGraphicEl(e,c)}})).update((function(c,d){var f=e.getItemGraphicEl(d);if(data.hasValue(c)){var v=data.getItemLayout(c);o&&_(h,v)?n.remove(f):(f?l.updateProps(f,{shape:{points:v.ends}},t,c):f=x(v,c),w(f,data,c,r),n.add(f),data.setItemGraphicEl(c,f))}else n.remove(f)})).remove((function(t){var r=e.getItemGraphicEl(t);r&&n.remove(r)})).execute(),this._data=data},_renderLarge:function(t){this._clear(),T(t,this.group);var e=t.get("clip",!0)?h(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderNormal:function(t,e){for(var n,data=e.getData(),r=data.getLayout("isSimpleBox");null!=(n=t.next());){var o;w(o=x(data.getItemLayout(n),n),data,n,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(t,e){T(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:r.noop}),y=c.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))}});function x(t,e,n){var r=t.ends;return new y({shape:{points:n?S(r,t):r},z2:100})}function _(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function w(t,data,e,n){var r=data.getItemModel(e),o=r.getModel(d),c=data.getItemVisual(e,"color"),h=data.getItemVisual(e,"borderColor")||c,m=o.getItemStyle(v);t.useStyle(m),t.style.strokeNoScale=!0,t.style.fill=c,t.style.stroke=h,t.__simpleBox=n;var y=r.getModel(f).getItemStyle();l.setHoverStyle(t,y)}function S(t,e){return r.map(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var M=c.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3}});function T(t,e,n){var data=t.getData(),r=data.getLayout("largePoints"),o=new M({shape:{points:r},__sign:1});e.add(o);var l=new M({shape:{points:r},__sign:-1});e.add(l),A(1,o,t,data),A(-1,l,t,data),n&&(o.incremental=!0,l.incremental=!0)}function A(t,e,n,data){var r=t>0?"P":"N",o=data.getVisual("borderColor"+r)||data.getVisual("color"+r),l=n.getModel(d).getItemStyle(v);e.useStyle(l),e.style.fill=null,e.style.stroke=o}var I=m;t.exports=I},function(t,e,n){var r=n(0);t.exports=function(option){option&&r.isArray(option.series)&&r.each(option.series,(function(t){r.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}},function(t,e,n){var r=n(95),o=["itemStyle","borderColor"],l=["itemStyle","borderColor0"],c=["itemStyle","color"],h=["itemStyle","color0"],d={seriesType:"candlestick",plan:r(),performRawSeries:!0,reset:function(t,e){if(t.getData().setVisual({legendSymbol:"roundRect",colorP:n(1,t),colorN:n(-1,t),borderColorP:r(1,t),borderColorN:r(-1,t)}),!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,data){var e;for(;null!=(e=t.next());){var o=data.getItemModel(e),l=data.getItemLayout(e).sign;data.setItemVisual(e,{color:n(l,o),borderColor:r(l,o)})}}};function n(t,e){return e.get(t>0?c:h)}function r(t,e){return e.get(t>0?o:l)}}};t.exports=d},function(t,e,n){var r=n(2).subPixelOptimize,o=n(95),l=n(5).parsePercent,c=n(0).retrieve2,h="undefined"!=typeof Float32Array?Float32Array:Array,d={seriesType:"candlestick",plan:o(),reset:function(t){var e=t.coordinateSystem,data=t.getData(),n=function(t,data){var e,n=t.getBaseAxis(),r="category"===n.type?n.getBandWidth():(e=n.getExtent(),Math.abs(e[1]-e[0])/data.count()),o=l(c(t.get("barMaxWidth"),r),r),h=l(c(t.get("barMinWidth"),1),r),d=t.get("barWidth");return null!=d?l(d,r):Math.max(Math.min(r/2,o),h)}(t,data),o=["x","y"],d=data.mapDimension(o[0]),v=data.mapDimension(o[1],!0),m=v[0],y=v[1],x=v[2],_=v[3];if(data.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==d||v.length<4))return{progress:t.pipelineContext.large?function(t,data){var n,r,o=new h(4*t.count),l=0,c=[],v=[];for(;null!=(r=t.next());){var w=data.get(d,r),S=data.get(m,r),M=data.get(y,r),T=data.get(x,r),A=data.get(_,r);isNaN(w)||isNaN(T)||isNaN(A)?(o[l++]=NaN,l+=3):(o[l++]=f(data,r,S,M,y),c[0]=w,c[1]=T,n=e.dataToPoint(c,null,v),o[l++]=n?n[0]:NaN,o[l++]=n?n[1]:NaN,c[1]=A,n=e.dataToPoint(c,null,v),o[l++]=n?n[1]:NaN)}data.setLayout("largePoints",o)}:function(t,data){var o;for(;null!=(o=t.next());){var l=data.get(d,o),c=data.get(m,o),h=data.get(y,o),v=data.get(x,o),w=data.get(_,o),S=Math.min(c,h),M=Math.max(c,h),T=L(S,l),A=L(M,l),I=L(v,l),C=L(w,l),D=[];k(D,A,0),k(D,T,1),D.push(O(C),O(A),O(I),O(T)),data.setItemLayout(o,{sign:f(data,o,c,h,y),initBaseline:c>h?A[1]:T[1],ends:D,brushRect:P(v,w,l)})}function L(t,n){var p=[];return p[0]=n,p[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(p)}function k(t,e,o){var l=e.slice(),c=e.slice();l[0]=r(l[0]+n/2,1,!1),c[0]=r(c[0]-n/2,1,!0),o?t.push(l,c):t.push(c,l)}function P(t,e,r){var o=L(t,r),l=L(e,r);return o[0]-=n/2,l[0]-=n/2,{x:o[0],y:o[1],width:n,height:l[1]-o[1]}}function O(t){return t[0]=r(t[0],1),t}}}}};function f(data,t,e,n,r){return e>n?-1:e<n?1:t>0?data.get(r,t-1)<=n?1:-1:1}t.exports=d},function(t,e,n){var r=n(1);n(854),n(855);var o=n(80),l=n(128);r.registerVisual(o("effectScatter","circle")),r.registerLayout(l("effectScatter"))},function(t,e,n){var r=n(56),o=n(22).extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(option,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});t.exports=o},function(t,e,n){var r=n(1),o=n(126),l=n(856),c=n(27),h=n(128),d=r.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new o(l)},render:function(t,e,n){var data=t.getData(),r=this._symbolDraw;r.updateData(data),this.group.add(r.group)},updateTransform:function(t,e,n){var data=t.getData();this.group.dirty();var r=h().reset(t);r.progress&&r.progress({start:0,end:data.count()},data),this._symbolDraw.updateLayout(data)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=c.clone(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}});t.exports=d},function(t,e,n){var r=n(0),o=n(38).createSymbol,l=n(2).Group,c=n(5).parsePercent,h=n(166);function d(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}function f(data,t){l.call(this);var symbol=new h(data,t),e=new l;this.add(symbol),this.add(e),e.beforeUpdate=function(){this.attr(symbol.getScale())},this.updateData(data,t)}var v=f.prototype;v.stopEffectAnimation=function(){this.childAt(1).removeAll()},v.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=this.childAt(1),i=0;i<3;i++){var l=o(e,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var c=-i/3*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(c).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(c).start(),r.add(l)}d(r,t)},v.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}d(n,t)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateData=function(data,t){var e=data.hostModel;this.childAt(0).updateData(data,t);var n=this.childAt(1),o=data.getItemModel(t),l=data.getItemVisual(t,"symbol"),h=function(t){return r.isArray(t)||(t=[+t,+t]),t}(data.getItemVisual(t,"symbolSize")),d=data.getItemVisual(t,"color");n.attr("scale",h),n.traverse((function(t){t.attr({fill:d})}));var f=o.getShallow("symbolOffset");if(f){var v=n.position;v[0]=c(f[0],h[0]),v[1]=c(f[1],h[1])}var m=data.getItemVisual(t,"symbolRotate");n.rotation=(m||0)*Math.PI/180||0;var y={};if(y.showEffectOn=e.get("showEffectOn"),y.rippleScale=o.get("rippleEffect.scale"),y.brushType=o.get("rippleEffect.brushType"),y.period=1e3*o.get("rippleEffect.period"),y.effectOffset=t/data.count(),y.z=o.getShallow("z")||0,y.zlevel=o.getShallow("zlevel")||0,y.symbolType=l,y.color=d,y.rippleEffectColor=o.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===y.showEffectOn)this._effectCfg?this.updateEffectAnimation(y):this.startEffectAnimation(y),this._effectCfg=y;else{this._effectCfg=null,this.stopEffectAnimation();var symbol=this.childAt(0),x=function(){symbol.highlight(),"render"!==y.showEffectOn&&this.startEffectAnimation(y)},_=function(){symbol.downplay(),"render"!==y.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",x,this).on("mouseout",_,this).on("emphasis",x,this).on("normal",_,this)}this._effectCfg=y},v.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},r.inherits(f,l);var m=f;t.exports=m},function(t,e,n){var r=n(1);n(858),n(859);var o=n(367),l=n(862);r.registerLayout(o),r.registerVisual(l)},function(t,e,n){n(7).__DEV__;var r=n(22),o=n(37),l=n(0),c=l.concatArray,h=l.mergeAll,map=l.map,d=n(10).encodeHTML,f=(n(42),"undefined"==typeof Uint32Array?Array:Uint32Array),v="undefined"==typeof Float64Array?Array:Float64Array;function m(t){var data=t.data;data&&data[0]&&data[0][0]&&data[0][0].coord&&(t.data=map(data,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),h([e,t[0],t[1]])})))}var y=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(option){option.data=option.data||[],m(option);var t=this._processFlatCoordsArray(option.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(option.data=new Float32Array(t.count)),y.superApply(this,"init",arguments)},mergeOption:function(option){if(option.data=option.data||[],m(option),option.data){var t=this._processFlatCoordsArray(option.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(option.data=new Float32Array(t.count))}y.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=c(this._flatCoords,e.flatCoords),this._flatCoordsOffset=c(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},_processFlatCoordsArray:function(data){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"==typeof data[0]){for(var e=data.length,n=new f(e),r=new v(e),o=0,l=0,c=0,i=0;i<e;){c++;var h=data[i++];n[l++]=o+t,n[l++]=h;for(var d=0;d<h;d++){var m=data[i++],y=data[i++];r[o++]=m,r[o++]=y}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:r,count:c}}return{flatCoordsOffset:null,flatCoords:null,count:data.length}},getInitialData:function(option,t){var e=new o(["value"],this);return e.hasItemOption=!1,e.initData(option.data,[],(function(t,n,r,o){if(t instanceof Array)return NaN;e.hasItemOption=!0;var l=t.value;return null!=l?l instanceof Array?l[o]:l:void 0})),e},formatTooltip:function(t){var e=this.getData().getItemModel(t),n=e.get("name");if(n)return n;var r=e.get("fromName"),o=e.get("toName"),html=[];return null!=r&&html.push(r),null!=o&&html.push(o),d(html.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),x=y;t.exports=x},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(223),l=n(365),c=n(224),h=n(366),d=n(860),f=n(861),v=n(367),m=n(127).createClipPath,y=r.extendChartView({type:"lines",init:function(){},render:function(t,e,n){var data=t.getData(),r=this._updateLineDraw(data,t),o=t.get("zlevel"),l=t.get("effect.trailLength"),c=n.getZr(),h="svg"===c.painter.getType();h||c.painter.getLayer(o).clear(!0),null==this._lastZlevel||h||c.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l&&(h||c.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),r.updateData(data);var d=t.get("clip",!0)&&m(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,n){var data=t.getData();this._updateLineDraw(data,t).incrementalPrepareUpdate(data),this._clearLayer(n),this._finished=!1},incrementalRender:function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,n){var data=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=v.reset(t);o.progress&&o.progress({start:0,end:data.count()},data),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(data,t){var e=this._lineDraw,n=this._showEffect(t),r=!!t.get("polyline"),v=t.pipelineContext.large;return e&&n===this._hasEffet&&r===this._isPolyline&&v===this._isLargeDraw||(e&&e.remove(),e=this._lineDraw=v?new f:new o(r?n?d:h:n?l:c),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=v,this.group.removeAll()),this.group.add(e.group),e},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});t.exports=y},function(t,e,n){var r=n(366),o=n(0),l=n(365),c=n(11);function h(t,e,n){l.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var d=h.prototype;d.createLine=function(t,e,n){return new r(t,e,n)},d.updateAnimationPoints=function(symbol,t){this._points=t;for(var e=[0],n=0,i=1;i<t.length;i++){var r=t[i-1],o=t[i];n+=c.dist(r,o),e.push(n)}if(0!==n){for(i=0;i<e.length;i++)e[i]/=n;this._offsets=e,this._length=n}},d.getLineLength=function(symbol){return this._length},d.updateSymbolPosition=function(symbol){var t=symbol.__t,e=this._points,n=this._offsets,r=e.length;if(n){var o=this._lastFrame;if(t<this._lastFramePercent){for(l=Math.min(o+1,r-1);l>=0&&!(n[l]<=t);l--);l=Math.min(l,r-2)}else{for(var l=o;l<r&&!(n[l]>t);l++);l=Math.min(l-1,r-2)}c.lerp(symbol.position,e[l],e[l+1],(t-n[l])/(n[l+1]-n[l]));var h=e[l+1][0]-e[l][0],d=e[l+1][1]-e[l][1];symbol.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,symbol.ignore=!1}},o.inherits(h,l);var f=h;t.exports=f},function(t,e,n){var r=n(2),o=n(211),l=n(320),c=n(321),h=r.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(path,t){var e=t.segs,n=t.curveness;if(t.polyline)for(var i=0;i<e.length;){var r=e[i++];if(r>0){path.moveTo(e[i++],e[i++]);for(var o=1;o<r;o++)path.lineTo(e[i++],e[i++])}}else for(i=0;i<e.length;){var l=e[i++],c=e[i++],h=e[i++],d=e[i++];if(path.moveTo(l,c),n>0){var f=(l+h)/2-(c-d)*n,v=(c+d)/2-(h-l)*n;path.quadraticCurveTo(f,v,h,d)}else path.lineTo(h,d)}},findDataIndex:function(t,e){var n=this.shape,r=n.segs,o=n.curveness;if(n.polyline)for(var h=0,i=0;i<r.length;){var d=r[i++];if(d>0)for(var f=r[i++],v=r[i++],m=1;m<d;m++){var y=r[i++],x=r[i++];if(l.containStroke(f,v,y,x))return h}h++}else for(h=0,i=0;i<r.length;){f=r[i++],v=r[i++],y=r[i++],x=r[i++];if(o>0){var _=(f+y)/2-(v-x)*o,w=(v+x)/2-(y-f)*o;if(c.containStroke(f,v,_,w,y,x))return h}else if(l.containStroke(f,v,y,x))return h;h++}return-1}});function d(){this.group=new r.Group}var f=d.prototype;f.isPersistent=function(){return!this._incremental},f.updateData=function(data){this.group.removeAll();var t=new h({rectHover:!0,cursor:"default"});t.setShape({segs:data.getLayout("linesPoints")}),this._setCommon(t,data),this.group.add(t),this._incremental=null},f.incrementalPrepareUpdate=function(data){this.group.removeAll(),this._clearIncremental(),data.count()>5e5?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},f.incrementalUpdate=function(t,data){var e=new h;e.setShape({segs:data.getLayout("linesPoints")}),this._setCommon(e,data,!!this._incremental),this._incremental?this._incremental.addDisplayable(e,!0):(e.rectHover=!0,e.cursor="default",e.__startIndex=t.start,this.group.add(e))},f.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},f._setCommon=function(t,data,e){var n=data.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=data.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),e||(t.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(t.dataIndex=n+t.__startIndex)})))},f._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var v=d;t.exports=v},function(t,e){function n(a){return a instanceof Array||(a=[a,a]),a}var r="lineStyle.opacity".split("."),o={seriesType:"lines",reset:function(t,e,o){var l=n(t.get("symbol")),c=n(t.get("symbolSize")),data=t.getData();return data.setVisual("fromSymbol",l&&l[0]),data.setVisual("toSymbol",l&&l[1]),data.setVisual("fromSymbolSize",c&&c[0]),data.setVisual("toSymbolSize",c&&c[1]),data.setVisual("opacity",t.get(r)),{dataEach:data.hasItemOption?function(data,t){var e=data.getItemModel(t),o=n(e.getShallow("symbol",!0)),l=n(e.getShallow("symbolSize",!0)),c=e.get(r);o[0]&&data.setItemVisual(t,"fromSymbol",o[0]),o[1]&&data.setItemVisual(t,"toSymbol",o[1]),l[0]&&data.setItemVisual(t,"fromSymbolSize",l[0]),l[1]&&data.setItemVisual(t,"toSymbolSize",l[1]),data.setItemVisual(t,"opacity",c)}:null}}};t.exports=o},function(t,e,n){n(864),n(865)},function(t,e,n){var r=n(22),o=n(56),l=n(42),c=r.extend({type:"series.heatmap",getInitialData:function(option,t){return o(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=l.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});t.exports=c},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(2),l=n(866),c=n(0);var h=r.extendChartView({type:"heatmap",render:function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(o)&&this._renderOnGeo(o,t,r,n)},incrementalPrepareRender:function(t,e,n){this.group.removeAll()},incrementalRender:function(t,e,n,r){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,n,r,l){var h,d,f=t.coordinateSystem;if("cartesian2d"===f.type){var v=f.getAxis("x"),m=f.getAxis("y");h=v.getBandWidth(),d=m.getBandWidth()}for(var y=this.group,data=t.getData(),style=t.getModel("itemStyle").getItemStyle(["color"]),x=t.getModel("emphasis.itemStyle").getItemStyle(),_=t.getModel("label"),w=t.getModel("emphasis.label"),S=f.type,M="cartesian2d"===S?[data.mapDimension("x"),data.mapDimension("y"),data.mapDimension("value")]:[data.mapDimension("time"),data.mapDimension("value")],T=n;T<r;T++){var rect;if("cartesian2d"===S){if(isNaN(data.get(M[2],T)))continue;var A=f.dataToPoint([data.get(M[0],T),data.get(M[1],T)]);rect=new o.Rect({shape:{x:Math.floor(Math.round(A[0])-h/2),y:Math.floor(Math.round(A[1])-d/2),width:Math.ceil(h),height:Math.ceil(d)},style:{fill:data.getItemVisual(T,"color"),opacity:data.getItemVisual(T,"opacity")}})}else{if(isNaN(data.get(M[1],T)))continue;rect=new o.Rect({z2:1,shape:f.dataToRect([data.get(M[0],T)]).contentShape,style:{fill:data.getItemVisual(T,"color"),opacity:data.getItemVisual(T,"opacity")}})}var I=data.getItemModel(T);data.hasItemOption&&(style=I.getModel("itemStyle").getItemStyle(["color"]),x=I.getModel("emphasis.itemStyle").getItemStyle(),_=I.getModel("label"),w=I.getModel("emphasis.label"));var C=t.getRawValue(T),D="-";C&&null!=C[2]&&(D=C[2]),o.setLabelStyle(style,x,_,w,{labelFetcher:t,labelDataIndex:T,defaultText:D,isRectText:!0}),rect.setStyle(style),o.setHoverStyle(rect,data.hasItemOption?x:c.extend({},x)),rect.incremental=l,l&&(rect.useHoverLayer=!0),y.add(rect),data.setItemGraphicEl(T,rect)}},_renderOnGeo:function(t,e,n,r){var h=n.targetVisuals.inRange,d=n.targetVisuals.outOfRange,data=e.getData(),f=this._hmLayer||this._hmLayer||new l;f.blurSize=e.get("blurSize"),f.pointSize=e.get("pointSize"),f.minOpacity=e.get("minOpacity"),f.maxOpacity=e.get("maxOpacity");var rect=t.getViewRect().clone(),v=t.getRoamTransform();rect.applyTransform(v);var m=Math.max(rect.x,0),y=Math.max(rect.y,0),x=Math.min(rect.width+rect.x,r.getWidth()),_=Math.min(rect.height+rect.y,r.getHeight()),w=x-m,S=_-y,M=[data.mapDimension("lng"),data.mapDimension("lat"),data.mapDimension("value")],T=data.mapArray(M,(function(e,n,r){var o=t.dataToPoint([e,n]);return o[0]-=m,o[1]-=y,o.push(r),o})),A=n.getExtent(),I="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(A,n.option.range):function(t,e,n){var r=t[1]-t[0],o=(e=c.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,l=0;return function(t){for(var i=l;i<o;i++){if((r=e[i].interval)[0]<=t&&t<=r[1]){l=i;break}}if(i===o)for(i=l-1;i>=0;i--){var r;if((r=e[i].interval)[0]<=t&&t<=r[1]){l=i;break}}return i>=0&&i<o&&n[i]}}(A,n.getPieceList(),n.option.selected);f.update(T,w,S,h.color.getNormalizer(),{inRange:h.color.getColorMapper(),outOfRange:d.color.getColorMapper()},I);var img=new o.Image({style:{width:w,height:S,x:m,y:y,image:f.canvas},silent:!0});this.group.add(img)},dispose:function(){}});t.exports=h},function(t,e,n){var r=n(0);function o(){var canvas=r.createCanvas();this.canvas=canvas,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}o.prototype={update:function(data,t,e,n,r,o){var l=this._getBrush(),c=this._getGradient(data,r,"inRange"),h=this._getGradient(data,r,"outOfRange"),d=this.pointSize+this.blurSize,canvas=this.canvas,f=canvas.getContext("2d"),v=data.length;canvas.width=t,canvas.height=e;for(var i=0;i<v;++i){var p=data[i],m=p[0],y=p[1],x=n(p[2]);f.globalAlpha=x,f.drawImage(l,m-d,y-d)}if(!canvas.width||!canvas.height)return canvas;for(var _=f.getImageData(0,0,canvas.width,canvas.height),w=_.data,S=0,M=w.length,T=this.minOpacity,A=this.maxOpacity-T;S<M;){x=w[S+3]/256;var I=4*Math.floor(255*x);if(x>0){var C=o(x)?c:h;x>0&&(x=x*A+T),w[S++]=C[I],w[S++]=C[I+1],w[S++]=C[I+2],w[S++]=C[I+3]*x*256}else S+=4}return f.putImageData(_,0,0),canvas},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=r.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var o=t.getContext("2d");return o.clearRect(0,0,n,n),o.shadowOffsetX=n,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-e,e,this.pointSize,0,2*Math.PI,!0),o.closePath(),o.fill(),t},_getGradient:function(data,t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],l=0,i=0;i<256;i++)t[e](i/255,!0,o),r[l++]=o[0],r[l++]=o[1],r[l++]=o[2],r[l++]=o[3];return r}};var l=o;t.exports=l},function(t,e,n){var r=n(1),o=n(0);n(216),n(868),n(869);var l=n(165).layout,c=n(80);n(129),r.registerLayout(o.curry(l,"pictorialBar")),r.registerVisual(c("pictorialBar","roundRect"))},function(t,e,n){var r=n(349).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(option){return option.stack=null,r.superApply(this,"getInitialData",arguments)}}),o=r;t.exports=o},function(t,e,n){var r=n(1),o=n(0),l=n(2),c=n(38).createSymbol,h=n(5),d=h.parsePercent,f=h.isNumeric,v=n(350).setLabel,m=["itemStyle","borderWidth"],y=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],x=new l.Circle;function _(data,t,e,n){var r=data.getItemLayout(t),l=e.get("symbolRepeat"),c=e.get("symbolClip"),h=e.get("symbolPosition")||"start",v=(e.get("symbolRotate")||0)*Math.PI/180||0,y=e.get("symbolPatternSize")||2,_=e.isAnimationEnabled(),S={dataIndex:t,layout:r,itemModel:e,symbolType:data.getItemVisual(t,"symbol")||"circle",color:data.getItemVisual(t,"color"),symbolClip:c,symbolRepeat:l,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:y,rotation:v,animationModel:_?e:null,hoverAnimation:_&&e.get("hoverAnimation"),z2:e.getShallow("z",!0)||0};!function(t,e,n,r,output){var l,c=r.valueDim,h=t.get("symbolBoundingData"),d=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),f=d.toGlobalCoord(d.dataToCoord(0)),v=1-+(n[c.wh]<=0);if(o.isArray(h)){var m=[w(d,h[0])-f,w(d,h[1])-f];m[1]<m[0]&&m.reverse(),l=m[v]}else l=null!=h?w(d,h)-f:e?r.coordSysExtent[c.index][v]-f:n[c.wh];output.boundingLength=l,e&&(output.repeatCutLength=n[c.wh]);output.pxSign=l>0?1:l<0?-1:0}(e,l,r,n,S),function(data,t,e,n,r,l,c,h,f,output){var v=f.valueDim,m=f.categoryDim,y=Math.abs(e[m.wh]),x=data.getItemVisual(t,"symbolSize");o.isArray(x)?x=x.slice():(null==x&&(x="100%"),x=[x,x]);x[m.index]=d(x[m.index],y),x[v.index]=d(x[v.index],n?y:Math.abs(l)),output.symbolSize=x,(output.symbolScale=[x[0]/h,x[1]/h])[v.index]*=(f.isHorizontal?-1:1)*c}(data,t,r,l,0,S.boundingLength,S.pxSign,y,n,S),function(t,e,n,r,output){var o=t.get(m)||0;o&&(x.attr({scale:e.slice(),rotation:n}),x.updateTransform(),o/=x.getLineScale(),o*=e[r.valueDim.index]);output.valueLineWidth=o}(e,S.symbolScale,v,n,S);var M=S.symbolSize,T=e.get("symbolOffset");return o.isArray(T)&&(T=[d(T[0],M[0]),d(T[1],M[1])]),function(t,e,n,r,l,c,h,v,m,y,x,output){var _=x.categoryDim,w=x.valueDim,S=output.pxSign,M=Math.max(e[w.index]+v,0),T=M;if(r){var A=Math.abs(m),I=o.retrieve(t.get("symbolMargin"),"15%")+"",C=!1;I.lastIndexOf("!")===I.length-1&&(C=!0,I=I.slice(0,I.length-1)),I=d(I,e[w.index]);var D=Math.max(M+2*I,0),L=C?0:2*I,k=f(r),P=k?r:B((A+L)/D);D=M+2*(I=(A-P*M)/2/(C?P:P-1)),L=C?0:2*I,k||"fixed"===r||(P=y?B((Math.abs(y)+L)/D):0),T=P*D-L,output.repeatTimes=P,output.symbolMargin=I}var O=S*(T/2),E=output.pathPosition=[];E[_.index]=n[_.wh]/2,E[w.index]="start"===h?O:"end"===h?m-O:m/2,c&&(E[0]+=c[0],E[1]+=c[1]);var N=output.bundlePosition=[];N[_.index]=n[_.xy],N[w.index]=n[w.xy];var R=output.barRectShape=o.extend({},n);R[w.wh]=S*Math.max(Math.abs(n[w.wh]),Math.abs(E[w.index]+O)),R[_.wh]=n[_.wh];var z=output.clipShape={};z[_.xy]=-n[_.xy],z[_.wh]=x.ecSize[_.wh],z[w.xy]=0,z[w.wh]=n[w.wh]}(e,M,r,l,0,T,h,S.valueLineWidth,S.boundingLength,S.repeatCutLength,n,S),S}function w(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function S(t){var e=t.symbolPatternSize,path=c(t.symbolType,-e/2,-e/2,e,e,t.color);return path.attr({culling:!0}),"image"!==path.type&&path.setStyle({strokeNoScale:!0}),path}function M(t,e,n,r){var o=t.__pictorialBundle,l=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,d=e.valueDim,f=n.repeatTimes||0,v=0,m=l[e.valueDim.index]+c+2*n.symbolMargin;for(N(t,(function(path){path.__pictorialAnimationIndex=v,path.__pictorialRepeatTimes=f,v<f?R(path,null,x(v),n,r):R(path,null,{scale:[0,0]},n,r,(function(){o.remove(path)})),k(path,n),v++}));v<f;v++){var path=S(n);path.__pictorialAnimationIndex=v,path.__pictorialRepeatTimes=f,o.add(path);var y=x(v);R(path,{position:y.position,scale:[0,0]},{scale:y.scale,rotation:y.rotation},n,r),path.on("mouseover",_).on("mouseout",w),k(path,n)}function x(t){var e=h.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=f-1-t),e[d.index]=m*(i-f/2+.5)+h[d.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function _(){N(t,(function(path){path.trigger("emphasis")}))}function w(){N(t,(function(path){path.trigger("normal")}))}}function T(t,e,n,r){var o=t.__pictorialBundle,l=t.__pictorialMainPath;l?R(l,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,r):(l=t.__pictorialMainPath=S(n),o.add(l),R(l,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,r),l.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),k(l,n)}function A(t,e,n){var r=o.extend({},e.barRectShape),c=t.__pictorialBarRect;c?R(c,null,{shape:r},e,n):(c=t.__pictorialBarRect=new l.Rect({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(c))}function I(t,e,n,r){if(n.symbolClip){var c=t.__pictorialClipPath,h=o.extend({},n.clipShape),d=e.valueDim,f=n.animationModel,v=n.dataIndex;if(c)l.updateProps(c,{shape:h},f,v);else{h[d.wh]=0,c=new l.Rect({shape:h}),t.__pictorialBundle.setClipPath(c),t.__pictorialClipPath=c;var m={};m[d.wh]=n.clipShape[d.wh],l[r?"updateProps":"initProps"](c,{shape:m},f,v)}}}function C(data,t){var e=data.getItemModel(t);return e.getAnimationDelayParams=D,e.isAnimationEnabled=L,e}function D(path){return{index:path.__pictorialAnimationIndex,count:path.__pictorialRepeatTimes}}function L(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function k(path,t){path.off("emphasis").off("normal");var e=t.symbolScale.slice();t.hoverAnimation&&path.on("emphasis",(function(){this.animateTo({scale:[1.1*e[0],1.1*e[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:e.slice()},400,"elasticOut")}))}function P(data,t,e,n){var r=new l.Group,o=new l.Group;return r.add(o),r.__pictorialBundle=o,o.attr("position",e.bundlePosition.slice()),e.symbolRepeat?M(r,t,e):T(r,0,e),A(r,e,n),I(r,t,e,n),r.__pictorialShapeStr=E(data,e),r.__pictorialSymbolMeta=e,r}function O(data,t,e,n){var r=n.__pictorialBarRect;r&&(r.style.text=null);var c=[];N(n,(function(path){c.push(path)})),n.__pictorialMainPath&&c.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),o.each(c,(function(path){l.updateProps(path,{scale:[0,0]},e,t,(function(){n.parent&&n.parent.remove(n)}))})),data.setItemGraphicEl(t,null)}function E(data,t){return[data.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function N(t,e,n){o.each(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function R(t,e,n,r,o,c){e&&t.attr(e),r.symbolClip&&!o?n&&t.attr(n):n&&l[o?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,c)}function z(t,e,n){var r=n.color,c=n.dataIndex,h=n.itemModel,d=h.getModel("itemStyle").getItemStyle(["color"]),f=h.getModel("emphasis.itemStyle").getItemStyle(),m=h.getShallow("cursor");N(t,(function(path){path.setColor(r),path.setStyle(o.defaults({fill:r,opacity:n.opacity},d)),l.setHoverStyle(path,f),m&&(path.cursor=m),path.z2=n.z2}));var y={},x=e.valueDim.posDesc[+(n.boundingLength>0)],_=t.__pictorialBarRect;v(_.style,y,h,r,e.seriesModel,c,x),l.setHoverStyle(_,y)}function B(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var V=r.extendChartView({type:"pictorialBar",render:function(t,e,n){var r=this.group,data=t.getData(),o=this._data,c=t.coordinateSystem,h=!!c.getBaseAxis().isHorizontal(),d=c.grid.getRect(),f={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:c,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:h,valueDim:y[+h],categoryDim:y[1-h]};return data.diff(o).add((function(t){if(data.hasValue(t)){var e=C(data,t),n=_(data,t,e,f),o=P(data,f,n);data.setItemGraphicEl(t,o),r.add(o),z(o,f,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(data.hasValue(t)){var c=C(data,t),h=_(data,t,c,f),d=E(data,h);n&&d!==n.__pictorialShapeStr&&(r.remove(n),data.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var r=n.animationModel,o=n.dataIndex,c=t.__pictorialBundle;l.updateProps(c,{position:n.bundlePosition.slice()},r,o),n.symbolRepeat?M(t,e,n,!0):T(t,e,n,!0);A(t,n,!0),I(t,e,n,!0)}(n,f,h):n=P(data,f,h,!0),data.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=h,r.add(n),z(n,f,h)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&O(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=data,this.group},dispose:o.noop,remove:function(t,e){var n=this.group,data=this._data;t.get("animation")?data&&data.eachItemGraphicEl((function(e){O(data,e.dataIndex,t,e)})):n.removeAll()}});t.exports=V},function(t,e,n){var r=n(1);n(368),n(880),n(881);var o=n(882),l=n(883),c=n(131);r.registerLayout(o),r.registerVisual(l),r.registerProcessor(c("themeRiver"))},function(t,e,n){var r=n(872);n(42).register("single",{create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(o,l){var c=new r(o,t,e);c.name="single_"+l,c.resize(o,e),o.coordinateSystem=c,n.push(c)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}})),n},dimensions:r.prototype.dimensions})},function(t,e,n){var r=n(873),o=n(43),l=n(9).getLayoutRect,c=n(0).each;function h(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}h.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:h,_init:function(t,e,n){var l=this.dimension,c=new r(l,o.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),h="category"===c.type;c.onBand=h&&t.get("boundaryGap"),c.inverse=t.get("inverse"),c.orient=t.get("orient"),t.axis=c,c.model=t,c.coordinateSystem=this,this._axis=c},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var data=t.getData();c(data.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(data,t)}),this),o.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=l({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var rect=this._rect,t=this._axis,e=t.isHorizontal(),n=e?[0,rect.width]:[0,rect.height],r=t.reverse?1:0;t.setExtent(n[r],n[1-r]),this._updateAxisTransform(t,e?rect.x:rect.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),r=n[0]+n[1],o=t.isHorizontal();t.toGlobalCoord=o?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=o?function(t){return t-e}:function(t){return r-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var rect=this.getRect(),e=this.getAxis();return"horizontal"===e.orient?e.contain(e.toLocalCoord(t[0]))&&t[1]>=rect.y&&t[1]<=rect.y+rect.height:e.contain(e.toLocalCoord(t[1]))&&t[0]>=rect.y&&t[0]<=rect.y+rect.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),rect=this.getRect(),n=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[r]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-r]=0===r?rect.y+rect.height/2:rect.x+rect.width/2,n}};var d=h;t.exports=d},function(t,e,n){var r=n(0),o=n(66),l=function(t,e,n,r,l){o.call(this,t,e,n),this.type=r||"value",this.position=l||"bottom",this.orient=null};l.prototype={constructor:l,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){var r=n(0),o=n(67),l=n(2),c=n(369),h=n(81),d=n(348),f=d.rectCoordAxisBuildSplitArea,v=d.rectCoordAxisHandleRemove,m=["axisLine","axisTickLabel","axisName"],y=["splitArea","splitLine"],x=h.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,h){var d=this.group;d.removeAll();var f=this._axisGroup;this._axisGroup=new l.Group;var v=c.layout(t),_=new o(t,v);r.each(m,_.add,_),d.add(this._axisGroup),d.add(_.getGroup()),r.each(y,(function(e){t.get(e+".show")&&this["_"+e](t)}),this),l.groupTransition(f,this._axisGroup,t),x.superCall(this,"render",t,e,n,h)},remove:function(){v(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var n=t.getModel("splitLine"),r=n.getModel("lineStyle"),o=r.get("width"),c=r.get("color");c=c instanceof Array?c:[c];for(var h=t.coordinateSystem.getRect(),d=e.isHorizontal(),f=[],v=0,m=e.getTicksCoords({tickModel:n}),y=[],x=[],i=0;i<m.length;++i){var _=e.toGlobalCoord(m[i].coord);d?(y[0]=_,y[1]=h.y,x[0]=_,x[1]=h.y+h.height):(y[0]=h.x,y[1]=_,x[0]=h.x+h.width,x[1]=_);var w=v++%c.length;f[w]=f[w]||[],f[w].push(new l.Line({subPixelOptimize:!0,shape:{x1:y[0],y1:y[1],x2:x[0],y2:x[1]},style:{lineWidth:o},silent:!0}))}for(i=0;i<f.length;++i)this.group.add(l.mergePath(f[i],{style:{stroke:c[i%c.length],lineDash:r.getLineDash(o),lineWidth:o},silent:!0}))}},_splitArea:function(t){f(this,this._axisGroup,t,t)}}),_=x;t.exports=_},function(t,e,n){var r=n(0),o=n(21),l=n(167),c=n(97),h=o.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});r.merge(h.prototype,c),l("single",h,(function(t,option){return option.type||(option.data?"category":"value")}),{left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}});var d=h;t.exports=d},function(t,e,n){var r=n(0),o=n(6).makeInner,l=n(168),c=n(370),h=r.each,d=r.curry,f=o();function v(t,e,n,o,l){var c=t.axis;if(!c.scale.isBlank()&&c.containData(e))if(t.involveSeries){var d=function(t,e){var n=e.axis,r=n.dim,o=t,l=[],c=Number.MAX_VALUE,d=-1;return h(e.seriesModels,(function(e,f){var v,m,y=e.getData().mapDimension(r,!0);if(e.getAxisTooltipData){var x=e.getAxisTooltipData(y,t,n);m=x.dataIndices,v=x.nestestValue}else{if(!(m=e.getData().indicesOfNearest(y[0],t,"category"===n.type?.5:null)).length)return;v=e.getData().get(y[0],m[0])}if(null!=v&&isFinite(v)){var _=t-v,w=Math.abs(_);w<=c&&((w<c||_>=0&&d<0)&&(c=w,d=_,o=v,l.length=0),h(m,(function(t){l.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:l,snapToValue:o}}(e,t),f=d.payloadBatch,v=d.snapToValue;f[0]&&null==l.seriesIndex&&r.extend(l,f[0]),!o&&t.snap&&c.containData(v)&&null!=v&&(e=v),n.showPointer(t,e,f,l),n.showTooltip(t,d,v)}else n.showPointer(t,e)}function m(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function y(t,e,n,r){var o=n.payloadBatch,c=e.axis,h=c.model,d=e.axisPointerModel;if(e.triggerTooltip&&o.length){var f=e.coordSys.model,v=l.makeKey(f),m=t.map[v];m||(m=t.map[v]={coordSysId:f.id,coordSysIndex:f.componentIndex,coordSysType:f.type,coordSysMainType:f.mainType,dataByAxis:[]},t.list.push(m)),m.dataByAxis.push({axisDim:c.dim,axisIndex:h.componentIndex,axisType:h.type,axisId:h.id,value:r,valueLabelOpt:{precision:d.get("label.precision"),formatter:d.get("label.formatter")},seriesDataIndices:o.slice()})}}function x(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function _(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=function(t,e,n){var o=t.currTrigger,l=[t.x,t.y],w=t,S=t.dispatchAction||r.bind(n.dispatchAction,n),M=e.getComponent("axisPointer").coordSysAxesInfo;if(M){_(l)&&(l=c({seriesIndex:w.seriesIndex,dataIndex:w.dataIndex},e).point);var T=_(l),A=w.axesInfo,I=M.axesInfo,C="leave"===o||_(l),D={},L={},k={list:[],map:{}},P={showPointer:d(m,L),showTooltip:d(y,k)};h(M.coordSysMap,(function(t,e){var n=T||t.containPoint(l);h(M.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(A,t);if(!C&&n&&(!A||o)){var c=o&&o.value;null!=c||T||(c=r.pointToData(l)),null!=c&&v(t,c,P,!1,D)}}))}));var O={};return h(I,(function(t,e){var n=t.linkGroup;n&&!L[e]&&h(n.axesInfo,(function(e,r){var o=L[r];if(e!==t&&o){var l=o.value;n.mapper&&(l=t.axis.scale.parse(n.mapper(l,x(e),x(t)))),O[t.key]=l}}))})),h(O,(function(t,e){v(I[e],t,P,!0,D)})),function(t,e,n){var r=n.axesInfo=[];h(e,(function(e,n){var option=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(option.status="show"),option.value=o.value,option.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(option.status="hide"),"show"===option.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:option.value})}))}(L,I,D),function(t,e,n,r){if(_(e)||!t.list.length)return void r({type:"hideTip"});var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}(k,l,t,S),function(t,e,n){var o=n.getZr(),l=f(o).axisPointerLastHighlights||{},c=f(o).axisPointerLastHighlights={};h(t,(function(t,e){var option=t.axisPointerModel.option;"show"===option.status&&h(option.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;c[e]=t}))}));var d=[],v=[];r.each(l,(function(t,e){!c[e]&&v.push(t)})),r.each(c,(function(t,e){!l[e]&&d.push(t)})),v.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:v}),d.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:d})}(I,0,n),D}}},function(t,e,n){var r=n(1).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});t.exports=r},function(t,e,n){var r=n(1),o=n(371),l=r.extendComponentView({type:"axisPointer",render:function(t,e,n){var r=e.getComponent("tooltip"),l=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";o.register("axisPointer",n,(function(t,e,n){"none"!==l&&("leave"===t||l.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){o.unregister(e.getZr(),"axisPointer"),l.superApply(this._model,"remove",arguments)},dispose:function(t,e){o.unregister("axisPointer",e),l.superApply(this._model,"dispose",arguments)}}),c=l;t.exports=c},function(t,e,n){var r=n(227),o=n(172),l=n(369),c=n(81),h=["x","y"],d=["width","height"],f=r.extend({makeElOption:function(t,e,n,r,c){var h=n.axis,d=h.coordinateSystem,f=y(d,1-m(h)),x=d.dataToPoint(e)[0],_=r.get("type");if(_&&"none"!==_){var w=o.buildElStyle(r),S=v[_](h,x,f);S.style=w,t.graphicKey=S.type,t.pointer=S}var M=l.layout(n);o.buildCartesianSingleLabelElOption(e,t,M,n,r,c)},getHandleTransform:function(t,e,n){var r=l.layout(e,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:o.getTransformedPosition(e.axis,t,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,r){var o=n.axis,l=o.coordinateSystem,c=m(o),h=y(l,c),d=t.position;d[c]+=e[c],d[c]=Math.min(h[1],d[c]),d[c]=Math.max(h[0],d[c]);var f=y(l,1-c),v=(f[1]+f[0])/2,x=[v,v];return x[c]=d[c],{position:d,rotation:t.rotation,cursorPoint:x,tooltipOption:{verticalAlign:"middle"}}}}),v={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:o.makeLineShape([e,n[0]],[e,n[1]],m(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),span=n[1]-n[0];return{type:"Rect",shape:o.makeRectShape([e-r/2,n[0]],[r,span],m(t))}}};function m(t){return t.isHorizontal()?0:1}function y(t,e){var rect=t.getRect();return[rect[h[e]],rect[h[e]]+rect[d[e]]]}c.registerAxisPointerClass("SingleAxisPointer",f);var x=f;t.exports=x},function(t,e,n){var r=n(22),o=n(96),l=n(125).getDimensionTypeByAxis,c=n(37),h=n(0),d=n(6).groupData,f=n(10).encodeHTML,v=n(130),m=r.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(option){m.superApply(this,"init",arguments),this.legendVisualProvider=new v(h.bind(this.getData,this),h.bind(this.getRawData,this))},fixData:function(data){var t=data.length,e=d(data,(function(t){return t[2]})),n=[];e.buckets.each((function(t,e){n.push({name:e,dataList:t})}));for(var r=n.length,o=-1,l=-1,i=0;i<r;++i){var c=n[i].dataList.length;c>o&&(o=c,l=i)}for(var h=0;h<r;++h)if(h!==l)for(var f=n[h].name,v=0;v<o;++v){for(var m=n[l].dataList[v][0],y=n[h].dataList.length,x=-1,_=0;_<y;++_){if(n[h].dataList[_][0]===m){x=_;break}}-1===x&&(data[t]=[],data[t][0]=m,data[t][1]=0,data[t][2]=f,t++)}return data},getInitialData:function(option,t){for(var e=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),n=h.filter(option.data,(function(t){return void 0!==t[2]})),data=this.fixData(n||[]),r=[],d=this.nameMap=h.createHashMap(),f=0,i=0;i<data.length;++i)r.push(data[i][2]),d.get(data[i][2])||(d.set(data[i][2],f),f++);var v=o(data,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:l(e)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),m=new c(v,this);return m.initData(data),m},getLayerSeries:function(){for(var data=this.getData(),t=data.count(),e=[],i=0;i<t;++i)e[i]=i;var n=data.mapDimension("single"),r=d(e,(function(t){return data.get("name",t)})),o=[];return r.buckets.each((function(t,e){t.sort((function(t,e){return data.get(n,t)-data.get(n,e)})),o.push({name:e,indices:t})})),o},getAxisTooltipData:function(t,e,n){h.isArray(t)||(t=t?[t]:[]);for(var r,data=this.getData(),o=this.getLayerSeries(),l=[],c=o.length,i=0;i<c;++i){for(var d=Number.MAX_VALUE,f=-1,v=o[i].indices.length,m=0;m<v;++m){var y=data.get(t[0],o[i].indices[m]),x=Math.abs(y-e);x<=d&&(r=y,d=x,f=o[i].indices[m])}l.push(f)}return{dataIndices:l,nestestValue:r}},formatTooltip:function(t){var data=this.getData(),e=data.getName(t),n=data.get(data.mapDimension("value"),t);return(isNaN(n)||null==n)&&(n="-"),f(e+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),y=m;t.exports=y},function(t,e,n){var r=n(1),o=n(344).Polygon,l=n(2),c=n(0),h=c.bind,d=c.extend,f=n(79),v=r.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,n){var data=t.getData(),r=this.group,c=t.getLayerSeries(),v=data.getLayout("layoutInfo"),rect=v.rect,m=v.boundaryGap;function y(t){return t.name}r.attr("position",[0,rect.y+m[0]]);var x=new f(this._layersSeries||[],c,y,y),_={};function w(e,n,h){var f=this._layers;if("remove"!==e){for(var v,polygon,text,m=[],y=[],x=c[n].indices,w=0;w<x.length;w++){var S=data.getItemLayout(x[w]),M=S.x,T=S.y0,A=S.y;m.push([M,T]),y.push([M,T+A]),v=data.getItemVisual(x[w],"color")}var I=data.getItemLayout(x[0]),C=data.getItemModel(x[w-1]),D=C.getModel("label"),L=D.get("margin");if("add"===e){var k=_[n]=new l.Group;polygon=new o({shape:{points:m,stackedOnPoints:y,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),text=new l.Text({style:{x:I.x-L,y:I.y0+I.y/2}}),k.add(polygon),k.add(text),r.add(k),polygon.setClipPath(function(rect,t,e){var n=new l.Rect({shape:{x:rect.x-10,y:rect.y-10,width:0,height:rect.height+20}});return l.initProps(n,{shape:{width:rect.width+20,height:rect.height+20}},t,e),n}(polygon.getBoundingRect(),t,(function(){polygon.removeClipPath()})))}else{k=f[h];polygon=k.childAt(0),text=k.childAt(1),r.add(k),_[n]=k,l.updateProps(polygon,{shape:{points:m,stackedOnPoints:y}},t),l.updateProps(text,{style:{x:I.x-L,y:I.y0+I.y/2}},t)}var P=C.getModel("emphasis.itemStyle"),O=C.getModel("itemStyle");l.setTextStyle(text.style,D,{text:D.get("show")?t.getFormattedLabel(x[w-1],"normal")||data.getName(x[w-1]):null,textVerticalAlign:"middle"}),polygon.setStyle(d({fill:v},O.getItemStyle(["color"]))),l.setHoverStyle(polygon,P.getItemStyle())}else r.remove(f[n])}x.add(h(w,this,"add")).update(h(w,this,"update")).remove(h(w,this,"remove")).execute(),this._layersSeries=c,this._layers=_},dispose:function(){}});t.exports=v},function(t,e,n){var r=n(0),o=n(5);function l(data,t,e){if(data.count())for(var n,o=t.coordinateSystem,l=t.getLayerSeries(),c=data.mapDimension("single"),h=data.mapDimension("value"),d=r.map(l,(function(t){return r.map(t.indices,(function(t){var e=o.dataToPoint(data.get(c,t));return e[1]=data.get(h,t),e}))})),base=function(data){for(var t=data.length,e=data[0].length,n=[],r=[],o=0,base={},i=0;i<e;++i){for(var l=0,c=0;l<t;++l)c+=data[l][i][1];c>o&&(o=c),n.push(c)}for(var h=0;h<e;++h)r[h]=(o-n[h])/2;o=0;for(var d=0;d<e;++d){var f=n[d]+r[d];f>o&&(o=f)}return base.y0=r,base.max=o,base}(d),f=base.y0,v=e/base.max,m=l.length,y=l[0].indices.length,x=0;x<y;++x){n=f[x]*v,data.setItemLayout(l[0].indices[x],{layerIndex:0,x:d[0][x][0],y0:n,y:d[0][x][1]*v});for(var i=1;i<m;++i)n+=d[i-1][x][1]*v,data.setItemLayout(l[i].indices[x],{layerIndex:i,x:d[i][x][0],y0:n,y:d[i][x][1]*v})}}t.exports=function(t,e){t.eachSeriesByType("themeRiver",(function(t){var data=t.getData(),e=t.coordinateSystem,n={},rect=e.getRect();n.rect=rect;var r=t.get("boundaryGap"),c=e.getAxis();(n.boundaryGap=r,"horizontal"===c.orient)?(r[0]=o.parsePercent(r[0],rect.height),r[1]=o.parsePercent(r[1],rect.height),l(data,t,rect.height-r[0]-r[1])):(r[0]=o.parsePercent(r[0],rect.width),r[1]=o.parsePercent(r[1],rect.width),l(data,t,rect.width-r[0]-r[1]));data.setLayout("layoutInfo",n)}))}},function(t,e,n){var r=n(0).createHashMap;t.exports=function(t){t.eachSeriesByType("themeRiver",(function(t){var data=t.getData(),e=t.getRawData(),n=t.get("color"),o=r();data.each((function(t){o.set(data.getRawIndex(t),t)})),e.each((function(r){var l=e.getName(r),c=n[(t.nameMap.get(l)-1)%n.length];e.setItemVisual(r,"color",c);var h=o.get(r);null!=h&&data.setItemVisual(h,"color",c)}))}))}},function(t,e,n){var r=n(1),o=n(0);n(885),n(886),n(888);var l=n(169),c=n(889),h=n(131);r.registerVisual(o.curry(l,"sunburst")),r.registerLayout(o.curry(c,"sunburst")),r.registerProcessor(o.curry(h,"sunburst"))},function(t,e,n){var r=n(0),o=n(22),l=n(222),c=n(82).wrapTreePathInfo,h=o.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(option,t){var e={name:option.name,children:option.data};!function t(e){var n=0;r.each(e.children,(function(e){t(e);var o=e.value;r.isArray(o)&&(o=o[0]),n+=o}));var o=e.value;r.isArray(o)&&(o=o[0]);(null==o||isNaN(o))&&(o=n);o<0&&(o=0);r.isArray(e.value)?e.value[0]=o:e.value=o}(e);var n=option.levels||[],o={};return o.levels=n,l.createTree(e,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=o.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c(n,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});t.exports=h},function(t,e,n){var r=n(0),o=n(48),l=n(887),c=n(79),h=n(10).windowOpen,d=o.extend({type:"sunburst",init:function(){},render:function(t,e,n,o){var h=this;this.seriesModel=t,this.api=n,this.ecModel=e;var data=t.getData(),d=data.tree.root,f=t.getViewRoot(),v=this.group,m=t.get("renderLabelForZeroData"),y=[];f.eachNode((function(t){y.push(t)}));var x=this._oldChildren||[];if(function(n,o){if(0===n.length&&0===o.length)return;function h(t){return t.getId()}function f(r,c){!function(n,r){m||!n||n.getValue()||(n=null);if(n!==d&&r!==d)if(r&&r.piece)n?(r.piece.updateData(!1,n,"normal",t,e),data.setItemGraphicEl(n.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(v.remove(t.piece),t.piece=null)}(r);else if(n){var o=new l(n,t,e);v.add(o),data.setItemGraphicEl(n.dataIndex,o)}}(null==r?null:n[r],null==c?null:o[c])}new c(o,n,h,h).add(f).update(f).remove(r.curry(f,null)).execute()}(y,x),function(n,r){if(r.depth>0){h.virtualPiece?h.virtualPiece.updateData(!1,n,"normal",t,e):(h.virtualPiece=new l(n,t,e),v.add(h.virtualPiece)),r.piece._onclickEvent&&r.piece.off("click",r.piece._onclickEvent);var o=function(t){h._rootToNode(r.parentNode)};r.piece._onclickEvent=o,h.virtualPiece.on("click",o)}else h.virtualPiece&&(v.remove(h.virtualPiece),h.virtualPiece=null)}(d,f),o&&o.highlight&&o.highlight.piece){var _=t.getShallow("highlightPolicy");o.highlight.piece.onEmphasis(_)}else if(o&&o.unhighlight){var w=this.virtualPiece;!w&&d.children.length&&(w=d.children[0].piece),w&&w.onNormal()}this._initEvents(),this._oldChildren=y},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece.childAt(0)===e.target){var o=r.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(r);else if("link"===o){var l=r.getModel(),link=l.get("link");if(link){var c=l.get("target",!0)||"_blank";h(link,c)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,o=t[1]-n.cy,l=Math.sqrt(r*r+o*o);return l<=n.r&&l>=n.r0}}});t.exports=d},function(t,e,n){var r=n(0),o=n(2),l="none",c="ancestor",h="self";function d(t,e,n){o.Group.call(this);var r=new o.Sector({z2:2});r.seriesIndex=e.seriesIndex;var text=new o.Text({z2:4,silent:t.getModel("label").get("silent")});function l(){text.ignore=text.hoverIgnore}function c(){text.ignore=text.normalIgnore}this.add(r),this.add(text),this.updateData(!0,t,"normal",e,n),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var f=d.prototype;f.updateData=function(t,e,n,l,c){this.node=e,e.piece=this,l=l||this._seriesModel,c=c||this._ecModel;var h=this.childAt(0);h.dataIndex=e.dataIndex;var d=e.getModel(),f=e.getLayout(),v=r.extend({},f);v.label=null;var m=function(t,e,n){var o=t.getVisual("color"),l=t.getVisual("visualMeta");l&&0!==l.length||(o=null);var c=t.getModel("itemStyle").get("color");if(c)return c;if(o)return o;if(0===t.depth)return n.option.color[0];var h=n.option.color.length;c=n.option.color[function(t){var e=t;for(;e.depth>1;)e=e.parentNode;var n=t.getAncestors()[0];return r.indexOf(n.children,e)}(t)%h];return c}(e,0,c);!function(t,e,n){e.getData().setItemVisual(t.dataIndex,"color",n)}(e,l,m);var style,y=d.getModel("itemStyle").getItemStyle();if("normal"===n)style=y;else{var x=d.getModel(n+".itemStyle").getItemStyle();style=r.merge(x,y)}style=r.defaults({lineJoin:"bevel",fill:style.fill||m},style),t?(h.setShape(v),h.shape.r=f.r0,o.updateProps(h,{shape:{r:f.r}},l,e.dataIndex),h.useStyle(style)):"object"==typeof style.fill&&style.fill.type||"object"==typeof h.style.fill&&h.style.fill.type?(o.updateProps(h,{shape:v},l),h.useStyle(style)):o.updateProps(h,{shape:v,style:style},l),this._updateLabel(l,m,n);var _=d.getShallow("cursor");if(_&&h.attr("cursor",_),t){var w=l.getShallow("highlightPolicy");this._initEvents(h,e,l,w)}this._seriesModel=l||this._seriesModel,this._ecModel=c||this._ecModel,o.setHoverStyle(this)},f.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(n){var r,o,d;n.piece&&(e.node===n?n.piece.updateData(!1,n,"emphasis"):(r=n,o=e.node,(d=t)!==l&&(d===h?r===o:d===c?r===o||r.isAncestorOf(o):r===o||r.isDescendantOf(o))?n.piece.childAt(0).trigger("highlight"):t!==l&&n.piece.childAt(0).trigger("downplay")))}))},f.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},f.onHighlight=function(){this.updateData(!1,this.node,"highlight")},f.onDownplay=function(){this.updateData(!1,this.node,"downplay")},f._updateLabel=function(t,e,n){var l=this.node.getModel(),c=l.getModel("label"),h="normal"===n||"emphasis"===n?c:l.getModel(n+".label"),d=l.getModel("emphasis.label"),text=r.retrieve(t.getFormattedLabel(this.node.dataIndex,n,null,null,"label"),this.node.name);!1===L("show")&&(text="");var f=this.node.getLayout(),v=h.get("minAngle");null==v&&(v=c.get("minAngle")),v=v/180*Math.PI;var m=f.endAngle-f.startAngle;null!=v&&Math.abs(m)<v&&(text="");var label=this.childAt(1);o.setLabelStyle(label.style,label.hoverStyle||{},c,d,{defaultText:h.getShallow("show")?text:null,autoColor:e,useInsideStyle:!0});var y,x=(f.startAngle+f.endAngle)/2,_=Math.cos(x),w=Math.sin(x),S=L("position"),M=L("distance")||0,T=L("align");"outside"===S?(y=f.r+M,T=x>Math.PI/2?"right":"left"):T&&"center"!==T?"left"===T?(y=f.r0+M,x>Math.PI/2&&(T="right")):"right"===T&&(y=f.r-M,x>Math.PI/2&&(T="left")):(y=(f.r+f.r0)/2,T="center"),label.attr("style",{text:text,textAlign:T,textVerticalAlign:L("verticalAlign")||"middle",opacity:L("opacity")});var A=y*_+f.cx,I=y*w+f.cy;label.attr("position",[A,I]);var C=L("rotate"),D=0;function L(t){var e=h.get(t);return null==e?c.get(t):e}"radial"===C?(D=-x)<-Math.PI/2&&(D+=Math.PI):"tangential"===C?(D=Math.PI/2-x)>Math.PI/2?D-=Math.PI:D<-Math.PI/2&&(D+=Math.PI):"number"==typeof C&&(D=C*Math.PI/180),label.attr("rotation",D)},f._initEvents=function(t,e,n,r){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var o=this,l=function(){o.onEmphasis(r)},c=function(){o.onNormal()};n.isAnimationEnabled()&&t.on("mouseover",l).on("mouseout",c).on("emphasis",l).on("normal",c).on("downplay",(function(){o.onDownplay()})).on("highlight",(function(){o.onHighlight()}))},r.inherits(d,o.Group);var v=d;t.exports=v},function(t,e,n){var r=n(1),o=n(82);r.registerAction({type:"sunburstRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=o.retrieveTargetInfo(t,["sunburstRootToNode"],e);if(r){var l=e.getViewRoot();l&&(t.direction=o.aboveViewRoot(l,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))}));r.registerAction({type:"sunburstHighlight",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=o.retrieveTargetInfo(t,["sunburstHighlight"],e);r&&(t.highlight=r.node)}))}));r.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){t.unhighlight=!0}))}))},function(t,e,n){var r=n(5).parsePercent,o=n(0),l=Math.PI/180;function c(t,e){var n=t.children||[];t.children=function(t,e){if("function"==typeof e)return t.sort(e);var n="asc"===e;return t.sort((function(a,b){var t=(a.getValue()-b.getValue())*(n?1:-1);return 0===t?(a.dataIndex-b.dataIndex)*(n?-1:1):t}))}(n,e),n.length&&o.each(t.children,(function(t){c(t,e)}))}t.exports=function(t,e,n,h){e.eachSeriesByType(t,(function(t){var e=t.get("center"),h=t.get("radius");o.isArray(h)||(h=[0,h]),o.isArray(e)||(e=[e,e]);var d=n.getWidth(),f=n.getHeight(),v=Math.min(d,f),m=r(e[0],d),y=r(e[1],f),x=r(h[0],v/2),_=r(h[1],v/2),w=-t.get("startAngle")*l,S=t.get("minAngle")*l,M=t.getData().tree.root,T=t.getViewRoot(),A=T.depth,I=t.get("sort");null!=I&&c(T,I);var C=0;o.each(T.children,(function(t){!isNaN(t.getValue())&&C++}));var D=T.getValue(),L=Math.PI/(D||C)*2,k=T.depth>0,P=T.height-(k?-1:1),O=(_-x)/(P||1),E=t.get("clockwise"),N=t.get("stillShowZeroSum"),R=E?1:-1,z=function(t,e){if(t){var n=e;if(t!==M){var l=t.getValue(),c=0===D&&N?L:l*L;c<S&&(c=S),n=e+R*c;var h=t.depth-A-(k?-1:1),d=x+O*h,f=x+O*(h+1),_=t.getModel();null!=_.get("r0")&&(d=r(_.get("r0"),v/2)),null!=_.get("r")&&(f=r(_.get("r"),v/2)),t.setLayout({angle:c,startAngle:e,endAngle:n,clockwise:E,cx:m,cy:y,r0:d,r:f})}if(t.children&&t.children.length){var w=0;o.each(t.children,(function(t){w+=z(t,e+w)}))}return n-e}};if(k){var B=x,V=x+O,H=2*Math.PI;M.setLayout({angle:H,startAngle:w,endAngle:w+H,clockwise:E,cx:m,cy:y,r0:B,r:V})}z(T,w)}))}},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(2),l=n(215).getDefaultLabel,c=n(56),h=n(165).getLayoutOnAxis,d=n(79),f=n(22),v=n(19),m=n(48),y=n(127).createClipPath,x=n(891),_=n(892),w=n(893),S=n(894),M=n(895),T=o.CACHED_LABEL_STYLE_PROPERTIES,A=["itemStyle"],I=["emphasis","itemStyle"],C=["label"],D=["emphasis","label"],L={cartesian2d:x,geo:_,singleAxis:w,polar:S,calendar:M};function k(t,e,n,r,o){null==n[t]||o||(e[t]=n[t],n[t]=r[t])}function P(t,data,e,n){var c=t.get("renderItem"),d=t.coordinateSystem,f={};d&&(f=d.prepareCustoms?d.prepareCustoms():L[d.type](d));var v,m,y,x,_,w=r.defaults({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(t,e){return null==e&&(e=v),data.get(data.getDimension(t||0),e)},style:function(e,n){null==n&&(n=v),T(n);var c=m.getModel(A).getItemStyle();null!=_&&(c.fill=_);var h=data.getItemVisual(n,"opacity");null!=h&&(c.opacity=h);var d=e?B(e,y):y;return o.setTextStyle(c,d,null,{autoColor:_,isRectText:!0}),c.text=d.getShallow("show")?r.retrieve2(t.getFormattedLabel(n,"normal"),l(data,n)):null,e&&V(c,e),c},styleEmphasis:function(e,n){null==n&&(n=v),T(n);var c=m.getModel(I).getItemStyle(),h=e?B(e,x):x;return o.setTextStyle(c,h,null,{isRectText:!0},!0),c.text=h.getShallow("show")?r.retrieve3(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),l(data,n)):null,e&&V(c,e),c},visual:function(t,e){return null==e&&(e=v),data.getItemVisual(e,t)},barLayout:function(t){if(d.getBaseAxis){var e=d.getBaseAxis();return h(r.defaults({axis:e},t),n)}},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return o.getFont(t,e)}},f.api||{}),S={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:f.coordSys,dataInsideLength:data.count(),encode:O(t.getData())},M=!0;return function(t,e){return v=t,M=!0,c&&c(r.defaults({dataIndexInside:t,dataIndex:data.getRawIndex(t),actionType:e?e.type:null},S),w)};function T(t){null==t&&(t=v),M&&(m=data.getItemModel(t),y=m.getModel(C),x=m.getModel(D),_=data.getItemVisual(t,"color"),M=!1)}}function O(data){var t={};return r.each(data.dimensions,(function(e,n){var r=data.getDimensionInfo(e);if(!r.isExtraCoord){var o=r.coordDim;(t[o]=t[o]||[])[r.coordDimIndex]=n}})),t}function E(t,e,n,r,o,data){return(t=N(t,e,n,r,o,data,!0))&&data.setItemGraphicEl(e,t),t}function N(t,e,n,l,c,data,h){var f,v=!n,m=(n=n||{}).type,y=n.shape,x=n.style;if(t&&(v||null!=m&&m!==t.__customGraphicType||"path"===m&&((f=y)&&(f.hasOwnProperty("pathData")||f.hasOwnProperty("d")))&&F(y)!==t.__customPathData||"image"===m&&G(x,"image")&&x.image!==t.__customImagePath||"text"===m&&G(y,"text")&&x.text!==t.__customText)&&(c.remove(t),t=null),!v){var _=!t;return!t&&(t=function(t){var e,n=t.type;if("path"===n){var r=t.shape,l=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,c=F(r);(e=o.makePath(c,null,l,r.layout||"center")).__customPathData=c}else if("image"===n)(e=new o.Image({})).__customImagePath=t.style.image;else if("text"===n)(e=new o.Text({})).__customText=t.style.text;else if("group"===n)e=new o.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');e=new(o.getShapeClass(n))}return e.__customGraphicType=n,e.name=t.name,e}(n)),function(t,e,n,l,data,c,h){var d={},f=n.style||{};if(n.shape&&(d.shape=r.clone(n.shape)),n.position&&(d.position=n.position.slice()),n.scale&&(d.scale=n.scale.slice()),n.origin&&(d.origin=n.origin.slice()),n.rotation&&(d.rotation=n.rotation),"image"===t.type&&n.style){var v=d.style={};r.each(["x","y","width","height"],(function(e){k(e,v,f,t.style,c)}))}if("text"===t.type&&n.style){v=d.style={};r.each(["x","y"],(function(e){k(e,v,f,t.style,c)})),!f.hasOwnProperty("textFill")&&f.fill&&(f.textFill=f.fill),!f.hasOwnProperty("textStroke")&&f.stroke&&(f.textStroke=f.stroke)}if("group"!==t.type&&(t.useStyle(f),c)){t.style.opacity=0;var m=f.opacity;null==m&&(m=1),o.initProps(t,{style:{opacity:m}},l,e)}c?t.attr(d):o.updateProps(t,d,l,e),n.hasOwnProperty("z2")&&t.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&t.attr("silent",n.silent),n.hasOwnProperty("invisible")&&t.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&t.attr("ignore",n.ignore),n.hasOwnProperty("info")&&t.attr("info",n.info);var y=n.styleEmphasis;o.setElementHoverStyle(t,y),h&&o.setAsHighDownDispatcher(t,!1!==y)}(t,e,n,l,0,_,h),"group"===m&&function(t,e,n,r,data){var o=n.children,l=o?o.length:0,c=n.$mergeChildren,h="byName"===c||n.diffChildrenByName,f=!1===c;if(!l&&!h&&!f)return;if(h)return v={oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:r,group:t,data:data},void new d(v.oldChildren,v.newChildren,R,R,v).add(z).update(z).remove(H).execute();var v;f&&t.removeAll();for(var m=0;m<l;m++)o[m]&&N(t.childAt(m),e,o[m],r,t,data)}(t,e,n,l,data),c.add(t),t}}function R(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function z(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null;N(null!=e?n.oldChildren[e]:null,n.dataIndex,r,n.animatableModel,n.group,n.data)}function B(t,e){var n=new v({},e);return r.each(T,(function(e,r){t.hasOwnProperty(e)&&(n.option[r]=t[e])})),n}function V(t,e){for(var n in e)!e.hasOwnProperty(n)&&T.hasOwnProperty(n)||(t[n]=e[n])}function H(t){var e=this.context,n=e.oldChildren[t];n&&e.group.remove(n)}function F(t){return t&&(t.pathData||t.d)}function G(t,e){return t&&t.hasOwnProperty(e)}f.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(option,t){return c(this.getSource(),this)},getDataParams:function(t,e,n){var r=f.prototype.getDataParams.apply(this,arguments);return n&&(r.info=n.info),r}}),m.extend({type:"custom",_data:null,render:function(t,e,n,r){var o=this._data,data=t.getData(),l=this.group,c=P(t,data,e,n);data.diff(o).add((function(e){E(null,e,c(e,r),t,l,data)})).update((function(e,n){E(o.getItemGraphicEl(n),e,c(e,r),t,l,data)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&l.remove(e)})).execute();var h=t.get("clip",!0)?y(t.coordinateSystem,!1,t):null;h?l.setClipPath(h):l.removeClipPath(),this._data=data},incrementalPrepareRender:function(t,e,n){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,n,r,o){var data=e.getData(),l=P(e,data,n,r);function c(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}for(var h=t.start;h<t.end;h++){E(null,h,l(h,o),e,this.group,data).traverse(c)}},dispose:r.noop,filterForExposedEvent:function(t,e,n,r){var o=e.element;if(null==o||n.name===o)return!0;for(;(n=n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1}})},function(t,e,n){var r=n(0);function o(t,e){return e=e||[0,0],r.map(["x","y"],(function(n,r){var o=this.getAxis(n),l=e[r],c=t[r]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(l-c)-o.dataToCoord(l+c))}),this)}t.exports=function(t){var rect=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:rect.x,y:rect.y,width:rect.width,height:rect.height},api:{coord:function(data){return t.dataToPoint(data)},size:r.bind(o,t)}}}},function(t,e,n){var r=n(0);function o(t,e){return e=e||[0,0],r.map([0,1],(function(n){var r=e[n],o=t[n]/2,l=[],c=[];return l[n]=r-o,c[n]=r+o,l[1-n]=c[1-n]=e[1-n],Math.abs(this.dataToPoint(l)[n]-this.dataToPoint(c)[n])}),this)}t.exports=function(t){var rect=t.getBoundingRect();return{coordSys:{type:"geo",x:rect.x,y:rect.y,width:rect.width,height:rect.height,zoom:t.getZoom()},api:{coord:function(data){return t.dataToPoint(data)},size:r.bind(o,t)}}}},function(t,e,n){var r=n(0);function o(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-o)-n.dataToCoord(r+o))}t.exports=function(t){var rect=t.getRect();return{coordSys:{type:"singleAxis",x:rect.x,y:rect.y,width:rect.width,height:rect.height},api:{coord:function(e){return t.dataToPoint(e)},size:r.bind(o,t)}}}},function(t,e,n){var r=n(0);function o(t,e){return r.map(["Radius","Angle"],(function(n,r){var o=this["get"+n+"Axis"](),l=e[r],c=t[r]/2,h="dataTo"+n,d="category"===o.type?o.getBandWidth():Math.abs(o[h](l-c)-o[h](l+c));return"Angle"===n&&(d=d*Math.PI/180),d}),this)}t.exports=function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),l=e.getExtent();return l[0]>l[1]&&l.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:l[1],r0:l[0]},api:{coord:r.bind((function(data){var r=e.dataToRadius(data[0]),o=n.dataToAngle(data[1]),l=t.coordToPoint([r,o]);return l.push(r,o*Math.PI/180),l})),size:r.bind(o,t)}}}},function(t,e){t.exports=function(t){var rect=t.getRect(),e=t.getRangeInfo();return{coordSys:{type:"calendar",x:rect.x,y:rect.y,width:rect.width,height:rect.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(data,e){return t.dataToPoint(data,e)}}}}},function(t,e,n){n(129),n(372),n(133)},function(t,e,n){var r=n(1),o=n(0),l=n(898);n(228),n(904),n(906),n(133),n(908),r.registerLayout(o.curry(l,"bar")),r.extendComponentView({type:"polar"})},function(t,e,n){var r=n(0),o=n(5).parsePercent,l=n(49).isDimensionStacked;function c(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function h(t,e){return e.dim+t.model.componentIndex}var d=function(t,e,n){var d={},f=function(t,e){var n={};r.each(t,(function(t,e){var data=t.getData(),r=t.coordinateSystem,l=r.getBaseAxis(),d=h(r,l),f=l.getExtent(),v="category"===l.type?l.getBandWidth():Math.abs(f[1]-f[0])/data.count(),m=n[d]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},y=m.stacks;n[d]=m;var x=c(t);y[x]||m.autoWidthCount++,y[x]=y[x]||{width:0,maxWidth:0};var _=o(t.get("barWidth"),v),w=o(t.get("barMaxWidth"),v),S=t.get("barGap"),M=t.get("barCategoryGap");_&&!y[x].width&&(_=Math.min(m.remainedWidth,_),y[x].width=_,m.remainedWidth-=_),w&&(y[x].maxWidth=w),null!=S&&(m.gap=S),null!=M&&(m.categoryGap=M)}));var l={};return r.each(n,(function(t,e){l[e]={};var n=t.stacks,c=t.bandWidth,h=o(t.categoryGap,c),d=o(t.gap,1),f=t.remainedWidth,v=t.autoWidthCount,m=(f-h)/(v+(v-1)*d);m=Math.max(m,0),r.each(n,(function(t,e){var n=t.maxWidth;n&&n<m&&(n=Math.min(n,f),t.width&&(n=Math.min(n,t.width)),f-=n,t.width=n,v--)})),m=(f-h)/(v+(v-1)*d),m=Math.max(m,0);var y,x=0;r.each(n,(function(t,e){t.width||(t.width=m),y=t,x+=t.width*(1+d)})),y&&(x-=y.width*d);var _=-x/2;r.each(n,(function(t,n){l[e][n]=l[e][n]||{offset:_,width:t.width},_+=t.width*(1+d)}))})),l}(r.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var data=t.getData(),e=t.coordinateSystem,n=e.getBaseAxis(),r=h(e,n),o=c(t),v=f[r][o],m=v.offset,y=v.width,x=e.getOtherAxis(n),_=t.coordinateSystem.cx,w=t.coordinateSystem.cy,S=t.get("barMinHeight")||0,M=t.get("barMinAngle")||0;d[o]=d[o]||[];for(var T=data.mapDimension(x.dim),A=data.mapDimension(n.dim),I=l(data,T),C="radius"!==n.dim||!t.get("roundCap",!0),D=x.getExtent()[0],L=0,k=data.count();L<k;L++){var P,O,E,N,R=data.get(T,L),z=data.get(A,L),B=R>=0?"p":"n",V=D;if(I&&(d[o][z]||(d[o][z]={p:D,n:D}),V=d[o][z][B]),"radius"===x.dim){var H=x.dataToRadius(R)-D,F=n.dataToAngle(z);Math.abs(H)<S&&(H=(H<0?-1:1)*S),P=V,O=V+H,N=(E=F-m)-y,I&&(d[o][z][B]=O)}else{var G=x.dataToAngle(R,C)-D,W=n.dataToRadius(z);Math.abs(G)<M&&(G=(G<0?-1:1)*M),O=(P=W+m)+y,E=V,N=V+G,I&&(d[o][z][B]=N)}data.setItemLayout(L,{cx:_,cy:w,r0:P,r:O,startAngle:-E*Math.PI/180,endAngle:-N*Math.PI/180})}}}),this)};t.exports=d},function(t,e,n){var r=n(900),o=n(901),l=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new r,this._angleAxis=new o,this._radiusAxis.polar=this._angleAxis.polar=this};l.prototype={type:"polar",axisPointerEnabled:!0,constructor:l,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(data){return this._radiusAxis.containData(data[0])&&this._angleAxis.containData(data[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(data,t){return this.coordToPoint([this._radiusAxis.dataToRadius(data[0],t),this._angleAxis.dataToAngle(data[1],t)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),o=r.getExtent(),l=Math.min(o[0],o[1]),c=Math.max(o[0],o[1]);r.inverse?l=c-360:c=l+360;var h=Math.sqrt(e*e+n*n);e/=h,n/=h;for(var d=Math.atan2(-n,e)/Math.PI*180,f=d<l?1:-1;d<l||d>c;)d+=360*f;return[h,d]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,o=n*n+r*r,l=this.r,c=this.r0;return o<=l*l&&o>=c*c}}}};var c=l;t.exports=c},function(t,e,n){var r=n(0),o=n(66);function l(t,e){o.call(this,"radius",t,e),this.type="category"}l.prototype={constructor:l,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:o.prototype.dataToCoord,radiusToData:o.prototype.coordToData},r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){var r=n(0),o=n(33),l=n(66),c=(0,n(6).makeInner)();function h(t,e){e=e||[0,360],l.call(this,"angle",t,e),this.type="category"}h.prototype={constructor:h,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:l.prototype.dataToCoord,angleToData:l.prototype.coordToData,calculateCategoryInterval:function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),r=e.count();if(n[1]-n[0]<1)return 0;var l=n[0],h=this.dataToCoord(l+1)-this.dataToCoord(l),d=Math.abs(h),rect=o.getBoundingRect(l,t.getFont(),"center","top"),f=Math.max(rect.height,7)/d;isNaN(f)&&(f=1/0);var v=Math.max(0,Math.floor(f)),m=c(this.model),y=m.lastAutoInterval,x=m.lastTickCount;return null!=y&&null!=x&&Math.abs(y-v)<=1&&Math.abs(x-r)<=1&&y>v?v=y:(m.lastTickCount=r,m.lastAutoInterval=v),v}},r.inherits(h,l);var d=h;t.exports=d},function(t,e,n){var r=n(1);n(903);var o=r.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=o},function(t,e,n){var r=n(0),o=n(21),l=n(167),c=n(97),h=o.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(h.prototype,c);var d={splitNumber:5};function f(t,option){return option.type||(option.data?"category":"value")}l("angle",h,f,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),l("radius",h,f,d)},function(t,e,n){n(228),n(905)},function(t,e,n){var r=n(0),o=n(2),l=n(19),c=n(81),h=n(67),d=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function f(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),o=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:o[0],y2:o[1]}}function v(t){return t.getRadiusAxis().inverse?0:1}function m(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var y=c.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,o=n.polar,l=o.getRadiusAxis().getExtent(),c=n.getTicksCoords(),h=n.getMinorTicksCoords(),f=r.map(n.getViewLabels(),(function(t){return(t=r.clone(t)).coord=n.dataToCoord(t.tickValue),t}));m(f),m(c),r.each(d,(function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,o,c,h,l,f)}),this)}},_axisLine:function(t,e,n,r,l){var c,h=t.getModel("axisLine.lineStyle"),d=v(e),f=d?0:1;(c=0===l[f]?new o.Circle({shape:{cx:e.cx,cy:e.cy,r:l[d]},style:h.getLineStyle(),z2:1,silent:!0}):new o.Ring({shape:{cx:e.cx,cy:e.cy,r:l[d],r0:l[f]},style:h.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(c)},_axisTick:function(t,e,n,l,c){var h=t.getModel("axisTick"),d=(h.get("inside")?-1:1)*h.get("length"),m=c[v(e)],y=r.map(n,(function(t){return new o.Line({shape:f(e,[m,m+d],t.coord)})}));this.group.add(o.mergePath(y,{style:r.defaults(h.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,n,l,c){if(l.length){for(var h=t.getModel("axisTick"),d=t.getModel("minorTick"),m=(h.get("inside")?-1:1)*d.get("length"),y=c[v(e)],x=[],i=0;i<l.length;i++)for(var _=0;_<l[i].length;_++)x.push(new o.Line({shape:f(e,[y,y+m],l[i][_].coord)}));this.group.add(o.mergePath(x,{style:r.defaults(d.getModel("lineStyle").getLineStyle(),r.defaults(h.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(t,e,n,c,d,f){var m=t.getCategories(!0),y=t.getModel("axisLabel"),x=y.get("margin"),_=t.get("triggerEvent");r.each(f,(function(n,r){var c=y,f=n.tickValue,w=d[v(e)],p=e.coordToPoint([w+x,n.coord]),S=e.cx,M=e.cy,T=Math.abs(p[0]-S)/w<.3?"center":p[0]>S?"left":"right",A=Math.abs(p[1]-M)/w<.3?"middle":p[1]>M?"top":"bottom";m&&m[f]&&m[f].textStyle&&(c=new l(m[f].textStyle,y,y.ecModel));var I=new o.Text({silent:h.isLabelSilent(t)});this.group.add(I),o.setTextStyle(I.style,c,{x:p[0],y:p[1],textFill:c.getTextColor()||t.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:T,textVerticalAlign:A}),_&&(I.eventData=h.makeAxisEventDataBase(t),I.eventData.targetType="axisLabel",I.eventData.value=n.rawLabel)}),this)},_splitLine:function(t,e,n,l,c){var h=t.getModel("splitLine").getModel("lineStyle"),d=h.get("color"),v=0;d=d instanceof Array?d:[d];for(var m=[],i=0;i<n.length;i++){var y=v++%d.length;m[y]=m[y]||[],m[y].push(new o.Line({shape:f(e,c,n[i].coord)}))}for(i=0;i<m.length;i++)this.group.add(o.mergePath(m[i],{style:r.defaults({stroke:d[i%d.length]},h.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,e,n,r,l){if(r.length){for(var c=t.getModel("minorSplitLine").getModel("lineStyle"),h=[],i=0;i<r.length;i++)for(var d=0;d<r[i].length;d++)h.push(new o.Line({shape:f(e,l,r[i][d].coord)}));this.group.add(o.mergePath(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))}},_splitArea:function(t,e,n,l,c){if(n.length){var h=t.getModel("splitArea").getModel("areaStyle"),d=h.get("color"),f=0;d=d instanceof Array?d:[d];for(var v=[],m=Math.PI/180,y=-n[0].coord*m,x=Math.min(c[0],c[1]),_=Math.max(c[0],c[1]),w=t.get("clockwise"),i=1;i<n.length;i++){var S=f++%d.length;v[S]=v[S]||[],v[S].push(new o.Sector({shape:{cx:e.cx,cy:e.cy,r0:x,r:_,startAngle:y,endAngle:-n[i].coord*m,clockwise:w},silent:!0})),y=-n[i].coord*m}for(i=0;i<v.length;i++)this.group.add(o.mergePath(v[i],{style:r.defaults({fill:d[i%d.length]},h.getAreaStyle()),silent:!0}))}}});t.exports=y},function(t,e,n){n(228),n(907)},function(t,e,n){var r=n(0),o=n(2),l=n(67),c=n(81),h=["axisLine","axisTickLabel","axisName"],d=["splitLine","splitArea","minorSplitLine"],f=c.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,o=n.polar,c=o.getAngleAxis(),f=n.getTicksCoords(),v=n.getMinorTicksCoords(),m=c.getExtent()[0],y=n.getExtent(),x=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,m),_=new l(t,x);r.each(h,_.add,_),this.group.add(_.getGroup()),r.each(d,(function(e){t.get(e+".show")&&!n.scale.isBlank()&&this["_"+e](t,o,m,y,f,v)}),this)}},_splitLine:function(t,e,n,l,c){var h=t.getModel("splitLine").getModel("lineStyle"),d=h.get("color"),f=0;d=d instanceof Array?d:[d];for(var v=[],i=0;i<c.length;i++){var m=f++%d.length;v[m]=v[m]||[],v[m].push(new o.Circle({shape:{cx:e.cx,cy:e.cy,r:c[i].coord}}))}for(i=0;i<v.length;i++)this.group.add(o.mergePath(v[i],{style:r.defaults({stroke:d[i%d.length],fill:null},h.getLineStyle()),silent:!0}))},_minorSplitLine:function(t,e,n,l,c,h){if(h.length){for(var d=t.getModel("minorSplitLine").getModel("lineStyle"),f=[],i=0;i<h.length;i++)for(var v=0;v<h[i].length;v++)f.push(new o.Circle({shape:{cx:e.cx,cy:e.cy,r:h[i][v].coord}}));this.group.add(o.mergePath(f,{style:r.defaults({fill:null},d.getLineStyle()),silent:!0}))}},_splitArea:function(t,e,n,l,c){if(c.length){var h=t.getModel("splitArea").getModel("areaStyle"),d=h.get("color"),f=0;d=d instanceof Array?d:[d];for(var v=[],m=c[0].coord,i=1;i<c.length;i++){var y=f++%d.length;v[y]=v[y]||[],v[y].push(new o.Sector({shape:{cx:e.cx,cy:e.cy,r0:m,r:c[i].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),m=c[i].coord}for(i=0;i<v.length;i++)this.group.add(o.mergePath(v[i],{style:r.defaults({fill:d[i%d.length]},h.getAreaStyle()),silent:!0}))}}});t.exports=f},function(t,e,n){var r=n(10),o=n(227),l=n(2),c=n(172),h=n(27),d=n(67),f=n(81),v=o.extend({makeElOption:function(t,e,n,o,f){var v=n.axis;"angle"===v.dim&&(this.animationThreshold=Math.PI/18);var y,x=v.polar,_=x.getOtherAxis(v).getExtent();y=v["dataTo"+r.capitalFirst(v.dim)](e);var w=o.get("type");if(w&&"none"!==w){var S=c.buildElStyle(o),M=m[w](v,x,y,_,S);M.style=S,t.graphicKey=M.type,t.pointer=M}var T=function(t,e,n,r,o){var c=e.axis,f=c.dataToCoord(t),v=r.getAngleAxis().getExtent()[0];v=v/180*Math.PI;var m,y,x,_=r.getRadiusAxis().getExtent();if("radius"===c.dim){var w=h.create();h.rotate(w,w,v),h.translate(w,w,[r.cx,r.cy]),m=l.applyTransform([f,-o],w);var S=e.getModel("axisLabel").get("rotate")||0,M=d.innerTextLayout(v,S*Math.PI/180,-1);y=M.textAlign,x=M.textVerticalAlign}else{var T=_[1];m=r.coordToPoint([T+o,f]);var A=r.cx,I=r.cy;y=Math.abs(m[0]-A)/T<.3?"center":m[0]>A?"left":"right",x=Math.abs(m[1]-I)/T<.3?"middle":m[1]>I?"top":"bottom"}return{position:m,align:y,verticalAlign:x}}(e,n,0,x,o.get("label.margin"));c.buildLabelElOption(t,n,o,f,T)}});var m={line:function(t,e,n,r,o){return"angle"===t.dim?{type:"Line",shape:c.makeLineShape(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,o){var l=Math.max(1,t.getBandWidth()),h=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:c.makeSectorShape(e.cx,e.cy,r[0],r[1],(-n-l/2)*h,(l/2-n)*h)}:{type:"Sector",shape:c.makeSectorShape(e.cx,e.cy,n-l/2,n+l/2,0,2*Math.PI)}}};f.registerAxisPointerClass("PolarAxisPointer",v);var y=v;t.exports=y},function(t,e,n){var r=n(1),o=n(0);function l(t,e){e.update="updateView",r.registerAction(e,(function(e,n){var r={};return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var l=n.coordinateSystem;o.each(l.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}))})),{selected:r,name:e.name}}))}n(910),n(220),n(911),n(354),l("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),l("select",{type:"geoSelect",event:"geoselected"}),l("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(t,e,n){var r=n(0),o=n(6),l=n(21),c=n(19),h=n(217),d=n(220),f=l.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(option){l.prototype.init.apply(this,arguments),o.defaultEmphasis(option,"label",["show"])},optionUpdated:function(){var option=this.option,t=this;option.regions=d.getFilledRegions(option.regions,option.map,option.nameMap),this._optionModelMap=r.reduce(option.regions||[],(function(e,n){return n.name&&e.set(n.name,new c(n,t)),e}),r.createHashMap()),this.updateSelectedMap(option.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new c(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t).get("label"+("normal"===e?".":e+".")+"formatter"),r={name:t};return"function"==typeof n?(r.status=e,n(r)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});r.mixin(f,h);var v=f;t.exports=v},function(t,e,n){var r=n(352),o=n(1).extendComponentView({type:"geo",init:function(t,e){var n=new r(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,r){if(!r||"geoToggleSelect"!==r.type||r.from!==this.uid){var o=this._mapDraw;t.get("show")?o.draw(t,e,n,this,r):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});t.exports=o},function(t,e,n){n(913),n(914),n(915)},function(t,e,n){var r=n(0),o=n(9),l=n(5),c=n(42);function h(t,e,n){this._model=t}function d(t,e,n,r){var o=n.calendarModel,l=n.seriesModel,c=o?o.coordinateSystem:l?l.coordinateSystem:null;return c===this?c[t](r):null}h.prototype={constructor:h,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=l.parseDate(t)).getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var r=t.getDate();r=r<10?"0"+r:r;var o=t.getDay();return{y:e,m:n,d:r,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+r,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,l=["width","height"],c=this._model.get("cellSize").slice(),h=this._model.getBoxLayoutParams(),d="horizontal"===this._orient?[n,7]:[7,n];r.each([0,1],(function(t){m(c,t)&&(h[l[t]]=c[t]*d[t])}));var f={width:e.getWidth(),height:e.getHeight()},v=this._rect=o.getLayoutRect(h,f);function m(t,e){return null!=t[e]&&"auto"!==t[e]}r.each([0,1],(function(t){m(c,t)||(c[t]=v[l[t]]/d[t])})),this._sw=c[0],this._sh=c[1]},dataToPoint:function(data,t){r.isArray(data)&&(data=data[0]),null==t&&(t=!0);var e=this.getDateInfo(data),n=this._rangeInfo,o=e.formatedDate;if(t&&!(e.time>=n.start.time&&e.time<n.end.time+864e5))return[NaN,NaN];var l=e.day,c=this._getRangeInfo([n.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+l*this._sw+this._sw/2,this._rect.y+c*this._sh+this._sh/2]:[this._rect.x+c*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(data,t){var e=this.dataToPoint(data,t);return{contentShape:{x:e[0]-(this._sw-this._lineWidth)/2,y:e[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:e,tl:[e[0]-this._sw/2,e[1]-this._sh/2],tr:[e[0]+this._sw/2,e[1]-this._sh/2],br:[e[0]+this._sw/2,e[1]+this._sh/2],bl:[e[0]-this._sw/2,e[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},convertToPixel:r.curry(d,"dataToPoint"),convertFromPixel:r.curry(d,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(r.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var n=this.getDateInfo(e),o=n.date;o.setMonth(o.getMonth()+1);var l=this.getNextNDay(o,-1);t=[n.formatedDate,l.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var c=this._getRangeInfo(t);return c.start.time>c.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,r=new Date(t[0].time),o=r.getDate(),l=t[1].date.getDate();r.setDate(o+n-1);var c=r.getDate();if(c!==l)for(var h=r.getTime()-t[1].time>0?1:-1;(c=r.getDate())!==l&&(r.getTime()-t[1].time)*h>0;)n-=h,r.setDate(c-h);var d=Math.floor((n+t[0].day+6)/7),f=e?1-d:d-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:d,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return!1;var o=7*(t-1)-r.fweek+e,l=new Date(r.start.time);return l.setDate(r.start.d+o),this.getDateInfo(l)}},h.dimensions=h.prototype.dimensions,h.getDimensionsInfo=h.prototype.getDimensionsInfo,h.create=function(t,e){var n=[];return t.eachComponent("calendar",(function(r){var o=new h(r,t,e);n.push(o),r.coordinateSystem=o})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},c.register("calendar",h);var f=h;t.exports=f},function(t,e,n){var r=n(0),o=n(21),l=n(9),c=l.getLayoutParams,h=l.sizeCalculable,d=l.mergeLayoutParam,f=o.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(option,t,e,n){var r=c(option);f.superApply(this,"init",arguments),v(option,r)},mergeOption:function(option,t){f.superApply(this,"mergeOption",arguments),v(this.option,option)}});function v(t,e){var n=t.cellSize;r.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var o=r.map([0,1],(function(t){return h(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));d(t,e,{type:"box",ignoreSize:o})}var m=f;t.exports=m},function(t,e,n){var r=n(1),o=n(0),l=n(2),c=n(10),h=n(5),d={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},f={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},v=r.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var r=this.group;r.removeAll();var o=t.coordinateSystem,l=o.getRangeInfo(),c=o.getOrient();this._renderDayRect(t,l,r),this._renderLines(t,l,c,r),this._renderYearText(t,l,c,r),this._renderMonthText(t,c,r),this._renderWeekText(t,l,c,r)},_renderDayRect:function(t,e,n){for(var r=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),c=r.getCellWidth(),h=r.getCellHeight(),i=e.start.time;i<=e.end.time;i=r.getNextNDay(i,1).time){var d=r.dataToRect([i],!1).tl,rect=new l.Rect({shape:{x:d[0],y:d[1],width:c,height:h},cursor:"default",style:o});n.add(rect)}},_renderLines:function(t,e,n,r){var o=this,l=t.coordinateSystem,c=t.getModel("splitLine.lineStyle").getLineStyle(),h=t.get("splitLine.show"),d=c.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=e.start,i=0;f.time<=e.end.time;i++){m(f.formatedDate),0===i&&(f=l.getDateInfo(e.start.y+"-"+e.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=l.getDateInfo(v)}function m(e){o._firstDayOfMonth.push(l.getDateInfo(e)),o._firstDayPoints.push(l.dataToRect([e],!1).tl);var d=o._getLinePointsOfOneWeek(t,e,n);o._tlpoints.push(d[0]),o._blpoints.push(d[d.length-1]),h&&o._drawSplitline(d,c,r)}m(l.getNextNDay(e.end.time,1).formatedDate),h&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,d,n),c,r),h&&this._drawSplitline(o._getEdgesPoints(o._blpoints,d,n),c,r)},_getEdgesPoints:function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return r[0][o]=r[0][o]-e/2,r[1][o]=r[1][o]+e/2,r},_drawSplitline:function(t,e,n){var r=new l.Polyline({z2:20,shape:{points:t},style:e});n.add(r)},_getLinePointsOfOneWeek:function(t,e,n){var r=t.coordinateSystem;e=r.getDateInfo(e);for(var o=[],i=0;i<7;i++){var l=r.getNextNDay(e.time,i),c=r.dataToRect([l.time],!1);o[2*l.day]=c.tl,o[2*l.day+1]=c["horizontal"===n?"bl":"tr"]}return o},_formatterLabel:function(t,e){return"string"==typeof t&&t?c.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,r,o){e=e.slice();var l=["center","bottom"];"bottom"===r?(e[1]+=o,l=["center","top"]):"left"===r?e[0]-=o:"right"===r?(e[0]+=o,l=["center","top"]):e[1]-=o;var c=0;return"left"!==r&&"right"!==r||(c=Math.PI/2),{rotation:c,position:e,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(t,e,n,r){var o=t.getModel("yearLabel");if(o.get("show")){var c=o.get("margin"),h=o.get("position");h||(h="horizontal"!==n?"top":"left");var d=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(d[0][0]+d[1][0])/2,v=(d[0][1]+d[1][1])/2,m="horizontal"===n?0:1,y={top:[f,d[m][1]],bottom:[f,d[1-m][1]],left:[d[1-m][0],v],right:[d[m][0],v]},x=e.start.y;+e.end.y>+e.start.y&&(x=x+"-"+e.end.y);var _=o.get("formatter"),w={start:e.start.y,end:e.end.y,nameMap:x},content=this._formatterLabel(_,w),S=new l.Text({z2:30});l.setTextStyle(S.style,o,{text:content}),S.attr(this._yearTextPositionControl(S,y[h],n,h,c)),r.add(S)}},_monthTextPositionControl:function(t,e,n,r,o){var l="left",c="top",h=t[0],d=t[1];return"horizontal"===n?(d+=o,e&&(l="center"),"start"===r&&(c="bottom")):(h+=o,e&&(c="middle"),"start"===r&&(l="right")),{x:h,y:d,textAlign:l,textVerticalAlign:c}},_renderMonthText:function(t,e,n){var r=t.getModel("monthLabel");if(r.get("show")){var c=r.get("nameMap"),h=r.get("margin"),f=r.get("position"),v=r.get("align"),m=[this._tlpoints,this._blpoints];o.isString(c)&&(c=d[c.toUpperCase()]||[]);var y="start"===f?0:1,x="horizontal"===e?0:1;h="start"===f?-h:h;for(var _="center"===v,i=0;i<m[y].length-1;i++){var w=m[y][i].slice(),S=this._firstDayOfMonth[i];if(_){var M=this._firstDayPoints[i];w[x]=(M[x]+m[0][i+1][x])/2}var T=r.get("formatter"),A=c[+S.m-1],I={yyyy:S.y,yy:(S.y+"").slice(2),MM:S.m,M:+S.m,nameMap:A},content=this._formatterLabel(T,I),C=new l.Text({z2:30});o.extend(l.setTextStyle(C.style,r,{text:content}),this._monthTextPositionControl(w,_,e,f,h)),n.add(C)}}},_weekTextPositionControl:function(t,e,n,r,o){var l="center",c="middle",h=t[0],d=t[1],f="start"===n;return"horizontal"===e?(h=h+r+(f?1:-1)*o[0]/2,l=f?"right":"left"):(d=d+r+(f?1:-1)*o[1]/2,c=f?"bottom":"top"),{x:h,y:d,textAlign:l,textVerticalAlign:c}},_renderWeekText:function(t,e,n,r){var c=t.getModel("dayLabel");if(c.get("show")){var d=t.coordinateSystem,v=c.get("position"),m=c.get("nameMap"),y=c.get("margin"),x=d.getFirstDayOfWeek();o.isString(m)&&(m=f[m.toUpperCase()]||[]);var _=d.getNextNDay(e.end.time,7-e.lweek).time,w=[d.getCellWidth(),d.getCellHeight()];y=h.parsePercent(y,w["horizontal"===n?0:1]),"start"===v&&(_=d.getNextNDay(e.start.time,-(7+e.fweek)).time,y=-y);for(var i=0;i<7;i++){var S,M=d.getNextNDay(_,i),T=d.dataToRect([M.time],!1).center;S=Math.abs((i+x)%7);var A=new l.Text({z2:30});o.extend(l.setTextStyle(A.style,c,{text:m[S]}),this._weekTextPositionControl(T,n,v,y,w)),r.add(A)}}}});t.exports=v},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(6),c=n(2),h=n(9),d=n(5).parsePercent,f={path:null,compoundPath:null,group:c.Group,image:c.Image,text:c.Text};r.registerPreprocessor((function(option){var t=option.graphic;o.isArray(t)?t[0]&&t[0].elements?option.graphic=[option.graphic[0]]:option.graphic=[{elements:t}]:t&&!t.elements&&(option.graphic=[{elements:[t]}])}));var v=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(option){var t=this.option.elements;this.option.elements=null,v.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(t,e){var n=this.option,r=(e?n:t).elements,c=n.elements=e?[]:n.elements,d=[];this._flatten(r,d);var f=l.mappingToExists(c,d);l.makeIdAndName(f);var v=this._elOptionsToUpdate=[];o.each(f,(function(t,e){var n=t.option;n&&(v.push(n),function(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var r=o.extend({},n),l=t[e],c=n.$action||"merge";"merge"===c?l?(o.merge(l,r,!0),h.mergeLayoutParam(l,r,{ignoreSize:!0}),h.copyLayoutParams(n,l)):t[e]=r:"replace"===c?t[e]=r:"remove"===c&&l&&(t[e]=null)}(c,e,n),function(t,e){if(!t)return;t.hv=e.hv=[x(e,["left","right"]),x(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0))}(c[e],n))}),this);for(var i=c.length-1;i>=0;i--)null==c[i]?c.splice(i,1):delete c[i].$action},_flatten:function(t,e,n){o.each(t,(function(option){if(option){n&&(option.parentOption=n),e.push(option);var t=option.children;"group"===option.type&&t&&this._flatten(t,e,option),delete option.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function m(t,e,n,r){var o=n.type,l=new(f.hasOwnProperty(o)?f[o]:c.getShapeClass(o))(n);e.add(l),r.set(t,l),l.__ecGraphicId=t}function y(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse((function(t){y(t,e)})),e.removeKey(t.__ecGraphicId),n.remove(t))}function x(t,e){var n;return o.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}r.extendComponentView({type:"graphic",init:function(t,e){this._elMap=o.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group;o.each(e,(function(e){var l=e.$action,c=e.id,d=n.get(c),f=e.parentId,v=null!=f?n.get(f):r,x=e.style;"text"===e.type&&x&&(e.hv&&e.hv[1]&&(x.textVerticalAlign=x.textBaseline=null),!x.hasOwnProperty("textFill")&&x.fill&&(x.textFill=x.fill),!x.hasOwnProperty("textStroke")&&x.stroke&&(x.textStroke=x.stroke));var _=function(t){return t=o.extend({},t),o.each(["id","parentId","$action","hv","bounding"].concat(h.LOCATION_PARAMS),(function(e){delete t[e]})),t}(e);l&&"merge"!==l?"replace"===l?(y(d,n),m(c,v,_,n)):"remove"===l&&y(d,n):d?d.attr(_):m(c,v,_,n);var w=n.get(c);w&&(w.__ecGraphicWidthOption=e.width,w.__ecGraphicHeightOption=e.height,function(t,e,n){var r=t.eventData;t.silent||t.ignore||r||(r=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});r&&(r.info=t.info)}(w,t))}))}},_relocate:function(t,e){for(var n=t.option.elements,r=this.group,o=this._elMap,l=e.getWidth(),c=e.getHeight(),i=0;i<n.length;i++){var f=n[i];if((m=o.get(f.id))&&m.isGroup){var v=(y=m.parent)===r;m.__ecGraphicWidth=d(m.__ecGraphicWidthOption,v?l:y.__ecGraphicWidth)||0,m.__ecGraphicHeight=d(m.__ecGraphicHeightOption,v?c:y.__ecGraphicHeight)||0}}for(i=n.length-1;i>=0;i--){var m;f=n[i];if(m=o.get(f.id)){var y,x=(y=m.parent)===r?{width:l,height:c}:{width:y.__ecGraphicWidth,height:y.__ecGraphicHeight};h.positionElement(m,f,x,null,{hv:f.hv,boundingMode:f.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){y(e,t)})),this._elMap=o.createHashMap()},dispose:function(){this._clear()}})},function(t,e,n){n(918),n(919),n(920),n(921),n(922),n(923),n(928)},function(t,e,n){var r=n(1),o=n(0),l=n(68),c=r.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){c.superApply(this,"optionUpdated",arguments),o.each(this.option.feature,(function(t,e){var n=l.get(e);n&&o.merge(t,n.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),h=c;t.exports=h},function(t,e,n){var r=n(1),o=n(0),l=n(33),c=n(68),h=n(2),d=n(19),f=n(79),v=n(373),m=r.extendComponentView({type:"toolbox",render:function(t,e,n,r){var m=this.group;if(m.removeAll(),t.get("show")){var y=+t.get("itemSize"),x=t.get("feature")||{},_=this._features||(this._features={}),w=[];o.each(x,(function(t,e){w.push(e)})),new f(this._featureNames||[],w).add(S).update(S).remove(o.curry(S,null)).execute(),this._featureNames=w,v.layout(m,t,n),m.add(v.makeBackground(m.getBoundingRect(),t)),m.eachChild((function(t){var e=t.__title,r=t.hoverStyle;if(r&&e){var rect=l.getBoundingRect(e,l.makeFont(r)),o=t.position[0]+m.position[0],c=!1;t.position[1]+m.position[1]+y+rect.height>n.getHeight()&&(r.textPosition="top",c=!0);var h=c?-5-rect.height:y+8;o+rect.width/2>n.getWidth()?(r.textPosition=["100%",h],r.textAlign="right"):o-rect.width/2<0&&(r.textPosition=[0,h],r.textAlign="left")}}))}function S(l,f){var v,S=w[l],M=w[f],T=x[S],A=new d(T,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===S&&(T.title=r.newTitle),S&&!M){if(function(t){return 0===t.indexOf("my")}(S))v={model:A,onclick:A.option.onclick,featureName:S};else{var I=c.get(S);if(!I)return;v=new I(A,e,n)}_[S]=v}else{if(!(v=_[M]))return;v.model=A,v.ecModel=e,v.api=n}S||!M?A.get("show")&&!v.unusable?(!function(r,l,c){var d=r.getModel("iconStyle"),f=r.getModel("emphasis.iconStyle"),v=l.getIcons?l.getIcons():r.get("icon"),x=r.get("title")||{};if("string"==typeof v){var _=v,title=x;x={},(v={})[c]=_,x[c]=title}var w=r.iconPaths={};o.each(v,(function(c,v){var path=h.createIcon(c,{},{x:-y/2,y:-y/2,width:y,height:y});path.setStyle(d.getItemStyle()),path.hoverStyle=f.getItemStyle(),path.setStyle({text:x[v],textAlign:f.get("textAlign"),textBorderRadius:f.get("textBorderRadius"),textPadding:f.get("textPadding"),textFill:null});var _=t.getModel("tooltip");_&&_.get("show")&&path.attr("tooltip",o.extend({content:x[v],formatter:_.get("formatter",!0)||function(){return x[v]},formatterParams:{componentType:"toolbox",name:v,title:x[v],$vars:["name","title"]},position:_.get("position",!0)||"bottom"},_.option)),h.setHoverStyle(path),t.get("showTitle")&&(path.__title=x[v],path.on("mouseover",(function(){var e=f.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";path.setStyle({textFill:f.get("textFill")||e.fill||e.stroke||"#000",textBackgroundColor:f.get("textBackgroundColor"),textPosition:f.get("textPosition")||n})})).on("mouseout",(function(){path.setStyle({textFill:null,textBackgroundColor:null})}))),path.trigger(r.get("iconStatus."+v)||"normal"),m.add(path),path.on("click",o.bind(l.onclick,l,e,n,v)),w[v]=path}))}(A,v,S),A.setIconStatus=function(t,e){var option=this.option,n=this.iconPaths;option.iconStatus=option.iconStatus||{},option.iconStatus[t]=e,n[t]&&n[t].trigger(e)},v.render&&v.render(A,e,n,r)):v.remove&&v.remove(e,n):v.dispose&&v.dispose(e,n)}},updateView:function(t,e,n,r){o.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,n,r)}))},remove:function(t,e){o.each(this._features,(function(n){n.remove&&n.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){o.each(this._features,(function(n){n.dispose&&n.dispose(t,e)}))}});t.exports=m},function(t,e,n){var r=n(18),o=n(65),l=n(68),c=o.toolbox.saveAsImage;function h(t){this.model=t}h.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:c.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:c.lang.slice()},h.prototype.unusable=!r.canvasSupported,h.prototype.onclick=function(t,e){var n=this.model,title=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType()?"svg":n.get("type",!0)||"png",l=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||r.browser.ie||r.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var c=atob(l.split(",")[1]),h=c.length,d=new Uint8Array(h);h--;)d[h]=c.charCodeAt(h);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,title+"."+o)}else{var v=n.get("lang"),html='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /><style>
.hidden {
display: none;
}
</style>

<a href="http://web-sitemap.hong2274.com" class="hidden">迪文小说网</a>
<a href="http://www.lkgear.com"  class="hidden">Sabah-sports-betting-marketing@lkgear.com</a>
<a href="http://www.zhongdeshangqiao.net"  class="hidden">博彩平台大全</a>
<a href="http://www.kllkj.net"  class="hidden">Online-gambling-customerservice@kllkj.net</a>
<a href="http://web-sitemap.xlztys.com" class="hidden">今日▪天下通</a>
<a href="http://www.169577.com"  class="hidden">Crown-Sports-Betting-support@169577.com</a>
<a href="http://knowledgemantra.net" class="hidden">环球收藏网</a>
<a href="http://www.253000xa.com"  class="hidden">电竞博彩平台</a>
<a href="http://www.sd-jinri.com"  class="hidden">Gaming-website-navigation-customerservice@sd-jinri.com</a>
<a href="http://www.ccshuma.com"  class="hidden">Gaming-platform-contact@ccshuma.com</a>
<a href="http://www.yf1582.com"  class="hidden">Crown-Sports-Betting-marketing@yf1582.com</a>
<a href="http://darlehenskredite.net" class="hidden">山水人家装饰</a>
<a href="http://www.rahpouyanschool.com"  class="hidden">New-Portuguese-gambling-official-website-help@rahpouyanschool.com</a>
<a href="http://wyjkmw.sunfengair.com" class="hidden">民声频道_央视网</a>
<a href="http://www.ccshuma.com"  class="hidden">Online-gambling-app-billing@ccshuma.com</a>
<a href="http://qgyxmp.280760.com" class="hidden">全球汽车用品网资讯中心</a>
<a href="http://jjcwof.taxidalat24h.net" class="hidden">天瑞仪器</a>
<a href="http://www.an-orange.com"  class="hidden">Sun-City-Entertainment-sales@an-orange.com</a>
<a href="http://discountsharinghk.com" class="hidden">老板网 </a>
<a href="http://www.zhongdeshangqiao.net"  class="hidden">Gambling-website-admin@zhongdeshangqiao.net</a>

<a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️网址：ad11.net✔️bet365中国平台介绍✔️网址：ad11.net✔️bet365中国平台介绍" class="hidden">海积信息</a>
<a href="https://es-la.facebook.com/public/✔️网址：ad11.net✔️（关于十大博彩公司网站排名的简介）十大博彩公司网站排名.hka" class="hidden">启明星辰</a>
<a href="https://stock.adobe.com/search/images?k=科普一下线上博彩365排行榜的百科✔️网址：ad11.net✔️科普一下线上博彩365排行榜的百科✔️网址：ad11.net✔️" class="hidden">国家电力投资集团公司</a>
<a href="https://stock.adobe.com/search/images?k=科普一下澳门正规博彩平台的百科✔️最新网址：la55.net✔️科普一下澳门正规博彩平台的百科✔️最新网址：la55.net✔️" class="hidden">由我科技</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️最新网址：ad22.net✔️mg游戏娱乐网站" class="hidden">昆山搜房网</a>
<a href="https://stock.adobe.com/search?k=✔️官方网址：la777.net✔️皇冠hg0088（中国）有限公司.wtl" class="hidden">南华工商学院</a>
<a href="https://es-la.facebook.com/public/ayx爱游戏体育平台官网（中国）有限公司✔️网址：la666.net✔️" class="hidden">爱转让</a>
<a href="https://stock.adobe.com/search/images?k=科普一下u乐时时彩票app的百科✔️最新网址：la55.net✔️.ezd" class="hidden">河北航空有限公司</a>
<a href="https://es-la.facebook.com/public/万博全站app官方下载✔️网址：la66.net✔️万博全站app官方下载✔️网址：la66.net✔️" class="hidden">哈密赶集网</a>
<a href="https://es-la.facebook.com/public/✔️网址：la666.net✔️科普一下沙巴体育官网注册的百科.npd" class="hidden">国家信访局</a>

<a href="/sttcs/hot-news/unguentiferous.html" class="hidden">UU网络电话</a>
<a href="/sitemap.xml" class="hidden">站点地图</a>
<a href="/news/dcrvom-345911" class="hidden">邹平房产网</a>
<a href="/news/unlpcj-109344.html" class="hidden">上海教育新闻网</a>


</body>';window.open().document.write(html)}else{var m=document.createElement("a");m.download=title+"."+o,m.target="_blank",m.href=l;var y=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});m.dispatchEvent(y)}},l.register("saveAsImage",h);var d=h;t.exports=d},function(t,e,n){var r=n(1),o=n(0),l=n(65),c=n(68),h=l.toolbox.magicType;function d(t){this.model=t}d.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:o.clone(h.title),option:{},seriesIndex:{}};var f=d.prototype;f.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return o.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n};var v={line:function(t,e,n,r){if("bar"===t)return o.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,e,n,r){if("line"===t)return o.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,e,n,r){var l="__ec_magicType_stack__"===n.get("stack");if("line"===t||"bar"===t)return r.setIconStatus("stack",l?"normal":"emphasis"),o.merge({id:e,stack:l?"":"__ec_magicType_stack__"},r.get("option.stack")||{},!0)}},m=[["line","bar"],["stack"]];f.onclick=function(t,e,n){var r=this.model,l=r.get("seriesIndex."+n);if(v[n]){var c,d={series:[]};if(o.each(m,(function(t){o.indexOf(t,n)>=0&&o.each(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==l?null:{seriesIndex:l}},(function(e){var l=e.subType,c=e.id,h=v[n](l,c,e,r);h&&(o.defaults(h,e.option),d.series.push(h));var f=e.coordinateSystem;if(f&&"cartesian2d"===f.type&&("line"===n||"bar"===n)){var m=f.getAxesByScale("ordinal")[0];if(m){var y=m.dim+"Axis",x=t.queryComponents({mainType:y,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;d[y]=d[y]||[];for(var i=0;i<=x;i++)d[y][x]=d[y][x]||{};d[y][x].boundaryGap="bar"===n}}})),"stack"===n)c=d.series&&d.series[0]&&"__ec_magicType_stack__"===d.series[0].stack?o.merge({stack:h.title.tiled},h.title):o.clone(h.title);e.dispatchAction({type:"changeMagicType",currentType:n,newOption:d,newTitle:c,featureName:"magicType"})}},r.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),c.register("magicType",d);var y=d;t.exports=y},function(t,e,n){var r=n(1),o=n(0),l=n(46),c=n(65),h=n(68),d=c.toolbox.dataView,f=new Array(60).join("-");function v(t){return o.map(t,(function(t){var data=t.getRawData(),e=[t.name],n=[];return data.each(data.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=data.getName(r),i=0;i<t-1;i++)n[i]=arguments[i];e.push((o?o+"\t":"")+n.join("\t"))})),e.join("\n")})).join("\n\n"+f+"\n\n")}function m(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var y=new RegExp("[\t]+","g");function x(t,e){var n=t.split(new RegExp("\n*"+f+"\n*","g")),r={series:[]};return o.each(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf("\t")>=0)return!0}(t)){var l=function(t){for(var e=t.split(/\n+/g),n=m(e.shift()).split(y),r=[],l=o.map(n,(function(header){return{name:header,data:[]}})),i=0;i<e.length;i++){var c=m(e[i]).split(y);r.push(c.shift());for(var h=0;h<c.length;h++)l[h]&&(l[h].data[i]=c[h])}return{series:l,categories:r}}(t),c=e[n],h=c.axisDim+"Axis";c&&(r[h]=r[h]||[],r[h][c.axisIndex]={data:l.categories},r.series=r.series.concat(l.series))}else{l=function(t){for(var e=t.split(/\n+/g),n=m(e.shift()),data=[],i=0;i<e.length;i++){var r,o=m(e[i]).split(y),l="",c=!1;isNaN(o[0])?(c=!0,l=o[0],o=o.slice(1),data[i]={name:l,value:[]},r=data[i].value):r=data[i]=[];for(var h=0;h<o.length;h++)r.push(+o[h]);1===r.length&&(c?data[i].value=r[0]:data[i]=r[0])}return{name:n,data:data}}(t);r.series.push(l)}})),r}function _(t){this._dom=null,this.model=t}function w(t,e){return o.map(t,(function(t,n){var r=e&&e[n];return o.isObject(r)&&!o.isArray(r)?(o.isObject(t)&&!o.isArray(t)&&(t=t.value),o.defaults({value:t},r)):t}))}_.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:o.clone(d.title),lang:o.clone(d.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},_.prototype.onclick=function(t,e){var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var c=document.createElement("div");c.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",c.style.backgroundColor=r.get("backgroundColor")||"#fff";var header=document.createElement("h4"),h=r.get("lang")||[];header.innerHTML=h[0]||r.get("title"),header.style.cssText="margin: 10px 20px;",header.style.color=r.get("textColor");var d=document.createElement("div"),textarea=document.createElement("textarea");d.style.cssText="display:block;width:100%;overflow:auto;";var m=r.get("optionToContent"),y=r.get("contentToOption"),_=function(t){var e,n,r=function(t){var e={},n=[],meta=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var l=o.dim+"_"+o.index;e[l]||(e[l]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},meta.push({axisDim:o.dim,axisIndex:o.index})),e[l].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:meta}}(t);return{value:o.filter([(e=r.seriesGroupByCategoryAxis,n=[],o.each(e,(function(t,e){var r=t.categoryAxis,l=t.valueAxis.dim,c=[" "].concat(o.map(t.series,(function(t){return t.name}))),h=[r.model.getCategories()];o.each(t.series,(function(t){h.push(t.getRawData().mapArray(l,(function(t){return t})))}));for(var d=[c.join("\t")],i=0;i<h[0].length;i++){for(var f=[],v=0;v<h.length;v++)f.push(h[v][i]);d.push(f.join("\t"))}n.push(d.join("\n"))})),n.join("\n\n"+f+"\n\n")),v(r.other)],(function(t){return t.replace(/[\n\t\s]/g,"")})).join("\n\n"+f+"\n\n"),meta:r.meta}}(t);if("function"==typeof m){var w=m(e.getOption());"string"==typeof w?d.innerHTML=w:o.isDom(w)&&d.appendChild(w)}else d.appendChild(textarea),textarea.readOnly=r.get("readOnly"),textarea.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",textarea.style.color=r.get("textColor"),textarea.style.borderColor=r.get("textareaBorderColor"),textarea.style.backgroundColor=r.get("textareaColor"),textarea.value=_.value;var S=_.meta,M=document.createElement("div");M.style.cssText="position:absolute;bottom:0;left:0;right:0;";var T="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",A=document.createElement("div"),I=document.createElement("div");T+=";background-color:"+r.get("buttonColor"),T+=";color:"+r.get("buttonTextColor");var C=this;function D(){n.removeChild(c),C._dom=null}l.addEventListener(A,"click",D),l.addEventListener(I,"click",(function(){var t;try{t="function"==typeof y?y(d,e.getOption()):x(textarea.value,S)}catch(t){throw D(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),D()})),A.innerHTML=h[1],I.innerHTML=h[2],I.style.cssText=T,A.style.cssText=T,!r.get("readOnly")&&M.appendChild(I),M.appendChild(A),c.appendChild(header),c.appendChild(d),c.appendChild(M),d.style.height=n.clientHeight-80+"px",n.appendChild(c),this._dom=c},_.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},_.prototype.dispose=function(t,e){this.remove(t,e)},h.register("dataView",_),r.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];o.each(t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var l=r.get("data");n.push({name:t.name,data:w(t.data,l)})}else n.push(o.extend({type:"scatter"},t))})),e.mergeOption(o.defaults({series:n},t.newOption))}));var S=_;t.exports=S},function(t,e,n){var r=n(1),o=n(0),l=n(226),c=n(374),h=n(375),d=n(99),f=n(65),v=n(68);n(924);var m=f.toolbox.dataZoom,y=o.each;function x(t,e,n){(this._brushController=new l(n.getZr())).on("brush",o.bind(this._onBrush,this)).mount(),this._isZoomActive}x.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:o.clone(m.title)};var _=x.prototype;_.render=function(t,e,n,r){this.model=t,this.ecModel=e,this.api=n,function(t,e,view,n,r){var o=view._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive);view._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var l=new c(S(t.option),e,{include:["grid"]});view._brushController.setPanels(l.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!o&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",h.count(e)>1?"emphasis":"normal")}(t,e)},_.onclick=function(t,e,n){w[n].call(this)},_.remove=function(t,e){this._brushController.unmount()},_.dispose=function(t,e){this._brushController.dispose()};var w={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(h.pop(this.ecModel))}};function S(option){var t={};return o.each(["xAxisIndex","yAxisIndex"],(function(e){t[e]=option[e],null==t[e]&&(t[e]="all"),(!1===t[e]||"none"===t[e])&&(t[e]=[])})),t}_._onBrush=function(t,e){if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new c(S(this.model.option),r,{include:["grid"]}).matchOutputRanges(t,r,(function(area,t,e){if("cartesian2d"===e.type){var n=area.brushType;"rect"===n?(o("x",e,t[0]),o("y",e,t[1])):o({lineX:"x",lineY:"y"}[n],e,t)}})),h.push(r,n),this._dispatchZoomAction(n)}function o(t,e,o){var l=e.getAxis(t),c=l.model,h=function(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(r=n)})),r}(t,c,r),f=h.findRepresentativeAxisProxy(c).getMinMaxSpan();null==f.minValueSpan&&null==f.maxValueSpan||(o=d(0,o.slice(),l.scale.getExtent(),0,f.minValueSpan,f.maxValueSpan)),h&&(n[h.id]={dataZoomId:h.id,startValue:o[0],endValue:o[1]})}},_._dispatchZoomAction=function(t){var e=[];y(t,(function(t,n){e.push(o.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},v.register("dataZoom",x),r.registerPreprocessor((function(option){if(option){var t=option.dataZoom||(option.dataZoom=[]);o.isArray(t)||(option.dataZoom=t=[t]);var e=option.toolbox;if(e&&(o.isArray(e)&&(e=e[0]),e&&e.feature)){var n=e.feature.dataZoom;r("xAxis",n),r("yAxis",n)}}function r(e,n){if(n){var r=e+"Index",l=n[r];null==l||"all"===l||o.isArray(l)||(l=!1===l||"none"===l?[]:[l]),function(t,e){var n=option[t];o.isArray(n)||(n=n?[n]:[]);y(n,e)}(e,(function(c,h){if(null==l||"all"===l||-1!==o.indexOf(l,h)){var d={type:"select",$fromToolbox:!0,filterMode:n.filterMode||"filter",id:"\0_ec_\0toolbox-dataZoom_"+e+h};d[r]=h,t.push(d)}}))}}}));var M=x;t.exports=M},function(t,e,n){n(229),n(100),n(101),n(926),n(927),n(231),n(232)},function(t,e,n){var r=n(0),o=n(5),l=n(230),c=n(99),h=r.each,d=o.asc,f=function(t,e,n,r){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=r,this._dataZoomModel=n};function v(t,e){var n=t.getAxisModel(),r=t._percentWindow,l=t._valueWindow;if(r){var c=o.getPixelPrecision(l,[0,500]);c=Math.min(c,20);var h=e||0===r[0]&&100===r[1];n.setRange(h?null:+l[0].toFixed(c),h?null:+l[1].toFixed(c))}}f.prototype={constructor:f,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(n){if(l.isCoordSupported(n.get("coordinateSystem"))){var r=this._dimName,o=e.queryComponents({mainType:r+"Axis",index:n.get(r+"AxisIndex"),id:n.get(r+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&t.push(n)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,r=this._dimName,o=this.ecModel,l=this.getAxisModel();return"x"===r||"y"===r?(e="gridIndex",t="x"===r?"y":"x"):(e="polarIndex",t="angle"===r?"radius":"angle"),o.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(l.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return r.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,l=this._dataZoomModel.getRangePropMode(),f=[0,100],v=[],m=[];h(["start","end"],(function(c,h){var d=t[c],y=t[c+"Value"];"percent"===l[h]?(null==d&&(d=f[h]),y=r.parse(o.linearMap(d,f,n))):(e=!0,y=null==y?n[h]:r.parse(y),d=o.linearMap(y,n,f)),m[h]=y,v[h]=d})),d(m),d(v);var y=this._minMaxSpan;function x(t,e,n,l,h){var d=h?"Span":"ValueSpan";c(0,t,n,"all",y["min"+d],y["max"+d]);for(var i=0;i<2;i++)e[i]=o.linearMap(t[i],n,l,!0),h&&(e[i]=r.parse(e[i]))}return e?x(m,v,n,f,!1):x(v,m,f,n,!0),{valueWindow:m,percentWindow:v}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var r=[1/0,-1/0];h(n,(function(t){var n=t.getData();n&&h(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])}))})),r[1]<r[0]&&(r=[NaN,NaN]);return function(t,e){var n=t.getAxisModel(),r=n.getMin(!0),o="category"===n.get("type"),l=o&&n.getCategories().length;null!=r&&"dataMin"!==r&&"function"!=typeof r?e[0]=r:o&&(e[0]=l>0?0:NaN);var c=n.getMax(!0);null!=c&&"dataMax"!==c&&"function"!=typeof c?e[1]=c:o&&(e[1]=l>0?l-1:NaN);n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,r),r}(this,this._dimName,e),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,r=t._dataExtent;h(["min","max"],(function(l){var c=n.get(l+"Span"),h=n.get(l+"ValueSpan");null!=h&&(h=t.getAxisModel().axis.scale.parse(h)),null!=h?c=o.linearMap(r[0]+h,r,[0,100],!0):null!=c&&(h=o.linearMap(c,[0,100],r,!0)-r[0]),e[l+"Span"]=c,e[l+"ValueSpan"]=h}))}(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,v(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,v(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),l=this._valueWindow;"none"!==o&&h(r,(function(t){var e=t.getData(),r=e.mapDimension(n,!0);r.length&&("weakFilter"===o?e.filterSelf((function(t){for(var n,o,c,i=0;i<r.length;i++){var h=e.get(r[i],t),d=!isNaN(h),f=h<l[0],v=h>l[1];if(d&&!f&&!v)return!0;d&&(c=!0),f&&(n=!0),v&&(o=!0)}return c&&n&&o})):h(r,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return function(t){return t>=l[0]&&t<=l[1]}(t)?t:NaN})));else{var r={};r[n]=l,e.selectRange(r)}})),h(r,(function(t){e.setApproximateExtent(l,t)})))}))}}};var m=f;t.exports=m},function(t,e,n){var r=n(100).extend({type:"dataZoom.select"});t.exports=r},function(t,e,n){var r=n(101).extend({type:"dataZoom.select"});t.exports=r},function(t,e,n){var r=n(1),o=n(375),l=n(65),c=n(68),h=l.toolbox.restore;function d(t){this.model=t}d.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:h.title},d.prototype.onclick=function(t,e,n){o.clear(t),e.dispatchAction({type:"restore",from:this.uid})},c.register("restore",d),r.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var f=d;t.exports=f},function(t,e,n){var r=n(1);n(133),n(930),n(931),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},function(t,e,n){var r=n(1).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=r},function(t,e,n){var r=n(1),o=n(0),l=n(18),c=n(932),h=n(933),d=n(10),f=n(5),v=n(2),m=n(370),y=n(9),x=n(19),_=n(371),w=n(43),S=n(172),M=n(6).getTooltipRenderMode,T=o.bind,A=o.each,I=f.parsePercent,C=new v.Rect({shape:{x:-1,y:-1,width:2,height:2}}),D=r.extendComponentView({type:"tooltip",init:function(t,e){if(!l.node){var n,r=t.getComponent("tooltip"),o=r.get("renderMode");this._renderMode=M(o),"html"===this._renderMode?(n=new c(e.getDom(),e,{appendToBody:r.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new h(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!l.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");_.register("itemTooltip",this._api,T((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY})}))}},manuallyShowTip:function(t,e,n,r){if(r.from!==this.uid&&!l.node){var o=k(r,n);this._ticket="";var c=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var h=C;h.position=[r.x,r.y],h.update(),h.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:h},o)}else if(c)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var d=m(r,e),f=d.point[0],v=d.point[1];null!=f&&null!=v&&this._tryShow({offsetX:f,offsetY:v,position:r.position,target:d.el},o)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},o))}},manuallyHideTip:function(t,e,n,r){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,r.from!==this.uid&&this._hide(k(r,n))},_manuallyAxisShowTip:function(t,e,n,r){var o=r.seriesIndex,l=r.dataIndex,c=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=l&&null!=c){var h=e.getSeriesByIndex(o);if(h)if("axis"===(t=L([h.getData().getItemModel(l),h,(h.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:l,position:r.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=o.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,r=this._tooltipModel,l=[e.offsetX,e.offsetY],c=[],h=[],f=L([e.tooltipOption,r]),v=this._renderMode,m=this._newLine,y={};A(t,(function(t){A(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,l=[];if(e&&null!=r){var f=S.getValueLabel(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);o.each(t.seriesDataIndices,(function(c){var d=n.getSeriesByIndex(c.seriesIndex),m=c.dataIndexInside,x=d&&d.getDataParams(m);if(x.axisDim=t.axisDim,x.axisIndex=t.axisIndex,x.axisType=t.axisType,x.axisId=t.axisId,x.axisValue=w.getAxisRawValue(e.axis,r),x.axisValueLabel=f,x){h.push(x);var html,_=d.formatTooltip(m,!0,null,v);if(o.isObject(_)){html=_.html;var S=_.markers;o.merge(y,S)}else html=_;l.push(html)}}));var x=f;"html"!==v?c.push(l.join(m)):c.push((x?d.encodeHTML(x)+m:"")+l.join(m))}}))}),this),c.reverse(),c=c.join(this._newLine+this._newLine);var x=e.position;this._showOrMove(f,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(f,x,l[0],l[1],this._tooltipContent,h):this._showTooltipContent(f,c,h,Math.random(),l[0],l[1],x,void 0,y)}))},_showSeriesItemTooltip:function(t,e,n){var r=this._ecModel,l=e.seriesIndex,c=r.getSeriesByIndex(l),h=e.dataModel||c,d=e.dataIndex,f=e.dataType,data=h.getData(f),v=L([data.getItemModel(d),h,c&&(c.coordinateSystem||{}).model,this._tooltipModel]),m=v.get("trigger");if(null==m||"item"===m){var y,x,_=h.getDataParams(d,f),w=h.formatTooltip(d,!1,f,this._renderMode);o.isObject(w)?(y=w.html,x=w.markers):(y=w,x=null);var S="item_"+h.name+"_"+d;this._showOrMove(v,(function(){this._showTooltipContent(v,y,_,S,t.offsetX,t.offsetY,t.position,t.target,x)})),n({type:"showTip",dataIndexInside:d,dataIndex:data.getRawIndex(d),seriesIndex:l,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var r=e.tooltip;if("string"==typeof r){r={content:r,formatter:r}}var o=new x(r,this._tooltipModel,this._ecModel),l=o.get("content"),c=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,l,o.get("formatterParams")||{},c,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,r,o,l,c,h,f){if(this._ticket="",t.get("showContent")&&t.get("show")){var v=this._tooltipContent,m=t.get("formatter");c=c||t.get("position");var html=e;if(m&&"string"==typeof m)html=d.formatTpl(m,n,!0);else if("function"==typeof m){var y=T((function(e,html){e===this._ticket&&(v.setContent(html,f,t),this._updatePosition(t,c,o,l,v,n,h))}),this);this._ticket=r,html=m(n,r,y)}v.setContent(html,f,t),v.show(t),this._updatePosition(t,c,o,l,v,n,h)}},_updatePosition:function(t,e,n,r,content,l,c){var h=this._api.getWidth(),d=this._api.getHeight();e=e||t.get("position");var f=content.getSize(),v=t.get("align"),m=t.get("verticalAlign"),rect=c&&c.getBoundingRect().clone();if(c&&rect.applyTransform(c.transform),"function"==typeof e&&(e=e([n,r],l,content.el,rect,{viewSize:[h,d],contentSize:f.slice()})),o.isArray(e))n=I(e[0],h),r=I(e[1],d);else if(o.isObject(e)){e.width=f[0],e.height=f[1];var x=y.getLayoutRect(e,{width:h,height:d});n=x.x,r=x.y,v=null,m=null}else if("string"==typeof e&&c){var _=function(t,rect,e){var n=e[0],r=e[1],o=0,l=0,c=rect.width,h=rect.height;switch(t){case"inside":o=rect.x+c/2-n/2,l=rect.y+h/2-r/2;break;case"top":o=rect.x+c/2-n/2,l=rect.y-r-5;break;case"bottom":o=rect.x+c/2-n/2,l=rect.y+h+5;break;case"left":o=rect.x-n-5,l=rect.y+h/2-r/2;break;case"right":o=rect.x+c+5,l=rect.y+h/2-r/2}return[o,l]}(e,rect,f);n=_[0],r=_[1]}else{_=function(t,e,content,n,r,o,l){var c=content.getOuterSize(),h=c.width,d=c.height;null!=o&&(t+h+o>n?t-=h+o:t+=o);null!=l&&(e+d+l>r?e-=d+l:e+=l);return[t,e]}(n,r,content,h,d,v?null:20,m?null:20);n=_[0],r=_[1]}if(v&&(n-=P(v)?f[0]/2:"right"===v?f[0]:0),m&&(r-=P(m)?f[1]/2:"bottom"===m?f[1]:0),t.get("confine")){_=function(t,e,content,n,r){var o=content.getOuterSize(),l=o.width,c=o.height;return t=Math.min(t+l,n)-l,e=Math.min(e+c,r)-c,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,content,h,d);n=_[0],r=_[1]}content.moveTo(n,r)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&A(e,(function(e,r){var o=e.dataByAxis||{},l=(t[r]||{}).dataByAxis||[];(n&=o.length===l.length)&&A(o,(function(t,e){var r=l[e]||{},o=t.seriesDataIndices||[],c=r.seriesDataIndices||[];(n&=t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&o.length===c.length)&&A(o,(function(t,e){var r=c[e];n&=t.seriesIndex===r.seriesIndex&&t.dataIndex===r.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){l.node||(this._tooltipContent.dispose(),_.unregister("itemTooltip",e))}});function L(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(x.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new x(n,e,e.ecModel))}return e}function k(t,e){return t.dispatchAction||o.bind(e.dispatchAction,e)}function P(t){return"center"===t||"middle"===t}t.exports=D},function(t,e,n){var r=n(0),o=n(47),l=n(46),c=n(309),h=n(18),d=n(10),f=r.each,v=d.toCamelCase,m=["","-webkit-","-moz-","-o-"];function y(t){var e,n,l=[],c=t.get("transitionDuration"),y=t.get("backgroundColor"),x=t.getModel("textStyle"),_=t.get("padding");return c&&l.push((n="left "+(e=c)+"s cubic-bezier(0.23, 1, 0.32, 1),top "+e+"s cubic-bezier(0.23, 1, 0.32, 1)",r.map(m,(function(t){return t+"transition:"+n})).join(";"))),y&&(h.canvasSupported?l.push("background-Color:"+y):(l.push("background-Color:#"+o.toHex(y)),l.push("filter:alpha(opacity=70)"))),f(["width","color","radius"],(function(e){var n="border-"+e,r=v(n),o=t.get(r);null!=o&&l.push(n+":"+o+("color"===e?"":"px"))})),l.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();return r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),f(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(x)),null!=_&&l.push("padding:"+d.normalizeCssArray(_).join("px ")+"px"),l.join(";")+";"}function x(t,e,n,r,o){var l=e&&e.painter;if(n){var h=l&&l.getViewportRoot();h&&c.transformLocalCoord(t,h,document.body,r,o)}else{t[0]=r,t[1]=o;var d=l&&l.getViewportRootOffset();d&&(t[0]+=d.offsetLeft,t[1]+=d.offsetTop)}}function _(t,e,n){if(h.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var o=this._zr=e.getZr(),c=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0],x(this._styleCoord,o,c,e.getWidth()/2,e.getHeight()/2),c?document.body.appendChild(r):t.appendChild(r),this._container=t,this._show=!1,this._hideTimeout;var d=this;r.onmouseenter=function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!d._enterable){var e=o.handler,n=o.painter.getViewportRoot();l.normalizeEvent(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1}}_.prototype={constructor:_,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+y(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(content){this.el.innerHTML=null==content?"":content},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;x(n,this._zr,this._appendToBody,t,e);var style=this.el.style;style.left=n[0]+"px",style.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(time){!this._show||this._inContent&&this._enterable||(time?(this._hideDelay=time,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),time)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var w=_;t.exports=w},function(t,e,n){var r=n(0),o=n(77);function l(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}l.prototype={constructor:l,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(content,t,e){this.el&&this._zr.remove(this.el);for(var n={},text=content,r=text.indexOf("{marker");r>=0;){var l=text.indexOf("|}"),c=text.substr(r+"{marker".length,l-r-"{marker".length);c.indexOf("sub")>-1?n["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[c],textOffset:[3,0]}:n["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[c]},r=(text=text.substr(l+1)).indexOf("{marker")}this.el=new o({style:{rich:n,text:content,textLineHeight:20,textBackgroundColor:e.get("backgroundColor"),textBorderRadius:e.get("borderRadius"),textFill:e.get("textStyle.color"),textPadding:e.get("padding")},z:e.get("z")}),this._zr.add(this.el);var h=this;this.el.on("mouseover",(function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0})),this.el.on("mouseout",(function(){h._enterable&&h._show&&h.hideLater(h._hideDelay),h._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(time){!this._show||this._inContent&&this._enterable||(time?(this._hideDelay=time,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),time)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var c=l;t.exports=c},function(t,e,n){var r=n(1),o=n(935);n(376),n(937),n(938),n(939),n(940),r.registerPreprocessor(o)},function(t,e,n){var r=n(0),o=["rect","polygon","keep","clear"];t.exports=function(option,t){var e=option&&option.brush;if(r.isArray(e)||(e=e?[e]:[]),e.length){var n=[];r.each(e,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var l=option&&option.toolbox;r.isArray(l)&&(l=l[0]),l||(l={feature:{}},option.toolbox=[l]);var c,map,h=l.feature||(l.feature={}),d=h.brush||(h.brush={}),f=d.type||(d.type=[]);f.push.apply(f,n),c=f,map={},r.each(c,(function(t){map[t]=1})),c.length=0,r.each(map,(function(t,e){c.push(e)})),t&&!f.length&&f.push.apply(f,o)}}},function(t,e,n){var r=n(342),o=n(14),l=n(2).linePolygonIntersect;function c(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,area){if(e){var r=area.range;return h(e[t],r)}},rect:function(r,o,area){if(r){var l=area.range,c=[r[e[t]],r[e[t]]+r[n[t]]];return c[1]<c[0]&&c.reverse(),h(c[0],l)||h(c[1],l)||h(l[0],c)||h(l[1],c)}}}}function h(p,t){return t[0]<=p&&p<=t[1]}var d={lineX:c(0),lineY:c(1),rect:{point:function(t,e,area){return t&&area.boundingRect.contain(t[0],t[1])},rect:function(t,e,area){return t&&area.boundingRect.intersect(t)}},polygon:{point:function(t,e,area){return t&&area.boundingRect.contain(t[0],t[1])&&r.contain(area.range,t[0],t[1])},rect:function(t,e,area){var n=area.range;if(!t||n.length<=1)return!1;var c=t.x,h=t.y,d=t.width,f=t.height,p=n[0];return!!(r.contain(n,c,h)||r.contain(n,c+d,h)||r.contain(n,c,h+f)||r.contain(n,c+d,h+f)||o.create(t).contain(p[0],p[1])||l(c,h,c+d,h,n)||l(c,h,c,h+f,n)||l(c+d,h,c+d,h+f,n)||l(c,h+f,c+d,h+f,n))||void 0}}};t.exports=d},function(t,e,n){n(7).__DEV__;var r=n(1),o=n(0),l=n(173),c=n(19),h=["#ddd"];function d(option,t){return o.merge({brushType:option.brushType,brushMode:option.brushMode,transformable:option.transformable,brushStyle:new c(option.brushStyle).getItemStyle(),removeOnClick:option.removeOnClick,z:option.z},t,!0)}var f=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&l.replaceVisualOption(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:h},r.hasOwnProperty("liftZ")||(r.liftZ=5)},setAreas:function(t){t&&(this.areas=o.map(t,(function(area){return d(this.option,area)}),this))},setBrushOption:function(t){this.brushOption=d(this.option,t),this.brushType=this.brushOption.brushType}});t.exports=f},function(t,e,n){var r=n(1),o=n(0),l=n(226),c=n(376).layoutCovers,h=r.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new l(e.getZr())).on("brush",o.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,d.apply(this,arguments)},updateTransform:function(t,e){return c(e),d.apply(this,arguments)},updateView:d,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:o.clone(t),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:o.clone(t),$from:n})}});function d(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}t.exports=h},function(t,e,n){var r=n(1);r.registerAction({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},function(t,e,n){var r=n(0),o=n(68),l=n(65).toolbox.brush;function c(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}c.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.clone(l.title)};var h=c.prototype;h.render=h.updateView=function(t,e,n){var o,l,c;e.eachComponent({mainType:"brush"},(function(t){o=t.brushType,l=t.brushOption.brushMode||"single",c|=t.areas.length})),this._brushType=o,this._brushMode=l,r.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===l:"clear"===e?c:e===o)?"emphasis":"normal")}))},h.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return r.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},h.onclick=function(t,e,n){var r=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},o.register("brush",c);var d=c;t.exports=d},function(t,e,n){var r=n(0),o=n(1),l=n(2),c=n(9).getLayoutRect,h=n(10).windowOpen;o.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),o.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var o=this.group,d=t.getModel("textStyle"),f=t.getModel("subtextStyle"),v=t.get("textAlign"),m=r.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),y=new l.Text({style:l.setTextStyle({},d,{text:t.get("text"),textFill:d.getTextColor()},{disableBox:!0}),z2:10}),x=y.getBoundingRect(),_=t.get("subtext"),w=new l.Text({style:l.setTextStyle({},f,{text:_,textFill:f.getTextColor(),y:x.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),link=t.get("link"),S=t.get("sublink"),M=t.get("triggerEvent",!0);y.silent=!link&&!M,w.silent=!S&&!M,link&&y.on("click",(function(){h(link,"_"+t.get("target"))})),S&&w.on("click",(function(){h(link,"_"+t.get("subtarget"))})),y.eventData=w.eventData=M?{componentType:"title",componentIndex:t.componentIndex}:null,o.add(y),_&&o.add(w);var T=o.getBoundingRect(),A=t.getBoxLayoutParams();A.width=T.width,A.height=T.height;var I=c(A,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));v||("middle"===(v=t.get("left")||t.get("right"))&&(v="center"),"right"===v?I.x+=I.width:"center"===v&&(I.x+=I.width/2)),m||("center"===(m=t.get("top")||t.get("bottom"))&&(m="middle"),"bottom"===m?I.y+=I.height:"middle"===m&&(I.y+=I.height/2),m=m||"top"),o.attr("position",[I.x,I.y]);var C={textAlign:v,textVerticalAlign:m};y.setStyle(C),w.setStyle(C),T=o.getBoundingRect();var D=I.margin,style=t.getItemStyle(["color","opacity"]);style.fill=t.get("backgroundColor");var rect=new l.Rect({shape:{x:T.x-D[3],y:T.y-D[0],width:T.width+D[1]+D[3],height:T.height+D[0]+D[2],r:t.get("borderRadius")},style:style,subPixelOptimize:!0,silent:!0});o.add(rect)}}})},function(t,e,n){var r=n(1),o=n(943);n(944),n(945),n(946),n(948),r.registerPreprocessor(o)},function(t,e,n){var r=n(0);function o(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),label=t.label||t.label||{},o=label.normal||(label.normal={}),c={normal:1,emphasis:1};r.each(label,(function(t,e){c[e]||l(o,e)||(o[e]=t)})),n.label&&!l(label,"emphasis")&&(label.emphasis=n.label,delete n.label)}function l(t,e){return t.hasOwnProperty(e)}t.exports=function(option){var t=option&&option.timeline;r.isArray(t)||(t=t?[t]:[]),r.each(t,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(o(t),l(t,"controlPosition")){var c=t.controlStyle||(t.controlStyle={});l(c,"position")||(c.position=t.controlPosition),"none"!==c.position||l(c,"show")||(c.show=!1,delete c.position),delete t.controlPosition}r.each(t.data||[],(function(t){r.isObject(t)&&!r.isArray(t)&&(!l(t,"value")&&l(t,"name")&&(t.value=t.name),o(t))}))}(t)}))}},function(t,e,n){n(21).registerSubTypeDefaulter("timeline",(function(){return"slider"}))},function(t,e,n){var r=n(1),o=n(0);r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),o.defaults({currentIndex:n.option.currentIndex},t)})),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))},function(t,e,n){var r=n(0),o=n(947),l=n(212),c=o.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});r.mixin(c,l);var h=c;t.exports=h},function(t,e,n){var r=n(0),o=n(21),l=n(37),c=n(6),h=o.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(option,t,e){this._data,this._names,this.mergeDefaultAndTheme(option,e),this._initData()},mergeOption:function(option){h.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,o=this._names=[];if("category"===n){var h=[];r.each(e,(function(t,e){var n,l=c.getDataItemValue(t);r.isObject(t)?(n=r.clone(t)).value=e:n=e,h.push(n),r.isString(l)||null!=l&&!isNaN(l)||(l=""),o.push(l+"")})),e=h}var d={category:"ordinal",time:"time"}[n]||"number";(this._data=new l([{name:"value",type:d}],this)).initData(e,o)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),d=h;t.exports=d},function(t,e,n){var r=n(0),o=n(14),l=n(27),c=n(2),h=n(9),d=n(949),f=n(950),v=n(38).createSymbol,m=n(43),y=n(5),x=n(10).encodeHTML,_=r.bind,w=r.each,S=Math.PI,M=d.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,r){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var o=this._layout(t,n),l=this._createGroup("mainGroup"),c=this._createGroup("labelGroup"),h=this._axis=this._createAxis(o,t);t.formatTooltip=function(t){return x(h.scale.getLabel(t))},w(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](o,l,h,t)}),this),this._renderAxisLabel(o,c,h,t),this._position(o,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.position"),r=t.get("orient"),o=function(t,e){return h.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==n||"auto"===n?n="horizontal"===r?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]);var l,c,d,f,v={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},m={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},y={horizontal:0,vertical:S/2},x="vertical"===r?o.height:o.width,_=t.getModel("controlStyle"),w=_.get("show",!0),M=w?_.get("itemSize"):0,T=w?_.get("itemGap"):0,A=M+T,I=t.get("label.rotate")||0;I=I*S/180;var C=_.get("position",!0),D=w&&_.get("showPlayBtn",!0),L=w&&_.get("showPrevBtn",!0),k=w&&_.get("showNextBtn",!0),P=0,O=x;return"left"===C||"bottom"===C?(D&&(l=[0,0],P+=A),L&&(c=[P,0],P+=A),k&&(d=[O-M,0],O-=A)):(D&&(l=[O-M,0],O-=A),L&&(c=[0,0],P+=A),k&&(d=[O-M,0],O-=A)),f=[P,O],t.get("inverse")&&f.reverse(),{viewRect:o,mainLength:x,orient:r,rotation:y[r],labelRotation:I,labelPosOpt:n,labelAlign:t.get("label.align")||v[r],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||m[r],playPosition:l,prevBtnPosition:c,nextBtnPosition:d,axisExtent:f,controlSize:M,controlGap:T}},_position:function(t,e){var n=this._mainGroup,r=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var c=l.create(),h=o.x,d=o.y+o.height;l.translate(c,c,[-h,-d]),l.rotate(c,c,-S/2),l.translate(c,c,[h,d]),(o=o.clone()).applyTransform(c)}var f=T(o),v=T(n.getBoundingRect()),m=T(r.getBoundingRect()),y=n.position,x=r.position;x[0]=y[0]=f[0][0];var _,w=t.labelPosOpt;isNaN(w)?(A(y,v,f,1,_="+"===w?0:1),A(x,m,f,1,1-_)):(A(y,v,f,1,_=w>=0?0:1),x[1]=y[1]+w);function M(t){var e=t.position;t.origin=[f[0][0]-e[0],f[1][0]-e[1]]}function T(rect){return[[rect.x,rect.x+rect.width],[rect.y,rect.y+rect.height]]}function A(t,e,n,r,o){t[r]+=n[r][o]-e[r][o]}n.attr("position",y),r.attr("position",x),n.rotation=r.rotation=t.rotation,M(n),M(r)},_createAxis:function(t,e){var data=e.getData(),n=e.get("axisType"),r=m.createScaleByModel(e,n);r.getTicks=function(){return data.mapArray(["value"],(function(t){return t}))};var o=data.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var l=new f("value",r,t.axisExtent,n);return l.model=e,l},_createGroup:function(t){var e=this["_"+t]=new c.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,o){var l=n.getExtent();o.get("lineStyle.show")&&e.add(new c.Line({shape:{x1:l[0],y1:0,x2:l[1],y2:0},style:r.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,r){var data=r.getData(),o=n.scale.getTicks();w(o,(function(t){var o=n.dataToCoord(t),l=data.getItemModel(t),h=l.getModel("itemStyle"),d=l.getModel("emphasis.itemStyle"),f={position:[o,0],onclick:_(this._changeTimeline,this,t)},v=T(l,h,e,f);c.setHoverStyle(v,d.getItemStyle()),l.get("tooltip")?(v.dataIndex=t,v.dataModel=r):v.dataIndex=v.dataModel=null}),this)},_renderAxisLabel:function(t,e,n,r){if(n.getLabelModel().get("show")){var data=r.getData(),o=n.getViewLabels();w(o,(function(r){var o=r.tickValue,l=data.getItemModel(o),h=l.getModel("label"),d=l.getModel("emphasis.label"),f=n.dataToCoord(r.tickValue),v=new c.Text({position:[f,0],rotation:t.labelRotation-t.rotation,onclick:_(this._changeTimeline,this,o),silent:!1});c.setTextStyle(v.style,h,{text:r.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(v),c.setHoverStyle(v,c.setTextStyle({},d))}),this)}},_renderControl:function(t,e,n,l){var h=t.controlSize,d=t.rotation,f=l.getModel("controlStyle").getItemStyle(),v=l.getModel("emphasis.controlStyle").getItemStyle(),rect=[0,-h/2,h,h],m=l.getPlayState(),y=l.get("inverse",!0);function x(t,n,m,y){if(t){var x=function(t,e,rect,n){return c.makePath(t.get(e).replace(/^path:\/\//,""),r.clone(n||{}),new o(rect[0],rect[1],rect[2],rect[3]),"center")}(l,n,rect,{position:t,origin:[h/2,0],rotation:y?-d:0,rectHover:!0,style:f,onclick:m});e.add(x),c.setHoverStyle(x,v)}}x(t.nextBtnPosition,"controlStyle.nextIcon",_(this._changeTimeline,this,y?"-":"+")),x(t.prevBtnPosition,"controlStyle.prevIcon",_(this._changeTimeline,this,y?"+":"-")),x(t.playPosition,"controlStyle."+(m?"stopIcon":"playIcon"),_(this._handlePlayClick,this,!m),!0)},_renderCurrentPointer:function(t,e,n,r){var data=r.getData(),o=r.getCurrentIndex(),l=data.getItemModel(o).getModel("checkpointStyle"),c=this,h={onCreate:function(t){t.draggable=!0,t.drift=_(c._handlePointerDrag,c),t.ondragend=_(c._handlePointerDragend,c),A(t,o,n,r,!0)},onUpdate:function(t){A(t,o,n,r)}};this._currentPointer=T(l,l,this._mainGroup,{},this._currentPointer,h)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],r=this._axis,o=y.asc(r.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var l=this._findNearestTick(n),c=this.model;(e||l!==c.getCurrentIndex()&&c.get("realtime"))&&this._changeTimeline(l)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(_((function(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return c.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,data=this.model.getData(),n=1/0,r=this._axis;return data.each(["value"],(function(o,l){var c=r.dataToCoord(o),h=Math.abs(c-t);h<n&&(n=h,e=l)})),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}});function T(t,e,n,o,symbol,l){var c=e.get("color");if(symbol)symbol.setColor(c),n.add(symbol),l&&l.onUpdate(symbol);else{var h=t.get("symbol");(symbol=v(h,-1,-1,2,2,c)).setStyle("strokeNoScale",!0),n.add(symbol),l&&l.onCreate(symbol)}var d=e.getItemStyle(["color","symbol","symbolSize"]);symbol.setStyle(d),o=r.merge({rectHover:!0,z2:100},o,!0);var f=t.get("symbolSize");(f=f instanceof Array?f.slice():[+f,+f])[0]/=2,f[1]/=2,o.scale=f;var m=t.get("symbolOffset");if(m){var x=o.position=o.position||[0,0];x[0]+=y.parsePercent(m[0],f[0]),x[1]+=y.parsePercent(m[1],f[1])}var _=t.get("symbolRotate");return o.rotation=(_||0)*Math.PI/180||0,symbol.attr(o),symbol.updateTransform(),symbol}function A(t,e,n,r,o){if(!t.dragging){var l=r.getModel("checkpointStyle"),c=n.dataToCoord(r.getData().get(["value"],e));o||!l.get("animation",!0)?t.attr({position:[c,0]}):(t.stopAnimation(!0),t.animateTo({position:[c,0]},l.get("animationDuration",!0),l.get("animationEasing",!0)))}}t.exports=M},function(t,e,n){var r=n(162).extend({type:"timeline"});t.exports=r},function(t,e,n){var r=n(0),o=n(66),l=function(t,e,n,r){o.call(this,t,e,n),this.type=r||"value",this.model=null};l.prototype={constructor:l,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},r.inherits(l,o);var c=l;t.exports=c},function(t,e,n){var r=n(1);n(952),n(953),r.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}}))},function(t,e,n){var r=n(233).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});t.exports=r},function(t,e,n){var r=n(0),o=n(126),l=n(5),c=n(37),h=n(234);function d(t,e,n){var r=e.coordinateSystem;t.each((function(o){var c,h=t.getItemModel(o),d=l.parsePercent(h.get("x"),n.getWidth()),f=l.parsePercent(h.get("y"),n.getHeight());if(isNaN(d)||isNaN(f)){if(e.getMarkerPosition)c=e.getMarkerPosition(t.getValues(t.dimensions,o));else if(r){var v=t.get(r.dimensions[0],o),m=t.get(r.dimensions[1],o);c=r.dataToPoint([v,m])}}else c=[d,f];isNaN(d)||(c[0]=d),isNaN(f)||(c[1]=f),t.setItemLayout(o,c)}))}var f=n(235).extend({type:"markPoint",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markPointModel;e&&(d(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,n,l){var f=t.coordinateSystem,v=t.id,m=t.getData(),y=this.markerGroupMap,x=y.get(v)||y.set(v,new o),_=function(t,e,n){var o;o=t?r.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return r.defaults({name:t},n)})):[{name:"value",type:"float"}];var l=new c(o,n),d=r.map(n.get("data"),r.curry(h.dataTransform,e));t&&(d=r.filter(d,r.curry(h.dataFilter,t)));return l.initData(d,null,t?h.dimValueGetter:function(t){return t.value}),l}(f,t,e);e.setData(_),d(e.getData(),t,l),_.each((function(t){var n=_.getItemModel(t),symbol=n.getShallow("symbol"),o=n.getShallow("symbolSize"),l=r.isFunction(symbol),c=r.isFunction(o);if(l||c){var h=e.getRawValue(t),d=e.getDataParams(t);l&&(symbol=symbol(h,d)),c&&(o=o(h,d))}_.setItemVisual(t,{symbol:symbol,symbolSize:o,color:n.get("itemStyle.color")||m.getVisual("color")})})),x.updateData(_),this.group.add(x.group),_.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),x.__keep=!0,x.group.silent=e.get("silent")||t.get("silent")}});t.exports=f},function(t,e,n){var r=n(1);n(955),n(956),r.registerPreprocessor((function(t){t.markLine=t.markLine||{}}))},function(t,e,n){var r=n(233).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});t.exports=r},function(t,e,n){var r=n(0),o=n(37),l=n(5),c=n(234),h=n(223),d=n(235),f=n(49).getStackedDimension,v=function(t,e,n,o){var data=t.getData(),l=o.type;if(!r.isArray(o)&&("min"===l||"max"===l||"average"===l||"median"===l||null!=o.xAxis||null!=o.yAxis)){var h,d;if(null!=o.yAxis||null!=o.xAxis)h=e.getAxis(null!=o.yAxis?"y":"x"),d=r.retrieve(o.yAxis,o.xAxis);else{var v=c.getAxisInfo(o,data,e,t);h=v.valueAxis;var m=f(data,v.valueDataDim);d=c.numCalculate(data,m,l)}var y="x"===h.dim?0:1,x=1-y,_=r.clone(o),w={};_.type=null,_.coord=[],w.coord=[],_.coord[x]=-1/0,w.coord[x]=1/0;var S=n.get("precision");S>=0&&"number"==typeof d&&(d=+d.toFixed(Math.min(S,20))),_.coord[y]=w.coord[y]=d,o=[_,w,{type:l,valueIndex:o.valueIndex,value:d}]}return(o=[c.dataTransform(t,o[0]),c.dataTransform(t,o[1]),r.extend({},o[2])])[2].type=o[2].type||"",r.merge(o[2],o[0]),r.merge(o[2],o[1]),o};function m(t){return!isNaN(t)&&!isFinite(t)}function y(t,e,n,r){var o=1-t,l=r.dimensions[t];return m(e[o])&&m(n[o])&&e[t]===n[t]&&r.getAxis(l).containData(e[t])}function x(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(y(1,n,r,t)||y(0,n,r,t)))return!0}return c.dataFilter(t,e[0])&&c.dataFilter(t,e[1])}function _(data,t,e,n,r){var o,c=n.coordinateSystem,h=data.getItemModel(t),d=l.parsePercent(h.get("x"),r.getWidth()),f=l.parsePercent(h.get("y"),r.getHeight());if(isNaN(d)||isNaN(f)){if(n.getMarkerPosition)o=n.getMarkerPosition(data.getValues(data.dimensions,t));else{var v=c.dimensions,y=data.get(v[0],t),x=data.get(v[1],t);o=c.dataToPoint([y,x])}if("cartesian2d"===c.type){var _=c.getAxis("x"),w=c.getAxis("y");v=c.dimensions;m(data.get(v[0],t))?o[0]=_.toGlobalCoord(_.getExtent()[e?0:1]):m(data.get(v[1],t))&&(o[1]=w.toGlobalCoord(w.getExtent()[e?0:1]))}isNaN(d)||(o[0]=d),isNaN(f)||(o[1]=f)}else o=[d,f];data.setItemLayout(t,o)}var w=d.extend({type:"markLine",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markLineModel;if(e){var r=e.getData(),o=e.__from,l=e.__to;o.each((function(e){_(o,e,!0,t,n),_(l,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[o.getItemLayout(t),l.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,n,l){var d=t.coordinateSystem,f=t.id,m=t.getData(),y=this.markerGroupMap,w=y.get(f)||y.set(f,new h);this.group.add(w.group);var S=function(t,e,n){var l;l=t?r.map(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return r.defaults({name:t},n)})):[{name:"value",type:"float"}];var h=new o(l,n),d=new o(l,n),f=new o([],n),m=r.map(n.get("data"),r.curry(v,e,t,n));t&&(m=r.filter(m,r.curry(x,t)));var y=t?c.dimValueGetter:function(t){return t.value};return h.initData(r.map(m,(function(t){return t[0]})),null,y),d.initData(r.map(m,(function(t){return t[1]})),null,y),f.initData(r.map(m,(function(t){return t[2]}))),f.hasItemOption=!0,{from:h,to:d,line:f}}(d,t,e),M=S.from,T=S.to,A=S.line;e.__from=M,e.__to=T,e.setData(A);var I=e.get("symbol"),C=e.get("symbolSize");function D(data,e,n){var r=data.getItemModel(e);_(data,e,n,t,l),data.setItemVisual(e,{symbolSize:r.get("symbolSize")||C[n?0:1],symbol:r.get("symbol",!0)||I[n?0:1],color:r.get("itemStyle.color")||m.getVisual("color")})}r.isArray(I)||(I=[I,I]),"number"==typeof C&&(C=[C,C]),S.from.each((function(t){D(M,t,!0),D(T,t,!1)})),A.each((function(t){var e=A.getItemModel(t).get("lineStyle.color");A.setItemVisual(t,{color:e||M.getItemVisual(t,"color")}),A.setItemLayout(t,[M.getItemLayout(t),T.getItemLayout(t)]),A.setItemVisual(t,{fromSymbolSize:M.getItemVisual(t,"symbolSize"),fromSymbol:M.getItemVisual(t,"symbol"),toSymbolSize:T.getItemVisual(t,"symbolSize"),toSymbol:T.getItemVisual(t,"symbol")})})),w.updateData(A),S.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){t.dataModel=e}))})),w.__keep=!0,w.group.silent=e.get("silent")||t.get("silent")}});t.exports=w},function(t,e,n){var r=n(1);n(958),n(959),r.registerPreprocessor((function(t){t.markArea=t.markArea||{}}))},function(t,e,n){var r=n(233).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});t.exports=r},function(t,e,n){var r=n(0),o=n(47),l=n(37),c=n(5),h=n(2),d=n(234),f=n(235),v=function(t,e,n,o){var l=d.dataTransform(t,o[0]),c=d.dataTransform(t,o[1]),h=r.retrieve,f=l.coord,v=c.coord;f[0]=h(f[0],-1/0),f[1]=h(f[1],-1/0),v[0]=h(v[0],1/0),v[1]=h(v[1],1/0);var m=r.mergeAll([{},l,c]);return m.coord=[l.coord,c.coord],m.x0=l.x,m.y0=l.y,m.x1=c.x,m.y1=c.y,m};function m(t){return!isNaN(t)&&!isFinite(t)}function y(t,e,n,r){var o=1-t;return m(e[o])&&m(n[o])}function x(t,e){var n=e.coord[0],r=e.coord[1];return!("cartesian2d"!==t.type||!n||!r||!y(1,n,r)&&!y(0,n,r))||(d.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||d.dataFilter(t,{coord:r,x:e.x1,y:e.y1}))}function _(data,t,e,n,r){var o,l=n.coordinateSystem,h=data.getItemModel(t),d=c.parsePercent(h.get(e[0]),r.getWidth()),f=c.parsePercent(h.get(e[1]),r.getHeight());if(isNaN(d)||isNaN(f)){if(n.getMarkerPosition)o=n.getMarkerPosition(data.getValues(e,t));else{var v=[_=data.get(e[0],t),w=data.get(e[1],t)];l.clampData&&l.clampData(v,v),o=l.dataToPoint(v,!0)}if("cartesian2d"===l.type){var y=l.getAxis("x"),x=l.getAxis("y"),_=data.get(e[0],t),w=data.get(e[1],t);m(_)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===e[0]?0:1]):m(w)&&(o[1]=x.toGlobalCoord(x.getExtent()["y0"===e[1]?0:1]))}isNaN(d)||(o[0]=d),isNaN(f)||(o[1]=f)}else o=[d,f];return o}var w=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];f.extend({type:"markArea",updateTransform:function(t,e,n){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var o=e.getData();o.each((function(e){var l=r.map(w,(function(r){return _(o,e,r,t,n)}));o.setItemLayout(e,l),o.getItemGraphicEl(e).setShape("points",l)}))}}),this)},renderSeries:function(t,e,n,c){var d=t.coordinateSystem,f=t.id,m=t.getData(),y=this.markerGroupMap,S=y.get(f)||y.set(f,{group:new h.Group});this.group.add(S.group),S.__keep=!0;var M=function(t,e,n){var o,c;t?(o=r.map(t&&t.dimensions,(function(t){var data=e.getData(),n=data.getDimensionInfo(data.mapDimension(t))||{};return r.defaults({name:t},n)})),c=new l(r.map(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:o[e%2].type}})),n)):c=new l(o=[{name:"value",type:"float"}],n);var h=r.map(n.get("data"),r.curry(v,e,t,n));t&&(h=r.filter(h,r.curry(x,t)));var d=t?function(t,e,n,r){return t.coord[Math.floor(r/2)][r%2]}:function(t){return t.value};return c.initData(h,null,d),c.hasItemOption=!0,c}(d,t,e);e.setData(M),M.each((function(e){M.setItemLayout(e,r.map(w,(function(n){return _(M,e,n,t,c)}))),M.setItemVisual(e,{color:m.getVisual("color")})})),M.diff(S.__data).add((function(t){var polygon=new h.Polygon({shape:{points:M.getItemLayout(t)}});M.setItemGraphicEl(t,polygon),S.group.add(polygon)})).update((function(t,n){var polygon=S.__data.getItemGraphicEl(n);h.updateProps(polygon,{shape:{points:M.getItemLayout(t)}},e,t),S.group.add(polygon),M.setItemGraphicEl(t,polygon)})).remove((function(t){var polygon=S.__data.getItemGraphicEl(t);S.group.remove(polygon)})).execute(),M.eachItemGraphicEl((function(polygon,t){var n=M.getItemModel(t),l=n.getModel("label"),c=n.getModel("emphasis.label"),d=M.getItemVisual(t,"color");polygon.useStyle(r.defaults(n.getModel("itemStyle").getItemStyle(),{fill:o.modifyAlpha(d,.4),stroke:d})),polygon.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),h.setLabelStyle(polygon.style,polygon.hoverStyle,l,c,{labelFetcher:e,labelDataIndex:t,defaultText:M.getName(t)||"",isRectText:!0,autoColor:d}),h.setHoverStyle(polygon,{}),polygon.dataModel=e})),S.__data=M,S.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){n(377),n(963),n(964),n(965)},function(t,e,n){var r=n(1),o=n(0);function l(t,e,n){var r,l={},c="toggleSelected"===t;return n.eachComponent("legend",(function(n){c&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var h=n.getData();o.each(h,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);l.hasOwnProperty(e)?l[e]=l[e]&&r:l[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:l}:{name:e.name,selected:l}}r.registerAction("legendToggleSelect","legendselectchanged",o.curry(l,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",o.curry(l,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",o.curry(l,"inverseSelect")),r.registerAction("legendSelect","legendselected",o.curry(l,"select")),r.registerAction("legendUnSelect","legendunselected",o.curry(l,"unSelect"))},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0}))}},function(t,e,n){var r=n(378),o=n(9),l=o.mergeLayoutParam,c=o.getLayoutParams,h=r.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(option,t,e,n){var r=c(option);h.superCall(this,"init",option,t,e,n),d(this,option,r)},mergeOption:function(option,t){h.superCall(this,"mergeOption",option,t),d(this,this.option,option)}});function d(t,e,n){var r=[1,1];r[t.getOrient().index]=0,l(e,n,{type:"box",ignoreSize:r})}var f=h;t.exports=f},function(t,e,n){var r=n(0),o=n(2),l=n(9),c=n(379),h=o.Group,d=["width","height"],f=["x","y"],v=c.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){v.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new h),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new h),this._showController},resetInner:function(){v.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,l,c,h,d){var f=this;v.superCall(this,"renderInner",t,e,n,l,c,h,d);var m=this._controllerGroup,y=e.get("pageIconSize",!0);r.isArray(y)||(y=[y,y]),_("pagePrev",0);var x=e.getModel("pageTextStyle");function _(t,n){var c=t+"DataIndex",h=o.createIcon(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:r.bind(f._pageGo,f,c,e,l)},{x:-y[0]/2,y:-y[1]/2,width:y[0],height:y[1]});h.name=t,m.add(h)}m.add(new o.Text({name:"pageText",style:{textFill:x.getTextColor(),font:x.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),_("pageNext",1)},layoutInner:function(t,e,n,o,c,h){var v=this.getSelectorGroup(),m=t.getOrient().index,y=d[m],x=f[m],_=d[1-m],w=f[1-m];c&&l.box("horizontal",v,t.get("selectorItemGap",!0));var S=t.get("selectorButtonGap",!0),M=v.getBoundingRect(),T=[-M.x,-M.y],A=r.clone(n);c&&(A[y]=n[y]-M[y]-S);var I=this._layoutContentAndController(t,o,A,m,y,_,w);if(c){if("end"===h)T[m]+=I[y]+S;else{var C=M[y]+S;T[m]-=C,I[x]-=C}I[y]+=M[y]+S,T[1-m]+=I[w]+I[_]/2-M[_]/2,I[_]=Math.max(I[_],M[_]),I[w]=Math.min(I[w],M[w]+T[1-m]),v.attr("position",T)}return I},_layoutContentAndController:function(t,e,n,c,h,d,f){var v=this.getContentGroup(),m=this._containerGroup,y=this._controllerGroup;l.box(t.get("orient"),v,t.get("itemGap"),c?n.width:null,c?null:n.height),l.box("horizontal",y,t.get("pageButtonItemGap",!0));var x=v.getBoundingRect(),_=y.getBoundingRect(),w=this._showController=x[h]>n[h],S=[-x.x,-x.y];e||(S[c]=v.position[c]);var M=[0,0],T=[-_.x,-_.y],A=r.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));w&&("end"===t.get("pageButtonPosition",!0)?T[c]+=n[h]-_[h]:M[c]+=_[h]+A);T[1-c]+=x[d]/2-_[d]/2,v.attr("position",S),m.attr("position",M),y.attr("position",T);var I={x:0,y:0};if(I[h]=w?n[h]:x[h],I[d]=Math.max(x[d],_[d]),I[f]=Math.min(0,_[f]+T[1-c]),m.__rectSize=n[h],w){var C={x:0,y:0};C[h]=Math.max(n[h]-_[h]-A,0),C[d]=I[d],m.setClipPath(new o.Rect({shape:C})),m.__rectSize=C[h]}else y.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var D=this._getPageInfo(t);return null!=D.pageIndex&&o.updateProps(v,{position:D.contentPosition},!!w&&t),this._updatePageInfoView(t,D),I},_pageGo:function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;r.each(["pagePrev","pageNext"],(function(r){var o=null!=e[r+"DataIndex"],l=n.childOfName(r);l&&(l.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),l.cursor=o?"pointer":"default")}));var o=n.childOfName("pageText"),l=t.get("pageFormatter"),c=e.pageIndex,h=null!=c?c+1:0,d=e.pageCount;o&&l&&o.setStyle("text",r.isString(l)?l.replace("{current}",h).replace("{total}",d):l({current:h,total:d}))},_getPageInfo:function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,o=t.getOrient().index,l=d[o],c=f[o],h=this._findTargetItemIndex(e),v=n.children(),m=v[h],y=v.length,x=y?1:0,_={contentPosition:n.position.slice(),pageCount:x,pageIndex:x-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!m)return _;var w=A(m);_.contentPosition[o]=-w.s;for(var i=h+1,S=w,M=w,T=null;i<=y;++i)(!(T=A(v[i]))&&M.e>S.s+r||T&&!I(T,S.s))&&(S=M.i>S.i?M:T)&&(null==_.pageNextDataIndex&&(_.pageNextDataIndex=S.i),++_.pageCount),M=T;for(i=h-1,S=w,M=w,T=null;i>=-1;--i)(T=A(v[i]))&&I(M,T.s)||!(S.i<M.i)||(M=S,null==_.pagePrevDataIndex&&(_.pagePrevDataIndex=S.i),++_.pageCount,++_.pageIndex),S=T;return _;function A(t){if(t){var e=t.getBoundingRect(),n=e[c]+t.position[o];return{s:n,e:n+e[l],i:t.__legendDataIndex}}}function I(t,e){return t.e>=e&&t.s<=e+r}},_findTargetItemIndex:function(t){return this._showController?(this.getContentGroup().eachChild((function(r,o){var l=r.__legendDataIndex;null==n&&null!=l&&(n=o),l===t&&(e=o)})),null!=e?e:n):0;var e,n}}),m=v;t.exports=m},function(t,e,n){n(1).registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))},function(t,e,n){n(380),n(381)},function(t,e,n){var r=n(100).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});t.exports=r},function(t,e,n){var r=n(0),o=n(46),l=n(2),c=n(64),h=n(101),d=n(5),f=n(9),v=n(99),m=l.Rect,y=d.linearMap,x=d.asc,_=r.bind,w=r.each,S=["line","bar","candlestick","scatter"],M=h.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,r){M.superApply(this,"render",arguments),c.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){M.superApply(this,"remove",arguments),c.clear(this,"_dispatchZoomAction")},dispose:function(){M.superApply(this,"dispose",arguments),c.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new l.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},l="horizontal"===this._orient?{right:o.width-n.x-n.width,top:o.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},c=f.getLayoutParams(t.option);r.each(["right","top","width","height"],(function(t){"ph"===c[t]&&(c[t]=l[t])}));var h=f.getLayoutRect(c,o,t.padding);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),o=r&&r.get("inverse"),l=this._displayables.barGroup,c=(this._dataShadowInfo||{}).otherAxisInverse;l.attr("horizontal"!==n||o?"horizontal"===n&&o?{scale:c?[-1,1]:[-1,-1]}:"vertical"!==n||o?{scale:c?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:c?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:c?[1,1]:[1,-1]});var rect=t.getBoundingRect([l]);t.attr("position",[e.x-rect.x,e.y-rect.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new m({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new m({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,data=n.getRawData(),o=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=o){var c=data.getDataExtent(o),h=.3*(c[1]-c[0]);c=[c[0]-h,c[1]+h];var d,f=[0,e[1]],v=[0,e[0]],m=[[e[0],0],[0,0]],x=[],_=v[1]/(data.count()-1),w=0,S=Math.round(data.count()/e[0]);data.each([o],(function(t,e){if(S>0&&e%S)w+=_;else{var n=null==t||isNaN(t)||""===t,r=n?0:y(t,c,f,!0);n&&!d&&e?(m.push([m[m.length-1][0],0]),x.push([x[x.length-1][0],0])):!n&&d&&(m.push([w,0]),x.push([w,0])),m.push([w,r]),x.push([w,r]),w+=_,d=n}}));var M=this.dataZoomModel;this._displayables.barGroup.add(new l.Polygon({shape:{points:m},style:r.defaults({fill:M.get("dataBackgroundColor")},M.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new l.Polyline({shape:{points:x},style:M.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,o=this.ecModel;return t.eachTargetAxis((function(l,c){var h=t.getAxisProxy(l.name,c).getTargetSeriesModels();r.each(h,(function(t){if(!(n||!0!==e&&r.indexOf(S,t.get("type"))<0)){var h,d=o.getComponent(l.axis,c).axis,f={x:"y",y:"x",radius:"angle",angle:"radius"}[l.name],v=t.coordinateSystem;null!=f&&v.getOtherAxis&&(h=v.getOtherAxis(d).inverse),f=t.getData().mapDimension(f),n={thisAxis:d,series:t,thisDim:l.name,otherDim:f,otherAxisInverse:h}}}),this)}),this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],r=this._displayables.barGroup,o=this._size,c=this.dataZoomModel;r.add(t.filler=new m({draggable:!0,cursor:T(this._orient),drift:_(this._onDragMove,this,"all"),ondragstart:_(this._showDataInfo,this,!0),ondragend:_(this._onDragEnd,this),onmouseover:_(this._showDataInfo,this,!0),onmouseout:_(this._showDataInfo,this,!1),style:{fill:c.get("fillerColor"),textPosition:"inside"}})),r.add(new m({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:c.get("dataBackgroundColor")||c.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),w([0,1],(function(t){var path=l.createIcon(c.get("handleIcon"),{cursor:T(this._orient),draggable:!0,drift:_(this._onDragMove,this,t),ondragend:_(this._onDragEnd,this),onmouseover:_(this._showDataInfo,this,!0),onmouseout:_(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),o=path.getBoundingRect();this._handleHeight=d.parsePercent(c.get("handleSize"),this._size[1]),this._handleWidth=o.width/o.height*this._handleHeight,path.setStyle(c.getModel("handleStyle").getItemStyle());var h=c.get("handleColor");null!=h&&(path.style.fill=h),r.add(e[t]=path);var f=c.textStyleModel;this.group.add(n[t]=new l.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:f.getTextColor(),textFont:f.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[y(t[0],[0,100],e,!0),y(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,r=this._handleEnds,o=this._getViewExtent(),l=n.findRepresentativeAxisProxy().getMinMaxSpan(),c=[0,100];v(e,r,o,n.get("zoomLock")?"all":t,null!=l.minSpan?y(l.minSpan,c,o,!0):null,null!=l.maxSpan?y(l.maxSpan,c,o,!0):null);var h=this._range,d=this._range=x([y(r[0],o,c,!0),y(r[1],o,c,!0)]);return!h||h[0]!==d[0]||h[1]!==d[1]},_updateView:function(t){var e=this._displayables,n=this._handleEnds,r=x(n.slice()),o=this._size;w([0,1],(function(t){var r=e.handles[t],l=this._handleHeight;r.attr({scale:[l/2,l/2],position:[n[t],o[1]/2-l/2]})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:o[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,o=this._orient,c=["",""];if(e.get("showDetail")){var h=e.findRepresentativeAxisProxy();if(h){var d=h.getAxisModel().axis,f=this._range,v=t?h.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:h.getDataValueWindow();c=[this._formatLabel(v[0],d),this._formatLabel(v[1],d)]}}var m=x(this._handleEnds.slice());function y(t){var e=l.getTransform(n.handles[t].parent,this.group),h=l.transformDirection(0===t?"right":"left",e),d=this._handleWidth/2+5,f=l.applyTransform([m[t]+(0===t?-d:d),this._size[1]/2],e);r[t].setStyle({x:f[0],y:f[1],textVerticalAlign:"horizontal"===o?"middle":h,textAlign:"horizontal"===o?h:"center",text:c[t]})}y.call(this,0),y.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,o=n.get("labelFormatter"),l=n.get("labelPrecision");null!=l&&"auto"!==l||(l=e.getPixelPrecision());var c=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(l,20));return r.isFunction(o)?o(t,c):r.isString(o)?o.replace("{value}",c):c},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n,r){this._dragging=!0,o.stop(r.event);var c=this._displayables.barGroup.getLocalTransform(),h=l.applyTransform([e,n],c,!0),d=this._updateInterval(t,h[0]),f=this.dataZoomModel.get("realtime");this._updateView(!f),d&&f&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,o=(r[0]+r[1])/2,l=this._updateInterval("all",n[0]-o);this._updateView(),l&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var rect;if(w(this.getTargetCoordInfo(),(function(t){if(!rect&&t.length){var e=t[0].model.coordinateSystem;rect=e.getRect&&e.getRect()}})),!rect){var t=this.api.getWidth(),e=this.api.getHeight();rect={x:.2*t,y:.2*e,width:.6*t,height:.6*e}}return rect}});function T(t){return"vertical"===t?"ns-resize":"ew-resize"}var A=M;t.exports=A},function(t,e,n){var r=n(100).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});t.exports=r},function(t,e,n){var r=n(0),o=n(101),l=n(99),c=n(971),h=r.bind,d=o.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,o){d.superApply(this,"render",arguments),this._range=t.getPercentRange(),r.each(this.getTargetCoordInfo(),(function(e,o){var l=r.map(e,(function(t){return c.generateCoordId(t.model)}));r.each(e,(function(e){var d=e.model,v={};r.each(["pan","zoom","scrollMove"],(function(t){v[t]=h(f[t],this,e,o)}),this),c.register(n,{coordId:c.generateCoordId(d),allCoordIds:l,containsPoint:function(t,e,n){return d.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,dataZoomModel:t,getRange:v})}),this)}),this)},dispose:function(){c.unregister(this.api,this.dataZoomModel.id),d.superApply(this,"dispose",arguments),this._range=null}}),f={zoom:function(t,e,n,r){var o=this._range,c=o.slice(),h=t.axisModels[0];if(h){var d=m[e](null,[r.originX,r.originY],h,n,t),f=(d.signal>0?d.pixelStart+d.pixelLength-d.pixel:d.pixel-d.pixelStart)/d.pixelLength*(c[1]-c[0])+c[0],v=Math.max(1/r.scale,0);c[0]=(c[0]-f)*v+f,c[1]=(c[1]-f)*v+f;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return l(0,c,[0,100],0,y.minSpan,y.maxSpan),this._range=c,o[0]!==c[0]||o[1]!==c[1]?c:void 0}},pan:v((function(t,e,n,r,o,l){var c=m[r]([l.oldX,l.oldY],[l.newX,l.newY],e,o,n);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength})),scrollMove:v((function(t,e,n,r,o,l){return m[r]([0,0],[l.scrollDelta,l.scrollDelta],e,o,n).signal*(t[1]-t[0])*l.scrollDelta}))};function v(t){return function(e,n,r,o){var c=this._range,h=c.slice(),d=e.axisModels[0];if(d){var f=t(h,d,e,n,r,o);return l(f,h,[0,100],"all"),this._range=h,c[0]!==h[0]||c[1]!==h[1]?h:void 0}}}var m={grid:function(t,e,n,r,o){var l=n.axis,c={},rect=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===l.dim?(c.pixel=e[0]-t[0],c.pixelLength=rect.width,c.pixelStart=rect.x,c.signal=l.inverse?1:-1):(c.pixel=e[1]-t[1],c.pixelLength=rect.height,c.pixelStart=rect.y,c.signal=l.inverse?-1:1),c},polar:function(t,e,n,r,o){var l=n.axis,c={},h=o.model.coordinateSystem,d=h.getRadiusAxis().getExtent(),f=h.getAngleAxis().getExtent();return t=t?h.pointToCoord(t):[0,0],e=h.pointToCoord(e),"radiusAxis"===n.mainType?(c.pixel=e[0]-t[0],c.pixelLength=d[1]-d[0],c.pixelStart=d[0],c.signal=l.inverse?1:-1):(c.pixel=e[1]-t[1],c.pixelLength=f[1]-f[0],c.pixelStart=f[0],c.signal=l.inverse?-1:1),c},singleAxis:function(t,e,n,r,o){var l=n.axis,rect=o.model.coordinateSystem.getRect(),c={};return t=t||[0,0],"horizontal"===l.orient?(c.pixel=e[0]-t[0],c.pixelLength=rect.width,c.pixelStart=rect.x,c.signal=l.inverse?1:-1):(c.pixel=e[1]-t[1],c.pixelLength=rect.height,c.pixelStart=rect.y,c.signal=l.inverse?-1:1),c}},y=d;t.exports=y},function(t,e,n){var r=n(0),o=n(132),l=n(64),c="\0_ec_dataZoom_roams";function h(t){var e=t.getZr();return e[c]||(e[c]={})}function d(t){r.each(t,(function(e,n){e.count||(e.controller.dispose(),delete t[n])}))}function f(t,e){t.dispatchAction({type:"dataZoom",batch:e})}e.register=function(t,e){var n=h(t),c=e.dataZoomId,v=e.coordId;r.each(n,(function(t,n){var o=t.dataZoomInfos;o[c]&&r.indexOf(e.allCoordIds,v)<0&&(delete o[c],t.count--)})),d(n);var m=n[v];m||((m=n[v]={coordId:v,dataZoomInfos:{},count:0}).controller=function(t,e){var n=new o(t.getZr());return r.each(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(n){var o=[];r.each(e.dataZoomInfos,(function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var l=(r.getRange||{})[t],c=l&&l(e.controller,n);!r.dataZoomModel.get("disabled",!0)&&c&&o.push({dataZoomId:r.dataZoomId,start:c[0],end:c[1]})}})),o.length&&e.dispatchAction(o)}))})),n}(t,m),m.dispatchAction=r.curry(f,t)),!m.dataZoomInfos[c]&&m.count++,m.dataZoomInfos[c]=e;var y,x,_,w,S=(y=m.dataZoomInfos,_={type_true:2,type_move:1,type_false:0,type_undefined:-1},w=!0,r.each(y,(function(t){var e=t.dataZoomModel,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");_["type_"+n]>_["type_"+x]&&(x=n),w&=e.get("preventDefaultMouseMove",!0)})),{controlType:x,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!w}});m.controller.enable(S.controlType,S.opt),m.controller.setPointerChecker(e.containsPoint),l.createOrUpdate(m,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")},e.unregister=function(t,e){var n=h(t);r.each(n,(function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)})),d(n)},e.generateCoordId=function(t){return t.type+"\0_"+t.id}},function(t,e,n){n(382),n(391)},function(t,e,n){var r=n(0),o=n(386),l=n(5),c=[20,140],h=o.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){h.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){h.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=c[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=c[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):r.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){o.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=l.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],data=n.getData();data.each(this.getDataDimension(data),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},getVisualMeta:function(t){var e=d(this,"outOfRange",this.getExtent()),n=d(this,"inRange",this.option.range.slice()),r=[];function o(e,n){r.push({value:e,color:t(e,n)})}for(var l=0,c=0,h=n.length,f=e.length;c<f&&(!n.length||e[c]<=n[0]);c++)e[c]<n[l]&&o(e[c],"outOfRange");for(var v=1;l<h;l++,v=0)v&&r.length&&o(n[l],"outOfRange"),o(n[l],"inRange");for(v=1;c<f;c++)(!n.length||n[n.length-1]<e[c])&&(v&&(r.length&&o(r[r.length-1].value,"outOfRange"),v=0),o(e[c],"outOfRange"));var m=r.length;return{stops:r,outerColors:[m?r[0].color:"transparent",m?r[m-1].color:"transparent"]}}});function d(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,o=n[0],l=[],i=0;i<=200&&o<n[1];i++)l.push(o),o+=r;return l.push(n[1]),l}var f=h;t.exports=f},function(t,e,n){var r=n(0),o=n(210),l=n(46),c=n(388),h=n(2),d=n(5),f=n(99),v=n(389),m=n(6),y=d.linearMap,x=r.each,_=Math.min,w=Math.max,S=c.extend({type:"visualMap.continuous",init:function(){S.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var text=e[1-n];text=null!=text?text+"":"";var r=this.visualMapModel,o=r.get("textGap"),l=r.itemSize,c=this._shapes.barGroup,d=this._applyTransform([l[0]/2,0===n?-o:l[1]+o],c),f=this._applyTransform(0===n?"bottom":"top",c),v=this._orient,m=this.visualMapModel.textStyleModel;this.group.add(new h.Text({style:{x:d[0],y:d[1],textVerticalAlign:"horizontal"===v?"middle":f,textAlign:"horizontal"===v?f:"center",text:text,textFont:m.getFont(),textFill:m.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,n=this._shapes,o=e.itemSize,l=this._orient,c=this._useHandle,h=v.getItemAlign(e,this.api,o),d=n.barGroup=this._createBarGroup(h);d.add(n.outOfRange=M()),d.add(n.inRange=M(null,c?A(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0)));var f=e.textStyleModel.getTextRect("国"),m=w(f.width,f.height);c&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(d,0,o,m,l,h),this._createHandle(d,1,o,m,l,h)),this._createIndicator(d,o,m,l),t.add(d)},_createHandle:function(t,e,n,o,c){var d=r.bind(this._dragHandle,this,e,!1),f=r.bind(this._dragHandle,this,e,!0),v=M(function(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}(e,o),A(this._orient),d,f);v.position[0]=n[0],t.add(v);var m=this.visualMapModel.textStyleModel,y=new h.Text({draggable:!0,drift:d,onmousemove:function(t){l.stop(t.event)},ondragend:f,style:{x:0,y:0,text:"",textFont:m.getFont(),textFill:m.getTextColor()}});this.group.add(y);var x=["horizontal"===c?o/2:1.5*o,"horizontal"===c?0===e?-1.5*o:1.5*o:0===e?-o/2:o/2],_=this._shapes;_.handleThumbs[e]=v,_.handleLabelPoints[e]=x,_.handleLabels[e]=y},_createIndicator:function(t,e,n,r){var o=M([[0,0]],"move");o.position[0]=e[0],o.attr({invisible:!0,silent:!0}),t.add(o);var l=this.visualMapModel.textStyleModel,c=new h.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:l.getFont(),textFill:l.getTextColor()}});this.group.add(c);var d=["horizontal"===r?n/2:9,0],f=this._shapes;f.indicator=o,f.indicatorLabel=c,f.indicatorLabelPoint=d},_dragHandle:function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var o=this._applyTransform([n,r],this._shapes.barGroup,!0);this._updateInterval(t,o[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():T(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[y(e[0],n,r,!0),y(e[1],n,r,!0)]},_updateInterval:function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,o=[0,n.itemSize[1]];f(e,r,o,t,0);var l=n.getExtent();this._dataInterval=[y(r[0],o,l,!0),y(r[1],o,l,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,o=[0,e.itemSize[1]],l=t?o:this._handleEnds,c=this._createBarVisual(this._dataInterval,n,l,"inRange"),h=this._createBarVisual(n,n,o,"outOfRange");r.inRange.setStyle({fill:c.barColor,opacity:c.opacity}).setShape("points",c.barPoints),r.outOfRange.setStyle({fill:h.barColor,opacity:h.opacity}).setShape("points",h.barPoints),this._updateHandle(l,c)},_createBarVisual:function(t,e,n,r){var l={forceState:r,convertOpacityToAlpha:!0},c=this._makeColorGradient(t,l),h=[this.getControllerVisual(t[0],"symbolSize",l),this.getControllerVisual(t[1],"symbolSize",l)],d=this._createBarPoints(n,h);return{barColor:new o(0,0,0,1,c),barPoints:d,handlesColor:[c[0].color,c[c.length-1].color]}},_makeColorGradient:function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new h.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,o=n.handleThumbs,l=n.handleLabels;x([0,1],(function(c){var d=o[c];d.setStyle("fill",e.handlesColor[c]),d.position[1]=t[c];var f=h.applyTransform(n.handleLabelPoints[c],h.getTransform(d,this.group));l[c].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[c]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===c?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(t,e,n,r){var o=this.visualMapModel,l=o.getExtent(),c=o.itemSize,d=[0,c[1]],f=y(t,l,d,!0),v=this._shapes,m=v.indicator;if(m){m.position[1]=f,m.attr("invisible",!1),m.setShape("points",function(t,e,n,r){return t?[[0,-_(e,w(n,0))],[6,0],[0,_(e,w(r-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,r,f,c[1]));var x=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});m.setStyle("fill",x);var S=h.applyTransform(v.indicatorLabelPoint,h.getTransform(m,this.group)),M=v.indicatorLabel;M.attr("invisible",!1);var T=this._applyTransform("left",v.barGroup),A=this._orient;M.setStyle({text:(n||"")+o.formatValueText(e),textVerticalAlign:"horizontal"===A?T:"middle",textAlign:"horizontal"===A?"center":T,x:S[0],y:S[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);r[1]=_(w(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var o=[0,r[1]],l=n.getExtent();t=_(w(o[0],t),o[1]);var c=function(t,e,n){var r=6,o=t.get("hoverLinkDataSize");o&&(r=y(o,e,n,!0)/2);return r}(n,l,o),h=[t-c,t+c],d=y(t,o,l,!0),f=[y(h[0],o,l,!0),y(h[1],o,l,!0)];h[0]<o[0]&&(f[0]=-1/0),h[1]>o[1]&&(f[1]=1/0),e&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",c):f[1]===1/0?this._showIndicator(d,f[0],"> ",c):this._showIndicator(d,d,"≈ ",c));var x=this._hoverLinkDataIndices,S=[];(e||T(n))&&(S=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var M=m.compressBatches(x,S);this._dispatchHighDown("downplay",v.makeHighDownBatch(M[0],n)),this._dispatchHighDown("highlight",v.makeHighDownBatch(M[1],n))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var r=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(r)){var data=r.getData(e.dataType),o=data.get(n.getDataDimension(data),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",v.makeHighDownBatch(t,this.visualMapModel)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,element,e,n){var o=h.getTransform(element,n?null:this.group);return h[r.isArray(t)?"applyTransform":"transformDirection"](t,o,e)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function M(t,cursor,e,n){return new h.Polygon({shape:{points:t},draggable:!!e,cursor:cursor,drift:e,onmousemove:function(t){l.stop(t.event)},ondragend:n})}function T(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function A(t){return"vertical"===t?"ns-resize":"ew-resize"}var I=S;t.exports=I},function(t,e,n){n(7).__DEV__;var r=n(0),o=n(386),l=n(83),c=n(387),h=n(5).reformIntervals,d=o.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){d.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();f[this._mode].call(this),this._resetSelected(t,e);var o=this.option.categories;this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=r.clone(o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=r.map(this._pieceList,(function(t){t=r.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var option=this.option,t={},e=l.listVisualTypes(),n=this.isCategory();function h(t,e,n){return t&&t[e]&&(r.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}r.each(option.pieces,(function(n){r.each(e,(function(e){n.hasOwnProperty(e)&&(t[e]=1)}))})),r.each(t,(function(t,e){var o=0;r.each(this.stateList,(function(t){o|=h(option,t,e)||h(option.target,t,e)}),this),!o&&r.each(this.stateList,(function(t){(option[t]||(option[t]={}))[e]=c.get(e,"inRange"===t?"active":"inactive",n)}))}),this),o.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,o=this._pieceList,l=(e?n:t).selected||{};if(n.selected=l,r.each(o,(function(t,e){var n=this.getSelectedMapKey(t);l.hasOwnProperty(n)||(l[n]=!0)}),this),"single"===n.selectedMode){var c=!1;r.each(o,(function(t,e){var n=this.getSelectedMapKey(t);l[n]&&(c?l[n]=!1:c=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var option=this.option;return option.pieces&&option.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=r.clone(t)},getValueState:function(t){var e=l.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],data=n.getData();data.each(this.getDataDimension(data),(function(e,n){l.findPieceIndex(e,this._pieceList)===t&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],n=[],o=this,l=this._pieceList.slice();if(l.length){var c=l[0].interval[0];c!==-1/0&&l.unshift({interval:[-1/0,c]}),(c=l[l.length-1].interval[1])!==1/0&&l.push({interval:[c,1/0]})}else l.push({interval:[-1/0,1/0]});var h=-1/0;return r.each(l,(function(t){var e=t.interval;e&&(e[0]>h&&d([h,e[0]],"outOfRange"),d(e.slice()),h=e[1])}),this),{stops:e,outerColors:n}}function d(r,l){var c=o.getRepresentValue({interval:r});l||(l=o.getValueState(c));var h=t(c,l);r[0]===-1/0?n[0]=h:r[1]===1/0?n[1]=h:e.push({value:r[0],color:h},{value:r[1],color:h})}}}),f={splitNumber:function(){var t=this.option,e=this._pieceList,n=Math.min(t.precision,20),o=this.getExtent(),l=t.splitNumber;l=Math.max(parseInt(l,10),1),t.splitNumber=l;for(var c=(o[1]-o[0])/l;+c.toFixed(n)!==c&&n<5;)n++;t.precision=n,c=+c.toFixed(n),t.minOpen&&e.push({interval:[-1/0,o[0]],close:[0,0]});for(var d=0,f=o[0];d<l;f+=c,d++){var v=d===l-1?o[1]:f+c;e.push({interval:[f,v],close:[1,1]})}t.maxOpen&&e.push({interval:[o[1],1/0],close:[0,0]}),h(e),r.each(e,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(){var t=this.option;r.each(t.categories,(function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})}),this),v(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;r.each(t.pieces,(function(t,n){r.isObject(t)||(t={value:t});var o={text:"",index:n};if(null!=t.label&&(o.text=t.label),t.hasOwnProperty("value")){var c=o.value=t.value;o.interval=[c,c],o.close=[1,1]}else{for(var h=o.interval=[],d=o.close=[0,0],f=[1,0,1],v=[-1/0,1/0],m=[],y=0;y<2;y++){for(var x=[["gte","gt","min"],["lte","lt","max"]][y],i=0;i<3&&null==h[y];i++)h[y]=t[x[i]],d[y]=f[i],m[y]=2===i;null==h[y]&&(h[y]=v[y])}m[0]&&h[1]===1/0&&(d[0]=0),m[1]&&h[0]===-1/0&&(d[1]=0),h[0]===h[1]&&d[0]&&d[1]&&(o.value=h[0])}o.visual=l.retrieveVisuals(t),e.push(o)}),this),v(t,e),h(e),r.each(e,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function v(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var m=d;t.exports=m},function(t,e,n){var r=n(0),o=n(388),l=n(2),c=n(38).createSymbol,h=n(9),d=n(389),f=o.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),o=e.textStyleModel,c=o.getFont(),d=o.getTextColor(),f=this._getItemAlign(),v=e.itemSize,m=this._getViewData(),y=m.endsText,x=r.retrieve(e.get("showLabel",!0),!y);y&&this._renderEndsText(t,y[0],v,x,f),r.each(m.viewPieceList,(function(o){var h=o.piece,m=new l.Group;m.onclick=r.bind(this._onItemClick,this,h),this._enableHoverLink(m,o.indexInModelPieceList);var y=e.getRepresentValue(h);if(this._createItemSymbol(m,y,[0,0,v[0],v[1]]),x){var _=this.visualMapModel.getValueState(y);m.add(new l.Text({style:{x:"right"===f?-n:v[0]+n,y:v[1]/2,text:h.text,textVerticalAlign:"middle",textAlign:f,textFont:c,textFill:d,opacity:"outOfRange"===_?.5:1}}))}t.add(m)}),this),y&&this._renderEndsText(t,y[1],v,x,f),h.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:d.makeHighDownBatch(n.findTargetDataIndices(e),n)})}t.on("mouseover",r.bind(n,this,"highlight")).on("mouseout",r.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return d.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,text,e,n,r){if(text){var o=new l.Group,c=this.visualMapModel.textStyleModel;o.add(new l.Text({style:{x:n?"right"===r?e[0]:0:e[0]/2,y:e[1]/2,textVerticalAlign:"middle",textAlign:n?r:"center",text:text,textFont:c.getFont(),textFill:c.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=r.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),o=t.get("orient"),l=t.get("inverse");return("horizontal"===o?l:!l)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(c(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,option=e.option,n=r.clone(option.selected),o=e.getSelectedMapKey(t);"single"===option.selectedMode?(n[o]=!0,r.each(n,(function(t,e){n[e]=e===o}))):n[o]=!n[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}});t.exports=f},function(t,e,n){n(978),(0,n(156).registerPainter)("vml",n(979))},function(t,e,n){var r=n(18),o=n(11).applyTransform,l=n(14),c=n(47),h=n(33),d=n(160),f=n(316),v=n(120),m=n(92),y=n(77),x=n(17),_=n(94),w=n(161),S=n(392),M=_.CMD,T=Math.round,A=Math.sqrt,I=Math.abs,C=Math.cos,D=Math.sin,L=Math.max;if(!r.canvasSupported){var k=21600,P=k/2,O=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=k+","+k,t.coordorigin="0,0"},E=function(t,g,b){return"rgb("+[t,g,b].join(",")+")"},N=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},R=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},z=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},B=d.parsePercent,V=function(t,e,n){var r=c.parse(e);n=+n,isNaN(n)&&(n=1),r&&(t.color=E(r[0],r[1],r[2]),t.opacity=n*r[3])},H=function(t,e,style,n){var r="fill"===e,l=t.getElementsByTagName(e)[0];null!=style[e]&&"none"!==style[e]&&(r||!r&&style.lineWidth)?(t[r?"filled":"stroked"]="true",style[e]instanceof w&&R(t,l),l||(l=S.createNode(e)),r?function(t,style,e){var n,r,l=style.fill;if(null!=l)if(l instanceof w){var h,d=0,f=[0,0],v=0,m=1,rect=e.getBoundingRect(),y=rect.width,x=rect.height;if("linear"===l.type){h="gradient";var _=e.transform,S=[l.x*y,l.y*x],M=[l.x2*y,l.y2*x];_&&(o(S,S,_),o(M,M,_));var T=M[0]-S[0],A=M[1]-S[1];(d=180*Math.atan2(T,A)/Math.PI)<0&&(d+=360),d<1e-6&&(d=0)}else{h="gradientradial";S=[l.x*y,l.y*x],_=e.transform;var I=e.scale,C=y,D=x;f=[(S[0]-rect.x)/C,(S[1]-rect.y)/D],_&&o(S,S,_),C/=I[0]*k,D/=I[1]*k;var P=L(C,D);v=0/P,m=2*l.r/P-v}var O=l.colorStops.slice();O.sort((function(t,e){return t.offset-e.offset}));for(var N=O.length,R=[],z=[],i=0;i<N;i++){var B=O[i],H=(n=B.color,r=void 0,r=c.parse(n),[E(r[0],r[1],r[2]),r[3]]);z.push(B.offset*m+v+" "+H[0]),0!==i&&i!==N-1||R.push(H)}if(N>=2){var F=R[0][0],G=R[1][0],W=R[0][1]*style.opacity,j=R[1][1]*style.opacity;t.type=h,t.method="none",t.focus="100%",t.angle=d,t.color=F,t.color2=G,t.colors=z.join(","),t.opacity=j,t.opacity2=W}"radial"===h&&(t.focusposition=f.join(","))}else V(t,l,style.opacity)}(l,style,n):function(t,style){style.lineDash&&(t.dashstyle=style.lineDash.join(" ")),null==style.stroke||style.stroke instanceof w||V(t,style.stroke,style.opacity)}(l,style),N(t,l)):(t[r?"filled":"stroked"]="false",R(t,l))},F=[[],[],[]];x.prototype.brushVML=function(t){var style=this.style,e=this._vmlEl;e||(e=S.createNode("shape"),O(e),this._vmlEl=e),H(e,"fill",style,this),H(e,"stroke",style,this);var n=this.transform,r=null!=n,l=e.getElementsByTagName("stroke")[0];if(l){var c=style.lineWidth;if(r&&!style.strokeNoScale){var h=n[0]*n[3]-n[1]*n[2];c*=A(I(h))}l.weight=c+"px"}var path=this.path||(this.path=new _);this.__dirtyPath&&(path.beginPath(),path.subPixelOptimize=!1,this.buildPath(path,this.shape),path.toStatic(),this.__dirtyPath=!1),e.path=function(path,t){var e,n,r,i,l,c,h=M.M,d=M.C,f=M.L,v=M.A,m=M.Q,y=[],data=path.data,x=path.len();for(i=0;i<x;){switch(n="",e=0,r=data[i++]){case h:n=" m ",e=1,l=data[i++],c=data[i++],F[0][0]=l,F[0][1]=c;break;case f:n=" l ",e=1,l=data[i++],c=data[i++],F[0][0]=l,F[0][1]=c;break;case m:case d:n=" c ",e=3;var _,w,S=data[i++],I=data[i++],L=data[i++],O=data[i++];r===m?(_=L,w=O,L=(L+2*S)/3,O=(O+2*I)/3,S=(l+2*S)/3,I=(c+2*I)/3):(_=data[i++],w=data[i++]),F[0][0]=S,F[0][1]=I,F[1][0]=L,F[1][1]=O,F[2][0]=_,F[2][1]=w,l=_,c=w;break;case v:var E=0,N=0,R=1,z=1,B=0;t&&(E=t[4],N=t[5],R=A(t[0]*t[0]+t[1]*t[1]),z=A(t[2]*t[2]+t[3]*t[3]),B=Math.atan2(-t[1]/z,t[0]/R));var V=data[i++],H=data[i++],G=data[i++],W=data[i++],j=data[i++]+B,U=data[i++]+j+B;i++;var Z=data[i++],Y=V+C(j)*G,X=H+D(j)*W,$=(S=V+C(U)*G,I=H+D(U)*W,Z?" wa ":" at ");Math.abs(Y-S)<1e-4&&(Math.abs(U-j)>.01?Z&&(Y+=.0125):Math.abs(X-H)<1e-4?Z&&Y<V||!Z&&Y>V?I-=.0125:I+=.0125:Z&&X<H||!Z&&X>H?S+=.0125:S-=.0125),y.push($,T(((V-G)*R+E)*k-P),",",T(((H-W)*z+N)*k-P),",",T(((V+G)*R+E)*k-P),",",T(((H+W)*z+N)*k-P),",",T((Y*R+E)*k-P),",",T((X*z+N)*k-P),",",T((S*R+E)*k-P),",",T((I*z+N)*k-P)),l=S,c=I;break;case M.R:var K=F[0],J=F[1];K[0]=data[i++],K[1]=data[i++],J[0]=K[0]+data[i++],J[1]=K[1]+data[i++],t&&(o(K,K,t),o(J,J,t)),K[0]=T(K[0]*k-P),J[0]=T(J[0]*k-P),K[1]=T(K[1]*k-P),J[1]=T(J[1]*k-P),y.push(" m ",K[0],",",K[1]," l ",J[0],",",K[1]," l ",J[0],",",J[1]," l ",K[0],",",J[1]);break;case M.Z:y.push(" x ")}if(e>0){y.push(n);for(var Q=0;Q<e;Q++){var p=F[Q];t&&o(p,p,t),y.push(T(p[0]*k-P),",",T(p[1]*k-P),Q<e-1?",":"")}}}return y.join("")}(path,this.transform),e.style.zIndex=z(this.zlevel,this.z,this.z2),N(t,e),null!=style.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},x.prototype.onRemove=function(t){R(t,this._vmlEl),this.removeRectText(t)},x.prototype.onAdd=function(t){N(t,this._vmlEl),this.appendRectText(t)};m.prototype.brushVML=function(t){var e,n,img,style=this.style,image=style.image;if("object"==typeof(img=image)&&img.tagName&&"IMG"===img.tagName.toUpperCase()){var r=image.src;if(r===this._imageSrc)e=this._imageWidth,n=this._imageHeight;else{var l=image.runtimeStyle,c=l.width,h=l.height;l.width="auto",l.height="auto",e=image.width,n=image.height,l.width=c,l.height=h,this._imageSrc=r,this._imageWidth=e,this._imageHeight=n}image=r}else image===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight);if(image){var d=style.x||0,f=style.y||0,v=style.width,m=style.height,y=style.sWidth,x=style.sHeight,_=style.sx||0,w=style.sy||0,M=y&&x,I=this._vmlEl;I||(I=S.doc.createElement("div"),O(I),this._vmlEl=I);var C,D=I.style,k=!1,P=1,E=1;if(this.transform&&(C=this.transform,P=A(C[0]*C[0]+C[1]*C[1]),E=A(C[2]*C[2]+C[3]*C[3]),k=C[1]||C[2]),k){var R=[d,f],B=[d+v,f],V=[d,f+m],H=[d+v,f+m];o(R,R,C),o(B,B,C),o(V,V,C),o(H,H,C);var F=L(R[0],B[0],V[0],H[0]),G=L(R[1],B[1],V[1],H[1]),W=[];W.push("M11=",C[0]/P,",","M12=",C[2]/E,",","M21=",C[1]/P,",","M22=",C[3]/E,",","Dx=",T(d*P+C[4]),",","Dy=",T(f*E+C[5])),D.padding="0 "+T(F)+"px "+T(G)+"px 0",D.filter="progid:DXImageTransform.Microsoft.Matrix("+W.join("")+", SizingMethod=clip)"}else C&&(d=d*P+C[4],f=f*E+C[5]),D.filter="",D.left=T(d)+"px",D.top=T(f)+"px";var j=this._imageEl,U=this._cropEl;j||(j=S.doc.createElement("div"),this._imageEl=j);var Z=j.style;if(M){if(e&&n)Z.width=T(P*e*v/y)+"px",Z.height=T(E*n*m/x)+"px";else{var Y=new Image,X=this;Y.onload=function(){Y.onload=null,e=Y.width,n=Y.height,Z.width=T(P*e*v/y)+"px",Z.height=T(E*n*m/x)+"px",X._imageWidth=e,X._imageHeight=n,X._imageSrc=image},Y.src=image}U||((U=S.doc.createElement("div")).style.overflow="hidden",this._cropEl=U);var $=U.style;$.width=T((v+_*v/y)*P),$.height=T((m+w*m/x)*E),$.filter="progid:DXImageTransform.Microsoft.Matrix(Dx="+-_*v/y*P+",Dy="+-w*m/x*E+")",U.parentNode||I.appendChild(U),j.parentNode!==U&&U.appendChild(j)}else Z.width=T(P*v)+"px",Z.height=T(E*m)+"px",I.appendChild(j),U&&U.parentNode&&(I.removeChild(U),this._cropEl=null);var K="",J=style.opacity;J<1&&(K+=".Alpha(opacity="+T(100*J)+") "),K+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+image+", SizingMethod=scale)",Z.filter=K,I.style.zIndex=z(this.zlevel,this.z,this.z2),N(t,I),null!=style.text&&this.drawRectText(t,this.getBoundingRect())}},m.prototype.onRemove=function(t){R(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},m.prototype.onAdd=function(t){N(t,this._vmlEl),this.appendRectText(t)};var G,W={},j=0,U=document.createElement("div");h.$override("measureText",(function(text,t){var e=S.doc;G||((G=e.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",S.doc.body.appendChild(G));try{G.style.font=t}catch(t){}return G.innerHTML="",G.appendChild(e.createTextNode(text)),{width:G.offsetWidth}}));for(var Z=new l,Y=function(t,rect,e,n){var style=this.style;this.__dirty&&d.normalizeTextStyle(style,!0);var text=style.text;if(null!=text&&(text+=""),text){if(style.rich){var r=h.parseRichText(text,style);text=[];for(var i=0;i<r.lines.length;i++){for(var l=r.lines[i].tokens,c=[],f=0;f<l.length;f++)c.push(l[f].text);text.push(c.join(""))}text=text.join("\n")}var v,m,y=style.textAlign,x=style.textVerticalAlign,_=function(t){var e=W[t];if(!e){j>100&&(j=0,W={});var n,style=U.style;try{style.font=t,n=style.fontFamily.split(",")[0]}catch(t){}e={style:style.fontStyle||"normal",variant:style.fontVariant||"normal",weight:style.fontWeight||"normal",size:0|parseFloat(style.fontSize||12),family:n||"Microsoft YaHei"},W[t]=e,j++}return e}(style.font),w=_.style+" "+_.variant+" "+_.weight+" "+_.size+'px "'+_.family+'"';e=e||h.getBoundingRect(text,w,y,x,style.textPadding,style.textLineHeight);var M=this.transform;if(M&&!n&&(Z.copy(rect),Z.applyTransform(M),rect=Z),n)v=rect.x,m=rect.y;else{var A=style.textPosition;if(A instanceof Array)v=rect.x+B(A[0],rect.width),m=rect.y+B(A[1],rect.height),y=y||"left";else{var I=this.calculateTextPosition?this.calculateTextPosition({},style,rect):h.calculateTextPosition({},style,rect);v=I.x,m=I.y,y=y||I.textAlign,x=x||I.textVerticalAlign}}v=h.adjustTextX(v,e.width,y),m=h.adjustTextY(m,e.height,x),m+=e.height/2;var C,D,L,k=S.createNode,P=this._textVmlEl;P?D=(C=(L=P.firstChild).nextSibling).nextSibling:(P=k("line"),C=k("path"),D=k("textpath"),L=k("skew"),D.style["v-text-align"]="left",O(P),C.textpathok=!0,D.on=!0,P.from="0 0",P.to="1000 0.05",N(P,L),N(P,C),N(P,D),this._textVmlEl=P);var E=[v,m],R=P.style;M&&n?(o(E,E,M),L.on=!0,L.matrix=M[0].toFixed(3)+","+M[2].toFixed(3)+","+M[1].toFixed(3)+","+M[3].toFixed(3)+",0,0",L.offset=(T(E[0])||0)+","+(T(E[1])||0),L.origin="0 0",R.left="0px",R.top="0px"):(L.on=!1,R.left=T(v)+"px",R.top=T(m)+"px"),D.string=String(text).replace(/&/g,"&amp;").replace(/"/g,"&quot;");try{D.style.font=w}catch(t){}H(P,"fill",{fill:style.textFill,opacity:style.opacity},this),H(P,"stroke",{stroke:style.textStroke,opacity:style.opacity,lineDash:style.lineDash||null},this),P.style.zIndex=z(this.zlevel,this.z,this.z2),N(t,P)}},X=function(t){R(t,this._textVmlEl),this._textVmlEl=null},$=function(t){N(t,this._textVmlEl)},K=[f,v,m,x,y],i=0;i<K.length;i++){var J=K[i].prototype;J.drawRectText=Y,J.removeRectText=X,J.appendRectText=$}y.prototype.brushVML=function(t){var style=this.style;null!=style.text?this.drawRectText(t,{x:style.x||0,y:style.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},y.prototype.onRemove=function(t){this.removeRectText(t)},y.prototype.onAdd=function(t){this.appendRectText(t)}}},function(t,e,n){var r=n(119),o=n(392),l=n(0).each;function c(t){return parseInt(t,10)}function h(t,e){o.initVML(),this.root=t,this.storage=e;var n=document.createElement("div"),r=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",r.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=r,this._vmlViewport=n,this.resize();var l=e.delFromStorage,c=e.addToStorage;e.delFromStorage=function(t){l.call(e,t),t&&t.onRemove&&t.onRemove(r)},e.addToStorage=function(t){t.onAdd&&t.onAdd(r),c.call(e,t)},this._firstPaint=!0}h.prototype={constructor:h,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t.length;i++){var n=t[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!==t||this._height!==e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||c(e.width))-c(e.paddingLeft)-c(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||c(e.height))-c(e.paddingTop)-c(e.paddingBottom)|0}},l(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){var e;h.prototype[t]=(e=t,function(){r('In IE8.0 VML mode painter not support method "'+e+'"')})}));var d=h;t.exports=d},function(t,e,n){n(236),(0,n(156).registerPainter)("svg",n(981))},function(t,e,n){var r=n(237).createElement,o=n(0),l=n(119),c=n(17),h=n(92),d=n(77),f=n(982),v=n(983),m=n(984),y=n(985),x=n(236),_=x.path,w=x.image,S=x.text;function M(t){return parseInt(t,10)}function T(t,e){return e&&t&&e.parentNode!==t}function A(t,e,n){if(T(t,e)&&n){var r=n.nextSibling;r?t.insertBefore(e,r):t.appendChild(e)}}function I(t,e){if(T(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function C(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function D(t){return t.__textSvgEl}function L(t){return t.__svgEl}var k=function(t,e,n,l){this.root=t,this.storage=e,this._opts=n=o.extend({},n||{});var c=r("svg");c.setAttribute("xmlns","http://www.w3.org/2000/svg"),c.setAttribute("version","1.1"),c.setAttribute("baseProfile","full"),c.style.cssText="user-select:none;position:absolute;left:0;top:0;";var h=r("g");c.appendChild(h);var d=r("g");c.appendChild(d),this.gradientManager=new v(l,d),this.clipPathManager=new m(l,d),this.shadowManager=new y(l,d);var f=document.createElement("div");f.style.cssText="overflow:hidden;position:relative",this._svgDom=c,this._svgRoot=d,this._backgroundRoot=h,this._viewport=f,t.appendChild(f),f.appendChild(c),this.resize(n.width,n.height),this._visibleList=[]};k.prototype={constructor:k,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=r("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var i,e,n=this._svgRoot,r=this._visibleList,o=t.length,l=[];for(i=0;i<o;i++){var v=t[i],m=(e=v)instanceof c?_:e instanceof h?w:e instanceof d?S:_,y=L(v)||D(v);v.invisible||(v.__dirty&&(m&&m.brush(v),this.clipPathManager.update(v),v.style&&(this.gradientManager.update(v.style.fill),this.gradientManager.update(v.style.stroke),this.shadowManager.update(y,v)),v.__dirty=!1),l.push(v))}var x,M=f(r,l);for(i=0;i<M.length;i++){if((P=M[i]).removed)for(var T=0;T<P.count;T++){y=L(v=r[P.indices[T]]);var k=D(v);C(n,y),C(n,k)}}for(i=0;i<M.length;i++){var P;if((P=M[i]).added)for(T=0;T<P.count;T++){y=L(v=l[P.indices[T]]),k=D(v);x?A(n,y,x):I(n,y),y?A(n,k,y):x?A(n,k,x):I(n,k),A(n,k,y),x=k||y||x,this.gradientManager.addWithoutUpdate(y||k,v),this.shadowManager.addWithoutUpdate(y||k,v),this.clipPathManager.markUsed(v)}else if(!P.removed)for(T=0;T<P.count;T++){y=L(v=l[P.indices[T]]),k=D(v),y=L(v),k=D(v);this.gradientManager.markUsed(v),this.gradientManager.addWithoutUpdate(y||k,v),this.shadowManager.markUsed(v),this.shadowManager.addWithoutUpdate(y||k,v),this.clipPathManager.markUsed(v),k&&A(n,k,y),x=y||k||x}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=l},_getDefs:function(t){var defs,e=this._svgDom;return 0===(defs=e.getElementsByTagName("defs")).length?t?((defs=e.insertBefore(r("defs"),e.firstChild)).contains||(defs.contains=function(t){var e=defs.children;if(!e)return!1;for(var i=e.length-1;i>=0;--i)if(e[i]===t)return!0;return!1}),defs):null:defs[0]},resize:function(t,e){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var o=n.style;o.width=t+"px",o.height=e+"px";var l=this._svgDom;l.setAttribute("width",t),l.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],l=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var c=this.root,h=document.defaultView.getComputedStyle(c);return(c[r]||M(h[n])||M(c.style[n]))-(M(h[o])||0)-(M(h[l])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"))}},o.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(t){var e;k.prototype[t]=(e=t,function(){l('In SVG mode painter not support method "'+e+'"')})}));var P=k;t.exports=P},function(t,e){function n(){}function r(t,e,n,r){for(var o=0,l=e.length,c=0,h=0;o<l;o++){var component=e[o];if(component.removed){for(d=[],i=h;i<h+component.count;i++)d.push(i);component.indices=d,h+=component.count}else{for(var d=[],i=c;i<c+component.count;i++)d.push(i);component.indices=d,c+=component.count,component.added||(h+=component.count)}}return e}n.prototype={diff:function(t,e,n){n||(n=function(a,b){return a===b}),this.equals=n;var o=this;t=t.slice();var l=(e=e.slice()).length,c=t.length,h=1,d=l+c,f=[{newPos:-1,components:[]}],v=this.extractCommon(f[0],e,t,0);if(f[0].newPos+1>=l&&v+1>=c){for(var m=[],i=0;i<e.length;i++)m.push(i);return[{indices:m,count:e.length}]}function y(){for(var n=-1*h;n<=h;n+=2){var d,v=f[n-1],m=f[n+1],y=(m?m.newPos:0)-n;v&&(f[n-1]=void 0);var x=v&&v.newPos+1<l,_=m&&0<=y&&y<c;if(x||_){if(!x||_&&v.newPos<m.newPos?(d={newPos:(path=m).newPos,components:path.components.slice(0)},o.pushComponent(d.components,void 0,!0)):((d=v).newPos++,o.pushComponent(d.components,!0,void 0)),y=o.extractCommon(d,e,t,n),d.newPos+1>=l&&y+1>=c)return r(o,d.components,e,t);f[n]=d}else f[n]=void 0}var path;h++}for(;h<=d;){var x=y();if(x)return x}},pushComponent:function(t,e,n){var r=t[t.length-1];r&&r.added===e&&r.removed===n?t[t.length-1]={count:r.count+1,added:e,removed:n}:t.push({count:1,added:e,removed:n})},extractCommon:function(t,e,n,r){for(var o=e.length,l=n.length,c=t.newPos,h=c-r,d=0;c+1<o&&h+1<l&&this.equals(e[c+1],n[h+1]);)c++,h++,d++;return d&&t.components.push({count:d}),t.newPos=c,h},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var o=new n;t.exports=function(t,e,n){return o.diff(t,e,n)}},function(t,e,n){var r=n(238),o=n(0),l=n(119),c=n(47);function h(t,e){r.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}o.inherits(h,r),h.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;o.each(["fill","stroke"],(function(r){if(e.style[r]&&("linear"===e.style[r].type||"radial"===e.style[r].type)){var o,l=e.style[r],defs=n.getDefs(!0);l._dom?(o=l._dom,defs.contains(l._dom)||n.addDom(o)):o=n.add(l),n.markUsed(e);var c=o.getAttribute("id");t.setAttribute(r,"url(#"+c+")")}}))}},h.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return l("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},h.prototype.update=function(t){var e=this;r.prototype.update.call(this,t,(function(){var n=t.type,r=t._dom.tagName;"linear"===n&&"linearGradient"===r||"radial"===n&&"radialGradient"===r?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},h.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void l("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,r=n.length;i<r;++i){var o=this.createElement("stop");o.setAttribute("offset",100*n[i].offset+"%");var h=n[i].color;if(h.indexOf(!1)){var d=c.parse(h)[3],f=c.toHex(h);o.setAttribute("stop-color","#"+f),o.setAttribute("stop-opacity",d)}else o.setAttribute("stop-color",n[i].color);e.appendChild(o)}t._dom=e},h.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&r.prototype.markUsed.call(this,e._dom),(e=t.style.stroke)&&e._dom&&r.prototype.markUsed.call(this,e._dom)}};var d=h;t.exports=d},function(t,e,n){var r=n(238),o=n(0),l=n(27);function c(t,e){r.call(this,t,e,"clipPath","__clippath_in_use__")}o.inherits(c,r),c.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var n=this.getTextSvgElement(t);n&&this.updateDom(n,t.__clipPaths,!0),this.markUsed(t)},c.prototype.updateDom=function(t,e,n){if(e&&e.length>0){var r,o,defs=this.getDefs(!0),c=e[0],h=n?"_textDom":"_dom";c[h]?(o=c[h].getAttribute("id"),r=c[h],defs.contains(r)||defs.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(r=this.createElement("clipPath")).setAttribute("id",o),defs.appendChild(r),c[h]=r);var d=this.getSvgProxy(c);if(c.transform&&c.parent.invTransform&&!n){var f=Array.prototype.slice.call(c.transform);l.mul(c.transform,c.parent.invTransform,c.transform),d.brush(c),c.transform=f}else d.brush(c);var v=this.getSvgElement(c);r.innerHTML="",r.appendChild(v.cloneNode()),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(r,e.slice(1),n)}else t&&t.setAttribute("clip-path","none")},c.prototype.markUsed=function(t){var e=this;t.__clipPaths&&o.each(t.__clipPaths,(function(t){t._dom&&r.prototype.markUsed.call(e,t._dom),t._textDom&&r.prototype.markUsed.call(e,t._textDom)}))};var h=c;t.exports=h},function(t,e,n){var r=n(238);function o(t,e){r.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function l(style){return style&&(style.shadowBlur||style.shadowOffsetX||style.shadowOffsetY||style.textShadowBlur||style.textShadowOffsetX||style.textShadowOffsetY)}n(0).inherits(o,r),o.prototype.addWithoutUpdate=function(t,e){if(e&&l(e.style)){var n;if(e._shadowDom)n=e._shadowDom,this.getDefs(!0).contains(e._shadowDom)||this.addDom(n);else n=this.add(e);this.markUsed(e);var r=n.getAttribute("id");t.style.filter="url(#"+r+")"}},o.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},o.prototype.update=function(t,e){if(l(e.style)){var n=this;r.prototype.update.call(this,e,(function(){n.updateDom(e,e._shadowDom)}))}else this.remove(t,e)},o.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},o.prototype.updateDom=function(t,e){var n=e.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var r,o,l,c,style=t.style,h=t.scale&&t.scale[0]||1,d=t.scale&&t.scale[1]||1;if(style.shadowBlur||style.shadowOffsetX||style.shadowOffsetY)r=style.shadowOffsetX||0,o=style.shadowOffsetY||0,l=style.shadowBlur,c=style.shadowColor;else{if(!style.textShadowBlur)return void this.removeDom(e,style);r=style.textShadowOffsetX||0,o=style.textShadowOffsetY||0,l=style.textShadowBlur,c=style.textShadowColor}n.setAttribute("dx",r/h),n.setAttribute("dy",o/d),n.setAttribute("flood-color",c);var f=l/2/h+" "+l/2/d;n.setAttribute("stdDeviation",f),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(l/2*200)+"%"),e.setAttribute("height",Math.ceil(l/2*200)+"%"),e.appendChild(n),t._shadowDom=e},o.prototype.markUsed=function(t){t._shadowDom&&r.prototype.markUsed.call(this,t._shadowDom)};var c=o;t.exports=c}]]);