(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ddaee57a"],{"057f":function(t,e,n){var i=n("fc6a"),o=n("241c").f,a={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(e){return r.slice()}};t.exports.f=function(t){return r&&"[object Window]"==a.call(t)?s(t):o(i(t))}},1276:function(t,e,n){"use strict";var i=n("d784"),o=n("44e7"),a=n("825a"),r=n("1d80"),s=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),h=n("9263"),d=n("d039"),p=[].push,f=Math.min,g=4294967295,m=!d((function(){return!RegExp(g,"y")}));i("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(r(this)),a=void 0===n?g:n>>>0;if(0===a)return[];if(void 0===t)return[i];if(!o(t))return e.call(i,t,a);var s,l,c,u=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,m=new RegExp(t.source,d+"g");while(s=h.call(m,i)){if(l=m.lastIndex,l>f&&(u.push(i.slice(f,s.index)),s.length>1&&s.index<i.length&&p.apply(u,s.slice(1)),c=s[0].length,f=l,u.length>=a))break;m.lastIndex===s.index&&m.lastIndex++}return f===i.length?!c&&m.test("")||u.push(""):u.push(i.slice(f)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=r(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,o,n):i.call(String(o),e,n)},function(t,o){var r=n(i,t,this,o,i!==e);if(r.done)return r.value;var h=a(t),d=String(this),p=s(h,RegExp),v=h.unicode,y=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(m?"y":"g"),x=new p(m?h:"^(?:"+h.source+")",y),b=void 0===o?g:o>>>0;if(0===b)return[];if(0===d.length)return null===u(x,d)?[d]:[];var _=0,w=0,O=[];while(w<d.length){x.lastIndex=m?w:0;var S,M=u(x,m?d:d.slice(w));if(null===M||(S=f(c(x.lastIndex+(m?0:w)),d.length))===_)w=l(d,w,v);else{if(O.push(d.slice(_,w)),O.length===b)return O;for(var I=1;I<=M.length-1;I++)if(O.push(M[I]),O.length===b)return O;w=_=S}}return O.push(d.slice(_)),O}]}),!m)},"159b":function(t,e,n){var i=n("da84"),o=n("fdbc"),a=n("17c2"),r=n("9112");for(var s in o){var l=i[s],c=l&&l.prototype;if(c&&c.forEach!==a)try{r(c,"forEach",a)}catch(u){c.forEach=a}}},"17c2":function(t,e,n){"use strict";var i=n("b727").forEach,o=n("a640"),a=o("forEach");t.exports=a?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},2251:function(t,e,n){"use strict";n("8461")},"25d8":function(t,e,n){"use strict";n("a118")},2762:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"contain"},[n("div",{},[n("el-date-picker",{attrs:{align:"right",type:"date",placeholder:"选择日期","value-format":"yyyy_MM_dd","picker-options":t.pickerOptions},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}}),n("span",{},[t._v("选小时:")]),n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.hour,callback:function(e){t.hour=e},expression:"hour"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("div",{staticClass:"btn",on:{click:t.getThumbnailData}},[t._v("绘制缩略图")]),n("div",{staticClass:"btn",on:{click:function(e){t.drawer_show=!0}}},[t._v("选择属性")]),t._v(" 当前选中的有:"),t._l(t.checkedAttrs,(function(e,i){return n("span",{key:"attr_"+i},[t._v(t._s(e))])})),n("span",[t._v("当前起止时间:")]),n("em",[t._v(t._s(t.startTime)+" -- "+t._s(t.endTime))]),n("div",{staticClass:"btn",on:{click:function(e){return t.move(-1)}}},[t._v("上一分")]),n("div",{staticClass:"btn",on:{click:function(e){return t.move(1)}}},[t._v("下一分")]),n("div",{staticClass:"btn",on:{click:function(e){return t.move(-1,1)}}},[t._v("上一屏")]),n("div",{staticClass:"btn",on:{click:function(e){return t.move(1,1)}}},[t._v("下一屏")])],2),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.thumbLoading,expression:"thumbLoading"}],staticClass:"wrap",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.6)"}},[n("line-chart-thumbnail",{ref:"G_dialog_id",attrs:{id:"G_dialog_id",title:"我是标题",height:"100%","max-size":!0,"show-xaxis":!0,"show-zoom":!0,categoryLen:t.categoryLen,subtext:!0,"trigger-on":"mousemove"}})],1),n("div",{},[t._v("以下为详情数据图")]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.detailsLoading,expression:"detailsLoading"}],staticClass:"wrap2",attrs:{"element-loading-text":"数据加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.6)"}},[n("line-chart-mul",{ref:"G_dialog_id2",attrs:{id:"G_dialog_id2",title:"我是标题",height:"100%","max-size":!0,"show-xaxis":!0,"show-zoom":!0,categoryLen:t.categoryLen2,subtext:!0,"trigger-on":"mousemove"}})],1),n("el-drawer",{attrs:{title:"勾选要查的属性",visible:t.drawer_show,direction:"rtl"},on:{"update:visible":function(e){t.drawer_show=e}}},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")]),n("el-checkbox-group",{on:{change:t.handleCheckedAttrsChange},model:{value:t.checkedAttrs,callback:function(e){t.checkedAttrs=e},expression:"checkedAttrs"}},t._l(t.attrs,(function(e){return n("el-checkbox",{key:e,attrs:{label:e}},[t._v(t._s(e))])})),1)],1)],1)},o=[];n("99af"),n("b0c0"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0");function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function r(t){if(Array.isArray(t))return a(t)}n("a4d3"),n("e01a"),n("d28b"),n("a630");function s(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n("fb6a"),n("25f0");function l(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t){return r(t)||s(t)||l(t)||c()}var h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"chart-container",class:{maxSize:t.maxSize},style:t.getStyle},[n("div",{staticClass:"chart-content-container",class:{"chart-content-fixed":t.isFull}},[n("div",{staticClass:"chart-content",style:t.getStyle,attrs:{id:t.id}})])])},d=[],p=(n("a9e3"),n("4d63"),n("ac1f"),n("5319"),n("22b4")),f=n("1be7"),g=n("7fae"),m=n("6d8b"),v=n("4319");function y(t){return null==t?0:t.length||1}function x(t){return t}var b=function(){function t(t,e,n,i,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||x,this._newKeyGetter=i||x,this.context=o,this._diffModeMultiple="multiple"===a}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var r=i[a],s=n[r],l=y(s);if(l>1){var c=s.shift();1===s.length&&(n[r]=s[0]),this._update&&this._update(c,a)}else 1===l?(n[r]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var r=0;r<o.length;r++){var s=o[r],l=n[s],c=i[s],u=y(l),h=y(c);if(u>1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),i[s]=null;else if(u>1)for(var d=0;d<u;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],a=y(o);if(a>1)for(var r=0;r<a;r++)this._add&&this._add(o[r]);else 1===a&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var r="_ec_"+this[i](t[a],a);if(o||(n[a]=r),e){var s=e[r],l=y(s);0===l?(e[r]=a,o&&n.push(r)):1===l?e[r]=[s,a]:s.push(a)}}},t}(),_=b,w=n("2b17"),O=n("07fd");function S(t){var e={},n=e.encode={},i=Object(m["f"])(),o=[],a=[],r=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};Object(m["j"])(t.dimensions,(function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){0;var c=s.coordDimIndex;M(n,l)[c]=e,s.isExtraCoord||(i.set(l,1),A(s.type)&&(o[0]=e),M(r.encode,l)[c]=s.index),s.defaultTooltip&&a.push(e)}O["i"].each((function(t,e){var i=M(n,e),o=s.otherDims[e];null!=o&&!1!==o&&(i[o]=s.name)}))}));var s=[],l={};i.each((function(t,e){var i=n[e];l[e]=i[0],s=s.concat(i)})),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var c=n.label;c&&c.length&&(o=c.slice());var u=n.tooltip;return u&&u.length?a=u.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,e}function M(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function I(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function A(t){return!("ordinal"===t||"time"===t)}var j,C,T,D,k,L,P,E,N,R,z,G,B,V,F=function(){function t(t){this.otherDims={},null!=t&&m["l"](this,t)}return t}(),H=F,W=n("e0d3"),Z=n("861c"),X=n("b7d9"),Y=n("ec6f"),$=Math.floor,U=m["x"],q=m["F"],K="undefined",J=-1,Q="e\0\0",tt={float:typeof Float64Array===K?Array:Float64Array,int:typeof Int32Array===K?Array:Int32Array,ordinal:Array,number:Array,time:Array},et=typeof Uint32Array===K?Array:Uint32Array,nt=typeof Int32Array===K?Array:Int32Array,it=typeof Uint16Array===K?Array:Uint16Array,ot=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],at=["_extent","_approximateExtent","_rawExtent"],rt=function(){function t(t,e){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=k,t=t||["x","y"];for(var n={},i=[],o={},a=0;a<t.length;a++){var r=t[a],s=m["A"](r)?new H({name:r}):r instanceof H?r:new H(r),l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0);var c=s.otherDims=s.otherDims||{};i.push(l),n[l]=s,s.index=a,s.createInvertedIndices&&(o[l]=[]),0===c.itemName&&(this._nameDimIdx=a,this._nameOrdinalMeta=s.ordinalMeta),0===c.itemId&&(this._idDimIdx=a,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this._dimensionsSummary=S(this),this._invertedIndicesMap=o,this.userOutput=this._dimensionsSummary.userOutput}return t.prototype.getDimension=function(t){return"number"!==typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},t.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},t.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimensionsSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.initData=function(t,e,n){var i=Object(Y["e"])(t)||m["s"](t),o=i?new w["a"](t,this.dimensions.length):t;this._rawData=o;var a=o.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||a===O["g"]||!!o.fillStorage,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=j[a],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=j.arrayRows,this._rawExtent={},this._initDataFromProvider(0,o.count()),o.pure&&(this.hasItemOption=!1)},t.prototype.getProvider=function(){return this._rawData},t.prototype.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i,!0)},t.prototype.appendValues=function(t,e){for(var n=this._storage,i=this.dimensions,o=i.length,a=this._rawExtent,r=this.count(),s=r+Math.max(t.length,e?e.length:0),l=0;l<o;l++){var c=i[l];a[c]||(a[c]=G()),D(n,this._dimensionInfos[c],s,!0)}for(var u=q(i,(function(t){return a[t]})),h=this._storageArr=q(i,(function(t){return n[t]})),d=[],p=r;p<s;p++){for(var f=p-r,g=0;g<o;g++){c=i[g];var m=this._dimValueGetterArrayRows(t[f]||d,c,f,g);h[g][p]=m;var v=u[g];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}e&&(this._nameList[p]=e[f],this._dontMakeIdFromName||N(this,p))}this._rawCount=this._count=s,this._extent={},C(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var i=this._rawData,o=this._storage,a=this.dimensions,r=a.length,s=this._dimensionInfos,l=this._nameList,c=this._idList,u=this._rawExtent,h=i.getSource().sourceFormat,d=h===O["f"],p=0;p<r;p++){var f=a[p];u[f]||(u[f]=G()),D(o,s[f],e,n)}var g=this._storageArr=q(a,(function(t){return o[t]})),m=q(a,(function(t){return u[t]}));if(i.fillStorage)i.fillStorage(t,e,g,m);else for(var v=[],y=t;y<e;y++){v=i.getItem(y,v);for(var x=0;x<r;x++){f=a[x];var b=g[x],_=this._dimValueGetter(v,f,y,x);b[y]=_;var w=m[x];_<w[0]&&(w[0]=_),_>w[1]&&(w[1]=_)}if(d&&!i.pure&&v){var S=v.name;null==l[y]&&null!=S&&(l[y]=Object(W["d"])(S,null));var M=v.id;null==c[y]&&null!=M&&(c[y]=Object(W["d"])(M,null))}this._dontMakeIdFromName||N(this,y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},C(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var o=0;o<i;o++)t[o]=e[o]}else t=new n(e.buffer,0,i)}else{n=T(this);t=new n(this.count());for(o=0;o<t.length;o++)t[o]=o}return t},t.prototype.getByDimIdx=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storageArr[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];return n?n[e]:NaN},t.prototype.getValues=function(t,e){var n=[];m["r"](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},t.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},t.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=G();if(!e)return n;var i,o=this.count(),a=!this._indices;if(a)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var r=i[0],s=i[1],l=0;l<o;l++){var c=this.getRawIndex(l),u=e[c];u<r&&(r=u),u>s&&(s=u)}return i=[r,s],this._extent[t]=i,i},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){U(t)?m["l"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},t.prototype.getMedian=function(t){var e=[];this.each(t,(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n[e];return null==i||isNaN(i)?J:i},t.prototype.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.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;var i=0,o=this._count-1;while(i<=o){var a=(i+o)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;o=a-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._storage,o=i[t],a=[];if(!o)return a;null==n&&(n=1/0);for(var r=1/0,s=-1,l=0,c=0,u=this.count();c<u;c++){var h=this.getRawIndex(c),d=e-o[h],p=Math.abs(d);p<=n&&((p<r||p===r&&d>=0&&s<0)&&(r=p,s=d,l=0),d===s&&(a[l++]=c))}return a.length=l,a},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=E(this,this._nameDimIdx,this._nameOrdinalMeta,e)),null==n&&(n=""),n},t.prototype.getId=function(t){return P(this,this.getRawIndex(t))},t.prototype.each=function(t,e,n,i){var o=this;if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]);var a=n||i||this,r=q(R(t),this.getDimension,this);0;for(var s=r.length,l=q(r,(function(t){return o._dimensionInfos[t].index})),c=this._storageArr,u=0,h=this.count();u<h;u++){var d=this.getRawIndex(u);switch(s){case 0:e.call(a,u);break;case 1:e.call(a,c[l[0]][d],u);break;case 2:e.call(a,c[l[0]][d],c[l[1]][d],u);break;default:for(var p=0,f=[];p<s;p++)f[p]=c[l[p]][d];f[p]=u,e.apply(a,f)}}}},t.prototype.filterSelf=function(t,e,n,i){var o=this;if(this._count){"function"===typeof t&&(i=n,n=e,e=t,t=[]);var a=n||i||this,r=q(R(t),this.getDimension,this);0;for(var s=this.count(),l=T(this),c=new l(s),u=[],h=r.length,d=0,p=q(r,(function(t){return o._dimensionInfos[t].index})),f=p[0],g=this._storageArr,m=0;m<s;m++){var v=void 0,y=this.getRawIndex(m);if(0===h)v=e.call(a,m);else if(1===h){var x=g[f][y];v=e.call(a,x,m)}else{for(var b=0;b<h;b++)u[b]=g[p[b]][y];u[b]=m,v=e.apply(a,u)}v&&(c[d++]=y)}return d<s&&(this._indices=c),this._count=d,this._extent={},this.getRawIndex=this._indices?L:k,this}},t.prototype.selectRange=function(t){var e=this,n=this._count;if(n){var i=[];for(var o in t)t.hasOwnProperty(o)&&i.push(o);0;var a=i.length;if(a){var r=this.count(),s=T(this),l=new s(r),c=0,u=i[0],h=q(i,(function(t){return e._dimensionInfos[t].index})),d=t[u][0],p=t[u][1],f=this._storageArr,g=!1;if(!this._indices){var m=0;if(1===a){for(var v=f[h[0]],y=0;y<n;y++){var x=v[y];(x>=d&&x<=p||isNaN(x))&&(l[c++]=m),m++}g=!0}else if(2===a){v=f[h[0]];var b=f[h[1]],_=t[i[1]][0],w=t[i[1]][1];for(y=0;y<n;y++){x=v[y];var O=b[y];(x>=d&&x<=p||isNaN(x))&&(O>=_&&O<=w||isNaN(O))&&(l[c++]=m),m++}g=!0}}if(!g)if(1===a)for(y=0;y<r;y++){var S=this.getRawIndex(y);x=f[h[0]][S];(x>=d&&x<=p||isNaN(x))&&(l[c++]=S)}else for(y=0;y<r;y++){for(var M=!0,I=(S=this.getRawIndex(y),0);I<a;I++){var A=i[I];x=f[h[I]][S];(x<t[A][0]||x>t[A][1])&&(M=!1)}M&&(l[c++]=this.getRawIndex(y))}return c<r&&(this._indices=l),this._count=c,this._extent={},this.getRawIndex=this._indices?L:k,this}}},t.prototype.mapArray=function(t,e,n,i){"function"===typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var o=[];return this.each(t,(function(){o.push(e&&e.apply(this,arguments))}),n),o},t.prototype.map=function(t,e,n,i){var o=n||i||this,a=q(R(t),this.getDimension,this);var r=z(this,a),s=r._storage;r._indices=this._indices,r.getRawIndex=r._indices?L:k;for(var l=[],c=a.length,u=this.count(),h=[],d=r._rawExtent,p=0;p<u;p++){for(var f=0;f<c;f++)h[f]=this.get(a[f],p);h[c]=p;var g=e&&e.apply(o,h);if(null!=g){"object"!==typeof g&&(l[0]=g,g=l);for(var m=this.getRawIndex(p),v=0;v<g.length;v++){var y=a[v],x=g[v],b=d[y],_=s[y];_&&(_[m]=x),x<b[0]&&(b[0]=x),x>b[1]&&(b[1]=x)}}}return r},t.prototype.downSample=function(t,e,n,i){for(var o=z(this,[t]),a=o._storage,r=[],s=$(1/e),l=a[t],c=this.count(),u=o._rawExtent[t],h=new(T(this))(c),d=0,p=0;p<c;p+=s){s>c-p&&(s=c-p,r.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);r[f]=l[g]}var m=n(r),v=this.getRawIndex(Math.min(p+i(r,m)||0,c-1));l[v]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),h[d++]=v}return o._count=d,o._indices=h,o.getRawIndex=L,o},t.prototype.lttbDownSample=function(t,e){var n,i,o,a=z(this,[]),r=a._storage,s=r[t],l=this.count(),c=new(T(this))(l),u=0,h=$(1/e),d=this.getRawIndex(0);c[u++]=d;for(var p=1;p<l-1;p+=h){for(var f=Math.min(p+h,l-1),g=Math.min(p+2*h,l),m=(g+f)/2,v=0,y=f;y<g;y++){var x=this.getRawIndex(y),b=s[x];isNaN(b)||(v+=b)}v/=g-f;var _=p,w=Math.min(p+h,l),O=p-1,S=s[d];n=-1,o=_;for(y=_;y<w;y++){x=this.getRawIndex(y),b=s[x];isNaN(b)||(i=Math.abs((O-m)*(b-S)-(O-y)*(v-S)),i>n&&(n=i,o=x))}c[u++]=o,d=o}return c[u++]=this.getRawIndex(l-1),a._count=u,a._indices=c,a.getRawIndex=L,a},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new v["a"](n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new _(t?t.getIndices():[],this.getIndices(),(function(e){return P(t,e)}),(function(t){return P(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},U(t)?m["l"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var o=i[e];return null==o&&(o=this.getVisual(e),m["r"](o)?o=o.slice():U(o)&&(o=m["l"]({},o)),i[e]=o),o},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,U(e)?m["l"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(U(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?m["l"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var i=Object(Z["a"])(e);i.dataIndex=t,i.dataType=this.dataType,i.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(B,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){m["j"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){if(!e){var n=q(this.dimensions,this.getDimensionInfo,this);e=new t(n,this.hostModel)}if(e._storage=this._storage,e._storageArr=this._storageArr,V(e,this),this._indices){var i=this._indices.constructor;if(i===Array){var o=this._indices.length;e._indices=new i(o);for(var a=0;a<o;a++)e._indices[a]=this._indices[a]}else e._indices=new i(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?L:k,e},t.prototype.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(m["P"](arguments)))})},t.internalField=function(){function e(t,e,n,i){return Object(X["d"])(t[i],this._dimensionInfos[e])}function n(t){var e=t.constructor;return e===Array?t.slice():new e(t)}j={arrayRows:e,objectRows:function(t,e,n,i){return Object(X["d"])(t[e],this._dimensionInfos[e])},keyedColumns:e,original:function(t,e,n,i){var o=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Object(W["k"])(t)&&(this.hasItemOption=!0),Object(X["d"])(o instanceof Array?o[i]:o,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},C=function(t){var e=t._invertedIndicesMap;m["j"](e,(function(n,i){var o=t._dimensionInfos[i],a=o.ordinalMeta;if(a){n=e[i]=new nt(a.categories.length);for(var r=0;r<n.length;r++)n[r]=J;for(r=0;r<t._count;r++)n[t.get(i,r)]=r}}))},E=function(t,e,n,i){var o,a=t._storageArr[e];return a&&(o=a[i],n&&n.categories.length&&(o=n.categories[o])),Object(W["d"])(o,null)},T=function(t){return t._rawCount>65535?et:it},D=function(t,e,n,i){var o=tt[e.type],a=e.name;if(i){var r=t[a],s=r&&r.length;if(s!==n){for(var l=new o(n),c=0;c<s;c++)l[c]=r[c];t[a]=l}}else t[a]=new o(n)},k=function(t){return t},L=function(t){return t<this._count&&t>=0?this._indices[t]:-1},P=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=E(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n=Q+e),n},R=function(t){return m["r"](t)||(t=null!=t?[t]:[]),t},function(t,e){for(var n=0;n<e.length;n++)t._dimensionInfos[e[n]]||console.error("Unkown dimension "+e[n])},z=function(e,i){var o=e.dimensions,a=new t(q(o,e.getDimensionInfo,e),e.hostModel);V(a,e);for(var r=a._storage={},s=e._storage,l=a._storageArr=[],c=0;c<o.length;c++){var u=o[c];s[u]&&(m["p"](i,u)>=0?(r[u]=n(s[u]),a._rawExtent[u]=G(),a._extent[u]=null):r[u]=s[u],l.push(r[u]))}return a},G=function(){return[1/0,-1/0]},B=function(t){var e=Object(Z["a"])(t),n=Object(Z["a"])(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},V=function(t,e){m["j"](ot.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,m["j"](at,(function(n){t[n]=m["d"](e[n])})),t._calculationInfo=m["l"]({},e._calculationInfo)},N=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,r=n[e],s=i[e];if(null==r&&null!=o&&(n[e]=r=E(t,o,t._nameOrdinalMeta,e)),null==s&&null!=a&&(i[e]=s=E(t,a,t._idOrdinalMeta,e)),null==s&&null!=r){var l=t._nameRepeatCount,c=l[r]=(l[r]||0)+1;s=r,c>1&&(s+="__ec__"+c),i[e]=s}}}(),t}(),st=rt,lt=n("0f99");function ct(t,e,n){Object(Y["e"])(e)||(e=Object(Y["c"])(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),o=Object(m["f"])(),a=Object(m["f"])(),r=[],s=ut(e,t,i,n.dimCount),l=0;l<s;l++){var c=i[l],u=i[l]=Object(m["l"])({},Object(m["x"])(c)?c:{name:c}),h=u.name,d=r[l]=new H;null!=h&&null==o.get(h)&&(d.name=d.displayName=h,o.set(h,l)),null!=u.type&&(d.type=u.type),null!=u.displayName&&(d.displayName=u.displayName)}var p=n.encodeDef;!p&&n.encodeDefaulter&&(p=n.encodeDefaulter(e,s));var f=Object(m["f"])(p);f.each((function(t,e){var n=Object(W["o"])(t).slice();if(1===n.length&&!Object(m["A"])(n[0])&&n[0]<0)f.set(e,!1);else{var i=f.set(e,[]);Object(m["j"])(n,(function(t,n){var a=Object(m["A"])(t)?o.get(t):t;null!=a&&a<s&&(i[n]=a,v(r[a],e,n))}))}}));var g=0;function v(t,e,n){null!=O["i"].get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}Object(m["j"])(t,(function(t){var e,n,i,o;if(Object(m["A"])(t))e=t,o={};else{o=t,e=o.name;var a=o.ordinalMeta;o.ordinalMeta=null,o=Object(m["d"])(o),o.ordinalMeta=a,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var s=f.get(e);if(!1!==s){if(s=Object(W["o"])(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){while(g<r.length&&null!=r[g].coordDim)g++;g<r.length&&s.push(g++)}Object(m["j"])(s,(function(t,a){var s=r[t];if(v(Object(m["i"])(s,o),e,a),null==s.name&&n){var l=n[a];!Object(m["x"])(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&Object(m["i"])(s.otherDims,i)}))}}));var y=n.generateCoord,x=n.generateCoordCount,b=null!=x;x=y?x||1:0;for(var _=y||"value",w=0;w<s;w++){d=r[w]=r[w]||new H;var S=d.coordDim;null==S&&(d.coordDim=ht(_,a,b),d.coordDimIndex=0,(!y||x<=0)&&(d.isExtraCoord=!0),x--),null==d.name&&(d.name=ht(d.coordDim,o,!1)),null!=d.type||Object(lt["b"])(e,w)!==lt["a"].Must&&(!d.isExtraCoord||null==d.otherDims.itemName&&null==d.otherDims.seriesName)||(d.type="ordinal")}return r}function ut(t,e,n,i){var o=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(m["j"])(e,(function(t){var e;Object(m["x"])(t)&&(e=t.dimsDef)&&(o=Math.max(o,e.length))})),o}function ht(t,e,n){if(n||null!=e.get(t)){var i=0;while(null!=e.get(t+i))i++;t+=i}return e.set(t,!0),t}var dt=ct;function pt(t,e){return e=e||{},dt(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}var ft=n("1f39"),gt=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(m["f"])(),this.categoryAxisMap=Object(m["f"])(),this.coordSysName=t}return t}();function mt(t){var e=t.get("coordinateSystem"),n=new gt(e),i=vt[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var vt={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",W["b"]).models[0],a=t.getReferringComponents("yAxis",W["b"]).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),yt(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),yt(a)&&(i.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var o=t.getReferringComponents("singleAxis",W["b"]).models[0];e.coordSysDims=["single"],n.set("single",o),yt(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents("polar",W["b"]).models[0],a=o.findAxisModel("radiusAxis"),r=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",r),yt(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),yt(r)&&(i.set("angle",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=a.dimensions.slice();Object(m["j"])(a.parallelAxisIndex,(function(t,a){var s=o.getComponent("parallelAxis",t),l=r[a];n.set(l,s),yt(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=a))}))}};function yt(t){return"category"===t.get("type")}function xt(t,e,n){n=n||{};var i,o,a,r,s=n.byIndex,l=n.stackedCoordDimension,c=!(!t||!t.get("stack"));if(Object(m["j"])(e,(function(t,n){Object(m["A"])(t)&&(e[n]=t={name:t}),c&&!t.isExtraCoord&&(s||i||!t.ordinalMeta||(i=t),o||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(o=t))})),!o||s||i||(s=!0),o){a="__\0ecstackresult",r="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var u=o.coordDim,h=o.type,d=0;Object(m["j"])(e,(function(t){t.coordDim===u&&d++})),e.push({name:a,coordDim:u,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:r,coordDim:r,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:s,stackedOverDimension:r,stackResultDimension:a}}function bt(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function _t(t,e){return bt(t,e)?t.getCalculationInfo("stackResultDimension"):e}function wt(t,e,n){n=n||{},Object(Y["e"])(t)||(t=Object(Y["c"])(t));var i,o=e.get("coordinateSystem"),a=ft["a"].get(o),r=mt(e);r&&r.coordSysDims&&(i=m["F"](r.coordSysDims,(function(t){var e={name:t},n=r.axisMap.get(t);if(n){var i=n.get("type");e.type=I(i)}return e}))),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]);var s,l,c=n.useEncodeDefaulter,u=pt(t,{coordDimensions:i,generateCoord:n.generateCoord,encodeDefaulter:m["u"](c)?c:c?m["h"](lt["c"],i,e):null});r&&m["j"](u,(function(t,e){var i=t.coordDim,o=r.categoryAxisMap.get(i);o&&(null==s&&(s=e),t.ordinalMeta=o.getOrdinalMeta(),n.createInvertedIndices&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(l=!0)})),l||null==s||(u[s].otherDims.itemName=0);var h=xt(e,u),d=new st(u,e);d.setCalculationInfo(h);var p=null!=s&&Ot(t)?function(t,e,n,i){return i===s?n:this.defaultDimValueGetter(t,e,n,i)}:null;return d.hasItemOption=!1,d.initData(t,null,p),d}function Ot(t){if(t.sourceFormat===O["f"]){var e=St(t.data||[]);return null!=e&&!m["r"](Object(W["g"])(e))}}function St(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var Mt=wt,It=n("4f85"),At=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.legendSymbol="line",n}return Object(g["a"])(e,t),e.prototype.getInitialData=function(t){return Mt(this.getSource(),this,{useEncodeDefaulter:!0})},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},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},e}(It["a"]),jt=At,Ct=n("2dc5"),Tt=n("2306"),Dt=n("a15a"),kt=n("7d6c"),Lt=n("3842");function Pt(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=Object(w["e"])(t,e,n[0]);return null!=o?o+"":null}if(i){for(var a=[],r=0;r<n.length;r++)a.push(Object(w["e"])(t,e,n[r]));return a.join(" ")}}function Et(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(m["r"])(e))return e+"";for(var i=[],o=0;o<n.length;o++){var a=t.getDimensionInfo(n[o]);a&&i.push(e[a.index])}return i.join(" ")}var Nt=n("7837"),Rt=n("0da8"),zt=function(t){function e(e,n,i,o){var a=t.call(this)||this;return a.updateData(e,n,i,o),a}return Object(g["a"])(e,t),e.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();var a=Object(Dt["a"])(t,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=Gt,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(kt["l"])(this.childAt(0))},e.prototype.downplay=function(){Object(kt["u"])(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,n,i,o){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",r=t.hostModel,s=e.getSymbolSize(t,n),l=a!==this._symbolType,c=o&&o.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):Tt["updateProps"](h,d,r,n)}if(this._updateCommon(t,n,s,i,o),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Tt["initProps"](h,d,r,n)}}c&&this.childAt(0).stopAnimation("remove"),this._seriesModel=r},e.prototype._updateCommon=function(t,e,n,i,o){var a,r,s,l,c,u,h,d,p,f=this.childAt(0),g=t.hostModel;if(i&&(a=i.emphasisItemStyle,r=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,u=i.symbolOffset,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");a=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),r=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),c=y.get("blurScope"),u=v.getShallow("symbolOffset"),h=Object(Nt["d"])(v),d=y.getShallow("scale"),p=v.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(x||0)*Math.PI/180||0),u&&(f.x=Object(Lt["l"])(u[0],n[0]),f.y=Object(Lt["l"])(u[1],n[1])),p&&f.attr("cursor",p);var b=t.getItemVisual(e,"style"),_=b.fill;if(f instanceof Rt["a"]){var w=f.style;f.useStyle(Object(m["l"])({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle(Object(m["l"])({},b)):f.useStyle(b),f.style.decal=null,f.setColor(_,o&&o.symbolInnerColor),f.style.strokeNoScale=!0;var O=t.getItemVisual(e,"liftZ"),S=this._z2;null!=O?null==S&&(this._z2=f.z2,f.z2+=O):null!=S&&(f.z2=S,this._z2=null);var M=o&&o.useNameLabel;function I(e){return M?t.getName(e):Pt(t,e)}Object(Nt["f"])(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:I,inheritColor:_,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=f.ensureState("emphasis");if(A.style=a,f.ensureState("select").style=s,f.ensureState("blur").style=r,d){var j=Math.max(1.1,3/this._sizeY);A.scaleX=this._sizeX*j,A.scaleY=this._sizeY*j}this.setSymbolScale(1),Object(kt["j"])(this,l,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,o=Object(Z["a"])(this).dataIndex,a=e&&e.animation;if(this.silent=n.silent=!0,e&&e.fadeLabel){var r=n.getTextContent();r&&Tt["removeElement"](r,{style:{opacity:0}},i,{dataIndex:o,removeOpt:a,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Tt["removeElement"](n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]},e}(Ct["a"]);function Gt(t,e){this.parent.drift(t,e)}var Bt=zt;function Vt(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Ft(t){return null==t||Object(m["x"])(t)||(t={isIgnore:t}),t||{}}function Ht(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverScale:n.get("scale"),labelStatesModels:Object(Nt["d"])(e),cursorStyle:e.get("cursor")}}var Wt=function(){function t(t){this.group=new Ct["a"],this._SymbolCtor=t||Bt}return t.prototype.updateData=function(t,e){e=Ft(e);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,r=e.disableAnimation,s=Ht(t),l={disableAnimation:r},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(i){var o=c(i);if(Vt(t,o,i,e)){var r=new a(t,i,s,l);r.setPosition(o),t.setItemGraphicEl(i,r),n.add(r)}})).update((function(u,h){var d=o.getItemGraphicEl(h),p=c(u);if(Vt(t,p,u,e)){if(d){d.updateData(t,u,s,l);var f={x:p[0],y:p[1]};r?d.attr(f):Tt["updateProps"](d,f,i)}else d=new a(t,u),d.setPosition(p);n.add(d),t.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}))})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.isPersistent=function(){return!0},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ht(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=Ft(n);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(Vt(e,a,o,n)){var r=new this._SymbolCtor(e,o,this._seriesScope);r.traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r)}}},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()},t}(),Zt=Wt;function Xt(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),a=Yt(o,n),r=i.dim,s=o.dim,l=e.mapDimension(s),c=e.mapDimension(r),u="x"===s||"radius"===s?1:0,h=Object(m["F"])(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return bt(e,h[0])&&(d=!0,h[0]=p),bt(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:r,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Yt(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function $t(t,e,n,i){var o=NaN;t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart);var a=t.baseDataOffset,r=[];return r[a]=n.get(t.baseDim,i),r[1-a]=o,e.dataToPoint(r)}var Ut="undefined"!==typeof Float32Array,qt=Ut?Float32Array:Array;function Kt(t){return Object(m["r"])(t)?Ut?new Float32Array(t):t:new qt(t)}function Jt(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}function Qt(t,e,n,i,o,a,r,s){for(var l=Jt(t,e),c=[],u=[],h=[],d=[],p=[],f=[],g=[],m=Xt(o,e,r),v=Xt(a,t,s),y=t.getLayout("points")||[],x=e.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],w=!0,O=void 0,S=void 0;switch(_.cmd){case"=":O=2*_.idx,S=2*_.idx1;var M=y[O],I=y[O+1],A=x[S],j=x[S+1];(isNaN(M)||isNaN(I))&&(M=A,I=j),c.push(M,I),u.push(A,j),h.push(n[O],n[O+1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var C=_.idx,T=m.dataDimsForPoint,D=o.dataToPoint([e.get(T[0],C),e.get(T[1],C)]);S=2*C,c.push(D[0],D[1]),u.push(x[S],x[S+1]);var k=$t(m,o,e,C);h.push(k[0],k[1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(C));break;case"-":var L=_.idx,P=t.getRawIndex(L),E=v.dataDimsForPoint;if(O=2*L,P!==L){var N=a.dataToPoint([t.get(E[0],L),t.get(E[1],L)]),R=$t(v,a,t,L);c.push(y[O],y[O+1]),u.push(N[0],N[1]),h.push(n[O],n[O+1]),d.push(R[0],R[1]),g.push(P)}else w=!1}w&&(p.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var z=c.length,G=Kt(z),B=Kt(z),V=Kt(z),F=Kt(z),H=[];for(b=0;b<f.length;b++){var W=f[b],Z=2*b,X=2*W;G[Z]=c[X],G[Z+1]=c[X+1],B[Z]=u[X],B[Z+1]=u[X+1],V[Z]=h[X],V[Z+1]=h[X+1],F[Z]=d[X],F[Z+1]=d[X+1],H[b]=p[W]}return{current:G,next:B,stackedOnCurrent:V,stackedOnNext:F,status:H}}var te=n("48a9"),ee=n("76a5"),ne=n("cbe5"),ie=n("20c8"),oe=n("4a3f"),ae=Math.min,re=Math.max;function se(t,e){return isNaN(t)||isNaN(e)}function le(t,e,n,i,o,a,r,s,l){for(var c,u,h,d,p,f,g=n,m=0;m<i;m++){var v=e[2*g],y=e[2*g+1];if(g>=o||g<0)break;if(se(v,y)){if(l){g+=a;continue}break}if(g===n)t[a>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var x=v-c,b=y-u;if(x*x+b*b<.5){g+=a;continue}if(r>0){var _=g+a,w=e[2*_],O=e[2*_+1],S=m+1;if(l)while(se(w,O)&&S<i)S++,_+=a,w=e[2*_],O=e[2*_+1];var M=.5,I=0,A=0,j=void 0,C=void 0;if(S>=i||se(w,O))p=v,f=y;else{I=w-c,A=O-u;var T=v-c,D=w-v,k=y-u,L=O-y,P=void 0,E=void 0;"x"===s?(P=Math.abs(T),E=Math.abs(D),p=v-P*r,f=y,j=v+P*r,C=y):"y"===s?(P=Math.abs(k),E=Math.abs(L),p=v,f=y-P*r,j=v,C=y+P*r):(P=Math.sqrt(T*T+k*k),E=Math.sqrt(D*D+L*L),M=E/(E+P),p=v-I*r*(1-M),f=y-A*r*(1-M),j=v+I*r*M,C=y+A*r*M,j=ae(j,re(w,v)),C=ae(C,re(O,y)),j=re(j,ae(w,v)),C=re(C,ae(O,y)),I=j-v,A=C-y,p=v-I*P/E,f=y-A*P/E,p=ae(p,re(c,v)),f=ae(f,re(u,y)),p=re(p,ae(c,v)),f=re(f,ae(u,y)),I=v-p,A=y-f,j=v+I*E/P,C=y+A*E/P)}t.bezierCurveTo(h,d,p,f,v,y),h=j,d=C}else t.lineTo(v,y)}c=v,u=y,g+=a}return m}var ce=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ue=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(g["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ce},e.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;o>0;o--)if(!se(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!se(n[2*i],n[2*i+1]))break}while(i<o)i+=le(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path,a=o.data,r=ie["a"].CMD,s="x"===e,l=[],c=0;c<a.length;){var u=a[c++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,v=void 0;switch(u){case r.M:n=a[c++],i=a[c++];break;case r.L:if(h=a[c++],d=a[c++],v=s?(t-n)/(h-n):(t-i)/(d-i),v<=1&&v>=0){var y=s?(d-i)*v+i:(h-n)*v+n;return s?[t,y]:[y,t]}n=h,i=d;break;case r.C:h=a[c++],d=a[c++],p=a[c++],f=a[c++],g=a[c++],m=a[c++];var x=s?Object(oe["f"])(n,h,p,g,t,l):Object(oe["f"])(i,d,f,m,t,l);if(x>0)for(var b=0;b<x;b++){var _=l[b];if(_<=1&&_>=0){y=s?Object(oe["a"])(i,d,f,m,_):Object(oe["a"])(n,h,p,g,_);return s?[t,y]:[y,t]}}n=g,i=m;break}}},e}(ne["b"]),he=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(g["a"])(e,t),e}(ce),de=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(g["a"])(e,t),e.prototype.getDefaultShape=function(){return new he},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,a=n.length/2,r=e.smoothMonotone;if(e.connectNulls){for(;a>0;a--)if(!se(n[2*a-2],n[2*a-1]))break;for(;o<a;o++)if(!se(n[2*o],n[2*o+1]))break}while(o<a){var s=le(t,n,o,a,a,1,e.smooth,r,e.connectNulls);le(t,i,o+s-1,s,a,-1,e.stackedOnSmooth,r,e.connectNulls),o+=s+1,t.closePath()}},e}(ne["b"]),pe=n("e887"),fe=n("c7a2"),ge=n("4aa2");function me(t,e,n,i,o){var a=t.getArea(),r=a.x,s=a.y,l=a.width,c=a.height,u=n.get(["lineStyle","width"])||2;r-=u/2,s-=u/2,l+=u,c+=u,r=Math.floor(r),l=Math.round(l);var h=new fe["a"]({shape:{x:r,y:s,width:l,height:c}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=c),h.shape.height=0);var g="function"===typeof o?function(t){o(t,h)}:null;Tt["initProps"](h,{shape:{width:l,height:c,x:r,y:s}},n,null,i,g)}return h}function ve(t,e,n){var i=t.getArea(),o=Object(Lt["o"])(i.r0,1),a=Object(Lt["o"])(i.r,1),r=new ge["a"]({shape:{cx:Object(Lt["o"])(t.cx,1),cy:Object(Lt["o"])(t.cy,1),r0:o,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?r.shape.endAngle=i.startAngle:r.shape.r=o,Tt["initProps"](r,{shape:{endAngle:i.endAngle,r:a}},n)}return r}function ye(t,e){return t.type===e}var xe=n("eda2");function be(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function _e(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,a=0;a<t.length;){var r=t[a++],s=t[a++];isNaN(r)||(e=Math.min(r,e),i=Math.max(r,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function we(t,e){var n=_e(t),i=n[0],o=n[1],a=_e(e),r=a[0],s=a[1];return Math.max(Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function Oe(t){return"number"===typeof t?t:t?.5:0}function Se(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=Kt(2*i),a=0;a<i;a++){var r=$t(n,t,e,a);o[2*a]=r[0],o[2*a+1]=r[1]}return o}function Me(t,e,n){for(var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],r=0,s=[],l=[],c=[];r<t.length-2;r+=2)switch(c[0]=t[r+2],c[1]=t[r+3],l[0]=t[r],l[1]=t[r+1],a.push(l[0],l[1]),n){case"end":s[o]=c[o],s[1-o]=l[1-o],a.push(s[0],s[1]);break;case"middle":var u=(l[o]+c[o])/2,h=[];s[o]=h[o]=u,s[1-o]=l[1-o],h[1-o]=c[1-o],a.push(s[0],s[1]),a.push(h[0],h[1]);break;default:s[o]=l[o],s[1-o]=c[1-o],a.push(s[0],s[1])}return a.push(t[r++],t[r++]),a}function Ie(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=n.length-1;a>=0;a--){var r=n[a].dimension,s=t.dimensions[r],l=t.getDimensionInfo(s);if(i=l&&l.coordDim,"x"===i||"y"===i){o=n[a];break}}if(o){var c=e.getAxis(i),u=m["F"](o.stops,(function(t){return{offset:0,coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),h=u.length,d=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var p=10,f=u[0].coord-p,g=u[h-1].coord+p,v=g-f;if(v<.001)return"transparent";m["j"](u,(function(t){t.offset=(t.coord-f)/v})),u.push({offset:h?u[h-1].offset:.5,color:d[1]||"transparent"}),u.unshift({offset:h?u[0].offset:.5,color:d[0]||"transparent"});var y=new te["a"](0,0,0,0,u,!0);return y[i]=f,y[i+"2"]=g,y}}}function Ae(t,e,n){var i=t.get("showAllSymbol"),o="auto"===i;if(!i||o){var a=n.getAxesByScale("ordinal")[0];if(a&&(!o||!je(a,e))){var r=e.mapDimension(a.dim),s={};return m["j"](a.getViewLabels(),(function(t){var e=a.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function je(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),r=0;r<o;r+=a)if(1.5*Bt.getSymbolSize(e,r)[t.isHorizontal()?1:0]>i)return!1;return!0}function Ce(t,e){return isNaN(t)||isNaN(e)}function Te(t){for(var e=t.length/2;e>0;e--)if(!Ce(t[2*e-2],t[2*e-1]))break;return e-1}function De(t,e){return[t[2*e],t[2*e+1]]}function ke(t,e,n){for(var i,o,a=t.length/2,r="x"===n?0:1,s=0,l=-1,c=0;c<a;c++)if(o=t[2*c+r],!isNaN(o)&&!isNaN(t[2*c+1-r]))if(0!==c){if(i<=e&&o>=e||i>=e&&o<=e){l=c;break}s=c,i=o}else i=o;return{range:[s,l],t:(e-i)/(o-i)}}function Le(t,e,n,i){if(ye(e,"cartesian2d")){var o=i.getModel("endLabel"),a=o.get("show"),r=o.get("valueAnimation"),s=i.getData(),l={lastFrameIndex:0},c=a?function(n,i){t._endLabelOnDuring(n,i,s,l,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),h=me(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=l.originalX&&e.attr({x:l.originalX,y:l.originalY})}),c);if(!i.get("clip",!0)){var d=h.shape,p=Math.max(d.width,d.height);u?(d.y-=p,d.height+=2*p):(d.x-=p,d.width+=2*p)}return c&&c(1,h),h}return ve(e,n,i)}function Pe(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),o=n.inverse,a=i?o?"right":"left":"center",r=i?"middle":o?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||r}}}var Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(g["a"])(e,t),e.prototype.init=function(){var t=new Ct["a"],e=new Zt;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,a=this.group,r=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),c=r.getLayout("points")||[],u="polar"===o.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,v=t.get("animation"),y=!l.isEmpty(),x=l.get("origin"),b=Xt(o,r,x),_=y&&Se(o,r,b),w=t.get("showSymbol"),O=w&&!u&&Ae(t,r,o),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),S.setItemGraphicEl(e,null))})),w||d.remove(),a.add(g);var M,I=!u&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(M=o.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var A=Ie(r,o)||r.getVisual("style")[r.getVisual("drawType")];p&&h.type===o.type&&I===this._step?(y&&!f?f=this._newPolygon(c,_):f&&!y&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,o,Object(xe["b"])(A)),g.setClipPath(Le(this,o,!1,t)),w&&d.updateData(r,{isIgnore:O,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),be(this._stackedOnPoints,_)&&be(this._points,c)||(v?this._doUpdateAnimation(r,_,o,n,I,x):(I&&(c=Me(c,o,I),_&&(_=Me(_,o,I))),p.setShape({points:c}),f&&f.setShape({points:c,stackedOnPoints:_})))):(w&&d.updateData(r,{isIgnore:O,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(r,o,M),I&&(c=Me(c,o,I),_&&(_=Me(_,o,I))),p=this._newPolyline(c),y&&(f=this._newPolygon(c,_)),u||this._initOrUpdateEndLabel(t,o,Object(xe["b"])(A)),g.setClipPath(Le(this,o,!0,t)));var j=t.get(["emphasis","focus"]),C=t.get(["emphasis","blurScope"]);if(p.useStyle(m["i"](s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Object(kt["z"])(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var T=p.getState("emphasis").style;T.lineWidth=p.style.lineWidth+1}Object(Z["a"])(p).seriesIndex=t.seriesIndex,Object(kt["j"])(p,j,C);var D=Oe(t.get("smooth")),k=t.get("smoothMonotone"),L=t.get("connectNulls");if(p.setShape({smooth:D,smoothMonotone:k,connectNulls:L}),f){var P=r.getCalculationInfo("stackedOnSeries"),E=0;f.useStyle(m["i"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:r.getVisual("style").decal})),P&&(E=Oe(P.get("smooth"))),f.setShape({smooth:D,stackedOnSmooth:E,smoothMonotone:k,connectNulls:L}),Object(kt["z"])(f,t,"areaStyle"),Object(Z["a"])(f).seriesIndex=t.seriesIndex,Object(kt["j"])(f,j,C)}var N=function(t){i._changePolyState(t)};r.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=N)})),this._polyline.onHoverStateChange=N,this._data=r,this._coordSys=o,this._stackedOnPoints=_,this._points=c,this._step=I,this._valueOrigin=x},e.prototype.dispose=function(){},e.prototype.highlight=function(t,e,n,i){var o=t.getData(),a=W["q"](o,i);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var r=o.getLayout("points"),s=o.getItemGraphicEl(a);if(!s){var l=r[2*a],c=r[2*a+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;s=new Bt(o,a),s.x=l,s.y=c,s.setZ(t.get("zlevel"),t.get("z")),s.__temp=!0,o.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else pe["a"].prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var o=t.getData(),a=W["q"](o,i);if(this._changePolyState("normal"),null!=a&&a>=0){var r=o.getItemGraphicEl(a);r&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else pe["a"].prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(kt["y"])(this._polyline,t),e&&Object(kt["y"])(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new ue({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new de({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,o,a=e.getBaseAxis(),r=a.inverse;"cartesian2d"===e.type?(i=a.isHorizontal(),o=!1):"polar"===e.type&&(i="angle"===a.dim,o=!0);var s=t.hostModel,l=s.get("animationDuration");"function"===typeof l&&(l=l(null));var c=s.get("animationDelay")||0,u="function"===typeof c?c(null):c;t.eachItemGraphicEl((function(t,a){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(o){var g=n,m=e.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(d=g.r0,p=g.r,f=m[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,f=t.x):(d=v.y+v.height,p=v.y,f=t.y)}var y=p===d?0:(f-d)/(p-d);r&&(y=1-y);var x="function"===typeof c?c(a):l*y+u,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(i.get("show")){var o=t.getData(),a=this._polyline,r=this._endLabel;r||(r=this._endLabel=new ee["a"]({z2:200}),r.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var s=Te(o.getLayout("points"));s>=0&&(Object(Nt["f"])(a,Object(Nt["d"])(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?Et(o,n):Pt(o,t)},enableTextSetter:!0},Pe(i,e)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,o,a,r){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=a.get("precision"),p=a.get("distance")||0,f=r.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?p:0)*(m?-1:1),b=(g?0:-p)*(m?-1:1),_=g?"x":"y",w=ke(c,y,_),O=w.range,S=O[1]-O[0],M=void 0;if(S>=1){if(S>1&&!h){var I=De(c,O[0]);s.attr({x:I[0]+x,y:I[1]+b}),o&&(M=u.getRawValue(O[0]))}else{I=l.getPointOn(y,_);I&&s.attr({x:I[0]+x,y:I[1]+b});var A=u.getRawValue(O[0]),j=u.getRawValue(O[1]);o&&(M=W["i"](n,d,A,j,w.t))}i.lastFrameIndex=O[0]}else{var C=1===t||i.lastFrameIndex>0?O[0]:0;I=De(c,C);o&&(M=u.getRawValue(C)),s.attr({x:I[0]+x,y:I[1]+b})}o&&Object(Nt["e"])(s).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,e,n,i,o,a){var r=this._polyline,s=this._polygon,l=t.hostModel,c=Qt(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),u=c.current,h=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(o&&(u=Me(c.current,n,o),h=Me(c.stackedOnCurrent,n,o),d=Me(c.next,n,o),p=Me(c.stackedOnNext,n,o)),we(u,d)>3e3||s&&we(h,p)>3e3)return r.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:p}));r.shape.__points=c.current,r.shape.points=u;var f={shape:{points:d}};c.current!==u&&(f.shape.__points=c.next),r.stopAnimation(),Tt["updateProps"](r,f,l),s&&(s.setShape({points:u,stackedOnPoints:h}),s.stopAnimation(),Tt["updateProps"](s,{shape:{stackedOnPoints:p}},l),r.shape.points!==s.shape.points&&(s.shape.points=r.shape.points));for(var g=[],m=c.status,v=0;v<m.length;v++){var y=m[v].cmd;if("="===y){var x=t.getItemGraphicEl(m[v].idx1);x&&g.push({el:x,ptIdx:v})}}r.animators&&r.animators.length&&r.animators[0].during((function(){s&&s.dirtyShape();for(var t=r.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(pe["a"]),Ne=Ee,Re=n("cccd");function ze(t,e){return{seriesType:t,plan:Object(Re["a"])(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,o=t.pipelineContext,a=e||o.large;if(i){var r=Object(m["F"])(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=r.length,l=n.getCalculationInfo("stackResultDimension");bt(n,r[0])&&(r[0]=l),bt(n,r[1])&&(r[1]=l);var c=n.getDimensionInfo(r[0]),u=n.getDimensionInfo(r[1]),h=c&&c.index,d=u&&u.index;return s&&{progress:function(t,e){for(var n=t.end-t.start,o=a&&Kt(n*s),r=[],l=[],c=t.start,u=0;c<t.end;c++){var p=void 0;if(1===s){var f=e.getByDimIdx(h,c);p=i.dataToPoint(f,null,l)}else r[0]=e.getByDimIdx(h,c),r[1]=e.getByDimIdx(d,c),p=i.dataToPoint(r,null,l);a?(o[u++]=p[0],o[u++]=p[1]):e.setItemLayout(c,p.slice())}a&&e.setLayout("points",o)}}}}}}var Ge={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,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Be=function(t){return Math.round(t.length/2)};function Ve(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,r=i.count();if(r>10&&"cartesian2d"===a.type&&o){var s=a.getBaseAxis(),l=a.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(r/h);if(d>1){"lttb"===o&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;"string"===typeof o?p=Ge[o]:"function"===typeof o&&(p=o),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,Be))}}}}}function Fe(t){t.registerChartView(Ne),t.registerSeriesModel(jt),t.registerLayout(ze("line",!0)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ve("line"))}function He(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return We(n,t,e),n.seriesInvolved&&Xe(n,t),n}function We(t,e,n){var i=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),a=o.get("link",!0)||[],r=[];Object(m["j"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Qe(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",i);if(Object(m["j"])(n.getAxes(),Object(m["h"])(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||d)&&Object(m["j"])(p.baseAxes,Object(m["h"])(f,!d||"cross",h)),d&&Object(m["j"])(p.otherAxes,Object(m["h"])(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",o),d=h.get("show");if(d&&("auto"!==d||i||Je(h))){null==s&&(s=h.get("triggerTooltip")),h=i?Ze(c,u,o,e,i,s):h;var p=h.get("snap"),f=Qe(c.model),g=s||p||"category"===c.type,m=t.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:p,useHandle:Je(h),seriesModels:[],linkGroup:null};l[f]=m,t.seriesInvolved=t.seriesInvolved||g;var v=Ye(a,c);if(null!=v){var y=r[v]||(r[v]={axesInfo:{}});y.axesInfo[f]=m,y.mapper=a[v].mapper,m.linkGroup=y}}}}))}function Ze(t,e,n,i,o,a){var r=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(m["j"])(s,(function(t){l[t]=Object(m["d"])(r.get(t))})),l.snap="category"!==t.type&&!!a,"cross"===r.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===o){var u=r.get(["label","show"]);if(c.show=null==u||u,!a){var h=l.lineStyle=r.get("crossStyle");h&&Object(m["i"])(c,h.textStyle)}}return t.model.getModel("axisPointer",new v["a"](l,n,i))}function Xe(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==e.get(["axisPointer","show"],!0)&&Object(m["j"])(t.coordSysAxesInfo[Qe(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function Ye(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var a=t[o]||{};if($e(a[i+"AxisId"],n.id)||$e(a[i+"AxisIndex"],n.componentIndex)||$e(a[i+"AxisName"],n.name))return o}}function $e(t,e){return"all"===t||Object(m["r"])(t)&&Object(m["p"])(t,e)>=0||t===e}function Ue(t){var e=qe(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,o=n.option,a=n.get("status"),r=n.get("value");null!=r&&(r=i.parse(r));var s=Je(n);null==a&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r<l[0]&&(r=l[0]),o.value=r,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function qe(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Qe(t)]}function Ke(t){var e=qe(t);return e&&e.axisPointerModel}function Je(t){return!!t.get(["handle","show"])}function Qe(t){return t.type+"||"+t.id}var tn=n("b12f"),en={},nn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.prototype.render=function(e,n,i,o){this.axisPointerClass&&Ue(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=Ke(t);a?(this._axisPointer||(this._axisPointer=new o)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){en[t]=e},e.getAxisPointerClass=function(t){return t&&en[t]},e.type="axis",e}(tn["a"]),on=nn,an=n("607d"),rn=n("88b3"),sn=Object(W["m"])(),ln=m["d"],cn=m["c"],un=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var r=this._group,s=this._handle;if(!a||"hide"===a)return r&&r.hide(),void(s&&s.hide());r&&r.show(),s&&s.show();var l={};this.makeElOption(l,o,t,e,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(t,e);if(r){var h=m["h"](hn,e,u);this.updatePointerEl(r,l,h),this.updateLabelEl(r,l,h,e)}else r=this._group=new Ct["a"],this.createPointerEl(r,l,t,e),this.createLabelEl(r,l,t,e),n.getZr().add(r);gn(r,e,!0),this._renderHandle(o)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===n||null==n){var r=this.animationThreshold;if(o&&i.getBandWidth()>r)return!0;if(a){var s=qe(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,o){},t.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;if(o){var a=sn(t).pointerEl=new Tt[o.type](ln(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var o=sn(t).labelEl=new ee["a"](ln(e.label));t.add(o),pn(o,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=sn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var o=sn(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{x:e.label.x,y:e.label.y}),pn(o,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,a=n.getModel("handle"),r=n.get("status");if(!a.get("show")||!r||"hide"===r)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Tt["createIcon"](a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){an["g"](t.event)},onmousedown:cn(this._onHandleDragMove,this,0,0),drift:cn(this._onHandleDragMove,this),ondragend:cn(this._onHandleDragEnd,this)}),i.add(o)),gn(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");m["r"](s)||(s=[s,s]),o.scaleX=s[0]/2,o.scaleY=s[1]/2,rn["b"](this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){hn(this._axisPointerModel,!e&&this._moveAnimation,this._handle,fn(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(fn(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(fn(i)),sn(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function hn(t,e,n,i){dn(sn(n).lastProp,i)||(sn(n).lastProp=i,e?Tt["updateProps"](n,i,t):(n.stopAnimation(),n.attr(i)))}function dn(t,e){if(m["x"](t)&&m["x"](e)){var n=!0;return m["j"](e,(function(e,i){n=n&&dn(t[i],e)})),!!n}return t===e}function pn(t,e){t[e.get(["label","show"])?"show":"hide"]()}function fn(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function gn(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)}))}var mn=un,vn=n("e86a"),yn=n("1687"),xn=n("625e"),bn=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();xn["c"](bn);var _n=bn,wn=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&Object(m["F"])(i,On);return new t({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.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 i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(m["f"])(this.categories))},t}();function On(t){return Object(m["x"])(t)&&null!=t.value?t.value:t+""}var Sn=wn,Mn=Lt["o"];function In(t,e,n,i){var o={},a=t[1]-t[0],r=o.interval=Lt["i"](a/e,!0);null!=n&&r<n&&(r=o.interval=n),null!=i&&r>i&&(r=o.interval=i);var s=o.intervalPrecision=An(r),l=o.niceTickExtent=[Mn(Math.ceil(t[0]/r)*r,s),Mn(Math.floor(t[1]/r)*r,s)];return Cn(l,t),o}function An(t){return Lt["d"](t)+2}function jn(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Cn(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),jn(t,0,e),jn(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Tn(t,e){return t>=e[0]&&t<=e[1]}function Dn(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function kn(t,e){return t*(e[1]-e[0])+e[0]}var Ln=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Sn({})),Object(m["r"])(i)&&(i=new Sn({categories:Object(m["F"])(i,(function(t){return Object(m["x"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return Object(g["a"])(e,t),e.prototype.parse=function(t){return"string"===typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Tn(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Dn(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(kn(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,a=this._ordinalMeta.categories.length,r=Math.min(a,e.length);o<r;++o){var s=e[o];n[o]=s,i[s]=o}for(var l=0;o<a;++o){while(null!=i[l])l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(_n);_n.registerClass(Ln);var Pn=Ln,En=Lt["o"],Nn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(g["a"])(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Tn(t,this._extent)},e.prototype.normalize=function(t){return Dn(t,this._extent)},e.prototype.scale=function(t){return kn(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=An(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,a=[];if(!e)return a;var r=1e4;n[0]<i[0]&&(t?a.push({value:En(i[0]-e,o)}):a.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(a.push({value:s}),s=En(s+e,o),s===a[a.length-1].value)break;if(a.length>r)return[]}var l=a.length?a[a.length-1].value:i[1];return n[1]>l&&(t?a.push({value:En(l+e,o)}):a.push({value:n[1]})),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){var a=e[o],r=e[o-1],s=0,l=[],c=a.value-r.value,u=c/t;while(s<t-1){var h=En(r.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=Lt["d"](t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=En(t.value,n,!0);return xe["a"](i)},e.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var a=In(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},e.prototype.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 i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(e[0]=En(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=En(Math.ceil(e[1]/o)*o))},e.type="interval",e}(_n);_n.registerClass(Nn);var Rn=Nn,zn="__ec_stack_",Gn=.5,Bn="undefined"!==typeof Float32Array?Float32Array:Array;function Vn(t){return t.get("stack")||zn+t.seriesIndex}function Fn(t){return t.dim+t.index}function Hn(t,e){var n=[];return e.eachSeriesByType(t,(function(t){$n(t)&&!Un(t)&&n.push(t)})),n}function Wn(t){var e={};m["j"](t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var o=t.getData(),a=i.dim+"_"+i.index,r=o.mapDimension(i.dim),s=0,l=o.count();s<l;++s){var c=o.get(r,s);e[a]?e[a].push(c):e[a]=[c]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort((function(t,e){return t-e}));for(var a=null,r=1;r<o.length;++r){var s=o[r]-o[r-1];s>0&&(a=null===a?s:Math.min(a,s))}n[i]=a}}return n}function Zn(t){var e=Wn(t),n=[];return m["j"](t,(function(t){var i,o=t.coordinateSystem,a=o.getBaseAxis(),r=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],c=Math.abs(r[1]-r[0]),u=a.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=l?c/h*l:c}else{var d=t.getData();i=Math.abs(r[1]-r[0])/d.count()}var p=Object(Lt["l"])(t.get("barWidth"),i),f=Object(Lt["l"])(t.get("barMaxWidth"),i),g=Object(Lt["l"])(t.get("barMinWidth")||1,i),m=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:Fn(a),stackId:Vn(t)})})),Xn(n)}function Xn(t){var e={};m["j"](t,(function(t,n){var i=t.axisKey,o=t.bandWidth,a=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=a.stacks;e[i]=a;var s=t.stackId;r[s]||a.autoWidthCount++,r[s]=r[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!r[s].width&&(r[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var c=t.barMaxWidth;c&&(r[s].maxWidth=c);var u=t.barMinWidth;u&&(r[s].minWidth=u);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return m["j"](e,(function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,a=t.categoryGap;if(null==a){var r=m["D"](i).length;a=Math.max(35-4*r,15)+"%"}var s=Object(Lt["l"])(a,o),l=Object(Lt["l"])(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),m["j"](i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+l*i,u--}else{var i=h;e&&e<i&&(i=Math.min(e,c)),n&&n>i&&(i=n),i!==h&&(t.width=i,c-=i+l*i,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,p=0;m["j"](i,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;m["j"](i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Yn(t,e,n){if(t&&e){var i=t[Fn(e)];return null!=i&&null!=n?i[Vn(n)]:i}}Object(Re["a"])();function $n(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Un(t){return t.pipelineContext&&t.pipelineContext.large}function qn(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var Kn=n("9850"),Jn=n("f876"),Qn=function(t,e,n,i){while(n<i){var o=n+i>>>1;t[o][1]<e?n=o+1:i=o}return n},ti=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(g["a"])(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Object(Jn["h"])(t.value,Jn["i"][Object(Jn["l"])(Object(Jn["m"])(this._minLevelUnit))]||Jn["i"].second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Object(Jn["r"])(t,e,n,o,i)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var o=this.getSetting("useUTC"),a=ci(this._minLevelUnit,this._approxInterval,o,n);return i=i.concat(a),i.push({value:n[1],level:0}),i},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Jn["a"],e[1]+=Jn["a"]),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]-Jn["a"]}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.niceTicks=function(t,e,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=ei.length,r=Math.min(Qn(ei,this._approxInterval,0,a),a-1);this._interval=ei[r][1],this._minLevelUnit=ei[Math.max(r-1,0)][0]},e.prototype.parse=function(t){return"number"===typeof t?t:+Lt["k"](t)},e.prototype.contain=function(t){return Tn(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Dn(this.parse(t),this._extent)},e.prototype.scale=function(t){return kn(t,this._extent)},e.type="time",e}(Rn),ei=[["second",Jn["d"]],["minute",Jn["c"]],["hour",Jn["b"]],["quarter-day",6*Jn["b"]],["half-day",12*Jn["b"]],["day",1.2*Jn["a"]],["half-week",3.5*Jn["a"]],["week",7*Jn["a"]],["month",31*Jn["a"]],["quarter",95*Jn["a"]],["half-year",Jn["e"]/2],["year",Jn["e"]]];function ni(t,e,n,i){var o=Lt["k"](e),a=Lt["k"](n),r=function(t){return Object(Jn["n"])(o,t,i)===Object(Jn["n"])(a,t,i)},s=function(){return r("year")},l=function(){return s()&&r("month")},c=function(){return l()&&r("day")},u=function(){return c()&&r("hour")},h=function(){return u()&&r("minute")},d=function(){return h()&&r("second")},p=function(){return d()&&r("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return p()}}function ii(t,e){return t/=Jn["a"],t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function oi(t){var e=30*Jn["a"];return t/=e,t>6?6:t>3?3:t>2?2:1}function ai(t){return t/=Jn["b"],t>12?12:t>6?6:t>3.5?4:t>2?2:1}function ri(t,e){return t/=e?Jn["c"]:Jn["d"],t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function si(t){return Lt["i"](t,!0)}function li(t,e,n){var i=new Date(t);switch(Object(Jn["m"])(e)){case"year":case"month":i[Object(Jn["x"])(n)](0);case"day":i[Object(Jn["g"])(n)](1);case"hour":i[Object(Jn["p"])(n)](0);case"minute":i[Object(Jn["v"])(n)](0);case"second":i[Object(Jn["A"])(n)](0),i[Object(Jn["t"])(n)](0)}return i.getTime()}function ci(t,e,n,i){var o=1e4,a=Jn["B"],r=0;function s(t,e,n,o,a,r,s){var l=new Date(e),c=e,u=l[o]();while(c<n&&c<=i[1])s.push({value:c}),u+=t,l[a](u),c=l.getTime();s.push({value:c,notAdd:!0})}function l(t,o,a){var r=[],l=!o.length;if(!ni(Object(Jn["m"])(t),i[0],i[1],n)){l&&(o=[{value:li(new Date(i[0]),t,n)},{value:i[1]}]);for(var c=0;c<o.length-1;c++){var u=o[c].value,h=o[c+1].value;if(u!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/Jn["a"]/365)),p=Object(Jn["j"])(n),f=Object(Jn["k"])(n);break;case"half-year":case"quarter":case"month":d=oi(e),p=Object(Jn["w"])(n),f=Object(Jn["x"])(n);break;case"week":case"half-week":case"day":d=ii(e,31),p=Object(Jn["f"])(n),f=Object(Jn["g"])(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=ai(e),p=Object(Jn["o"])(n),f=Object(Jn["p"])(n);break;case"minute":d=ri(e,!0),p=Object(Jn["u"])(n),f=Object(Jn["v"])(n);break;case"second":d=ri(e,!1),p=Object(Jn["z"])(n),f=Object(Jn["A"])(n);break;case"millisecond":d=si(e),p=Object(Jn["s"])(n),f=Object(Jn["t"])(n);break}s(d,u,h,p,f,g,r),"year"===t&&a.length>1&&0===c&&a.unshift({value:a[0].value-d})}}for(c=0;c<r.length;c++)a.push(r[c]);return r}}for(var c=[],u=[],h=0,d=0,p=0;p<a.length&&r++<o;++p){var f=Object(Jn["m"])(a[p]);if(Object(Jn["q"])(a[p])){l(a[p],c[c.length-1]||[],u);var g=a[p+1]?Object(Jn["m"])(a[p+1]):null;if(f!==g){if(u.length){d=h,u.sort((function(t,e){return t.value-e.value}));for(var v=[],y=0;y<u.length;++y){var x=u[y].value;0!==y&&u[y-1].value===x||(v.push(u[y]),x>=i[0]&&x<=i[1]&&h++)}var b=(i[1]-i[0])/e;if(h>1.5*b&&d>b/1.5)break;if(c.push(v),h>b||t===a[p])break}u=[]}}}var _=Object(m["m"])(Object(m["F"])(c,(function(t){return Object(m["m"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],O=_.length-1;for(p=0;p<_.length;++p)for(var S=_[p],M=0;M<S.length;++M)w.push({value:S[M].value,level:O-p});w.sort((function(t,e){return t.value-e.value}));var I=[];for(p=0;p<w.length;++p)0!==p&&w[p].value===w[p-1].value||I.push(w[p]);return I}_n.registerClass(ti);var ui=ti,hi=_n.prototype,di=Rn.prototype,pi=Lt["d"],fi=Lt["o"],gi=Math.floor,mi=Math.ceil,vi=Math.pow,yi=Math.log,xi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Rn,e._interval=0,e}return Object(g["a"])(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),o=di.getTicks.call(this,t);return m["F"](o,(function(t){var e=t.value,o=Lt["o"](vi(this.base,e));return o=e===n[0]&&this._fixMin?_i(o,i[0]):o,o=e===n[1]&&this._fixMax?_i(o,i[1]):o,{value:o}}),this)},e.prototype.setExtent=function(t,e){var n=this.base;t=yi(t)/yi(n),e=yi(e)/yi(n),di.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=hi.getExtent.call(this);e[0]=vi(t,e[0]),e[1]=vi(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=_i(e[0],i[0])),this._fixMax&&(e[1]=_i(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=yi(t[0])/yi(e),t[1]=yi(t[1])/yi(e),hi.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Lt["m"](n),o=t/n*i;o<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var a=[Lt["o"](mi(e[0]/i)*i),Lt["o"](gi(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},e.prototype.niceExtent=function(t){di.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=yi(t)/yi(this.base),Tn(t,this._extent)},e.prototype.normalize=function(t){return t=yi(t)/yi(this.base),Dn(t,this._extent)},e.prototype.scale=function(t){return t=kn(t,this._extent),vi(this.base,t)},e.type="log",e}(_n),bi=xi.prototype;function _i(t,e){return fi(t,pi(e))}bi.getMinorTicks=di.getMinorTicks,bi.getLabel=di.getLabel,_n.registerClass(xi);var wi=xi,Oi=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);Object(m["u"])(o)?this._modelMinNum=Ai(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Ai(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Object(m["u"])(a)?this._modelMaxNum=Ai(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Ai(t,a)),i)this._axisDataLen=e.getCategories().length;else{var r=e.get("boundaryGap"),s=Object(m["r"])(r)?r:[r||0,r||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(vn["h"])(s[0],1),Object(vn["h"])(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),r="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=r,c=null!=s;null==r&&(r=t?i?0:NaN:e-o[0]*a),null==s&&(s=t?i?i-1:NaN:n+o[1]*a),(null==r||!isFinite(r))&&(r=NaN),(null==s||!isFinite(s))&&(s=NaN),r>s&&(r=NaN,s=NaN);var u=Object(m["k"])(r)||Object(m["k"])(s)||t&&!i;this._needCrossZero&&(r>0&&s>0&&!l&&(r=0),r<0&&s<0&&!c&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(r=h,l=!0),null!=d&&(s=d,c=!0),{min:r,max:s,minFixed:l,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[Mi[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Si[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Si={min:"_determinedMin",max:"_determinedMax"},Mi={min:"_dataMin",max:"_dataMax"};function Ii(t,e,n){var i=t.rawExtentInfo;return i||(i=new Oi(t,e,n),t.rawExtentInfo=i,i)}function Ai(t,e){return null==e?null:Object(m["k"])(e)?NaN:t.parse(e)}function ji(t,e){var n=t.type,i=Ii(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,r=e.ecModel;if(r&&"time"===n){var s=Hn("bar",r),l=!1;if(m["j"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var c=Zn(s),u=Ci(o,a,e,c);o=u.min,a=u.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function Ci(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],r=Yn(i,n.axis);if(void 0===r)return{min:t,max:e};var s=1/0;m["j"](r,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;m["j"](r,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,h=1-(s+l)/a,d=u/h-u;return e+=d*(l/c),t-=d*(s/c),{min:t,max:e}}function Ti(t,e){var n=ji(t,e),i=n.extent,o=e.get("splitNumber");t instanceof wi&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var r=e.get("interval");null!=r&&t.setInterval&&t.setInterval(r)}function Di(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Pn({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new ui({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(_n.getClass(e)||Rn)}}function ki(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function Li(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):"string"===typeof e?function(e){return function(n){var i=t.scale.getLabel(n),o=e.replace("{value}",null!=i?i:"");return o}}(e):"function"===typeof e?function(e){return function(i,o){return null!=n&&(o=i.value-n),e(Pi(t,i),o,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Pi(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Ei(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();n instanceof Pn?o=n.count():(i=n.getTicks(),o=i.length);var r,s=t.getLabelModel(),l=Li(t),c=1;o>40&&(c=Math.ceil(o/40));for(var u=0;u<o;u+=c){var h=i?i[u]:{value:a[0]+u},d=l(h,u),p=s.getTextRect(d),f=Ni(p,s.get("rotate")||0);r?r.union(f):r=f}return r}}function Ni(t,e){var n=e*Math.PI/180,i=t.width,o=t.height,a=i*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),r=i*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n)),s=new Kn["a"](t.x,t.y,a,r);return s}function Ri(t){var e=t.get("interval");return null==e?"auto":e}function zi(t){return"category"===t.type&&0===Ri(t.getLabelModel())}function Gi(t,e){var n={};return m["j"](t.mapDimensionsAll(e),(function(e){n[_t(t,e)]=!0})),m["D"](n)}function Bi(t,e,n){e&&m["j"](Gi(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}var Vi=n("cb11"),Fi=n("401b"),Hi=Math.PI,Wi=function(){function t(t,e){this.group=new Ct["a"],this.opt=e,this.axisModel=t,Object(m["i"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ct["a"]({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Zi[t]},t.prototype.add=function(t){Zi[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,o,a=Object(Lt["n"])(e-t);return Object(Lt["g"])(a)?(o=n>0?"top":"bottom",i="center"):Object(Lt["g"])(a-Hi)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&a<Hi?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Zi={axisLine:function(t,e,n,i){var o=e.get(["axisLine","show"]);if("auto"===o&&t.handleAutoShown&&(o=t.handleAutoShown("axisLine")),o){var a=e.axis.getExtent(),r=i.transform,s=[a[0],0],l=[a[1],0];r&&(Object(Fi["b"])(s,s,r),Object(Fi["b"])(l,l,r));var c=Object(m["l"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new Vi["a"]({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});u.anid="line",n.add(u);var h=e.get(["axisLine","symbol"]),d=e.get(["axisLine","symbolSize"]),p=e.get(["axisLine","symbolOffset"])||0;if("number"===typeof p&&(p=[p,p]),null!=h){"string"===typeof h&&(h=[h,h]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var f=d[0],g=d[1];Object(m["j"])([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==h[i]&&null!=h[i]){var o=Object(Dt["a"])(h[i],-f/2,-g/2,f,g,c.stroke,!0),a=e.r+e.offset;o.attr({rotation:e.rotate,x:s[0]+a*Math.cos(t.rotation),y:s[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),n.add(o)}}))}}},axisTickLabel:function(t,e,n,i){var o=Ji(n,i,e,t),a=to(n,i,e,t);Yi(e,a,o),Qi(n,i,e,t.tickDirection)},axisName:function(t,e,n,i){var o=Object(m["L"])(t.axisName,e.get("name"));if(o){var a,r,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*u:"end"===s?h[1]+d*u:(h[0]+h[1])/2,qi(s)?t.labelOffset+l*u:0],f=e.get("nameRotate");null!=f&&(f=f*Hi/180),qi(s)?a=Wi.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(a=Xi(t.rotation,s,f||0,h),r=t.axisNameAvailableWidth,null!=r&&(r=Math.abs(r/Math.sin(a.rotation)),!isFinite(r)&&(r=null)));var g=c.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,x=Object(m["L"])(t.nameTruncateMaxWidth,v.maxWidth,r),b=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:o,$vars:["name"]};w[_+"Index"]=e.componentIndex;var O=new ee["a"]({x:p[0],y:p[1],rotation:a.rotation,silent:Wi.isLabelSilent(e),style:Object(Nt["b"])(c,{text:o,font:g,overflow:"truncate",width:x,ellipsis:y,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||a.textAlign,verticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(O.tooltip=b&&b.show?Object(m["l"])({content:o,formatter:function(){return o},formatterParams:w},b):null,O.__fullText=o,O.anid="name",e.get("triggerEvent")){var S=Wi.makeAxisEventDataBase(e);S.targetType="axisName",S.name=o,Object(Z["a"])(O).eventData=S}i.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function Xi(t,e,n,i){var o,a,r=Object(Lt["n"])(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Object(Lt["g"])(r-Hi/2)?(a=l?"bottom":"top",o="center"):Object(Lt["g"])(r-1.5*Hi)?(a=l?"top":"bottom",o="center"):(a="middle",o=r<1.5*Hi&&r>Hi/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function Yi(t,e,n){if(!zi(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var a=e[0],r=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?($i(a),$i(c)):Ui(a,r)&&(i?($i(r),$i(u)):($i(a),$i(c))),!1===o?($i(s),$i(h)):Ui(l,s)&&(o?($i(l),$i(d)):($i(s),$i(h)))}}function $i(t){t&&(t.ignore=!0)}function Ui(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=yn["c"]([]);return yn["f"](o,o,-t.rotation),n.applyTransform(yn["e"]([],o,t.getLocalTransform())),i.applyTransform(yn["e"]([],o,e.getLocalTransform())),n.intersect(i)}}function qi(t){return"middle"===t||"center"===t}function Ki(t,e,n,i,o){for(var a=[],r=[],s=[],l=0;l<t.length;l++){var c=t[l].coord;r[0]=c,r[1]=0,s[0]=c,s[1]=n,e&&(Object(Fi["b"])(r,r,e),Object(Fi["b"])(s,s,e));var u=new Vi["a"]({subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});u.anid=o+"_"+t[l].tickValue,a.push(u)}return a}function Ji(t,e,n,i){var o=n.axis,a=n.getModel("axisTick"),r=a.get("show");if("auto"===r&&i.handleAutoShown&&(r=i.handleAutoShown("axisTick")),r&&!o.scale.isBlank()){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),c=o.getTicksCoords(),u=Ki(c,e.transform,l,Object(m["i"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<u.length;h++)t.add(u[h]);return u}}function Qi(t,e,n,i){var o=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!o.scale.isBlank()){var r=o.getMinorTicksCoords();if(r.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),c=Object(m["i"])(s.getLineStyle(),Object(m["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<r.length;u++)for(var h=Ki(r[u],e.transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)t.add(h[d])}}function to(t,e,n,i){var o=n.axis,a=Object(m["L"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(a&&!o.scale.isBlank()){var r=n.getModel("axisLabel"),s=r.get("margin"),l=o.getViewLabels(),c=(Object(m["L"])(i.labelRotate,r.get("rotate"))||0)*Hi/180,u=Wi.innerTextLayout(i.rotation,c,i.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],p=Wi.isLabelSilent(n),f=n.get("triggerEvent");return Object(m["j"])(l,(function(a,l){var c="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,g=a.formattedLabel,y=a.rawLabel,x=r;if(h&&h[c]){var b=h[c];Object(m["x"])(b)&&b.textStyle&&(x=new v["a"](b.textStyle,r,n.ecModel))}var _=x.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=o.dataToCoord(c),O=new ee["a"]({x:w,y:i.labelOffset+i.labelDirection*s,rotation:u.rotation,silent:p,z2:10,style:Object(Nt["b"])(x,{text:g,align:x.getShallow("align",!0)||u.textAlign,verticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||u.textVerticalAlign,fill:"function"===typeof _?_("category"===o.type?y:"value"===o.type?c+"":c,l):_})});if(O.anid="label_"+c,f){var S=Wi.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=y,Object(Z["a"])(O).eventData=S}e.add(O),O.updateTransform(),d.push(O),t.add(O),O.decomposeTransform()})),d}}var eo=Wi;function no(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function io(t,e,n,i,o){var a=n.get("value"),r=ao(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=xe["g"](s.get("padding")||0),c=s.getFont(),u=vn["e"](r,c),h=o.position,d=u.width+l[1]+l[3],p=u.height+l[0]+l[2],f=o.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=o.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),oo(h,d,p,i);var m=s.get("backgroundColor");m&&"auto"!==m||(m=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Object(Nt["b"])(s,{text:r,font:c,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oo(t,e,n,i){var o=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function ao(t,e,n,i,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),r=o.formatter;if(r){var s={value:Pi(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};m["j"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,o=e&&e.getDataParams(i);o&&s.seriesData.push(o)})),m["A"](r)?a=r.replace("{value}",a):m["u"](r)&&(a=r(s))}return a}function ro(t,e,n){var i=yn["b"]();return yn["f"](i,i,n.rotation),yn["h"](i,i,n.position),Tt["applyTransform"]([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function so(t,e,n,i,o,a){var r=eo.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),io(e,i,o,a,{position:ro(i.axis,t,n),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function lo(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function co(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function uo(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,a={},r=o.getAxesOnZeroOf()[0],s=o.position,l=r?"onZero":s,c=o.dim,u=i.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(r){var g=r.toGlobalCoord(r.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}a.position=["y"===c?f[d[l]]:h[0],"x"===c?f[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[s],a.labelOffset=r?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),m["L"](n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-y:y,a.z2=1,a}function ho(t){return"cartesian2d"===t.get("coordinateSystem")}function po(t){var e={xAxisModel:null,yAxisModel:null};return m["j"](e,(function(n,i){var o=i.replace(/Model$/,""),a=t.getReferringComponents(o,W["b"]).models[0];e[i]=a})),e}var fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(g["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var a=n.axis,r=a.grid,s=i.get("type"),l=go(r,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var u=no(i),h=mo[s](a,c,l);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=uo(r.model,n);so(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=uo(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=ro(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,a=o.grid,r=o.getGlobalExtent(!0),s=go(a,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(r[1],c[l]),c[l]=Math.max(r[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(mn);function go(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var mo={line:function(t,e,n){var i=lo([e,n[0]],[e,n[1]],vo(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:co([e-i/2,n[0]],[i,o],vo(t))}}};function vo(t){return"x"===t.dim?0:1}var yo=fo,xo=n("6cb7"),bo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.type="axisPointer",e.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},e}(xo["a"]),_o=bo,wo=n("22d1"),Oo=Object(W["m"])(),So=m["j"];function Mo(t,e,n){if(!wo["a"].node){var i=e.getZr();Oo(i).records||(Oo(i).records={}),Io(i,e);var o=Oo(i).records[t]||(Oo(i).records[t]={});o.handler=n}}function Io(t,e){function n(n,i){t.on(n,(function(n){var o=To(e);So(Oo(t).records,(function(t){t&&i(t,n,o.dispatchAction)})),Ao(o.pendings,e)}))}Oo(t).initialized||(Oo(t).initialized=!0,n("click",m["h"](Co,"click")),n("mousemove",m["h"](Co,"mousemove")),n("globalout",jo))}function Ao(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function jo(t,e,n){t.handler("leave",null,n)}function Co(t,e,n,i){e.handler(t,n,i)}function To(t){var e={showTip:[],hideTip:[]},n=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function Do(t,e){if(!wo["a"].node){var n=e.getZr(),i=(Oo(n).records||{})[t];i&&(Oo(n).records[t]=null)}}var ko=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Mo("axisPointer",n,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){Do("axisPointer",e)},e.prototype.dispose=function(t,e){Do("axisPointer",e)},e.type="axisPointer",e}(tn["a"]),Lo=ko;function Po(t,e){var n,i=[],o=t.seriesIndex;if(null==o||!(n=e.getSeriesByIndex(o)))return{point:[]};var a=n.getData(),r=W["q"](a,t);if(null==r||r<0||m["r"](r))return{point:[]};var s=a.getItemGraphicEl(r),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(r)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,d=c.dim,p="x"===h||"radius"===h?1:0,f=a.mapDimension(d),g=[];g[p]=a.get(f,r),g[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),r),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(a.getValues(m["F"](l.dimensions,(function(t){return a.mapDimension(t)})),r))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var Eo=Object(W["m"])();function No(t,e,n){var i=t.currTrigger,o=[t.x,t.y],a=t,r=t.dispatchAction||Object(m["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Xo(o)&&(o=Po({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Xo(o),c=a.axesInfo,u=s.axesInfo,h="leave"===i||Xo(o),d={},p={},f={list:[],map:{}},g={showPointer:Object(m["h"])(Go,p),showTooltip:Object(m["h"])(Bo,f)};Object(m["j"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(o);Object(m["j"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,a=Wo(c,t);if(!h&&n&&(!c||a)){var r=a&&a.value;null!=r||l||(r=i.pointToData(o)),null!=r&&Ro(t,r,g,!1,d)}}))}));var v={};return Object(m["j"])(u,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(m["j"])(n.axesInfo,(function(e,i){var o=p[i];if(e!==t&&o){var a=o.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,Zo(e),Zo(t)))),v[t.key]=a}}))})),Object(m["j"])(v,(function(t,e){Ro(u[e],t,g,!0,d)})),Vo(p,u,d),Fo(f,o,t,r),Ho(u,r,n),d}}function Ro(t,e,n,i,o){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var r=zo(e,t),s=r.payloadBatch,l=r.snapToValue;s[0]&&null==o.seriesIndex&&Object(m["l"])(o,s[0]),!i&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,r,l)}else n.showPointer(t,e)}function zo(t,e){var n=e.axis,i=n.dim,o=t,a=[],r=Number.MAX_VALUE,s=-1;return Object(m["j"])(e.seriesModels,(function(e,l){var c,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);u=d.dataIndices,c=d.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;c=e.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var p=t-c,f=Math.abs(p);f<=r&&((f<r||p>=0&&s<0)&&(r=f,s=p,o=c,a.length=0),Object(m["j"])(u,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:o}}function Go(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Bo(t,e,n,i){var o=n.payloadBatch,a=e.axis,r=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,c=Qe(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function Vo(t,e,n){var i=n.axesInfo=[];Object(m["j"])(e,(function(e,n){var o=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(o.status="show"),o.value=a.value,o.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})}))}function Fo(t,e,n,i){if(!Xo(e)&&t.list.length){var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({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})}else i({type:"hideTip"})}function Ho(t,e,n){var i=n.getZr(),o="axisPointerLastHighlights",a=Eo(i)[o]||{},r=Eo(i)[o]={};Object(m["j"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(m["j"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t}))}));var s=[],l=[];Object(m["j"])(a,(function(t,e){!r[e]&&l.push(t)})),Object(m["j"])(r,(function(t,e){!a[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Wo(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function Zo(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Xo(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Yo(t){on.registerAxisPointerClass("CartesianAxisPointer",yo),t.registerComponentModel(_o),t.registerComponentView(Lo),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(m["r"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=He(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},No)}var $o=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(xo["a"]),Uo=$o,qo=n("41ef"),Ko=n("65ed");function Jo(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}var Qo=n("217c"),ta=["-ms-","-moz-","-o-","-webkit-",""],ea="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function na(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function ia(t,e,n){if(!Object(m["A"])(n)||"inside"===n)return"";e=Object(xe["b"])(e);var i=na(n),o="",a="";Object(m["p"])(["left","right"],i)>-1?(o=i+":-6px;top:50%;",a="translateY(-50%) rotate("+("left"===i?-225:-45)+"deg)"):(o=i+":-6px;left:50%;",a="translateX(-50%) rotate("+("top"===i?225:45)+"deg)"),a=Object(m["F"])(ta,(function(t){return t+"transform:"+a})).join(";");var r=["position:absolute;width:10px;height:10px;",""+o+a+";","border-bottom: "+e+" solid 1px;","border-right: "+e+" solid 1px;","background-color: "+t+";","box-shadow: 8px 8px 16px -3px #000;"];return'<div style="'+r.join("")+'"></div>'}function oa(t,e){var n="cubic-bezier(0.23, 1, 0.32, 1)",i="opacity "+t/2+"s "+n+",visibility "+t/2+"s "+n;return e||(i+=",left "+t+"s "+n+",top "+t+"s "+n),Object(m["F"])(ta,(function(t){return t+"transition:"+i})).join(";")}function aa(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,r=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+r+"px "+s+"px "+a+"px "+o),Object(m["j"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function ra(t,e,n){var i=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),r=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),u=t.getModel("textStyle"),h=Object(Qo["d"])(t,"html"),d=l+"px "+c+"px "+r+"px "+s;return i.push("box-shadow:"+d),e&&o&&i.push(oa(o,n)),a&&(wo["a"].canvasSupported?i.push("background-Color:"+a):(i.push("background-Color:#"+Object(qo["e"])(a)),i.push("filter:alpha(opacity=70)"))),Object(m["j"])(["width","color","radius"],(function(e){var n="border-"+e,o=Object(xe["h"])(n),a=t.get(o);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))})),i.push(aa(u)),null!=h&&i.push("padding:"+Object(xe["g"])(h).join("px ")+"px"),i.join(";")+";"}function sa(t,e,n,i,o){var a=e&&e.painter;if(n){var r=a&&a.getViewportRoot();r&&Object(Ko["c"])(t,r,document.body,i,o)}else{t[0]=i,t[1]=o;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var la=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,wo["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=e.getZr(),a=this._appendToBody=n&&n.appendToBody;sa(this._styleCoord,o,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(i):t.appendChild(i),this._container=t;var r=this;i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!r._enterable){var e=o.handler,n=o.painter.getViewportRoot();Object(an["e"])(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative");var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=this._styleCoord,o=n.offsetHeight/2;e=Object(xe["b"])(e),n.style.cssText=ea+ra(t,!this._firstShow,this._longHide)+";left:"+i[0]+"px;top:"+(i[1]-o)+"px;border-color: "+e+";"+(t.get("extraCssText")||""),n.style.display=n.innerHTML?"block":"none",n.style.pointerEvents=this._enterable?"auto":"none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,o){if(null!=t){var a=this.el;if(Object(m["A"])(o)&&"item"===n.get("trigger")&&!Jo(n)&&(t+=ia(n.get("backgroundColor"),i,o)),Object(m["A"])(t))a.innerHTML=t;else if(t){a.innerHTML="",Object(m["r"])(t)||(t=[t]);for(var r=0;r<t.length;r++)Object(m["t"])(t[r])&&t[r].parentNode!==a&&a.appendChild(t[r])}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.clientWidth,t.clientHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(sa(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;i.left=n[0].toFixed(0)+"px",i.top=n[1].toFixed(0)+"px"}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this;this.el.style.visibility="hidden",this.el.style.opacity="0",this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(m["c"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t.prototype.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}},t}(),ca=la,ua=n("edae"),ha=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),fa(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,o){m["x"](t)&&Object(ua["b"])(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new ee["a"]({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:a.get("textShadowColor"),textShadowBlur:a.get("textShadowBlur")||0,textShadowOffsetX:a.get("textShadowOffsetX")||0,textShadowOffsetY:a.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:Object(Qo["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var r=this;this.el.on("mouseover",(function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0})),this.el.on("mouseout",(function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=pa(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;fa(i,this._zr,t,e),t=i[0],e=i[1];var o=n.style,a=da(o.borderWidth||0),r=pa(o);n.x=t+a+r.left,n.y=e+a+r.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(m["c"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.getOuterSize=function(){var t=this.getSize();return{width:t[0],height:t[1]}},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function da(t){return Math.max(0,t)}function pa(t){var e=da(t.shadowBlur||0),n=da(t.shadowOffsetX||0),i=da(t.shadowOffsetY||0);return{left:da(e-n),right:da(e+n),top:da(e-i),bottom:da(e+i)}}function fa(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var ga=ha,ma=n("f934"),va=n("38a2"),ya=n("fadd"),xa=m["c"],ba=m["j"],_a=Lt["l"],wa=new fe["a"]({shape:{x:-1,y:-1,width:2,height:2}}),Oa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.prototype.init=function(t,e){if(!wo["a"].node){var n=t.getComponent("tooltip"),i=n.get("renderMode");this._renderMode=Object(W["h"])(i),this._tooltipContent="richText"===this._renderMode?new ga(e):new ca(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!wo["a"].node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");Mo("itemTooltip",this._api,xa((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!wo["a"].node){var o=Ma(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var r=wa;r.x=i.x,r.y=i.y,r.update(),r.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:r},o)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=Po(i,e),l=s.point[0],c=s.point[1];null!=l&&null!=c&&this._tryShow({offsetX:l,offsetY:c,position:i.position,target:s.el},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Ma(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,a=i.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=a&&null!=r){var s=e.getSeriesByIndex(o);if(s){var l=s.getData(),c=Sa([l.getItemModel(a),s,(s.coordinateSystem||{}).model,t]);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;o&&o.length?this._showAxisTooltip(o,t):n&&Object(ya["a"])(n,(function(t){return null!=Object(Z["a"])(t).dataIndex}),!0)?(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))}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=m["c"](e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],a=Sa([e.tooltipOption,i]),r=this._renderMode,s=[],l=Object(Qo["c"])("section",{blocks:[],noHeader:!0}),c=[],u=new Qo["a"];ba(t,(function(t){ba(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=ao(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),a=Object(Qo["c"])("section",{header:o,noHeader:!m["Q"](o),sortBlocks:!0,blocks:[]});l.blocks.push(a),m["j"](t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=h.getDataParams(d);p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=Pi(e.axis,{value:i}),p.axisValueLabel=o,p.marker=u.makeTooltipMarker("item",xe["b"](p.color),r);var f=Object(va["b"])(h.formatTooltip(d,!0,null));f.markupFragment&&a.blocks.push(f.markupFragment),f.markupText&&c.push(f.markupText),s.push(p)}))}}))})),l.blocks.reverse(),c.reverse();var h=e.position,d=a.get("order"),p=Object(Qo["b"])(l,u,r,d,n.get("useUTC"),a.get("textStyle"));p&&c.unshift(p);var f="richText"===r?"\n\n":"<br/>",g=c.join(f);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(a,h,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+"",o[0],o[1],h,null,u)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=Object(ya["a"])(e,(function(t){return null!=Object(Z["a"])(t).dataIndex}),!0),o=this._ecModel,a=Object(Z["a"])(i),r=a.seriesIndex,s=o.getSeriesByIndex(r),l=a.dataModel||s,c=a.dataIndex,u=a.dataType,h=l.getData(u),d=this._renderMode,p=Sa([h.getItemModel(c),l,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),f=p.get("trigger");if(null==f||"item"===f){var g=l.getDataParams(c,u),m=new Qo["a"];g.marker=m.makeTooltipMarker("item",xe["b"](g.color),d);var v=Object(va["b"])(l.formatTooltip(c,!1,u)),y=p.get("order"),x=v.markupFragment?Object(Qo["b"])(v.markupFragment,m,d,y,o.get("useUTC"),p.get("textStyle")):v.markupText,b="item_"+l.name+"_"+c;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,b,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:r,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=e.tooltip;if(m["A"](i)){var o=i;i={content:o,formatter:o}}var a=new v["a"](i,this._tooltipModel,this._ecModel),r=a.get("content"),s=Math.random()+"",l=new Qo["a"];this._showOrMove(a,(function(){this._showTooltipContent(a,r,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e,l)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,o,a,r,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent,u=t.get("formatter");r=r||t.get("position");var h=e,d=this._getNearestPoint([o,a],n,t.get("trigger"),t.get("borderColor"));if(u&&m["A"](u)){var p=t.ecModel.get("useUTC"),f=m["r"](n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;h=u,g&&(h=Object(Jn["h"])(f.axisValue,h,p)),h=xe["d"](h,n,!0)}else if(m["u"](u)){var v=xa((function(e,i){e===this._ticket&&(c.setContent(i,l,t,d.color,r),this._updatePosition(t,r,o,a,c,n,s))}),this);this._ticket=i,h=u(n,i,v)}c.setContent(h,l,t,d.color,r),c.show(t,d.color),this._updatePosition(t,r,o,a,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||m["r"](e)?{color:i||("html"===this._renderMode?"#fff":"none")}:m["r"](e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,o,a,r){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=o.getSize(),u=t.get("align"),h=t.get("verticalAlign"),d=r&&r.getBoundingRect().clone();if(r&&d.applyTransform(r.transform),m["u"](e)&&(e=e([n,i],a,o.el,d,{viewSize:[s,l],contentSize:c.slice()})),m["r"](e))n=_a(e[0],s),i=_a(e[1],l);else if(m["x"](e)){var p=e;p.width=c[0],p.height=c[1];var f=ma["d"](p,{width:s,height:l});n=f.x,i=f.y,u=null,h=null}else if(m["A"](e)&&r){var g=ja(e,d,c);n=g[0],i=g[1]}else{g=Ia(n,i,o,s,l,u?null:20,h?null:20);n=g[0],i=g[1]}if(u&&(n-=Ca(u)?c[0]/2:"right"===u?c[0]:0),h&&(i-=Ca(h)?c[1]/2:"bottom"===h?c[1]:0),Jo(t)){g=Aa(n,i,o,s,l);n=g[0],i=g[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&ba(e,(function(e,i){var o=e.dataByAxis||[],a=t[i]||{},r=a.dataByAxis||[];n=n&&o.length===r.length,n&&ba(o,(function(t,e){var i=r[e]||{},o=t.seriesDataIndices||[],a=i.seriesDataIndices||[];n=n&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&o.length===a.length,n&&ba(o,(function(t,e){var i=a[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){wo["a"].node||(this._tooltipContent.dispose(),Do("itemTooltip",e))},e.type="tooltip",e}(tn["a"]);function Sa(t){var e=t.pop();while(t.length){var n=t.pop();n&&(n instanceof v["a"]&&(n=n.get("tooltip",!0)),m["A"](n)&&(n={formatter:n}),e=new v["a"](n,e,e.ecModel))}return e}function Ma(t,e){return t.dispatchAction||m["c"](e.dispatchAction,e)}function Ia(t,e,n,i,o,a,r){var s=n.getOuterSize(),l=s.width,c=s.height;return null!=a&&(t+l+a+2>i?t-=l+a:t+=a),null!=r&&(e+c+r>o?e-=c+r:e+=r),[t,e]}function Aa(t,e,n,i,o){var a=n.getOuterSize(),r=a.width,s=a.height;return t=Math.min(t+r,i)-r,e=Math.min(e+s,o)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function ja(t,e,n){var i=n[0],o=n[1],a=10,r=5,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-i/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-i/2,l=e.y+u+a;break;case"left":s=e.x-i-a-r,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a+r,l=e.y+u/2-o/2}return[s,l]}function Ca(t){return"center"===t||"middle"===t}var Ta=Oa;function Da(t){Object(p["a"])(Yo),t.registerComponentModel(Uo),t.registerComponentView(Ta),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}var ka=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(g["a"])(e,t),e.type="title",e.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:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(xo["a"]),La=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),a=t.getModel("subtextStyle"),r=t.get("textAlign"),s=m["M"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new ee["a"]({style:Object(Nt["b"])(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=t.get("subtext"),h=new ee["a"]({style:Object(Nt["b"])(a,{text:u,fill:a.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){Object(xe["i"])(d,"_"+t.get("target"))})),p&&h.on("click",(function(){Object(xe["i"])(p,"_"+t.get("subtarget"))})),Object(Z["a"])(l).eventData=Object(Z["a"])(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),u&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Object(ma["d"])(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));r||(r=t.get("left")||t.get("right"),"middle"===r&&(r="center"),"right"===r?y.x+=y.width:"center"===r&&(y.x+=y.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var x={align:r,verticalAlign:s};l.setStyle(x),h.setStyle(x),g=i.getBoundingRect();var b=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new fe["a"]({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(tn["a"]);function Pa(t){t.registerComponentModel(ka),t.registerComponentView(La)}var Ea=function(t,e){return"all"===e?{type:"all",title:t.getLocale(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocale(["legend","selector","inverse"])}:void 0},Na=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(g["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),m["r"](e)&&m["j"](e,(function(t,i){m["A"](t)&&(t={type:t}),e[i]=m["G"](t,Ea(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var o,a=i.name;if(n.push(a),i.legendVisualProvider){var r=i.legendVisualProvider,s=r.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&Object(W["l"])(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,o=m["F"](i,(function(t){return"string"!==typeof t&&"number"!==typeof t||(t={name:t}),new v["a"](t,this,this.ecModel)}),this);this._data=o},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;m["j"](i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;m["j"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;m["j"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&m["p"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(xo["a"]),Ra=Na;function za(t,e){var n=xe["g"](e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new fe["a"]({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var Ga=m["h"],Ba=m["j"],Va=Ct["a"],Fa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(g["a"])(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new Va),this.group.add(this._selectorGroup=new Va),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var r=t.get("selector",!0),s=t.get("selectorPosition",!0);!r||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,r,a,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=t.get("padding"),h=ma["d"](l,c,u),d=this.layoutInner(t,o,h,i,r,s),p=ma["d"](m["i"]({width:d.width,height:d.height},l),c,u);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=za(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,o,a,r){var s=this.getContentGroup(),l=m["f"](),c=e.get("selectedMode"),u=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&u.push(t.id)})),Ba(e.getData(),(function(o,a){var r=o.get("name");if(!this.newlineDisabled&&(""===r||"\n"===r)){var h=new Va;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(r)[0];if(!l.get(r)){if(d){var p=d.getData(),f=p.getVisual("style"),g=f[p.getVisual("drawType")]||f.fill,m=f.stroke,v=f.decal,y=p.getVisual("legendSymbol")||"roundRect",x=p.getVisual("symbol"),b=this._createItem(r,a,o,e,y,x,t,g,m,v,c);b.on("click",Ga(Wa,r,null,i,u)).on("mouseover",Ga(Xa,d.name,null,i,u)).on("mouseout",Ga(Ya,d.name,null,i,u)),l.set(r,!0)}else n.eachRawSeries((function(n){if(!l.get(r)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(r))return;var h=s.indexOfName(r),d=s.getItemVisual(h,"style"),p=d.stroke,f=d.decal,g=d.fill,m=Object(qo["c"])(d.fill);m&&0===m[3]&&(m[3]=.2,g=Object(qo["d"])(m,"rgba"));var v="roundRect",y=this._createItem(r,a,o,e,v,null,t,g,p,f,c);y.on("click",Ga(Wa,null,r,i,u)).on("mouseover",Ga(Xa,null,r,i,u)).on("mouseout",Ga(Ya,null,r,i,u)),l.set(r,!0)}}),this);0}}),this),o&&this._createSelector(o,e,i,a,r)},e.prototype._createSelector=function(t,e,n,i,o){var a=this.getSelectorGroup();Ba(t,(function(t){var i=t.type,o=new ee["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(o);var r=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Object(Nt["f"])(o,{normal:r,emphasis:s},{defaultText:t.title}),Object(kt["j"])(o)}))},e.prototype._createItem=function(t,e,n,i,o,a,r,s,l,c,u){var h=i.get("itemWidth"),d=i.get("itemHeight"),p=i.get("inactiveColor"),f=i.get("inactiveBorderColor"),g=i.get("symbolKeepAspect"),v=i.getModel("itemStyle"),y=i.isSelected(t),x=new Va,b=n.getModel("textStyle"),_=n.get("icon"),w=n.getModel("tooltip"),O=w.parentModel;o=_||o;var S=Object(Dt["a"])(o,0,0,h,d,y?s:p,null==g||g);if(x.add(Ha(S,o,v,l,f,c,y)),!_&&a&&(a!==o||"none"===a)){var M=.8*d;"none"===a&&(a="circle");var I=Object(Dt["a"])(a,(h-M)/2,(d-M)/2,M,M,y?s:p,null==g||g);x.add(Ha(I,a,v,l,f,c,y))}var A="left"===r?h+5:-5,j=r,C=i.get("formatter"),T=t;"string"===typeof C&&C?T=C.replace("{name}",null!=t?t:""):"function"===typeof C&&(T=C(t)),x.add(new ee["a"]({style:Object(Nt["b"])(b,{text:T,x:A,y:d/2,fill:y?b.getTextColor():p,align:j,verticalAlign:"middle"})}));var D=new fe["a"]({shape:x.getBoundingRect(),invisible:!0});if(w.get("show")){var k={componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]};D.tooltip=m["l"]({content:t,formatter:O.get("formatter",!0)||function(t){return t.name},formatterParams:k},w.option)}return x.add(D),x.eachChild((function(t){t.silent=!0})),D.silent=!u,this.getContentGroup().add(x),Object(kt["j"])(x),x.__legendDataIndex=e,x},e.prototype.layoutInner=function(t,e,n,i,o,a){var r=this.getContentGroup(),s=this.getSelectorGroup();ma["a"](t.get("orient"),r,t.get("itemGap"),n.width,n.height);var l=r.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),r.markRedraw(),o){ma["a"]("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===a?h[p]+=l[f]+d:c[p]+=u[f]+d,h[1-p]+=l[g]/2-u[g]/2,s.x=h[0],s.y=h[1],r.x=c[0],r.y=c[1];var v={x:0,y:0};return v[f]=l[f]+d+u[f],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+h[1-p]),v}return r.x=c[0],r.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(tn["a"]);function Ha(t,e,n,i,o,a,r){var s;return"line"!==e&&e.indexOf("empty")<0?(s=n.getItemStyle(),t.style.stroke=i,t.style.decal=a,r||(s.stroke=o)):s=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(s),t}function Wa(t,e,n,i){Ya(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Xa(t,e,n,i)}function Za(t){var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;while(i<o&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function Xa(t,e,n,i){Za(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Ya(t,e,n,i){Za(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var $a=Fa;function Ua(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function qa(t,e,n){var i,o={},a="toggleSelected"===t;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var r=n.getData();Object(m["j"])(r,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&i:o[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function Ka(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(m["h"])(qa,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(m["h"])(qa,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(m["h"])(qa,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(m["h"])(qa,"select")),t.registerAction("legendUnSelect","legendunselected",Object(m["h"])(qa,"unSelect"))}function Ja(t){t.registerComponentModel(Ra),t.registerComponentView($a),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Ua),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),Ka(t)}var Qa=n("8918"),tr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var o=Object(ma["c"])(e);t.prototype.init.call(this,e,n,i),er(this,e,o)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),er(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Object(Qa["d"])(Ra.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}),e}(Ra);function er(t,e,n){var i=t.getOrient(),o=[1,1];o[i.index]=0,Object(ma["e"])(e,n,{type:"box",ignoreSize:!!o})}var nr=tr,ir=Ct["a"],or=["width","height"],ar=["x","y"],rr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(g["a"])(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new ir),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ir)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,o,a,r,s){var l=this;t.prototype.renderInner.call(this,e,n,i,o,a,r,s);var c=this._controllerGroup,u=n.get("pageIconSize",!0),h=m["r"](u)?u:[u,u];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",a=Tt["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:m["c"](l._pageGo,l,i,n,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=t,c.add(a)}c.add(new ee["a"]({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,o,a){var r=this.getSelectorGroup(),s=t.getOrient().index,l=or[s],c=ar[s],u=or[1-s],h=ar[1-s];o&&ma["a"]("horizontal",r,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=r.getBoundingRect(),f=[-p.x,-p.y],g=m["d"](n);o&&(g[l]=n[l]-p[l]-d);var v=this._layoutContentAndController(t,i,g,s,l,u,h,c);if(o){if("end"===a)f[s]+=v[l]+d;else{var y=p[l]+d;f[s]-=y,v[c]-=y}v[l]+=p[l]+d,f[1-s]+=v[h]+v[u]/2-p[u]/2,v[u]=Math.max(v[u],p[u]),v[h]=Math.min(v[h],p[h]+f[1-s]),r.x=f[0],r.y=f[1],r.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,o,a,r,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;ma["a"](t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),ma["a"]("horizontal",u,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=u.getBoundingRect(),p=this._showController=h[o]>n[o],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],v=[-d.x,-d.y],y=m["M"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var x=t.get("pageButtonPosition",!0);"end"===x?v[i]+=n[o]-d[o]:g[i]+=d[o]+y}v[1-i]+=h[a]/2-d[a]/2,l.setPosition(f),c.setPosition(g),u.setPosition(v);var b={x:0,y:0};if(b[o]=p?n[o]:h[o],b[a]=Math.max(h[a],d[a]),b[r]=Math.min(0,d[r]+v[1-i]),c.__rectSize=n[o],p){var _={x:0,y:0};_[o]=Math.max(n[o]-d[o]-y,0),_[a]=b[a],c.setClipPath(new fe["a"]({shape:_})),c.__rectSize=_[o]}else u.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&Tt["updateProps"](l,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;m["j"](["pagePrev","pageNext"],(function(i){var o=i+"DataIndex",a=null!=e[o],r=n.childOfName(i);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var i=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,r=null!=a?a+1:0,s=e.pageCount;i&&o&&i.setStyle("text",m["A"](o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==s?"":s+""):o({current:r,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,a=or[o],r=ar[o],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=y(c);d.contentPosition[o]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=u;++f)v=y(l[f]),(!v&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)v=y(l[f]),v&&x(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[r]+t[r];return{s:n,e:n+e[a],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,o){var a=i.__legendDataIndex;null==n&&null!=a&&(n=o),a===t&&(e=o)})),null!=e?e:n},e.type="legend.scroll",e}($a),sr=rr;function lr(t){t.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 cr(t){Object(p["a"])(Ja),t.registerComponentModel(nr),t.registerComponentView(sr),lr(t)}function ur(t){Object(p["a"])(Ja),Object(p["a"])(cr)}var hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(g["a"])(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(xo["a"]),dr=hr,pr=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(g["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",W["b"]).models[0]},e.type="cartesian2dAxis",e}(xo["a"]);m["H"](fr,pr);var gr={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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},mr=m["G"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gr),vr=m["G"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},gr),yr=m["G"]({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vr),xr=m["i"]({scale:!0,logBase:10},vr),br={category:mr,value:vr,time:yr,log:xr},_r={value:1,category:1,time:1,log:1};function wr(t,e,n,i){Object(m["j"])(_r,(function(o,a){var r=Object(m["G"])(Object(m["G"])({},br[a],!0),i,!0),s=function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=t.apply(this,n)||this;return o.type=e+"Axis."+a,o}return Object(g["a"])(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(ma["b"])(this),i=n?Object(ma["c"])(t):{},o=e.getTheme();Object(m["G"])(t,o.get(a+"Axis")),Object(m["G"])(t,this.getDefaultOption()),t.type=Or(t),n&&Object(ma["e"])(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Sn.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=r,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",Or)}function Or(t){return t.type||(t.data?"category":"value")}var Sr=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return m["F"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m["m"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Mr=Sr,Ir=["x","y"];function Ar(t){return"interval"===t.type||"time"===t.type}var jr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ir,e}return Object(g["a"])(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Ar(t)&&Ar(e)){var n=t.getExtent(),i=e.getExtent(),o=this.dataToPoint([n[0],i[0]]),a=this.dataToPoint([n[1],i[1]]),r=n[1]-n[0],s=i[1]-i[0];if(r&&s){var l=(a[0]-o[0])/r,c=(a[1]-o[1])/s,u=o[0]-n[0]*l,h=o[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Object(yn["d"])([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.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]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return Object(Fi["b"])(n,t,this._transform);var a=this.getAxis("x"),r=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(i)),n[1]=r.toGlobalCoord(r.dataToCoord(o)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),a=i.getExtent(),r=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(o[0],o[1]),r),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},e.prototype.pointToData=function(t,e){if(e=e||[],this._invTransform)return Object(Fi["b"])(e,t,this._invTransform);var n=this.getAxis("x"),i=this.getAxis("y");return e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),o=Math.max(t[0],t[1])-n,a=Math.max(e[0],e[1])-i;return new Kn["a"](n,i,o,a)},e}(Mr),Cr=jr,Tr=Object(W["m"])();function Dr(t){return"category"===t.type?Lr(t):Nr(t)}function kr(t,e){return"category"===t.type?Er(t,e):{ticks:m["F"](t.scale.getTicks(),(function(t){return t.value}))}}function Lr(t){var e=t.getLabelModel(),n=Pr(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Pr(t,e){var n,i,o=Rr(t,"labels"),a=Ri(e),r=zr(o,a);return r||(m["u"](a)?n=Wr(t,a):(i="auto"===a?Br(t):a,n=Hr(t,i)),Gr(o,a,{labels:n,labelCategoryInterval:i}))}function Er(t,e){var n,i,o=Rr(t,"ticks"),a=Ri(e),r=zr(o,a);if(r)return r;if(e.get("show")&&!t.scale.isBlank()||(n=[]),m["u"](a))n=Wr(t,a,!0);else if("auto"===a){var s=Pr(t,t.getLabelModel());i=s.labelCategoryInterval,n=m["F"](s.labels,(function(t){return t.tickValue}))}else i=a,n=Hr(t,i,!0);return Gr(o,a,{ticks:n,tickCategoryInterval:i})}function Nr(t){var e=t.scale.getTicks(),n=Li(t);return{labels:m["F"](e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function Rr(t,e){return Tr(t)[e]||(Tr(t)[e]=[])}function zr(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Gr(t,e,n){return t.push({key:e,value:n}),n}function Br(t){var e=Tr(t).autoInterval;return null!=e?e:Tr(t).autoInterval=t.calculateCategoryInterval()}function Vr(t){var e=Fr(t),n=Li(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),r=o.count();if(a[1]-a[0]<1)return 0;var s=1;r>40&&(s=Math.max(1,Math.floor(r/40)));for(var l=a[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(i)),h=Math.abs(c*Math.sin(i)),d=0,p=0;l<=a[1];l+=s){var f=0,g=0,m=vn["e"](n({value:l}),e.font,"center","top");f=1.3*m.width,g=1.3*m.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/u,y=p/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),b=Tr(t.model),_=t.getExtent(),w=b.lastAutoInterval,O=b.lastTickCount;return null!=w&&null!=O&&Math.abs(w-x)<=1&&Math.abs(O-r)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=r,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}function Fr(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()}}function Hr(t,e,n){var i=Li(t),o=t.scale,a=o.getExtent(),r=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=a[0],u=o.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=zi(t),d=r.get("showMinLabel")||h,p=r.get("showMaxLabel")||h;d&&c!==a[0]&&g(a[0]);for(var f=c;f<=a[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return p&&f-l!==a[1]&&g(a[1]),s}function Wr(t,e,n){var i=t.scale,o=Li(t),a=[];return m["j"](i.getTicks(),(function(t){var r=i.getLabel(t),s=t.value;e(t.value,r)&&a.push(n?s:{formattedLabel:o(t),rawLabel:r,tickValue:s})})),a}var Zr=[0,1],Xr=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(Lt["c"])(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),Yr(n,i.count())),Object(Lt["h"])(t,Zr,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),Yr(n,i.count()));var o=Object(Lt["h"])(t,n,Zr,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=kr(this,e),i=n.ticks,o=Object(m["F"])(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),a=e.get("alignWithLabel");return $r(this,o,a,t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Object(m["F"])(n,(function(t){return Object(m["F"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return Dr(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return Vr(this)},t}();function Yr(t,e){var n=t[1]-t[0],i=e,o=n/i/2;t[0]+=o,t[1]-=o}function $r(t,e,n,i){var o=e.length;if(t.onBand&&!n&&o){var a,r,s=t.getExtent();if(1===o)e[0].coord=s[0],a=e[1]={coord:s[0]};else{var l=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/l;Object(m["j"])(e,(function(t){t.coord-=c/2}));var u=t.scale.getExtent();r=1+u[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*r},e.push(a)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],a.coord)&&(i?a.coord=s[1]:e.pop()),i&&d(a.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=Object(Lt["o"])(t),e=Object(Lt["o"])(e),h?t>e:t<e}}var Ur=Xr,qr=function(t){function e(e,n,i,o,a){var r=t.call(this,e,n,i)||this;return r.index=0,r.type=o||"value",r.position=a||"bottom",r}return Object(g["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.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},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ur),Kr=qr,Jr=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ir,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),Object(m["j"])(n.x,(function(t){Ti(t.scale,t.model)})),Object(m["j"])(n.y,(function(t){Ti(t.scale,t.model)}));var i={};Object(m["j"])(n.x,(function(t){ts(n,"y",t,i)})),Object(m["j"])(n.y,(function(t){ts(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Object(ma["d"])(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var r=this._axesList;function s(){Object(m["j"])(r,(function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),ns(t,e?a.x:a.y)}))}s(),o&&(Object(m["j"])(r,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Ei(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}})),s()),Object(m["j"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(m["x"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",W["b"]).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",W["b"]).models[0],r=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,Object(m["p"])(s,e)<0&&(e=null);else if(o&&a)e=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(r){var l=r.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Qr(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=a.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=a.left?"right":"left"),a[l]=!0;var c=new Kr(e,Di(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=o,c.index=i,o._axesList.push(c),r[e][i]=c,s[e]++}}}this._axesMap=r,Object(m["j"])(r.x,(function(e,n){Object(m["j"])(r.y,(function(o,a){var r="x"+n+"y"+a,s=new Cr(r);s.master=i,s.model=t,i._coordsMap[r]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(o)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(m["j"])(Gi(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(m["j"])(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(ho(t)){var i=po(t),o=i.xAxisModel,a=i.yAxisModel;if(!Qr(o,e)||!Qr(a,e))return;var r=this.getCartesian(o.componentIndex,a.componentIndex),s=t.getData(),l=r.getAxis("x"),c=r.getAxis("y");"list"===s.type&&(n(s,l),n(s,c))}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(m["j"])(this.getCartesians(),(function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);Object(m["p"])(e,o)<0&&e.push(o),Object(m["p"])(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(o,a){var r=new t(o,e,n);r.name="grid_"+a,r.resize(o,n,!0),o.coordinateSystem=r,i.push(r)})),e.eachSeries((function(t){if(ho(t)){var e=po(t),n=e.xAxisModel,i=e.yAxisModel,o=n.getCoordSysModel();0;var a=o.coordinateSystem;t.coordinateSystem=a.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=Ir,t}();function Qr(t,e){return t.getCoordSysModel()===e}function ts(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],r=n.model,s=r.get(["axisLine","onZero"]),l=r.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)es(a[l])&&(o=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&es(a[c])&&!i[u(a[c])]){o=a[c];break}o&&(i[u(o)]=!0)}function u(t){return t.dim+"_"+t.index}}function es(t){return t&&"category"!==t.type&&"time"!==t.type&&ki(t)}function ns(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var is=Jr,os=Object(W["m"])();function as(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitArea"),r=a.getModel("areaStyle"),s=r.get("color"),l=i.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var u=s.length,h=os(t).splitAreaColors,d=m["f"](),p=0;if(h)for(var f=0;f<c.length;f++){var g=h.get(c[f].tickValue);if(null!=g){p=(g+(u-1)*f)%u;break}}var v=o.toGlobalCoord(c[0].coord),y=r.getAreaStyle();s=m["r"](s)?s:[s];for(f=1;f<c.length;f++){var x=o.toGlobalCoord(c[f].coord),b=void 0,_=void 0,w=void 0,O=void 0;o.isHorizontal()?(b=v,_=l.y,w=x-b,O=l.height,v=b+w):(b=l.x,_=v,w=l.width,O=x-_,v=_+O);var S=c[f-1].tickValue;null!=S&&d.set(S,p),e.add(new fe["a"]({anid:null!=S?"area_"+S:null,shape:{x:b,y:_,width:w,height:O},style:m["i"]({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}os(t).splitAreaColors=d}}}function rs(t){os(t).splitAreaColors=null}var ss=["axisLine","axisTickLabel","axisName"],ls=["splitArea","splitLine","minorSplitLine"],cs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(g["a"])(e,t),e.prototype.render=function(e,n,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Ct["a"],this.group.add(this._axisGroup),e.get("show")){var r=e.getCoordSysModel(),s=uo(r,e),l=new eo(e,m["l"]({handleAutoShown:function(t){for(var n=r.coordinateSystem.getCartesians(),i=0;i<n.length;i++){var o=n[i].getOtherAxis(e.axis).type;if("value"===o||"log"===o)return!0}return!1}},s));m["j"](ss,l.add,l),this._axisGroup.add(l.getGroup()),m["j"](ls,(function(t){e.get([t,"show"])&&us[t](this,this._axisGroup,e,r)}),this),Tt["groupTransition"](a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,o)}},e.prototype.remove=function(){rs(this)},e.type="cartesianAxis",e}(on),us={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),r=a.getModel("lineStyle"),s=r.get("color");s=m["r"](s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=o.isHorizontal(),u=0,h=o.getTicksCoords({tickModel:a}),d=[],p=[],f=r.getLineStyle(),g=0;g<h.length;g++){var v=o.toGlobalCoord(h[g].coord);c?(d[0]=v,d[1]=l.y,p[0]=v,p[1]=l.y+l.height):(d[0]=l.x,d[1]=v,p[0]=l.x+l.width,p[1]=v);var y=u++%s.length,x=h[g].tickValue;e.add(new Vi["a"]({anid:null!=x?"line_"+h[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:m["i"]({stroke:s[y]},f),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var o=n.axis,a=n.getModel("minorSplitLine"),r=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),c=o.getMinorTicksCoords();if(c.length)for(var u=[],h=[],d=r.getLineStyle(),p=0;p<c.length;p++)for(var f=0;f<c[p].length;f++){var g=o.toGlobalCoord(c[p][f].coord);l?(u[0]=g,u[1]=s.y,h[0]=g,h[1]=s.y+s.height):(u[0]=s.x,u[1]=g,h[0]=s.x+s.width,h[1]=g),e.add(new Vi["a"]({anid:"minor_line_"+c[p][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:d,silent:!0}))}},splitArea:function(t,e,n,i){as(t,e,n,i)}},hs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.type="xAxis",e}(cs),ds=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=hs.type,e}return Object(g["a"])(e,t),e.type="yAxis",e}(cs),ps=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Object(g["a"])(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new fe["a"]({shape:t.coordinateSystem.getRect(),style:Object(m["i"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(tn["a"]),fs={offset:0};function gs(t){t.registerComponentView(ps),t.registerComponentModel(dr),t.registerCoordinateSystem("cartesian2d",is),wr(t,"x",fr,fs),wr(t,"y",fr,fs),t.registerComponentView(hs),t.registerComponentView(ds),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function ms(t){Object(p["a"])(gs),Object(p["a"])(Yo)}var vs={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ys=function(){function t(t){var e=this._condVal=Object(m["A"])(t)?new RegExp(t):Object(m["z"])(t)?t:null;if(null==e){var n="";0,Object(ua["b"])(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return"string"===e?this._condVal.test(t):"number"===e&&this._condVal.test(t+"")},t}(),xs=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),bs=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),_s=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),ws=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Os=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(t?i:n))return!1;return!0},t}();function Ss(t,e){if(!0===t||!1===t){var n=new xs;return n.value=t,n}var i="";return js(t)||Object(ua["b"])(i),t.and?Ms("and",t,e):t.or?Ms("or",t,e):t.not?Is(t,e):As(t,e)}function Ms(t,e,n){var i=e[t],o="";Object(m["r"])(i)||Object(ua["b"])(o),i.length||Object(ua["b"])(o);var a="and"===t?new bs:new _s;return a.children=Object(m["F"])(i,(function(t){return Ss(t,n)})),a.children.length||Object(ua["b"])(o),a}function Is(t,e){var n=t.not,i="";js(n)||Object(ua["b"])(i);var o=new ws;return o.child=Ss(n,e),o.child||Object(ua["b"])(i),o}function As(t,e){for(var n="",i=e.prepareGetValue(t),o=[],a=Object(m["D"])(t),r=t.parser,s=r?Object(X["c"])(r):null,l=0;l<a.length;l++){var c=a[l];if("parser"!==c&&!e.valueGetterAttrMap.get(c)){var u=Object(m["o"])(vs,c)?vs[c]:c,h=t[c],d=s?s(h):h,p=Object(X["b"])(u,d)||"reg"===u&&new ys(d);p||Object(ua["b"])(n),o.push(p)}}o.length||Object(ua["b"])(n);var f=new Os;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=o,f}function js(t){return Object(m["x"])(t)&&!Object(m["s"])(t)}var Cs=function(){function t(t,e){this._cond=Ss(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function Ts(t,e){return new Cs(t,e)}var Ds={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=Ts(t.config,{valueGetterAttrMap:Object(m["f"])({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;Object(m["o"])(t,"dimension")||Object(ua["b"])(e);var o=n.getDimensionInfo(i);return o||Object(ua["b"])(e),{dimIdx:o.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),o=[],a=0,r=n.count();a<r;a++)e=n.getRawDataItem(a),i.evaluate()&&o.push(e);return{data:o}}};var ks={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",o=Object(W["o"])(n);o.length||Object(ua["b"])(i);var a=[];Object(m["j"])(o,(function(t){var n=t.dimension,o=t.order,r=t.parser,s=t.incomparable;if(null==n&&Object(ua["b"])(i),"asc"!==o&&"desc"!==o&&Object(ua["b"])(i),s&&"min"!==s&&"max"!==s){var l="";0,Object(ua["b"])(l)}if("asc"!==o&&"desc"!==o){var c="";0,Object(ua["b"])(c)}var u=e.getDimensionInfo(n);u||Object(ua["b"])(i);var h=r?Object(X["c"])(r):null;r&&!h&&Object(ua["b"])(i),a.push({dimIdx:u.index,parser:h,comparator:new X["a"](o,s)})}));var r=e.sourceFormat;r!==O["c"]&&r!==O["e"]&&Object(ua["b"])(i);for(var s=[],l=0,c=e.count();l<c;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<a.length;i++){var o=a[i],r=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx);o.parser&&(r=o.parser(r),s=o.parser(s));var l=o.comparator.evaluate(r,s);if(0!==l)return l}return 0})),{data:s}}};function Ls(t){t.registerTransform(Ds),t.registerTransform(ks)}var Ps=["x","y","radius","angle","single"],Es=["cartesian2d","polar","singleAxis"];function Ns(t){var e=t.get("coordinateSystem");return Object(m["p"])(Es,e)>=0}function Rs(t){return t+"Axis"}function zs(t,e){var n,i=Object(m["f"])(),o=[],a=Object(m["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",r)}while(n);function r(t){!a.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){a.set(t.uid,!0),o.push(t),c(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var o=i.get(t);o&&o[n]&&(e=!0)})),e}function c(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function Gs(t){var e=t.ecModel,n={infoList:[],infoMap:Object(m["f"])()};return t.eachTargetAxis((function(t,i){var o=e.getComponent(Rs(t),i);if(o){var a=o.getCoordSysModel();if(a){var r=a.uid,s=n.infoMap.get(r);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(r,s)),s.axisModels.push(o)}}})),n}var Bs=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),Vs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(g["a"])(e,t),e.prototype.init=function(t,e,n){var i=Fs(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=Fs(t);Object(m["G"])(this.option,t,!0),Object(m["G"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(m["j"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(m["f"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(m["j"])(Ps,(function(n){var i=this.getReferringComponents(Rs(n),W["a"]);if(i.specified){e=!0;var o=new Bs;Object(m["j"])(i.models,(function(t){o.add(t.componentIndex)})),t.set(n,o)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var o="vertical"===e?"y":"x",a=n.findComponents({mainType:o+"Axis"});r(a,o)}if(i){a=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});r(a,"single")}function r(e,n){var o=e[0];if(o){var a=new Bs;if(a.add(o.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var r=o.getReferringComponents("grid",W["b"]).models[0];r&&Object(m["j"])(e,(function(t){o.componentIndex!==t.componentIndex&&r===t.getReferringComponents("grid",W["b"]).models[0]&&a.add(t.componentIndex)}))}}}i&&Object(m["j"])(Ps,(function(e){if(i){var o=n.findComponents({mainType:Rs(e),filter:function(t){return"category"===t.get("type",!0)}});if(o[0]){var a=new Bs;a.add(o[0].componentIndex),t.set(e,a),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._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}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(m["j"])([["start","startValue"],["end","endValue"]],(function(i,o){var a=null!=t[i[0]],r=null!=t[i[1]];a&&!r?e[o]="percent":!a&&r?e[o]="value":n?e[o]=n[o]:a&&(e[o]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(Rs(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(m["j"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(Rs(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(m["j"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(m["j"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.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},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],a=this._targetAxisInfoMap.get(o),r=0;r<a.indexList.length;r++){var s=this.getAxisProxy(o,a.indexList[r]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},e}(xo["a"]);function Fs(t){var e={};return Object(m["j"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var Hs=Vs,Ws=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.type="dataZoom.inside",e.defaultOption=Object(Qa["d"])(Hs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Hs),Zs=Ws,Xs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(tn["a"]),Ys=Xs;function $s(t,e,n,i,o,a){t=t||0;var r=n[1]-n[0];if(null!=o&&(o=qs(o,[0,r])),null!=a&&(a=Math.max(a,null!=o?o:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=qs(s,[0,r]),o=a=qs(s,[o,a]),i=0}e[0]=qs(e[0],n),e[1]=qs(e[1],n);var l=Us(e,i);e[i]+=t;var c,u=o||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,e[i]=qs(e[i],h),c=Us(e,i),null!=o&&(c.sign!==l.sign||c.span<o)&&(e[1-i]=e[i]+l.sign*o),c=Us(e,i),null!=a&&c.span>a&&(e[1-i]=e[i]+c.sign*a),e}function Us(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 qs(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var Ks=n("6fd3"),Js="\0_ec_interaction_mutex";function Qs(t,e){return!!tl(t)[e]}function tl(t){return t[Js]||(t[Js]={})}f["c"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){}));var el=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Object(m["c"])(n._mousedownHandler,n),o=Object(m["c"])(n._mousemoveHandler,n),a=Object(m["c"])(n._mouseupHandler,n),r=Object(m["c"])(n._mousewheelHandler,n),s=Object(m["c"])(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(m["i"])(Object(m["d"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",r),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",r),e.off("pinch",s)},n}return Object(g["a"])(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(an["d"](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)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&ol("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Qs(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,o=this._y,a=e-i,r=n-o;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&an["g"](t.event),il(this,"pan","moveOnMouseMove",t,{dx:a,dy:r,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){an["d"](t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=ol("zoomOnMouseWheel",t,this._opt),n=ol("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),a=t.offsetX,r=t.offsetY;if(0!==i&&(e||n)){if(e){var s=o>3?1.4:o>1?1.2:1.1,l=i>0?s:1/s;nl(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:r,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);nl(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:a,originY:r,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Qs(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;nl(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ks["a"]);function nl(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(an["g"](i.event),il(t,e,n,i,o))}function il(t,e,n,i,o){o.isAvailableBehavior=Object(m["c"])(ol,null,n,i),t.trigger(e,o)}function ol(t,e,n){var i=n[t];return!t||i&&(!Object(m["A"])(i)||e.event[i+"Key"])}var al=el,rl=Object(W["m"])();function sl(t,e,n){rl(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function ll(t,e){for(var n=rl(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var a=i[o],r=n.get(a),s=r.dataZoomInfoMap;if(s){var l=e.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||cl(n,r))}}}function cl(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function ul(t,e){var n={model:e,containsPoint:Object(m["h"])(dl,e),dispatchAction:Object(m["h"])(hl,t),dataZoomInfoMap:null,controller:null},i=n.controller=new al(t.getZr());return Object(m["j"])(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(o){if(e.isAvailableBehavior(o.model.option)){var a=(o.getRange||{})[t],r=a&&a(o.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!o.model.get("disabled",!0)&&r&&i.push({dataZoomId:o.model.id,start:r[0],end:r[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function hl(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function dl(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function pl(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return t.each((function(t){var a=t.model,r=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");i[n+r]>i[n+e]&&(e=r),o=o&&a.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function fl(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=rl(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(m["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=Gs(t);Object(m["j"])(n.infoList,(function(n){var o=n.model.uid,a=i.get(o)||i.set(o,ul(e,n.model)),r=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(m["f"])());r.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,o=t.dataZoomInfoMap;if(o){var a=o.keys()[0];null!=a&&(e=o.get(a))}if(e){var r=pl(o);n.enable(r.controlType,r.opt),n.setPointerChecker(t.containsPoint),rn["b"](t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else cl(i,t)}))}))}var gl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(g["a"])(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),sl(i,e,{pan:Object(m["c"])(ml.pan,this),zoom:Object(m["c"])(ml.zoom,this),scrollMove:Object(m["c"])(ml.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ll(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Ys),ml={zoom:function(t,e,n,i){var o=this.range,a=o.slice(),r=t.axisModels[0];if(r){var s=yl[e](null,[i.originX,i.originY],r,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/i.scale,0);a[0]=(a[0]-l)*c+l,a[1]=(a[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return $s(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}},pan:vl((function(t,e,n,i,o,a){var r=yl[i]([a.oldX,a.oldY],[a.newX,a.newY],e,o,n);return r.signal*(t[1]-t[0])*r.pixel/r.pixelLength})),scrollMove:vl((function(t,e,n,i,o,a){var r=yl[i]([0,0],[a.scrollDelta,a.scrollDelta],e,o,n);return r.signal*(t[1]-t[0])*a.scrollDelta}))};function vl(t){return function(e,n,i,o){var a=this.range,r=a.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,n,i,o);return $s(l,r,[0,100],"all"),this.range=r,a[0]!==r[0]||a[1]!==r[1]?r:void 0}}}var yl={grid:function(t,e,n,i,o){var a=n.axis,r={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=a.inverse?-1:1),r},polar:function(t,e,n,i,o){var a=n.axis,r={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=c[1]-c[0],r.pixelStart=c[0],r.signal=a.inverse?-1:1),r},singleAxis:function(t,e,n,i,o){var a=n.axis,r=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=a.inverse?-1:1),s}},xl=gl,bl=m["j"],_l=Lt["a"],wl=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(Ns(e)){var n=Rs(this._dimName),i=e.getReferringComponents(n,W["b"]).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return m["d"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),r=[0,100],s=[],l=[];bl(["start","end"],(function(i,c){var u=t[i],h=t[i+"Value"];"percent"===a[c]?(null==u&&(u=r[c]),h=o.parse(Lt["h"](u,r,n))):(e=!0,h=null==h?n[c]:o.parse(h),u=Lt["h"](h,n,r)),l[c]=h,s[c]=u})),_l(l),_l(s);var c=this._minMaxSpan;function u(t,e,n,i,a){var r=a?"Span":"ValueSpan";$s(0,t,n,"all",c["min"+r],c["max"+r]);for(var s=0;s<2;s++)e[s]=Lt["h"](t[s],n,i,!0),a&&(e[s]=o.parse(e[s]))}return e?u(l,s,n,r,!1):u(s,l,r,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Ol(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&bl(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);i.length&&("weakFilter"===o?e.filterSelf((function(t){for(var n,o,r,s=0;s<i.length;s++){var l=e.get(i[s],t),c=!isNaN(l),u=l<a[0],h=l>a[1];if(c&&!u&&!h)return!0;c&&(r=!0),u&&(n=!0),h&&(o=!0)}return r&&n&&o})):bl(i,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return r(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}})),bl(i,(function(t){e.setApproximateExtent(a,t)})))}))}function r(t){return t>=a[0]&&t<=a[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;bl(["min","max"],(function(i){var o=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?o=Lt["h"](n[0]+a,n,[0,100],!0):null!=o&&(a=Lt["h"](o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=a}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Lt["c"](n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;0!==e[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},t}();function Ol(t,e,n){var i=[1/0,-1/0];bl(n,(function(t){Bi(i,t.getData(),e)}));var o=t.getAxisModel(),a=Ii(o.axis.scale,o,i).calculate();return[a.min,a.max]}var Sl=wl,Ml={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var a=t.getComponent(Rs(i),o);e(i,o,a,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,o,a){o.__dzAxisProxy||(o.__dzAxisProxy=new Sl(e,i,a,t),n.push(o.__dzAxisProxy))}));var i=Object(m["f"])();return Object(m["j"])(n,(function(t){Object(m["j"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},Il=Ml;function Al(t){t.registerAction("dataZoom",(function(t,e){var n=zs(e,t);Object(m["j"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var jl=!1;function Cl(t){jl||(jl=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Il),Al(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Tl(t){Cl(t),t.registerComponentModel(Zs),t.registerComponentView(xl),fl(t)}var Dl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(g["a"])(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(Qa["d"])(Hs.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Hs),kl=Dl,Ll=n("87b1"),Pl=n("d498"),El=n("dce8"),Nl=fe["a"],Rl=7,zl=1,Gl=30,Bl=7,Vl="horizontal",Fl="vertical",Hl=5,Wl=["line","bar","candlestick","scatter"],Zl={easing:"cubicOut",duration:100},Xl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(g["a"])(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(m["c"])(this._onBrush,this),this._onBrushEnd=Object(m["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,o){if(t.prototype.render.apply(this,arguments),rn["b"](this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){rn["a"](this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Ct["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?Bl:0,o=this._findCoordRect(),a={width:e.getWidth(),height:e.getHeight()},r=this._orient===Vl?{right:a.width-o.x-o.width,top:a.height-Gl-Rl-i,width:o.width,height:Gl}:{right:Rl,top:o.y,width:Gl,height:o.height},s=ma["c"](t.option);Object(m["j"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=r[t])}));var l=ma["d"](s,a);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===Fl&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),a=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==Vl||o?n===Vl&&o?{scaleY:r?1:-1,scaleX:-1}:n!==Fl||o?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1});var s=t.getBoundingRect([a]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Nl({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Nl({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(m["c"])(this._onClickPanel,this)}),a=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),o=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=o){var a=i.getDataExtent(o),r=.3*(a[1]-a[0]);a=[a[0]-r,a[1]+r];var s,l=[0,e[1]],c=[0,e[0]],u=[[e[0],0],[0,0]],h=[],d=c[1]/(i.count()-1),p=0,f=Math.round(i.count()/e[0]);i.each([o],(function(t,e){if(f>0&&e%f)p+=d;else{var n=null==t||isNaN(t)||""===t,i=n?0:Object(Lt["h"])(t,a,l,!0);n&&!s&&e?(u.push([u[u.length-1][0],0]),h.push([h[h.length-1][0],0])):!n&&s&&(u.push([p,0]),h.push([p,0])),u.push([p,i]),h.push([p,i]),p+=d,s=n}}));for(var g=this.dataZoomModel,m=0;m<3;m++){var v=y(1===m);this._displayables.sliderGroup.add(v),this._displayables.dataShadowSegs.push(v)}}}function y(t){var e=g.getModel(t?"selectedDataBackground":"dataBackground"),n=new Ct["a"],i=new Ll["a"]({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new Pl["a"]({shape:{points:h},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(o,a){var r=t.getAxisProxy(o,a).getTargetSeriesModels();Object(m["j"])(r,(function(t){if(!n&&!(!0!==e&&Object(m["p"])(Wl,t.get("type"))<0)){var r,s=i.getComponent(Rs(o),a).axis,l=Yl(o),c=t.coordinateSystem;null!=l&&c.getOtherAxis&&(r=c.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:o,otherDim:l,otherAxisInverse:r}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],o=this._displayables.sliderGroup,a=this._size,r=this.dataZoomModel,s=this.api,l=r.get("borderRadius")||0,c=r.get("brushSelect"),u=e.filler=new Nl({silent:c,style:{fill:r.get("fillerColor")},textConfig:{position:"inside"}});o.add(u),o.add(new Nl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:zl,fill:"rgba(0,0,0,0)"}})),Object(m["j"])([0,1],(function(e){var a=r.get("handleIcon");!Dt["b"][a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=Object(Dt["a"])(a,-1,0,2,2,null,!0);s.attr({cursor:$l(this._orient),draggable:!0,drift:Object(m["c"])(this._onDragMove,this,e),ondragend:Object(m["c"])(this._onDragEnd,this),onmouseover:Object(m["c"])(this._showDataInfo,this,!0),onmouseout:Object(m["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=r.get("handleSize");this._handleHeight=Object(Lt["l"])(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(r.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(kt["j"])(s);var u=r.get("handleColor");null!=u&&(s.style.fill=u),o.add(n[e]=s);var h=r.getModel("textStyle");t.add(i[e]=new ee["a"]({silent:!0,invisible:!0,style:{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()},z2:10}))}),this);var h=u;if(c){var d=Object(Lt["l"])(r.get("moveHandleSize"),a[1]),p=e.moveHandle=new fe["a"]({style:r.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=Object(Dt["a"])(r.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=a[1]+d/2-.5,p.ensureState("emphasis").style=r.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(a[1]/2,Math.max(d,10));h=e.moveZone=new fe["a"]({invisible:!0,shape:{y:a[1]-v,height:d+v}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),o.add(p),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:$l(this._orient),drift:Object(m["c"])(this._onDragMove,this,"all"),ondragstart:Object(m["c"])(this._showDataInfo,this,!0),ondragend:Object(m["c"])(this._onDragEnd,this),onmouseover:Object(m["c"])(this._showDataInfo,this,!0),onmouseout:Object(m["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(Lt["h"])(t[0],[0,100],e,!0),Object(Lt["h"])(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];$s(e,i,o,n.get("zoomLock")?"all":t,null!=a.minSpan?Object(Lt["h"])(a.minSpan,r,o,!0):null,null!=a.maxSpan?Object(Lt["h"])(a.maxSpan,r,o,!0):null);var s=this._range,l=this._range=Object(Lt["a"])([Object(Lt["h"])(i[0],o,r,!0),Object(Lt["h"])(i[1],o,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Object(Lt["a"])(n.slice()),o=this._size;Object(m["j"])([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scaleX:a/2,scaleY:a/2,x:n[t]+(t?-1:1),y:o[1]/2-a/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var a={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(a),e.moveZone.setShape(a),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",a.x+a.width/2));for(var r=e.dataShadowSegs,s=[0,i[0],i[1],o[0]],l=0;l<r.length;l++){var c=r[l],u=c.getClipPath();u||(u=new fe["a"],c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,a=["",""];if(e.get("showDetail")){var r=e.findRepresentativeAxisProxy();if(r){var s=r.getAxisModel().axis,l=this._range,c=t?r.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:r.getDataValueWindow();a=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=Object(Lt["a"])(this._handleEnds.slice());function h(t){var e=Tt["getTransform"](n.handles[t].parent,this.group),r=Tt["transformDirection"](0===t?"right":"left",e),s=this._handleWidth/2+Hl,l=Tt["applyTransform"]([u[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:o===Vl?"middle":r,align:o===Vl?r:"center",text:a[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Object(m["u"])(i)?i(t,a):Object(m["A"])(i)?i.replace("{value}",a):a},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,an["g"](i.event);var o=this._displayables.sliderGroup.getLocalTransform(),a=Tt["applyTransform"]([e,n],o,!0),r=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),r&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-o);this._updateView(),a&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new El["a"](e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),a=[0,100];this._range=Object(Lt["a"])([Object(Lt["h"])(n.x,o,a,!0),Object(Lt["h"])(n.x+n.width,o,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(an["g"](t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Nl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var a=this._brushStart,r=this._displayables.sliderGroup,s=r.transformCoordToLocal(t,e),l=r.transformCoordToLocal(a.x,a.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Zl:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=Gs(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(Ys);function Yl(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function $l(t){return"vertical"===t?"ns-resize":"ew-resize"}var Ul=Xl;function ql(t){t.registerComponentModel(kl),t.registerComponentView(Ul),Cl(t)}function Kl(t){Object(p["a"])(Tl),Object(p["a"])(ql)}var Jl,Ql=n("5e81"),tc=n("f95e"),ec="#15E3F3",nc=function(){return{axisLine:{lineStyle:{color:ec}},axisTick:{show:!0,lineStyle:{color:ec}},axisLabel:{show:!0,color:ec},splitLine:{show:!1,lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:ec}}}},ic=["#15E3F3","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],oc={color:ic,backgroundColor:"",tooltip:{axisPointer:{lineStyle:{color:ec},crossStyle:{color:ec},label:{color:"#000"}}},legend:{textStyle:{color:ec}},textStyle:{color:ec},title:{textStyle:{color:ec}},toolbox:{iconStyle:{borderColor:ec}},dataZoom:{textStyle:{color:ec}},visualMap:{textStyle:{color:ec}},timeline:{lineStyle:{color:ec},itemStyle:{color:ic[1]},label:{color:ec},controlStyle:{color:ec,borderColor:ec}},timeAxis:nc(),logAxis:nc(),valueAxis:nc(),categoryAxis:nc(),line:{symbol:"circle"},graph:{color:ic},gauge:{title:{textStyle:{color:ec}}},candlestick:{itemStyle:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}};f["l"]("transparent",oc),p["a"]([Fe,Da,Pa,ur,ms,Ls,Kl,Tl,Ql["a"],tc["a"]]);var ac,rc=null,sc={props:{title:{type:String,default:""},height:{type:[Number,String],default:300},maxSize:{type:Boolean,default:!1},id:{type:String,default:""},"show-zoom":{type:Boolean,default:!1},zoom:{type:Boolean,default:!0},end:{type:Number,default:100},subtext:{type:Boolean,default:!1},"trigger-on":{type:String,default:"mousemove"},delay:{type:Number,default:3e3},categoryLen:{type:Number,default:1},showXaxis:{type:Boolean,default:!1},subTitleWidth:[String,Number],titleSplitLen:{type:Number,default:20}},data:function(){return{tooltip:{triggerOn:this.triggerOn},dataZoom:{show:this.showZoom,disabled:this.zoom,start:0,end:this.end},isFull:!1,dataIndex:-1,unit:[]}},methods:{setTest:function(t){var e=this,n=this.$refs.root.offsetHeight,i=this.dataZoom,o=this;this.showZoom&&(n-=30),this.showXaxis&&(n-=50);var a=n/this.categoryLen-2,r={title:{text:""},tooltip:{trigger:"axis",confine:!0,hideDelay:500,formatter:function(t){for(var e=t[0].name,n=0;n<t.length;n++)e+="<br>"+t[n].marker+t[n].seriesName+": <br>"+t[n].value["dev_value"]+" "+o.unit[t[n].axisIndex]+"<span style='display: inline-block;margin-right: 8px'></span>";return e}},xAxis:{type:"category"},yAxis:{name:""},axisPointer:{snap:!0,link:{xAxisIndex:"all"}},animation:!1};if(t.dataset&&t.dataset.length){var s=[],l=[],c=[],u=[],h=[],d=[],p=[],f=new RegExp("(\\S{"+this.titleSplitLen+"})","g");t.dataset.forEach((function(t,n,i){s.push({left:"left",text:t.name.length>e.titleSplitLen?t.name.replace(f,"$1\n"):t.name,textStyle:{fontSize:12},top:a*n+a/2-12}),l.push({left:e.subTitleWidth?e.subTitleWidth:80,right:40,top:a*n,height:a}),c.push({show:n==i.length-1,type:"category",gridIndex:n,boundaryGap:!1}),u.push({show:!1,gridIndex:n,splitLine:{show:!1}}),h.push({type:"line",datasetIndex:n,name:t.name,smooth:!t.step,symbolSize:0,data:t.data,step:!!t.step,encode:{x:0,y:1},lineStyle:{width:1},emphasis:{scale:!1,lineStyle:{width:1}},xAxisIndex:n,yAxisIndex:n}),e.unit.push(t.unit),d.push(n),p.push({dimensions:t.dimensions,source:t.source})})),r.dataset=p,r.title=s,r.grid=l,r.xAxis=c,r.yAxis=u,r.series=h,r.dataZoom=[{type:"inside",minSpan:.05,xAxisIndex:d},{type:"slider",show:i.show,xAxisIndex:d,realtime:!1,bottom:"0",left:"20",right:"20px",brushSelect:!1,handleStyle:{color:"rgba(200, 200, 200, .1)"},fillerColor:"rgba(167,183,204,0.1)",dataBackground:{lineStyle:{color:"#15E3F3"},areaStyle:{color:"#15E3F3",opacity:0}}}]}this.$G.chartManage.get(this.id).setOption(r)},setOption:function(t){var e=this,n=this.dataZoom,i=this,o=this.$refs.root.offsetHeight;this.showZoom&&(o-=30),this.showXaxis&&(o-=30);var a=o/this.categoryLen-2,r={dataset:t.dataset||[{source:[]}],tooltip:{trigger:"axis",confine:!0,hideDelay:500,formatter:function(t){for(var e=t[0].name,n=0;n<t.length;n++)e+="<br>"+t[n].marker+t[n].seriesName+": "+t[n].value+" "+i.unit[t[n].axisIndex];return e}},xAxis:{type:"category",show:!1,data:[]},yAxis:{show:!1},axisPointer:{snap:!0,link:{xAxisIndex:"all"}}},s=[];if(t.xLabel&&(s=t.xLabel),t.series&&t.series.length){var l=[],c=[],u=[],h=[],d=[],p=[],f=new RegExp("(\\S{"+this.titleSplitLen+"})","g");t.series.forEach((function(t,n,i){l.push({left:"left",text:t.name.length>e.titleSplitLen?t.name.replace(f,"$1\n"):t.name,textStyle:{fontSize:12},top:a*n+a/2-12}),c.push({left:e.subTitleWidth?e.subTitleWidth:80,right:40,top:a*n,height:a}),u.push({show:n==i.length-1,type:"category",gridIndex:n,data:s,boundaryGap:!1}),h.push({show:!1,gridIndex:n,splitLine:{show:!1},max:function(t){return 1.08*t.max}}),d.push({type:"line",datasetIndex:n,encode:{x:0,y:1},xAxisIndex:n,step:!!t.step,yAxisIndex:n}),e.unit.push(t.unit),p.push(n)})),r.title=l,r.grid=c,r.xAxis=u,r.yAxis=h,r.series=d,r.dataZoom=[{show:n.show,start:0,end:n.end,xAxisIndex:p,realtime:!1,bottom:"0",left:"20",right:"20px",fillerColor:"rgba(167,183,204,0.1)",dataBackground:{lineStyle:{color:"#15E3F3"},areaStyle:{color:"#15E3F3",opacity:0}}}]}return this.$G.chartManage.get(this.id).setOption(r),this.$G.chartManage.get(this.id)}},computed:{getStyle:function(){var t=this.height;return"number"==typeof t&&(t+="px"),{height:t}},setCanvasHeight:function(){return{height:this.itemHeight*this.categoryLen+"px"}}},mounted:function(){var t=this,e=document.getElementById(this.id);rc=f["b"](e,"transparent"),this.$G.chartManage.set(this.id,rc),this.setTest({}),Jl=function(){t.$G.chartManage.get(t.id)&&t.$G.chartManage.get(t.id).resize()},window.addEventListener("resize",Jl),this.$refs.root.onscroll=function(){}},updated:function(){},destroyed:function(){this.$G.chartManage.del(this.id),window.removeEventListener("resize",Jl)}},lc=sc,cc=(n("25d8"),n("2877")),uc=Object(cc["a"])(lc,h,d,!1,null,"36761dd6",null),hc=uc.exports,dc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"chart-container",class:{maxSize:t.maxSize},style:t.getStyle},[n("div",{staticClass:"chart-content-container",class:{"chart-content-fixed":t.isFull}},[n("div",{staticClass:"chart-content",style:t.getStyle,attrs:{id:t.id}})])])},pc=[];p["a"]([Fe,Da,Pa,ur,ms,Ls,Kl,Tl,Ql["a"],tc["a"]]);var fc=null,gc={props:{title:{type:String,default:""},height:{type:[Number,String],default:300},maxSize:{type:Boolean,default:!1},id:{type:String,default:""},"show-zoom":{type:Boolean,default:!1},zoom:{type:Boolean,default:!0},end:{type:Number,default:100},subtext:{type:Boolean,default:!1},"trigger-on":{type:String,default:"mousemove"},delay:{type:Number,default:3e3},categoryLen:{type:Number,default:1},showXaxis:{type:Boolean,default:!1},subTitleWidth:[String,Number],titleSplitLen:{type:Number,default:20}},data:function(){return{tooltip:{triggerOn:this.triggerOn},dataZoom:{show:this.showZoom,disabled:this.zoom,start:0,end:this.end},isFull:!1,dataIndex:-1,unit:[]}},methods:{setTest:function(t){var e=this.$refs.root.offsetHeight,n=this.dataZoom,i=this;this.showZoom&&(e-=30),this.showXaxis&&(e-=30);var o=e/this.categoryLen-2,a={title:{text:""},tooltip:{trigger:"axis",confine:!0,hideDelay:500,formatter:function(t){for(var e=t[0].name,n=0;n<t.length;n++)e+="<br>"+t[n].value["dateStr"]+": <br>"+t[n].marker+t[n].seriesName+" "+t[n].value["dev_value"]+" "+i.unit[t[n].axisIndex]+"<span style='display: inline-block;margin-right: 8px'></span>";return e}},xAxis:{type:"value",axisLabel:{show:!1}},yAxis:{name:"Income"},animation:!1};t.dataset&&(a.dataset=[{dimensions:t.dataset[0].dimensions,source:t.dataset[0].source}],a.grid={left:this.subTitleWidth?this.subTitleWidth:80,right:40,top:20,height:o},a.series=[{type:"line",datasetIndex:0,connectNulls:!0,name:"电压",encode:{x:2,y:1},lineStyle:{width:1},emphasis:{lineStyle:{width:1}},xAxisIndex:0,yAxisIndex:0}],this.unit.push("A"),a.dataZoom=[{type:"inside",minSpan:3e-4,maxSpan:.07},{type:"slider",show:n.show,xAxisIndex:[0],realtime:!1,bottom:"0",left:"20",right:"20px",brushSelect:!1,handleStyle:{color:"rgba(200, 200, 200, .1)"},fillerColor:"rgba(167,183,204,0.1)",dataBackground:{lineStyle:{color:"#15E3F3"},areaStyle:{color:"#15E3F3",opacity:0}}}]),this.$G.chartManage.get(this.id).setOption(a),console.log(this.$G.chartManage.get(this.id).getOption(),"options")},setOption:function(t){var e=this,n=this.dataZoom,i=this,o=this.$refs.root.offsetHeight;this.showZoom&&(o-=30),this.showXaxis&&(o-=30);var a=o/this.categoryLen-2,r={dataset:t.dataset||[{source:[]}],tooltip:{trigger:"axis",confine:!0,hideDelay:500,formatter:function(t){for(var e=t[0].name,n=0;n<t.length;n++)e+="<br>"+t[n].marker+t[n].seriesName+": "+t[n].value+" "+i.unit[t[n].axisIndex];return e}},xAxis:{type:"category",show:!1,data:[]},yAxis:{show:!1},axisPointer:{snap:!0,link:{xAxisIndex:"all"}}},s=[];if(t.xLabel&&(s=t.xLabel),t.series&&t.series.length){var l=[],c=[],u=[],h=[],d=[],p=[],f=new RegExp("(\\S{"+this.titleSplitLen+"})","g");t.series.forEach((function(t,n,i){l.push({left:"left",text:t.name.length>e.titleSplitLen?t.name.replace(f,"$1\n"):t.name,textStyle:{fontSize:12},top:a*n+a/2-12}),c.push({left:e.subTitleWidth?e.subTitleWidth:80,right:40,top:a*n,height:a}),u.push({show:n==i.length-1,type:"category",gridIndex:n,data:s,boundaryGap:!1}),h.push({show:!1,gridIndex:n,splitLine:{show:!1},max:function(t){return 1.08*t.max}}),d.push({type:"line",datasetIndex:n,encode:{x:0,y:1},xAxisIndex:n,step:!!t.step,yAxisIndex:n}),e.unit.push(t.unit),p.push(n)})),r.title=l,r.grid=c,r.xAxis=u,r.yAxis=h,r.series=d,console.log(d,"===series",u),r.dataZoom=[{show:n.show,start:0,end:n.end,xAxisIndex:p,realtime:!1,bottom:"0",left:"20",right:"20px",fillerColor:"rgba(167,183,204,0.1)",dataBackground:{lineStyle:{color:"#15E3F3"},areaStyle:{color:"#15E3F3",opacity:0}}}]}return this.$G.chartManage.get(this.id).setOption(r),this.$G.chartManage.get(this.id)}},computed:{getStyle:function(){var t=this.height;return"number"==typeof t&&(t+="px"),{height:t}},setCanvasHeight:function(){return{height:this.itemHeight*this.categoryLen+"px"}}},mounted:function(){var t=this,e=document.getElementById(this.id);fc=f["b"](e,"transparent"),this.$G.chartManage.set(this.id,fc),this.setTest({}),ac=function(){t.$G.chartManage.get(t.id)&&t.$G.chartManage.get(t.id).resize()},window.addEventListener("resize",ac),this.$refs.root.onscroll=function(){}},updated:function(){},destroyed:function(){this.$G.chartManage.del(this.id),window.removeEventListener("resize",ac)}},mc=gc,vc=(n("8503"),Object(cc["a"])(mc,dc,pc,!1,null,"20046189",null)),yc=vc.exports;n("4de4"),n("a15b"),n("b64b"),n("1276");function xc(t){return xc="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},xc(t)}function bc(t,e){for(var n in e)t[n]=t[n]&&"[object Object]"===t[n].toString()?bc(t[n],e[n]):e[n];return t}function _c(t,e){for(var n="",i=0;i<=e;i++)n+=(n?">":"")+t[i];return n}function wc(t,e){for(var n={},i=n,o=0,a=t.length-1;o<a;o++)o==a-1?(t[a]["label"]=t[a]["permit_name"],t[a]["id"]=t[a]["permit_id"],e&&(t[a]["pid"]=t[a]["permit_pid"]+"_"+o),i=i[t[o]]=t[a]):i=i[t[o]]=e?{label:_c(t,o),pid:0==o?0:t[a]["permit_pid"]+"_"+o,id:t[a]["permit_pid"]+"_"+(o+1)}:{label:_c(t,o)};return n}function Oc(t,e){var n={},i=0;return t.forEach((function(t){i=t.permit_pid>i?t.permit_pid:i;var o=t.permit_name.split(">");o.push(t);var a=wc(o,e);n=bc(n,a)})),n.maxPid=i,n}function Sc(t){var e={children:[]};return Object.keys(t).forEach((function(n){Ac(t[n])?e.children.push(Sc(t[n])):e[n]=t[n]})),e}function Mc(t,e){for(var n=-1,i=0,o=e.length;i<o;i++)if(e[i]==t){n=i;break}return n}function Ic(t,e){var n=[],i=Cc(e);return"object"==i?Object.keys(e).forEach((function(i){if(i==t)return n.push(e[i]),!0;if(jc(e[i])){var o=Ic(t,e[i]);n=n.concat(o)}})):"array"==i?e.forEach((function(e){if(jc(e)){var i=Ic(t,e);n=n.concat(i)}})):console.info("params type error"),Dc(n)}function Ac(t){return"object"==xc(t)&&t.constructor==Object}function jc(t){return"[object Array]"===Object.prototype.toString.call(t)||"[object Object]"===Object.prototype.toString.call(t)}function Cc(t){var e="";switch(Object.prototype.toString.call(t)){case"[object Object]":e="object";break;case"[object Array]":e="array";break;case"[object Function]":e="function";break;case"[object Number]":e="number";break;case"[object String]":e="string";break;case"[object Boolean]":e="boolean";break}return e}function Tc(t){return"[object Array]"===Object.prototype.toString.call(t)}function Dc(t){return t.filter((function(e,n){return t.indexOf(e)===n}))}function kc(t){var e=new Date,n=e.getFullYear(),i=e.getMonth(),o=e.getDate(),a=e.getHours(),r=e.getMinutes(),s=e.getSeconds();i+=1,i<10&&(i="0"+i),o<10&&(o="0"+o),a<10&&(a="0"+a),r<10&&(r="0"+r),s<10&&(s="0"+s);var l="";return l="time"==t?n+"-"+i+"-"+o+" "+a+":"+r+":"+s:n+"-"+i+"-"+o,l}function Lc(t,e,n,i,o){if(!o)return{width:0,height:0,left:0,top:0,right:0,bottom:0};var a,r={},s=n/i;if(t/e>s){a=e/i;var l=(t-e*s)/2;r.width=o.width*a,r.height=o.height*a,r.top=o.top*a,r.bottom=o.bottom*a,r.left=o.left*a+l,r.right=o.right*a+l}else{a=t/n;var c=(e-t/s)/2;r.width=o.width*a,r.height=o.height*a,r.top=o.top*a+c,r.bottom=o.bottom*a+c,r.left=o.left*a,r.right=o.right*a}return r}var Pc=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},Ec=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout,Nc=function(t){var e=/(?:\S*_)(\d+).csv$/g;return e.exec(t),RegExp.$1},Rc=function(t,e){t=t.toString();var n=t.length;return e=e||2,n<e&&(t=new Array(e-n+1).join("0")+t),t},zc={transSize:Lc,unique:Dc,getJSType:Cc,getIdxFromArr:Mc,getAllAttr:Ic,deepObjMerge:bc,permitsToObj:Oc,objFormat:Sc,getCurrentDate:kc,getMinFromUrl:Nc,RAF:Pc,CAF:Ec,numAdd0:Rc,isArray:Tc,setLocalStorage:function(t,e){var n="object"==xc(e)?JSON.stringify(e):e;return window.localStorage.setItem(t,n),!0},getLocalStorage:function(t){return!!window.localStorage.getItem(t)&&window.localStorage.getItem(t)},delLocalStorage:function(t){return window.localStorage.removeItem(t),!0},clearLocalStorage:function(){return window.localStorage.clear(),!0},setSession:function(t,e){var n="object"==xc(e)?JSON.stringify(e):e;return window.sessionStorage.setItem(t,n),!0},getSession:function(t){return!!window.sessionStorage.getItem(t)&&window.sessionStorage.getItem(t)},delSession:function(t){return window.sessionStorage.removeItem(t),!0},clearSession:function(){return window.sessionStorage.clear(),!0},getParentsByClassName:function(t,e){var n=t.parentNode;return!!n&&(n.classList.contains(e)?n:this.getParentsByClassName(n,e))},getDate:function(t){19==t.length&&/\s/g.test(t)||console.error("参数错误");var e=t.split(" ");return e[0]},getTime:function(t){19==t.length&&/\s/g.test(t)||console.error("参数错误");var e=t.split(" ");return e[1]}},Gc=[],Bc=[-1,-1],Vc="/tomcat7",Fc=["A","V"],Hc={name:"test",components:{LineChartThumbnail:yc,LineChartMul:hc},data:function(){return{categoryLen:1,categoryLen2:2,startTime:"00:00:00:00000",endTime:"00:00:00:00000",hour:10,options:[{value:"0",label:"0"},{value:"10",label:"10"}],detailsLoading:!1,thumbLoading:!1,drawer_show:!1,checkAll:!1,checkedAttrs:["电流","电压"],attrs:["电流","电压"],isIndeterminate:!1,pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick:function(t){t.$emit("pick",new Date)}},{text:"昨天",onClick:function(t){var e=new Date;e.setTime(e.getTime()-864e5),t.$emit("pick",e)}},{text:"一周前",onClick:function(t){var e=new Date;e.setTime(e.getTime()-6048e5),t.$emit("pick",e)}}]},date:"2020_03_04"}},methods:{format:function(t){var e=[],n=[],i=[];return t.forEach((function(t){e.push(t[0]),i.push(t[1])})),n.push({name:"支路电流",unit:"A",data:i}),{xLabel:e,series:n}},format2:function(t){console.log("format2",t,t.length);var e=[];return t.forEach((function(t){e.push({dimensions:["dateStr","dev_value","num"],source:t.source,name:t.name||"=name=",unit:t.unit||"=unit="})})),console.log(e,"arr"),{dataset:e}},getDetailsData:function(){var t=this;this.detailsLoading=!0;var e=this.$G.chartManage.get("G_dialog_id").getOption().dataZoom[0],n=Math.ceil(e.startValue),i=Math.floor(e.endValue),o=n%12e5%2e4,a=zc.numAdd0(Math.floor(o/20),3)+zc.numAdd0(o%20),r=i%12e5%2e4,s=zc.numAdd0(Math.floor(r/20),3)+zc.numAdd0(r%20),l=Math.floor(n/12e5),c=Math.floor(i/12e5),h=Math.floor(n%12e5/2e4),d=Math.floor(i%12e5/2e4);this.startTime=zc.numAdd0(this.hour)+":"+zc.numAdd0(l)+":"+zc.numAdd0(h)+":"+a,this.endTime=zc.numAdd0(this.hour)+":"+zc.numAdd0(c)+":"+zc.numAdd0(d)+":"+s,console.log("startTime",this.startTime,"endTime",this.endTime,n%12e5,i%12e5,"len",i-n+1);var p=this.$G.chartManage.get("G_dialog_id2"),f=n%12e5,g=i%12e5;if(console.log("startIndex",f,"endIndex",g),l==c){Bc[1]=Bc[0]=l;var m=[],v=this.getUrlList(this.date,this.hour,this.checkedAttrs,[l]);v.forEach((function(e){m.push(t.$api.common.getDetailsData({fileName:e[0],startNum:f,stopNum:g}))})),Promise.all(m).then((function(e){var n=[];e.forEach((function(e,i){var o=JSON.parse(e.data.result);n.push({source:o.data,name:t.checkedAttrs[i],unit:Fc[i]})})),t.$refs["G_dialog_id2"]&&t.$refs["G_dialog_id2"].setTest(t.format2(n)),p.dispatchAction({type:"dataZoom",start:0,end:100}),t.detailsLoading=!1})).catch((function(e){t.detailsLoading=!1,console.error(e)}))}else{var y=[],x=this.getUrlList(this.date,this.hour,this.checkedAttrs,[l,c]);console.log(x,"urls"),x.forEach((function(e){y.push(t.$api.common.getDetailsData({fileName:e[0],startNum:f+1,stopNum:12e5}),t.$api.common.getDetailsData({fileName:e[1],startNum:0,stopNum:g+1}))})),Promise.all(y).then((function(e){for(var n=[[]],i=0,o=0,a=e.length;i<a;i++){var r;0==i%2&&0!=i&&(o++,n[o]=[]);var s=JSON.parse(e[i].data.result).data;(r=n[o]).push.apply(r,u(s))}var l=[];n.forEach((function(e,n){l.push({source:e,name:t.checkedAttrs[n],unit:Fc[n]})})),t.$refs["G_dialog_id2"]&&t.$refs["G_dialog_id2"].setTest(t.format2(l)),p.dispatchAction({type:"dataZoom",start:0,end:100}),t.detailsLoading=!1})).catch((function(e){t.detailsLoading=!1,console.error(e)}))}},getThumbnailData:function(){console.log(this.date),this.thumbLoading=!0;for(var t=[],e=this,n=0,i=60;n<i;n++){var o=n<10?"0"+n:n,a="电流2020_03_04_10_"+o+"_dgls.csv";t.push(this.$api.common.getThumbnailData({fileName:a}))}Gc=[],Promise.all(t).then((function(t){t.forEach((function(t,e){var n=JSON.parse(t.data.result).data;console.log(n);for(var i=12e5*e,o=0,a=n.length;o<a;o++)n[o]["num"]=1*n[o]["num"]+i,Gc.push(n[o])})),e.$refs["G_dialog_id"]&&e.$refs["G_dialog_id"].setTest(e.format2([{source:Gc}])),e.thumbLoading=!1})).catch((function(t){e.thumbLoading=!1,console.log(t)}))},getData:function(){var t=this;this.detailsLoading=!0;var e=this.$G.chartManage.get("G_dialog_id").getOption().dataZoom[0],n=Math.ceil(e.startValue),i=Math.floor(e.endValue),o=n%12e5%2e4,a=zc.numAdd0(Math.floor(o/20),3)+zc.numAdd0(o%20),r=i%12e5%2e4,s=zc.numAdd0(Math.floor(r/20),3)+zc.numAdd0(r%20),l=Math.floor(n/12e5),c=Math.floor(i/12e5),u=Math.floor(n%12e5/2e4),h=Math.floor(i%12e5/2e4);this.startTime=zc.numAdd0(this.hour)+":"+zc.numAdd0(l)+":"+zc.numAdd0(u)+":"+a,this.endTime=zc.numAdd0(this.hour)+":"+zc.numAdd0(c)+":"+zc.numAdd0(h)+":"+s,console.log("startTime",this.startTime,"endTime",this.endTime,n%12e5,i%12e5,"len",i-n+1);var d=n%12e5,p=i%12e5;if(console.log("startIndex",d,"endIndex",p),l==c){Bc[1]=Bc[0]=l;var f=[],g=this.getUrlList(this.date,this.hour,this.checkedAttrs,[l]);g.forEach((function(e){f.push(t.parseCsv(Vc+e,1,p+1,d))})),Promise.all(f).then((function(e){if(e.some((function(t){return null==t})))return!1;var n=[];e.forEach((function(t){n.push({source:t})})),t.$refs["G_dialog_id2"]&&t.$refs["G_dialog_id2"].setTest(t.format2(n)),t.detailsLoading=!1})).catch((function(e){t.detailsLoading=!1,console.error(e)}))}else{Bc[1]=c,Bc[0]=l;var m="/电压2020_03_04_10_"+(l<10?"0"+l:l)+".csv",v="/电压2020_03_04_10_"+(c<10?"0"+c:c)+".csv";Promise.all([this.parseCsv(Vc+m,1,12e5,d),this.parseCsv(Vc+v,1,p+1)]).then((function(e){if(null==e[0]||null==e[1])return!1;var n=e[0].concat(e[1]);t.$refs["G_dialog_id2"]&&t.$refs["G_dialog_id2"].setTest(t.format2(n)),t.detailsLoading=!1})).catch((function(e){t.detailsLoading=!1,console.error(e)}))}},resizeChart:function(t,e,n){t.dispatchAction({type:"dataZoom",startValue:e,endValue:n})},move:function(t,e){var n,i,o=this.$G.chartManage.get("G_dialog_id"),a=o.getOption().dataZoom[0],r=Math.ceil(a.startValue),s=Math.floor(a.endValue),l=s-r;if(e||(l=12e5),t>0){if(72e6==s)return!1;n=r+l,i=s+l,i>=72e6&&(i=72e6,n=i-l)}else{if(0==r)return!1;n=r-l,i=s-l,n<=0&&(n=0,i=n+l)}this.resizeChart(o,n,i)},getUrlList:function(t,e,n,i){console.log(i,"mins");var o=[];return n.forEach((function(n){var a=[];i.forEach((function(i){a.push(n+t+"_"+e+"_"+zc.numAdd0(i)+".csv")})),o.push(a)})),o},handleCheckAllChange:function(t){this.checkedAttrs=t?this.attrs:[],this.isIndeterminate=!1},handleCheckedAttrsChange:function(t){var e=t.length;this.checkAll=e===this.attrs.length,this.isIndeterminate=e>0&&e<this.attrs.length}},mounted:function(){var t=this;this.$G.chartManage.get("G_dialog_id").on("dataZoom",Wc((function(){t.getDetailsData()}),800))}};function Wc(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}var Zc=Hc,Xc=(n("2251"),Object(cc["a"])(Zc,i,o,!1,null,"ab850390",null));e["default"]=Xc.exports},"3ca3":function(t,e,n){"use strict";var i=n("6547").charAt,o=n("69f3"),a=n("7dd0"),r="String Iterator",s=o.set,l=o.getterFor(r);a(String,"String",(function(t){s(this,{type:r,string:String(t),index:0})}),(function(){var t,e=l(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=i(n,o),e.index+=t.length,{value:t,done:!1})}))},"4de4":function(t,e,n){"use strict";var i=n("23e7"),o=n("b727").filter,a=n("1dde"),r=a("filter");i({target:"Array",proto:!0,forced:!r},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var i=n("0366"),o=n("7b0b"),a=n("9bdd"),r=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");t.exports=function(t){var e,n,u,h,d,p,f=o(t),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,x=c(f),b=0;if(y&&(v=i(v,m>2?arguments[2]:void 0,2)),void 0==x||g==Array&&r(x))for(e=s(f.length),n=new g(e);e>b;b++)p=y?v(f[b],b):f[b],l(n,b,p);else for(h=x.call(f),d=h.next,n=new g;!(u=d.call(h)).done;b++)p=y?a(h,v,[u.value,b],!0):u.value,l(n,b,p);return n.length=b,n}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var i=n("1d80"),o=n("5899"),a="["+o+"]",r=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),l=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(r,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},"746f":function(t,e,n){var i=n("428f"),o=n("5135"),a=n("e538"),r=n("9bf2").f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});o(e,t)||r(e,t,{value:a.f(t)})}},8418:function(t,e,n){"use strict";var i=n("c04e"),o=n("9bf2"),a=n("5c6c");t.exports=function(t,e,n){var r=i(e);r in t?o.f(t,r,a(0,n)):t[r]=n}},8461:function(t,e,n){},8503:function(t,e,n){"use strict";n("bbe2")},"99af":function(t,e,n){"use strict";var i=n("23e7"),o=n("d039"),a=n("e8b5"),r=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),h=n("1dde"),d=n("b622"),p=n("2d00"),f=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=p>=51||!o((function(){var t=[];return t[f]=!1,t.concat()[0]!==t})),y=h("concat"),x=function(t){if(!r(t))return!1;var e=t[f];return void 0!==e?!!e:a(t)},b=!v||!y;i({target:"Array",proto:!0,forced:b},{concat:function(t){var e,n,i,o,a,r=s(this),h=u(r,0),d=0;for(e=-1,i=arguments.length;e<i;e++)if(a=-1===e?r:arguments[e],x(a)){if(o=l(a.length),d+o>g)throw TypeError(m);for(n=0;n<o;n++,d++)n in a&&c(h,d,a[n])}else{if(d>=g)throw TypeError(m);c(h,d++,a)}return h.length=d,h}})},"9bdd":function(t,e,n){var i=n("825a"),o=n("2a62");t.exports=function(t,e,n,a){try{return a?e(i(n)[0],n[1]):e(n)}catch(r){throw o(t),r}}},a118:function(t,e,n){},a15b:function(t,e,n){"use strict";var i=n("23e7"),o=n("44ad"),a=n("fc6a"),r=n("a640"),s=[].join,l=o!=Object,c=r("join",",");i({target:"Array",proto:!0,forced:l||!c},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},a4d3:function(t,e,n){"use strict";var i=n("23e7"),o=n("da84"),a=n("d066"),r=n("c430"),s=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),h=n("5135"),d=n("e8b5"),p=n("861d"),f=n("825a"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),y=n("5c6c"),x=n("7c73"),b=n("df75"),_=n("241c"),w=n("057f"),O=n("7418"),S=n("06cf"),M=n("9bf2"),I=n("d1e7"),A=n("9112"),j=n("6eeb"),C=n("5692"),T=n("f772"),D=n("d012"),k=n("90e3"),L=n("b622"),P=n("e538"),E=n("746f"),N=n("d44e"),R=n("69f3"),z=n("b727").forEach,G=T("hidden"),B="Symbol",V="prototype",F=L("toPrimitive"),H=R.set,W=R.getterFor(B),Z=Object[V],X=o.Symbol,Y=a("JSON","stringify"),$=S.f,U=M.f,q=w.f,K=I.f,J=C("symbols"),Q=C("op-symbols"),tt=C("string-to-symbol-registry"),et=C("symbol-to-string-registry"),nt=C("wks"),it=o.QObject,ot=!it||!it[V]||!it[V].findChild,at=s&&u((function(){return 7!=x(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=$(Z,e);i&&delete Z[e],U(t,e,n),i&&t!==Z&&U(Z,e,i)}:U,rt=function(t,e){var n=J[t]=x(X[V]);return H(n,{type:B,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof X},lt=function(t,e,n){t===Z&<(Q,e,n),f(t);var i=v(e,!0);return f(n),h(J,i)?(n.enumerable?(h(t,G)&&t[G][i]&&(t[G][i]=!1),n=x(n,{enumerable:y(0,!1)})):(h(t,G)||U(t,G,y(1,{})),t[G][i]=!0),at(t,i,n)):U(t,i,n)},ct=function(t,e){f(t);var n=m(e),i=b(n).concat(ft(n));return z(i,(function(e){s&&!ht.call(n,e)||lt(t,e,n[e])})),t},ut=function(t,e){return void 0===e?x(t):ct(x(t),e)},ht=function(t){var e=v(t,!0),n=K.call(this,e);return!(this===Z&&h(J,e)&&!h(Q,e))&&(!(n||!h(this,e)||!h(J,e)||h(this,G)&&this[G][e])||n)},dt=function(t,e){var n=m(t),i=v(e,!0);if(n!==Z||!h(J,i)||h(Q,i)){var o=$(n,i);return!o||!h(J,i)||h(n,G)&&n[G][i]||(o.enumerable=!0),o}},pt=function(t){var e=q(m(t)),n=[];return z(e,(function(t){h(J,t)||h(D,t)||n.push(t)})),n},ft=function(t){var e=t===Z,n=q(e?Q:m(t)),i=[];return z(n,(function(t){!h(J,t)||e&&!h(Z,t)||i.push(J[t])})),i};if(l||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=k(t),n=function(t){this===Z&&n.call(Q,t),h(this,G)&&h(this[G],e)&&(this[G][e]=!1),at(this,e,y(1,t))};return s&&ot&&at(Z,e,{configurable:!0,set:n}),rt(e,t)},j(X[V],"toString",(function(){return W(this).tag})),j(X,"withoutSetter",(function(t){return rt(k(t),t)})),I.f=ht,M.f=lt,S.f=dt,_.f=w.f=pt,O.f=ft,P.f=function(t){return rt(L(t),t)},s&&(U(X[V],"description",{configurable:!0,get:function(){return W(this).description}}),r||j(Z,"propertyIsEnumerable",ht,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:X}),z(b(nt),(function(t){E(t)})),i({target:B,stat:!0,forced:!l},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=X(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!s},{create:ut,defineProperty:lt,defineProperties:ct,getOwnPropertyDescriptor:dt}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pt,getOwnPropertySymbols:ft}),i({target:"Object",stat:!0,forced:u((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(g(t))}}),Y){var gt=!l||u((function(){var t=X();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}));i({target:"JSON",stat:!0,forced:gt},{stringify:function(t,e,n){var i,o=[t],a=1;while(arguments.length>a)o.push(arguments[a++]);if(i=e,(p(e)||void 0!==t)&&!st(t))return d(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!st(e))return e}),o[1]=e,Y.apply(null,o)}})}X[V][F]||A(X[V],F,X[V].valueOf),N(X,B),D[G]=!0},a630:function(t,e,n){var i=n("23e7"),o=n("4df4"),a=n("1c7e"),r=!a((function(t){Array.from(t)}));i({target:"Array",stat:!0,forced:r},{from:o})},a640:function(t,e,n){"use strict";var i=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},a9e3:function(t,e,n){"use strict";var i=n("83ab"),o=n("da84"),a=n("94ca"),r=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),h=n("d039"),d=n("7c73"),p=n("241c").f,f=n("06cf").f,g=n("9bf2").f,m=n("58a8").trim,v="Number",y=o[v],x=y.prototype,b=l(d(x))==v,_=function(t){var e,n,i,o,a,r,s,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(c=m(c),e=c.charCodeAt(0),43===e||45===e){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+c}for(a=c.slice(2),r=a.length,s=0;s<r;s++)if(l=a.charCodeAt(s),l<48||l>o)return NaN;return parseInt(a,i)}return+c};if(a(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(b?h((function(){x.valueOf.call(n)})):l(n)!=v)?c(new y(_(e)),n,O):_(e)},S=i?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0;S.length>M;M++)s(y,w=S[M])&&!s(O,w)&&g(O,w,f(y,w));O.prototype=x,x.constructor=O,r(o,v,O)}},b0c0:function(t,e,n){var i=n("83ab"),o=n("9bf2").f,a=Function.prototype,r=a.toString,s=/^\s*function ([^ (]*)/,l="name";i&&!(l in a)&&o(a,l,{configurable:!0,get:function(){try{return r.call(this).match(s)[1]}catch(t){return""}}})},b64b:function(t,e,n){var i=n("23e7"),o=n("7b0b"),a=n("df75"),r=n("d039"),s=r((function(){a(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(t){return a(o(t))}})},bbe2:function(t,e,n){},d28b:function(t,e,n){var i=n("746f");i("iterator")},ddb0:function(t,e,n){var i=n("da84"),o=n("fdbc"),a=n("e260"),r=n("9112"),s=n("b622"),l=s("iterator"),c=s("toStringTag"),u=a.values;for(var h in o){var d=i[h],p=d&&d.prototype;if(p){if(p[l]!==u)try{r(p,l,u)}catch(g){p[l]=u}if(p[c]||r(p,c,h),o[h])for(var f in a)if(p[f]!==a[f])try{r(p,f,a[f])}catch(g){p[f]=a[f]}}}},e01a:function(t,e,n){"use strict";var i=n("23e7"),o=n("83ab"),a=n("da84"),r=n("5135"),s=n("861d"),l=n("9bf2").f,c=n("e893"),u=a.Symbol;if(o&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new u(t):void 0===t?u():u(t);return""===t&&(h[e]=!0),e};c(d,u);var p=d.prototype=u.prototype;p.constructor=d;var f=p.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=f.call(t);if(r(h,t))return"";var n=g?e.slice(7,-1):e.replace(m,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:d})}},e538:function(t,e,n){var i=n("b622");e.f=i},fb6a:function(t,e,n){"use strict";var i=n("23e7"),o=n("861d"),a=n("e8b5"),r=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),h=n("1dde"),d=h("slice"),p=u("species"),f=[].slice,g=Math.max;i({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,i,u,h=l(this),d=s(h.length),m=r(t,d),v=r(void 0===e?d:e,d);if(a(h)&&(n=h.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?o(n)&&(n=n[p],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return f.call(h,m,v);for(i=new(void 0===n?Array:n)(g(v-m,0)),u=0;m<v;m++,u++)m in h&&c(i,u,h[m]);return i.length=u,i}})},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}}]);
|